rintl: Simplify for platforms where 'long double' == 'double'.
[gnulib.git] / ChangeLog
1 2011-10-09  Bruno Haible  <bruno@clisp.org>
2
3         rintl: Simplify for platforms where 'long double' == 'double'.
4         * lib/rintl.c: Include <config.h>.
5         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7         time.
8         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10         * modules/rintl (Depends-on): Add rint. Update conditions.
11
12 2011-10-09  Bruno Haible  <bruno@clisp.org>
13
14         roundl: Simplify for platforms where 'long double' == 'double'.
15         * lib/roundl.c: Include <config.h>.
16         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
17         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
18         time.
19         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
20         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21         * modules/roundl (Depends-on): Add round. Update conditions.
22
23 2011-10-09  Bruno Haible  <bruno@clisp.org>
24
25         truncl: Simplify for platforms where 'long double' == 'double'.
26         * lib/truncl.c: Include <config.h>.
27         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29         time.
30         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
31         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
32         * modules/truncl (Depends-on): Add trunc. Update conditions.
33
34 2011-10-09  Bruno Haible  <bruno@clisp.org>
35
36         ceill: Simplify for platforms where 'long double' == 'double'.
37         * lib/ceill.c: Include <config.h>.
38         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
39         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40         time.
41         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43         * modules/ceill (Depends-on): Add ceil. Update conditions.
44
45 2011-10-09  Bruno Haible  <bruno@clisp.org>
46
47         floorl: Simplify for platforms where 'long double' == 'double'.
48         * lib/floorl.c: Include <config.h>.
49         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
50         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
51         time.
52         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
53         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
54         * modules/floorl (Depends-on): Add floor. Update conditions.
55
56 2011-10-09  Bruno Haible  <bruno@clisp.org>
57
58         rint: Fix ordering constraints.
59         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
60         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
61         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
62
63 2011-10-09  Bruno Haible  <bruno@clisp.org>
64
65         copysignl: Simplify for platforms where 'long double' == 'double'.
66         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
67         alternative.
68         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
69         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
70         * modules/copysignl (Depends-on): Add copysign. Update conditions.
71
72 2011-10-09  Bruno Haible  <bruno@clisp.org>
73
74         Tests for module 'rintl'.
75         * modules/rintl-tests: New file.
76         * tests/test-rintl.c: New file.
77
78         New module 'rintl'.
79         * lib/math.in.h (rintl): New declaration.
80         * lib/rintl.c: New file.
81         * m4/rintl.m4: New file.
82         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
83         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
84         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
85         * modules/rintl: New file.
86         * tests/test-math-c++.cc: Check the declaration of rintl.
87         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
88         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
89         * doc/posix-functions/rintl.texi: Mention the new module.
90
91 2011-10-09  Bruno Haible  <bruno@clisp.org>
92
93         Tests for module 'rintf'.
94         * modules/rintf-tests: New file.
95         * tests/test-rintf.c: New file.
96
97         New module 'rintf'.
98         * lib/math.in.h (rintf): New declaration.
99         * lib/rintf.c: New file.
100         * m4/rintf.m4: New file.
101         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
103         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
104         * modules/rintf: New file.
105         * tests/test-math-c++.cc: Check the declaration of rintf.
106         * doc/posix-functions/rintf.texi: Mention the new module.
107
108 2011-10-09  Bruno Haible  <bruno@clisp.org>
109
110         rint: Support for MSVC.
111         * lib/math.in.h (rint): New declaration.
112         * lib/rint.c: New file.
113         * m4/rint.m4: New file.
114         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
116         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
117         * modules/rint (Description): Fix.
118         (Files): Add lib/rint.c, m4/rint.m4.
119         (Depends-on): Add math.
120         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
121         gl_MATH_MODULE_INDICATOR.
122         * tests/test-math-c++.cc: Check the declaration of rint.
123         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
124         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
125         * doc/posix-functions/rint.texi: Mention the replacement provided by
126         the module.
127
128         rint tests: More tests.
129         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
130         minus-zero.h, infinity.h, nan.h.
131         (main): Skip the test if the current rounding mode is not standard. Add
132         tests for negative numbers, minus zero, infinity, NaN.
133         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
134         tests/nan.h.
135         (Depends-on): Add isnand-nolibm.
136
137 2011-10-09  Bruno Haible  <bruno@clisp.org>
138
139         Tests for module 'copysignl'.
140         * modules/copysignl-tests: New file.
141         * tests/test-copysignl.c: New file.
142
143         New module 'copysignl'.
144         * lib/math.in.h (copysignl): New declaration.
145         * lib/copysignl.c: New file.
146         * m4/copysignl.m4: New file.
147         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
149         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
150         HAVE_COPYSIGNL.
151         * modules/copysignl: New file.
152         * tests/test-math-c++.cc: Check the declaration of copysignl.
153         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
154         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
155         * doc/posix-functions/copysignl.texi: Mention the new module.
156
157 2011-10-09  Bruno Haible  <bruno@clisp.org>
158
159         Tests for module 'copysignf'.
160         * modules/copysignf-tests: New file.
161         * tests/test-copysignf.c: New file.
162
163         New module 'copysignf'.
164         * lib/math.in.h (copysignf): New declaration.
165         * lib/copysignf.c: New file.
166         * m4/copysignf.m4: New file.
167         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
169         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
170         HAVE_COPYSIGNF.
171         * modules/copysignf: New file.
172         * tests/test-math-c++.cc: Check the declaration of copysignf.
173         * doc/posix-functions/copysignf.texi: Mention the new module.
174
175 2011-10-09  Bruno Haible  <bruno@clisp.org>
176
177         Ensure that HAVE_* variables are set to 1 before they are set to 0.
178         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
179         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
180         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
181         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
182         gl_SIGNAL_H_DEFAULTS.
183
184 2011-10-09  Bruno Haible  <bruno@clisp.org>
185
186         poll: Make macro safer.
187         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
188         ac_cv_header_poll_h is not set.
189
190 2011-10-09  Bruno Haible  <bruno@clisp.org>
191
192         copysign: Provide replacement.
193         * lib/math.in.h (copysign): New declaration.
194         * lib/copysign.c: New file.
195         * m4/copysign.m4: New file.
196         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
198         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
199         HAVE_COPYSIGN.
200         * modules/copysign (Description): Clarify.
201         (Files): Add lib/copysign.c, m4/copysign.m4.
202         (Depends-on): Add math, signbit.
203         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
204         gl_MATH_MODULE_INDICATOR.
205         * tests/test-math-c++.cc: Check the declaration of copysign.
206         * doc/posix-functions/copysign.texi: Mention the effects of the module
207         on Minix and MSVC.
208
209 2011-10-09  Bruno Haible  <bruno@clisp.org>
210
211         isinf: Ensure macro on AIX 5.1.
212         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
213         macro.
214         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
215
216 2011-10-09  Bruno Haible  <bruno@clisp.org>
217
218         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
219         * modules/snprintf-posix-tests (configure.ac): Require
220         gl_LONG_DOUBLE_VS_DOUBLE.
221         * modules/sprintf-posix-tests (configure.ac): Likewise.
222         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
223         * modules/vasprintf-posix-tests (configure.ac): Likewise.
224         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
225         * modules/vsprintf-posix-tests (configure.ac): Likewise.
226         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
227         tests on platforms where 'long double' is the same as 'double'.
228         * tests/test-sprintf-posix.h (test_function): Likewise.
229         * tests/test-vasnprintf-posix.c (test_function): Likewise.
230         * tests/test-vasprintf-posix.c (test_function): Likewise.
231
232         *printf: Fix for platforms where 'long double' == 'double'.
233         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
234         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
235         * modules/dprintf-posix (Files): Add m4/math_h.m4.
236         * modules/fprintf-posix (Files): Likewise.
237         * modules/obstack-printf-posix (Files): Likewise.
238         * modules/snprintf-posix (Files): Likewise.
239         * modules/sprintf-posix (Files): Likewise.
240         * modules/vasnprintf (Files): Likewise.
241         * modules/vasnprintf-posix (Files): Likewise.
242         * modules/vasprintf-posix (Files): Likewise.
243         * modules/vdprintf-posix (Files): Likewise.
244         * modules/vfprintf-posix (Files): Likewise.
245         * modules/vsnprintf-posix (Files): Likewise.
246         * modules/vsprintf-posix (Files): Likewise.
247         * modules/unistdio/u8-vasnprintf (Files): Likewise.
248         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
249         * modules/unistdio/u16-vasnprintf (Files): Likewise.
250         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
251         * modules/unistdio/u32-vasnprintf (Files): Likewise.
252         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
253         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
254
255         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
256         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
257         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
258         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
259         'long double'.
260         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
261
262         isinf: Fix for platforms where 'long double' == 'double'.
263         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
264         Don't blindly assume 80-bit 'long double'.
265
266         isfinite: Fix for platforms where 'long double' == 'double'.
267         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
268         Don't blindly assume 80-bit 'long double'.
269
270         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
271         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
272         * modules/isfinite-tests (configure.ac): Require
273         gl_LONG_DOUBLE_VS_DOUBLE.
274         * modules/isinf-tests (configure.ac): Likewise.
275         * modules/isnan-tests (configure.ac): Likewise.
276         * modules/isnanl-tests (configure.ac): Likewise.
277         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
278         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
279         tests on platforms where 'long double' is the same as 'double'.
280         * tests/test-isinf.c (test_isinfl): Likewise.
281         * tests/test-isnan.c (test_long_double): Likewise.
282         * tests/test-isnanl.h (main): Likewise.
283
284 2011-10-08  Bruno Haible  <bruno@clisp.org>
285
286         Tests for module 'tanhf'.
287         * modules/tanhf-tests: New file.
288         * tests/test-tanhf.c: New file.
289
290         New module 'tanhf'.
291         * lib/math.in.h (tanhf): New declaration.
292         * lib/tanhf.c: New file.
293         * m4/tanhf.m4: New file.
294         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
296         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
297         * modules/tanhf: New file.
298         * tests/test-math-c++.cc: Check the declaration of tanhf.
299         * doc/posix-functions/tanhf.texi: Mention the new module.
300
301         tanh: Use a .m4 file.
302         * m4/tanh.m4: New file.
303         * modules/tanh (Files): Add it.
304         (configure.ac): Just invoke gl_FUNC_TANH.
305
306 2011-10-08  Bruno Haible  <bruno@clisp.org>
307
308         Tests for module 'coshf'.
309         * modules/coshf-tests: New file.
310         * tests/test-coshf.c: New file.
311
312         New module 'coshf'.
313         * lib/math.in.h (coshf): New declaration.
314         * lib/coshf.c: New file.
315         * m4/coshf.m4: New file.
316         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
318         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
319         * modules/coshf: New file.
320         * tests/test-math-c++.cc: Check the declaration of coshf.
321         * doc/posix-functions/coshf.texi: Mention the new module.
322
323         cosh: Use a .m4 file.
324         * m4/cosh.m4: New file.
325         * modules/cosh (Files): Add it.
326         (configure.ac): Just invoke gl_FUNC_COSH.
327
328 2011-10-08  Bruno Haible  <bruno@clisp.org>
329
330         Tests for module 'sinhf'.
331         * modules/sinhf-tests: New file.
332         * tests/test-sinhf.c: New file.
333
334         New module 'sinhf'.
335         * lib/math.in.h (sinhf): New declaration.
336         * lib/sinhf.c: New file.
337         * m4/sinhf.m4: New file.
338         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
340         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
341         * modules/sinhf: New file.
342         * tests/test-math-c++.cc: Check the declaration of sinhf.
343         * doc/posix-functions/sinhf.texi: Mention the new module.
344
345         sinh: Use a .m4 file.
346         * m4/sinh.m4: New file.
347         * modules/sinh (Files): Add it.
348         (configure.ac): Just invoke gl_FUNC_SINH.
349
350 2011-10-08  Bruno Haible  <bruno@clisp.org>
351
352         Tests for module 'atan2f'.
353         * modules/atan2f-tests: New file.
354         * tests/test-atan2f.c: New file.
355
356         New module 'atan2f'.
357         * lib/math.in.h (atan2f): New declaration.
358         * lib/atan2f.c: New file.
359         * m4/atan2f.m4: New file.
360         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
362         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
363         * modules/atan2f: New file.
364         * tests/test-math-c++.cc: Check the declaration of atan2f.
365         * doc/posix-functions/atan2f.texi: Mention the new module.
366
367         atan2: Use a .m4 file.
368         * m4/atan2.m4: New file.
369         * modules/atan2 (Files): Add it.
370         (configure.ac): Just invoke gl_FUNC_ATAN2.
371
372 2011-10-08  Bruno Haible  <bruno@clisp.org>
373
374         Tests for module 'atanf'.
375         * modules/atanf-tests: New file.
376         * tests/test-atanf.c: New file.
377
378         New module 'atanf'.
379         * lib/math.in.h (atanf): New declaration.
380         * lib/atanf.c: New file.
381         * m4/atanf.m4: New file.
382         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
384         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
385         * modules/atanf: New file.
386         * tests/test-math-c++.cc: Check the declaration of atanf.
387         * doc/posix-functions/atanf.texi: Mention the new module.
388
389         atan: Use a .m4 file.
390         * m4/atan.m4: New file.
391         * modules/atan (Files): Add it.
392         (configure.ac): Just invoke gl_FUNC_ATAN.
393
394 2011-10-08  Bruno Haible  <bruno@clisp.org>
395
396         Tests for module 'acosf'.
397         * modules/acosf-tests: New file.
398         * tests/test-acosf.c: New file.
399
400         New module 'acosf'.
401         * lib/math.in.h (acosf): New declaration.
402         * lib/acosf.c: New file.
403         * m4/acosf.m4: New file.
404         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
406         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
407         * modules/acosf: New file.
408         * tests/test-math-c++.cc: Check the declaration of acosf.
409         * doc/posix-functions/acosf.texi: Mention the new module.
410
411         acos: Use a .m4 file.
412         * m4/acos.m4: New file.
413         * modules/acos (Files): Add it.
414         (configure.ac): Just invoke gl_FUNC_ACOS.
415
416 2011-10-08  Bruno Haible  <bruno@clisp.org>
417
418         Tests for module 'asinf'.
419         * modules/asinf-tests: New file.
420         * tests/test-asinf.c: New file.
421
422         New module 'asinf'.
423         * lib/math.in.h (asinf): New declaration.
424         * lib/asinf.c: New file.
425         * m4/asinf.m4: New file.
426         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
428         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
429         * modules/asinf: New file.
430         * tests/test-math-c++.cc: Check the declaration of asinf.
431         * doc/posix-functions/asinf.texi: Mention the new module.
432
433         asin: Use a .m4 file.
434         * m4/asin.m4: New file.
435         * modules/asin (Files): Add it.
436         (configure.ac): Just invoke gl_FUNC_ASIN.
437
438 2011-10-08  Bruno Haible  <bruno@clisp.org>
439
440         Tests for module 'tanf'.
441         * modules/tanf-tests: New file.
442         * tests/test-tanf.c: New file.
443
444         New module 'tanf'.
445         * lib/math.in.h (tanf): New declaration.
446         * lib/tanf.c: New file.
447         * m4/tanf.m4: New file.
448         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
450         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
451         * modules/tanf: New file.
452         * tests/test-math-c++.cc: Check the declaration of tanf.
453         * doc/posix-functions/tanf.texi: Mention the new module.
454
455         tan: Use a .m4 file.
456         * m4/tan.m4: New file.
457         * modules/tan (Files): Add it.
458         (configure.ac): Just invoke gl_FUNC_TAN.
459
460 2011-10-08  Bruno Haible  <bruno@clisp.org>
461
462         Tests for module 'cosf'.
463         * modules/cosf-tests: New file.
464         * tests/test-cosf.c: New file.
465
466         New module 'cosf'.
467         * lib/math.in.h (cosf): New declaration.
468         * lib/cosf.c: New file.
469         * m4/cosf.m4: New file.
470         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
472         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
473         * modules/cosf: New file.
474         * tests/test-math-c++.cc: Check the declaration of cosf.
475         * doc/posix-functions/cosf.texi: Mention the new module.
476
477         cos: Use a .m4 file.
478         * m4/cos.m4: New file.
479         * modules/cos (Files): Add it.
480         (configure.ac): Just invoke gl_FUNC_COS.
481
482 2011-10-08  Bruno Haible  <bruno@clisp.org>
483
484         Tests for module 'sinf'.
485         * modules/sinf-tests: New file.
486         * tests/test-sinf.c: New file.
487
488         New module 'sinf'.
489         * lib/math.in.h (sinf): New declaration.
490         * lib/sinf.c: New file.
491         * m4/sinf.m4: New file.
492         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
494         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
495         * modules/sinf: New file.
496         * tests/test-math-c++.cc: Check the declaration of sinf.
497         * doc/posix-functions/sinf.texi: Mention the new module.
498
499         sin: Use a .m4 file.
500         * m4/sin.m4: New file.
501         * modules/sin (Files): Add it.
502         (configure.ac): Just invoke gl_FUNC_SIN.
503
504 2011-10-08  Bruno Haible  <bruno@clisp.org>
505
506         Tests for module 'powf'.
507         * modules/powf-tests: New file.
508         * tests/test-powf.c: New file.
509
510         New module 'powf'.
511         * lib/math.in.h (powf): New declaration.
512         * lib/powf.c: New file.
513         * m4/powf.m4: New file.
514         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
516         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
517         * modules/powf: New file.
518         * tests/test-math-c++.cc: Check the declaration of powf.
519         * doc/posix-functions/powf.texi: Mention the new module.
520
521         pow: Use a .m4 file.
522         * m4/pow.m4: New file.
523         * modules/pow (Files): Add it.
524         (configure.ac): Just invoke gl_FUNC_POW.
525
526 2011-10-08  Bruno Haible  <bruno@clisp.org>
527
528         Tests for module 'log10f'.
529         * modules/log10f-tests: New file.
530         * tests/test-log10f.c: New file.
531
532         New module 'log10f'.
533         * lib/math.in.h (log10f): New declaration.
534         * lib/log10f.c: New file.
535         * m4/log10f.m4: New file.
536         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
538         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
539         * modules/log10f: New file.
540         * tests/test-math-c++.cc: Check the declaration of log10f.
541         * doc/posix-functions/log10f.texi: Mention the new module.
542
543         log10: Use a .m4 file.
544         * m4/log10.m4: New file.
545         * modules/log10 (Files): Add it.
546         (configure.ac): Just invoke gl_FUNC_LOG10.
547
548 2011-10-08  Bruno Haible  <bruno@clisp.org>
549
550         Tests for module 'logf'.
551         * modules/logf-tests: New file.
552         * tests/test-logf.c: New file.
553
554         New module 'logf'.
555         * lib/math.in.h (logf): New declaration.
556         * lib/logf.c: New file.
557         * m4/logf.m4: New file.
558         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
560         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
561         * modules/logf: New file.
562         * tests/test-math-c++.cc: Check the declaration of logf.
563         * doc/posix-functions/logf.texi: Mention the new module.
564
565         log: Use a .m4 file.
566         * m4/log.m4: New file.
567         * modules/log (Files): Add it.
568         (configure.ac): Just invoke gl_FUNC_LOG.
569
570 2011-10-08  Bruno Haible  <bruno@clisp.org>
571
572         Tests for module 'expf'.
573         * modules/expf-tests: New file.
574         * tests/test-expf.c: New file.
575
576         New module 'expf'.
577         * lib/math.in.h (expf): New declaration.
578         * lib/expf.c: New file.
579         * m4/expf.m4: New file.
580         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
582         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
583         * modules/expf: New file.
584         * tests/test-math-c++.cc: Check the declaration of expf.
585         * doc/posix-functions/expf.texi: Mention the new module.
586
587         exp: Use a .m4 file.
588         * m4/exp.m4: New file.
589         * modules/exp (Files): Add it.
590         (configure.ac): Just invoke gl_FUNC_EXP.
591
592 2011-10-08  Bruno Haible  <bruno@clisp.org>
593
594         Tests for module 'sqrtf'.
595         * modules/sqrtf-tests: New file.
596         * tests/test-sqrtf.c: New file.
597
598         New module 'sqrtf'.
599         * lib/math.in.h (sqrtf): New declaration.
600         * lib/sqrtf.c: New file.
601         * m4/sqrtf.m4: New file.
602         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
604         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
605         * modules/sqrtf: New file.
606         * tests/test-math-c++.cc: Check the declaration of sqrtf.
607         * doc/posix-functions/sqrtf.texi: Mention the new module.
608
609 2011-10-08  Bruno Haible  <bruno@clisp.org>
610
611         Tests: Avoid link failures w.r.t. libintl.
612         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
613         $(LIBINTL).
614         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
615         $(LIBINTL).
616         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
617         against $(LIBINTL).
618         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
619         $(LIBINTL).
620         * modules/openat-tests (Makefile.am): Link test-fchmodat against
621         $(LIBINTL).
622         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
623
624 2011-10-08  Bruno Haible  <bruno@clisp.org>
625
626         pow tests: Defeat compiler optimizations.
627         * tests/test-pow.c (main): Assign arguments to x and y before use.
628
629 2011-10-08  Bruno Haible  <bruno@clisp.org>
630
631         gnulib-tool: Improve last commit.
632         * gnulib-tool (func_modules_transitive_closure): Simplify code.
633         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
634         ignore dependencies that are not among the modules list.
635
636 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
637
638         gnulib-tool: don't follow dependencies to avoided modules
639         This fixes a bug that is related to the previous one.
640         * gnulib-tool (func_modules_transitive_closure)
641         (func_emit_autoconf_snippets):
642         Check whether a dependency is acceptable before using it.
643         (--extract-dependencies): Report an error if --avoid is also used,
644         since this combination of options is not yet supported.
645
646         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
647         Problem reported by Peter Dyballa in
648         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
649         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
650         when echoing "$condition".
651
652 2011-10-07  Bruno Haible  <bruno@clisp.org>
653
654         Fix documentation about math functions on MacOS X.
655         * doc/posix-functions/exp2.texi: Don't say the function is missing on
656         MacOS X 10.5.
657         * doc/posix-functions/fdim.texi: Likewise.
658         * doc/posix-functions/feclearexcept.texi: Likewise.
659         * doc/posix-functions/fegetenv.texi: Likewise.
660         * doc/posix-functions/fegetround.texi: Likewise.
661         * doc/posix-functions/feholdexcept.texi: Likewise.
662         * doc/posix-functions/feraiseexcept.texi: Likewise.
663         * doc/posix-functions/fesetenv.texi: Likewise.
664         * doc/posix-functions/fesetround.texi: Likewise.
665         * doc/posix-functions/fetestexcept.texi: Likewise.
666         * doc/posix-functions/feupdateenv.texi: Likewise.
667         * doc/posix-functions/fmax.texi: Likewise.
668         * doc/posix-functions/fmin.texi: Likewise.
669         * doc/posix-functions/log2.texi: Likewise.
670         * doc/posix-functions/modff.texi: Likewise.
671         * doc/posix-functions/nan.texi: Likewise.
672         * doc/posix-functions/nanf.texi: Likewise.
673         * doc/posix-functions/nextafterf.texi: Likewise.
674         * doc/posix-functions/remquo.texi: Likewise.
675
676 2011-10-07  Bruno Haible  <bruno@clisp.org>
677
678         modff: Drop assumption about library that defines modff.
679         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
680         AC_CHECK_FUNCS.
681         * modules/modff (Files): Add m4/mathfunc.m4.
682
683 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
684
685         raise tests: Avoid a GCC warning.
686         * tests/test-raise.c (handler): Use _Noreturn.
687
688 2011-10-07  Bruno Haible  <bruno@clisp.org>
689
690         Tests for module 'ldexpf'.
691         * modules/ldexpf-tests: New file.
692         * tests/test-ldexpf.c: New file.
693
694         New module 'ldexpf'.
695         * lib/math.in.h (ldexpf): New declaration.
696         * lib/ldexpf.c: New file.
697         * m4/ldexpf.m4: New file.
698         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
700         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
701         * modules/ldexpf: New file.
702         * tests/test-math-c++.cc: Check the declaration of ldexpf.
703         * doc/posix-functions/ldexpf.texi: Mention the new module.
704
705 2011-10-06  Bruno Haible  <bruno@clisp.org>
706
707         frexpf: Work around problems on IRIX and mingw.
708         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
710         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
711         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
712         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
713         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
714         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
715
716 2011-10-06  Bruno Haible  <bruno@clisp.org>
717
718         fabsf: Drop assumption about library that defines fabsf.
719         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
720         AC_CHECK_FUNCS.
721         * modules/fabsf (Files): Add m4/mathfunc.m4.
722
723 2011-10-06  Bruno Haible  <bruno@clisp.org>
724
725         frexpf: Drop assumption about library that defines frexpf.
726         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
727         'int *', 'float *', 'long double *', 'float', 'long double'.
728         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
729         AC_CHECK_FUNCS.
730         * modules/frexpf (Files): Add m4/mathfunc.m4.
731
732         Tests for module 'frexpf'.
733         * modules/frexpf-tests: New file.
734         * tests/test-frexpf.c: New file.
735
736         New module 'frexpf'.
737         * lib/math.in.h (frexpf): New declaration.
738         * lib/frexpf.c: New file.
739         * m4/frexpf.m4: New file.
740         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
742         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
743         * modules/frexpf: New file.
744         * tests/test-math-c++.cc: Check the declaration of frexpf.
745         * doc/posix-functions/frexpf.texi: Mention the new module.
746
747 2011-10-06  Bruno Haible  <bruno@clisp.org>
748
749         math: Sort function declarations of math.in.h.
750         * lib/math.in.h (frexp, logb): Move declarations.
751
752 2011-10-05  Bruno Haible  <bruno@clisp.org>
753
754         Tests for module 'modff'.
755         * modules/modff-tests: New file.
756         * tests/test-modff.c: New file.
757
758         New module 'modff'.
759         * lib/math.in.h (modff): New declaration.
760         * lib/modff.c: New file.
761         * m4/modff.m4: New file.
762         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
764         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
765         * modules/modff: New file.
766         * tests/test-math-c++.cc: Check the declaration of modff.
767         * doc/posix-functions/modff.texi: Mention the new module.
768
769         modf tests: Make test sharper.
770         * tests/test-modf.c (main): Strengthen upper bound.
771
772         modf: Use a .m4 file.
773         * m4/modf.m4: New file.
774         * modules/modf (Files): Add it.
775         (configure.ac): Just invoke gl_FUNC_MODF.
776
777 2011-10-05  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'fmodf'.
780         * modules/fmodf-tests: New file.
781         * tests/test-fmodf.c: New file.
782
783         New module 'fmodf'.
784         * lib/math.in.h (fmodf): New declaration.
785         * lib/fmodf.c: New file.
786         * m4/fmodf.m4: New file.
787         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
789         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
790         * modules/fmodf: New file.
791         * tests/test-math-c++.cc: Check the declaration of fmodf.
792         * doc/posix-functions/fmodf.texi: Mention the new module.
793
794         fmod: Use a .m4 file.
795         * m4/fmod.m4: New file.
796         * modules/fmod (Files): Add it.
797         (configure.ac): Just invoke gl_FUNC_FMOD.
798
799 2011-10-05  Bruno Haible  <bruno@clisp.org>
800
801         Tests for module 'fabsf'.
802         * modules/fabsf-tests: New file.
803         * tests/test-fabsf.c: New file.
804
805         New module 'fabsf'.
806         * lib/math.in.h (fabsf): New declaration.
807         * lib/fabsf.c: New file.
808         * m4/fabsf.m4: New file.
809         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
811         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
812         * modules/fabsf: New file.
813         * tests/test-math-c++.cc: Check the declaration of fabsf.
814         * doc/posix-functions/fabsf.texi: Mention the new module.
815
816         fabs: Use a .m4 file.
817         * m4/fabs.m4: New file.
818         * modules/fabs (Files): Add it.
819         (configure.ac): Just invoke gl_FUNC_FABS.
820
821 2011-10-05  Jim Meyering  <meyering@redhat.com>
822
823         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
824         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
825         ls -lL regression introduced in coreutils-8.12, it does so at the
826         cost of an additional stat call in the common case.  Besides, now
827         that the kernel change that prompted commit 95f7c57f has been reverted
828         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
829         we have no use for commit 95f7c57f, "file-has-acl: use
830         acl_extended_file_nofollow if available".
831
832 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
833
834         file-has-acl: revert unintended change in behavior of ls -L
835         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
836         derived from...
837         (file_has_acl): ...code here.  Call it.
838         This problem was introduced with 2011-07-22 commit 95f7c57f,
839         "file-has-acl: use acl_extended_file_nofollow if available".
840         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
841
842 2011-10-03  Bruno Haible  <bruno@clisp.org>
843
844         poll: Avoid link errors on MSVC.
845         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
846         * modules/poll (Depends-on): Add sockets.
847         (Link): New section.
848         * NEWS: Mention the change.
849         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
850         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
851         $(LIB_POLL) instead of $(LIBSOCKET).
852
853 2011-10-03  Bruno Haible  <bruno@clisp.org>
854
855         sys_select tests: Fix link error on MSVC 9.
856         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
857         with $(LIB_SELECT) instead of $(LIBSOCKET).
858
859 2011-10-03  Bruno Haible  <bruno@clisp.org>
860
861         sys_select: Fix compilation error on mingw.
862         * lib/sys_select.in.h: On native Windows, include <io.h>.
863
864 2011-10-03  Bruno Haible  <bruno@clisp.org>
865
866         wmemset: Support for MSVC.
867         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
868         whether wmemset() exists.
869
870 2011-10-03  Bruno Haible  <bruno@clisp.org>
871
872         wmemmove: Support for MSVC.
873         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
874         whether wmemmove() exists.
875
876 2011-10-03  Bruno Haible  <bruno@clisp.org>
877
878         wmemcpy: Support for MSVC.
879         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
880         whether wmemcpy() exists.
881
882 2011-10-03  Bruno Haible  <bruno@clisp.org>
883
884         wmemcmp: Support for MSVC.
885         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
886         whether wmemcmp() exists.
887
888 2011-10-03  Bruno Haible  <bruno@clisp.org>
889
890         wmemchr: Support for MSVC.
891         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
892         whether wmemchr() exists.
893
894 2011-10-03  Bruno Haible  <bruno@clisp.org>
895
896         glthread/*, strsignal: Support for MSVC.
897         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
898         including <winsock.h> on MSVC 9.
899         * lib/glthread/lock.h: Likewise.
900         * lib/glthread/thread.h: Likewise.
901         * lib/glthread/tls.h: Likewise.
902         * lib/glthread/yield.h: Likewise.
903         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
904         if HAVE_UNISTD_H is false.
905         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
906
907 2011-10-03  Bruno Haible  <bruno@clisp.org>
908
909         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
910         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
911         Set to 100000.
912
913 2011-10-03  Bruno Haible  <bruno@clisp.org>
914
915         acl: Fix specification.
916         * lib/file-has-acl.c (file_has_acl): Fix specification.
917
918 2011-10-03  Bruno Haible  <bruno@clisp.org>
919
920         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
921         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
922         (compute_curr_prefix, shared_library_fullname,
923         find_shared_library_fullname, get_shared_library_fullname, relocate):
924         Use it together with PIC && INSTALLDIR.
925         Reported by <jojelino@gmail.com>
926         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
927
928 2011-10-01  Jim Meyering  <meyering@redhat.com>
929
930         maint.mk: adjust a release-related rule not to require use of gzip
931         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
932         Instead, check each file in $(DIST_ARCHIVES).  This is better for
933         projects that build only .tar.xz files.  Also fix an erroneous test.
934
935         test-linkat: don't leave behind a temporary file
936         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
937         Otherwise, coreutils' "make distcheck" would fail with this:
938           Only in /c/cu/tests/torture/coreutils/test/\
939             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
940           make[2]: *** [my-distcheck] Error 1
941
942         float, math: add omitted file
943         * lib/itold.c: Add file, required for yesterday's float change.
944
945 2011-10-01  Bruno Haible  <bruno@clisp.org>
946
947         isinf: Fix for OpenBSD/x86.
948         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
949         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
950         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
951
952 2011-10-01  Bruno Haible  <bruno@clisp.org>
953
954         isfinite: Fix syntax error in configure test.
955         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
956
957         isfinite: Fix typo.
958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
959         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
960
961 2011-10-01  Bruno Haible  <bruno@clisp.org>
962
963         nonblocking tests: Fix test failure on Linux/IA-64.
964         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
965         Set to 270000.
966
967 2011-10-01  Bruno Haible  <bruno@clisp.org>
968
969         mkfifoat tests: Fix a test failure on mingw.
970         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
971         with error ENOSYS.
972
973 2011-09-30  Bruno Haible  <bruno@clisp.org>
974
975         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
976         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
977         'long double'. Set REPLACE_ITOLD.
978         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
979         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
980         * lib/itold.c: New file.
981         * modules/float (Files): Add lib/itold.c.
982         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
983         (Makefile.am): Substitute REPLACE_ITOLD.
984         * modules/math (Depends-on): Add float.
985         (Makefile.am): Substitute REPLACE_ITOLD.
986         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
987         * doc/posix-headers/math.texi: Likewise.
988         * doc/posix-functions/logl.texi: Likewise.
989
990 2011-09-30  Bruno Haible  <bruno@clisp.org>
991
992         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
993         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
994         Set to 140000.
995
996 2011-09-30  Bruno Haible  <bruno@clisp.org>
997
998         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
999         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1000         invocation, say "right after AC_PROG_CC_STDC", not "right after
1001         AC_PROG_CC".
1002         Reported by Gary V. Vaughan <gary@gnu.org>.
1003
1004 2011-09-30  Bruno Haible  <bruno@clisp.org>
1005
1006         Centralize C99 requirement.
1007         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1008         * modules/stdarg (configure.ac-early): Invoke it instead of
1009         AC_PROG_CC_STDC.
1010         Reported by Gary V. Vaughan and Paul Eggert.
1011
1012 2011-09-29  Bruno Haible  <bruno@clisp.org>
1013
1014         float: Fix LDBL_MAX value on Linux/PowerPC.
1015         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1016         on Linux/PowerPC.
1017         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1018         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1019         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1020         platform.
1021         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1022
1023 2011-09-29  Bruno Haible  <bruno@clisp.org>
1024
1025         doc: Improve doc about gl_EARLY.
1026         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1027         AC_PROG_CC_STDC invocation.
1028         Reported by Gary V. Vaughan <gary@gnu.org>.
1029
1030 2011-09-28  Bruno Haible  <bruno@clisp.org>
1031
1032         fgetc, fputc, fread, fwrite tests: Fix link error.
1033         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1034         on non-MSVC platforms.
1035         * tests/test-fputc.c (main): Likewise.
1036         * tests/test-fread.c (main): Likewise.
1037         * tests/test-fwrite.c (main): Likewise.
1038         Reported by Jim Meyering.
1039
1040 2011-09-27  Bruno Haible  <bruno@clisp.org>
1041
1042         fputc, fwrite tests: Avoid test failure on MSVC.
1043         * tests/test-fgetc.c: Include msvc-inval.h.
1044         (main): Invoke gl_msvc_inval_ensure_handler.
1045         * tests/test-fputc.c: Include msvc-inval.h.
1046         (main): Invoke gl_msvc_inval_ensure_handler.
1047         * tests/test-fread.c: Include msvc-inval.h.
1048         (main): Invoke gl_msvc_inval_ensure_handler.
1049         * tests/test-fwrite.c: Include msvc-inval.h.
1050         (main): Invoke gl_msvc_inval_ensure_handler.
1051         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1052         * modules/fputc-tests (Depends-on): Likewise.
1053         * modules/fread-tests (Depends-on): Likewise.
1054         * modules/fwrite-tests (Depends-on): Likewise.
1055
1056 2011-09-27  Bruno Haible  <bruno@clisp.org>
1057
1058         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1059         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1060         (raise): Remove older, duplicated declaration.
1061         (_gl_raise_SIGPIPE): New declaration.
1062         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1063         (rpl_raise): Remove function.
1064         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1065         a gnulib-defined SIGPIPE here.
1066         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1067         'sigprocmask' has detected missing signal-blocking and the module
1068         'sigpipe' is enabled.
1069         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1070
1071 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1072
1073         base64-tests: avoid memory leak
1074         * tests/test-base64.c (main): Plug memory leak.
1075
1076         base32: new module
1077         * modules/base32: New module.
1078         * lib/base32.c: New file.
1079         * lib/base32.h: Likewise.
1080         * m4/base32.m4: Likewise.
1081         * modules/base32-tests: New test.
1082         * tests/test-base32.c: Likewise.
1083         * MODULES.html.sh (Misc): Mention it.
1084
1085 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1086
1087         gnulib: use more-standard license notice wording
1088         * gnulib-tool (func_emit_copyright_notice): When emitting a
1089         license notice into a file, use the standard wording as suggested
1090         by the current information for GNU maintainers, except say "file"
1091         rather than "program".  The new wording gives a license version
1092         number, which addresses an issue raised by Glenn Morris in
1093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1094         * m4/onceonly.m4: Use that same wording here, too.
1095
1096         dup2: minor simplification
1097         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1098         as lib/dup2.c no longer uses 'inline'.
1099
1100 2011-09-25  Bruno Haible  <bruno@clisp.org>
1101
1102         strings: Fix compilation error on MSVC.
1103         * lib/strings.in.h: Include <stddef.h> for size_t.
1104
1105 2011-09-25  Bruno Haible  <bruno@clisp.org>
1106
1107         fflush et al.: Document limitation on MSVC.
1108         * doc/posix-functions/fflush.texi: Document possible crash in handling
1109         mode other than DEFAULT_HANDLING.
1110         * doc/posix-functions/fgetc.texi: Likewise.
1111         * doc/posix-functions/fputc.texi: Likewise.
1112         * doc/posix-functions/fread.texi: Likewise.
1113         * doc/posix-functions/fwrite.texi: Likewise.
1114
1115 2011-09-25  Bruno Haible  <bruno@clisp.org>
1116
1117         msvc-inval: Allow three invalid parameter handling modes.
1118         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1119         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1120         macros.
1121         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1122         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1123         SANE_LIBRARY_HANDLING as a no-op.
1124         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1125         <stdlib.h>.
1126         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1127
1128 2011-09-25  Bruno Haible  <bruno@clisp.org>
1129
1130         msvc-inval: Make handler multithread-safe.
1131         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1132         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1133         declarations.
1134         (gl_msvc_inval_current): New declaration.
1135         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1136         Operate on the structure returned by gl_msvc_inval_current().
1137         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1138         Remove varaiables.
1139         (tls_index, tls_initialized): New variables.
1140         (not_per_thread): New variable.
1141         (gl_msvc_inval_current): New function.
1142         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1143         returned by gl_msvc_inval_current().
1144
1145 2011-09-25  Bruno Haible  <bruno@clisp.org>
1146
1147         msvc-inval: Install handler globally.
1148         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1149         !_MSC_VER.
1150         (gl_msvc_invalid_parameter_handler): Remove declaration.
1151         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1152         declarations.
1153         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1154         Install the handler globally, don't uninstall it.
1155         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1156         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1157         currently valid, call RaiseException instead.
1158         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1159         for !_MSC_VER.
1160
1161 2011-09-25  Bruno Haible  <bruno@clisp.org>
1162
1163         strerror_r-posix: Fix for MSVC 9.
1164         * lib/strerror_r.c (local_snprintf): New function.
1165         (snprintf): Define to local_snprintf, not to _snprintf.
1166
1167 2011-09-25  Bruno Haible  <bruno@clisp.org>
1168
1169         ftruncate: Support for MSVC 9.
1170         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1171         (chsize_nothrow): New function.
1172         (chsize): Redefine as a macro.
1173         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1174         * modules/ftruncate (Depends-on): Add msvc-inval.
1175
1176 2011-09-25  Bruno Haible  <bruno@clisp.org>
1177
1178         New module 'fstat'.
1179         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1180         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1181         * lib/fchdir.c (rpl_fstat): Remove function.
1182         * m4/fstat.m4: New file.
1183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1184         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1185         declared.
1186         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1187         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1188         * modules/fstat: New file.
1189         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1190         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1191         is set.
1192         * doc/posix-functions/fstat.texi: Mention the new module and the
1193         problem on MSVC.
1194         * NEWS: Mention the change.
1195         * modules/acl (Depends-on): Add fstat.
1196         * modules/chdir-safer (Depends-on): Likewise.
1197         * modules/chown (Depends-on): Likewise.
1198         * modules/copy-file (Depends-on): Likewise.
1199         * modules/fchdir (Depends-on): Likewise.
1200         * modules/fdopendir (Depends-on): Likewise.
1201         * modules/fopen (Depends-on): Likewise.
1202         * modules/fts (Depends-on): Likewise.
1203         * modules/getcwd (Depends-on): Likewise.
1204         * modules/isapipe (Depends-on): Likewise.
1205         * modules/linkat (Depends-on): Likewise.
1206         * modules/lseek (Depends-on): Likewise.
1207         * modules/mkdir-p (Depends-on): Likewise.
1208         * modules/open (Depends-on): Likewise.
1209         * modules/openat (Depends-on): Likewise.
1210         * modules/read-file (Depends-on): Likewise.
1211         * modules/renameat (Depends-on): Likewise.
1212         * modules/utimens (Depends-on): Likewise.
1213
1214 2011-09-25  Bruno Haible  <bruno@clisp.org>
1215
1216         linkat: Fix compilation on MSVC 9.
1217         * lib/linkat.c: Don't include <stdint.h>.
1218
1219 2011-09-25  Bruno Haible  <bruno@clisp.org>
1220
1221         fclose: Support for MSVC 9.
1222         * lib/fclose.c: Include msvc-inval.h.
1223         (fclose_nothrow): New function.
1224         (rpl_fclose): Use it.
1225         * modules/fclose (Depends-on): Add msvc-inval.
1226         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1227
1228 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         dup2: minor simplifications
1231         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1232         that it's a performance win.
1233         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1234         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1235
1236 2011-09-24  Jim Meyering  <meyering@redhat.com>
1237
1238         test-futimens: avoid a warning from gcc -Wshadow
1239         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1240         to avoid a shadowing warning.
1241
1242 2011-09-24  Bruno Haible  <bruno@clisp.org>
1243
1244         fdopen: Support for MSVC 9.
1245         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1246         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1247         * lib/fdopen.c: Include msvc-inval.h.
1248         (fdopen_nothrow): New function.
1249         (rpl_fdopen): Use it.
1250         * modules/fdopen (Depends-on): Add msvc-inval.
1251         * modules/fclose-tests (Depends-on): Add fdopen.
1252         * modules/fflush-tests (Depends-on): Likewise.
1253         * modules/fgetc-tests (Depends-on): Likewise.
1254         * modules/fputc-tests (Depends-on): Likewise.
1255         * modules/fread-tests (Depends-on): Likewise.
1256         * modules/freopen-tests (Depends-on): Likewise.
1257         * modules/fseeko-tests (Depends-on): Likewise.
1258         * modules/ftello-tests (Depends-on): Likewise.
1259         * modules/fwrite-tests  (Depends-on): Likewise.
1260         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1261
1262 2011-09-24  Bruno Haible  <bruno@clisp.org>
1263
1264         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1265         * modules/fgetc-tests (Depends-on): Add unistd.
1266         * modules/fputc-tests (Depends-on): Likewise.
1267         * modules/fread-tests (Depends-on): Likewise.
1268         * modules/fwrite-tests (Depends-on): Likewise.
1269
1270 2011-09-24  Bruno Haible  <bruno@clisp.org>
1271
1272         dup: Simplify autoconf test.
1273         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1274         on gl_MSVC_INVAL's result.
1275
1276 2011-09-24  Bruno Haible  <bruno@clisp.org>
1277
1278         Tests for function fwrite().
1279         * modules/fwrite-tests: New file.
1280         * tests/test-fwrite.c: New file.
1281         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1282
1283         Tests for function fread().
1284         * modules/fread-tests: New file.
1285         * tests/test-fread.c: New file.
1286         * modules/stdio-tests (Depends-on): Add fread-tests.
1287
1288         Activate fputc tests.
1289         * modules/stdio-tests (Depends-on): Add fputc-tests.
1290
1291         Enhance fgetc, fputc tests.
1292         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1293         * tests/test-fputc.c (main): Likewise.
1294
1295 2011-09-24  Bruno Haible  <bruno@clisp.org>
1296
1297         write: Support for MSVC 9.
1298         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1299         is not 1.
1300         * lib/write.c (write_nothrow): New function.
1301         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1302         not 1. Use write_nothrow.
1303         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1304         invalid parameter handler.
1305         (gl_PREREQ_WRITE): New macro.
1306         * modules/write (Depends-on): Add msvc-inval.
1307         (configure.ac): Invoke gl_PREREQ_WRITE.
1308         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1309
1310 2011-09-24  Bruno Haible  <bruno@clisp.org>
1311
1312         read: Fix last commit.
1313         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1314
1315 2011-09-24  Bruno Haible  <bruno@clisp.org>
1316
1317         dup2: Fix last commit.
1318         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1319         (rpl_dup2): Disable fcntl workaround on native Windows.
1320
1321         sigprocmask: Make code safer.
1322         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1323         section that changes macro definitions for this compilation unit.
1324
1325 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         dup2: clarify by coalescing Windows-specific material
1328         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1329         "msvc-nothrow.h"' to the Windows-specific section, so that the
1330         Emacs source need not contain these include files.
1331         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1332         Windows-specific fixes into this function rather than just the
1333         nothrow fix, as this shortens and clarifies the code.  Always
1334         define as a function, as that's a bit cleaner than having it be
1335         sometimes a function and sometimes a macro.
1336         (rpl_dup2): Move the Windows-specific stuff out of here and into
1337         ms_windows_dup2.  Don't protect the Haiku-related fix with
1338         "#if !defined __linux__", as the same code also works around
1339         a Linux kernel bug, and it doesn't add any system calls on any
1340         platform.  Add comment about FreeBSD 6.1.
1341
1342         sigprocmask: move #include directive
1343         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1344         Windows-specific section, so that the Emacs source need not
1345         contain msvc-inval.h.
1346
1347 2011-09-23  Bruno Haible  <bruno@clisp.org>
1348
1349         read: Support for MSVC 9.
1350         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1351         is not 1.
1352         * lib/read.c (read_nothrow): New function.
1353         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1354         read_nothrow.
1355         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1356         invalid parameter handler.
1357         (gl_PREREQ_READ): New macro.
1358         * modules/read (Depends-on): Add msvc-inval.
1359         (configure.ac): Invoke gl_PREREQ_READ.
1360         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1361
1362 2011-09-23  Bruno Haible  <bruno@clisp.org>
1363
1364         close: Support for MSVC 9.
1365         * lib/close.c: Include <errno.h>, msvc-inval.h.
1366         (close_nothrow): New function.
1367         (rpl_close): Use it.
1368         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1369         invalid parameter handler.
1370         * modules/close (Depends-on): Add msvc-inval.
1371         * modules/dup2-tests (Depends-on): Add close.
1372         * modules/dup3-tests (Depends-on): Likewise.
1373         * modules/fcntl-tests (Depends-on): Likewise.
1374         * modules/spawn-pipe-tests (Depends-on): Likewise.
1375         * modules/unistd-safer-tests (Depends-on): Likewise.
1376         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1377
1378 2011-09-23  Bruno Haible  <bruno@clisp.org>
1379
1380         New module 'dup'.
1381         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1382         Allow replacement.
1383         * lib/dup.c: New file.
1384         * lib/fchdir.c (rpl_dup): Remove function.
1385         * m4/dup.m4: New file.
1386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1387         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1388         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1389         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1390         * modules/dup: New file.
1391         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1392         'dup' module is in use.
1393         * modules/fdopendir (Depends-on): Add dup.
1394         * modules/fdutimensat-tests (Depends-on): Likewise.
1395         * modules/fts (Depends-on): Likewise.
1396         * modules/futimens-tests (Depends-on): Likewise.
1397         * modules/posix_spawnp-tests (Depends-on): Likewise.
1398         * modules/unistd-safer-tests (Depends-on): Likewise.
1399         * modules/utimens-tests (Depends-on): Likewise.
1400         * doc/posix-functions/dup.texi: Mention the new module and the problem
1401         on MSVC.
1402
1403 2011-09-23  Bruno Haible  <bruno@clisp.org>
1404
1405         getdtablesize: Support for MSVC 9.
1406         * lib/getdtablesize.c: Include msvc-inval.h.
1407         (_setmaxstdio_nothrow): New function.
1408         (_setmaxstdio): Redefine it.
1409         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1410         * modules/getdtablesize (Depends-on): Add msvc-inval.
1411         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1412
1413 2011-09-23  Bruno Haible  <bruno@clisp.org>
1414
1415         signal-h: Rename from signal.
1416         * modules/signal-h: Renamed from modules/signal.
1417         * modules/pthread_sigmask (Depends-on): Update.
1418         * modules/raise (Depends-on): Likewise.
1419         * modules/sigaction (Depends-on): Likewise.
1420         * modules/sigpipe (Depends-on): Likewise.
1421         * modules/sigprocmask (Depends-on): Likewise.
1422         * modules/sys_select (Depends-on): Likewise.
1423         * modules/signal-h-tests: Renamed from modules/signal-tests.
1424         (Files, Depends-on, Makefile.am): Update.
1425         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1426         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1427         (Files, Makefile.am): Update.
1428         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1429         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1430         * modules/signal: New placeholder file.
1431         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1432         * doc/posix-headers/signal.texi: Update.
1433         * NEWS: Mention the change.
1434
1435 2011-09-23  Bruno Haible  <bruno@clisp.org>
1436
1437         sigprocmask: Avoid crashes through signal() on MSVC 9.
1438         * lib/sigprocmask.c: Include msvc-inval.h.
1439         (signal_nothrow): New function.
1440         (signal): Redefine it.
1441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1442         * modules/sigprocmask (Depends-on): Add msvc-inval.
1443         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1444
1445 2011-09-23  Bruno Haible  <bruno@clisp.org>
1446
1447         Tests for module 'raise'.
1448         * modules/raise-tests: New file.
1449         * tests/test-raise.c: New file.
1450
1451         raise: Support for MSVC.
1452         * lib/signal.in.h (raise): New declaration.
1453         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1454         for native Windows platforms.
1455         * m4/raise.m4: New file.
1456         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1457         HAVE_RAISE, REPLACE_RAISE.
1458         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1459         REPLACE_RAISE.
1460         * modules/raise (Status, Notice): Remove fields.
1461         (Files): Add m4/raise.m4.
1462         (Depends-on): Add signal, msvc-inval.
1463         (configure.ac): Use the common idioms.
1464         (Maintainer): Add me.
1465         * tests/test-signal-c++.cc: Check the signature of raise.
1466         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1467
1468 2011-09-23  Bruno Haible  <bruno@clisp.org>
1469
1470         pipe2: Fix compilation on pre-C99 compilers.
1471         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1472
1473 2011-09-23  Bruno Haible  <bruno@clisp.org>
1474
1475         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1476         * lib/msvc-nothrow.h: New file.
1477         * lib/msvc-nothrow.c: New file.
1478         * m4/msvc-nothrow.m4: New file.
1479         * modules/msvc-nothrow: New file.
1480         * lib/dup2.c: Include msvc-nothrow.h.
1481         (rpl_dup2): No need to protect _get_osfhandle call here.
1482         * lib/accept4.c: Include msvc-nothrow.h.
1483         * lib/error.c: Likewise.
1484         * lib/fcntl.c: Likewise.
1485         * lib/lseek.c: Likewise.
1486         * lib/nonblocking.c: Likewise.
1487         * lib/poll.c: Likewise.
1488         * lib/read.c: Likewise.
1489         * lib/select.c: Likewise.
1490         * lib/sockets.h: Likewise.
1491         * lib/sockets.c: Likewise.
1492         * lib/stdio-read.c: Likewise.
1493         * lib/stdio-write.c: Likewise.
1494         * lib/write.c: Likewise.
1495         * lib/w32sock.h: Likewise.
1496         * lib/w32spawn.h: Likewise.
1497         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1498         * lib/fsync.c: Likewise.
1499         * lib/isapipe.c: Likewise.
1500         * modules/dup2 (Depends-on): Add msvc-nothrow.
1501         * modules/accept4 (Depends-on): Likewise.
1502         * modules/error (Depends-on): Likewise.
1503         * modules/fcntl (Depends-on): Likewise.
1504         * modules/lseek (Depends-on): Likewise.
1505         * modules/nonblocking (Depends-on): Likewise.
1506         * modules/poll (Depends-on): Likewise.
1507         * modules/read (Depends-on): Likewise.
1508         * modules/select (Depends-on): Likewise.
1509         * modules/sockets (Depends-on): Likewise.
1510         * modules/sigpipe (Depends-on): Likewise.
1511         * modules/write (Depends-on): Likewise.
1512         * modules/accept (Depends-on): Likewise.
1513         * modules/bind (Depends-on): Likewise.
1514         * modules/connect (Depends-on): Likewise.
1515         * modules/gethostname (Depends-on): Likewise.
1516         * modules/getpeername (Depends-on): Likewise.
1517         * modules/getsockname (Depends-on): Likewise.
1518         * modules/getsockopt (Depends-on): Likewise.
1519         * modules/ioctl (Depends-on): Likewise.
1520         * modules/listen (Depends-on): Likewise.
1521         * modules/recv (Depends-on): Likewise.
1522         * modules/recvfrom (Depends-on): Likewise.
1523         * modules/send (Depends-on): Likewise.
1524         * modules/sendto (Depends-on): Likewise.
1525         * modules/setsockopt (Depends-on): Likewise.
1526         * modules/shutdown (Depends-on): Likewise.
1527         * modules/socket (Depends-on): Likewise.
1528         * modules/execute (Depends-on): Likewise.
1529         * modules/spawn-pipe (Depends-on): Likewise.
1530         * modules/flock (Depends-on): Likewise.
1531         * modules/fsync (Depends-on): Likewise.
1532         * modules/isapipe (Depends-on): Likewise.
1533         * tests/test-cloexec.c: Include msvc-nothrow.h.
1534         * tests/test-dup-safer.c: Likewise.
1535         * tests/test-dup2.c: Likewise.
1536         * tests/test-dup3.c: Likewise.
1537         * tests/test-fcntl.c: Likewise.
1538         * tests/test-pipe.c: Likewise.
1539         * tests/test-pipe2.c: Likewise.
1540         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1541         * modules/unistd-safer-tests (Depends-on): Likewise.
1542         * modules/dup2-tests (Depends-on): Likewise.
1543         * modules/dup3-tests (Depends-on): Likewise.
1544         * modules/fcntl-tests (Depends-on): Likewise.
1545         * modules/pipe-posix-tests (Depends-on): Likewise.
1546         * modules/pipe2-tests (Depends-on): Likewise.
1547
1548 2011-09-23  Bruno Haible  <bruno@clisp.org>
1549
1550         dup2: Make code more maintainable.
1551         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1552         (rpl_dup2): Use it.
1553         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1554         * modules/dup2 (configure.ac): Invoke it.
1555         Reported by Paul Eggert.
1556
1557 2011-09-23  Bruno Haible  <bruno@clisp.org>
1558
1559         msvc-inval: Fix compilation error.
1560         * lib/msvc-inval.h: Include <excpt.h>.
1561
1562 2011-09-23  Bruno Haible  <bruno@clisp.org>
1563
1564         mkdir: Tweak for MSVC 9.
1565         * lib/sys_stat.in.h: Update comments.
1566         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1567
1568         Tests for module 'chdir'.
1569         * modules/chdir-tests: New file.
1570         * tests/test-chdir.c: New file.
1571
1572         New module 'chdir'.
1573         * modules/chdir: New file.
1574         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1575         (chdir): New declaration.
1576         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1577         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1578         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1579         * tests/test-unistd-c++.cc: Check signature of chdir.
1580         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1581         * modules/chdir-long (Depends-on): Add chdir.
1582         * modules/fchdir (Depends-on): Likewise.
1583         * modules/rename (Depends-on): Likewise.
1584         * modules/savewd (Depends-on): Likewise.
1585
1586         rmdir: Support for mingw, MSVC 9.
1587         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1588         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1589
1590         getcwd: Tweak for MSVC 9.
1591         * lib/unistd.in.h: Update comments.
1592         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1593
1594 2011-09-22  Bruno Haible  <bruno@clisp.org>
1595
1596         strerror_r-posix: Avoid a link error on MSVC.
1597         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1598         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1599
1600 2011-09-22  Bruno Haible  <bruno@clisp.org>
1601
1602         select: Avoid link errors on MSVC.
1603         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1604         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1605         * modules/pselect (Link): Likewise.
1606         * NEWS: Mention the change.
1607         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1608         test-select-stdin against $(LIB_SELECT).
1609         * modules/pselect-tests (Makefile.am): Link test-pselect against
1610         $(LIB_SELECT).
1611
1612 2011-09-22  Bruno Haible  <bruno@clisp.org>
1613
1614         select: Avoid compilation error on MSVC.
1615         * lib/select.c: Don't include <stdbool.h>.
1616
1617 2011-09-21  Bruno Haible  <bruno@clisp.org>
1618
1619         Consolidate all uses of PATH_MAX in *.m4 files.
1620         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1621         macros.
1622         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1623         and gl_PATHMAX_SNIPPET.
1624         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1626         * modules/chdir-long (Files): Add m4/pathmax.m4.
1627         * modules/getcwd (Files): Likewise.
1628
1629 2011-09-21  Bruno Haible  <bruno@clisp.org>
1630
1631         ftruncate: Un-deprecate, concentrate on Win32 support.
1632         * modules/ftruncate (Status, Notice): Remove sections.
1633         (Depends-on): Add largefile.
1634         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1635         non-mingw platforms.
1636         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1637         include <io.h>.
1638         * modules/perror-tests (Depends-on): Add ftruncate.
1639         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1640         'ftruncate' module.
1641
1642 2011-09-21  Bruno Haible  <bruno@clisp.org>
1643
1644         Add dependencies to new dirent related modules.
1645         * modules/opendir (Depends-on): Add closedir.
1646         * modules/getcwd (Depends-on): Add opendir, closedir.
1647         * modules/dirent-safer-tests (Depends-on): Likewise.
1648         * modules/fdopendir-tests (Depends-on): Likewise.
1649         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1650         * modules/renameat-tests (Depends-on): Likewise.
1651
1652 2011-09-21  Bruno Haible  <bruno@clisp.org>
1653
1654         opendir: Avoid compilation error on mingw.
1655         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1656         * modules/opendir (Depends-on): Add unistd.
1657
1658 2011-09-21  Bruno Haible  <bruno@clisp.org>
1659
1660         ftruncate tests: Avoid a test failure on mingw.
1661         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1662
1663 2011-09-21  Bruno Haible  <bruno@clisp.org>
1664
1665         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1666         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1667         native Windows.
1668
1669 2011-09-21  Bruno Haible  <bruno@clisp.org>
1670
1671         New module 'fdopen'.
1672         * lib/stdio.in.h (fdopen): New declaration.
1673         * lib/fdopen.c: New file.
1674         * m4/fdopen.m4: New file.
1675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1676         REPLACE_FDOPEN.
1677         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1678         REPLACE_FDOPEN.
1679         * modules/fdopen: New file.
1680         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1681         * tests/test-stdio-c++.cc: Check signature of fdopen.
1682         * doc/posix-functions/fdopen.texi: Mention the new module.
1683
1684 2011-09-21  Bruno Haible  <bruno@clisp.org>
1685
1686         unlockpt tests: Avoid test failure on NetBSD 5.1.
1687         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1688         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1689
1690 2011-09-21  Bruno Haible  <bruno@clisp.org>
1691
1692         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1693         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1694         * tests/test-getlogin_r.c (main): Likewise.
1695
1696 2011-09-20  Bruno Haible  <bruno@clisp.org>
1697
1698         time tests: Don't require pid_t.
1699         * doc/posix-headers/time.texi: Revert last change.
1700         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1701         * tests/test-time.c: Comment out the check for pid_t.
1702
1703 2011-09-20  Bruno Haible  <bruno@clisp.org>
1704
1705         fsync tests: Avoid a test failure on mingw.
1706         * tests/test-fsync.c (main): Allow a failure with EIO.
1707
1708 2011-09-20  Bruno Haible  <bruno@clisp.org>
1709
1710         euidaccess: Update comments.
1711         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1712
1713 2011-09-20  Bruno Haible  <bruno@clisp.org>
1714
1715         Ensure EBADF returns for socket functions on mingw.
1716         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1717         descriptor is invalid.
1718         * lib/bind.c (rpl_bind): Likewise.
1719         * lib/connect.c (rpl_connect): Likewise.
1720         * lib/getpeername.c (rpl_getpeername): Likewise.
1721         * lib/getsockname.c (rpl_getsockname): Likewise.
1722         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1723         * lib/listen.c (rpl_listen): Likewise.
1724         * lib/recv.c (rpl_recv): Likewise.
1725         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1726         * lib/send.c (rpl_send): Likewise.
1727         * lib/sendto.c (rpl_sendto): Likewise.
1728         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1729         * lib/shutdown.c (rpl_shutdown): Likewise.
1730
1731 2011-09-20  Bruno Haible  <bruno@clisp.org>
1732
1733         select tests: EBADF tests.
1734         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1735         test_bad_fd): New functions.
1736         (test_function): Invoke also test_bad_fd.
1737
1738 2011-09-20  Bruno Haible  <bruno@clisp.org>
1739
1740         Tests for module 'posix_spawn_file_actions_addopen.
1741         * modules/posix_spawn_file_actions_addopen-tests: New file.
1742         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1743
1744         Tests for module 'posix_spawn_file_actions_adddup2'.
1745         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1746         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1747
1748         Tests for module 'posix_spawn_file_actions_addclose'.
1749         * modules/posix_spawn_file_actions_addclose-tests: New file.
1750         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1751
1752 2011-09-20  Bruno Haible  <bruno@clisp.org>
1753
1754         Tests for module 'unlockpt'.
1755         * modules/unlockpt-tests: New file.
1756         * tests/test-unlockpt.c: New file.
1757         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1758
1759         Tests for module 'grantpt'.
1760         * modules/grantpt-tests: New file.
1761         * tests/test-grantpt.c: New file.
1762         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1763
1764 2011-09-20  Bruno Haible  <bruno@clisp.org>
1765
1766         freopen tests: EBADF tests.
1767         * tests/test-freopen.c: Include errno.h, unistd.h.
1768         (main): Add tests for EBADF, commented out for the moment.
1769
1770         fclose tests: EBADF tests.
1771         * tests/test-fclose.c (main): Add tests for EBADF.
1772
1773         fflush tests: EBADF tests.
1774         * tests/test-fflush.c: Include errno.h, macros.h.
1775         (main): Add tests for EBADF.
1776
1777         ftello tests: EBADF tests.
1778         * tests/test-ftello4.sh: New file.
1779         * tests/test-ftello4.c: New file.
1780         * modules/ftello-tests (Files): Add them.
1781         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1782
1783         fseeko tests: EBADF tests.
1784         * tests/test-fseeko4.sh: New file.
1785         * tests/test-fseeko4.c: New file.
1786         * modules/fseeko-tests (Files): Add them.
1787         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1788
1789         Tests for function fputc().
1790         * modules/fputc-tests: New file.
1791         * tests/test-fputc.c: New file.
1792         * modules/stdio-tests (Depends-on): Add fputc-tests.
1793
1794         Tests for function fgetc().
1795         * modules/fgetc-tests: New file.
1796         * tests/test-fgetc.c: New file.
1797         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1798
1799         Tests for function fdopen().
1800         * modules/fdopen-tests: New file.
1801         * tests/test-fdopen.c: New file.
1802         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1803
1804         Tests for module 'vdprintf'.
1805         * modules/vdprintf-tests: New file.
1806         * tests/test-vdprintf.c: New file.
1807
1808         Tests for module 'dprintf'.
1809         * modules/dprintf-tests: New file.
1810         * tests/test-dprintf.c: New file.
1811
1812 2011-09-20  Bruno Haible  <bruno@clisp.org>
1813
1814         Tests for module 'ioctl'.
1815         * modules/ioctl-tests: New file.
1816         * tests/test-ioctl.c: New file.
1817
1818 2011-09-20  Bruno Haible  <bruno@clisp.org>
1819
1820         fcntl tests: EBADF tests.
1821         * tests/test-fcntl.c (main): Add more tests for EBADF.
1822
1823 2011-09-20  Bruno Haible  <bruno@clisp.org>
1824
1825         utimensat tests: EBADF tests.
1826         * tests/test-utimensat.c (main): Add tests for EBADF.
1827
1828         renameat tests: EBADF tests.
1829         * tests/test-renameat.c (main): Add tests for EBADF.
1830
1831         mkfifoat tests: EBADF tests.
1832         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1833
1834         readlinkat tests: EBADF tests.
1835         * tests/test-readlinkat.c (main): Add tests for EBADF.
1836
1837         symlinkat tests: EBADF tests.
1838         * tests/test-symlinkat.c (main): Add tests for EBADF.
1839
1840         linkat tests: EBADF tests.
1841         * tests/test-linkat.c (main): Add tests for EBADF.
1842
1843         Tests for module 'faccessat'.
1844         * modules/faccessat-tests: New file.
1845         * tests/test-faccessat.c: New file.
1846
1847         fdopendir tests: EBADF tests.
1848         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1849
1850         openat tests: EBADF tests.
1851         * tests/test-fchownat.c (main): Add tests for EBADF.
1852         * tests/test-fstatat.c (main): Likewise.
1853         * tests/test-mkdirat.c (main): Likewise.
1854         * tests/test-openat.c (main): Likewise.
1855         * tests/test-unlinkat.c (main): Likewise.
1856         * tests/test-fchmodat.c: New file.
1857         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1858         (Makefile.am): Also run 'test-fchmodat'.
1859
1860 2011-09-20  Bruno Haible  <bruno@clisp.org>
1861
1862         utimens, futimens, fdutimensat tests: EBADF tests.
1863         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1864
1865         Tests for function fstat().
1866         * modules/fstat-tests: New file.
1867         * tests/test-fstat.c: New file.
1868         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1869
1870 2011-09-20  Bruno Haible  <bruno@clisp.org>
1871
1872         test-ttyname_r tests: EBADF tests.
1873         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1874
1875         Tests for module 'isatty'.
1876         * modules/isatty-tests: New file.
1877         * tests/test-isatty.c: New file.
1878
1879         Tests for module 'write'.
1880         * modules/write-tests: New file.
1881         * tests/test-write.c: New file.
1882
1883         Tests for module 'read'.
1884         * modules/read-tests: New file.
1885         * tests/test-read.c: New file.
1886
1887         pwrite tests: EBADF tests.
1888         * tests/test-pwrite.c (main): Add tests for EBADF.
1889
1890         pread tests: EBADF tests.
1891         * tests/test-pread.c (main): Add tests for EBADF.
1892
1893         lseek tests: EBADF tests.
1894         * tests/test-lseek.c (main): Add more tests for EBADF.
1895
1896         Tests for module 'ftruncate'.
1897         * modules/ftruncate-tests: New file.
1898         * tests/test-ftruncate.sh: New file.
1899         * tests/test-ftruncate.c: New file.
1900
1901         fsync tests: EBADF tests.
1902         * tests/test-fsync.c (main): Add more tests for EBADF.
1903
1904         fdatasync tests: EBADF tests.
1905         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1906
1907         Tests for module 'fchown'.
1908         * modules/fchown-tests: New file.
1909         * tests/test-fchown.c: New file.
1910
1911         Tests for module 'fchmod'.
1912         * modules/fchmod-tests: New file.
1913         * tests/test-fchmod.c: New file.
1914
1915         fchdir tests: EBADF tests.
1916         * tests/test-fchdir.c (main): Add more tests for EBADF.
1917
1918         dup2 tests: EBADF tests.
1919         * tests/test-dup2.c (main): Add more tests for EBADF.
1920
1921         Tests for module 'dup'.
1922         * modules/dup-tests: New file.
1923         * tests/test-dup.c: New file.
1924
1925         Tests for module 'close'.
1926         * modules/close-tests: New file.
1927         * tests/test-close.c: New file.
1928
1929 2011-09-20  Bruno Haible  <bruno@clisp.org>
1930
1931         Tests for module 'shutdown'.
1932         * modules/shutdown-tests: New file.
1933         * tests/test-shutdown.c: New file.
1934
1935         Tests for module 'setsockopt'.
1936         * modules/setsockopt-tests: New file.
1937         * tests/test-setsockopt.c: New file.
1938
1939         Tests for module 'sendto'.
1940         * modules/sendto-tests: New file.
1941         * tests/test-sendto.c: New file.
1942
1943         Tests for module 'send'.
1944         * modules/send-tests: New file.
1945         * tests/test-send.c: New file.
1946
1947         Tests for module 'recvfrom'.
1948         * modules/recvfrom-tests: New file.
1949         * tests/test-recvfrom.c: New file.
1950
1951         Tests for module 'recv'.
1952         * modules/recv-tests: New file.
1953         * tests/test-recv.c: New file.
1954
1955         Tests for module 'listen'.
1956         * modules/listen-tests: New file.
1957         * tests/test-listen.c: New file.
1958
1959         Tests for module 'getsockopt'.
1960         * modules/getsockopt-tests: New file.
1961         * tests/test-getsockopt.c: New file.
1962
1963         Tests for module 'getsockname'.
1964         * modules/getsockname-tests: New file.
1965         * tests/test-getsockname.c: New file.
1966
1967         Tests for module 'getpeername'.
1968         * modules/getpeername-tests: New file.
1969         * tests/test-getpeername.c: New file.
1970
1971         Tests for module 'connect'.
1972         * modules/connect-tests: New file.
1973         * tests/test-connect.c: New file.
1974
1975         Tests for module 'bind'.
1976         * modules/bind-tests: New file.
1977         * tests/test-bind.c: New file.
1978
1979         accept4 tests: Fix for native Windows.
1980         * tests/test-accept4.c: Include sockets.h.
1981         (main): Invoke gl_sockets_startup.
1982         * modules/accept4-tests (Depends-on): Add sockets.
1983
1984         accept tests: Fix for native Windows.
1985         * tests/test-accept.c: Include sockets.h.
1986         (main): Invoke gl_sockets_startup.
1987         * modules/accept-tests (Depends-on): Add sockets.
1988
1989 2011-09-19  Bruno Haible  <bruno@clisp.org>
1990
1991         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1992         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1993         do...while(0).
1994         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1995         Suggested by Paul Eggert.
1996
1997 2011-09-19  Bruno Haible  <bruno@clisp.org>
1998
1999         sched: Ensure pid_t is defined.
2000         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2001         not define pid_t.
2002         * lib/sched.in.h: Include <sys/types.h>.
2003         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2005
2006 2011-09-19  Bruno Haible  <bruno@clisp.org>
2007
2008         msvc-inval: Ensure the entire expansion is a single statement.
2009         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2010         of braces.
2011
2012 2011-09-19  Jim Meyering  <meyering@redhat.com>
2013
2014         tests: use printf, not echo in init.sh's warn_ function
2015         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2016         misbehave when given strings containing a backslash or starting
2017         with e.g., -n.  James Youngman suggested setting IFS.
2018
2019 2011-09-19  Eric Blake  <eblake@redhat.com>
2020
2021         futimens: enhance test
2022         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2023         closed non-negative fd.
2024
2025         date: accept 'hence' as opposite of 'ago'
2026         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2027         * tests/test-parse-datetime.c (main): Enhance test.
2028         Suggested by Jesse Wilson.
2029
2030 2011-09-19  Jim Meyering  <meyering@redhat.com>
2031
2032         getcwd: don't fail in a deep directory on a system without openat
2033         Before this change, getcwd would fail when called from a directory
2034         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2035         the non-openat implementation used "..", "../..", "../../..", etc.
2036         to access ancestor directories.  With too many, that string would
2037         be longer than PATH_MAX.
2038         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2039         using gnulib's openat replacement.
2040         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2041         we're using the replacement function.
2042
2043 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2044
2045         maint.mk: avoid warnings from perl about missing files
2046         * top/maint.mk (def_sym_regex): Ignore files listed in
2047         $(gl_other_headers_) that do not exist, say because a project
2048         does not use a corresponding module.
2049
2050 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2051
2052         stat: use pathmax.h only if needed
2053         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2054         This is better for Emacs, which does not have a mingw port and
2055         therefore can avoid the pathmax module.
2056
2057         utimens: remove dependency on dup2
2058         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2059         to work around the Linux kernel bug.
2060         * modules/utimens (Depends-on): Remove dup2.
2061
2062 2011-09-18  Bruno Haible  <bruno@clisp.org>
2063
2064         inet_ntop, inet_pton: Look for it also in libresolv.
2065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2066         libnsl, search for it in libresolv.
2067         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2068         Needed on Solaris 7.
2069
2070 2011-09-18  Bruno Haible  <bruno@clisp.org>
2071
2072         accept, accept4 tests: Avoid link error on Solaris.
2073         * modules/accept-tests (Makefile.am): Link test-accept against
2074         $(LIBSOCKET).
2075         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2076         $(LIBSOCKET).
2077
2078         accept4: Avoid link error on Solaris.
2079         * modules/accept4 (Link): New section.
2080
2081         socket functions: Avoid link errors on Solaris.
2082         * modules/accept (Depends-on): Add socketlib.
2083         (Link): New section.
2084         * modules/bind (Depends-on): Add socketlib.
2085         (Link): New section.
2086         * modules/connect (Depends-on): Add socketlib.
2087         (Link): New section.
2088         * modules/getpeername (Depends-on): Add socketlib.
2089         (Link): New section.
2090         * modules/getsockname (Depends-on): Add socketlib.
2091         (Link): New section.
2092         * modules/getsockopt (Depends-on): Add socketlib.
2093         (Link): New section.
2094         * modules/listen (Depends-on): Add socketlib.
2095         (Link): New section.
2096         * modules/recv (Depends-on): Add socketlib.
2097         (Link): New section.
2098         * modules/recvfrom (Depends-on): Add socketlib.
2099         (Link): New section.
2100         * modules/send (Depends-on): Add socketlib.
2101         (Link): New section.
2102         * modules/sendto (Depends-on): Add socketlib.
2103         (Link): New section.
2104         * modules/setsockopt (Depends-on): Add socketlib.
2105         (Link): New section.
2106         * modules/shutdown (Depends-on): Add socketlib.
2107         (Link): New section.
2108         * modules/socket (Depends-on): Add socketlib.
2109         (Link): New section.
2110
2111 2011-09-18  Bruno Haible  <bruno@clisp.org>
2112
2113         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2114         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2115         than 5 seconds.
2116         * modules/ptsname-tests (configure.ac): Test for alarm.
2117
2118 2011-09-18  Bruno Haible  <bruno@clisp.org>
2119
2120         posix_spawn_file_actions_add*: Fix module dependencies.
2121         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2122         posix_spawn_file_actions_init.
2123         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2124         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2125
2126 2011-09-18  Bruno Haible  <bruno@clisp.org>
2127
2128         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2129         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2130         * tests/test-renameat.c (main): Likewise.
2131
2132 2011-09-18  Bruno Haible  <bruno@clisp.org>
2133
2134         Tests for module 'accept4'.
2135         * modules/accept4-tests: New file.
2136         * tests/test-accept4.c: New file.
2137
2138 2011-09-18  Bruno Haible  <bruno@clisp.org>
2139
2140         Tests for module 'accept'.
2141         * modules/accept-tests: New file.
2142         * tests/test-accept.c: New file.
2143
2144 2011-09-18  Bruno Haible  <bruno@clisp.org>
2145
2146         dup2: Support for MSVC.
2147         * lib/dup2.c: Include msvc-inval.h.
2148         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2149         _get_osfhandle calls.
2150         * modules/dup2 (Depends-on): Add msvc-inval.
2151         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2152
2153         New module 'msvc-inval'.
2154         * lib/msvc-inval.h: New file.
2155         * lib/msvc-inval.c: New file.
2156         * m4/msvc-inval.m4: New file.
2157         * modules/msvc-inval: New file.
2158
2159 2011-09-17  Bruno Haible  <bruno@clisp.org>
2160
2161         Tests for module 'pclose'.
2162         * modules/pclose-tests: New file.
2163
2164         New module 'pclose'.
2165         * lib/stdio.in.h (pclose): New declaration.
2166         * lib/pclose.c: New file.
2167         * m4/pclose.m4: New file.
2168         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2169         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2170         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2171         * modules/pclose: New file.
2172         * modules/popen-tests (Depends-on): Add pclose.
2173         * modules/popen-safer-tests (Depends-on): Likewise.
2174         * doc/posix-functions/pclose.texi: Mention the new module.
2175
2176 2011-09-17  Bruno Haible  <bruno@clisp.org>
2177
2178         popen: Support for MSVC.
2179         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2180         * lib/popen.c (popen): Provide alternate definition for native Windows.
2181         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2183         * modules/popen (Depends-on, configure.ac): Update condition.
2184         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2185         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2186         fixed.
2187
2188 2011-09-17  Bruno Haible  <bruno@clisp.org>
2189
2190         isnanl, isnand, isnanf: Work around MSVC bug.
2191         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2192
2193 2011-09-17  Bruno Haible  <bruno@clisp.org>
2194
2195         sys_socket tests: Fix recent mistake.
2196         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2197
2198 2011-09-17  Bruno Haible  <bruno@clisp.org>
2199
2200         putenv: Support for MSVC.
2201         * modules/putenv (Depends-on): Add environ.
2202         * lib/putenv.c (environ): Disable declaration.
2203         * lib/unistd.in.h: Update comment.
2204
2205 2011-09-17  Bruno Haible  <bruno@clisp.org>
2206
2207         math: Avoid macro redefinition warnings on MSVC.
2208         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2209         Undefine before redefining.
2210
2211 2011-09-17  Bruno Haible  <bruno@clisp.org>
2212
2213         doc: Mention functions which are declared as macros.
2214         * doc/posix-functions/*[fl].texi: Mention that some functions are
2215         defined as macros with arguments only.
2216
2217 2011-09-17  Bruno Haible  <bruno@clisp.org>
2218
2219         Add dependencies to new dirent related modules.
2220         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2221         * modules/fts (Depends-on): Likewise.
2222         * modules/glob (Depends-on): Likewise.
2223         * modules/savedir (Depends-on): Likewise.
2224         * modules/scandir (Depends-on): Likewise.
2225         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2226         * modules/fdopendir (Depends-on): Add opendir.
2227
2228 2011-09-17  Bruno Haible  <bruno@clisp.org>
2229
2230         inet_pton: Support for MSVC on Windows Vista or newer.
2231         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2232         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2233         HAVE_DECL_INET_PTON is defined.
2234         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2235         On platforms with <winsock2.h>, test whether inet_pton is declared in
2236         <ws2tcpip.h>. If so, arrange to replace it.
2237         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2238         REPLACE_INET_PTON.
2239         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2240         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2241         (Depends-on, configure.ac): Update condition.
2242         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2243
2244 2011-09-17  Bruno Haible  <bruno@clisp.org>
2245
2246         inet_ntop: Support for MSVC on Windows Vista or newer.
2247         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2248         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2249         HAVE_DECL_INET_NTOP is defined.
2250         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2251         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2252         <ws2tcpip.h>. If so, arrange to replace it.
2253         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2254         REPLACE_INET_NTOP.
2255         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2256         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2257         (Depends-on, configure.ac): Update condition.
2258         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2259
2260 2011-09-16  Eric Blake  <eblake@redhat.com>
2261
2262         test-fsync: yet another enhancement
2263         * tests/test-fsync.c (main): Also test behavior on read-only text
2264         file.
2265
2266 2011-09-16  Bruno Haible  <bruno@clisp.org>
2267
2268         Enhance fsync, fdatasync tests.
2269         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2270         * tests/test-fdatasync.c (main): Likewise.
2271
2272 2011-09-16  Bruno Haible  <bruno@clisp.org>
2273
2274         Support for MSVC compiler: Ensure mode_t gets defined.
2275         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2276         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2278         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2279         * tests/test-fcntl-h.c: Check that mode_t is defined.
2280         * tests/test-sys_stat.c: Likewise.
2281         * tests/test-sys_types.c: Likewise.
2282         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2283         * doc/posix-headers/sys_stat.texi: Likewise.
2284         * doc/posix-headers/sys_types.texi: Likewise.
2285
2286 2011-09-16  Bruno Haible  <bruno@clisp.org>
2287
2288         sys_stat: Support for MSVC.
2289         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2290         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2291         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2292         MSVC.
2293
2294 2011-09-16  Bruno Haible  <bruno@clisp.org>
2295
2296         Support for MSVC compiler: Ensure off_t gets defined.
2297         * lib/unistd.in.h: Include <sys/types.h>.
2298         * tests/test-fcntl-h.c: Check that off_t is defined.
2299         * tests/test-sys_stat.c: Likewise.
2300         * tests/test-sys_types.c: Likewise.
2301
2302 2011-09-16  Eric Blake  <eblake@redhat.com>
2303
2304         fdatasync: port to Solaris
2305         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2306         * modules/fdatasync (Link): Document it.
2307         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2308
2309         fdatasync: port to MacOS X 10.7
2310         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2311         declared.
2312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2313         * modules/unistd (Makefile.am): Substitute it.
2314         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2315         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2316
2317         fdatasync: minor improvements
2318         * modules/fdatasync (Depends-on): Add condition for fsync.
2319         * lib/fdatasync.c (fdatasync): Add comment.
2320         * tests/test-unistd-c++.cc: Test fdatasync.
2321
2322         unistd: update refs to newer POSIX
2323         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2324         Suggested by Bruno Haible.
2325
2326         fdatasync: new module
2327         * modules/fsync (Description): Document difference to fdatasync.
2328         * modules/fdatasync: New module.
2329         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2330         * lib/fdatasync.c (fdatasync): Likewise.
2331         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2332         defaults.
2333         * modules/unistd (Makefile.am): Set witnesses.
2334         * lib/unistd.in.h (fdatasync): Declare.
2335         * MODULES.html.sh: Document it.
2336         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2337         * modules/fdatasync-tests: New test.
2338         * tests/test-fdatasync.c: Likewise.
2339
2340 2011-09-16  Eric Blake  <eblake@redhat.com>
2341
2342         test-fsync: enhance tests
2343         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2344         * tests/test-fsync.c (main): Enhance test.
2345
2346 2011-09-15  Bruno Haible  <bruno@clisp.org>
2347
2348         Support for MSVC compiler: Ensure ssize_t gets defined.
2349         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2350         * doc/posix-headers/stdio.texi: Likewise.
2351         * modules/stdio (Depends-on): Add ssize_t.
2352         * modules/sys_socket (Depends-on): Likewise.
2353         * modules/sys_types (Depends-on): Likewise.
2354         * modules/sys_uio (Depends-on): Likewise.
2355         * modules/unistd (Depends-on): Likewise.
2356         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2357         * tests/test-sys_types.c: Check that ssize_t is defined.
2358
2359 2011-09-14  Bruno Haible  <bruno@clisp.org>
2360
2361         Avoid using #, the m4 comment starter character, near brackets.
2362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2363         delimiter character in sed expressions.
2364         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2365         Suggested by Eric Blake.
2366
2367         Properly quote AC_CHECK_DECLS' 4th argument.
2368         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2369         argument.
2370         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2371         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2372         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2373         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2374         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2375         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2377         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2378         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2379         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2380         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2381         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2382         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2383         * m4/isinf.m4 (gl_ISINF): Likewise.
2384         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2385         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2386         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2387         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2388         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2390         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2391         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2392         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2393         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2394         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2397         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2399         Reported by Eric Blake.
2400
2401         Properly quote AC_CHECK_DECL's 4th argument.
2402         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2403         argument.
2404         * m4/argp.m4 (gl_ARGP): Likewise.
2405         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2406         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2407         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2408         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2409         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2410         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2412         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2413         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2414         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2415         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2416         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2417         Reported by Eric Blake.
2418
2419 2011-09-14  Eric Blake  <eblake@redhat.com>
2420
2421         opendir: avoid compile warning
2422         * lib/opendir.c (includes): Always include errno.h.
2423         Reported by Tatsuro MATSUOKA.
2424
2425 2011-09-14  Jim Meyering  <meyering@redhat.com>
2426
2427         maint.mk: sc_tight_scope: propagate failure from sub-make
2428         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2429         Reported by Martin von Gagern.
2430
2431 2011-09-13  Bruno Haible  <bruno@clisp.org>
2432
2433         tempname: Support for MSVC.
2434         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2435         MSVC.
2436         * modules/tempname (Depends-on): Add fcntl-h.
2437
2438 2011-09-13  Bruno Haible  <bruno@clisp.org>
2439
2440         sys_time: Support for MSVC.
2441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2442         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2443         include <winsock2.h>.
2444         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2445         function declarations that collide with POSIX.
2446         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2447         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2448
2449 2011-09-13  Bruno Haible  <bruno@clisp.org>
2450
2451         stat: Support for MSVC.
2452         * lib/stat.c: Include pathmax.h.
2453         * modules/stat (Depends-on): Add pathmax.
2454
2455         pathmax: Support for native Windows.
2456         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2457
2458 2011-09-12  Bruno Haible  <bruno@clisp.org>
2459
2460         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2461         * lib/dirent.in.h (struct dirent): New type.
2462         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2463         DT_WHT): New macros.
2464         (DIR): New type.
2465         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2466         (readdir, rewinddir): New declarations.
2467         * lib/dirent-private.h: New file.
2468         * lib/opendir.c: New file.
2469         * lib/readdir.c: New file.
2470         * lib/rewinddir.c: New file.
2471         * lib/closedir.c: New file.
2472         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2473         * m4/opendir.m4: New file.
2474         * m4/readdir.m4: New file.
2475         * m4/rewinddir.m4: New file.
2476         * m4/closedir.m4: New file.
2477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2478         REPLACE_CLOSEDIR here.
2479         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2480         readdir, rewinddir are declared.
2481         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2482         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2483         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2484         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2485         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2486         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2487         * modules/opendir: New file.
2488         * modules/readdir: New file.
2489         * modules/rewinddir: New file.
2490         * modules/closedir: New file.
2491         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2492         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2493         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2494         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2495         * NEWS: Mention the 'fchdir' change.
2496
2497 2011-09-11  Bruno Haible  <bruno@clisp.org>
2498
2499         asm-underscore.m4: Support for MSVC.
2500         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2501         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2502
2503 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2504
2505         Doc about crypt functions.
2506         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2507         needing for _GNU_SOURCE to get crypt.
2508         * doc/posix-functions/encrypt.texi: Likewise.
2509         * doc/posix-functions/setkey.texi: Likewise.
2510
2511 2011-09-11  Bruno Haible  <bruno@clisp.org>
2512
2513         doc: Update regarding MSVC 9.
2514         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2515         tested".
2516         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2517         * doc/posix-headers/*.texi: Likewise.
2518         * doc/pastposix-functions/*.texi: Likewise.
2519         * doc/glibc-functions/*.texi: Likewise.
2520         * doc/glibc-headers/*.texi: Likewise.
2521
2522 2011-09-11  Bruno Haible  <bruno@clisp.org>
2523
2524         unistd et al.: Don't assume <unistd.h> exists.
2525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2526         does not exist.
2527         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2528         exist. But include <stdlib.h>.
2529         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2530         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2531         symlink() does not exist.
2532         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2533         include <io.h> instead.
2534         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2535         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2536         include <direct.h> instead.
2537         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2538         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2539         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2540         <io.h> instead.
2541         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2542         correctly if the system does not have hard links.
2543         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2544         <direct.h> instead.
2545         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2546         it when looking for function declarations.
2547         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2548         <direct.h> and <io.h> instead.
2549         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2550
2551 2011-09-11  Bruno Haible  <bruno@clisp.org>
2552
2553         strcase: Support for MSVC.
2554         * modules/strcase (Status, Notice): Remove obsoletion mark.
2555         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2556         * doc/posix-functions/strncasecmp.texi: Likewise.
2557
2558         strings: Don't assume <strings.h> exists.
2559         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2560         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2561         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2562         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2563
2564 2011-09-11  Bruno Haible  <bruno@clisp.org>
2565
2566         dirent: Don't assume <dirent.h> exists.
2567         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2568         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2569         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2570         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2571
2572 2011-09-11  Bruno Haible  <bruno@clisp.org>
2573
2574         Fix wint_t on MSVC.
2575         * lib/wchar.in.h (wint_t): On MSVC, override it.
2576         * lib/wctype.in.h (wint_t): Likewise.
2577         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2578         MSVC.
2579         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2580         * doc/posix-headers/wctype.texi: Likewise.
2581
2582 2011-09-11  Bruno Haible  <bruno@clisp.org>
2583
2584         sys_types: Fix typo.
2585         * lib/sys_types.in.h: Fix typo in comment.
2586         Reported by Paul Eggert.
2587
2588         Support for MSVC compiler: Ensure size_t gets defined.
2589         * modules/strings (Depends-on): Add 'sys_types'.
2590         * modules/sys_uio (Depends-on): Likewise.
2591         * lib/sys_uio.in.h: Update comment.
2592
2593         C++ tests for module 'sys_types'.
2594         * modules/sys_types-c++-tests: New file.
2595         * tests/test-sys_types-c++.cc: New file.
2596
2597         Tests for module 'sys_types'.
2598         * modules/sys_types-tests: New file.
2599         * tests/test-sys_types.c: New file.
2600
2601         New module 'sys_types'.
2602         * lib/sys_types.in.h: New file.
2603         * m4/sys_types_h.m4: New file.
2604         * modules/sys_types: New file.
2605         * doc/posix-headers/sys_types.texi: Mention the new module and the
2606         size_t problem on MSVC 9.
2607
2608 2011-09-11  Bruno Haible  <bruno@clisp.org>
2609
2610         Support for MSVC compiler: Avoid division by a literal 0.
2611         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2613         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2614         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2615         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2616         * tests/infinity.h: New file.
2617         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2618         on MSVC.
2619         * tests/test-ceilf1.c: Include infinity.h.
2620         (main): Use Infinityf.
2621         * tests/test-ceil1.c: Include infinity.h.
2622         (main): Use Infinityd.
2623         * tests/test-ceill.c: Include infinity.h.
2624         (main): Use Infinityl.
2625         * tests/test-dprintf-posix.c: Include infinity.h.
2626         (test_function): Use Infinityd.
2627         * tests/test-floorf1.c: Include infinity.h.
2628         (main): Use Infinityf.
2629         * tests/test-floor1.c: Include infinity.h.
2630         (main): Use Infinityd.
2631         * tests/test-floorl.c: Include infinity.h.
2632         (main): Use Infinityl.
2633         * tests/test-fprintf-posix.c: Include infinity.h.
2634         (test_function): Use Infinityd.
2635         * tests/test-frexp.c: Include infinity.h.
2636         (main): Use Infinityd.
2637         * tests/test-frexpl.c: Include infinity.h.
2638         (main): Use Infinityl.
2639         * tests/test-isfinite.c: Include infinity.h.
2640         (test_isfinitef): Use Infinityf.
2641         (test_isfinited): Use Infinityd.
2642         (test_isfinitel): Use Infinityl.
2643         * tests/test-isinf.c: Include infinity.h.
2644         (test_isinff): Use Infinityf.
2645         (test_isinfd): Use Infinityd.
2646         (test_isinfl): Use Infinityl.
2647         * tests/test-isnan.c: Include infinity.h.
2648         (test_float): Use Infinityf.
2649         (test_double): Use Infinityd.
2650         (test_long_double): Use Infinityl.
2651         * tests/test-isnanf.h: Include infinity.h.
2652         (main): Use Infinityf.
2653         * tests/test-isnand.h: Include infinity.h.
2654         (main): Use Infinityd.
2655         * tests/test-isnanl.h: Include infinity.h.
2656         (main): Use Infinityl.
2657         * tests/test-ldexpl.c: Include infinity.h.
2658         (main): Use Infinityl.
2659         * tests/test-printf-posix.h: Include infinity.h.
2660         (test_function): Use Infinityd.
2661         * tests/test-roundf1.c: Include infinity.h.
2662         (main): Use Infinityf.
2663         * tests/test-round1.c: Include infinity.h.
2664         (main): Use Infinityd.
2665         * tests/test-roundl.c: Include infinity.h.
2666         (main): Use Infinityl.
2667         * tests/test-signbit.c: Include infinity.h.
2668         (test_signbitf): Use Infinityf.
2669         (test_signbitd): Use Infinityd.
2670         (test_signbitl): Use Infinityl.
2671         * tests/test-snprintf-posix.h: Include infinity.h.
2672         (test_function): Use Infinityd, Infinityl.
2673         * tests/test-sprintf-posix.h: Include infinity.h.
2674         (test_function): Use Infinityd, Infinityl.
2675         * tests/test-truncf1.c: Include infinity.h.
2676         (main): Use Infinityf.
2677         * tests/test-trunc1.c: Include infinity.h.
2678         (main): Use Infinityd.
2679         * tests/test-truncl.c: Include infinity.h.
2680         (main): Use Infinityl.
2681         * tests/test-vasnprintf-posix.c: Include infinity.h.
2682         (test_function): Use Infinityd, Infinityl.
2683         * tests/test-vasprintf-posix.c: Include infinity.h.
2684         (test_function): Use Infinityd, Infinityl.
2685         * modules/ceilf-tests (Files): Add tests/infinity.h.
2686         * modules/ceil-tests (Files): Likewise.
2687         * modules/ceill-tests (Files): Likewise.
2688         * modules/dprintf-posix-tests (Files): Likewise.
2689         * modules/floorf-tests (Files): Likewise.
2690         * modules/floor-tests (Files): Likewise.
2691         * modules/floorl-tests (Files): Likewise.
2692         * modules/fprintf-posix-tests (Files): Likewise.
2693         * modules/frexp-tests (Files): Likewise.
2694         * modules/frexp-nolibm-tests (Files): Likewise.
2695         * modules/frexpl-tests (Files): Likewise.
2696         * modules/frexpl-nolibm-tests (Files): Likewise.
2697         * modules/isfinite-tests (Files): Likewise.
2698         * modules/isinf-tests (Files): Likewise.
2699         * modules/isnan-tests (Files): Likewise.
2700         * modules/isnanf-tests (Files): Likewise.
2701         * modules/isnanf-nolibm-tests (Files): Likewise.
2702         * modules/isnand-tests (Files): Likewise.
2703         * modules/isnand-nolibm-tests (Files): Likewise.
2704         * modules/isnanl-tests (Files): Likewise.
2705         * modules/isnanl-nolibm-tests (Files): Likewise.
2706         * modules/ldexpl-tests (Files): Likewise.
2707         * modules/printf-posix-tests (Files): Likewise.
2708         * modules/roundf-tests (Files): Likewise.
2709         * modules/round-tests (Files): Likewise.
2710         * modules/roundl-tests (Files): Likewise.
2711         * modules/signbit-tests (Files): Likewise.
2712         * modules/snprintf-posix-tests (Files): Likewise.
2713         * modules/sprintf-posix-tests (Files): Likewise.
2714         * modules/truncf-tests (Files): Likewise.
2715         * modules/trunc-tests (Files): Likewise.
2716         * modules/truncl-tests (Files): Likewise.
2717         * modules/vasnprintf-posix-tests (Files): Likewise.
2718         * modules/vasprintf-posix-tests (Files): Likewise.
2719         * modules/vdprintf-posix-tests (Files): Likewise.
2720         * modules/vfprintf-posix-tests (Files): Likewise.
2721         * modules/vprintf-posix-tests (Files): Likewise.
2722         * modules/vsnprintf-posix-tests (Files): Likewise.
2723         * modules/vsprintf-posix-tests (Files): Likewise.
2724         * modules/xprintf-posix-tests (Files): Likewise.
2725
2726 2011-09-11  Bruno Haible  <bruno@clisp.org>
2727
2728         Ensure pid_t gets defined.
2729         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2730         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2731         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2732         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2733         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2734         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2735         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2736         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2737         * tests/test-fcntl-h.c: Check that pid_t is defined.
2738         * tests/test-sched.c: Likewise.
2739         * tests/test-termios.c: Likewise.
2740         * tests/test-time.c: Likewise.
2741         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2742         * doc/posix-headers/signal.texi: Likewise.
2743         * doc/posix-headers/sys_types.texi: Likewise.
2744         * doc/posix-headers/time.texi: Likewise.
2745
2746 2011-09-11  Bruno Haible  <bruno@clisp.org>
2747
2748         acl: Fix compilation on Solaris 10 (older version).
2749         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2750         of ACE_EVERYONE.
2751         * lib/set-mode-acl.c (qset_acl): Likewise.
2752         Reported by Christian Jullien <eligis@orange.fr>.
2753
2754 2011-09-10  Bruno Haible  <bruno@clisp.org>
2755
2756         iconv, unsetenv: Add support for MSVC compiler.
2757         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2758         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2759
2760 2011-09-10  Bruno Haible  <bruno@clisp.org>
2761
2762         *printf: Add support for MSVC compiler.
2763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2764         handles the exception caused by the %n directive. When cross-compiling,
2765         guess no on native Windows.
2766         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2767         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2768         emulate it through vsnprintf.
2769         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2770         * doc/posix-functions/dprintf.texi: Update documentation regarding
2771         MSVC 9.
2772         * doc/posix-functions/fprintf.texi: Likewise.
2773         * doc/posix-functions/printf.texi: Likewise.
2774         * doc/posix-functions/snprintf.texi: Likewise.
2775         * doc/posix-functions/sprintf.texi: Likewise.
2776         * doc/posix-functions/swprintf.texi: Likewise.
2777         * doc/posix-functions/vdprintf.texi: Likewise.
2778         * doc/posix-functions/vfprintf.texi: Likewise.
2779         * doc/posix-functions/vprintf.texi: Likewise.
2780         * doc/posix-functions/vsnprintf.texi: Likewise.
2781         * doc/posix-functions/vsprintf.texi: Likewise.
2782         * doc/glibc-functions/asprintf.texi: Likewise.
2783         * doc/glibc-functions/obstack_printf.texi: Likewise.
2784         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2785         * doc/glibc-functions/vasprintf.texi: Likewise.
2786
2787 2011-09-10  Bruno Haible  <bruno@clisp.org>
2788
2789         nocrash: Add support for native Windows.
2790         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2791
2792 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2793             Bruno Haible  <bruno@clisp.org>
2794
2795         absolute-header, include-next: Add support for MSVC compiler.
2796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2797         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2798         directory separator in #line directives.
2799         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2800         recognize also backslash as directory separator in #line directives.
2801
2802 2011-09-08  Jim Meyering  <meyering@redhat.com>
2803
2804         maint.mk: mark the post-release commit log with "maint: " prefix
2805         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2806         one-line commit-log summary.
2807
2808 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2809             Bruno Haible  <bruno@clisp.org>
2810
2811         Doc about crypt functions.
2812         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2813         systems.
2814         * doc/posix-functions/encrypt.texi: Likewise.
2815         * doc/posix-functions/setkey.texi: Likewise.
2816
2817 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2818
2819         * lib/gc.h: Fix copyright header.
2820
2821 2011-09-07  Bruno Haible  <bruno@clisp.org>
2822
2823         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2824         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2825         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2826
2827 2011-09-07  Bruno Haible  <bruno@clisp.org>
2828
2829         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2830         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2831         * lib/freopen.c: Likewise.
2832         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2833         * lib/lstat.c: Likewise.
2834         * lib/stat.c: Likewise.
2835         * lib/open.c: Use different syntax for include of <fcntl.h>.
2836         * lib/openat.c: Include fcntl.h again, explicitly.
2837
2838 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2839
2840         parse-datetime: document the newly accepted format
2841         * doc/parse-datetime.texi (Combined date and time of day items):
2842         New section.
2843
2844 2011-09-06  Bruno Haible  <bruno@clisp.org>
2845
2846         acl: Fix a test failure on newer Solaris 10 with ZFS.
2847         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2848         ENOSYS as no ACL.
2849         Reported by Jim Meyering.
2850
2851 2011-09-06  Bruno Haible  <bruno@clisp.org>
2852
2853         acl: Update for AIX >= 5.3 with NFS.
2854         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2855         ENOSYS as no ACL.
2856
2857         acl: Fix a test failure on AIX >= 5.3 with NFS.
2858         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2859         as no ACL.
2860
2861 2011-09-06  Bruno Haible  <bruno@clisp.org>
2862
2863         acl: Fix a test failure on IRIX 6.5 with NFS.
2864         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2865         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2866         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2867         * lib/copy-acl.c (qcopy_acl): Likewise.
2868
2869 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2870
2871         openat: port to AIX 7.1 with large files
2872         AIX 7.1 does a "#define openat open64at" if large files are in use,
2873         so we can't simply #undef openat.  Use the orig_openat trick (similar
2874         to orig_open in lib/open.c) to work around the problem.  Problem
2875         reported by Kevin Brott for GNU tar, in the thread containing
2876         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2877         * lib/openat.c (__need_system_fcntl_h): Define first.
2878         Include <fcntl.h> and <sys/types.h> before undefining.
2879         (orig_openat) [HAVE_OPENAT]: New inline function.
2880         (openat) [HAVE_OPENAT]: Do not undef.
2881         (rpl_openat): Use orig_openat, not openat.
2882
2883 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2884             Bruno Haible  <bruno@clisp.org>
2885
2886         acl: Avoid errors on NonStop Kernel.
2887         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2888         ENOTSUP errors.
2889
2890 2011-09-05  Bruno Haible  <bruno@clisp.org>
2891
2892         acl: Clean up Solaris code.
2893         * lib/acl-internal.h: Remove no-op #if.
2894         * lib/file-has-acl.c: Likewise.
2895         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2896         * lib/copy-acl.c (qcopy_acl): Likewise.
2897
2898 2011-09-05  Bruno Haible  <bruno@clisp.org>
2899
2900         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2901         binaries built on the original Solaris 10.
2902         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2903         trivial.
2904
2905 2011-09-05  Bruno Haible  <bruno@clisp.org>
2906
2907         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2908         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2909         10.
2910         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2911         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2912         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2913         instead of acl_get, facl_get, acl_set, facl_set.
2914
2915 2011-09-05  Bruno Haible  <bruno@clisp.org>
2916
2917         copy-file: Try unit tests on more file systems.
2918         * tests/test-copy-file-1.sh: New file.
2919         * tests/test-copy-file-2.sh: New file.
2920         * modules/copy-file-tests (Files): Add them.
2921         (Makefile.am): Add them to TESTS.
2922
2923         acl: Try unit tests on more file systems.
2924         * tests/test-file-has-acl-1.sh: New file.
2925         * tests/test-file-has-acl-2.sh: New file.
2926         * tests/test-set-mode-acl-1.sh: New file.
2927         * tests/test-set-mode-acl-2.sh: New file.
2928         * tests/test-copy-acl-1.sh: New file.
2929         * tests/test-copy-acl-2.sh: New file.
2930         * modules/acl-tests (Files): Add them.
2931         (Makefile.am): Add them to TESTS.
2932
2933 2011-09-04  Bruno Haible  <bruno@clisp.org>
2934
2935         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2936         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2937         10.
2938         (OLD_ALLOW, OLD_DENY): New macros.
2939         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2940         ACE_ACCESS_ALLOWED_ACE_TYPE.
2941         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2942         ACE_ACCESS_DENIED_ACE_TYPE.
2943         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2944         (NEW_ACE_EXECUTE): Fix value.
2945         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2946         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2947         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2948         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2949         NEW_ACE_SYNCHRONIZE): New macros.
2950         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2951         instead of acl_fromtext, acl_set, facl_set.
2952         Fixes a coreutils/tests/cp/perm failure.
2953
2954 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         openat: test for fstatat (..., 0) bug
2957         Further testing with tar suggests that fstatat (..., 0)
2958         does not work in general, on AIX 7.1; see
2959         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2960         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2961         replacement fstatat (which is what older AIX releases were using
2962         anyway).
2963         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2964         use is now changed to orig_fstatat.  This was probably the right
2965         thing to do anyway.
2966         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2967         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2968         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2969         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2970         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2971         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2972         if the bug is found.
2973
2974         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2975         This tests for another fstatat bug on AIX 7.1:
2976         fstatat (AT_FDCWD, ..., 0) does not work.  See
2977         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2978         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2979         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2980         (rpl_fstatat): Adjust so that it works around either (or both)
2981         bugs if present.
2982         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2983
2984 2011-09-03  Karl Berry  <karl@gnu.org>
2985
2986         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2987         in index entries.
2988
2989 2011-09-02  Bruno Haible  <bruno@clisp.org>
2990
2991         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2992         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2993         values of AR, ARFLAGS, RANLIB.
2994         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2995
2996 2011-09-02  Bruno Haible  <bruno@clisp.org>
2997
2998         Find 'ar' program that fits with --host argument.
2999         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3000
3001 2011-09-02  Bruno Haible  <bruno@clisp.org>
3002
3003         tests: init.sh: Support any non-GNU diff.
3004         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3005         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3006         Solaris 8.
3007
3008 2011-09-02  Bruno Haible  <bruno@clisp.org>
3009
3010         tests: init.sh: work also with any non-GNU diff that supports -u
3011         * tests/init.sh: Relax check for diff -u support.
3012         Rather than checking for GNU diff via --version, simply check
3013         for support for -u itself.  Useful at least on OpenBSD 4.9,
3014         AIX 7.1, IRIX 6.5, and Solaris 10.
3015
3016 2011-09-01  Bruno Haible  <bruno@clisp.org>
3017
3018         strtoimax, strtoumax: Document problem on HP-UX 11.
3019         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3020         * doc/posix-functions/strtoumax.texi: Likewise.
3021
3022 2011-09-01  Bruno Haible  <bruno@clisp.org>
3023
3024         strtoumax: Avoid link error on OSF/1 with DTK cc.
3025         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3026         defined as a function.
3027         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3028         strtoumax is defined, not whether it is declared.
3029
3030 2011-09-01  Bruno Haible  <bruno@clisp.org>
3031
3032         strtoimax: Avoid link error on OSF/1 with DTK cc.
3033         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3034         defined as a function.
3035         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3036         strtoimax is defined, not whether it is declared.
3037
3038 2011-09-01  Bruno Haible  <bruno@clisp.org>
3039
3040         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3041         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3042         as a function.
3043         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3044         whether it is declared.
3045
3046 2011-09-01  Bruno Haible  <bruno@clisp.org>
3047
3048         imaxabs: Avoid link error on OSF/1 with DTK cc.
3049         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3050         as a function.
3051         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3052         whether it is declared.
3053
3054 2011-09-01  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'strtoumax'.
3057         * modules/strtoumax-tests: New file.
3058         * tests/test-strtoumax.c: New file.
3059
3060         Tests for module 'strtoimax'.
3061         * modules/strtoimax-tests: New file.
3062         * tests/test-strtoimax.c: New file.
3063
3064         Tests for module 'imaxdiv'.
3065         * modules/imaxdiv-tests: New file.
3066         * tests/test-imaxdiv.c: New file.
3067
3068         Tests for module 'imaxabs'.
3069         * modules/imaxabs-tests: New file.
3070         * tests/test-imaxabs.c: New file.
3071
3072 2011-09-01  Bruno Haible  <bruno@clisp.org>
3073
3074         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3075         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3076         pthread_create.
3077
3078 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3079
3080         openat: work around AIX 7.1 fstatat issue
3081         This should fix the problem that was not properly fixed
3082         in the previous change, dated 2011-08-30.
3083         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3084         __need_system_stat_h defined.
3085         (orig_fstatat) [HAVE_FSTATAT]: New function.
3086         (rpl_fstatat): Go back to the old way of doing things,
3087         except call orig_fstatat instead of fstatat.
3088         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3089         Remove unnecessary check whether fstatat fills in st_size etc.
3090
3091 2011-09-01  Bruno Haible  <bruno@clisp.org>
3092
3093         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3094         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3095         just include the system's header.
3096
3097 2011-08-31  Jim Meyering  <meyering@redhat.com>
3098
3099         tests: avoid spurious assertion failure in test-float.c on ppc64
3100         * tests/test-float.c (test_long_double): Comment out an assertion,
3101         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3102         with gcc-4.4.4.
3103
3104         maint: indent with spaces, not TABs
3105         I need to get in the habit of running gnulib's "make check".
3106         Both of these would have been caught.
3107         * m4/largefile.m4: Indent with spaces, not TABs.
3108         * lib/parse-datetime.y (iso_8601_time): Likewise.
3109         Spotted by Pádraig Brady.
3110
3111         test-parse-datetime.c: accommodate a relatively strict gcc warning
3112         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3113         to avoid a warning from gcc's -Werror=missing-declarations.
3114         Insert a few spaces-before-funcall-parenthesis.
3115
3116 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3117
3118         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3119         The parser now accepts ISO 8601 date-time strings with "T" as the
3120         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3121         with a space between the date and time strings.  Now it also parses
3122         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3123         variants like "2004-02-29T16:21:42.333-07:00"
3124         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3125         of day representation using the 'T' separator character.
3126         * doc/parse-datetime.texi (General date syntax): replace use of
3127         deprecated --iso-8601 option with --rfc-3339 in example of date
3128         command output formats that can be parsed.
3129         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3130         lib/parse-datetime.y.
3131         (gmt_offset): New function.
3132         (main): Add additional test cases to validate ISO8601 extended
3133         date and time of day parsing.
3134
3135 2011-08-31  Bruno Haible  <bruno@clisp.org>
3136
3137         freopen: Documentation.
3138         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3139         name.
3140         Reported by Claudio Bley <claudio.bley@gmail.com>.
3141
3142 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3143
3144         freopen: Don't crash if the filename argument is NULL.
3145         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3146         NULL.
3147
3148 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3149
3150         openat: work around AIX 7.1 fstatat bug
3151         Problem reported by Kevin Brott for GNU tar, in the thread containing
3152         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3153         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3154         FSTATAT_ST_SIZE_ETC_BROKEN.
3155         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3156         rpl_fstatat.
3157         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3158         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3159         AC_CHECK_FUNCS_ONCE for fstatat.
3160         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3161         fchmodat, mkdirat, openat and unlinkat.
3162
3163 2011-08-30  Bruno Haible  <bruno@clisp.org>
3164
3165         Avoid endless recursions if config.h includes some header files.
3166         * lib/fopen.c (__need_FILE): Define already before including config.h.
3167         * lib/freopen.c (__need_FILE): Likewise.
3168         * lib/open.c (__need_system_fcntl_h): Likewise.
3169         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3170         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3171         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3172
3173 2011-08-25  Karl Berry  <karl@gnu.org>
3174
3175         * config/srclist.txt (ylwrap): new try.
3176         * build-aux/ylwrap: new file.
3177
3178 2011-08-23  Bruno Haible  <bruno@clisp.org>
3179
3180         tmpdir: Use a good default directory on native Windows.
3181         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3182         (P_tmpdir): Default to _P_tmpdir on native Windows.
3183         (path_search): On native Windows, try the value returned by GetTempPath
3184         before trying P_tmpdir.
3185         * modules/tmpdir (Depends-on): Add pathmax.
3186         Suggested by John Darrington <john@darrington.wattle.id.au>.
3187
3188 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3189
3190         doc: fix typo in README-release
3191         * top/README-release: Capitalize first word of a sentence.
3192
3193 2011-08-19  Jim Meyering  <meyering@redhat.com>
3194
3195         fts: do not exhaust memory when processing million-entry directories
3196         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3197         directory would require about 256*N bytes of memory.  Thus, it was
3198         easy to construct a directory too large to be processed by any of
3199         those tools.  With this change, fts' maximum memory utilization is
3200         now limited to around 30MB.
3201         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3202         (fts_read): When we've processed the final entry (i.e., when
3203         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3204         using the parent entry to read any remaining entries.  Dispatch
3205         depending on what fts_build returns:
3206         - NULL+stop, aka failure: stop
3207         - NULL otherwise: move up in the dir hierarchy
3208         - non-NULL: handle this new entry
3209         (fts_build): Declare and use new local, continue_readdir.
3210         Prepare to be called from fts_read, when the entries
3211         from a partially-read directory have just been exhausted.
3212         In that case, we'll skip the opendir and instead use the parent's
3213         fts_dirp and derive dir_fd from that.
3214         Finally, in the readdir loop, if we read max_entries entries,
3215         exit the loop ensuring *not* to call closedir.  This is required
3216         so that fts_dirp can be reused on a subsequent call.
3217         Prompted by Ben England's report of memory exhaustion in find
3218         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3219
3220         maint: fts: move decl of `dp' down into while loop; split a long line
3221         * lib/fts.c (fts_build): No semantic change.
3222
3223         fts: add/use new struct member, fts_dirp
3224         We are about to use this to manage any directory with
3225         too many entries to read all of them into memory at once.
3226         To do that, we'll need to save the DIR* pointer in each
3227         affected FTSENT struct.
3228         * lib/fts_.h: Include <dirent.h>.
3229         (struct FTSENT) [fts_dirp]: New member.
3230         * lib/fts.c (closedir_and_clear): Define.
3231         Use it in place of closedir so that we are sure to
3232         clear the new fts_dirp member when done with it.
3233         (fts_alloc): Initialize the new member.
3234         (fts_lfree): Free, if needed.
3235
3236         maint: fts: give __opendir2 a new parameter and rename
3237         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3238         than surreptitiously using sole caller's "dir_fd".
3239         (fts_opendir): Rename from __opendir2.
3240
3241         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3242         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3243
3244         maint: fts.c: correct off-by-one indentation
3245         * lib/fts.c (fts_build): Correct indentation, change style
3246         of a couple of block comments, and bracing style.
3247
3248         maint: fts.c: move __opendir2 #define "up" out of function body
3249         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3250
3251         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3252         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3253         out for a long time and besides was useful only on BSD systems.
3254
3255 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         regex: port to Stratus OpenVOS
3258         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3259         define to empty, rather than attempting nonportable optimizations.
3260         Problem reported by Paul Green in:
3261         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3262         and fix suggested by Eric Blake in:
3263         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3264
3265 2011-08-17  Eric Blake  <eblake@redhat.com>
3266
3267         getcwd: fix test failures on mingw
3268         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3269         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3270         test if long directory cannot be created, and allow mingw errno.
3271
3272         getcwd-lgpl: fix m4 to match relaxed test for BSD
3273         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3274         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3275         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3276         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3277         signature problem.
3278
3279         getcwd: fix compilation on mingw64
3280         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3281         getcwd.
3282         Reported by Marc-André Lureau.
3283
3284         pipe2: silence compiler warning
3285         * lib/pipe2.c (pipe2): Hide label if it is not used.
3286
3287 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3288
3289         relocatable-prog: fix link error
3290         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3291         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3292         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3293         into modules/relocatable-lib without noticing that
3294         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3295         also needs to build relocatable.c.
3296
3297 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3298
3299         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3301         shell code: it contained a 'break' that was not in a loop.
3302         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3303         via a shell-language loop; this may have been true in old Autoconf
3304         versions, but it's not true in Autoconf 2.68.  I found this bug
3305         when testing coreutils git on Solaris 8, whose shell complains
3306         about the syntax error.
3307
3308 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3309
3310         * lib/base64.c: Fix comment to reference RFC 4648.
3311         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3312         <gvtulder@gmail.com>.
3313
3314 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3315
3316         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3317
3318         po/Makefile.in.in: fix make -q problem
3319         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3320         rule, since there's no file named 'check-macro-version' and its
3321         use as a file breaks make -q.
3322         (all): Don't depend on check-macro-version.
3323         (CHECK_MACRO_VERSION): New macro.
3324         (stamp-po): Use it.
3325
3326         configmake: fix make -q problem
3327         * modules/configmake (configmake.h): Update configmake.h's time stamp
3328         even if the file does not change.  Otherwise, 'make -q' fails.
3329         Problem reported by Simon Josefsson in
3330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3331
3332 2011-08-11  Jim Meyering  <meyering@redhat.com>
3333
3334         git-version-gen: correct the advice in a comment
3335         * build-aux/git-version-gen: Correct comment.
3336         Don't recommend to list .tarball-version in .gitignore.
3337
3338 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3339
3340         base64: fix off-by-one buffer size bug
3341         Problem and (trivial) fix reported by Gijs van Tulder in
3342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3343         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3344         * tests/test-base64.c (main): Catch the bug.
3345
3346 2011-08-10  Eric Blake  <eblake@redhat.com>
3347
3348         closein: correct comments
3349         * lib/closein.c (close_stdin): Improve comments.
3350
3351 2011-08-09  Bruno Haible  <bruno@clisp.org>
3352
3353         More tests for 'fseeko'.
3354         * tests/test-fseeko3.c: New file, from Eric Blake.
3355         * tests/test-fseeko3.sh: New file.
3356         * modules/fseeko-tests (Files): Add them.
3357         (TESTS): Add test-fseeko3.sh.
3358         (check_PROGRAMS): Add test-fseeko3.
3359
3360 2011-08-09  Eric Blake  <eblake@redhat.com>
3361
3362         fseeko: remove unneeded hack
3363         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3364
3365         fseeko: fix bug on glibc
3366         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3367         Reported by John W. Eaton.
3368
3369 2011-08-08  Bruno Haible  <bruno@clisp.org>
3370
3371         unictype/base: Fix interoperability with preinstalled libunistring.
3372         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3373         Reported by Simon Josefsson.
3374
3375 2011-08-08  Bruno Haible  <bruno@clisp.org>
3376
3377         iswblank: Detect declaration correctly.
3378         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3379         AC_CHECK_DECLS invocation.
3380
3381 2011-08-08  Bruno Haible  <bruno@clisp.org>
3382
3383         tcgetsid: Detect declaration correctly.
3384         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3385         AC_CHECK_DECLS invocation.
3386         Reported by Simon Josefsson.
3387
3388 2011-08-08  Eric Blake  <eblake@redhat.com>
3389
3390         largefile: fix typo that regressed large file support
3391         * modules/largefile (configure.ac-early): Fix section name.
3392
3393 2011-08-06  Karl Berry  <karl@gnu.org>
3394
3395         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3396         a separate module.
3397
3398 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3399
3400         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3401         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3402         get prototype for free.
3403
3404 2011-08-04  Bruno Haible  <bruno@clisp.org>
3405
3406         Tests for module 'pathmax'.
3407         * modules/pathmax-tests: New file.
3408         * tests/test-pathmax.c: New file.
3409
3410         canonicalize-lgpl: Support larger filenames on the Hurd.
3411         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3412         Reported by Paul Eggert.
3413
3414         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3415         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3416         * lib/chdir-long.h: Include pathmax.h.
3417         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3418         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3419         (PATH_MAX): Remove code that is done by pathmax.h.
3420         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3421         * lib/tmpfile.c: Add a comment.
3422         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3423         * modules/chdir-long (Depends-on): Add pathmax.
3424         * modules/getcwd (Depends-on): Add pathmax.
3425         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3426         is not defined.
3427         * doc/posix-headers/limits.texi: Mention the pathmax module.
3428         * NEWS: Mention the change.
3429
3430 2011-08-02  Bruno Haible  <bruno@clisp.org>
3431
3432         pthread_sigmask: Actually use results of gl_THREADLIB.
3433         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3434         gl_THREADLIB, not gl_[]THREADLIB.
3435         Reported by Eric Blake.
3436
3437 2011-08-02  Jim Meyering  <meyering@redhat.com>
3438
3439         maint.mk: relax the default _gl_TS_function_match regexp
3440         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3441         space between function name and "(" in an "extern" declaration.
3442         That would fail to match a decl with no space there: extern void foo();
3443
3444 2011-07-31  Iain Nicol  <iain@thenicols.net>
3445
3446         git-version-gen: document that EXTRA_DIST must include .version
3447         * build-aux/git-version-gen: In the how-to-use comment, document
3448         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3449         will fail when run from an unpacked distribution tarball.
3450
3451 2011-08-01  Bruno Haible  <bruno@clisp.org>
3452
3453         wctype-h: Fix last change.
3454         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3455         REPLACE_TOWLOWER to 0.
3456         Reported by Sam Steingold <sds@gnu.org>.
3457
3458 2011-07-31  Bruno Haible  <bruno@clisp.org>
3459
3460         frexpl: Update autoconf test.
3461         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3462         according to changes of 2011-06-20.
3463
3464 2011-07-31  Bruno Haible  <bruno@clisp.org>
3465
3466         sys_utsname: Add support for Minix.
3467         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3468         <sys/utsname.h>.
3469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3470         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3471
3472 2011-07-31  Bruno Haible  <bruno@clisp.org>
3473
3474         strings: Add support for Minix.
3475         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3476         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3477         * doc/posix-headers/strings.texi: Document the Minix problem.
3478
3479 2011-07-31  Bruno Haible  <bruno@clisp.org>
3480
3481         wctype-h: Add support for Minix.
3482         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3483         REPLACE_TOWLOWER.
3484         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3485         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3486         REPLACE_ISWCNTRL.
3487
3488 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3489
3490         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3491         This is a performance improvement for 64-bit hosts: it causes the
3492         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3493
3494 2011-07-31  Bruno Haible  <bruno@clisp.org>
3495
3496         stdioext: Add support for Minix.
3497         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3498         * lib/fpurge.c (fpurge): Likewise.
3499         * lib/freadahead.c (freadahead): Likewise.
3500         * lib/freadable.c (freadable): Likewise.
3501         * lib/freading.c (freading): Likewise.
3502         * lib/freadptr.c (freadptr): Likewise.
3503         * lib/freadseek.c (freadptrinc): Likewise.
3504         * lib/fseeko.c (rpl_fseeko): Likewise.
3505         * lib/fseterr.c (fseterr): Likewise.
3506         * lib/fwritable.c (fwritable): Likewise.
3507         * lib/fwriting.c (fwriting): Likewise.
3508         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3509         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3510
3511 2011-07-31  Bruno Haible  <bruno@clisp.org>
3512
3513         errno: Port to Minix.
3514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3515         ECONNABORTED are defined.
3516         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3517         GNULIB_defined_ECONNABORTED): New macros.
3518         * lib/strerror-override.h (strerror_override): Test also
3519         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3520         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3521         ECONNABORTED.
3522         * doc/posix-headers/errno.texi: Mention the Minix problem.
3523
3524 2011-07-31  Bruno Haible  <bruno@clisp.org>
3525
3526         Work around declaration collisions on Minix.
3527         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3528         defined, set REPLACE_MBSINIT.
3529         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3530         defined, set REPLACE_MBRTOWC.
3531         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3532         set REPLACE_MBRLEN.
3533         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3534         defined, set REPLACE_MBSRTOWCS.
3535         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3536         defined, set REPLACE_WCRTOMB.
3537         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3538         defined, set REPLACE_WCSRTOMBS.
3539
3540 2011-07-31  Bruno Haible  <bruno@clisp.org>
3541
3542         Add support for Minix with ACK compiler.
3543         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3544         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3545         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3546
3547 2011-07-31  Bruno Haible  <bruno@clisp.org>
3548
3549         Documentation about Minix.
3550         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3551         * doc/glibc-headers/*.texi: Likewise.
3552         * doc/posix-functions/*.texi: Likewise.
3553         * doc/glibc-functions/*.texi: Likewise.
3554
3555 2011-07-31  Bruno Haible  <bruno@clisp.org>
3556
3557         snippet/warn-on-use: Fix indentation.
3558         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3559
3560 2011-07-25  Jim Meyering  <meyering@redhat.com>
3561
3562         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3563         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3564         commands.
3565
3566 2011-07-27  Jim Meyering  <meyering@redhat.com>
3567
3568         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3569         * top/maint.mk (gl_extract_significant_defines_): Now that
3570         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3571         gnulib/lib/signal.in.h, and now that we recommend to
3572         define-if-undefined those two symbols in application code,
3573         we must filter them out of the "significant" list.
3574         This avoids a "make syntax-check" failure in coreutils.
3575
3576 2011-07-26  Eric Blake  <eblake@redhat.com>
3577
3578         warnings: add comments about previous patch
3579         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3580         * m4/include_next.m4: Likewise.
3581         * m4/warn-on-use.m4: Likewise.
3582         * m4/warnings.m4: Likewise, and simplify use.
3583         Suggested by Stefano Lattarini.
3584
3585         include-next, warnings: support older autoconf
3586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3587         AS_VAR_PUSHDEF in a way that works with older autoconf.
3588         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3589         Reported by Daniel P. Berrange.
3590
3591 2011-07-25  Bruno Haible  <bruno@clisp.org>
3592
3593         fseek, ftell: Fix doc.
3594         * doc/posix-functions/fseek.texi: Reword statement about
3595         AC_SYS_LARGEFILE.
3596         * doc/posix-functions/ftell.texi: Likewise.
3597
3598 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3599             Bruno Haible  <bruno@clisp.org>
3600
3601         Add dependencies to the 'largefile' module.
3602         * modules/fopen (Depends-on): Add 'largefile'.
3603         * modules/freopen (Depends-on): Likewise.
3604         * modules/fseeko (Depends-on): Likewise.
3605         * modules/ftello (Depends-on): Likewise.
3606         * modules/glob (Depends-on): Likewise.
3607         * modules/lseek (Depends-on): Likewise.
3608         * modules/lstat (Depends-on): Likewise.
3609         * modules/mkostemp (Depends-on): Likewise.
3610         * modules/mkostemps (Depends-on): Likewise.
3611         * modules/mkstemp (Depends-on): Likewise.
3612         * modules/mkstemps (Depends-on): Likewise.
3613         * modules/open (Depends-on): Likewise.
3614         * modules/openat (Depends-on): Likewise.
3615         * modules/pread (Depends-on): Likewise.
3616         * modules/pwrite (Depends-on): Likewise.
3617         * modules/scandir (Depends-on): Likewise.
3618         * modules/stat (Depends-on): Likewise.
3619         * modules/tmpfile (Depends-on): Likewise.
3620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3621         since the containing module now depends on the largefile module.
3622         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3623         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3624         off_t is fixed by gnulib.
3625         * doc/posix-functions/freopen.texi: Likewise.
3626         * doc/posix-functions/fseeko.texi: Likewise.
3627         * doc/posix-functions/fstatat.texi: Likewise.
3628         * doc/posix-functions/ftello.texi: Likewise.
3629         * doc/posix-functions/glob.texi: Likewise.
3630         * doc/posix-functions/lseek.texi: Likewise.
3631         * doc/posix-functions/lstat.texi: Likewise.
3632         * doc/posix-functions/mkstemp.texi: Likewise.
3633         * doc/posix-functions/open.texi: Likewise.
3634         * doc/posix-functions/openat.texi: Likewise.
3635         * doc/posix-functions/pread.texi: Likewise.
3636         * doc/posix-functions/pwrite.texi: Likewise.
3637         * doc/posix-functions/scandir.texi: Likewise.
3638         * doc/posix-functions/stat.texi: Likewise.
3639         * doc/posix-functions/tmpfile.texi: Likewise.
3640         * doc/glibc-functions/mkostemp.texi: Likewise.
3641         * doc/glibc-functions/mkostemps.texi: Likewise.
3642         * doc/glibc-functions/mkstemps.texi: Likewise.
3643
3644 2011-07-25  Bruno Haible  <bruno@clisp.org>
3645
3646         fcntl: Move AC_LIBOBJ invocation to module description.
3647         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3648         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3649
3650         fcntl: Remove call-in from fchdir.m4.
3651         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3653
3654         dup3: Remove potential call-in from fchdir.m4.
3655         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3657
3658         dup2: Move AC_LIBOBJ invocation to module description.
3659         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3660         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3661         Don't invoke AC_LIBOBJ.
3662         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3663
3664         dup2: Remove call-in from fchdir.m4.
3665         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3667
3668         fclose: Move AC_LIBOBJ invocation to module description.
3669         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3670         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3671         to 1.
3672         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3673
3674         fclose: Remove call-in from close.m4.
3675         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3676         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3677
3678         close: Move AC_LIBOBJ invocation to module description.
3679         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3680         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3681         1.
3682         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3683
3684         close: Remove call-in from fchdir.m4.
3685         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3687
3688         open: Move AC_LIBOBJ invocation to module description.
3689         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3690         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3691         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3692
3693         open: Remove call-in from fchdir.m4.
3694         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3696
3697         fchdir: Start to remove gl_REPLACE_* idiom.
3698         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3699         (gl_FUNC_FCHDIR): Invoke it.
3700
3701 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         * lib/ftell.c (ftell): Comment out cast.
3704
3705         close: use gl_REPLACE_FCLOSE only if defined
3706         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3707         is defined.  The close module doesn't depend on the fclose module
3708         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3710         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3711
3712 2011-07-24  Jim Meyering  <meyering@redhat.com>
3713
3714         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3715         * tests/test-select.h (test_function): Declare as "static".
3716
3717 2011-07-24  Bruno Haible  <bruno@clisp.org>
3718
3719         doc: Mention the effects of AC_SYS_LARGEFILE.
3720         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3721         on this function.
3722         * doc/posix-functions/aio_error.texi: Likewise.
3723         * doc/posix-functions/aio_fsync.texi: Likewise.
3724         * doc/posix-functions/aio_read.texi: Likewise.
3725         * doc/posix-functions/aio_return.texi: Likewise.
3726         * doc/posix-functions/aio_suspend.texi: Likewise.
3727         * doc/posix-functions/aio_write.texi: Likewise.
3728         * doc/posix-functions/fgetpos.texi: Likewise.
3729         * doc/posix-functions/fopen.texi: Likewise.
3730         * doc/posix-functions/freopen.texi: Likewise.
3731         * doc/posix-functions/fsetpos.texi: Likewise.
3732         * doc/posix-functions/fstatvfs.texi: Likewise.
3733         * doc/posix-functions/ftruncate.texi: Likewise.
3734         * doc/posix-functions/ftw.texi: Likewise.
3735         * doc/posix-functions/getrlimit.texi: Likewise.
3736         * doc/posix-functions/glob.texi: Likewise.
3737         * doc/posix-functions/lio_listio.texi: Likewise.
3738         * doc/posix-functions/lockf.texi: Likewise.
3739         * doc/posix-functions/mkstemp.texi: Likewise.
3740         * doc/posix-functions/mmap.texi: Likewise.
3741         * doc/posix-functions/nftw.texi: Likewise.
3742         * doc/posix-functions/openat.texi: Likewise.
3743         * doc/posix-functions/opendir.texi: Likewise.
3744         * doc/posix-functions/posix_fadvise.texi: Likewise.
3745         * doc/posix-functions/posix_fallocate.texi: Likewise.
3746         * doc/posix-functions/pread.texi: Likewise.
3747         * doc/posix-functions/pwrite.texi: Likewise.
3748         * doc/posix-functions/readdir.texi: Likewise.
3749         * doc/posix-functions/readdir_r.texi: Likewise.
3750         * doc/posix-functions/rewinddir.texi: Likewise.
3751         * doc/posix-functions/scandir.texi: Likewise.
3752         * doc/posix-functions/seekdir.texi: Likewise.
3753         * doc/posix-functions/setrlimit.texi: Likewise.
3754         * doc/posix-functions/statvfs.texi: Likewise.
3755         * doc/posix-functions/telldir.texi: Likewise.
3756         * doc/posix-functions/tmpfile.texi: Likewise.
3757         * doc/posix-functions/truncate.texi: Likewise.
3758         * doc/glibc-functions/fallocate.texi: Likewise.
3759         * doc/glibc-functions/fstatfs.texi: Likewise.
3760         * doc/glibc-functions/fts_children.texi: Likewise.
3761         * doc/glibc-functions/fts_read.texi: Likewise.
3762         * doc/glibc-functions/getdirentries.texi: Likewise.
3763         * doc/glibc-functions/mkostemp.texi: Likewise.
3764         * doc/glibc-functions/mkostemps.texi: Likewise.
3765         * doc/glibc-functions/mkstemps.texi: Likewise.
3766         * doc/glibc-functions/preadv.texi: Likewise.
3767         * doc/glibc-functions/pwritev.texi: Likewise.
3768         * doc/glibc-functions/sendfile.texi: Likewise.
3769         * doc/glibc-functions/statfs.texi: Likewise.
3770
3771 2011-07-24  Bruno Haible  <bruno@clisp.org>
3772
3773         doc: Fix typo.
3774         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3775
3776 2011-07-24  Bruno Haible  <bruno@clisp.org>
3777
3778         doc: Mention fsusage.
3779         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3780
3781 2011-07-24  Bruno Haible  <bruno@clisp.org>
3782
3783         doc: Mention new glibc headers and functions.
3784         * doc/glibc-headers/gshadow.texi: New file.
3785         * doc/glibc-functions/endsgent.texi: New file.
3786         * doc/glibc-functions/fgetsgent.texi: New file.
3787         * doc/glibc-functions/fgetsgent_r.texi: New file.
3788         * doc/glibc-functions/getsgent.texi: New file.
3789         * doc/glibc-functions/getsgent_r.texi: New file.
3790         * doc/glibc-functions/getsgnam.texi: New file.
3791         * doc/glibc-functions/getsgnam_r.texi: New file.
3792         * doc/glibc-functions/putsgent.texi: New file.
3793         * doc/glibc-functions/setsgent.texi: New file.
3794         * doc/glibc-functions/sgetsgent.texi: New file.
3795         * doc/glibc-functions/sgetsgent_r.texi: New file.
3796         * doc/glibc-functions/malloc_info.texi: New file.
3797         * doc/glibc-functions/preadv.texi: New file.
3798         * doc/glibc-functions/pwritev.texi: New file.
3799         * doc/glibc-functions/register_printf_modifier.texi: New file.
3800         * doc/glibc-functions/register_printf_specifier.texi: New file.
3801         * doc/glibc-functions/register_printf_type.texi: New file.
3802         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3803         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3804         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3805         * doc/glibc-functions/pthread_getname_np.texi: New file.
3806         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3807         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3808         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3809         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3810         * doc/glibc-functions/pthread_setname_np.texi: New file.
3811         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3812         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3813         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3814         * doc/glibc-functions/qsort_r.texi: New file.
3815         * doc/glibc-functions/quick_exit.texi: New file.
3816         * doc/glibc-functions/syncfs.texi: New file.
3817         * doc/gnulib.texi: Include them.
3818         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3819         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3820         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3821         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3822         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3823         * doc/glibc-functions/execvpe.texi: Likewise.
3824
3825 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3826
3827         ftell: don't include <unistd.h>
3828         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3829         guaranteed to define off_t, and the ftell module depends on the
3830         stdio module.
3831
3832         ftell: do not assume wraparound signed arithmetic
3833         * lib/ftell.c: Include <limits.h>.
3834         (ftell): Don't assume wraparound signed arithmetic.
3835
3836 2011-07-24  Bruno Haible  <bruno@clisp.org>
3837
3838         close: No longer depend on module 'fclose'.
3839         * modules/close (Depends-on): Remove fclose.
3840         * NEWS: Mention the change.
3841         Suggested by Sam Steingold <sds@gnu.org>.
3842
3843 2011-07-24  Bruno Haible  <bruno@clisp.org>
3844
3845         fsusage: Enable large volume support on AIX >= 5.2.
3846         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3847         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3848         instead of STAT_STATVFS.
3849         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3850
3851         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3853         f_blocks field only on MacOS X.
3854
3855         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3856         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3857         * modules/fsusage (Depends-on): Add largefile.
3858
3859 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3860
3861         * README: Modernize discussion of signed integers.
3862         Assuming overflow wraparound is no longer safe.
3863         Mention ones' complement and signed magnitude.
3864
3865 2011-07-22  Bruno Haible  <bruno@clisp.org>
3866
3867         select tests, pselect tests: Refactor.
3868         * tests/test-select.h: New file, extracted from tests/test-select.c.
3869         (select_fn): New type.
3870         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3871         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3872         test_pipe): Add my_select argument.
3873         (test_function): Renamed from main. Add my_select argument.
3874         * tests/test-select.c: Move most code to tests/test-select.h. Include
3875         test-select.h.
3876         * modules/select-tests (Files): Add tests/test-select.h.
3877         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3878         (my_select, main): New functions.
3879         * modules/pselect-tests (Files): Add tests/test-select.h,
3880         tests/macros.h, tests/signature.h.
3881         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3882         (configure.ac): Check for <sys/wait.h>.
3883
3884 2011-07-22  Bruno Haible  <bruno@clisp.org>
3885
3886         sys_select tests: Check the signature of FD_*.
3887         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3888         signature tests from here...
3889         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3890         here.
3891         * modules/sys_select-tests (Files): Add tests/signature.h.
3892
3893 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3894
3895         largefile: new module, replacing large-inode
3896         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3897         * MODULES.html.sh: Add largefile, remove large-inode.
3898         * modules/largefile, m4/largefile.m4: New files.
3899         * modules/large-inode, m4/large-inode.m4: Remove.
3900
3901         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3903         implementations that use only 32 bits to count blocks.
3904         On typical hosts with 1024-byte blocks, this fails with file
3905         systems as small as 4 TiB.  Problem reported by Herb Wartens
3906         <http://debbugs.gnu.org/9140> and this should also fix a similar
3907         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3908
3909         large-inode: New module
3910         * MODULES.html.sh: Add it.
3911         * modules/large-inode, m4/large-inode.m4: New files.
3912
3913         extensions: Enable extensions on MacOS X 10.5 and later.
3914         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3915
3916 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3917
3918         file-has-acl: use acl_extended_file_nofollow if available
3919         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3920         (acl_extended_file): New macro.
3921         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3922         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3923
3924 2011-07-21  Bruno Haible  <bruno@clisp.org>
3925
3926         Declare system functions in a way that works with C++.
3927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3928         declare fdopendir as extern "C".
3929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3930         declare frexpl as extern "C".
3931         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3932         declare gai_strerror as extern "C".
3933         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3934         programs, declare gai_strerror as extern "C".
3935         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3936         declare getlogin_r as extern "C".
3937         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3938         as extern "C".
3939         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3940         declare ldexpl as extern "C".
3941         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3942         as extern "C".
3943         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3944         program, declare getmntinfo as extern "C".
3945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3946         stpncpy as extern "C".
3947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3948         program, declare __xpg_strerror_r as extern "C".
3949         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3950         strndup as extern "C".
3951         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3952         declare memset and bzero as extern "C".
3953         Reported by Sam Steingold <sds@gnu.org>.
3954
3955 2011-07-12  Jim Meyering  <meyering@redhat.com>
3956
3957         maint.mk: prohibit inclusion of "verify.h" without use
3958         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3959
3960 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3961
3962         timer-time: A new module to check for timer_settime()
3963         * m4/timer_time.m4: Check for the posix function.
3964         * modules/timer-time: Add the new module.
3965         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3966         Mention it.
3967
3968 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3969             Bruno Haible  <bruno@clisp.org>
3970
3971         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3972         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3973         not defined, assume POSIX threads and look for pthread_sigmask in
3974         $LIBS, without changing $CPPFLAGS.
3975
3976 2011-07-19  Bruno Haible  <bruno@clisp.org>
3977
3978         strstr: Update cross-compilation guess.
3979         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3980         CPUs, guess no, in view of glibc
3981         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3982         Suggested by Eric Blake. Reported by Reuben Thomas.
3983
3984 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3985
3986         getopt-gnu: suppress core dumps from detection code
3987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3988         to suppress core dumps that may well occur on glibc systems.
3989         * modules/getopt-gnu: Depend on nocrash.
3990
3991 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3992
3993         pthread_sigmask: ensure usleep is declared
3994         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3995         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3996
3997 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         doc: Document NonStop portability issues.
4000         * doc/posix-functions/sigaction.texi (sigaction):
4001         * doc/posix-headers/signal.texi (signal.h):
4002         Document NonStop.  See Joachim Schmitz in
4003         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4004
4005 2011-07-15  Bruno Haible  <bruno@clisp.org>
4006
4007         ffsl, ffsll: Avoid unportable behaviour.
4008         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4009
4010 2011-07-15  Bruno Haible  <bruno@clisp.org>
4011
4012         ffs: More tests.
4013         * tests/test-ffs.c (NBITS): New macro.
4014         (main): Add more tests.
4015         * tests/test-ffsl.c (NBITS): New macro.
4016         (main): Add more tests.
4017         * tests/test-ffsll.c (NBITS): New macro.
4018         (main): Add more tests.
4019
4020 2011-07-15  Eric Blake  <eblake@redhat.com>
4021
4022         ffsl, ffsll: new modules
4023         * modules/ffsl: New file.
4024         * modules/ffsll: Likewise.
4025         * m4/ffsl.m4: Likewise.
4026         * m4/ffsll.m4: Likewise.
4027         * lib/ffsl.c: Likewise.
4028         * lib/ffsl.h: Likewise.
4029         * lib/ffsll.c: Likewise.
4030         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4031         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4032         * modules/string (Makefile.am): Substitute witnesses.
4033         * lib/strings.in.h (ffsl, ffsll): Declare.
4034         * modules/ffsl-tests: New test file.
4035         * modules/ffsll-tests: Likewise.
4036         * tests/test-ffsl.c: Likewise.
4037         * tests/test-ffsll.c: Likewise.
4038         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4039         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4040         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4041
4042         ffs: fix m4 prerequisite
4043         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4044
4045         ffs: avoid undefined behavior
4046         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4047         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4048         Reported by Bruno Haible.
4049
4050 2011-07-12  Bruno Haible  <bruno@clisp.org>
4051
4052         pthread_sigmask: Rely on module 'threadlib'.
4053         * modules/pthread_sigmask (Depends-on): Add threadlib.
4054         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4055         is defined.
4056
4057 2011-07-12  Bruno Haible  <bruno@clisp.org>
4058
4059         regex: Depend on module 'strcase'.
4060         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4061
4062 2011-07-12  Jim Meyering  <meyering@redhat.com>
4063
4064         warn-on-use: fix typo in file name
4065         * modules/snippet/warn-on-use (Files): Correct file name:
4066         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4067
4068 2011-07-12  Bruno Haible  <bruno@clisp.org>
4069
4070         strings: Document module.
4071         * doc/posix-headers/strings.texi: Mention module 'strings'.
4072
4073 2011-07-12  Bruno Haible  <bruno@clisp.org>
4074
4075         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4076         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4077         (Files, Makefile.am): Update.
4078         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4079         * modules/stdlib (Depends-on): Update.
4080
4081 2011-07-12  Bruno Haible  <bruno@clisp.org>
4082
4083         * NEWS: Mention the changes.
4084
4085         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4086         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4087         (Files, Makefile.am): Update.
4088         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4089         * modules/arpa_inet (Depends-on): Update.
4090         * modules/ctype (Depends-on): Update.
4091         * modules/dirent (Depends-on): Update.
4092         * modules/fcntl-h (Depends-on): Update.
4093         * modules/glob (Depends-on): Update.
4094         * modules/iconv-h (Depends-on): Update.
4095         * modules/inttypes-incomplete (Depends-on): Update.
4096         * modules/langinfo (Depends-on): Update.
4097         * modules/locale (Depends-on): Update.
4098         * modules/math (Depends-on): Update.
4099         * modules/netdb (Depends-on): Update.
4100         * modules/poll-h (Depends-on): Update.
4101         * modules/pty (Depends-on): Update.
4102         * modules/search (Depends-on): Update.
4103         * modules/signal (Depends-on): Update.
4104         * modules/spawn (Depends-on): Update.
4105         * modules/stdio (Depends-on): Update.
4106         * modules/stdlib (Depends-on): Update.
4107         * modules/string (Depends-on): Update.
4108         * modules/strings (Depends-on): Update.
4109         * modules/sys_file (Depends-on): Update.
4110         * modules/sys_ioctl (Depends-on): Update.
4111         * modules/sys_select (Depends-on): Update.
4112         * modules/sys_socket (Depends-on): Update.
4113         * modules/sys_stat (Depends-on): Update.
4114         * modules/sys_time (Depends-on): Update.
4115         * modules/sys_times (Depends-on): Update.
4116         * modules/sys_utsname (Depends-on): Update.
4117         * modules/sys_wait (Depends-on): Update.
4118         * modules/termios (Depends-on): Update.
4119         * modules/time (Depends-on): Update.
4120         * modules/unistd (Depends-on): Update.
4121         * modules/wchar (Depends-on): Update.
4122         * modules/wctype-h (Depends-on): Update.
4123         * MODULES.html.sh (Support for building libraries and executables):
4124         Update.
4125
4126         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4127         * modules/snippet/unused-parameter: Renamed from
4128         modules/unused-parameter.
4129         (Files, Makefile.am): Update.
4130         * build-aux/snippet/unused-parameter.h: Renamed from
4131         build-aux/unused-parameter.h.
4132         * modules/selinux-h (Depends-on): Update.
4133         * modules/unistr/base (Depends-on): Update.
4134         * MODULES.html.sh (Core language properties): Update.
4135
4136         Rename module 'link-warning' to 'snippet/link-warning'.
4137         * modules/snippet/link-warning: Renamed from modules/link-warning.
4138         (Files, Makefile.am): Update.
4139         * build-aux/snippet/link-warning.h: Renamed from
4140         build-aux/link-warning.h.
4141         * MODULES.html.sh (Support for building libraries and executables):
4142         Update.
4143
4144         Rename module 'c++defs' to 'snippet/c++defs'.
4145         * modules/snippet/c++defs: Renamed from modules/c++defs.
4146         (Files, Makefile.am): Update.
4147         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4148         * modules/arpa_inet (Depends-on): Update.
4149         * modules/ctype (Depends-on): Update.
4150         * modules/dirent (Depends-on): Update.
4151         * modules/fcntl-h (Depends-on): Update.
4152         * modules/glob (Depends-on): Update.
4153         * modules/iconv-h (Depends-on): Update.
4154         * modules/langinfo (Depends-on): Update.
4155         * modules/locale (Depends-on): Update.
4156         * modules/math (Depends-on): Update.
4157         * modules/netdb (Depends-on): Update.
4158         * modules/poll-h (Depends-on): Update.
4159         * modules/pty (Depends-on): Update.
4160         * modules/search (Depends-on): Update.
4161         * modules/signal (Depends-on): Update.
4162         * modules/spawn (Depends-on): Update.
4163         * modules/stdio (Depends-on): Update.
4164         * modules/stdlib (Depends-on): Update.
4165         * modules/string (Depends-on): Update.
4166         * modules/strings (Depends-on): Update.
4167         * modules/sys_ioctl (Depends-on): Update.
4168         * modules/sys_select (Depends-on): Update.
4169         * modules/sys_socket (Depends-on): Update.
4170         * modules/sys_stat (Depends-on): Update.
4171         * modules/sys_time (Depends-on): Update.
4172         * modules/sys_wait (Depends-on): Update.
4173         * modules/termios (Depends-on): Update.
4174         * modules/time (Depends-on): Update.
4175         * modules/unistd (Depends-on): Update.
4176         * modules/wchar (Depends-on): Update.
4177         * modules/wctype-h (Depends-on): Update.
4178
4179         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4180         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4181         (Files, Makefile.am): Update.
4182         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4183         * modules/argv-iter (Depends-on): Update.
4184         * modules/arpa_inet (Depends-on): Update.
4185         * modules/dirent (Depends-on): Update.
4186         * modules/fcntl-h (Depends-on): Update.
4187         * modules/fnmatch (Depends-on): Update.
4188         * modules/getopt-posix (Depends-on): Update.
4189         * modules/glob (Depends-on): Update.
4190         * modules/iconv-h (Depends-on): Update.
4191         * modules/inttypes-incomplete (Depends-on): Update.
4192         * modules/locale (Depends-on): Update.
4193         * modules/math (Depends-on): Update.
4194         * modules/netdb (Depends-on): Update.
4195         * modules/search (Depends-on): Update.
4196         * modules/signal (Depends-on): Update.
4197         * modules/spawn (Depends-on): Update.
4198         * modules/stdio (Depends-on): Update.
4199         * modules/stdlib (Depends-on): Update.
4200         * modules/string (Depends-on): Update.
4201         * modules/strings (Depends-on): Update.
4202         * modules/sys_socket (Depends-on): Update.
4203         * modules/sys_stat (Depends-on): Update.
4204         * modules/sys_time (Depends-on): Update.
4205         * modules/sys_times (Depends-on): Update.
4206         * modules/sys_utsname (Depends-on): Update.
4207         * modules/time (Depends-on): Update.
4208         * modules/unistd (Depends-on): Update.
4209         * modules/wchar (Depends-on): Update.
4210         * MODULES.html.sh (Support for building libraries and executables):
4211         Update.
4212
4213 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4214
4215         Improvements on _Noreturn and related modules.
4216
4217         modules/_Exit-tests: test _Noreturn too
4218         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4219         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4220         (main): Use them.
4221
4222         stdnoreturn, stdnoreturn-tests: remove modules
4223         They're not needed here and a bit premature for use elsewhere.  See
4224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4225         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4226         * tests/test-stdnoreturn.c: Remove files.
4227         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4228         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4229         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4230         and using noreturn.
4231         * modules/openat, modules/sigpipe-die, modules/xalloc:
4232         * modules/xmemdup0, modules/xstrtol:
4233         Remove dependency on stdnoreturn.
4234
4235         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4236         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4237         Reparenthesize to avoid GCC warning.
4238         Support Microsoft's syntax.
4239         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4240
4241         _Noreturn-tests: remove module
4242         * modules/_Noreturn-tests: Remove.
4243         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4244         * tests/test-_Noreturn.c: Remove.
4245         * tests/test-stdnoreturn.c: Merge from the old
4246         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4247
4248 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4249
4250         _Noreturn, stdnoreturn, and related modules.
4251
4252         * top/maint.mk: Adjust to new noreturn support.
4253         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4254         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4255
4256         xalloc: use stdnoreturn.h
4257         * lib/xalloc.h: Include <stdnoreturn.h>.
4258         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4259         * modules/xalloc (Depends-on): Add stdnoreturn.
4260
4261         xstrtol: use stdnoreturn.h
4262         * lib/xstrtol.h: Include <stdnoreturn.h>.
4263         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4264         * modules/xstrtol (Depends-on): Add stdnoreturn.
4265
4266         xmemdup0: use stdnoreturn.h
4267         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4268         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4269         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4270
4271         sigpipe-die: use stdnoreturn.h
4272         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4273         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4274         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4275
4276         openat: use stdnoreturn.h
4277         * lib/openat.h: Include <stdnoreturn.h>.
4278         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4279         * modules/openat (Depends-on): Add stdnoreturn.
4280
4281         * lib/openat-die.c (openat_save_fail): Modernize comment.
4282
4283         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4284
4285         * lib/glthread/thread.h: Modernize comment.
4286
4287         obstack: use _Noreturn
4288         * lib/obstack.c (__attribute__): Remove macro.
4289         (print_and_abort): Use _Noreturn.
4290
4291         c-stack: use _Noreturn
4292         * lib/c-stack.c (die, overflow_handler, segv_handler):
4293         Use _Noreturn rather than __attribute__((noreturn)).
4294
4295         argmatch-tests, exclude_tests: use _Noreturn
4296         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4297         Remove.
4298         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4299
4300         stdlib: use _Noreturn
4301         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4302         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4303         * modules/stdlib (Depends-on): Add _Noreturn.
4304         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4305
4306         stdnoreturn-tests: new module
4307         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4308
4309         stdnoreturn: new module
4310         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4311         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4312
4313         _Noreturn-tests: new module
4314         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4315
4316         _Noreturn: new module
4317         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4318         New section, mentioning it.
4319         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4320
4321         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4322
4323 2011-07-11  Eric Blake  <eblake@redhat.com>
4324
4325         ffs: new module
4326         * modules/ffs: New file.
4327         * m4/ffs.m4: Likewise.
4328         * lib/ffs.c: Likewise.
4329         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4330         * modules/strings (Makefile.am): Substitute witness.
4331         (Depends-on): Add c++defs.
4332         * lib/strings.in.h (ffs): Declare.
4333         * modules/ffs-tests: New test file.
4334         * tests/test-ffs.c: Test new module.
4335         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4336         * doc/posix-functions/ffs.texi (ffs): Likewise.
4337
4338         regex: avoid compiler warning
4339         * lib/regex.c (includes): Include <strings.h>, for use of
4340         strcasecmp in regcomp.c.
4341         Reported by Joachim Schmitz.
4342
4343 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4344
4345         stdint: respect system's intmax_t if INTMAX_MAX
4346         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4347         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4348         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4349         long but int64_t is long long, and where we will clash with the
4350         system intmax_t if we override it.  See
4351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4352         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4353         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4354         similarly for UINTMAX_C.
4355
4356 2011-07-08  Bruno Haible  <bruno@clisp.org>
4357
4358         pthread_sigmask tests: Avoid a compiler warning.
4359         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4360         non-zero.
4361
4362         sigprocmask tests: A better way to avoid a compiler warning.
4363         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4364         (main): Complain if system() returns non-zero.
4365         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4366
4367 2011-07-08  Bruno Haible  <bruno@clisp.org>
4368
4369         pthread_sigmask: Work around IRIX bug.
4370         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4371         bug.
4372         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4373         there may be unblocked pending signals.
4374         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4375
4376 2011-07-08  Bruno Haible  <bruno@clisp.org>
4377
4378         pthread_sigmask: Work around Cygwin bug.
4379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4380         bug.
4381         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4382         the system's pthread_sigmask function.
4383         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4384
4385 2011-07-08  Bruno Haible  <bruno@clisp.org>
4386
4387         pthread_sigmask: Work around bug in single-threaded implementation.
4388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4389         FreeBSD, HP-UX, Solaris bug.
4390         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4391         * lib/pthread_sigmask.c: Include <stddef.h>.
4392         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4393         the system's pthread_sigmask function.
4394         * modules/pthread_sigmask (configure.ac): Invoke
4395         gl_PREREQ_PTHREAD_SIGMASK.
4396         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4397         HP-UX, Solaris.
4398
4399 2011-07-08  Eric Blake  <eblake@redhat.com>
4400
4401         test-sigprocmask: avoid compiler warning
4402         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4403         * tests/test-sigprocmask.c (main): Use it to silence warning.
4404         Reported by Jim Meyering.
4405
4406         test-snprintf: avoid compiler warning
4407         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4408         * tests/test-vsnprintf.c (main): Likewise.
4409         Reported by Jim Meyering.
4410
4411 2011-07-08  Bruno Haible  <bruno@clisp.org>
4412
4413         Tests for module 'pthread_sigmask'.
4414         * modules/pthread_sigmask-tests: New file.
4415         * tests/test-pthread_sigmask1.c: New file, based on
4416         tests/test-sigprocmask.c.
4417         * tests/test-pthread_sigmask2.c: New file.
4418
4419 2011-07-08  Jim Meyering  <meyering@redhat.com>
4420
4421         test-getopt.h: avoid warning about an unused variable
4422         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4423
4424 2011-07-07  Jim Meyering  <meyering@redhat.com>
4425
4426         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4427         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4428         now that it no longer contains leading TABs.
4429         Remove unused "url=FIXME" statement.
4430
4431 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4432
4433         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4434         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4435         When gl_THREADLIB is not in use, assume that the POSIX sematics
4436         are desired.  This is better for Emacs, which uses POSIX semantics
4437         on GNUish and/or POSIXish platforms, and does not use threads at
4438         all otherwise.
4439
4440         pthread_sigmask: fix typo when testing for libraries
4441         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4442         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4443
4444 2011-07-08  Eric Blake  <eblake@redhat.com>
4445
4446         fts: introduce FTS_NOATIME
4447         * lib/fts_.h (FTS_NOATIME): New bit flag.
4448         (FTS_OPTIONMASK): Adjust.
4449         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4450         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4451
4452 2011-07-08  Bruno Haible  <bruno@clisp.org>
4453
4454         Tests for module 'thread'.
4455         * modules/thread-tests: New file.
4456         * tests/test-thread_self.c: New file.
4457         * tests/test-thread_create.cc: New file.
4458
4459 2011-07-08  Bruno Haible  <bruno@clisp.org>
4460
4461         thread: Avoid gcc warnings when using gl_thread_self().
4462         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4463         'void *'.
4464         (gl_thread_self_pointer): Update.
4465
4466 2011-07-07  Bruno Haible  <bruno@clisp.org>
4467
4468         signal-c++-tests: Check declaration of pthread_sigmask.
4469         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4470         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4471         $(LIB_PTHREAD_SIGMASK).
4472
4473 2011-07-07  Bruno Haible  <bruno@clisp.org>
4474
4475         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4476         * lib/signal.in.h (pthread_sigmask): Override if
4477         REPLACE_PTHREAD_SIGMASK is 1.
4478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4479         REPLACE_PTHREAD_SIGMASK.
4480         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4481         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4482         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4483         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4484         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4485
4486 2011-07-07  Bruno Haible  <bruno@clisp.org>
4487
4488         pthread_sigmask: Ensure declaration in <signal.h>.
4489         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4490         include <pthread.h>.
4491         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4492         problem.
4493
4494 2011-07-07  Bruno Haible  <bruno@clisp.org>
4495
4496         pthread_sigmask: Document the module.
4497         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4498
4499 2011-07-07  Bruno Haible  <bruno@clisp.org>
4500
4501         pthread_sigmask: Follow gnulib conventions.
4502         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4503         gl_PTHREAD_SIGMASK.
4504         * modules/pthread_sigmask (configure.ac): Update.
4505
4506 2011-07-07  Bruno Haible  <bruno@clisp.org>
4507
4508         pthread_sigmask: Make declaration C++ safe.
4509         * lib/signal.in.h: In two special conditions, just do an #include_next.
4510         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4511         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4512         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4513         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4514         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4515         not REPLACE_PTHREAD_MASK.
4516         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4517         not REPLACE_PTHREAD_MASK.
4518         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4519
4520 2011-07-07  Bruno Haible  <bruno@clisp.org>
4521
4522         pthread_sigmask: Fix return value.
4523         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4524         * lib/pthread_sigmask.c: New file.
4525         * modules/pthread_sigmask (Files): Add it.
4526         (configure.ac): Invoke AC_LIBOBJ.
4527
4528 2011-07-07  Eric Blake  <eblake@redhat.com>
4529
4530         getopt: more portable argv creation
4531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4532         const, use char arrays rather than strings.
4533         Suggested by Paul Eggert.
4534
4535 2011-07-07  Bruno Haible  <bruno@clisp.org>
4536
4537         Tests for module 'sigprocmask'.
4538         * modules/sigprocmask-tests: New file.
4539         * tests/test-sigprocmask.c: New file.
4540
4541 2011-07-07  Bruno Haible  <bruno@clisp.org>
4542
4543         float tests: Tweak.
4544         * tests/test-float.c (main): Tweak skip message.
4545
4546 2011-07-07  Eric Blake  <eblake@redhat.com>
4547
4548         getopt: avoid compiler warning during configure
4549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4550         assigning string literals to non-const pointer.
4551
4552         getopt-gnu: avoid crash in glibc getopt
4553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4554         * tests/test-getopt.h (test_getopt): Enhance test.
4555         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4556         * doc/posix-functions/getopt.texi (getopt): Document it.
4557         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4558         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4559         Likewise.
4560
4561 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4562
4563         getopt: handle W; without long options in getopt [BZ #12922]
4564         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4565         but no long options are defined, just return 'W'.
4566
4567 2011-07-07  Bruno Haible  <bruno@clisp.org>
4568
4569         Avoid literal tabs.
4570         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4571         variable containing a tab instead of a literal tab.
4572         Reported by Jim Meyering.
4573
4574 2011-07-07  Bruno Haible  <bruno@clisp.org>
4575
4576         Comments.
4577         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4578
4579 2011-07-06  Bruno Haible  <bruno@clisp.org>
4580
4581         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4582         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4583         <winsock2.h>.
4584         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4585         lib/sys_socket.in.h.
4586         (close, gethostname): Hide declarations from <winsock2.h>.
4587         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4588         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4589         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4590         (select): Don't override if gnulib's <sys/select.h> was already
4591         included.
4592         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4593         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4594         setsockopt, shutdown, select): Tweak indentation.
4595
4596 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4597
4598         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4599         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4600         in an application that does not use the sys_select module.
4601
4602 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4603
4604         poll: do not return 0 on timeout=-1
4605         * lib/poll.c: Loop with yield if no events occured
4606
4607 2011-07-06  Eric Blake  <eblake@redhat.com>
4608
4609         pthread_sigmask: always replace when not using pthread
4610         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4611         replacement when using some threading other than pthread.  Fix
4612         logic bug.
4613
4614 2011-07-06  Bruno Haible  <bruno@clisp.org>
4615
4616         Comments.
4617         * m4/printf.m4: Update comments about mingw.
4618
4619 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         sys_select: define sigset_t more portably
4622         * lib/sys_select.in.h: Always include <sys/types.h>, since
4623         we now need sigset_t and mingw defines it there.
4624         Include <signal.h> before split inclusion guard, to avoid
4625         mishaps on Solaris, whose <signal.h> eventually includes us.
4626         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4627         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4628         which come from ...
4629         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4630         gl_CHECK_TYPE_SIGSET_T.
4631         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4632         does the real work.
4633         * modules/sys_select (Depends-on): Add 'signal'.
4634
4635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4636         Suggested by Bruno Haible.
4637
4638         pselect: Use pthread_sigmask, not sigprocmask.
4639         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4640         multithreaded apps better than sigprocmask does.
4641         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4642         sigprocmask directly.
4643
4644 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4645
4646         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4647         Don't #undef,  since we don't need any underlying pselect.
4648         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4649         (Depends-on): Add select.
4650         (Link): Add $(LIBSOCKET).
4651         These changes suggested by Bruno Haible.
4652
4653         pselect: document better
4654         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4655         * doc/posix-functions/pselect.texi (pselect): Document new module.
4656
4657         pthread_sigmask: new module
4658         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4659         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4660         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4661         This is done only as a macro; I don't know how well that'll
4662         work for C++.  Move <sys/types.h> include before the include_next,
4663         to avoid mishap on Solaris.
4664         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4665         * modules/signal (Makefile.am): Substitute the check's results.
4666         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4667
4668         test-pselect: new module
4669         * modules/pselect-tests, tests/test-pselect.c: New files.
4670         * tests/test-select.c, tests/test-sys_select-c++.cc:
4671         If TEST_PSELECT is defined, test pselect instead of testing select.
4672
4673         * tests/test-sys_select.c (sigset_t): Test for it, too.
4674         Suggested by Bruno Haible.
4675
4676 2011-07-05  Eric Blake  <eblake@redhat.com>
4677
4678         snprintf: guarantee %1$d, for libintl
4679         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4680         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4681         * doc/posix-functions/snprintf.texi (snprintf): Update.
4682         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4683         * tests/test-snprintf.c (main): Enhance test.
4684         * tests/test-vsnprintf.c (main): Likewise.
4685
4686 2011-07-05  Jim Meyering  <meyering@redhat.com>
4687
4688         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4689         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4690         per Bruno's request, to accommodate this idiom (no space after "#")
4691         even when the function is inside an #if block:
4692         char *
4693         gets (char *s)
4694         #undef gets
4695         {
4696           ...
4697         }
4698
4699 2011-07-04  Jim Meyering  <meyering@redhat.com>
4700
4701         maint: indent with spaces, not TABs, and add a rule to check this
4702         * tests/test-userspec.c: Indent with spaces, not TABs.
4703         * tests/test-argp.c: Likewise.
4704         * tests/test-c-stack2.sh: Likewise.
4705         * tests/test-parse-duration.sh: Likewise
4706         * m4/strtod.m4: Likewise.
4707         * m4/alloca.m4: Likewise.
4708         * m4/pselect.m4: Likewise.
4709         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4710
4711 2011-07-03  Jim Meyering  <meyering@redhat.com>
4712
4713         maint.mk: correct omissions in prohibit_argmatch_without_use check
4714         This rule would mistakenly report that argmatch.h is included without
4715         use even when both the argmatch and invalid_arg macro were used.
4716         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4717         of argmatch and invalid_arg.
4718
4719 2011-07-03  Bruno Haible  <bruno@clisp.org>
4720
4721         Comments about EINTR.
4722         * lib/safe-read.h: Explain the purpose of this module.
4723         * lib/safe-write.h: Likewise.
4724         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4725         module.
4726         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4727         module.
4728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4729
4730 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         xnanosleep: Rewrite to use new dtotimespec module.
4733         It has the conversion code that used to be in xnanosleep.
4734         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4735         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4736         (TIME_T_MAX): Remove.
4737         (xnanosleep): Rewrite in terms of dtotimespec.
4738         * modules/xnanosleep (Depends-on): Add dtotimespec.
4739         Remove intprops, stdbool.
4740
4741         timespec-add, timespec-sub: new modules
4742         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4743         * lib/timespec-add.c, lib/timespec-sub.c:
4744         * modules/timespec-add, modules/timespec-sub: New files.
4745
4746         dtotimespec: new module
4747         * lib/timespec.h (dtotimespec): New decl.
4748         * lib/dtotimespec.c, modules/dtotimespec: New files.
4749
4750         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4751
4752         pselect: new module
4753         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4754         (pselect): New decls.
4755         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4756         since the standard pselect decl uses 'restrict'.
4757         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4758         HAVE_PSELECT, REPLACE_PSELECT.
4759         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4760         HAVE_PSELECT, REPLACE_PSELECT.
4761         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4762
4763         sys_select: don't depend on sys_socket
4764         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4766         This fix works on GNU and GNU-like platforms, but has not been tested
4767         on native Windows.
4768         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4770         gl_HEADER_SYS_SOCKET.
4771         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4772         gl_PREREQ_SYS_H_WINSOCK2.
4773
4774 2011-06-29  Eric Blake  <eblake@redhat.com>
4775
4776         pipe2: fix C89 compile problem
4777         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4778         Reported by Bruno Haible.
4779
4780         pipe, pipe2: don't corrupt fd on error
4781         * lib/pipe.c (pipe): Leave fd unchanged on error.
4782         * lib/pipe2.c (pipe2): Likewise.
4783         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4784         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4785
4786 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4787
4788         mmap-anon: do not use regular expressions inadvertently
4789         * m4/mmap-anon.m4: Remove trailing period from strings sought
4790         in the output.
4791
4792 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4793
4794         nanosleep: fix integer overflow problem
4795         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4796         arithmetic wraps around on overflow.
4797
4798         nanosleep: simplify carrying
4799         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4800         first call to the underyling nanosleep, not for the last one.
4801         This doesn't fix any bugs, but it simplifies the computation of
4802         the remaining delay.  Found while auditing integer overflow issues.
4803
4804         dup2: remove test for existence of fcntl
4805         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4806         "#if HAVE_FCNTL", in the configure-time test program.
4807         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4808         and therefore speeds up "configure" a bit.  Found while
4809         adding the dup2 module to Emacs.
4810
4811 2011-06-24  Eric Blake  <eblake@redhat.com>
4812
4813         maint.mk: enhance useless header checks
4814         * top/maint.mk (_sc_header_without_use): Check both include
4815         styles.
4816         (sc_prohibit_assert_without_use)
4817         (sc_prohibit_close_stream_without_use)
4818         (sc_prohibit_getopt_without_use)
4819         (sc_prohibit_quotearg_without_use)
4820         (sc_prohibit_quote_without_use)
4821         (sc_prohibit_long_options_without_use)
4822         (sc_prohibit_inttostr_without_use)
4823         (sc_prohibit_ignore_value_without_use)
4824         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4825         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4826         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4827         (sc_prohibit_hash_pjw_without_use)
4828         (sc_prohibit_safe_read_without_use)
4829         (sc_prohibit_argmatch_without_use)
4830         (sc_prohibit_canonicalize_without_use)
4831         (sc_prohibit_root_dev_ino_without_use)
4832         (sc_prohibit_openat_without_use)
4833         (sc_prohibit_c_ctype_without_use)
4834         (sc_prohibit_signal_without_use)
4835         (sc_prohibit_stdio--_without_use)
4836         (sc_prohibit_stdio-safer_without_use)
4837         (sc_prohibit_strings_without_use)
4838         (sc_prohibit_intprops_without_use)
4839         (sc_prohibit_stddef_without_use)
4840         (sc_prohibit_xfreopen_without_use): Update clients.
4841
4842 2011-06-24  Jim Meyering  <meyering@redhat.com>
4843
4844         syntax-check: keep one maint.mk rule in sync with its header
4845         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4846         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4847         I prefer to avoid temporary files here, so use <(...), but that
4848         is not supported by /bin/sh, so...
4849         (SHELL): Define to /bin/bash.
4850
4851 2011-06-24  Eric Blake  <eblake@redhat.com>
4852
4853         maint.mk: update sc_prohibit_intprops_without_use
4854         * top/maint.mk (_intprops_names): Match recent changes.
4855
4856 2011-06-24  Bruno Haible  <bruno@clisp.org>
4857
4858         strerror-override: No-op tweak.
4859         * lib/strerror-override.h (strerror_override): Reorder conditions,
4860         for consistency with lib/strerror-override.c.
4861
4862 2011-06-23  Eric Blake  <eblake@redhat.com>
4863
4864         maint.mk: test further PATH_MAX issues
4865         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4866         (sc_prohibit_path_max_allocation): ...and also test alloca.
4867         Suggested by Jim Meyering.
4868
4869 2011-06-22  Eric Blake  <eblake@redhat.com>
4870
4871         maint.mk: add syntax-check to avoid char[PATH_MAX]
4872         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4873
4874         stat: be robust to PATH_MAX definition
4875         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4876         * modules/stat (Depends-on): Add verify.
4877
4878         link: work around IRIX bug
4879         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4880         * lib/link.c (rpl_link): Work around it.
4881         * tests/test-link.h (test_link): Enhance test.
4882         * doc/posix-functions/link.texi (link): Document the bug.
4883
4884         getopt: silence clang warning
4885         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4886         dereference.
4887         Reported by Gustavo Martin Domato.
4888
4889 2011-06-22  Jim Meyering  <meyering@redhat.com>
4890
4891         bootstrap: do not insert a blank line into each .gitignore file
4892         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4893
4894 2011-06-21  Eric Blake  <eblake@redhat.com>
4895
4896         perror: test for output mismatch
4897         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4898         perror on IRIX.
4899
4900         strerror_r: fix OpenBSD behavior on out-of-range
4901         * lib/strerror_r.c (strerror_r): Always use maximal string.
4902         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4903
4904         strerror_r: fix OpenBSD behavior on 0
4905         * lib/strerror-override.c (strerror_override): Also override 0
4906         when needed.
4907         * lib/strerror-override.h (strerror_override): Likewise.
4908         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4909         earlier.
4910         * lib/strerror_r.c (strerror_r): Likewise.
4911         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4912         behavior...
4913         (gl_FUNC_STRERROR_0): ...into new macro.
4914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4915         is overridden.
4916         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4917         * modules/strerror-override (Files): Add strerror.m4.
4918         (configure.ac): Also provide override for 0 when needed.
4919         * doc/posix-functions/strerror.texi (strerror): Document this.
4920         * doc/posix-functions/perror.texi (perror): Likewise.
4921
4922         perror: adjust array size
4923         * modules/perror (Depends-on): Add strerror-override.
4924         * lib/perror.c (perror): Use it to avoid magic number.
4925
4926         strerror-override: reduce size
4927         * lib/strerror-override.c (strerror_override): Use fewer lines.
4928
4929 2011-06-20  Bruno Haible  <bruno@clisp.org>
4930
4931         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4932         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4933
4934 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4935
4936         alloca: port to compilers that can optimize like GCC 4.6.0
4937         * lib/alloca.c (find_stack_direction): New signature, taken from
4938         Autoconf git.  This works with GCC 4.6.0.  This code should never
4939         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4940         be used with other compilers that optimize as well as GCC 4.6.0 does.
4941         (alloca): Adjust to new signature.
4942         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4943         New macro, which patches Autoconf in a similar way.
4944
4945         c-stack: stop worrying about stack direction
4946         * lib/c-stack.c (find_stack_direction): Remove.
4947         (segv_handler): Don't worry about stack direction growth, as it's
4948         too much of a pain to configure this correctly, given how compilers
4949         are optimizing-away our stack-growth detection code.  Instead, assume
4950         that any access to just before or just after the stack is OK.
4951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4952         Don't require AC_FUNC_ALLOCA; no longer needed.
4953
4954 2011-06-20  Eric Blake  <eblake@redhat.com>
4955
4956         test-stat: don't allocate PATH_MAX bytes
4957         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4958         PATH_MAX-sized buffer.
4959         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4960         * modules/stat-tests (Depends-on): Likewise.
4961         * tests/test-fstatat.c (includes): Drop pathmax.h.
4962         * tests/test-stat.c (includes): Likewise.
4963         Reported by Bruno Haible.
4964
4965 2011-06-20  Bruno Haible  <bruno@clisp.org>
4966
4967         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4968         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4969         * lib/float.c: New file.
4970         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4971         REPLACE_FLOAT_LDBL.
4972         * modules/float (Files): Add lib/float.c.
4973         (configure.ac): Invoke AC_LIBOBJ.
4974         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4975
4976 2011-06-20  Bruno Haible  <bruno@clisp.org>
4977
4978         Tests for module 'float'.
4979         * modules/float-tests: New file.
4980         * tests/test-float.c: New file.
4981
4982 2011-06-19  Bruno Haible  <bruno@clisp.org>
4983
4984         isinf: Coding style.
4985         * lib/isinf.c: Use GNU coding style.
4986
4987 2011-06-19  Bruno Haible  <bruno@clisp.org>
4988
4989         linkat test: Avoid test failure on AIX 7.1.
4990         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4991         * tests/test-link.h (test_link): Likewise.
4992
4993 2011-06-19  Bruno Haible  <bruno@clisp.org>
4994
4995         pread test: Avoid test failure on OpenBSD 4.9.
4996         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4997
4998 2011-06-19  Bruno Haible  <bruno@clisp.org>
4999
5000         sprintf-posix: Fix test failure on AIX 7.1.
5001         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5002         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5003         on AIX.
5004         * doc/posix-functions/fprintf.texi: Likewise.
5005         * doc/posix-functions/printf.texi: Likewise.
5006         * doc/posix-functions/snprintf.texi: Likewise.
5007         * doc/posix-functions/sprintf.texi: Likewise.
5008         * doc/posix-functions/vdprintf.texi: Likewise.
5009         * doc/posix-functions/vfprintf.texi: Likewise.
5010         * doc/posix-functions/vprintf.texi: Likewise.
5011         * doc/posix-functions/vsnprintf.texi: Likewise.
5012         * doc/posix-functions/vsprintf.texi: Likewise.
5013
5014 2011-06-19  Bruno Haible  <bruno@clisp.org>
5015
5016         roundl-ieee: Fix test failure on AIX 7.1.
5017         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5018         * doc/posix-functions/roundl.texi: Mention problem with negative
5019         arguments.
5020
5021 2011-06-19  Bruno Haible  <bruno@clisp.org>
5022
5023         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5024         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5025         * doc/posix-functions/round.texi: Mention problem with negative
5026         arguments.
5027         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5028
5029 2011-06-19  Bruno Haible  <bruno@clisp.org>
5030
5031         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5032         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5033         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5034         * doc/posix-functions/roundf.texi: Mention problem with negative
5035         arguments.
5036         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5037
5038 2011-06-19  Bruno Haible  <bruno@clisp.org>
5039
5040         ceilf-ieee: Work around bug on MacOS X 10.5.
5041         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5042
5043         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5044         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5045         IEEE compliant, avoid compiler optimizations.
5046         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5047         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5048         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5049         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5050         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5051         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5053         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5055         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5056
5057 2011-06-19  Bruno Haible  <bruno@clisp.org>
5058
5059         ceilf-ieee: Work around bug on AIX 7.1.
5060         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5061         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5062
5063 2011-06-19  Bruno Haible  <bruno@clisp.org>
5064
5065         ceil-ieee: Work around bug on AIX 7.1.
5066         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5067         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5068
5069 2011-06-18  Bruno Haible  <bruno@clisp.org>
5070
5071         fsync test: Avoid test failure on MacOS X and AIX.
5072         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5073         EINVAL.
5074
5075 2011-06-18  Bruno Haible  <bruno@clisp.org>
5076
5077         openat, fdopendir tests: Fix link errors.
5078         * modules/openat-tests (Depends-on): Add progname.
5079         * modules/fdopendir-tests (Depends-on): Likewise.
5080         * tests/test-fchownat.c: Include progname.h.
5081         (main): Call set_program_name.
5082         * tests/test-fstatat.c: Include progname.h.
5083         (main): Call set_program_name.
5084         * tests/test-mkdirat.c: Include progname.h.
5085         (main): Call set_program_name.
5086         * tests/test-openat.c: Include progname.h.
5087         (main): Call set_program_name.
5088         * tests/test-unlinkat.c: Include progname.h.
5089         (main): Call set_program_name.
5090         * tests/test-fdopendir.c: Include progname.h.
5091         (main): Call set_program_name.
5092
5093 2011-06-18  Bruno Haible  <bruno@clisp.org>
5094
5095         Doc update.
5096         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5097         HP-UX.
5098         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5099
5100 2011-06-18  Bruno Haible  <bruno@clisp.org>
5101
5102         getcwd tests: Avoid compilation error on HP-UX 11.31.
5103         * modules/getcwd-tests (Depends-on): Add pathmax.
5104         * tests/test-getcwd.c: Include pathmax.h.
5105
5106 2011-06-18  Bruno Haible  <bruno@clisp.org>
5107
5108         isfinite, isinf: Fix link error on AIX 6 and 7.
5109         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5110         needed, also test the macro with a 'float' argument.
5111         * m4/isinf.m4 (gl_ISINF): Likewise.
5112
5113 2011-06-18  Bruno Haible  <bruno@clisp.org>
5114
5115         getloadavg: Don't clobber LIBS. Regression from previous commit.
5116         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5117         AC_CHECK_LIB from here...
5118         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5119         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5120         gl_func_getloadavg_done.
5121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5122
5123 2011-06-18  Bruno Haible  <bruno@clisp.org>
5124
5125         clean-temp: Improve documentation.
5126         * lib/clean-temp.h: Explain better how to use this module.
5127         Reported by John Darrington <john@darrington.wattle.id.au>.
5128
5129 2011-06-17  Bruno Haible  <bruno@clisp.org>
5130
5131         pread, pwrite: Avoid cc warning on AIX.
5132         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5133         (pwrite): Likewise.
5134
5135 2011-06-17  Bruno Haible  <bruno@clisp.org>
5136
5137         spawn-pipe tests: Fix link error.
5138         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5140
5141 2011-06-17  Bruno Haible  <bruno@clisp.org>
5142
5143         Tests: Remove unnecessary dependency.
5144         * modules/canonicalize-tests (Depends-on): Remove progname.
5145         * modules/chown-tests (Depends-on): Likewise.
5146         * modules/dirname-tests (Depends-on): Likewise.
5147         * modules/fdopendir-tests (Depends-on): Likewise.
5148         * modules/fdutimensat-tests (Depends-on): Likewise.
5149         * modules/hash-tests (Depends-on): Likewise.
5150         * modules/lchown-tests (Depends-on): Likewise.
5151         * modules/linkat-tests (Depends-on): Likewise.
5152         * modules/renameat-tests (Depends-on): Likewise.
5153         * modules/spawn-pipe-tests (Depends-on): Likewise.
5154         * modules/utimensat-tests (Depends-on): Likewise.
5155
5156 2011-06-17  Bruno Haible  <bruno@clisp.org>
5157
5158         spawn-pipe tests: Fix link error.
5159         * tests/test-spawn-pipe-child.c: Undefine fflush.
5160
5161 2011-06-17  Bruno Haible  <bruno@clisp.org>
5162
5163         Fix tests link errors.
5164         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5165         * modules/chown-tests (Makefile.am): Don't link test-chown with
5166         LIBINTL.
5167         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5168         LIBINTL.
5169         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5170         LIBINTL.
5171         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5172         LIBINTL.
5173
5174 2011-06-16  Bruno Haible  <bruno@clisp.org>
5175
5176         crypto/gc-sha1: Fix recent regression.
5177         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5178         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5179
5180         crypto/gc-md5: Fix recent regression.
5181         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5182
5183         crypto/gc-md4: Fix recent regression.
5184         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5185         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5186
5187         crypto/gc-arctwo: Fix recent regression.
5188         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5189         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5190
5191         crypto/gc-rijndael: Fix recent regression.
5192         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5193         (configure.ac): Invoke AC_LIBOBJ here.
5194         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5196
5197         crypto/gc-hmac-sha1: Fix recent regression.
5198         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5199         (configure.ac): Invoke AC_LIBOBJ here.
5200         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5202
5203         crypto/gc-hmac-md5: Fix recent regression.
5204         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5205         (configure.ac): Invoke AC_LIBOBJ here.
5206         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5208
5209         crypto/gc-des: Fix recent regression.
5210         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5211         (configure.ac): Invoke AC_LIBOBJ here.
5212         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5214
5215         crypto/gc-arcfour: Fix recent regression.
5216         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5217         (configure.ac): Invoke AC_LIBOBJ here.
5218         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5220
5221 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5222
5223         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5224         After the 2011-05-21 change, this macro requires
5225         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5226         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5227
5228 2011-06-16  Bruno Haible  <bruno@clisp.org>
5229
5230         fprintftime: Move AC_LIBOBJ invocations to module description.
5231         * m4/fprintftime.m4: Remove file.
5232         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5233         (configure.ac): Remove gl_FPRINTFTIME call.
5234         (Makefile.am): Augment lib_SOURCES.
5235         Reported by Jim Meyering.
5236
5237 2011-06-16  Bruno Haible  <bruno@clisp.org>
5238
5239         tmpfile-safer: Finish 2011-05-23 commit.
5240         * m4/stdio-safer.m4: Really remove file.
5241         Reported by Jim Meyering.
5242
5243 2011-06-16  Bruno Haible  <bruno@clisp.org>
5244
5245         syntax-check: Fix typo.
5246         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5247         printf-posix.m4.
5248         Reported by Jim Meyering.
5249
5250 2011-06-13  Jim Meyering  <meyering@redhat.com>
5251
5252         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5253         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5254
5255 2011-05-23  Bruno Haible  <bruno@clisp.org>
5256
5257         yesno: Move AC_LIBOBJ invocations to module description.
5258         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5259         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5260
5261 2011-05-23  Bruno Haible  <bruno@clisp.org>
5262
5263         xstrtol: Move AC_LIBOBJ invocations to module description.
5264         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5265         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5266
5267 2011-05-23  Bruno Haible  <bruno@clisp.org>
5268
5269         xstrtold: Move AC_LIBOBJ invocations to module description.
5270         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5271         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5272
5273 2011-05-23  Bruno Haible  <bruno@clisp.org>
5274
5275         xstrtod: Move AC_LIBOBJ invocations to module description.
5276         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5277         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5278
5279 2011-05-23  Bruno Haible  <bruno@clisp.org>
5280
5281         xnanosleep: Move AC_LIBOBJ invocations to module description.
5282         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5283         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5284
5285 2011-05-23  Bruno Haible  <bruno@clisp.org>
5286
5287         xgetcwd: Move AC_LIBOBJ invocations to module description.
5288         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5289         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5290
5291 2011-05-23  Bruno Haible  <bruno@clisp.org>
5292
5293         xalloc: Move AC_LIBOBJ invocations to module description.
5294         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5295         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5296
5297 2011-05-23  Bruno Haible  <bruno@clisp.org>
5298
5299         write-any-file: Move AC_LIBOBJ invocations to module description.
5300         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5301         invocation.
5302         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5303
5304 2011-05-23  Bruno Haible  <bruno@clisp.org>
5305
5306         utimens: Move AC_LIBOBJ invocations to module description.
5307         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5308         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5309
5310 2011-05-23  Bruno Haible  <bruno@clisp.org>
5311
5312         utimecmp: Move AC_LIBOBJ invocations to module description.
5313         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5314         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5315
5316 2011-05-23  Bruno Haible  <bruno@clisp.org>
5317
5318         userspec: Move AC_LIBOBJ invocations to module description.
5319         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5320         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5321
5322 2011-05-23  Bruno Haible  <bruno@clisp.org>
5323
5324         unlinkdir: Move AC_LIBOBJ invocations to module description.
5325         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5326         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5327
5328 2011-05-23  Bruno Haible  <bruno@clisp.org>
5329
5330         unistd-safer: Move AC_LIBOBJ invocations to module description.
5331         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5332         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5333
5334 2011-05-23  Bruno Haible  <bruno@clisp.org>
5335
5336         tempname: Move AC_LIBOBJ invocations to module description.
5337         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5338         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5339
5340 2011-05-23  Bruno Haible  <bruno@clisp.org>
5341
5342         strftime: Move AC_LIBOBJ invocations to module description.
5343         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5344         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5345
5346 2011-05-23  Bruno Haible  <bruno@clisp.org>
5347
5348         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5349         * m4/stdlib-safer.m4: Remove file.
5350         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5351         (configure.ac): Remove gl_STDLIB_SAFER call.
5352         (Makefile.am): Augment lib_SOURCES.
5353
5354 2011-05-23  Bruno Haible  <bruno@clisp.org>
5355
5356         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5357         * m4/stdio-safer.m4: Remove file.
5358         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5359         (configure.ac): Remove gl_TMPFILE_SAFER call.
5360         (Makefile.am): Augment lib_SOURCES.
5361
5362 2011-05-23  Bruno Haible  <bruno@clisp.org>
5363
5364         popen-safer: Move AC_LIBOBJ invocations to module description.
5365         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5366         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5367         (configure.ac): Remove gl_POPEN_SAFER call.
5368         (Makefile.am): Augment lib_SOURCES.
5369
5370 2011-05-23  Bruno Haible  <bruno@clisp.org>
5371
5372         freopen-safer: Move AC_LIBOBJ invocations to module description.
5373         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5374         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5375         (configure.ac): Remove gl_FREOPEN_SAFER call.
5376         (Makefile.am): Augment lib_SOURCES.
5377
5378 2011-05-23  Bruno Haible  <bruno@clisp.org>
5379
5380         fopen-safer: Move AC_LIBOBJ invocations to module description.
5381         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5382         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5383         (configure.ac): Remove gl_FOPEN_SAFER call.
5384         (Makefile.am): Augment lib_SOURCES.
5385
5386 2011-05-23  Bruno Haible  <bruno@clisp.org>
5387
5388         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5389         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5390         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5391
5392 2011-05-23  Bruno Haible  <bruno@clisp.org>
5393
5394         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5395         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5396         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5397
5398 2011-05-23  Bruno Haible  <bruno@clisp.org>
5399
5400         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5401         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5402         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5403
5404 2011-05-23  Bruno Haible  <bruno@clisp.org>
5405
5406         settime: Move AC_LIBOBJ invocations to module description.
5407         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5408         * modules/settime (Makefile.am): Augment lib_SOURCES.
5409
5410 2011-05-23  Bruno Haible  <bruno@clisp.org>
5411
5412         savedir: Move AC_LIBOBJ invocations to module description.
5413         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5414         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5415
5416 2011-05-23  Bruno Haible  <bruno@clisp.org>
5417
5418         save-cwd: Move AC_LIBOBJ invocations to module description.
5419         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5420         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5421
5422 2011-05-23  Bruno Haible  <bruno@clisp.org>
5423
5424         same: Move AC_LIBOBJ invocations to module description.
5425         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5426         * modules/same (Makefile.am): Augment lib_SOURCES.
5427
5428 2011-05-23  Bruno Haible  <bruno@clisp.org>
5429
5430         safe-write: Move AC_LIBOBJ invocations to module description.
5431         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5432         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5433         instead of gl_SAFE_WRITE.
5434         (Makefile.am): Augment lib_SOURCES.
5435
5436 2011-05-23  Bruno Haible  <bruno@clisp.org>
5437
5438         safe-read: Move AC_LIBOBJ invocations to module description.
5439         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5440         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5441         of gl_SAFE_READ.
5442         (Makefile.am): Augment lib_SOURCES.
5443
5444 2011-05-23  Bruno Haible  <bruno@clisp.org>
5445
5446         safe-alloc: Move AC_LIBOBJ invocations to module description.
5447         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5448         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5449
5450 2011-05-23  Bruno Haible  <bruno@clisp.org>
5451
5452         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5453         * m4/rijndael.m4: Remove file.
5454         * modules/crypto/rijndael (Files): Remove it.
5455         (configure.ac): Remove gl_RIJNDAEL call.
5456         (Makefile.am): Augment lib_SOURCES.
5457
5458 2011-05-23  Bruno Haible  <bruno@clisp.org>
5459
5460         readtokens: Move AC_LIBOBJ invocations to module description.
5461         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5462         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5463
5464 2011-05-23  Bruno Haible  <bruno@clisp.org>
5465
5466         read-file: Move AC_LIBOBJ invocations to module description.
5467         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5468         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5469         of gl_FUNC_READ_FILE.
5470         (Makefile.am): Augment lib_SOURCES.
5471
5472 2011-05-23  Bruno Haible  <bruno@clisp.org>
5473
5474         quotearg: Move AC_LIBOBJ invocations to module description.
5475         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5476         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5477
5478 2011-05-23  Bruno Haible  <bruno@clisp.org>
5479
5480         quote: Move AC_LIBOBJ invocations to module description.
5481         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5482         * modules/quote (Makefile.am): Augment lib_SOURCES.
5483
5484 2011-05-23  Bruno Haible  <bruno@clisp.org>
5485
5486         posixver: Move AC_LIBOBJ invocations to module description.
5487         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5488         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5489
5490 2011-05-23  Bruno Haible  <bruno@clisp.org>
5491
5492         posixtm: Move AC_LIBOBJ invocations to module description.
5493         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5494         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5495
5496 2011-05-23  Bruno Haible  <bruno@clisp.org>
5497
5498         physmem: Move AC_LIBOBJ invocations to module description.
5499         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5500         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5501
5502 2011-05-23  Bruno Haible  <bruno@clisp.org>
5503
5504         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5505         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5506         invocation.
5507         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5508
5509 2011-05-23  Bruno Haible  <bruno@clisp.org>
5510
5511         mpsort: Move AC_LIBOBJ invocations to module description.
5512         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5513         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5514
5515 2011-05-23  Bruno Haible  <bruno@clisp.org>
5516
5517         modechange: Move AC_LIBOBJ invocations to module description.
5518         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5519         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5520
5521 2011-05-23  Bruno Haible  <bruno@clisp.org>
5522
5523         mkdir-p: Move AC_LIBOBJ invocations to module description.
5524         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5525         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5526
5527 2011-05-23  Bruno Haible  <bruno@clisp.org>
5528
5529         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5530         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5531         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5532
5533 2011-05-23  Bruno Haible  <bruno@clisp.org>
5534
5535         mgetgroups: Move AC_LIBOBJ invocations to module description.
5536         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5537         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5538
5539 2011-05-23  Bruno Haible  <bruno@clisp.org>
5540
5541         memxor: Move AC_LIBOBJ invocations to module description.
5542         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5543         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5544
5545 2011-05-23  Bruno Haible  <bruno@clisp.org>
5546
5547         memcoll: Move AC_LIBOBJ invocations to module description.
5548         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5549         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5550
5551 2011-05-23  Bruno Haible  <bruno@clisp.org>
5552
5553         memcasecmp: Move AC_LIBOBJ invocations to module description.
5554         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5555         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5556
5557 2011-05-23  Bruno Haible  <bruno@clisp.org>
5558
5559         crypto/md5: Move AC_LIBOBJ invocations to module description.
5560         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5561         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5562
5563 2011-05-23  Bruno Haible  <bruno@clisp.org>
5564
5565         crypto/md4: Move AC_LIBOBJ invocations to module description.
5566         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5567         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5568
5569 2011-05-23  Bruno Haible  <bruno@clisp.org>
5570
5571         crypto/md2: Move AC_LIBOBJ invocations to module description.
5572         * m4/md2.m4: Remove file.
5573         * modules/crypto/md2 (Files): Remove it.
5574         (configure.ac): Remove gl_MD2 call.
5575         (Makefile.am): Augment lib_SOURCES.
5576
5577 2011-05-23  Bruno Haible  <bruno@clisp.org>
5578
5579         long-options: Move AC_LIBOBJ invocations to module description.
5580         * m4/long-options.m4: Remove file.
5581         * modules/long-options (Files): Remove it.
5582         (configure.ac): Remove gl_LONG_OPTIONS call.
5583         (Makefile.am): Augment lib_SOURCES.
5584
5585 2011-05-23  Bruno Haible  <bruno@clisp.org>
5586
5587         i-ring: Move AC_LIBOBJ invocations to module description.
5588         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5589         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5590
5591 2011-05-23  Bruno Haible  <bruno@clisp.org>
5592
5593         idcache: Move AC_LIBOBJ invocations to module description.
5594         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5595         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5596
5597 2011-05-23  Bruno Haible  <bruno@clisp.org>
5598
5599         human: Move AC_LIBOBJ invocations to module description.
5600         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5601         * modules/human (Makefile.am): Augment lib_SOURCES.
5602
5603 2011-05-23  Bruno Haible  <bruno@clisp.org>
5604
5605         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5606         * m4/hmac-sha1.m4: Remove file.
5607         * modules/crypto/hmac-sha1 (Files): Remove it.
5608         (configure.ac): Remove gl_HMAC_SHA1 call.
5609         (Makefile.am): Augment lib_SOURCES.
5610
5611 2011-05-23  Bruno Haible  <bruno@clisp.org>
5612
5613         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5614         * m4/hmac-md5.m4: Remove file.
5615         * modules/crypto/hmac-md5 (Files): Remove it.
5616         (configure.ac): Remove gl_HMAC_MD5 call.
5617         (Makefile.am): Augment lib_SOURCES.
5618
5619 2011-05-23  Bruno Haible  <bruno@clisp.org>
5620
5621         hash: Move AC_LIBOBJ invocations to module description.
5622         * m4/hash.m4: Remove file.
5623         * modules/hash (Files): Remove it.
5624         (configure.ac): Remove gl_HASH call.
5625         (Makefile.am): Augment lib_SOURCES.
5626
5627 2011-05-23  Bruno Haible  <bruno@clisp.org>
5628
5629         hard-locale: Move AC_LIBOBJ invocations to module description.
5630         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5631         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5632
5633 2011-05-23  Bruno Haible  <bruno@clisp.org>
5634
5635         getugroups: Move AC_LIBOBJ invocations to module description.
5636         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5637         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5638
5639 2011-05-23  Bruno Haible  <bruno@clisp.org>
5640
5641         gettime: Move AC_LIBOBJ invocations to module description.
5642         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5643         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5644
5645 2011-05-23  Bruno Haible  <bruno@clisp.org>
5646
5647         getndelim2: Move AC_LIBOBJ invocations to module description.
5648         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5649         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5650
5651 2011-05-23  Bruno Haible  <bruno@clisp.org>
5652
5653         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5654         * m4/gc-pbkdf2-sha1.m4: Remove file.
5655         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5656         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5657         (Makefile.am): Augment lib_SOURCES.
5658
5659 2011-05-23  Bruno Haible  <bruno@clisp.org>
5660
5661         fts: Move AC_LIBOBJ invocations to module description.
5662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5663         * modules/fts (configure.ac): ... to here.
5664
5665 2011-05-23  Bruno Haible  <bruno@clisp.org>
5666
5667         file-type: Move AC_LIBOBJ invocations to module description.
5668         * m4/file-type.m4: Remove file.
5669         * modules/file-type (Files): Remove it.
5670         (configure.ac): Remove gl_FILE_TYPE call.
5671         (Makefile.am): Augment lib_SOURCES.
5672
5673 2011-05-23  Bruno Haible  <bruno@clisp.org>
5674
5675         filenamecat*: Respect rules for use of AC_LIBOBJ.
5676         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5677         Remove AC_LIBOBJ invocation.
5678         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5679         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5680
5681 2011-05-23  Bruno Haible  <bruno@clisp.org>
5682
5683         filemode: Move AC_LIBOBJ invocations to module description.
5684         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5685         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5686
5687 2011-05-23  Bruno Haible  <bruno@clisp.org>
5688
5689         openat-safer: Move AC_LIBOBJ invocations to module description.
5690         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5691         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5692
5693 2011-05-23  Bruno Haible  <bruno@clisp.org>
5694
5695         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5696         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5697         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5698
5699 2011-05-23  Bruno Haible  <bruno@clisp.org>
5700
5701         exclude: Move AC_LIBOBJ invocations to module description.
5702         * m4/exclude.m4: Remove file.
5703         * modules/exclude (Files): Remove it.
5704         (configure.ac): Remove gl_EXCLUDE call.
5705         (Makefile.am): Augment lib_SOURCES.
5706
5707 2011-05-23  Bruno Haible  <bruno@clisp.org>
5708
5709         dirname*: Respect rules for use of AC_LIBOBJ.
5710         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5711         invocations.
5712         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5713         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5714
5715 2011-05-23  Bruno Haible  <bruno@clisp.org>
5716
5717         dirent-safer: Move AC_LIBOBJ invocations to module description.
5718         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5719         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5720
5721 2011-05-23  Bruno Haible  <bruno@clisp.org>
5722
5723         crypto/des: Move AC_LIBOBJ invocations to module description.
5724         * m4/des.m4: Remove file.
5725         * modules/crypto/des (Files): Remove it.
5726         (configure.ac): Remove gl_DES call.
5727         (Makefile.am): Augment lib_SOURCES.
5728
5729 2011-05-23  Bruno Haible  <bruno@clisp.org>
5730
5731         cycle-check: Move AC_LIBOBJ invocations to module description.
5732         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5733         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5734
5735 2011-05-23  Bruno Haible  <bruno@clisp.org>
5736
5737         c-strtold: Move AC_LIBOBJ invocations to module description.
5738         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5739         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5740
5741 2011-05-23  Bruno Haible  <bruno@clisp.org>
5742
5743         c-strtod: Move AC_LIBOBJ invocations to module description.
5744         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5745         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5746
5747 2011-05-23  Bruno Haible  <bruno@clisp.org>
5748
5749         crc: Move AC_LIBOBJ invocations to module description.
5750         * m4/crc.m4: Remove file.
5751         * modules/crc (Files): Remove it.
5752         (configure.ac): Remove gl_CRC call.
5753         (Makefile.am): Augment lib_SOURCES.
5754
5755 2011-05-23  Bruno Haible  <bruno@clisp.org>
5756
5757         close-stream: Move AC_LIBOBJ invocations to module description.
5758         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5759         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5760
5761 2011-05-23  Bruno Haible  <bruno@clisp.org>
5762
5763         closeout: Move AC_LIBOBJ invocations to module description.
5764         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5765         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5766
5767 2011-05-23  Bruno Haible  <bruno@clisp.org>
5768
5769         closein: Move AC_LIBOBJ invocations to module description.
5770         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5771         * modules/closein (Makefile.am): Augment lib_SOURCES.
5772
5773 2011-05-23  Bruno Haible  <bruno@clisp.org>
5774
5775         cloexec: Move AC_LIBOBJ invocations to module description.
5776         * m4/cloexec.m4: Remove file.
5777         * modules/cloexec (Files): Remove it.
5778         (configure.ac): Remove gl_CLOEXEC call.
5779         (Makefile.am): Augment lib_SOURCES.
5780
5781 2011-05-23  Bruno Haible  <bruno@clisp.org>
5782
5783         check-version: Move AC_LIBOBJ invocations to module description.
5784         * m4/check-version.m4: Remove file.
5785         * modules/check-version (Files): Remove it.
5786         (configure.ac): Remove gl_CHECK_VERSION call.
5787         (Makefile.am): Augment lib_SOURCES.
5788
5789 2011-05-23  Bruno Haible  <bruno@clisp.org>
5790
5791         chdir-safer: Move AC_LIBOBJ invocations to module description.
5792         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5793         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5794
5795 2011-05-23  Bruno Haible  <bruno@clisp.org>
5796
5797         canonicalize: Move AC_LIBOBJ invocations to module description.
5798         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5799         AC_LIBOBJ invocation.
5800         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5801
5802 2011-05-23  Bruno Haible  <bruno@clisp.org>
5803
5804         canon-host: Move AC_LIBOBJ invocations to module description.
5805         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5806         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5807         instead of gl_CANON_HOST.
5808         (Makefile.am): Augment lib_SOURCES.
5809
5810 2011-05-23  Bruno Haible  <bruno@clisp.org>
5811
5812         backupfile: Move AC_LIBOBJ invocations to module description.
5813         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5814         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5815
5816 2011-05-23  Bruno Haible  <bruno@clisp.org>
5817
5818         argmatch: Move AC_LIBOBJ invocations to module description.
5819         * m4/argmatch.m4: Remove file.
5820         * modules/argmatch (Files): Remove it.
5821         (configure.ac): Remove gl_ARGMATCH call.
5822         (Makefile.am): Augment lib_SOURCES.
5823
5824 2011-05-23  Bruno Haible  <bruno@clisp.org>
5825
5826         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5827         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5828         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5833         * m4/arcfour.m4: Remove file.
5834         * modules/crypto/arcfour (Files): Remove it.
5835         (configure.ac): Remove gl_ARCFOUR call.
5836         (Makefile.am): Augment lib_SOURCES.
5837
5838 2011-05-22  Bruno Haible  <bruno@clisp.org>
5839
5840         write: Move AC_LIBOBJ invocations to module description.
5841         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5842         * modules/write (configure.ac): ... to here.
5843
5844 2011-05-22  Bruno Haible  <bruno@clisp.org>
5845
5846         wmemset: Move AC_LIBOBJ invocations to module description.
5847         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5848         here...
5849         * modules/wmemset (configure.ac): ... to here.
5850
5851 2011-05-22  Bruno Haible  <bruno@clisp.org>
5852
5853         wmemmove: Move AC_LIBOBJ invocations to module description.
5854         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5855         here...
5856         * modules/wmemmove (configure.ac): ... to here.
5857
5858 2011-05-22  Bruno Haible  <bruno@clisp.org>
5859
5860         wmemcpy: Move AC_LIBOBJ invocations to module description.
5861         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5862         here...
5863         * modules/wmemcpy (configure.ac): ... to here.
5864
5865 2011-05-22  Bruno Haible  <bruno@clisp.org>
5866
5867         wmemcmp: Move AC_LIBOBJ invocations to module description.
5868         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5869         here...
5870         * modules/wmemcmp (configure.ac): ... to here.
5871
5872 2011-05-22  Bruno Haible  <bruno@clisp.org>
5873
5874         wmemchr: Move AC_LIBOBJ invocations to module description.
5875         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5876         here...
5877         * modules/wmemchr (configure.ac): ... to here.
5878
5879 2011-05-22  Bruno Haible  <bruno@clisp.org>
5880
5881         wcswidth: Move AC_LIBOBJ invocations to module description.
5882         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5883         here...
5884         * modules/wcswidth (configure.ac): ... to here.
5885
5886 2011-05-22  Bruno Haible  <bruno@clisp.org>
5887
5888         wcwidth: Respect rules for use of AC_LIBOBJ.
5889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5890         invocation from here...
5891         * modules/wcwidth (configure.ac): ... to here.
5892         (Depends-on): Update conditions.
5893
5894 2011-05-22  Bruno Haible  <bruno@clisp.org>
5895
5896         wctype: Move AC_LIBOBJ invocations to module description.
5897         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5898         invocation from here...
5899         * modules/wctype (configure.ac): ... to here.
5900         (Depends-on): Update conditions.
5901
5902 2011-05-22  Bruno Haible  <bruno@clisp.org>
5903
5904         wctrans: Move AC_LIBOBJ invocations to module description.
5905         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5906         invocation from here...
5907         * modules/wctrans (configure.ac): ... to here.
5908
5909 2011-05-22  Bruno Haible  <bruno@clisp.org>
5910
5911         wctomb: Move AC_LIBOBJ invocations to module description.
5912         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5913         invocations from here...
5914         * modules/wctomb (configure.ac): ... to here.
5915
5916 2011-05-22  Bruno Haible  <bruno@clisp.org>
5917
5918         wctob: Move AC_LIBOBJ invocations to module description.
5919         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5920         gl_PREREQ_WCTOB invocations from here...
5921         * modules/wctob (configure.ac): ... to here.
5922         (Depends-on): Update conditions.
5923
5924 2011-05-22  Bruno Haible  <bruno@clisp.org>
5925
5926         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5927         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5928         here...
5929         * modules/wcsxfrm (configure.ac): ... to here.
5930
5931 2011-05-22  Bruno Haible  <bruno@clisp.org>
5932
5933         wcstok: Move AC_LIBOBJ invocations to module description.
5934         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5935         * modules/wcstok (configure.ac): ... to here.
5936
5937 2011-05-22  Bruno Haible  <bruno@clisp.org>
5938
5939         wcsstr: Move AC_LIBOBJ invocations to module description.
5940         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5941         * modules/wcsstr (configure.ac): ... to here.
5942
5943 2011-05-22  Bruno Haible  <bruno@clisp.org>
5944
5945         wcsspn: Move AC_LIBOBJ invocations to module description.
5946         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5947         * modules/wcsspn (configure.ac): ... to here.
5948
5949 2011-05-22  Bruno Haible  <bruno@clisp.org>
5950
5951         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5952         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5953         gl_PREREQ_WCSRTOMBS invocations from here...
5954         * modules/wcsrtombs (configure.ac): ... to here.
5955
5956 2011-05-22  Bruno Haible  <bruno@clisp.org>
5957
5958         wcsrchr: Move AC_LIBOBJ invocations to module description.
5959         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5960         here...
5961         * modules/wcsrchr (configure.ac): ... to here.
5962
5963 2011-05-22  Bruno Haible  <bruno@clisp.org>
5964
5965         wcspbrk: Move AC_LIBOBJ invocations to module description.
5966         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5967         here...
5968         * modules/wcspbrk (configure.ac): ... to here.
5969
5970 2011-05-22  Bruno Haible  <bruno@clisp.org>
5971
5972         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5973         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5974         gl_PREREQ_WCSNRTOMBS invocations from here...
5975         * modules/wcsnrtombs (configure.ac): ... to here.
5976
5977 2011-05-22  Bruno Haible  <bruno@clisp.org>
5978
5979         wcsnlen: Move AC_LIBOBJ invocations to module description.
5980         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5981         here...
5982         * modules/wcsnlen (configure.ac): ... to here.
5983
5984 2011-05-22  Bruno Haible  <bruno@clisp.org>
5985
5986         wcsncpy: Move AC_LIBOBJ invocations to module description.
5987         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5988         here...
5989         * modules/wcsncpy (configure.ac): ... to here.
5990
5991 2011-05-22  Bruno Haible  <bruno@clisp.org>
5992
5993         wcsncmp: Move AC_LIBOBJ invocations to module description.
5994         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5995         here...
5996         * modules/wcsncmp (configure.ac): ... to here.
5997
5998 2011-05-22  Bruno Haible  <bruno@clisp.org>
5999
6000         wcsncat: Move AC_LIBOBJ invocations to module description.
6001         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6002         here...
6003         * modules/wcsncat (configure.ac): ... to here.
6004
6005 2011-05-22  Bruno Haible  <bruno@clisp.org>
6006
6007         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6008         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6009         from here...
6010         * modules/wcsncasecmp (configure.ac): ... to here.
6011
6012 2011-05-22  Bruno Haible  <bruno@clisp.org>
6013
6014         wcslen: Move AC_LIBOBJ invocations to module description.
6015         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6016         * modules/wcslen (configure.ac): ... to here.
6017
6018 2011-05-22  Bruno Haible  <bruno@clisp.org>
6019
6020         wcsdup: Move AC_LIBOBJ invocations to module description.
6021         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6022         * modules/wcsdup (configure.ac): ... to here.
6023
6024 2011-05-22  Bruno Haible  <bruno@clisp.org>
6025
6026         wcscspn: Move AC_LIBOBJ invocations to module description.
6027         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6028         here...
6029         * modules/wcscspn (configure.ac): ... to here.
6030
6031 2011-05-22  Bruno Haible  <bruno@clisp.org>
6032
6033         wcscpy: Move AC_LIBOBJ invocations to module description.
6034         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6035         * modules/wcscpy (configure.ac): ... to here.
6036
6037 2011-05-22  Bruno Haible  <bruno@clisp.org>
6038
6039         wcscoll: Move AC_LIBOBJ invocations to module description.
6040         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6041         here...
6042         * modules/wcscoll (configure.ac): ... to here.
6043
6044 2011-05-22  Bruno Haible  <bruno@clisp.org>
6045
6046         wcscmp: Move AC_LIBOBJ invocations to module description.
6047         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6048         * modules/wcscmp (configure.ac): ... to here.
6049
6050 2011-05-22  Bruno Haible  <bruno@clisp.org>
6051
6052         wcschr: Move AC_LIBOBJ invocations to module description.
6053         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6054         * modules/wcschr (configure.ac): ... to here.
6055
6056 2011-05-22  Bruno Haible  <bruno@clisp.org>
6057
6058         wcscat: Move AC_LIBOBJ invocations to module description.
6059         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6060         * modules/wcscat (configure.ac): ... to here.
6061
6062 2011-05-22  Bruno Haible  <bruno@clisp.org>
6063
6064         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6065         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6066         here...
6067         * modules/wcscasecmp (configure.ac): ... to here.
6068
6069 2011-05-22  Bruno Haible  <bruno@clisp.org>
6070
6071         wcrtomb: Move AC_LIBOBJ invocations to module description.
6072         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6073         invocations from here...
6074         * modules/wcrtomb (configure.ac): ... to here.
6075
6076 2011-05-22  Bruno Haible  <bruno@clisp.org>
6077
6078         wcpncpy: Move AC_LIBOBJ invocations to module description.
6079         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6080         here...
6081         * modules/wcpncpy (configure.ac): ... to here.
6082
6083 2011-05-22  Bruno Haible  <bruno@clisp.org>
6084
6085         wcpcpy: Move AC_LIBOBJ invocations to module description.
6086         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6087         * modules/wcpcpy (configure.ac): ... to here.
6088
6089 2011-05-22  Bruno Haible  <bruno@clisp.org>
6090
6091         waitpid: Move AC_LIBOBJ invocations to module description.
6092         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6093         invocation from here...
6094         * modules/waitpid (configure.ac): ... to here.
6095
6096 2011-05-22  Bruno Haible  <bruno@clisp.org>
6097
6098         utimensat: Move AC_LIBOBJ invocations to module description.
6099         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6100         here...
6101         * modules/utimensat (configure.ac): ... to here.
6102
6103 2011-05-22  Bruno Haible  <bruno@clisp.org>
6104
6105         usleep: Move AC_LIBOBJ invocations to module description.
6106         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6107         here...
6108         * modules/usleep (configure.ac): ... to here.
6109
6110 2011-05-22  Bruno Haible  <bruno@clisp.org>
6111
6112         unlockpt: Move AC_LIBOBJ invocations to module description.
6113         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6114         gl_PREREQ_UNLOCKPT invocations from here...
6115         * modules/unlockpt (configure.ac): ... to here.
6116
6117 2011-05-22  Bruno Haible  <bruno@clisp.org>
6118
6119         unlink: Respect rules for use of AC_LIBOBJ.
6120         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6121         * modules/unlink (configure.ac): ... to here.
6122
6123 2011-05-22  Bruno Haible  <bruno@clisp.org>
6124
6125         uname: Move AC_LIBOBJ invocations to module description.
6126         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6128         here...
6129         * modules/uname (configure.ac): ... to here.
6130
6131 2011-05-22  Bruno Haible  <bruno@clisp.org>
6132
6133         ttyname_r: Move AC_LIBOBJ invocations to module description.
6134         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6135         gl_PREREQ_TTYNAME_R invocations from here...
6136         * modules/ttyname_r (configure.ac): ... to here.
6137
6138 2011-05-22  Bruno Haible  <bruno@clisp.org>
6139
6140         tsearch: Move AC_LIBOBJ invocations to module description.
6141         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6142         invocations from here...
6143         * modules/tsearch (configure.ac): ... to here.
6144
6145 2011-05-22  Bruno Haible  <bruno@clisp.org>
6146
6147         towctrans: Move AC_LIBOBJ invocations to module description.
6148         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6149         AC_LIBOBJ invocation from here...
6150         * modules/towctrans (configure.ac): ... to here.
6151
6152 2011-05-22  Bruno Haible  <bruno@clisp.org>
6153
6154         tmpfile: Move AC_LIBOBJ invocations to module description.
6155         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6156         invocations from here...
6157         * modules/tmpfile (configure.ac): ... to here.
6158
6159 2011-05-22  Bruno Haible  <bruno@clisp.org>
6160
6161         times: Move AC_LIBOBJ invocations to module description.
6162         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6163         * modules/times (configure.ac): ... to here.
6164
6165 2011-05-22  Bruno Haible  <bruno@clisp.org>
6166
6167         time_r: Move AC_LIBOBJ invocations to module description.
6168         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6169         invocations from here...
6170         * modules/time_r (configure.ac): ... to here.
6171
6172 2011-05-22  Bruno Haible  <bruno@clisp.org>
6173
6174         timegm: Move AC_LIBOBJ invocations to module description.
6175         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6176         invocations from here...
6177         * modules/timegm (configure.ac): ... to here.
6178
6179 2011-05-22  Bruno Haible  <bruno@clisp.org>
6180
6181         tcgetsid: Move AC_LIBOBJ invocations to module description.
6182         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6183         and gl_PREREQ_TCGETSID invocations from here...
6184         * modules/tcgetsid (configure.ac): ... to here.
6185         (Depends-on): Update conditions.
6186
6187 2011-05-22  Bruno Haible  <bruno@clisp.org>
6188
6189         symlinkat: Move AC_LIBOBJ invocations to module description.
6190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6191         here...
6192         * modules/symlinkat (configure.ac): ... to here.
6193
6194 2011-05-22  Bruno Haible  <bruno@clisp.org>
6195
6196         symlink: Move AC_LIBOBJ invocations to module description.
6197         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6198         here...
6199         * modules/symlink (configure.ac): ... to here.
6200
6201 2011-05-22  Bruno Haible  <bruno@clisp.org>
6202
6203         strverscmp: Move AC_LIBOBJ invocations to module description.
6204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6206         from here...
6207         * modules/strverscmp (configure.ac): ... to here.
6208
6209 2011-05-22  Bruno Haible  <bruno@clisp.org>
6210
6211         strtok_r: Move AC_LIBOBJ invocations to module description.
6212         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6213         and gl_PREREQ_STRTOK_R invocations from here...
6214         * modules/strtok_r (configure.ac): ... to here.
6215         (Depends-on): Update conditions.
6216
6217 2011-05-22  Bruno Haible  <bruno@clisp.org>
6218
6219         strtoumax: Move AC_LIBOBJ invocations to module description.
6220         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6221         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6222         from here...
6223         * modules/strtoumax (configure.ac): ... to here.
6224
6225 2011-05-22  Bruno Haible  <bruno@clisp.org>
6226
6227         strtoimax: Move AC_LIBOBJ invocations to module description.
6228         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6230         from here...
6231         * modules/strtoimax (configure.ac): ... to here.
6232
6233 2011-05-22  Bruno Haible  <bruno@clisp.org>
6234
6235         strtoull: Move AC_LIBOBJ invocations to module description.
6236         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6238         from here...
6239         * modules/strtoull (configure.ac): ... to here.
6240
6241 2011-05-22  Bruno Haible  <bruno@clisp.org>
6242
6243         strtoll: Move AC_LIBOBJ invocations to module description.
6244         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6246         here...
6247         * modules/strtoll (configure.ac): ... to here.
6248
6249 2011-05-22  Bruno Haible  <bruno@clisp.org>
6250
6251         strtoul: Move AC_LIBOBJ invocations to module description.
6252         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6253         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6254         * modules/strtoul (configure.ac): ... to here.
6255
6256 2011-05-22  Bruno Haible  <bruno@clisp.org>
6257
6258         strtol: Move AC_LIBOBJ invocations to module description.
6259         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6260         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6261         * modules/strtol (configure.ac): ... to here.
6262
6263 2011-05-22  Bruno Haible  <bruno@clisp.org>
6264
6265         strtod: Move AC_LIBOBJ invocations to module description.
6266         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6267         invocations from here...
6268         * modules/strtod (configure.ac): ... to here.
6269
6270 2011-05-22  Bruno Haible  <bruno@clisp.org>
6271
6272         strstr*: Move AC_LIBOBJ invocations to module description.
6273         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6274         invocations from here...
6275         * modules/strstr-simple (configure.ac): ... to here.
6276         * modules/strstr (configure.ac): ... and here.
6277
6278 2011-05-22  Bruno Haible  <bruno@clisp.org>
6279
6280         strsignal: Move AC_LIBOBJ invocations to module description.
6281         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6282         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6283         * modules/strsignal (configure.ac): ... to here.
6284         (Depends-on): Update conditions.
6285
6286 2011-05-22  Bruno Haible  <bruno@clisp.org>
6287
6288         strsep: Move AC_LIBOBJ invocations to module description.
6289         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6291         here...
6292         * modules/strsep (configure.ac): ... to here.
6293
6294 2011-05-22  Bruno Haible  <bruno@clisp.org>
6295
6296         strptime: Move AC_LIBOBJ invocations to module description.
6297         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6298         gl_PREREQ_STRPTIME invocations from here...
6299         * modules/strptime (configure.ac): ... to here.
6300
6301 2011-05-22  Bruno Haible  <bruno@clisp.org>
6302
6303         strpbrk: Move AC_LIBOBJ invocations to module description.
6304         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6306         here...
6307         * modules/strpbrk (configure.ac): ... to here.
6308
6309 2011-05-22  Bruno Haible  <bruno@clisp.org>
6310
6311         strnlen: Move AC_LIBOBJ invocations to module description.
6312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6313         invocations from here...
6314         * modules/strnlen (configure.ac): ... to here.
6315
6316 2011-05-22  Bruno Haible  <bruno@clisp.org>
6317
6318         strndup: Move AC_LIBOBJ invocations to module description.
6319         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6320         invocations from here...
6321         * modules/strndup (configure.ac): ... to here.
6322         (Depends-on): Update conditions.
6323
6324 2011-05-22  Bruno Haible  <bruno@clisp.org>
6325
6326         strncat: Move AC_LIBOBJ invocations to module description.
6327         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6328         invocations from here...
6329         * modules/strncat (configure.ac): ... to here.
6330
6331 2011-05-22  Bruno Haible  <bruno@clisp.org>
6332
6333         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6334         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6335         invocations from here...
6336         * modules/strdup (configure.ac): ... to here.
6337         * modules/strdup-posix (configure.ac): ... and here.
6338
6339 2011-05-22  Bruno Haible  <bruno@clisp.org>
6340
6341         strcspn: Move AC_LIBOBJ invocations to module description.
6342         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6344         here...
6345         * modules/strcspn (configure.ac): ... to here.
6346
6347 2011-05-22  Bruno Haible  <bruno@clisp.org>
6348
6349         strchrnul: Move AC_LIBOBJ invocations to module description.
6350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6351         gl_PREREQ_STRCHRNUL invocations from here...
6352         * modules/strchrnul (configure.ac): ... to here.
6353
6354 2011-05-22  Bruno Haible  <bruno@clisp.org>
6355
6356         strcasestr*: Move AC_LIBOBJ invocations to module description.
6357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6358         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6359         * modules/strcasestr-simple (configure.ac): ... to here.
6360         * modules/strcasestr (configure.ac): ... and here.
6361
6362 2011-05-22  Bruno Haible  <bruno@clisp.org>
6363
6364         strcase: Move AC_LIBOBJ invocations to module description.
6365         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6366         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6367         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6368         gl_PREREQ_STRNCASECMP invocations from here...
6369         * modules/strcase (configure.ac): ... to here.
6370
6371 2011-05-22  Bruno Haible  <bruno@clisp.org>
6372
6373         stpncpy: Move AC_LIBOBJ invocations to module description.
6374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6375         here...
6376         * modules/stpncpy (configure.ac): ... to here.
6377
6378 2011-05-22  Bruno Haible  <bruno@clisp.org>
6379
6380         stpcpy: Move AC_LIBOBJ invocations to module description.
6381         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6383         here...
6384         * modules/stpcpy (configure.ac): ... to here.
6385
6386 2011-05-21  Bruno Haible  <bruno@clisp.org>
6387
6388         stat: Move AC_LIBOBJ invocations to module description.
6389         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6390         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6391         here...
6392         * modules/stat (configure.ac): ... to here.
6393
6394 2011-05-21  Bruno Haible  <bruno@clisp.org>
6395
6396         sleep: Move AC_LIBOBJ invocations to module description.
6397         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6398         * modules/sleep (configure.ac): ... to here.
6399
6400 2011-05-21  Bruno Haible  <bruno@clisp.org>
6401
6402         signbit: Move AC_LIBOBJ invocations to module description.
6403         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6404         * modules/signbit (configure.ac): ... to here.
6405
6406 2011-05-21  Bruno Haible  <bruno@clisp.org>
6407
6408         sigprocmask: Move AC_LIBOBJ invocations to module description.
6409         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6410         gl_PREREQ_SIGPROMASK invocations from here...
6411         * modules/sigprocmask (configure.ac): ... to here.
6412
6413 2011-05-21  Bruno Haible  <bruno@clisp.org>
6414
6415         sigaction: Move AC_LIBOBJ invocations to module description.
6416         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6417         gl_PREREQ_SIGACTION invocations from here...
6418         * modules/sigaction (configure.ac): ... to here.
6419
6420 2011-05-21  Bruno Haible  <bruno@clisp.org>
6421
6422         sig2str: Move AC_LIBOBJ invocations to module description.
6423         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6424         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6425         here...
6426         * modules/sig2str (configure.ac): ... to here.
6427
6428 2011-05-21  Bruno Haible  <bruno@clisp.org>
6429
6430         setlocale: Move AC_LIBOBJ invocations to module description.
6431         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6432         gl_PREREQ_SETLOCALE invocations from here...
6433         * modules/setlocale (configure.ac): ... to here.
6434
6435 2011-05-21  Bruno Haible  <bruno@clisp.org>
6436
6437         unsetenv: Move AC_LIBOBJ invocations to module description.
6438         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6439         and gl_PREREQ_UNSETENV invocations from here...
6440         * modules/unsetenv (configure.ac): ... to here.
6441         (Depends-on): Update.
6442
6443 2011-05-21  Bruno Haible  <bruno@clisp.org>
6444
6445         setenv: Move AC_LIBOBJ invocations to module description.
6446         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6447         here...
6448         * modules/setenv (configure.ac): ... to here.
6449
6450 2011-05-21  Bruno Haible  <bruno@clisp.org>
6451
6452         selinux-h: Move AC_LIBOBJ invocations to module description.
6453         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6454         AC_LIBOBJ invocation from here...
6455         * modules/selinux-h (configure.ac): ... to here.
6456
6457 2011-05-21  Bruno Haible  <bruno@clisp.org>
6458
6459         select: Respect rules for use of AC_LIBOBJ.
6460         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6461         here...
6462         * modules/select (configure.ac): ... to here.
6463
6464 2011-05-21  Bruno Haible  <bruno@clisp.org>
6465
6466         scandir: Move AC_LIBOBJ invocations to module description.
6467         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6468         invocations from here...
6469         * modules/scandir (configure.ac): ... to here.
6470
6471 2011-05-21  Bruno Haible  <bruno@clisp.org>
6472
6473         rpmatch: Move AC_LIBOBJ invocations to module description.
6474         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6475         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6476         here...
6477         * modules/rpmatch (configure.ac): ... to here.
6478
6479 2011-05-21  Bruno Haible  <bruno@clisp.org>
6480
6481         rmdir: Respect rules for use of AC_LIBOBJ.
6482         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6483         * modules/rmdir (configure.ac): ... to here.
6484
6485 2011-05-21  Bruno Haible  <bruno@clisp.org>
6486
6487         renameat: Move AC_LIBOBJ invocations to module description.
6488         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6489         here...
6490         * modules/renameat (configure.ac): ... to here.
6491
6492 2011-05-21  Bruno Haible  <bruno@clisp.org>
6493
6494         rename: Respect rules for use of AC_LIBOBJ.
6495         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6496         here...
6497         * modules/rename (configure.ac): ... to here.
6498
6499 2011-05-21  Bruno Haible  <bruno@clisp.org>
6500
6501         remove: Move AC_LIBOBJ invocations to module description.
6502         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6503         here...
6504         * modules/remove (configure.ac): ... to here.
6505
6506 2011-05-21  Bruno Haible  <bruno@clisp.org>
6507
6508         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6509         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6510         macro.
6511         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6512         * modules/relocatable-lib (configure.ac): ... to here.
6513         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6514         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6515
6516 2011-05-21  Bruno Haible  <bruno@clisp.org>
6517
6518         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6519         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6520         here...
6521         * modules/relocatable-prog (configure.ac): ... to here.
6522
6523 2011-05-21  Bruno Haible  <bruno@clisp.org>
6524
6525         regex: Move AC_LIBOBJ invocations to module description.
6526         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6527         invocations from here...
6528         * modules/regex (configure.ac): ... to here.
6529
6530 2011-05-21  Bruno Haible  <bruno@clisp.org>
6531
6532         realloc-*: Move AC_LIBOBJ invocations to module description.
6533         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6534         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6535         AC_LIBOBJ invocations from here...
6536         * modules/realloc-gnu (configure.ac): ... to here.
6537         * modules/realloc-posix (configure.ac): ... and here.
6538
6539 2011-05-21  Bruno Haible  <bruno@clisp.org>
6540
6541         readutmp: Move AC_LIBOBJ invocations to module description.
6542         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6543         * modules/readutmp (configure.ac): ... to here.
6544
6545 2011-05-21  Bruno Haible  <bruno@clisp.org>
6546
6547         readlinkat: Move AC_LIBOBJ invocations to module description.
6548         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6549         here...
6550         * modules/readlinkat (configure.ac): ... to here.
6551
6552 2011-05-21  Bruno Haible  <bruno@clisp.org>
6553
6554         readlink: Move AC_LIBOBJ invocations to module description.
6555         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6556         gl_PREREQ_READLINK invocations from here...
6557         * modules/readlink (configure.ac): ... to here.
6558
6559 2011-05-21  Bruno Haible  <bruno@clisp.org>
6560
6561         readline: Move AC_LIBOBJ invocations to module description.
6562         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6563         gl_PREREQ_READLINE invocations from here...
6564         * modules/readline (configure.ac): ... to here.
6565
6566 2011-05-21  Bruno Haible  <bruno@clisp.org>
6567
6568         read: Move AC_LIBOBJ invocations to module description.
6569         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6570         * modules/read (configure.ac): ... to here.
6571
6572 2011-05-21  Bruno Haible  <bruno@clisp.org>
6573
6574         rawmemchr: Move AC_LIBOBJ invocations to module description.
6575         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6577         from here...
6578         * modules/rawmemchr (configure.ac): ... to here.
6579
6580 2011-05-21  Bruno Haible  <bruno@clisp.org>
6581
6582         random_r: Move AC_LIBOBJ invocations to module description.
6583         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6584         gl_PREREQ_RANDOM_R invocations from here...
6585         * modules/random_r (configure.ac): ... to here.
6586
6587 2011-05-21  Bruno Haible  <bruno@clisp.org>
6588
6589         pwrite: Move AC_LIBOBJ invocations to module description.
6590         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6591         * modules/pwrite (configure.ac): ... to here.
6592
6593 2011-05-21  Bruno Haible  <bruno@clisp.org>
6594
6595         putenv: Move AC_LIBOBJ invocations to module description.
6596         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6597         * modules/putenv (configure.ac): ... to here.
6598
6599 2011-05-21  Bruno Haible  <bruno@clisp.org>
6600
6601         login_tty: Move AC_LIBOBJ invocations to module description.
6602         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6603         * modules/login_tty (configure.ac): ... to here.
6604
6605 2011-05-21  Bruno Haible  <bruno@clisp.org>
6606
6607         openpty: Move AC_LIBOBJ invocations to module description.
6608         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6609         * modules/openpty (configure.ac): ... to here.
6610
6611 2011-05-21  Bruno Haible  <bruno@clisp.org>
6612
6613         forkpty: Move AC_LIBOBJ invocations to module description.
6614         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6615         * modules/forkpty (configure.ac): ... to here.
6616
6617 2011-05-21  Bruno Haible  <bruno@clisp.org>
6618
6619         ptsname: Move AC_LIBOBJ invocations to module description.
6620         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6621         invocations from here...
6622         * modules/ptsname (configure.ac): ... to here.
6623
6624 2011-05-21  Bruno Haible  <bruno@clisp.org>
6625
6626         pread: Move AC_LIBOBJ invocations to module description.
6627         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6628         * modules/pread (configure.ac): ... to here.
6629
6630 2011-05-21  Bruno Haible  <bruno@clisp.org>
6631
6632         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6633         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6634         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6635         * modules/posix_spawn (configure.ac): ... to here.
6636         * modules/posix_spawnp (configure.ac): ... and here.
6637
6638 2011-05-21  Bruno Haible  <bruno@clisp.org>
6639
6640         popen: Move AC_LIBOBJ invocations to module description.
6641         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6642         invocations from here...
6643         * modules/popen (configure.ac): ... to here.
6644
6645 2011-05-21  Bruno Haible  <bruno@clisp.org>
6646
6647         poll: Move AC_LIBOBJ invocations to module description.
6648         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6649         invocations from here...
6650         * modules/poll (configure.ac): ... to here.
6651
6652 2011-05-21  Bruno Haible  <bruno@clisp.org>
6653
6654         pipe-posix: Move AC_LIBOBJ invocations to module description.
6655         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6656         * modules/pipe-posix (configure.ac): ... to here.
6657
6658 2011-05-21  Bruno Haible  <bruno@clisp.org>
6659
6660         openat: Respect rules for use of AC_LIBOBJ.
6661         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6662         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6663         * modules/openat (configure.ac): ... to here.
6664
6665 2011-05-21  Bruno Haible  <bruno@clisp.org>
6666
6667         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6668         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6669         invocation from here...
6670         * modules/obstack-printf (configure.ac): ... to here.
6671         * modules/obstack-printf-posix (configure.ac): ... and here.
6672
6673 2011-05-21  Bruno Haible  <bruno@clisp.org>
6674
6675         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6676         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6677         from here...
6678         * modules/nl_langinfo (configure.ac): ... to here.
6679
6680 2011-05-21  Bruno Haible  <bruno@clisp.org>
6681
6682         nanosleep: Move AC_LIBOBJ invocations to module description.
6683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6684         gl_PREREQ_NANOSLEEP invocations from here...
6685         * modules/nanosleep (configure.ac): ... to here.
6686
6687 2011-05-21  Bruno Haible  <bruno@clisp.org>
6688
6689         mountlist: Move AC_LIBOBJ invocations to module description.
6690         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6691         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6692         * modules/mountlist (configure.ac): ... to here.
6693
6694 2011-05-21  Bruno Haible  <bruno@clisp.org>
6695
6696         mktime: Respect rules for use of AC_LIBOBJ.
6697         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6698         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6699         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6700         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6701         * modules/mktime (configure.ac): ... to here.
6702         * modules/mktime-internal (configure.ac): ... and here.
6703         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6704
6705 2011-05-21  Bruno Haible  <bruno@clisp.org>
6706
6707         mkstemps: Move AC_LIBOBJ invocations to module description.
6708         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6709         here...
6710         * modules/mkstemps (configure.ac): ... to here.
6711
6712 2011-05-21  Bruno Haible  <bruno@clisp.org>
6713
6714         mkstemp: Move AC_LIBOBJ invocations to module description.
6715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6716         gl_PREREQ_MKSTEMP invocations from here...
6717         * modules/mkstemp (configure.ac): ... to here.
6718
6719 2011-05-21  Bruno Haible  <bruno@clisp.org>
6720
6721         mkostemps: Move AC_LIBOBJ invocations to module description.
6722         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6723         here...
6724         * modules/mkostemps (configure.ac): ... to here.
6725
6726 2011-05-21  Bruno Haible  <bruno@clisp.org>
6727
6728         mkostemp: Move AC_LIBOBJ invocations to module description.
6729         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6730         gl_PREREQ_MKOSTEMP invocations from here...
6731         * modules/mkostemp (configure.ac): ... to here.
6732
6733 2011-05-21  Bruno Haible  <bruno@clisp.org>
6734
6735         mknod: Move AC_LIBOBJ invocations to module description.
6736         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6737         * modules/mknod (configure.ac): ... to here.
6738
6739 2011-05-21  Bruno Haible  <bruno@clisp.org>
6740
6741         mkfifoat: Move AC_LIBOBJ invocations to module description.
6742         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6743         here...
6744         * modules/mkfifoat (configure.ac): ... to here.
6745
6746 2011-05-21  Bruno Haible  <bruno@clisp.org>
6747
6748         mkfifo: Respect rules for use of AC_LIBOBJ.
6749         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6750         here...
6751         * modules/mkfifo (configure.ac): ... to here.
6752
6753 2011-05-21  Bruno Haible  <bruno@clisp.org>
6754
6755         mkdtemp: Move AC_LIBOBJ invocations to module description.
6756         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6757         invocations from here...
6758         * modules/mkdtemp (configure.ac): ... to here.
6759
6760 2011-05-21  Bruno Haible  <bruno@clisp.org>
6761
6762         mkdir: Move AC_LIBOBJ invocations to module description.
6763         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6764         * modules/mkdir (configure.ac): ... to here.
6765
6766 2011-05-21  Bruno Haible  <bruno@clisp.org>
6767
6768         memset: Move AC_LIBOBJ invocations to module description.
6769         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6771         here...
6772         * modules/memset (configure.ac): ... to here.
6773
6774 2011-05-21  Bruno Haible  <bruno@clisp.org>
6775
6776         memrchr: Move AC_LIBOBJ invocations to module description.
6777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6779         here...
6780         * modules/memrchr (configure.ac): ... to here.
6781
6782 2011-05-21  Bruno Haible  <bruno@clisp.org>
6783
6784         mempcpy: Move AC_LIBOBJ invocations to module description.
6785         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6787         here...
6788         * modules/mempcpy (configure.ac): ... to here.
6789
6790 2011-05-21  Bruno Haible  <bruno@clisp.org>
6791
6792         memmove: Move AC_LIBOBJ invocations to module description.
6793         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6795         here...
6796         * modules/memmove (configure.ac): ... to here.
6797
6798 2011-05-21  Bruno Haible  <bruno@clisp.org>
6799
6800         memmem*: Move AC_LIBOBJ invocations to module description.
6801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6802         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6803         here...
6804         (gl_FUNC_MEMMEM): ... and here...
6805         * modules/memmem-simple (configure.ac): ... to here.
6806         * modules/memmem (configure.ac): ... and here.
6807
6808 2011-05-21  Bruno Haible  <bruno@clisp.org>
6809
6810         memcpy: Move AC_LIBOBJ invocations to module description.
6811         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6813         here...
6814         * modules/memcpy (configure.ac): ... to here.
6815
6816 2011-05-21  Bruno Haible  <bruno@clisp.org>
6817
6818         memcmp: Simplify autoconf macro.
6819         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6820         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6821         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6822
6823 2011-05-21  Bruno Haible  <bruno@clisp.org>
6824
6825         memcmp: Move AC_LIBOBJ invocations to module description.
6826         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6827         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6828         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6829         * modules/memcmp (configure.ac): ... to here.
6830         (Depends-on): Update conditions.
6831
6832 2011-05-21  Bruno Haible  <bruno@clisp.org>
6833
6834         memchr: Respect rules for use of AC_LIBOBJ.
6835         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6836         invocations from here...
6837         * modules/memchr (configure.ac): ... to here.
6838
6839 2011-05-21  Bruno Haible  <bruno@clisp.org>
6840
6841         mbtowc: Move AC_LIBOBJ invocations to module description.
6842         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6843         invocations from here...
6844         * modules/mbtowc (configure.ac): ... to here.
6845
6846 2011-05-21  Bruno Haible  <bruno@clisp.org>
6847
6848         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6849         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6850         gl_PREREQ_MBSRTOWCS invocations from here...
6851         * modules/mbsrtowcs (configure.ac): ... to here.
6852
6853 2011-05-21  Bruno Haible  <bruno@clisp.org>
6854
6855         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6856         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6857         gl_PREREQ_MBSNRTOWCS invocations from here...
6858         * modules/mbsnrtowcs (configure.ac): ... to here.
6859
6860 2011-05-21  Bruno Haible  <bruno@clisp.org>
6861
6862         mbsinit: Move AC_LIBOBJ invocations to module description.
6863         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6864         invocations from here...
6865         * modules/mbsinit (configure.ac): ... to here.
6866
6867 2011-05-21  Bruno Haible  <bruno@clisp.org>
6868
6869         mbrlen: Move AC_LIBOBJ invocations to module description.
6870         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6871         invocations from here...
6872         * modules/mbrlen (configure.ac): ... to here.
6873
6874 2011-05-21  Bruno Haible  <bruno@clisp.org>
6875
6876         mbrtowc: Respect rules for use of AC_LIBOBJ.
6877         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6878         invocations from here...
6879         * modules/mbrtowc (configure.ac): ... to here.
6880
6881 2011-05-21  Bruno Haible  <bruno@clisp.org>
6882
6883         malloc-*: Move AC_LIBOBJ invocations to module description.
6884         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6885         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6886         AC_LIBOBJ invocations from here...
6887         * modules/malloc-gnu (configure.ac): ... to here.
6888         * modules/malloc-posix (configure.ac): ... and here.
6889
6890 2011-05-21  Bruno Haible  <bruno@clisp.org>
6891
6892         lstat, openat: Respect rules for use of AC_LIBOBJ.
6893         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6894         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6895         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6896         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6897         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6898         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6899         here.
6900         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6901
6902 2011-05-21  Bruno Haible  <bruno@clisp.org>
6903
6904         lseek: Move AC_LIBOBJ invocations to module description.
6905         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6906         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6907         * modules/lseek (configure.ac): ... to here.
6908
6909 2011-05-21  Bruno Haible  <bruno@clisp.org>
6910
6911         linkat: Move AC_LIBOBJ invocations to module description.
6912         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6913         here...
6914         * modules/linkat (configure.ac): ... to here.
6915
6916 2011-05-21  Bruno Haible  <bruno@clisp.org>
6917
6918         link: Respect rules for use of AC_LIBOBJ.
6919         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6920         * modules/link (configure.ac): ... to here.
6921
6922 2011-05-21  Bruno Haible  <bruno@clisp.org>
6923
6924         lchown: Move AC_LIBOBJ invocations to module description.
6925         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6926         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6927         * modules/lchown (configure.ac): ... to here.
6928
6929 2011-05-21  Bruno Haible  <bruno@clisp.org>
6930
6931         iswctype: Move AC_LIBOBJ invocations to module description.
6932         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6933         here...
6934         * modules/iswctype (configure.ac): ... to here.
6935
6936 2011-05-21  Bruno Haible  <bruno@clisp.org>
6937
6938         iswblank: Move AC_LIBOBJ invocations to module description.
6939         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6940         here...
6941         * modules/iswblank (configure.ac): ... to here.
6942
6943 2011-05-21  Bruno Haible  <bruno@clisp.org>
6944
6945         atanl: Move AC_LIBOBJ invocations to module description.
6946         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6947         * modules/atanl (configure.ac): ... to here.
6948
6949 2011-05-21  Bruno Haible  <bruno@clisp.org>
6950
6951         acosl: Move AC_LIBOBJ invocations to module description.
6952         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6953         * modules/acosl (configure.ac): ... to here.
6954
6955 2011-05-21  Bruno Haible  <bruno@clisp.org>
6956
6957         asinl: Respect rules for use of AC_LIBOBJ.
6958         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6959         * modules/asinl (configure.ac): ... to here.
6960
6961 2011-05-21  Bruno Haible  <bruno@clisp.org>
6962
6963         tanl: Move AC_LIBOBJ invocations to module description.
6964         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6965         * modules/tanl (configure.ac): ... to here.
6966
6967 2011-05-21  Bruno Haible  <bruno@clisp.org>
6968
6969         cosl: Move AC_LIBOBJ invocations to module description.
6970         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6971         * modules/cosl (configure.ac): ... to here.
6972
6973 2011-05-21  Bruno Haible  <bruno@clisp.org>
6974
6975         sinl: Move AC_LIBOBJ invocations to module description.
6976         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6977         * modules/sinl (configure.ac): ... to here.
6978
6979 2011-05-21  Bruno Haible  <bruno@clisp.org>
6980
6981         logl: Move AC_LIBOBJ invocations to module description.
6982         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6983         * modules/logl (configure.ac): ... to here.
6984
6985 2011-05-21  Bruno Haible  <bruno@clisp.org>
6986
6987         expl: Move AC_LIBOBJ invocations to module description.
6988         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6989         * modules/expl (configure.ac): ... to here.
6990
6991 2011-05-21  Bruno Haible  <bruno@clisp.org>
6992
6993         roundl: Move AC_LIBOBJ invocations to module description.
6994         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6995         * modules/roundl (configure.ac): ... to here.
6996
6997 2011-05-21  Bruno Haible  <bruno@clisp.org>
6998
6999         round: Move AC_LIBOBJ invocations to module description.
7000         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7001         * modules/round (configure.ac): ... to here.
7002
7003 2011-05-21  Bruno Haible  <bruno@clisp.org>
7004
7005         roundf: Move AC_LIBOBJ invocations to module description.
7006         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7007         * modules/roundf (configure.ac): ... to here.
7008
7009 2011-05-21  Bruno Haible  <bruno@clisp.org>
7010
7011         truncl: Move AC_LIBOBJ invocations to module description.
7012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7013         * modules/truncl (configure.ac): ... to here.
7014
7015 2011-05-21  Bruno Haible  <bruno@clisp.org>
7016
7017         trunc: Move AC_LIBOBJ invocations to module description.
7018         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7019         * modules/trunc (configure.ac): ... to here.
7020
7021 2011-05-21  Bruno Haible  <bruno@clisp.org>
7022
7023         truncf: Move AC_LIBOBJ invocations to module description.
7024         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7025         * modules/truncf (configure.ac): ... to here.
7026
7027 2011-05-21  Bruno Haible  <bruno@clisp.org>
7028
7029         ceill: Move AC_LIBOBJ invocations to module description.
7030         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7031         * modules/ceill (configure.ac): ... to here.
7032
7033 2011-05-21  Bruno Haible  <bruno@clisp.org>
7034
7035         ceil: Move AC_LIBOBJ invocations to module description.
7036         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7037         * modules/ceil (configure.ac): ... to here.
7038
7039 2011-05-21  Bruno Haible  <bruno@clisp.org>
7040
7041         ceilf: Move AC_LIBOBJ invocations to module description.
7042         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7043         * modules/ceilf (configure.ac): ... to here.
7044
7045 2011-05-21  Bruno Haible  <bruno@clisp.org>
7046
7047         floorl: Respect rules for use of AC_LIBOBJ.
7048         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7049         * modules/floorl (configure.ac): ... to here.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         floor: Respect rules for use of AC_LIBOBJ.
7054         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7055         * modules/floor (configure.ac): ... to here.
7056
7057 2011-05-21  Bruno Haible  <bruno@clisp.org>
7058
7059         floorf: Move AC_LIBOBJ invocations to module description.
7060         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7061         * modules/floorf (configure.ac): ... to here.
7062
7063 2011-05-20  Bruno Haible  <bruno@clisp.org>
7064
7065         sqrtl: Respect rules for use of AC_LIBOBJ.
7066         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7067         * modules/sqrtl (configure.ac): ... to here.
7068
7069 2011-05-20  Bruno Haible  <bruno@clisp.org>
7070
7071         ldexpl: Respect rules for use of AC_LIBOBJ.
7072         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7073         * modules/ldexpl (configure.ac): ... to here.
7074
7075 2011-05-20  Bruno Haible  <bruno@clisp.org>
7076
7077         frexpl*: Respect rules for use of AC_LIBOBJ.
7078         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7079         invocation from here...
7080         * modules/frexpl (configure.ac): ... to here.
7081         * modules/frexpl-nolibm (configure.ac): ... and here.
7082
7083 2011-05-20  Bruno Haible  <bruno@clisp.org>
7084
7085         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7086         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7087         invocation from here...
7088         * modules/frexp (configure.ac): ... to here.
7089         * modules/frexp-nolibm (configure.ac): ... and here.
7090
7091 2011-05-20  Bruno Haible  <bruno@clisp.org>
7092
7093         isnan: Respect rules for use of AC_LIBOBJ.
7094         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7095         invocations here.
7096         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7097         REPLACE_ISNAN.
7098         * modules/isnand (configure.ac): Likewise.
7099         * modules/isnanl (configure.ac): Likewise.
7100
7101 2011-05-20  Bruno Haible  <bruno@clisp.org>
7102
7103         isnanl*: Respect rules for use of AC_LIBOBJ.
7104         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7105         invocation from here...
7106         * modules/isnanl (configure.ac): ... to here.
7107         * modules/isnanl-nolibm (configure.ac): ... and here.
7108
7109 2011-05-20  Bruno Haible  <bruno@clisp.org>
7110
7111         isnand*: Move AC_LIBOBJ invocations to module description.
7112         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7113         invocation from here...
7114         * modules/isnand (configure.ac): ... to here.
7115         * modules/isnand-nolibm (configure.ac): ... and here.
7116
7117 2011-05-20  Bruno Haible  <bruno@clisp.org>
7118
7119         isnanf*: Move AC_LIBOBJ invocations to module description.
7120         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7121         invocation from here...
7122         * modules/isnanf (configure.ac): ... to here.
7123         * modules/isnanf-nolibm (configure.ac): ... and here.
7124
7125 2011-05-20  Bruno Haible  <bruno@clisp.org>
7126
7127         isnan*: Separate the AC_LIBOBJ invocations.
7128         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7129         AC_LIBOBJ invocation.
7130         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7131         here.
7132         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7133         AC_LIBOBJ invocation.
7134         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7135         here.
7136         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7137         AC_LIBOBJ invocation.
7138         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7139         here.
7140         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7141
7142 2011-05-08  Bruno Haible  <bruno@clisp.org>
7143
7144         isinf: Move AC_LIBOBJ invocations to module description.
7145         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7146         * modules/isinf (configure.ac): ... to here.
7147
7148 2011-05-08  Bruno Haible  <bruno@clisp.org>
7149
7150         isfinite: Move AC_LIBOBJ invocations to module description.
7151         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7152         * modules/isfinite (configure.ac): ... to here.
7153
7154 2011-05-08  Bruno Haible  <bruno@clisp.org>
7155
7156         isblank: Move AC_LIBOBJ invocations to module description.
7157         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7158         here...
7159         * modules/isblank (configure.ac): ... to here.
7160
7161 2011-05-08  Bruno Haible  <bruno@clisp.org>
7162
7163         isapipe: Move AC_LIBOBJ invocations to module description.
7164         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7165         gl_PREREQ_ISAPIPE invocations from here...
7166         * modules/isapipe (configure.ac): ... to here.
7167         (Depends-on): Update condition.
7168
7169 2011-05-08  Bruno Haible  <bruno@clisp.org>
7170
7171         ioctl: Move AC_LIBOBJ invocations to module description.
7172         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7173         invocations from here...
7174         * modules/ioctl (configure.ac): ... to here.
7175         (Depends-on): Update condition.
7176
7177 2011-05-08  Bruno Haible  <bruno@clisp.org>
7178
7179         imaxdiv: Move AC_LIBOBJ invocations to module description.
7180         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7181         invocations from here...
7182         * modules/imaxdiv (configure.ac): ... to here.
7183
7184 2011-05-08  Bruno Haible  <bruno@clisp.org>
7185
7186         imaxabs: Move AC_LIBOBJ invocations to module description.
7187         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7188         invocations from here...
7189         * modules/imaxabs (configure.ac): ... to here.
7190
7191 2011-05-08  Bruno Haible  <bruno@clisp.org>
7192
7193         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7195         AC_LIBOBJ invocations from here...
7196         * modules/getaddrinfo (configure.ac): ... to here.
7197         (Depends-on): Add conditions.
7198
7199 2011-05-08  Bruno Haible  <bruno@clisp.org>
7200
7201         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7202         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7203         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7204         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7205         (gl_PREREQ_INET_PTON): ... from here.
7206         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7207         gl_PREREQ_INET_PTON here.
7208         (Depends-on): Update condition.
7209
7210 2011-05-08  Bruno Haible  <bruno@clisp.org>
7211
7212         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7213         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7214         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7215         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7216         (gl_PREREQ_INET_NTOP): ... from here.
7217         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7218         gl_PREREQ_INET_NTOP here.
7219         (Depends-on): Update condition.
7220
7221 2011-05-08  Bruno Haible  <bruno@clisp.org>
7222
7223         iconv_open: Move AC_LIBOBJ invocations to module description.
7224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7225         AC_LIBOBJ invocations from here...
7226         * modules/iconv_open (configure.ac): ... to here.
7227
7228 2011-05-08  Bruno Haible  <bruno@clisp.org>
7229
7230         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7231         If module 'iconv_open' is among the main modules and module
7232         'iconv_open-utf' is among the tests dependencies, then
7233         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7234         return the special iconv_t values. Therefore iconv() and iconv_close()
7235         must support these special iconv_t values, already in lib, not only in
7236         tests.
7237         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7238         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7239         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7240         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7241         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7242         (Depends-on): Add the dependencies of iconv_open-utf.
7243         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7244         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7245         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7246
7247 2011-05-08  Bruno Haible  <bruno@clisp.org>
7248
7249         group-member: Move AC_LIBOBJ invocations to module description.
7250         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7251         gl_PREREQ_GROUP_MEMBER invocations from here...
7252         * modules/group-member (configure.ac): ... to here.
7253
7254 2011-05-08  Bruno Haible  <bruno@clisp.org>
7255
7256         grantpt: Move AC_LIBOBJ invocations to module description.
7257         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7258         invocations from here...
7259         * modules/grantpt (configure.ac): ... to here.
7260
7261 2011-05-08  Bruno Haible  <bruno@clisp.org>
7262
7263         glob: Move AC_LIBOBJ invocations to module description.
7264         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7265         from here...
7266         * modules/glob (configure.ac): ... to here.
7267
7268 2011-05-08  Bruno Haible  <bruno@clisp.org>
7269
7270         getusershell: Move AC_LIBOBJ invocations to module description.
7271         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7272         Move AC_LIBOBJ invocation from here...
7273         * modules/getusershell (configure.ac): ... to here.
7274         (Depends-on): Update condition.
7275
7276 2011-05-08  Bruno Haible  <bruno@clisp.org>
7277
7278         gettimeofday: Move AC_LIBOBJ invocations to module description.
7279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7280         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7281         gl_PREREQ_GETTIMEOFDAY invocations from here...
7282         * modules/gettimeofday (configure.ac): ... to here.
7283
7284 2011-05-08  Bruno Haible  <bruno@clisp.org>
7285
7286         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7287         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7288         just gl_FUNC_TZSET.
7289         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7290         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7291         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7292         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7293
7294 2011-05-08  Bruno Haible  <bruno@clisp.org>
7295
7296         getsubopt: Move AC_LIBOBJ invocations to module description.
7297         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7298         gl_PREREQ_GETSUBOPT invocations from here...
7299         * modules/getsubopt (configure.ac): ... to here.
7300
7301 2011-05-08  Bruno Haible  <bruno@clisp.org>
7302
7303         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7304         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7305         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7306         * modules/getpass-gnu (configure.ac): ... to here.
7307
7308 2011-05-08  Bruno Haible  <bruno@clisp.org>
7309
7310         getpass: Move AC_LIBOBJ invocations to module description.
7311         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7312         gl_PREREQ_GETPASS invocations from here...
7313         * modules/getpass (configure.ac): ... to here.
7314
7315 2011-05-08  Bruno Haible  <bruno@clisp.org>
7316
7317         getpagesize: Move AC_LIBOBJ invocations to module description.
7318         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7319         from here...
7320         * modules/getpagesize (configure.ac): ... to here.
7321
7322 2011-05-08  Bruno Haible  <bruno@clisp.org>
7323
7324         getopt: Move AC_LIBOBJ invocations to module description.
7325         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7326         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7327         invocations from here...
7328         * modules/getopt-gnu (configure.ac): ... to here.
7329         * modules/getopt-posix (configure.ac): ... and here.
7330         (Depends-on): Update condition.
7331
7332 2011-05-08  Bruno Haible  <bruno@clisp.org>
7333
7334         getopt, argp: Respect rules for use of AC_LIBOBJ.
7335         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7336         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7337         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7338         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7339
7340 2011-05-08  Bruno Haible  <bruno@clisp.org>
7341
7342         getlogin_r: Move AC_LIBOBJ invocations to module description.
7343         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7344         gl_PREREQ_GETLOGIN_R invocations from here...
7345         * modules/getlogin_r (configure.ac): ... to here.
7346
7347 2011-05-08  Bruno Haible  <bruno@clisp.org>
7348
7349         getlogin: Move AC_LIBOBJ invocations to module description.
7350         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7351         here...
7352         * modules/getlogin (configure.ac): ... to here.
7353
7354 2011-05-08  Bruno Haible  <bruno@clisp.org>
7355
7356         getloadavg: Move AC_LIBOBJ invocations to module description.
7357         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7358         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7359         * modules/getloadavg (configure.ac): ... to here.
7360
7361 2011-05-08  Bruno Haible  <bruno@clisp.org>
7362
7363         gethrxtime: Move AC_LIBOBJ invocations to module description.
7364         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7365         LIB_GETHRXTIME from here...
7366         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7367         invocations from here...
7368         * modules/gethrxtime (configure.ac): ... to here.
7369
7370 2011-05-08  Bruno Haible  <bruno@clisp.org>
7371
7372         gethostname: Move AC_LIBOBJ invocations to module description.
7373         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7374         gl_PREREQ_GETHOSTNAME invocations from here...
7375         * modules/gethostname (configure.ac): ... to here.
7376
7377 2011-05-08  Bruno Haible  <bruno@clisp.org>
7378
7379         getgroups: Move AC_LIBOBJ invocations to module description.
7380         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7381         here...
7382         * modules/getgroups (configure.ac): ... to here.
7383
7384 2011-05-08  Bruno Haible  <bruno@clisp.org>
7385
7386         getdtablesize: Move AC_LIBOBJ invocations to module description.
7387         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7388         invocation from here...
7389         * modules/getdtablesize (configure.ac): ... to here.
7390
7391 2011-05-08  Bruno Haible  <bruno@clisp.org>
7392
7393         getdomainname: Move AC_LIBOBJ invocations to module description.
7394         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7395         gl_PREREQ_GETDOMAINNAME invocations from here...
7396         * modules/getdomainname (configure.ac): ... to here.
7397
7398 2011-05-08  Bruno Haible  <bruno@clisp.org>
7399
7400         getline: Move AC_LIBOBJ invocations to module description.
7401         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7402         invocations from here...
7403         * modules/getline (configure.ac): ... to here.
7404
7405 2011-05-08  Bruno Haible  <bruno@clisp.org>
7406
7407         getline: Simplify.
7408         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7409         It's already handled through the module dependency.
7410
7411 2011-05-08  Bruno Haible  <bruno@clisp.org>
7412
7413         getdelim: Move AC_LIBOBJ invocations to module description.
7414         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7415         and gl_PREREQ_GETDELIM invocations from here...
7416         * modules/getdelim (configure.ac): ... to here.
7417         (Depends-on): Fix condition.
7418
7419 2011-05-08  Bruno Haible  <bruno@clisp.org>
7420
7421         getcwd: Move AC_LIBOBJ invocations to module description.
7422         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7423         invocations from here...
7424         * modules/getcwd (configure.ac): ... to here.
7425
7426 2011-05-08  Bruno Haible  <bruno@clisp.org>
7427
7428         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7429         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7430         here...
7431         * modules/getcwd-lgpl (configure.ac): ... to here.
7432
7433 2011-05-07  Bruno Haible  <bruno@clisp.org>
7434
7435         crypto/gc: Move AC_LIBOBJ invocations to module description.
7436         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7437         * modules/crypto/gc (configure.ac): ... to here.
7438
7439 2011-05-07  Bruno Haible  <bruno@clisp.org>
7440
7441         fwriting: Move AC_LIBOBJ invocations to module description.
7442         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7443         here...
7444         * modules/fwriting (configure.ac): ... to here.
7445
7446 2011-05-07  Bruno Haible  <bruno@clisp.org>
7447
7448         fwritable: Move AC_LIBOBJ invocations to module description.
7449         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7450         here...
7451         * modules/fwritable (configure.ac): ... to here.
7452
7453 2011-05-07  Bruno Haible  <bruno@clisp.org>
7454
7455         futimens: Move AC_LIBOBJ invocations to module description.
7456         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7457         here...
7458         * modules/futimens (configure.ac): ... to here.
7459
7460 2011-05-07  Bruno Haible  <bruno@clisp.org>
7461
7462         ftruncate: Move AC_LIBOBJ invocations to module description.
7463         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7464         gl_PREREQ_FTRUNCATE invocations from here...
7465         * modules/ftruncate (configure.ac): ... to here.
7466
7467 2011-05-07  Bruno Haible  <bruno@clisp.org>
7468
7469         fsync: Move AC_LIBOBJ invocations to module description.
7470         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7471         invocations from here...
7472         * modules/fsync (configure.ac): ... to here.
7473
7474 2011-05-07  Bruno Haible  <bruno@clisp.org>
7475
7476         fsusage: Move AC_LIBOBJ invocations to module description.
7477         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7478         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7479         * modules/fsusage (configure.ac): ... to here.
7480
7481 2011-05-07  Bruno Haible  <bruno@clisp.org>
7482
7483         freopen: Move AC_LIBOBJ invocations to module description.
7484         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7485         invocations from here...
7486         * modules/freopen (configure.ac): ... to here.
7487
7488 2011-05-07  Bruno Haible  <bruno@clisp.org>
7489
7490         free: Move AC_LIBOBJ invocations to module description.
7491         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7492         invocations from here...
7493         * modules/free (configure.ac): ... to here.
7494
7495 2011-05-07  Bruno Haible  <bruno@clisp.org>
7496
7497         freadable: Move AC_LIBOBJ invocations to module description.
7498         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7499         here...
7500         * modules/freadable (configure.ac): ... to here.
7501
7502 2011-05-07  Bruno Haible  <bruno@clisp.org>
7503
7504         fpurge: Move AC_LIBOBJ invocations to module description.
7505         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7506         invocations from here...
7507         * modules/fpurge (configure.ac): ... to here.
7508
7509 2011-05-07  Bruno Haible  <bruno@clisp.org>
7510
7511         fpending: Move AC_LIBOBJ invocations to module description.
7512         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7513         gl_FUNC_FPENDING.
7514         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7515         invocations from here...
7516         * modules/fpending (configure.ac): ... to here.
7517
7518 2011-05-07  Bruno Haible  <bruno@clisp.org>
7519
7520         fopen: Move AC_LIBOBJ invocations to module description.
7521         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7522         invocations from here...
7523         * modules/fopen (configure.ac): ... to here.
7524
7525 2011-05-07  Bruno Haible  <bruno@clisp.org>
7526
7527         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7528         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7529         gl_FUNC_FNMATCH_POSIX.
7530         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7531         invocations from here...
7532         * modules/fnmatch (configure.ac): ... to here.
7533         * modules/fnmatch-gnu (configure.ac): ... and here.
7534
7535 2011-05-07  Bruno Haible  <bruno@clisp.org>
7536
7537         flock: Move AC_LIBOBJ invocations to module description.
7538         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7539         invocations from here...
7540         * modules/flock (configure.ac): ... to here.
7541
7542 2011-05-07  Bruno Haible  <bruno@clisp.org>
7543
7544         fileblocks: Move AC_LIBOBJ invocations to module description.
7545         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7546         gl_PREREQ_FILEBLOCKS invocations from here...
7547         * modules/fileblocks (configure.ac): ... to here.
7548
7549 2011-05-06  Bruno Haible  <bruno@clisp.org>
7550
7551         fflush: Move AC_LIBOBJ invocations to module description.
7552         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7553         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7554         invocations from here...
7555         * modules/fflush (configure.ac): ... to here.
7556
7557 2011-05-06  Bruno Haible  <bruno@clisp.org>
7558
7559         fdopendir: Move AC_LIBOBJ invocations to module description.
7560         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7561         here...
7562         * modules/fdopendir (configure.ac): ... to here.
7563         (Depends-on): Improve conditions.
7564
7565 2011-05-06  Bruno Haible  <bruno@clisp.org>
7566
7567         _Exit: Move AC_LIBOBJ invocations to module description.
7568         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7569         invocations from here...
7570         * modules/_Exit (configure.ac): ... to here.
7571
7572 2011-05-21  Bruno Haible  <bruno@clisp.org>
7573
7574         euidaccess: Respect rules for use of AC_LIBOBJ.
7575         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7577         from here...
7578         * modules/euidaccess (configure.ac): ... to here.
7579
7580 2011-05-06  Bruno Haible  <bruno@clisp.org>
7581
7582         error: Move AC_LIBOBJ invocations to module description.
7583         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7584         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7585         invocations from here...
7586         * modules/error (configure.ac): ... to here.
7587
7588 2011-05-06  Bruno Haible  <bruno@clisp.org>
7589
7590         duplocale: Move AC_LIBOBJ invocations to module description.
7591         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7592         gl_PREREQ_DUPLOCALE invocations from here...
7593         * modules/duplocale (configure.ac): ... to here.
7594
7595 2011-05-05  Bruno Haible  <bruno@clisp.org>
7596
7597         dirfd: Move AC_LIBOBJ invocations to module description.
7598         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7599         gl_FUNC_DIRFD.
7600         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7601         here...
7602         * modules/dirfd (configure.ac): ... to here.
7603         (Depends-on): Fix condition.
7604
7605 2011-05-05  Bruno Haible  <bruno@clisp.org>
7606
7607         chown: Respect rules for use of AC_LIBOBJ.
7608         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7609         * modules/chown (configure.ac): ... to here.
7610
7611 2011-05-05  Bruno Haible  <bruno@clisp.org>
7612
7613         chdir-long: Move AC_LIBOBJ invocations to module description.
7614         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7615         gl_PREREQ_CHDIR_LONG invocations from here...
7616         * modules/chdir-long (configure.ac): ... to here.
7617
7618 2011-05-05  Bruno Haible  <bruno@clisp.org>
7619
7620         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7621         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7622         from here...
7623         * modules/canonicalize-lgpl (configure.ac): ... to here.
7624
7625 2011-05-05  Bruno Haible  <bruno@clisp.org>
7626
7627         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7628         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7629         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7630         REPLACE_CALLOC.
7631         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7632         * modules/calloc-gnu (configure.ac): Likewise.
7633
7634 2011-05-05  Bruno Haible  <bruno@clisp.org>
7635
7636         btowc: Move AC_LIBOBJ invocations to module description.
7637         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7638         invocations from here...
7639         * modules/btowc (configure.ac): ... to here.
7640
7641 2011-05-21  Bruno Haible  <bruno@clisp.org>
7642
7643         atexit: Move AC_LIBOBJ invocations to module description.
7644         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7646         here...
7647         * modules/atexit (configure.ac): ... to here.
7648
7649 2011-05-05  Bruno Haible  <bruno@clisp.org>
7650
7651         atoll: Move AC_LIBOBJ invocations to module description.
7652         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7653         invocations from here...
7654         * modules/atoll (configure.ac): ... to here.
7655
7656 2011-05-05  Bruno Haible  <bruno@clisp.org>
7657
7658         argz: Move AC_LIBOBJ invocations to module description.
7659         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7660         * modules/argz (configure.ac): ... to here.
7661
7662 2011-05-05  Bruno Haible  <bruno@clisp.org>
7663
7664         alphasort: Move AC_LIBOBJ invocations to module description.
7665         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7666         gl_PREREQ_ALPHASORT invocations from here...
7667         * modules/alphasort (configure.ac): ... to here.
7668
7669 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7670
7671         verify: new macro verify_expr; verify_true deprecated
7672         * NEWS: Mention this.
7673         * doc/verify.texi (Compile-time Assertions): Document this.
7674         * lib/verify.h (verify_true): Deprecate.
7675         (verify_expr): New macro.
7676         * tests/test-verify.c (function): Test verify_expr.
7677
7678 2011-06-14  Jim Meyering  <meyering@redhat.com>
7679
7680         init.sh: give more portable redirection-related advice in a comment
7681         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7682         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7683         for lots of discussion.  Stefano Lattarini suggested the solution
7684         of putting "9>&2" after the command.  Reported by Bruno Haible.
7685
7686 2011-06-13  Bruno Haible  <bruno@clisp.org>
7687
7688         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7689         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7690         'none'.
7691
7692 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7693
7694         ftoastr: use strtof only if HAVE_STRTOF
7695         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7697         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7698         * modules/ftoastr (configure.ac): Check for strtof.
7699
7700 2011-06-13  Bruno Haible  <bruno@clisp.org>
7701
7702         gnulib-tool: Addendum to 2011-06-08 commit.
7703         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7704         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7705
7706 2011-06-13  Bruno Haible  <bruno@clisp.org>
7707
7708         fseeko: Provide a non-inline replacement of fseek().
7709         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7710         * modules/fseeko (Depends-on): Add fseek.
7711         * modules/fseek (License): Change to LGPLv2+.
7712
7713 2011-06-13  Bruno Haible  <bruno@clisp.org>
7714
7715         ftello: Provide a non-inline replacement of ftell().
7716         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7717         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7718         not have ftello() (such as on mingw).
7719         * modules/ftello (Depends-on): Add ftell.
7720         * modules/ftell (License): Change to LGPLv2+.
7721
7722 2011-05-07  Bruno Haible  <bruno@clisp.org>
7723
7724         ftell: Move AC_LIBOBJ invocations to module description.
7725         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7726         * modules/ftell (configure.ac): ... to here.
7727
7728 2011-05-07  Bruno Haible  <bruno@clisp.org>
7729
7730         ftello: Respect rules for use of AC_LIBOBJ.
7731         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7732         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7733         here...
7734         * modules/ftello (configure.ac): ... to here.
7735
7736 2011-05-07  Bruno Haible  <bruno@clisp.org>
7737
7738         fseeko: Simplify.
7739         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7740         (gl_FUNC_FSEEKO): Inline it here.
7741
7742 2011-05-07  Bruno Haible  <bruno@clisp.org>
7743
7744         fseek: Move AC_LIBOBJ invocations to module description.
7745         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7746         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7747         * modules/fseek (configure.ac): ... to here.
7748
7749 2011-05-07  Bruno Haible  <bruno@clisp.org>
7750
7751         fseek: Respect rules for use of AC_LIBOBJ.
7752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7753         here...
7754         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7755
7756 2011-05-07  Bruno Haible  <bruno@clisp.org>
7757
7758         fseeko: Respect rules for use of AC_LIBOBJ.
7759         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7760         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7761         here...
7762         * modules/fseeko (configure.ac): ... to here.
7763
7764 2011-06-13  Bruno Haible  <bruno@clisp.org>
7765
7766         gnulib-tool: Allow comments in the 'Depends-on' section.
7767         * doc/gnulib.texi (Module description): Mention comment syntax in the
7768         Depends-on section.
7769         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7770
7771 2011-06-13  Bruno Haible  <bruno@clisp.org>
7772
7773         file-set.h: guard __attibute__ use, now that it's not always defined
7774         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7775         versions that support it.  This fixes a coreutils build failure with
7776         the vendor cc on HP-UX 11.31.
7777
7778 2011-06-12  Bruno Haible  <bruno@clisp.org>
7779
7780         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7781         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7782         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7783         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7784         (acl, aclsort): New declarations.
7785         (aclv_nontrivial): New declaration.
7786         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7787         (file_has_acl): Read also the second kind of HP-UX ACLs.
7788         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7789         kind of HP-UX ACLs if the first kind fails.
7790         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7791         second kind of HP-UX ACLs.
7792         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7793         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7794         agree.
7795         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7796         hpuxjfs.
7797         Handle hpuxjfs.
7798         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7799         hpuxjfs.
7800         Handle hpuxjfs.
7801         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7802         (func_test_same_acls): Use both lsacl and getacl.
7803         Handle hpuxjfs.
7804         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7805         (func_test_same_acls): Use both lsacl and getacl.
7806         Handle hpuxjfs.
7807
7808 2011-06-12  Bruno Haible  <bruno@clisp.org>
7809
7810         acl: Complete the 2010-08-10 fix.
7811         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7812         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7813         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7814         explicitly.
7815         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7816         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7817
7818 2011-06-12  Bruno Haible  <bruno@clisp.org>
7819
7820         spawn-pipe tests: Comments.
7821         * tests/test-spawn-pipe-child.c (main): Update comment.
7822         Reported by James Youngman <jay@gnu.org>.
7823
7824 2011-06-11  James Youngman  <jay@gnu.org>
7825
7826         New module 'stat-size'.
7827         * modules/stat-size: New module.  Provides macros for accessing
7828         file size information in instances of struct stat.  Depends on the
7829         fileblocks module because it calls st_blocks.
7830         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7831         * doc/gnulib.texi: Include stat-size.texi.
7832         * doc/stat-size.texi: Documentation for this module.
7833         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7834         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7835         AC_STRUCT_ST_BLOCKS.
7836
7837 2011-06-09  Bruno Haible  <bruno@clisp.org>
7838
7839         thread: Support pthreads-win32.
7840         * lib/glthread/thread.h (gl_thread_self): Define differently on
7841         pthreads-win32.
7842         (gl_null_thread): New declaration.
7843         (gl_thread_self_pointer): New macro.
7844         * lib/glthread/thread.c (gl_null_thread): New constant.
7845         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7846         gl_thread_self.
7847         * tests/test-tls.c: Likewise.
7848         Suggested by Paul Eggert. Reported by Eric Blake.
7849
7850 2011-06-09  Bruno Haible  <bruno@clisp.org>
7851
7852         thread: Fix confusion between NULL and 0.
7853         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7854         Reported by Paul Eggert.
7855
7856 2011-06-09  Bruno Haible  <bruno@clisp.org>
7857
7858         spawn-pipe tests: Avoid test failure on HP-UX 11.
7859         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7860         is closed.
7861
7862 2011-06-09  Bruno Haible  <bruno@clisp.org>
7863
7864         acl tests: Fix compilation error on HP-UX 11.
7865         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7866
7867 2011-06-09  Bruno Haible  <bruno@clisp.org>
7868
7869         rmdir: Avoid test failure on HP-UX 10.20.
7870         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7871         EEXIST.
7872
7873 2011-06-08  Eric Blake  <eblake@redhat.com>
7874
7875         perror: fix test on mingw
7876         * modules/perror-tests (Depends-on): Add dup2.
7877
7878         strerror_r-posix: fix on MacOS
7879         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7881         logic bug.
7882         * lib/strerror_r.c (strerror_r): Fix the bug.
7883         * lib/strerror.c (strerror): Likewise.
7884         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7885         problem.
7886         * doc/posix-functions/strerror.texi (strerror): Likewise.
7887         * doc/posix-functions/perror.texi (perror): Likewise.
7888         * tests/test-strerror.c (main): Enhance test.
7889         * tests/test-strerror_r.c (main): Likewise.
7890
7891 2011-06-08  Bruno Haible  <bruno@clisp.org>
7892
7893         gnulib-tool: Better isolation between different gnulib-tool invocations.
7894         * gnulib-tool: New option --witness-c-macro.
7895         (witness_c_macro): New variable.
7896         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7897         AM_CPPFLAGS define it as a C macro.
7898         (func_emit_tests_Makefile_am): Likewise.
7899         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7900         read it from there.
7901         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7902         m4_define, not AC_DEFUN.
7903         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7904         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7905         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7906         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7907         s|...|...|, to substitute the values of the GNULIB_* module indicator
7908         variables.
7909         * modules/dirent (Makefile.am): Likewise.
7910         * modules/fcntl-h (Makefile.am): Likewise.
7911         * modules/iconv-h (Makefile.am): Likewise.
7912         * modules/langinfo (Makefile.am): Likewise.
7913         * modules/locale (Makefile.am): Likewise.
7914         * modules/math (Makefile.am): Likewise.
7915         * modules/netdb (Makefile.am): Likewise.
7916         * modules/poll-h (Makefile.am): Likewise.
7917         * modules/pty (Makefile.am): Likewise.
7918         * modules/search (Makefile.am): Likewise.
7919         * modules/signal (Makefile.am): Likewise.
7920         * modules/spawn (Makefile.am): Likewise.
7921         * modules/stdio (Makefile.am): Likewise.
7922         * modules/stdlib (Makefile.am): Likewise.
7923         * modules/string (Makefile.am): Likewise.
7924         * modules/sys_ioctl (Makefile.am): Likewise.
7925         * modules/sys_select (Makefile.am): Likewise.
7926         * modules/sys_socket (Makefile.am): Likewise.
7927         * modules/sys_stat (Makefile.am): Likewise.
7928         * modules/sys_times (Makefile.am): Likewise.
7929         * modules/sys_utsname (Makefile.am): Likewise.
7930         * modules/sys_wait (Makefile.am): Likewise.
7931         * modules/termios (Makefile.am): Likewise.
7932         * modules/time (Makefile.am): Likewise.
7933         * modules/unistd (Makefile.am): Likewise.
7934         * modules/wchar (Makefile.am): Likewise.
7935
7936 2011-06-08  Eric Blake  <eblake@redhat.com>
7937
7938         strerror: simplify replacement
7939         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7940         * modules/strerror (configure.ac): No prereqs needed here...
7941         * modules/strerror-override (configure.ac): ...but this needs it.
7942         (Files): Add file for needed prereq macro.
7943
7944 2011-06-08  Bruno Haible  <bruno@clisp.org>
7945
7946         strerror_r-posix: Tweaks.
7947         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7948         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7950         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7951         (gl_FUNC_STRERROR_R): ... to here.
7952         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7953
7954 2011-06-07  Eric Blake  <eblake@redhat.com>
7955
7956         perror: document fixed bugs
7957         * doc/posix-functions/perror.texi (perror): Document recent
7958         patches.
7959
7960 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         stat-time: get_stat_birthtime failure is better-defined
7963         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7964         return a timestamp whose tv_sec and tv_nsec values are both -1.
7965         Previously, the spec said only that the tv_nsec value was negative.
7966         This upward-compatible change simplifies GNU tar a bit.
7967
7968 2011-06-07  Eric Blake  <eblake@redhat.com>
7969
7970         strerror_r-posix: work around cygwin 1.7.9
7971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7972         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7973         bug without replacing strerror_r.
7974         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7975         strerror_r is buggy, but without requiring strerror_r compilation.
7976         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7977
7978         test-perror: relax test to ignore cygwin bug
7979         * tests/test-perror2.c (main): Relax test on requiring detection
7980         of stream errors, and use unbuffered stream.
7981         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7982         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7983         * doc/posix-functions/fputc.texi (fputc): Likewise.
7984         * doc/posix-functions/fputs.texi (fputs): Likewise.
7985         * doc/posix-functions/fputws.texi (fputws): Likewise.
7986         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7987         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7988         * doc/posix-functions/getopt.texi (getopt): Likewise.
7989         * doc/posix-functions/perror.texi (perror): Likewise.
7990         * doc/posix-functions/printf.texi (printf): Likewise.
7991         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7992         * doc/posix-functions/psignal.texi (psignal): Likewise.
7993         * doc/posix-functions/putc.texi (putc): Likewise.
7994         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7995         Likewise.
7996         * doc/posix-functions/putchar.texi (putchar): Likewise.
7997         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7998         Likewise.
7999         * doc/posix-functions/puts.texi (puts): Likewise.
8000         * doc/posix-functions/putwc.texi (putwc): Likewise.
8001         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8002         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8003         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8004         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8005         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8006         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8007         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8008         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8009
8010 2011-05-22  Bruno Haible  <bruno@clisp.org>
8011
8012         strerror: Move AC_LIBOBJ invocations to module description.
8013         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8014         gl_PREREQ_STRERROR invocations from here...
8015         * modules/strerror (configure.ac): ... to here.
8016
8017 2011-05-21  Bruno Haible  <bruno@clisp.org>
8018
8019         perror: Use common idiom.
8020         * modules/perror (configure.ac): Reorder statements.
8021
8022 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8023
8024         tests: fix usage message in 'mktempd_'
8025         * tests/init.sh (mktempd_): In the usage message, use literal
8026         'mktempd_', not '$ME' (which is even undefined), as the name of
8027         the subroutine.
8028
8029 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8030
8031         tests init: new function 'fatal_', for hard errors
8032         Before this patch, the only way offered by tests/init.sh to
8033         properly signal a hard error was the `framework_failure_'
8034         function.  But the error message issued by that function,
8035         as its name would suggest, refers to a set-up failure in the
8036         testsuite, while hard errors can obviously also be due to
8037         other reasons.  The best way to fix this inconsistency is to
8038         introduce a new function with a more general error message.
8039         * tests/init.sh (fatal_): New function.
8040
8041 2011-06-06  Eric Blake  <eblake@redhat.com>
8042
8043         canonicalize-lgpl: use common idiom
8044         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8045         over newer POSIX -Rf.
8046         Reported by Bruno Haible.
8047
8048         canonicalize-lgpl: work around AIX realpath bug
8049         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8050         * doc/posix-functions/realpath.texi (realpath): Document it.
8051         Reported by Bruno Haible.
8052
8053         strerror: work around FreeBSD bug
8054         * lib/strerror.c (strerror): Special case 0.
8055         Reported by Bruno Haible.
8056
8057         strerror-override: avoid bloating errno module
8058         * modules/errno (Files, configure.ac): Move replacement strings...
8059         * modules/strerror-override: ...to new module.
8060         * modules/strerror (Depends-on): Add strerror-override.
8061         * modules/strerror_r-posix (Depends-on): Likewise.
8062         * MODULES.html.sh: Document new module.
8063         Reported by Bruno Haible.
8064
8065 2011-06-06  Bruno Haible  <bruno@clisp.org>
8066
8067         spawn-pipe tests: Rename program.
8068         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8069         * tests/test-spawn-pipe-child.c: Update comment.
8070         * tests/test-spawn-pipe.sh: Update.
8071         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8072
8073         spawn-pipe tests: Link the child program only against libc.
8074         * tests/test-spawn-pipe-child.c: New file, extracted from
8075         tests/test-spawn-pipe.c.
8076         (main): Expect only one argument.
8077         (is_open): New function, copied from tests/test-pipe.c.
8078         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8079         (child_main): Remove function.
8080         (test_pipe): Pass only one argument to the child program.
8081         (main): Remove child process code. Expect the child program's name as
8082         first argument.
8083         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8084         argument.
8085         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8086         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8087         test-spawn-pipe-child against no libraries.
8088
8089 2011-06-06  Bruno Haible  <bruno@clisp.org>
8090
8091         careadlinkat: Avoid mismatch between ssize_t and int.
8092         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8093         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8094
8095 2011-06-06  Jim Meyering  <meyering@redhat.com>
8096
8097         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8098         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8099         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8100
8101 2011-06-05  Bruno Haible  <bruno@clisp.org>
8102
8103         ansi-c++-opt: Interoperability with libtool.
8104         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8105         set the variable to "no", not to ":".
8106         * NEWS: Mention the change.
8107
8108 2011-06-05  Bruno Haible  <bruno@clisp.org>
8109
8110         acl: Fix test failure on AIX 7.
8111         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8112         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8113
8114 2011-06-05  Bruno Haible  <bruno@clisp.org>
8115
8116         pipe-filter-ii: Fix test failure on AIX and IRIX.
8117         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8118         with EAGAIN, retry with a smaller buffer size.
8119
8120 2011-06-05  Bruno Haible  <bruno@clisp.org>
8121
8122         localename: Fix link dependencies.
8123         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8124         * modules/localename-tests (Makefile.am): Link test-localename with
8125         $(LIBTHREAD).
8126
8127 2011-06-05  Bruno Haible  <bruno@clisp.org>
8128
8129         error: Avoid gcc warning.
8130         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8131
8132 2011-06-05  Bruno Haible  <bruno@clisp.org>
8133
8134         unsetenv: Avoid gcc warning.
8135         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8136
8137 2011-06-05  Bruno Haible  <bruno@clisp.org>
8138
8139         setenv: Avoid gcc warning.
8140         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8141
8142 2011-06-05  Bruno Haible  <bruno@clisp.org>
8143
8144         sys_select: Ensure memset is declared also on AIX 7.
8145         * lib/sys_select.in.h: Include <string.h> also on AIX.
8146         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8147         self-contained also on AIX 7.1.
8148
8149 2011-06-04  Jim Meyering  <meyering@redhat.com>
8150
8151         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8152         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8153         function name, "error".
8154         (_gl_translatable_diag_func_re): New configurable variable.
8155
8156 2011-06-04  Bruno Haible  <bruno@clisp.org>
8157
8158         getopt: Avoid gcc warning.
8159         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8160
8161 2011-06-04  Bruno Haible  <bruno@clisp.org>
8162
8163         strerror_r: Fix comments.
8164         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8165         commit.
8166
8167 2011-06-04  Bruno Haible  <bruno@clisp.org>
8168
8169         perror: Fix compilation error.
8170         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8171         Undefine fprintf, not sprintf.
8172         * modules/perror (Depends-on): Remove intprops, verify.
8173
8174 2011-06-04  Bruno Haible  <bruno@clisp.org>
8175
8176         setlocale: Enable replacement on Cygwin 1.5.
8177         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8178         Cygwin 1.5.x.
8179         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8180         LC_CTYPE category also exists on Cygwin 1.5.x.
8181
8182 2011-06-04  Bruno Haible  <bruno@clisp.org>
8183
8184         strerror-override: Don't disable symbol renamings.
8185         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8186         * lib/strerror-override.c: Include config.h.
8187         (strerror_override): Don't undefine.
8188
8189 2011-06-03  Bruno Haible  <bruno@clisp.org>
8190
8191         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8192         * lib/localename.h: Update copyright header.
8193         * lib/localename.c: Likewise.
8194         * lib/relocatable.h: Likewise.
8195         * lib/relocatable.c: Likewise.
8196
8197 2011-06-02  Bruno Haible  <bruno@clisp.org>
8198
8199         doc: Fix a module name.
8200         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8201
8202 2011-06-02  Bruno Haible  <bruno@clisp.org>
8203
8204         pipe2: Remove dependency on 'nonblocking' module.
8205         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8206         O_NONBLOCK is defined by gnulib.
8207         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8208         is zero.
8209         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8210         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8211         defined by gnulib.
8212         (get_nonblocking_flag): New function.
8213         (main): Test O_NONBLOCK flag only if it is nonzero.
8214         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8215
8216 2011-06-03  Jim Meyering  <meyering@redhat.com>
8217
8218         maint: three new prohibit-header-without-use rules
8219         Prohibit use of cloexec.h, posixver.h, same.h without use.
8220         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8221         (sc_prohibit_posixver_without_use): Likewise.
8222         (sc_prohibit_same_without_use): Likewise.
8223
8224 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8225
8226         allocator: 'die' routine is now given requested size
8227         * lib/allocator.h (struct allocator.die): New size arg.
8228         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8229         If the actual problem is an ssize_t limitation, not a size_t or
8230         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8231
8232 2011-06-01  Eric Blake  <eblake@redhat.com>
8233
8234         strerror: drop strerror_r dependency
8235         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8236         * lib/strerror-override.c (strerror_override): ...to new file.
8237         * lib/strerror-override.h: Add prototype.
8238         * lib/strerror-impl.h: Delete.
8239         * lib/strerror.c (strerror): New implementation.
8240         * modules/errno (Files): Add new files.
8241         (configure.ac): Compile new file as appropriate.
8242         * modules/strerror (Files): Drop unused file.
8243         (Depends-on): Drop strerror_r-posix.
8244         * MODULES.html.sh: Document strerror_r-posix.
8245         Requested by Sam Steingold.
8246
8247         perror: call strerror_r directly
8248         * modules/perror (Files): Drop strerror-impl.h.
8249         * lib/perror.c (perror): Use our own stack buffer, rather than
8250         calling a wrapper that uses static storage.
8251         * doc/posix-functions/perror.texi (perror): Document a limitation
8252         of our replacement.
8253
8254         strerror_r: fix includes for FreeBSD
8255         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8256         since we use abort on some platforms.
8257         Reported by Matthias Bolte.
8258
8259 2011-05-31  Bruno Haible  <bruno@clisp.org>
8260
8261         Fix link errors in tests: openat-die uses gettext-h.
8262         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8263         against $(LIBINTL).
8264         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8265         against $(LIBINTL).
8266         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8267         $(LIBINTL).
8268         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8269         against $(LIBINTL).
8270         * modules/linkat-tests (Makefile.am): Link test-linkat against
8271         $(LIBINTL).
8272         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8273         $(LIBINTL).
8274         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8275         against $(LIBINTL).
8276         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8277         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8278         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8279         $(LIBINTL).
8280         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8281         $(LIBINTL).
8282         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8283         $(LIBINTL).
8284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8285
8286 2011-05-31  Bruno Haible  <bruno@clisp.org>
8287
8288         Fix link errors in tests: wait-process uses gettext-h.
8289         * modules/nonblocking-pipe-tests (Makefile.am): Set
8290         test_nonblocking_pipe_main_LDADD.
8291         * modules/nonblocking-socket-tests (Makefile.am): Link
8292         test-nonblocking-socket-main against $(LIBINTL).
8293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8294
8295 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8296
8297         assert-h: work around 'verify' incompatibility
8298         * lib/verify.h: Use @...@ directives, not ifdef.
8299         * modules/assert-h (assert.h): Implement the directives.
8300         (assert.h): Substitute the symbol-prefix more consistently.
8301
8302 2011-05-29  Jim Meyering  <meyering@redhat.com>
8303
8304         trim: remove three superfluous assignments
8305         * lib/trim.c (trim2): Remove three superfluous assignments
8306         and correct brace positioning.
8307
8308 2011-05-29  Bruno Haible  <bruno@clisp.org>
8309
8310         wctype-h: Avoid namespace pollution on Solaris 2.6.
8311         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8312         identifiers.
8313         * doc/posix-headers/wctype.texi: Mention the problem.
8314         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8315
8316 2011-05-28  Jim Meyering  <meyering@redhat.com>
8317
8318         parse-datetime.y: accommodate -Wstrict-overflow
8319         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8320         placate -Wstrict-overflow.
8321
8322         trim: avoid a warning from -O2 -Wstrict-overflow
8323         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8324
8325 2011-05-29  Bruno Haible  <bruno@clisp.org>
8326
8327         gnulib-tool: Fix bug in yesterday's commit.
8328         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8329         twice.
8330
8331 2011-05-29  Bruno Haible  <bruno@clisp.org>
8332
8333         Allow multiple gnulib generated include files to be combined.
8334         * gnulib-tool (func_compute_include_guard_prefix): New function.
8335         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8336         ${gl_include_guard_prefix} references.
8337         (func_import, func_create_testdir): Invoke
8338         func_compute_include_guard_prefix.
8339         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8340         * lib/ctype.in.h: Likewise.
8341         * lib/dirent.in.h: Likewise.
8342         * lib/errno.in.h: Likewise.
8343         * lib/fcntl.in.h: Likewise.
8344         * lib/float.in.h: Likewise.
8345         * lib/getopt.in.h: Likewise.
8346         * lib/iconv.in.h: Likewise.
8347         * lib/langinfo.in.h: Likewise.
8348         * lib/locale.in.h: Likewise.
8349         * lib/math.in.h: Likewise.
8350         * lib/netdb.in.h: Likewise.
8351         * lib/netinet_in.in.h: Likewise.
8352         * lib/poll.in.h: Likewise.
8353         * lib/pthread.in.h: Likewise.
8354         * lib/pty.in.h: Likewise.
8355         * lib/sched.in.h: Likewise.
8356         * lib/se-selinux.in.h: Likewise.
8357         * lib/search.in.h: Likewise.
8358         * lib/signal.in.h: Likewise.
8359         * lib/spawn.in.h: Likewise.
8360         * lib/stdarg.in.h: Likewise.
8361         * lib/stddef.in.h: Likewise.
8362         * lib/stdint.in.h: Likewise.
8363         * lib/stdio.in.h: Likewise.
8364         * lib/stdlib.in.h: Likewise.
8365         * lib/string.in.h: Likewise.
8366         * lib/strings.in.h: Likewise.
8367         * lib/sys_file.in.h: Likewise.
8368         * lib/sys_ioctl.in.h: Likewise.
8369         * lib/sys_select.in.h: Likewise.
8370         * lib/sys_socket.in.h: Likewise.
8371         * lib/sys_stat.in.h: Likewise.
8372         * lib/sys_time.in.h: Likewise.
8373         * lib/sys_times.in.h: Likewise.
8374         * lib/sys_uio.in.h: Likewise.
8375         * lib/sys_utsname.in.h: Likewise.
8376         * lib/sys_wait.in.h: Likewise.
8377         * lib/sysexits.in.h: Likewise.
8378         * lib/termios.in.h: Likewise.
8379         * lib/time.in.h: Likewise.
8380         * lib/unistd.in.h: Likewise.
8381         * lib/wchar.in.h: Likewise.
8382         * lib/wctype.in.h: Likewise.
8383         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8384         * modules/ctype (Makefile.am): Likewise.
8385         * modules/dirent (Makefile.am): Likewise.
8386         * modules/errno (Makefile.am): Likewise.
8387         * modules/fcntl-h (Makefile.am): Likewise.
8388         * modules/float (Makefile.am): Likewise.
8389         * modules/getopt-posix (Makefile.am): Likewise.
8390         * modules/iconv-h (Makefile.am): Likewise.
8391         * modules/langinfo (Makefile.am): Likewise.
8392         * modules/locale (Makefile.am): Likewise.
8393         * modules/math (Makefile.am): Likewise.
8394         * modules/netdb (Makefile.am): Likewise.
8395         * modules/netinet_in (Makefile.am): Likewise.
8396         * modules/poll-h (Makefile.am): Likewise.
8397         * modules/pthread (Makefile.am): Likewise.
8398         * modules/pty (Makefile.am): Likewise.
8399         * modules/sched (Makefile.am): Likewise.
8400         * modules/search (Makefile.am): Likewise.
8401         * modules/selinux-h (Makefile.am): Likewise.
8402         * modules/signal (Makefile.am): Likewise.
8403         * modules/spawn (Makefile.am): Likewise.
8404         * modules/stdarg (Makefile.am): Likewise.
8405         * modules/stddef (Makefile.am): Likewise.
8406         * modules/stdint (Makefile.am): Likewise.
8407         * modules/stdio (Makefile.am): Likewise.
8408         * modules/stdlib (Makefile.am): Likewise.
8409         * modules/string (Makefile.am): Likewise.
8410         * modules/strings (Makefile.am): Likewise.
8411         * modules/sys_file (Makefile.am): Likewise.
8412         * modules/sys_ioctl (Makefile.am): Likewise.
8413         * modules/sys_select (Makefile.am): Likewise.
8414         * modules/sys_socket (Makefile.am): Likewise.
8415         * modules/sys_stat (Makefile.am): Likewise.
8416         * modules/sys_time (Makefile.am): Likewise.
8417         * modules/sys_times (Makefile.am): Likewise.
8418         * modules/sys_uio (Makefile.am): Likewise.
8419         * modules/sys_utsname (Makefile.am): Likewise.
8420         * modules/sys_wait (Makefile.am): Likewise.
8421         * modules/sysexits (Makefile.am): Likewise.
8422         * modules/termios (Makefile.am): Likewise.
8423         * modules/time (Makefile.am): Likewise.
8424         * modules/unistd (Makefile.am): Likewise.
8425         * modules/wchar (Makefile.am): Likewise.
8426         * modules/wctype-h (Makefile.am): Likewise.
8427         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8428
8429 2011-05-29  Bruno Haible  <bruno@clisp.org>
8430
8431         assert-h: Allow multiple gnulib generated replacements to coexist.
8432         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8433
8434 2011-05-29  Bruno Haible  <bruno@clisp.org>
8435
8436         argp: Allow coexistence with strerror_r-posix module.
8437         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8438         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8439         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8440         not the glibc signature.
8441
8442 2011-05-28  Bruno Haible  <bruno@clisp.org>
8443
8444         gnulib-tool: Alternative structure of testdirs, similar to --import.
8445         * gnulib-tool: New option --single-configure.
8446         (func_usage): Document it.
8447         (single_configure): New variable.
8448         (func_modules_transitive_closure_separately,
8449         func_modules_transitive_closure_separately,
8450         func_determine_use_libtests, func_modules_add_dummy_separately,
8451         func_modules_to_filelist_separately): New functions, extracted from
8452         func_import.
8453         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8454         (func_import): Use the new functions.
8455         (func_create_testdir): Set final_modules. Handle $single_configure =
8456         true case.
8457
8458 2011-05-28  Bruno Haible  <bruno@clisp.org>
8459
8460         getloadavg: Remove an unreliable safety check.
8461         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8462         getloadavg.c is in place.
8463         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8464         Reported by Sam Steingold <sds@gnu.org>.
8465
8466 2011-05-28  Bruno Haible  <bruno@clisp.org>
8467
8468         doc: Cleanup yet another file produced by texinfo.tex.
8469         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8470
8471 2011-05-28  Bruno Haible  <bruno@clisp.org>
8472
8473         Finish the conditional dependencies mechanism.
8474         * gnulib-tool: New option --no-conditional-dependencies.
8475         (func_usage): Document it. Don't mark --conditional-dependencies as
8476         experimental.
8477         (cond_dependencies): The possible values can now be true, false, empty.
8478         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8479         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8480         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8481
8482 2011-05-28  Bruno Haible  <bruno@clisp.org>
8483
8484         doc: Use a recent texinfo.tex.
8485         * doc/Makefile (tex_opts): New variable.
8486         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8487
8488 2011-05-28  Jim Meyering  <meyering@redhat.com>
8489
8490         intprops.h: adjust comment to match code change
8491         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8492         only once, it *may* have side effects.  Also fix an unrelated typo.
8493         (_GL_INT_SIGNED): Likewise.
8494
8495 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8496
8497         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8498
8499 2011-05-26  Bruno Haible  <bruno@clisp.org>
8500
8501         mbsrchr: Avoid collision with system function on Interix.
8502         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8503         Reported by Markus Duft <mduft@gentoo.org>.
8504
8505 2011-05-15  James Youngman  <jay@gnu.org>
8506
8507         getopt: for ambiguous options, enumerate the possibilities.
8508         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8509         the ambiguous options when an ambiguous prefix is given. This was
8510         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8511         glibc change was
8512         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8513
8514 2011-05-25  Eric Blake  <eblake@redhat.com>
8515
8516         getcwd: work around mingw bug
8517         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8518         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8519         Reported by Matthias Bolte.
8520
8521 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8522
8523         test-intprops: disable -Wtype-limits diagnostics
8524         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8525         diagnostics.  Otherwise, the integer overflow macros generate many
8526         diagnostics.  Reported by Jim Meyering in
8527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8528
8529         intprops: shorten, to pacify gcc -Woverlength-strings
8530         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8531         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8532         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8533         likely to run afoul of C compiler limits for string constant lengths.
8534         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8535
8536 2011-05-24  Eric Blake  <eblake@redhat.com>
8537
8538         docs: document recently fixed glibc printf bug
8539         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8540         * doc/posix-functions/printf.texi (printf): Likewise.
8541         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8542         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8543
8544         closein-tests: convert to init.sh
8545         * modules/closein-tests (Files): Add init.sh
8546         * tests/test-closein.sh Use it.
8547
8548         yesno-tests: convert to init.sh
8549         * modules/yesno-tests (Files): Add init.sh.
8550         * tests/test-yesno.sh: Use it.
8551
8552         atexit-tests: ensure reliable exit status
8553         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8554         Reported by Bruno Haible.
8555
8556 2011-05-24  Bruno Haible  <bruno@clisp.org>
8557
8558         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8559         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8560         gl_PREREQ_STRERROR_R invocations from here...
8561         * modules/strerror_r-posix (configure.ac): ... to here.
8562
8563 2011-05-24  Eric Blake  <eblake@redhat.com>
8564
8565         strerror_r: fix missing header
8566         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8567
8568         strerror_r: fix AIX test failures
8569         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8570         ERANGE failure.
8571
8572         strerror_r: fix Solaris test failures
8573         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8574         failures.
8575         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8576
8577         strerror_r: enforce POSIX recommendations
8578         * lib/strerror_r.c (safe_copy): New helper method.
8579         (strerror_r): Guarantee a non-empty string.
8580         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8581         recent POSIX rulings and to match our strerror guarantees.
8582         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8583
8584 2011-05-24  Jim Meyering  <meyering@redhat.com>
8585
8586         test-perror2.c: avoid warning about unused variable
8587         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8588
8589 2011-05-24  Eric Blake  <eblake@redhat.com>
8590
8591         perror: avoid spurious test failure on HP-UX
8592         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8593
8594         tests: fix logic bug in init.sh
8595         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8596         shell.
8597
8598 2011-05-24  Jim Meyering  <meyering@redhat.com>
8599
8600         utimensat: do not reference an out-of-scope buffer
8601         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8602         declared in an inner scope, yet "times" would be dereferenced outside
8603         the scope in which "ts" was valid.
8604         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8605         of ts[2] "out/up", so that the use of aliased "times" (via
8606         "times = ts;") does not end up referencing an out-of-scope "ts"
8607
8608         opendir-safer.c: don't clobber errno; don't close negative FD
8609         * lib/opendir-safer.c (opendir_safer):
8610         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8611         file descriptor, and more importantly, don't clobber the
8612         offending errno value with EINVAL.  Before, upon failure
8613         of dup_safer, we would pass the negative file descriptor to
8614         fdopendir, which would clobber errno.
8615
8616 2011-05-23  Bruno Haible  <bruno@clisp.org>
8617
8618         idcache: Fix module description.
8619         * modules/idcache (Include): Set to "idcache.h".
8620
8621 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8622
8623         gnulib-tool: fix portability problem with MacOS sed
8624         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8625         before the "}".  Problem reported by Leo in
8626         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8627         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8628         sed_extract_condition1, sed_extract_condition2.
8629
8630 2011-05-23  Bruno Haible  <bruno@clisp.org>
8631
8632         hash: Simplify autoconf macro.
8633         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8634
8635 2011-05-23  Bruno Haible  <bruno@clisp.org>
8636
8637         getugroups: Fix module description.
8638         * modules/getugroups (Include): Set to "getugroups.h".
8639
8640 2011-05-23  Bruno Haible  <bruno@clisp.org>
8641
8642         linkat: Simplify autoconf macro.
8643         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8644
8645 2011-05-23  Bruno Haible  <bruno@clisp.org>
8646             Eric Blake  <eblake@redhat.com>
8647
8648         linkat, renameat: Update dependencies.
8649         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8650         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8651         symlinkat.
8652
8653 2011-05-23  Jim Meyering  <meyering@redhat.com>
8654
8655         maint.mk: more tight_scope improvements
8656         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8657         (_gl_TS_headers): Define only in if-0'd block.
8658         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8659         sometimes we must *not* use it.  Adjust uses accordingly.
8660         (sc_tight_scope): Use much simpler grep-based test to determine
8661         whether we skip this rule.
8662
8663         maint.mk: generalize/improve the tight-scope rule
8664         * top/maint.mk: Emit a warning when the test is skipped.
8665         (_gl_TS_dir): Add $(srcdir)/ prefix.
8666         (_gl_TS_function_match): Simplify, rather than trying
8667         to enumerate common types.  Otherwise, it would fail to match an
8668         "extern unsigned char const *" declaration in idutils.
8669         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8670         a way to support use of that type of macro.
8671         (_gl_TS_var_match): Simplify regexp.
8672         (_gl_TS_obj_files): New configurable variable.
8673         (_gl_TS_headers): Likewise.
8674
8675 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         verify: fix bug when gnulib <assert.h> is also included
8678         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8679         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8680         Perhaps there's a better way, but this fixes the immediate problem.
8681         Problem reported by Bruno Haible in
8682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8683
8684 2011-05-22  Bruno Haible  <bruno@clisp.org>
8685
8686         xgetcwd: Simplify autoconf macro.
8687         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8688
8689 2011-05-22  Bruno Haible  <bruno@clisp.org>
8690
8691         New module 'mktime-internal'.
8692         * modules/mktime-internal: New file.
8693         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8694         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8695         mktime_internal as a C macro if libc has __mktime_internal.
8696         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8697         conditions.
8698         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8699
8700 2011-05-22  Bruno Haible  <bruno@clisp.org>
8701
8702         timegm: Correct mktime replacement statements.
8703         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8704         defining mktime as a C macro. This completes a 2009-07-28 commit.
8705
8706 2011-05-22  Bruno Haible  <bruno@clisp.org>
8707
8708         timegm: Simplify autoconf macro.
8709         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8710
8711 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8712
8713         clock-time: change to LGPLv2+.
8714         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8715         BSD-like but we have no mark for that; this is good enough for now.
8716
8717 2011-05-21  Bruno Haible  <bruno@clisp.org>
8718
8719         strerror_r: Fix comments.
8720         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8721
8722 2011-05-21  Bruno Haible  <bruno@clisp.org>
8723
8724         relocatable-prog-wrapper: Fix possible link error.
8725         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8726         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8727         (gl_FUNC_SETENV): ... to here.
8728         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8729         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8730
8731 2011-05-21  Bruno Haible  <bruno@clisp.org>
8732
8733         relocatable-prog-wrapper: Assume strerror() exists.
8734         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8735         m4/strerror.m4.
8736         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8737         * lib/relocwrapper.c: Remove mention of strerror module.
8738         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8739         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8740         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8741         C macro.
8742
8743 2011-05-21  Bruno Haible  <bruno@clisp.org>
8744
8745         select: Simplify replacement idiom.
8746         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8747         Win32 platforms.
8748         * lib/sys_select.in.h (select): Simplify accordingly.
8749         * modules/select (Depends-on): Likewise.
8750
8751 2011-05-21  Bruno Haible  <bruno@clisp.org>
8752
8753         mkdir-p: Simplify autoconf macro.
8754         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8755         gl_FUNC_LCHOWN.
8756
8757 2011-05-21  Eric Blake  <eblake@redhat.com>
8758
8759         strerror_r: avoid clobbering strerror on cygwin
8760         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8761         fall back instead to sys_errlist.
8762         * modules/strerror (configure.ac): Add witness.
8763         * tests/test-strerror_r.c (main): Enhance test.
8764         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8765         * tests/test-perror2.c (main): Free memory before exit.
8766
8767 2011-05-21  Bruno Haible  <bruno@clisp.org>
8768
8769         mkdtemp: Use gnulib naming conventions.
8770         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8771         * modules/mkdtemp (configure.ac): Update.
8772
8773 2011-05-20  Eric Blake  <eblake@redhat.com>
8774
8775         strerror_r: avoid corrupting errno on Solaris
8776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8777         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8778
8779         strerror_r: avoid compiler warning
8780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8781
8782         strerror_r: simplify AIX code
8783         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8784
8785         test-perror: avoid spurious failure on FreeBSD
8786         * modules/perror-tests (Depends-on): Add strerror, now that
8787         strerror_r no longer pulls it in.
8788
8789 2011-05-20  Bruno Haible  <bruno@clisp.org>
8790
8791         strerror_r-posix: Remove unused dependencies.
8792         * modules/strerror_r-posix (Depends-on): Remove strerror.
8793         Reported by Eric Blake.
8794
8795 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8796
8797         intprops: remove assumption about A|B representation
8798         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8799         is a valid integer if both A and B are.  Although this is true for
8800         all known practical hosts, the C standard doesn't guarantee it,
8801         and the code need not assume it.  Also, this change may work around
8802         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8804
8805 2011-05-20  Eric Blake  <eblake@redhat.com>
8806
8807         perror: work around FreeBSD bug
8808         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8809         is broken.  Move AC_LIBOBJ...
8810         * modules/perror (configure.ac): Here.
8811         * doc/posix-functions/perror.texi (perror): Document this.
8812         * tests/test-perror2.c (main): Enhance test.
8813
8814         test-perror: check for strerror interactions
8815         * tests/macros.h (STREQ): Add macro.
8816         * modules/perror-tests (Files): Add second test.
8817         * tests/test-perror2.c (main): New file.
8818         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8819
8820         test-perror: rewrite to use init script
8821         * modules/perror-tests (Files): Add init.sh.
8822         * tests/test-perror.sh: Use temporary directory.
8823
8824 2011-05-20  Jim Meyering  <meyering@redhat.com>
8825
8826         maint: replace misused "a" with "an"
8827         * doc/intprops.texi: "a integer"
8828         * doc/regex.texi: "a explanation"
8829         * lib/alignof.h: "a object"
8830         * lib/argmatch.h: "a explanation"
8831         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8832         * lib/stdint.in.h: "a integer"
8833         * lib/userspec.c: "a owner"
8834         * doc/gnulib.texi: Fix "a idea", and reword.
8835
8836 2011-05-19  Jim Meyering  <meyering@redhat.com>
8837
8838         maint: correct misuse of "a" and "an"
8839         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8840         * lib/argp-help.c: "an docum...": s/an/a/
8841         * lib/argp-parse.c: "An vector": s/An/A/
8842         * lib/execute.c: "an native": s/an/a/
8843         * lib/spawn-pipe.c: Likewise.
8844         * lib/gc.h: "an Gc_rc": s/an/a/
8845         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8846         * lib/fts.c: "an stat.st_dev": s/an/a/
8847
8848 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8849
8850         intprops-tests: work around HP-UX 11.23 cc bug with constants
8851         * tests/test-intprops.c (VERIFY): New macro.
8852         (main): Use it, instead of verify, to work around the compiler bug; see
8853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8854
8855         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8856         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8857         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8858         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8859         (_GL_REMAINDER_OVERFLOW): Use it.
8860
8861         intprops-tests: revert unsigned part of previous change
8862         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8863         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8864         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8866
8867 2011-05-19  Bruno Haible  <bruno@clisp.org>
8868
8869         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8870         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8871         strerror_r() returned without filling the buffer.
8872         Reported by Eric Blake.
8873
8874 2011-05-19  Eric Blake  <eblake@redhat.com>
8875
8876         strerror_r: guarantee unchanged errno
8877         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8878         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8879         failure.
8880         * tests/test-strerror_r.c (main): Enhance test.
8881
8882 2011-05-19  Bruno Haible  <bruno@clisp.org>
8883
8884         strerror_r: Reorder #if blocks.
8885         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8886         for consistency with the previous commit.
8887
8888 2011-05-19  Bruno Haible  <bruno@clisp.org>
8889
8890         perror: Avoid clobbering the strerror buffer when possible.
8891         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8892         * lib/strerror.c: Include it.
8893         * modules/strerror (Files): Add lib/strerror-impl.h.
8894         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8895         (my_strerror): New function, defined through lib/strerror-impl.h.
8896         (perror): Use it instead of strerror.
8897         * modules/perror (Files): Add lib/strerror-impl.h.
8898         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8899
8900 2011-05-19  Eric Blake  <eblake@redhat.com>
8901
8902         strerror_r: fix on newer cygwin
8903         * lib/strerror_r.c (strerror_r): Cygwin now has
8904         __xpg_strerror_r, use it.
8905
8906 2011-05-19  Bruno Haible  <bruno@clisp.org>
8907
8908         strerror_r: Avoid clobbering the strerror buffer when possible.
8909         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8910         (sys_nerr, sys_errlist): New declarations.
8911         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8912         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8913         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8914
8915 2011-05-19  Bruno Haible  <bruno@clisp.org>
8916
8917         strerror_r: Fix test failure on mingw.
8918         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8919         EXTEND_STRERROR_R.
8920         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8921         macros from errno.in.h instead.
8922
8923 2011-05-19  Eric Blake  <eblake@redhat.com>
8924
8925         strerror: relax test for Solaris
8926         * tests/test-strerror.c (main): Permit Solaris behavior.
8927         * tests/test-strerror_r.c (main): Likewise.
8928
8929         strerror: enforce POSIX ruling on strerror(0)
8930         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8932         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8933         * doc/posix-functions/strerror.texi (strerror): Document it.
8934         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8935         * tests/test-strerror.c (main): Strengthen test.
8936         * tests/test-strerror_r.c (main): Likewise.
8937
8938 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8939
8940         intprop-tests: port to older and more-pedantic compilers
8941         * modules/intprops-tests (Files): Add tests/macros.h.
8942         * tests/test-intprops.c: Include macros.h.
8943         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8944         it's no longer documented to expand to an integer constant expression.
8945         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8946         argument is floating point, as it's no longer documented to expand
8947         to an integer constant expression in that case.
8948         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8949         compiler bugs reported by Bruno Haible.  See
8950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8951         (U0, U1): New constants, to work around the same bugs.  Also,
8952         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8953
8954         intprops: work around C compiler bugs
8955         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8956         bug in Sun C 5.11 2010/08/13 and other compilers; see
8957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8958
8959         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8960         * doc/intprops.texi (Integer Type Determination): Fix
8961         documentation for TYPE_IS_INTEGER: it returns an constant
8962         expression, not an integer constant expression.  Fix doc for
8963         TYPE_SIGNED: it returns an integer constant expression only if its
8964         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8965         hardly worth documented that way....)
8966
8967 2011-05-18  Bruno Haible  <bruno@clisp.org>
8968
8969         strerror_r: Avoid clobbering the strerror buffer when possible.
8970         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8971         Handle gnulib defined errno values here. When strerror() returns NULL
8972         or an empty string, return EINVAL.
8973         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8974         gnulib defined errno values here.
8975         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8976
8977 2011-05-18  Eric Blake  <eblake@redhat.com>
8978
8979         fnmatch: avoid compiler warning
8980         * lib/fnmatch_loop.c (FCT): Use correct type.
8981         Reported by Matthias Bolte.
8982
8983 2011-05-13  Jim Meyering  <meyering@redhat.com>
8984
8985         maint.mk: three new prohibit_<HDR>_without_use rules
8986         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8987         (sc_prohibit_stdio-safer_without_use): Likewise.
8988         (sc_prohibit_xfreopen_without_use): Likewise.
8989
8990 2011-05-17  Jim Meyering  <meyering@redhat.com>
8991
8992         announce-gen: fail if the NEWS delta is empty
8993         If there's nothing noteworthy in NEWS, then either you forgot
8994         or you shouldn't be releasing.
8995         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8996
8997 2011-05-17  Pádraig Brady <P@draigBrady.com>
8998
8999         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9000         reserved symbols starting with double underscore from the check.
9001
9002 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9003
9004         intprops: add doc
9005         * doc/intprops.texi: New file, documenting intprops.
9006         * doc/gnulib.texi (Particular Modules): Include it.
9007
9008         verify: add doc to gnulib manual and fix example
9009         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9010         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9011         (Compile-time Assertions): Fix example so it can't overflow.
9012
9013 2011-05-17  Jim Meyering  <meyering@redhat.com>
9014
9015         warnings.m4: don't usurp save_CPPFLAGS variable name
9016         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9017
9018         doc: fix typo
9019         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9020
9021 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9022             Bruno Haible  <bruno@clisp.org>
9023
9024         doc: Tweak recent change.
9025         * README (Portability guidelines): Tweak new text.
9026         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9027         Interix 6.1.
9028
9029 2011-05-16  Eric Blake  <eblake@redhat.com>
9030
9031         inttypes: avoid autoconf warning
9032         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9033         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9034
9035 2011-05-16  Sam Steingold <sds@gnu.org>
9036         and Eric Blake  <eblake@redhat.com>
9037
9038         vc-list-files: accept multiple directory operands
9039         * build-aux/vc-list-files: Iterate over all remaining operands.
9040
9041 2011-05-16  Bruno Haible  <bruno@clisp.org>
9042
9043         Fix confusion regarding deprecated modules.
9044         * modules/calloc (Status, Notice): Mark module as deprecated, not
9045         obsolete.
9046         * modules/fnmatch-posix (Status, Notice): Likewise.
9047         * modules/getdate (Status, Notice): Likewise.
9048         * modules/getopt (Status, Notice): Likewise.
9049         * modules/malloc (Status, Notice): Likewise.
9050         * modules/pipe (Status, Notice): Likewise.
9051         * modules/realloc (Status, Notice): Likewise.
9052         * modules/rename-dest-slash (Status, Notice): Likewise.
9053         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9054         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9055         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9056         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9057         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9058
9059 2011-05-16  Bruno Haible  <bruno@clisp.org>
9060
9061         doc: List the target platforms.
9062         * doc/gnulib-intro.texi (Target Platforms): New section.
9063         * doc/gnulib.texi (Introduction): Update menu.
9064         * README (Portability guidelines): Refer to the new section. Update
9065         statement about oldest supported environment. Remove rationale why
9066         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9067         unportable C89 function.
9068         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9069         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9070
9071 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9074
9075 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         intprops-tests: new module
9078         * modules/intprops-tests, tests/test-intprops.c: New files.
9079
9080         intprops: add safe, portable integer overflow checking
9081         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9082         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9083         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9084         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9085         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9086         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9087         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9088         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9089         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9090         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9091         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9092
9093 2011-05-12  James Youngman  <jay@gnu.org>
9094
9095         Add a test for glibc's Bugzilla bug #12378.
9096         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9097         doesn't allow the literal matching of a lone "[" (which is
9098         required by POSIX).
9099         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9100
9101 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9102
9103         Sync glibc change fixing Bugzilla bug #12378.
9104         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9105         beginning and fall back to matching as normal character if the
9106         string ends before the matching ']' is found.  This is what POSIX
9107         requires.
9108
9109 2011-05-13  Eric Blake  <eblake@redhat.com>
9110
9111         getcwd-lgpl: relax test for FreeBSD
9112         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9113         issue.
9114         * tests/test-getcwd-lgpl.c (main): Relax test.
9115         Reported by Matthias Bolte.
9116
9117 2011-05-11  Eric Blake  <eblake@redhat.com>
9118
9119         test-fflush: silence compiler warning
9120         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9121
9122 2011-05-11  Bruno Haible  <bruno@clisp.org>
9123
9124         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9126         * modules/canonicalize (Depends-on): Add 'nocrash'.
9127         * modules/canonicalize-lgpl (Depends-on): Likewise.
9128         * doc/posix-functions/realpath.texi: Update platforms list.
9129         Reported by Ryan Schmidt <ryandesign@macports.org>.
9130
9131 2011-05-11  Bruno Haible  <bruno@clisp.org>
9132
9133         group-member: Declare function in <unistd.h>.
9134         * lib/unistd.in.h (group_member): New declaration.
9135         * lib/group-member.h: Remove file.
9136         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9137         * tests/test-unistd-c++.cc: Check signature of group_member.
9138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9139         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9140         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9141         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9142         HAVE_GROUP_MEMBER.
9143         * modules/group-member (Files): Remove lib/group-member.h.
9144         (Depends-on): Add unistd. Specify conditions.
9145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9146         (Include): Change to <unistd.h>.
9147         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9148         HAVE_GROUP_MEMBER.
9149         * NEWS: Mention the change.
9150         * lib/euidaccess.c: Don't include group-member.h.
9151
9152 2011-05-11  Bruno Haible  <bruno@clisp.org>
9153
9154         group-member: Document module.
9155         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9156         module.
9157
9158 2011-05-11  Bruno Haible  <bruno@clisp.org>
9159
9160         fclose: Fix mistake earlier today.
9161         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9162
9163 2011-05-11  Eric Blake  <eblake@redhat.com>
9164
9165         fclose: preserve fflush errors
9166         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9167         Reported by Jim Meyering.
9168
9169         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9170         * build-aux/bootstrap (check_versions): When no specific version
9171         is required, merely check that the app produces an exit status
9172         that indicates its existence.
9173
9174         maint.mk: drop redundant check
9175         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9176         the same but better.
9177
9178 2011-05-11  Bruno Haible  <bruno@clisp.org>
9179
9180         fclose: Fix possible link error.
9181         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9182         unregister_shadow_fd. Improve comments.
9183         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9184         Eric Blake.
9185
9186 2011-05-11  Jim Meyering  <meyering@redhat.com>
9187
9188         maint.mk: improve "can not" detection and generalize rule name
9189         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9190         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9191         Use the same technique as in sc_prohibit_doubled_word, so that
9192         we recognize "can not" also when the words are separated by a newline.
9193         Suggested by Eric Blake.
9194         (perl_filename_lineno_text_): Define.  Factored out of...
9195         (prohibit_doubled_word_): ...here.  Use the new definition.
9196         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9197         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9198         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9199
9200 2011-05-10  Eric Blake  <eblake@redhat.com>
9201
9202         fclose: avoid double close race when possible
9203         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9204         all but WINDOWS_SOCKETS.
9205
9206 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9207
9208         openat: correct new comment
9209         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9210
9211 2011-05-10  Jim Meyering  <meyering@redhat.com>
9212
9213         openat: add comments
9214         * lib/openat-proc.c (openat_proc_name): Add comments,
9215         mostly from Eric Blake.
9216
9217 2011-05-09  Eric Blake  <eblake@redhat.com>
9218
9219         openat: reduce syscalls in first probe of /proc
9220         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9221         be a directory.  Simplify the probe for .. bugs.
9222         * modules/openat (Depends-on): Drop same-inode.
9223         Reported by Bastien ROUCARIES.
9224
9225 2011-05-09  Jim Meyering  <meyering@redhat.com>
9226
9227         maint.mk: change semantics/name of tight_scope variables
9228         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9229         Rename variables to align with semantics that make them more useful.
9230
9231         maint.mk: tweak new rule's name not to impinge
9232         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9233         (sc_tight_scope): Use new rule name rather than $@-0.
9234
9235         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9236         * top/maint.mk (sc_tight_scope): New rule.
9237         (sc_tight_scope-0): New rule, ifdef'd out.
9238         (_gl_TS_dir): Default.
9239         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9240         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9241
9242 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9243
9244         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9245         Haible <bruno@clisp.org>.
9246
9247 2011-05-08  Bruno Haible  <bruno@clisp.org>
9248
9249         Comments.
9250         * m4/isnanf.m4: Add comment.
9251         * m4/isnanl.m4: Likewise.
9252
9253 2011-05-08  Bruno Haible  <bruno@clisp.org>
9254
9255         glob: Remove obsolete macro.
9256         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9257
9258 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         intprops: Sun C 5.11 supports __typeof__
9261         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9262         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9263         which is new.
9264         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9265
9266         intprops: switch to usual gnulib indenting and naming
9267         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9268         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9269
9270         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9271
9272 2011-05-08  Jim Meyering  <meyering@redhat.com>
9273
9274         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9275         * top/maint.mk (release-prep): Use make's --no-print-directory
9276         option when generating the announcement.  This eliminates the
9277         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9278         generated announcement template.
9279
9280 2011-05-08  Bruno Haible  <bruno@clisp.org>
9281
9282         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9283         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9284         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9285
9286 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9287
9288         ignore-value, verify: Omit include files from lib_SOURCES.
9289         * modules/ignore-value, modules/verify (Makefile.am):
9290         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9291         that leads Automake to duplicate use of am__objects_... variables
9292         in Makefile.in.  See
9293         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9294
9295 2011-05-07  Bruno Haible  <bruno@clisp.org>
9296
9297         fclose: Simplify autoconf macro.
9298         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9299         defined.
9300
9301 2011-05-07  Bruno Haible  <bruno@clisp.org>
9302
9303         canonicalize-lgpl: Fix autoconf macro ordering bug.
9304         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9305         gl_STDLIB_H_DEFAULTS.
9306
9307 2011-05-06  Eric Blake  <eblake@redhat.com>
9308
9309         maintainer-makefile: make sc_po_check easier to tune
9310         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9311         to probe for strings, such as an alternate location for gnulib.
9312
9313         fclose: guarantee behavior on seekable stdin
9314         * modules/fclose (Depends-on): Add fflush.
9315         * doc/posix-functions/fclose.texi (fclose): Document this.
9316         * tests/test-fclose.c (main): Make test for this unconditional.
9317
9318 2011-05-06  Bruno Haible  <bruno@clisp.org>
9319
9320         fflush, fpurge: Relicense under LGPLv2+.
9321         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9322         * modules/fpurge (License): Likewise.
9323         With permission from Eric Blake and Jim Meyering.
9324         Suggested by Eric Blake.
9325
9326 2011-05-06  Karl Berry  <karl@gnu.org>
9327
9328         * MODULES.html.sh (func_all_modules): remove exit.
9329
9330 2011-05-06  Jim Meyering  <meyering@redhat.com>
9331
9332         maint.mk: use info-gnu@ as the default only for a stable release
9333         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9334         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9335         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9337
9338 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9339
9340         assert-h: new module, which supports C1X-style static_assert
9341         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9342         * lib/verify.h: Revamp so that this can be copied into assert.h,
9343         while retaining the ability to use it standalone as before.
9344         Rename private identifiers so as not to encroach on the
9345         standard C namespace, since this is now used by assert.h.
9346         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9347         the old verify_true.
9348         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9349         the old verify_true.  Use _GL_VERIFY_TYPE.
9350         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9351         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9352         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9353         defined when this file is copied into the replacement assert.h.
9354         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9355         and _Static_assert is not built in.
9356         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9357         defined, and use the new macros mentioned above.
9358         * doc/posix-headers/assert.texi: Document this.
9359
9360 2011-05-05  Bruno Haible  <bruno@clisp.org>
9361
9362         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9363         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9364         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9365         gl_REPLACE_FCLOSE here.
9366         * modules/fflush (Depends-on): Remove fclose.
9367         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9368         combination with module 'fclose'.
9369
9370 2011-05-05  Bruno Haible  <bruno@clisp.org>
9371
9372         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9373         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9374         gl_FUNC_FFLUSH.
9375         (gl_FUNC_FFLUSH): Use it.
9376         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9377         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9378         gl_REPLACE_FSEEKO here.
9379
9380 2011-05-05  Bruno Haible  <bruno@clisp.org>
9381
9382         tzset: Relicense under LGPL.
9383         * modules/tzset (License): Change to LGPL.
9384         No agreement needed; it's a no-op.
9385
9386         strtoimax, strtoumax: Relicense under LGPL.
9387         * modules/strtoimax (License): Change to LGPL.
9388         * modules/strtoumax (License): Likewise.
9389         With permission from Jim Meyering, Paul Eggert:
9390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9392
9393         getgroups: Relicense under LGPL.
9394         * modules/getgroups (License): Change to LGPL.
9395         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9399
9400         nanosleep: Relicense under LGPL.
9401         * modules/nanosleep (License): Change to LGPL.
9402         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9403         Haible:
9404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9408
9409         futimens: Relicense under LGPL.
9410         * modules/futimens (License): Change to LGPL.
9411         With permission from Eric Blake:
9412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9413
9414         fflush: Relicense under LGPL.
9415         * modules/fflush (License): Change to LGPL.
9416         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9420
9421         tmpfile: Relicense under LGPL.
9422         * modules/tmpfile (License): Change to LGPL.
9423         With permission from Ben Pfaff:
9424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9425
9426         isfinite: Relicense under LGPL.
9427         * modules/isfinite (License): Change to LGPL.
9428         With permission from Ben Pfaff, Bruno Haible:
9429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9431
9432         acosl..tanl: Relicense under LGPL.
9433         * modules/acosl (License): Change to LGPL.
9434         * modules/asinl (License): Likewise.
9435         * modules/atanl (License): Likewise.
9436         * modules/cosl (License): Likewise.
9437         * modules/expl (License): Likewise.
9438         * modules/logl (License): Likewise.
9439         * modules/sinl (License): Likewise.
9440         * modules/sqrtl (License): Likewise.
9441         * modules/tanl (License): Likewise.
9442         Source code originally from glibc and Paolo Bonzini. Agreements:
9443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9445
9446 2011-05-05  Bruno Haible  <bruno@clisp.org>
9447
9448         signal: Define sighandler_t.
9449         * lib/signal.in.h (sighandler_t): New type.
9450         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9451         whether sighandler_t is defined.
9452         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9453         * modules/signal (Depends-on): Add extensions.
9454         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9455         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9456         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9457
9458 2011-05-05  Eric Blake  <eblake@redhat.com>
9459
9460         maint: remove useless REPLACE_*_H macros
9461         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9462         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9463         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9464         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9465         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9466         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9467         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9468         * m4/btowc.m4: Update callers.
9469         * m4/dirfd.m4: Likewise.
9470         * m4/duplocale.m4: Likewise.
9471         * m4/fchdir.m4: Likewise.
9472         * m4/fdopendir.m4: Likewise.
9473         * m4/inet_ntop.m4: Likewise.
9474         * m4/inet_pton.m4: Likewise.
9475         * m4/ioctl.m4: Likewise.
9476         * m4/mbrlen.m4: Likewise.
9477         * m4/mbrtowc.m4: Likewise.
9478         * m4/mbsinit.m4: Likewise.
9479         * m4/mbsnrtowcs.m4: Likewise.
9480         * m4/mbsrtowcs.m4: Likewise.
9481         * m4/poll.m4: Likewise.
9482         * m4/setlocale.m4: Likewise.
9483         * m4/wcrtomb.m4: Likewise.
9484         * m4/wcsnrtombs.m4: Likewise.
9485         * m4/wcsrtombs.m4: Likewise.
9486         * m4/wctob.m4: Likewise.
9487         * m4/wcwidth.m4: Likewise.
9488         * modules/posix_spawn: Likewise.
9489         * modules/posix_spawn_file_actions_addclose: Likewise.
9490         * modules/posix_spawn_file_actions_adddup2: Likewise.
9491         * modules/posix_spawn_file_actions_addopen: Likewise.
9492         * modules/posix_spawn_file_actions_destroy: Likewise.
9493         * modules/posix_spawn_file_actions_init: Likewise.
9494         * modules/posix_spawnattr_destroy: Likewise.
9495         * modules/posix_spawnattr_getflags: Likewise.
9496         * modules/posix_spawnattr_getpgroup: Likewise.
9497         * modules/posix_spawnattr_getschedparam: Likewise.
9498         * modules/posix_spawnattr_getschedpolicy: Likewise.
9499         * modules/posix_spawnattr_getsigdefault: Likewise.
9500         * modules/posix_spawnattr_getsigmask: Likewise.
9501         * modules/posix_spawnattr_init: Likewise.
9502         * modules/posix_spawnattr_setflags: Likewise.
9503         * modules/posix_spawnattr_setpgroup: Likewise.
9504         * modules/posix_spawnattr_setschedparam: Likewise.
9505         * modules/posix_spawnattr_setschedpolicy: Likewise.
9506         * modules/posix_spawnattr_setsigdefault: Likewise.
9507         * modules/posix_spawnattr_setsigmask: Likewise.
9508         * modules/posix_spawnp: Likewise.
9509
9510 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9511
9512         Add option to do-release-commit-and-tag to specify branch.
9513         * build-aux/do-release-commit-and-tag: Add --branch.
9514
9515 2011-05-03  Bruno Haible  <bruno@clisp.org>
9516
9517         Avoid unnecessary compilation units, through conditional dependencies.
9518         * modules/accept (Depends-on): Add conditions to the dependencies.
9519         * modules/acosl (Depends-on): Likewise.
9520         * modules/argz (Depends-on): Likewise.
9521         * modules/asinl (Depends-on): Likewise.
9522         * modules/atanl (Depends-on): Likewise.
9523         * modules/atoll (Depends-on): Likewise.
9524         * modules/bind (Depends-on): Likewise.
9525         * modules/btowc (Depends-on): Likewise.
9526         * modules/canonicalize-lgpl (Depends-on): Likewise.
9527         * modules/ceil (Depends-on): Likewise.
9528         * modules/ceilf (Depends-on): Likewise.
9529         * modules/ceill (Depends-on): Likewise.
9530         * modules/chdir-long (Depends-on): Likewise.
9531         * modules/chown (Depends-on): Likewise.
9532         * modules/close (Depends-on): Likewise.
9533         * modules/connect (Depends-on): Likewise.
9534         * modules/cosl (Depends-on): Likewise.
9535         * modules/dirfd (Depends-on): Likewise.
9536         * modules/dprintf (Depends-on): Likewise.
9537         * modules/dprintf-posix (Depends-on): Likewise.
9538         * modules/error (Depends-on): Likewise.
9539         * modules/euidaccess (Depends-on): Likewise.
9540         * modules/expl (Depends-on): Likewise.
9541         * modules/faccessat (Depends-on): Likewise.
9542         * modules/fchdir (Depends-on): Likewise.
9543         * modules/fclose (Depends-on): Likewise.
9544         * modules/fcntl (Depends-on): Likewise.
9545         * modules/fdopendir (Depends-on): Likewise.
9546         * modules/fflush (Depends-on): Likewise.
9547         * modules/floor (Depends-on): Likewise.
9548         * modules/floorf (Depends-on): Likewise.
9549         * modules/floorl (Depends-on): Likewise.
9550         * modules/fnmatch (Depends-on): Likewise.
9551         * modules/fopen (Depends-on): Likewise.
9552         * modules/fprintf-posix (Depends-on): Likewise.
9553         * modules/frexp (Depends-on): Likewise.
9554         * modules/frexp-nolibm (Depends-on): Likewise.
9555         * modules/frexpl (Depends-on): Likewise.
9556         * modules/frexpl-nolibm (Depends-on): Likewise.
9557         * modules/fseek (Depends-on): Likewise.
9558         * modules/fsusage (Depends-on): Likewise.
9559         * modules/ftell (Depends-on): Likewise.
9560         * modules/ftello (Depends-on): Likewise.
9561         * modules/futimens (Depends-on): Likewise.
9562         * modules/getcwd (Depends-on): Likewise.
9563         * modules/getcwd-lgpl (Depends-on): Likewise.
9564         * modules/getdelim (Depends-on): Likewise.
9565         * modules/getdomainname (Depends-on): Likewise.
9566         * modules/getgroups (Depends-on): Likewise.
9567         * modules/gethostname (Depends-on): Likewise.
9568         * modules/getline (Depends-on): Likewise.
9569         * modules/getlogin_r (Depends-on): Likewise.
9570         * modules/getopt-posix (Depends-on): Likewise.
9571         * modules/getpeername (Depends-on): Likewise.
9572         * modules/getsockname (Depends-on): Likewise.
9573         * modules/getsockopt (Depends-on): Likewise.
9574         * modules/getsubopt (Depends-on): Likewise.
9575         * modules/getusershell (Depends-on): Likewise.
9576         * modules/glob (Depends-on): Likewise.
9577         * modules/grantpt (Depends-on): Likewise.
9578         * modules/iconv_open (Depends-on): Likewise.
9579         * modules/iconv_open-utf (Depends-on): Likewise.
9580         * modules/inet_ntop (Depends-on): Likewise.
9581         * modules/inet_pton (Depends-on): Likewise.
9582         * modules/ioctl (Depends-on): Likewise.
9583         * modules/isapipe (Depends-on): Likewise.
9584         * modules/isfinite (Depends-on): Likewise.
9585         * modules/isinf (Depends-on): Likewise.
9586         * modules/lchown (Depends-on): Likewise.
9587         * modules/ldexpl (Depends-on): Likewise.
9588         * modules/link (Depends-on): Likewise.
9589         * modules/linkat (Depends-on): Likewise.
9590         * modules/listen (Depends-on): Likewise.
9591         * modules/logl (Depends-on): Likewise.
9592         * modules/lstat (Depends-on): Likewise.
9593         * modules/mbrlen (Depends-on): Likewise.
9594         * modules/mbrtowc (Depends-on): Likewise.
9595         * modules/mbsinit (Depends-on): Likewise.
9596         * modules/mbsnrtowcs (Depends-on): Likewise.
9597         * modules/mbsrtowcs (Depends-on): Likewise.
9598         * modules/mbtowc (Depends-on): Likewise.
9599         * modules/memcmp (Depends-on): Likewise.
9600         * modules/mkdir (Depends-on): Likewise.
9601         * modules/mkdtemp (Depends-on): Likewise.
9602         * modules/mkfifo (Depends-on): Likewise.
9603         * modules/mkfifoat (Depends-on): Likewise.
9604         * modules/mknod (Depends-on): Likewise.
9605         * modules/mkostemp (Depends-on): Likewise.
9606         * modules/mkostemps (Depends-on): Likewise.
9607         * modules/mkstemp (Depends-on): Likewise.
9608         * modules/mkstemps (Depends-on): Likewise.
9609         * modules/mktime (Depends-on): Likewise.
9610         * modules/nanosleep (Depends-on): Likewise.
9611         * modules/open (Depends-on): Likewise.
9612         * modules/openat (Depends-on): Likewise.
9613         * modules/perror (Depends-on): Likewise.
9614         * modules/poll (Depends-on): Likewise.
9615         * modules/popen (Depends-on): Likewise.
9616         * modules/posix_spawn (Depends-on): Likewise.
9617         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9618         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9619         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9620         * modules/posix_spawnp (Depends-on): Likewise.
9621         * modules/pread (Depends-on): Likewise.
9622         * modules/printf-posix (Depends-on): Likewise.
9623         * modules/ptsname (Depends-on): Likewise.
9624         * modules/putenv (Depends-on): Likewise.
9625         * modules/pwrite (Depends-on): Likewise.
9626         * modules/readline (Depends-on): Likewise.
9627         * modules/readlink (Depends-on): Likewise.
9628         * modules/readlinkat (Depends-on): Likewise.
9629         * modules/recv (Depends-on): Likewise.
9630         * modules/recvfrom (Depends-on): Likewise.
9631         * modules/regex (Depends-on): Likewise.
9632         * modules/remove (Depends-on): Likewise.
9633         * modules/rename (Depends-on): Likewise.
9634         * modules/renameat (Depends-on): Likewise.
9635         * modules/rmdir (Depends-on): Likewise.
9636         * modules/round (Depends-on): Likewise.
9637         * modules/roundf (Depends-on): Likewise.
9638         * modules/roundl (Depends-on): Likewise.
9639         * modules/rpmatch (Depends-on): Likewise.
9640         * modules/select (Depends-on): Likewise.
9641         * modules/send (Depends-on): Likewise.
9642         * modules/sendto (Depends-on): Likewise.
9643         * modules/setenv (Depends-on): Likewise.
9644         * modules/setlocale (Depends-on): Likewise.
9645         * modules/setsockopt (Depends-on): Likewise.
9646         * modules/shutdown (Depends-on): Likewise.
9647         * modules/sigaction (Depends-on): Likewise.
9648         * modules/signbit (Depends-on): Likewise.
9649         * modules/sigprocmask (Depends-on): Likewise.
9650         * modules/sinl (Depends-on): Likewise.
9651         * modules/sleep (Depends-on): Likewise.
9652         * modules/snprintf (Depends-on): Likewise.
9653         * modules/snprintf-posix (Depends-on): Likewise.
9654         * modules/socket (Depends-on): Likewise.
9655         * modules/sprintf-posix (Depends-on): Likewise.
9656         * modules/sqrtl (Depends-on): Likewise.
9657         * modules/stat (Depends-on): Likewise.
9658         * modules/strchrnul (Depends-on): Likewise.
9659         * modules/strdup-posix (Depends-on): Likewise.
9660         * modules/strerror (Depends-on): Likewise.
9661         * modules/strerror_r-posix (Depends-on): Likewise.
9662         * modules/strndup (Depends-on): Likewise.
9663         * modules/strnlen (Depends-on): Likewise.
9664         * modules/strptime (Depends-on): Likewise.
9665         * modules/strsep (Depends-on): Likewise.
9666         * modules/strsignal (Depends-on): Likewise.
9667         * modules/strstr-simple (Depends-on): Likewise.
9668         * modules/strtod (Depends-on): Likewise.
9669         * modules/strtoimax (Depends-on): Likewise.
9670         * modules/strtok_r (Depends-on): Likewise.
9671         * modules/strtoumax (Depends-on): Likewise.
9672         * modules/symlink (Depends-on): Likewise.
9673         * modules/symlinkat (Depends-on): Likewise.
9674         * modules/tanl (Depends-on): Likewise.
9675         * modules/tcgetsid (Depends-on): Likewise.
9676         * modules/tmpfile (Depends-on): Likewise.
9677         * modules/trunc (Depends-on): Likewise.
9678         * modules/truncf (Depends-on): Likewise.
9679         * modules/truncl (Depends-on): Likewise.
9680         * modules/uname (Depends-on): Likewise.
9681         * modules/unlink (Depends-on): Likewise.
9682         * modules/unlockpt (Depends-on): Likewise.
9683         * modules/unsetenv (Depends-on): Likewise.
9684         * modules/usleep (Depends-on): Likewise.
9685         * modules/utimensat (Depends-on): Likewise.
9686         * modules/vasprintf (Depends-on): Likewise.
9687         * modules/vdprintf (Depends-on): Likewise.
9688         * modules/vdprintf-posix (Depends-on): Likewise.
9689         * modules/vfprintf-posix (Depends-on): Likewise.
9690         * modules/vprintf-posix (Depends-on): Likewise.
9691         * modules/vsnprintf (Depends-on): Likewise.
9692         * modules/vsnprintf-posix (Depends-on): Likewise.
9693         * modules/vsprintf-posix (Depends-on): Likewise.
9694         * modules/wcrtomb (Depends-on): Likewise.
9695         * modules/wcscasecmp (Depends-on): Likewise.
9696         * modules/wcscspn (Depends-on): Likewise.
9697         * modules/wcsdup (Depends-on): Likewise.
9698         * modules/wcsncasecmp (Depends-on): Likewise.
9699         * modules/wcsnrtombs (Depends-on): Likewise.
9700         * modules/wcspbrk (Depends-on): Likewise.
9701         * modules/wcsrtombs (Depends-on): Likewise.
9702         * modules/wcsspn (Depends-on): Likewise.
9703         * modules/wcsstr (Depends-on): Likewise.
9704         * modules/wcstok (Depends-on): Likewise.
9705         * modules/wcswidth (Depends-on): Likewise.
9706         * modules/wctob (Depends-on): Likewise.
9707         * modules/wctomb (Depends-on): Likewise.
9708         * modules/wctype (Depends-on): Likewise.
9709         * modules/wcwidth (Depends-on): Likewise.
9710         * modules/write (Depends-on): Likewise.
9711
9712 2011-05-03  Bruno Haible  <bruno@clisp.org>
9713
9714         Support for conditional dependencies.
9715         * doc/gnulib.texi (Module description): Document the syntax of
9716         conditional dependencies.
9717         * gnulib-tool: New option --conditional-dependencies.
9718         (func_usage): Document it.
9719         (cond_dependencies): New variable.
9720         (func_get_automake_snippet_conditional,
9721         func_get_automake_snippet_unconditional): New functions, extracted from
9722         func_get_automake_snippet.
9723         (func_get_automake_snippet): Use them.
9724         (sed_first_32_chars): New variable.
9725         (func_module_shellfunc_name): New function.
9726         (func_module_shellvar_name): New function.
9727         (func_module_conditional_name): New function.
9728         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9729         func_cond_module_condition): New functions.
9730         (func_modules_transitive_closure): Add support for conditional
9731         dependencies.
9732         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9733         conditional automake snippet in an automake conditional.
9734         (func_emit_autoconf_snippets): Emit shell functions that contain the
9735         code for conditional modules.
9736         (func_import, func_create_testdir): Update specification.
9737
9738 2011-05-03  Eric Blake  <eblake@redhat.com>
9739
9740         test-getaddrinfo: report error information
9741         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9742
9743 2011-05-03  Jim Meyering  <meyering@redhat.com>
9744
9745         bootstrap: avoid build failure when $GZIP is set
9746         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9747         program name.  If defined at all, it is supposed to list gzip options.
9748         Reported by Alan Curry in http://debbugs.gnu.org/8609
9749
9750 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9751
9752         readme-release: new module with release instructions
9753         * modules/readme-release: New module.
9754         * top/README-release: New file, from coreutils, grep, diffutils.
9755         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9756
9757 2011-05-02  Eric Blake  <eblake@redhat.com>
9758
9759         fflush: also replace fclose when fixing fflush
9760         * modules/fflush (Depends-on): Add fclose.
9761         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9762         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9763         memstreams with no backing fd.
9764         * doc/posix-functions/fclose.texi (fclose): Document the use of
9765         fflush module to fix the bug.
9766         * tests/test-fclose.c (main): Relax test when fclose is used in
9767         isolation.
9768
9769         fclose: add some tests
9770         * modules/fclose-tests: New test module.
9771         * tests/test-fclose.c: New file.
9772         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9773
9774         fclose: reduced dependencies
9775         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9776         simpler lseek.
9777         * lib/fclose.c (rpl_fclose): Likewise.
9778         Reported by Simon Josefsson.
9779
9780         exit: drop remaining clients
9781         * modules/argmatch (Depends-on): Replace exit with stdlib.
9782         * modules/copy-file (Depends-on): Likewise.
9783         * modules/execute (Depends-on): Likewise.
9784         * modules/exitfail (Depends-on): Likewise.
9785         * modules/obstack (Depends-on): Likewise.
9786         * modules/pagealign_alloc (Depends-on): Likewise.
9787         * modules/pipe-filter-gi (Depends-on): Likewise.
9788         * modules/pipe-filter-ii (Depends-on): Likewise.
9789         * modules/savewd (Depends-on): Likewise.
9790         * modules/spawn-pipe (Depends-on): Likewise.
9791         * modules/wait-process (Depends-on): Likewise.
9792         * modules/xsetenv (Depends-on): Likewise.
9793         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9794         * modules/git-merge-changelog (Depends-on): Likewise.
9795         * modules/long-options (Depends-on): Likewise.
9796         * modules/pt_chown (Depends-on): Likewise.
9797         * modules/sysexits (Depends-on): Likewise.
9798
9799         freading: relax license from LGPLv3+ to LGPLv2+
9800         * modules/freading (License): Relax LGPL version.
9801
9802 2011-05-02  Bruno Haible  <bruno@clisp.org>
9803
9804         fchdir: Remove unused dependencies.
9805         * modules/fchdir (Depends-on): Remove include_next.
9806
9807 2011-05-02  Bruno Haible  <bruno@clisp.org>
9808
9809         gnulib-tool: Refactor.
9810         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9811         from func_emit_autoconf_snippets.
9812         (func_emit_autoconf_snippets): Use it.
9813
9814 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9815
9816         * NEWS: Document removal of 'exit'.
9817         * modules/exit: Remove file.
9818
9819 2011-05-01  Bruno Haible  <bruno@clisp.org>
9820
9821         Update DEPENDENCIES.
9822         * DEPENDENCIES (gettext): Recommend the newest release.
9823         Reported by Simon Josefsson.
9824
9825 2011-05-01  Bruno Haible  <bruno@clisp.org>
9826
9827         gnulib-tool: Reduce code duplication.
9828         * gnulib-tool (func_emit_autoconf_snippets): New function.
9829         (func_import, func_create_testdir): Use it.
9830
9831 2011-04-30  Eric Blake  <eblake@redhat.com>
9832
9833         fclose: don't fail on non-seekable input stream
9834         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9835         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9836         since fflush is allowed to fail in that case.
9837
9838 2011-04-30  Bruno Haible  <bruno@clisp.org>
9839
9840         dup3: cleanup
9841         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9842
9843 2011-04-30  Bruno Haible  <bruno@clisp.org>
9844
9845         netdb: Make it work in C++ mode.
9846         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9847         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9848         module.
9849         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9850         gl_MODULE_INDICATOR_FOR_TESTS.
9851         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9852         * modules/netdb-c++-tests: New file.
9853         * tests/test-netdb-c++.cc: New file.
9854
9855 2011-04-30  Bruno Haible  <bruno@clisp.org>
9856
9857         New modules 'vfscanf', 'vscanf'.
9858         * modules/vfscanf: New file.
9859         * modules/vscanf: New file.
9860         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9861         here.
9862         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9863         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9864
9865 2011-04-30  Bruno Haible  <bruno@clisp.org>
9866
9867         passfd: Add comments.
9868         * lib/passfd.c: Add comments about platforms.
9869
9870 2011-04-30  Bruno Haible  <bruno@clisp.org>
9871
9872         sys_uio: Make <sys/uio.h> self-contained.
9873         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9874         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9875
9876 2011-04-30  Bruno Haible  <bruno@clisp.org>
9877
9878         sys_socket: Ensure 'struct iovec' definition.
9879         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9880         <sys/socket.h>.
9881         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9882
9883 2011-04-30  Bruno Haible  <bruno@clisp.org>
9884
9885         sys_uio: Protect definition of 'struct iovec'.
9886         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9887         it as a C struct.
9888
9889 2011-04-30  Bruno Haible  <bruno@clisp.org>
9890
9891         manywarnings: fix indentation
9892         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9893
9894 2011-04-30  Pádraig Brady <P@draigBrady.com>
9895
9896         manywarnings: add -Wno-missing-field-initializers if needed.
9897         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9898         option if it's needed to allow initialization with { 0, }
9899
9900 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9901
9902         announce-gen: cosmetic improvement
9903         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9904
9905 2011-04-29  Jim Meyering  <meyering@redhat.com>
9906
9907         vc-list-files: indent with spaces, not TABs
9908         * build-aux/vc-list-files: Convert leading TABs to spaces,
9909         to match the style of most other files in gnulib.
9910
9911         announce-gen: indent with spaces, not TABs
9912         * build-aux/announce-gen: Convert all TABs to spaces, to match
9913         the style of most other files in gnulib.
9914
9915 2011-04-29  Eric Blake  <eblake@redhat.com>
9916
9917         quotearg: avoid uninitialized variable use
9918         * lib/quotearg.c (quoting_options_from_style): Initialize
9919         remaining fields, and ensure that custom styles are only used via
9920         quoting_options rather than quoting_style.
9921
9922 2011-04-29  Jim Meyering  <meyering@redhat.com>
9923
9924         maint.mk: remove unused VC-tag variable
9925         * top/maint.mk (VC-tag): Remove unused variable.
9926
9927 2011-04-29  Bruno Haible  <bruno@clisp.org>
9928
9929         netdb: fix gai_strerror replacements
9930         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9931         * modules/netdb: Substitute it.
9932
9933 2011-04-29  Jim Meyering  <meyering@redhat.com>
9934
9935         test-getcwd.c: avoid new set-but-not-used warning
9936         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9937         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9938         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9939         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9940
9941         test-hash.c: avoid a new shadowing warning
9942         * tests/test-hash.c (main): Don't shadow "dup".
9943
9944 2011-04-28  Eric Blake  <eblake@redhat.com>
9945
9946         getaddrinfo: fix gai_strerror signature
9947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9948         and work around mingw with UNICODE defined.
9949         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9950         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9951         * modules/netdb (Makefile.am): Substitute it.
9952         * lib/netdb.in.h (gai_strerror): Declare replacement.
9953         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9954         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9955         the fix.
9956
9957         getsockopt: avoid compiler warning
9958         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9959         Reported by Matthias Bolte.
9960
9961         tests: drop unused link dependency
9962         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9963         * modules/dirent-safer-tests (Makefile.am): Likewise.
9964         * modules/fdopendir-tests (Makefile.am): Likewise.
9965         * modules/mkfifoat-tests (Makefile.am): Likewise.
9966         * modules/openat-safer-tests (Makefile.am): Likewise.
9967         * modules/openat-tests (Makefile.am): Likewise.
9968         * modules/readlinkat-tests (Makefile.am): Likewise.
9969         * modules/symlinkat-tests (Makefile.am): Likewise.
9970         * modules/linkat-tests (Makefile.am): Likewise.
9971         (Depends-on): Switch to filenamecat-lgpl.
9972         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9973         LIBINTL.
9974         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9975         * tests/test-linkat.c (main): Don't require xalloc.
9976
9977         hash, mgetgroups: drop xalloc dependency
9978         * lib/hash.c (includes): Adjust includes.
9979         * lib/mgetgroups.c (includes): Likewise.
9980         (xgetgroups): Move...
9981         * lib/xgetgroups.c: ...to new file.
9982         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9983         * modules/xgetgroups: New file, split from...
9984         * modules/mgetgroups: ...here.
9985         (Depends-on): Add xalloc-oversized.
9986         * modules/hash (Depends-on): Likewise.
9987         * modules/hash-tests (Depends-on): Drop xalloc.
9988         (test_hash_LDADD): Drop unused library.
9989         * tests/test-hash.c (main): Break xalloc dependency.
9990         (includes): Drop unused include.
9991
9992         xalloc-oversized: new module
9993         * modules/xalloc-oversized: New module.
9994         * modules/xalloc (Depends-on): Add it.
9995         * lib/xalloc.h (xalloc_oversized): Move...
9996         * lib/xalloc-oversized.h: ...into new file.
9997
9998         utimecmp: drop dependency on xmalloc
9999         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10000         due to memory pressure.
10001         * modules/utimecmp (Depends-on): Drop xalloc.
10002
10003 2011-04-27  Eric Blake  <eblake@redhat.com>
10004
10005         getcwd: fix mingw bugs
10006         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10007         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10008         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10009
10010 2011-04-27  Bruno Haible  <bruno@clisp.org>
10011
10012         mkstemps: Ensure declaration on MacOS X 10.5.
10013         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10014         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10015         MacOS X.
10016
10017 2011-04-27  Bruno Haible  <bruno@clisp.org>
10018
10019         mkstemp: More documentation.
10020         * doc/posix-functions/mkstemp.texi: Document header file problem on
10021         MacOS X.
10022
10023 2011-04-27  Bruno Haible  <bruno@clisp.org>
10024
10025         mkstemp: Tweak configure message when cross-compiling.
10026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10027         result as a guess.
10028
10029 2011-04-27  Bruno Haible  <bruno@clisp.org>
10030
10031         clean-temp: Clarify what it does.
10032         * lib/clean-temp.h: Add more comments.
10033         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10034         module.
10035         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10036         * doc/glibc-functions/mkstemps.texi: Likewise.
10037         * doc/glibc-functions/mkostemps.texi: Likewise.
10038
10039 2011-04-27  Eric Blake  <eblake@redhat.com>
10040
10041         fchdir: avoid extra chdir and fix test
10042         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10043         getcwd-lgpl.
10044         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10045         have to be canonical.
10046         (canonicalize_file_name): Drop unused macro.
10047         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10048
10049         filenamecat-lgpl: fix licence
10050         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10051         when it was first created.
10052
10053         linkat, renameat: add missing dependency
10054         * modules/linkat (Depends-on): Require getcwd-lgpl.
10055         * modules/renameat (Depends-on): Likewise.
10056
10057         tests: reduce dependencies
10058         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10059         * tests/test-renameat.c (main): Likewise.
10060         * modules/linkat-tests (Depends-on): Relax dependency.
10061         * modules/renameat-tests (Depends-on): Likewise.
10062         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10063         dependency explicit.
10064
10065         save-cwd: reduce default dependency
10066         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10067         * lib/save-cwd.c: Update comments.
10068         * NEWS: Document the semantic change.
10069
10070         getcwd: enhance tests
10071         * tests/test-getcwd-lgpl.c: New file, taken from...
10072         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10073         repeat long path stress tests from m4 probe.
10074         * modules/getcwd-lgpl-tests: New module.
10075         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10076         * m4/getcwd-abort-bug.m4: Update comment.
10077         * m4/getcwd-path-max.m4: Likewise.
10078
10079         getcwd-lgpl: new module
10080         * modules/getcwd-lgpl: New module.
10081         * lib/getcwd-lgpl.c: New file.
10082         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10083         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10084         * modules/getcwd (configure.ac): Set C witness.
10085         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10086
10087         getcwd: tweak comments
10088         * m4/getcwd-abort-bug.m4: Fix comments.
10089         * m4/getcwd-path-max.m4: Likewise.
10090         * m4/getcwd.m4: Likewise.
10091
10092 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10093         and Eric Blake  <eblake@redhat.com>
10094
10095         mkstemp: replace if system version uses wrong permissions
10096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10097         read/write mode bits set in file created by mkstemp.
10098         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10099
10100 2011-04-27  Eric Blake  <eblake@redhat.com>
10101
10102         passfd: avoid compiler warning
10103         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10104         Reported by Laine Stump.
10105
10106 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10107
10108         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10109         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10110
10111 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10112         and Eric Blake  <eblake@redhat.com>
10113
10114         mkstemp: mention clean-temp module
10115         * lib/mkstemp.c: Add comment.
10116         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10117
10118 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10119
10120         inttypes: also provide default values for 32-bit tests
10121         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10122         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10123
10124 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         strtoumax: remove dependency on strtoimax
10127         This is like the strtoull change of yesterday.
10128         * modules/strtoumax (Files): Add lib/strtoimax.c.
10129         (Depends-on): Remove strtoimax and add verify.
10130
10131         inttypes-incomplete: new module
10132         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10133         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10134         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10135         of gl_INTTYPES_H.
10136         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10137         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10138         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10139         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10140         * modules/strtoumax, modules/xstrtol (Depends-on):
10141         Depend on inttypes-incomplete, not inttypes.
10142         * modules/inttypes-incomplete: New module, containing the contents
10143         of the old modules/inttypes module, except that the Files: section
10144         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10145         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10146         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10147         (Depends-on): Depend only on inttypes-incomplete.
10148         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10149
10150         inttypes: omit now-redundant strtoimax and strtoumax work
10151         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10152         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10153
10154         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10155         This supports apps that need pointers to strtoimax and strtoumax,
10156         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10157         nonexistent functions.  See
10158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10159         et seq.
10160         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10161         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10162         a macro.
10163         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10164
10165 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10166
10167         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10168
10169 2011-04-25  Bruno Haible  <bruno@clisp.org>
10170
10171         strtol, strtoul: Mark modules as obsolete.
10172         * modules/strtol (Status, Notice): New sections.
10173         * modules/strtoul (Status, Notice): New sections.
10174
10175 2011-04-25  Bruno Haible  <bruno@clisp.org>
10176
10177         strtod: Remove check for strtod, unless supporting old platforms.
10178         * modules/strtod-obsolete: New file.
10179         * m4/strtod-obsolete.m4: New file.
10180         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10181         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10182         * modules/strtod (Depends-on): Add strtod-obsolete.
10183         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10184
10185 2011-04-25  Bruno Haible  <bruno@clisp.org>
10186
10187         strcase: Make module obsolete.
10188         * modules/strcase (Status, Notice): New sections.
10189
10190 2011-04-25  Bruno Haible  <bruno@clisp.org>
10191
10192         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10193         * modules/dup2-obsolete: New file.
10194         * m4/dup2-obsolete.m4: New file.
10195         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10196         gl_FUNC_DUP2_OBSOLETE is not also defined.
10197         * modules/dup2 (Depends-on): Add dup2-obsolete.
10198         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10199
10200 2011-04-25  Bruno Haible  <bruno@clisp.org>
10201
10202         strnlen: Avoid memchr related link error on old obsolete platforms.
10203         * modules/memchr-obsolete: New file.
10204         * m4/memchr-obsolete.m4: New file.
10205         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10206         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10207         * modules/memchr (Depends-on): Add memchr-obsolete.
10208         * modules/strnlen (Depends-on): Likewise.
10209         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10210
10211 2011-04-25  Jim Meyering  <meyering@redhat.com>
10212
10213         maint.mk: makefile_at_at_check extend and clean up
10214         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10215         in addition to */Makefile.am.
10216         Exempt legitimate uses of @VAR@ notation, e.g.,
10217         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10218         Remove obsolete coreutils-specific comment.
10219         Prompted by discussion here:
10220         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10221
10222 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         strtoul: remove dependency on strtol
10225         This is so that 'configure' need not check for strtol merely because
10226         the application needs strtoul.
10227         * modules/strtoul (Files): Add lib/strtol.c.
10228         (Depends-on): Remove strtol.
10229
10230         strtoull: remove dependency on strtoul
10231         This is like the strtoll change.
10232         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10233         (Depends-on): Remove strtoul.
10234
10235         strtoll: remove dependency on strtol
10236         This is so that 'configure' need not check for strtol merely because
10237         the application needs strtoll.
10238         * modules/strtoll (Files): Add lib/strtol.c.
10239         (Depends-on): Remove strtol.
10240
10241 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         inttypes: Move some configure check to module 'imaxdiv'.
10244         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10245         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10246         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10247
10248 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10249
10250         inttypes: Move some configure check to module 'imaxabs'.
10251         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10252         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10253         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10254
10255 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         inttypes: Remove configure tests that are not needed since 2009-12-31.
10258         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10259         gl_cv_header_working_inttypes_h.
10260
10261 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         * modules/strnlen (Depends-on): Remove memchr.
10264         The strnlen implementation doesn't need the memchr module's fixes; see
10265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10266
10267         strtol: remove dependency on wchar
10268         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10269         * modules/strtol (Depends-on): Remove wchar.
10270
10271 2011-04-21  Eric Blake  <eblake@redhat.com>
10272
10273         passfd: fix test regression on Linux
10274         * modules/passfd-tests (configure.ac): Correct socketpair check.
10275
10276         passfd: speed up configure and drop unused code
10277         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10278         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10279         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10280         Instead of probing at configure for unix_scm_rights_bsd44_way,
10281         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10282         check to a struct member probe.
10283         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10284         (sendfd, recvfd): Update preprocessor checks.
10285         * modules/passfd (Files): Reflect rename, and drop unused file.
10286         (Depends-on): Drop unused dependency.
10287
10288         passfd: allow compilation on mingw
10289         * modules/sys_socket (Depends-on): Add sys_uio.
10290         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10291         iovec and a minimal struct msghdr.
10292         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10293         * tests/test-sys_socket.c (main): Enhance test.
10294         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10295         guaranteed to provide what we need.
10296         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10297         * modules/passfd-tests (Depends-on): Add sys_wait.
10298         * tests/test-passfd.c (main): Skip test on mingw, for now.
10299         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10300         partial 'struct msghdr' implementation.
10301
10302         sys_uio: new module
10303         * modules/sys_uio: New module.
10304         * modules/sys_uio-tests: Likewise.
10305         * lib/sys_uio.in.h: New file.
10306         * m4/sys_uio_h.m4: Likewise.
10307         * tests/test-sys_uio.c: Likewise.
10308         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10309         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10310
10311 2011-04-20  Jim Meyering  <meyering@redhat.com>
10312
10313         useless-if-before-free: avoid false-positive
10314         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10315         disjunct so that it too requires a terminating ";".  Without that,
10316         this script would identify as useless one statement from gcc that
10317         was not:
10318           if (aligned_ptr)
10319             free (((void **) aligned_ptr) [-1]);
10320
10321 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10322
10323         doc: update users.txt.
10324         * users.txt: Add barcode.
10325
10326 2011-04-19  Bruno Haible  <bruno@clisp.org>
10327
10328         ioctl: Remove link dependency on native Windows.
10329         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10330         (gl_close_fn, gl_ioctl_fn): New types.
10331         (struct fd_hook): Renamed from struct close_hook. Change type of
10332         private_close_fn field. Add private_ioctl_fn field.
10333         (close_hook_fn): Add parameter for primary close method.
10334         (execute_close_hooks, execute_all_close_hooks): Likewise.
10335         (ioctl_hook_fn): New type.
10336         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10337         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10338         argument.
10339         (unregister_fd_hook): Renamed from unregister_close_hook.
10340         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10341         Don't include <unistd.h>.
10342         (close): Remove undef.
10343         (anchor): Update.
10344         (execute_close_hooks): Add argument for primary close method.
10345         (execute_all_close_hooks): Likewise.
10346         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10347         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10348         argument. Allow each argument to be NULL.
10349         (unregister_fd_hook): Renamed from unregister_close_hook.
10350         * lib/close.c (rpl_close): Pass 'close' function pointer to
10351         execute_all_close_hooks.
10352         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10353         (primary_ioctl): New function.
10354         (ioctl): Don't call ioctlsocket here. Instead, call
10355         execute_all_ioctl_hooks.
10356         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10357         close method.
10358         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10359         (fd_sockets_hook): Renamed from close_sockets_hook.
10360         (gl_sockets_startup, gl_sockets_cleanup): Update.
10361         * modules/fd-hook: Renamed from modules/close-hook. Update.
10362         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10363         * modules/sockets (Depends-on): Likewise.
10364         * modules/ioctl (Depends-on): Add fd-hook.
10365         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10366         GNULIB_SOCKET.
10367
10368 2011-04-19  Bruno Haible  <bruno@clisp.org>
10369
10370         Move the support of O_NONBLOCK in open() to the 'open' module.
10371         * modules/nonblocking (Depends-on): Remove 'open'.
10372         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10373         gl_cv_have_open_O_NONBLOCK.
10374         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10375         O_NONBLOCK support.
10376         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10377
10378 2011-04-17  Bruno Haible  <bruno@clisp.org>
10379
10380         pipe2: Simplify code.
10381         * lib/pipe2.c (pipe2): Reduce code duplication.
10382
10383 2011-04-17  Bruno Haible  <bruno@clisp.org>
10384
10385         nonblocking: Add comment.
10386         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10387
10388 2011-04-17  Bruno Haible  <bruno@clisp.org>
10389
10390         nonblocking: Add tests for sockets.
10391         * tests/test-nonblocking-socket.sh: New file.
10392         * tests/test-nonblocking-socket-main.c: New file.
10393         * tests/test-nonblocking-socket-child.c: New file.
10394         * tests/test-nonblocking-socket.h: New file.
10395         * tests/socket-server.h: New file.
10396         * tests/socket-client.h: New file.
10397         * modules/nonblocking-socket-tests: New file.
10398         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10399
10400 2011-04-17  Bruno Haible  <bruno@clisp.org>
10401
10402         nonblocking: Add tests for pipes.
10403         * tests/test-nonblocking-pipe.sh: New file.
10404         * tests/test-nonblocking-pipe-main.c: New file.
10405         * tests/test-nonblocking-pipe-child.c: New file.
10406         * tests/test-nonblocking-pipe.h: New file.
10407         * tests/test-nonblocking-writer.h: New file.
10408         * tests/test-nonblocking-reader.h: New file.
10409         * tests/test-nonblocking-misc.h: New file.
10410         * modules/nonblocking-pipe-tests: New file.
10411         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10412
10413 2011-04-16  Bruno Haible  <bruno@clisp.org>
10414
10415         gettext: Clarify the needed programmer actions.
10416         * modules/gettext (Notice): New field.
10417         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10418
10419 2011-04-16  Bruno Haible  <bruno@clisp.org>
10420
10421         strchrnul: Tweak last commit.
10422         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10423         bug.
10424         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10425         as in _GL_FUNCDECL_SYS.
10426         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10427         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10428
10429 2011-04-15  Eric Blake  <eblake@redhat.com>
10430
10431         strchrnul: work around cygwin bug
10432         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10433         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10435         * modules/string (Makefile.am): Substitute it.
10436         * lib/string.in.h (strchrnul): Use it.
10437
10438 2011-04-15  Bruno Haible  <bruno@clisp.org>
10439
10440         Don't require lib/stdio-write.c when only module 'stdio' is used.
10441         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10442         invocation.
10443         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10444
10445 2011-04-14  Bruno Haible  <bruno@clisp.org>
10446
10447         Support non-blocking pipe I/O in read() on native Windows.
10448         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10449         (read): New declaration.
10450         * lib/read.c: New file.
10451         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10452         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10453         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10454         vscanf): New declarations.
10455         * lib/stdio-read.c: New file.
10456         * m4/read.m4: New file.
10457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10458         REPLACE_READ.
10459         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10460         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10461         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10462         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10463         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10464         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10465         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10466         * modules/read: New file.
10467         * modules/nonblocking (Files): Add lib/stdio-read.c.
10468         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10469         * modules/stdio (Makefile.am): Substitute 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/pread (Depends-on): Add read.
10473         * modules/safe-read (Depends-on): Likewise.
10474         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10475         gets, scanf, vfscanf, vscanf): Verify signatures.
10476         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10477         problem with non-blocking pipes.
10478         * doc/posix-functions/fgetc.texi: Likewise.
10479         * doc/posix-functions/fgets.texi: Likewise.
10480         * doc/posix-functions/fread.texi: Likewise.
10481         * doc/posix-functions/fscanf.texi: Likewise.
10482         * doc/posix-functions/getc.texi: Likewise.
10483         * doc/posix-functions/getchar.texi: Likewise.
10484         * doc/posix-functions/gets.texi: Likewise.
10485         * doc/posix-functions/scanf.texi: Likewise.
10486         * doc/posix-functions/vfscanf.texi: Likewise.
10487         * doc/posix-functions/vscanf.texi: Likewise.
10488
10489 2011-04-14  Bruno Haible  <bruno@clisp.org>
10490
10491         Support non-blocking pipe I/O in write() on native Windows.
10492         * lib/write.c (rpl_write): Split a write request that failed merely
10493         because the byte count was larger than the pipe buffer's size.
10494         * doc/posix-functions/write.texi: Mention the problem with large byte
10495         counts.
10496
10497 2011-04-14  Bruno Haible  <bruno@clisp.org>
10498
10499         wchar: Ensure that wchar_t gets defined on uClibc.
10500         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10501         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10502
10503 2011-04-13  Bruno Haible  <bruno@clisp.org>
10504
10505         safe-write, full-read: Avoid unnecessary compilation units.
10506         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10507         (Depends-on): Remove safe-read. Add ssize_t.
10508         * modules/full-read (Files): Add lib/full-write.c.
10509         (Depends-on): Add full-write.
10510
10511 2011-04-13  Bruno Haible  <bruno@clisp.org>
10512
10513         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10514         * modules/pwrite (Depends-on): Add 'write'.
10515
10516 2011-04-13  Bruno Haible  <bruno@clisp.org>
10517
10518         Support non-blocking pipe I/O in write() on native Windows.
10519         * lib/unistd.in.h (write): Enable replacement also if
10520         GNULIB_UNISTD_H_NONBLOCKING is 1.
10521         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10522         (rpl_write): When failing to write on a non-blocking pipe, change
10523         errno from ENOSPC to EAGAIN.
10524         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10525         putchar, puts, vfprintf, vprintf): Enable replacement also if
10526         GNULIB_STDIO_H_NONBLOCKING is 1.
10527         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10528         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10529         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10530         CALL_WITH_SIGPIPE_EMULATION.
10531         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10532         * m4/nonblocking.m4: New file.
10533         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10534         for non-blocking I/O support.
10535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10536         GNULIB_UNISTD_H_NONBLOCKING.
10537         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10538         required for non-blocking I/O support.
10539         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10540         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10541         lib/stdio-write.c, m4/asm-underscore.m4.
10542         (Depends-on): Add stdio, unistd.
10543         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10544         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10545         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10546         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10547         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10548         problem with non-blocking pipes.
10549         * doc/posix-functions/fputc.texi: Likewise.
10550         * doc/posix-functions/fputs.texi: Likewise.
10551         * doc/posix-functions/fwrite.texi: Likewise.
10552         * doc/posix-functions/printf.texi: Likewise.
10553         * doc/posix-functions/putc.texi: Likewise.
10554         * doc/posix-functions/putchar.texi: Likewise.
10555         * doc/posix-functions/puts.texi: Likewise.
10556         * doc/posix-functions/vfprintf.texi: Likewise.
10557         * doc/posix-functions/vprintf.texi: Likewise.
10558         * doc/posix-functions/write.texi: Likewise.
10559
10560 2011-04-10  Jim Meyering  <meyering@redhat.com>
10561
10562         maint.mk: prohibit doubled words
10563         Detect them also when they're separated by a newline.
10564         There are 3 ways to customize it:
10565           - disable the test on a per file basis, as usual with rules using
10566             $(VC_LIST_EXCEPT)
10567           - replace the default doubled-word-selecting regexp (affects all files)
10568           - ignore a particular file-vs-doubled-word match
10569         I nearly used that last one to ignore the "is is" match in
10570         coreutils' NEWS file, since the text was "ls -is is ..."
10571         To do that, I would have added this line to cfg.mk:
10572           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10573         but it would have ignored any "is is" match in NEWS.
10574         Low probability, but still...
10575         Instead, I changed the text, slightly:
10576           -  ls -is is now consistent with ls -lis in ignoring values returned
10577           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10578         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10579         (prohibit_doubled_word_): Define.
10580         (sc_prohibit_doubled_word): New rule.
10581         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10582
10583 2011-04-10  Jim Meyering  <meyering@redhat.com>
10584
10585         maint: fix doubled-word typo in comment
10586         * m4/gethostname.m4: s/is is/it is/
10587         * m4/getdomainname.m4: Likewise.
10588
10589 2011-04-10  Jim Meyering  <meyering@redhat.com>
10590
10591         maint: remove doubled word: s/it it/it/
10592         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10593
10594 2011-04-10  Jim Meyering  <meyering@redhat.com>
10595
10596         maint.mk: remove useless semicolon and backslash
10597         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10598         semicolon and backslash.
10599
10600 2011-04-10  Bruno Haible  <bruno@clisp.org>
10601
10602         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10603         * modules/stdint-tests (Depends-on): Add wchar.
10604
10605 2011-04-10  Jim Meyering  <meyering@redhat.com>
10606
10607         maint: remove doubled words in comments, e.g., s/a a/a/
10608         * lib/strptime.c (day_of_the_week): s/the the/the/
10609         * tests/test-chown.h (test_chown): s/a a/a/
10610
10611         test-chown.h: correct a cast
10612         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10613         when the destination is a stat.st_gid.
10614
10615 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10616
10617         getaddrinfo: Fix test for sa_len member.
10618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10619         include <sys/types.h> before <sys/socket.h>.
10620
10621 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10622
10623         maint: change "can not" to "cannot"
10624         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10625         boundaries.
10626
10627 2011-04-09  Jim Meyering  <meyering@redhat.com>
10628
10629         maint: change "a a" to "a"
10630         * tests/test-lchown.h (test_lchown): s/a a/a/
10631
10632         maint.mk: prohibit \<the the\>
10633         * top/maint.mk (sc_prohibit_the_the): New rule.
10634
10635         maint: fix "the the" in comment
10636         * lib/count-one-bits.h: s/the the/the/
10637
10638         maint: change "can not" to "cannot"
10639         But do not change the occurrences in maintain.texi or in
10640         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10641         * doc/gnulib-tool.texi: s/can not/cannot/
10642         * doc/posix-functions/accept.texi (accept): Likewise.
10643         * doc/posix-functions/socket.texi (socket): Likewise.
10644         * lib/mbrtowc.c: Likewise.
10645
10646         maint.mk: prohibit use of "can not"
10647         * top/maint.mk (sc_prohibit_can_not): New rule.
10648         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10649
10650 2011-04-09  Bruno Haible  <bruno@clisp.org>
10651
10652         careadlinkat: Guard against misuse of careadlinkatcwd.
10653         * lib/careadlinkat.c: Include <stdlib.h>.
10654         (careadlinkatcwd): Check that the fd argument is as expected.
10655
10656 2011-04-09  Bruno Haible  <bruno@clisp.org>
10657
10658         careadlinkat: Use common coding style.
10659         * lib/careadlinkat.c: Move gnulib includes after system includes.
10660
10661 2011-04-09  Bruno Haible  <bruno@clisp.org>
10662
10663         careadlinkat: Clarify specification.
10664         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10665         (careadlinkatcwd): Add comment.
10666         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10667
10668 2011-04-09  Bruno Haible  <bruno@clisp.org>
10669
10670         areadlinkat: Avoid link error on many platforms.
10671         * modules/areadlinkat (Depends-on): Add areadlink.
10672
10673 2011-04-09  Bruno Haible  <bruno@clisp.org>
10674
10675         allocator, careadlinkat: Fix double-inclusion guard.
10676         * lib/allocator.h: Fix double-inclusion guard.
10677         * lib/careadlinkat.h: Likewise.
10678
10679 2011-04-09  Bruno Haible  <bruno@clisp.org>
10680
10681         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10682         * lib/relocwrapper.c: Update dependencies hierarchy.
10683         * build-aux/install-reloc: Update list of files to be compiled.
10684         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10685         lib/allocator.[hc].
10686
10687 2011-04-08  Eric Blake  <eblake@redhat.com>
10688
10689         strftime: silence gnulib-tool warning
10690         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10691
10692 2011-04-08  Bruno Haible  <bruno@clisp.org>
10693
10694         verify: Fix syntax error with GCC 4.6 in C++ mode.
10695         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10696         (HAVE_STATIC_ASSERT): New macro.
10697         (verify_true, verify): Use 'static_assert' if it is supported and
10698         '_Static_assert' is not supported.
10699
10700 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10701
10702         allocator: New module.
10703         * modules/allocator, lib/allocator.c: New files.
10704         * lib/allocator.h (stdlib_allocator): New decl.
10705         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10706         Remove.  Do not include <stdlib.h>.
10707         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10708         * modules/careadlinkat (Files): Remove lib/allocator.h.
10709         (Depends-on): Add allocator.
10710
10711         stdlib: let modules use system malloc, realloc
10712         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10713         if !_GL_USE_STDLIB_ALLOC.
10714         (malloc, realloc): Limit this change to a smaller scope.
10715
10716         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10717         (malloc, realloc): Don't #undef; no longer needed.
10718         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10719         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10720         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10721         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10722         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10723         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10724         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10725         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10726
10727         careadlinkat: rename members to avoid problem
10728         * lib/allocator.h (struct allocator): Rename members from
10729         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10730         and realloc are #define'd.  Reported by Eric Blake in
10731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10732         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10733
10734 2011-04-08  Eric Blake  <eblake@redhat.com>
10735
10736         nonblocking: reduce dependency
10737         * tests/test-nonblocking.c: Only test sockets when in use.
10738         * modules/nonblocking-tests (Depends-on): Drop socket.
10739         (Makefile.am): Link even if sockets are not present.
10740         * modules/pipe2-tests (Makefile.am): Likewise.
10741         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10742
10743         pipe2: fix O_NONBLOCK support on mingw
10744         * modules/pipe2 (Depends-on): Add nonblocking.
10745         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10746         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10747         * tests/test-nonblocking.c (main): Likewise.
10748         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10749
10750         fcntl-h: fix O_ACCMODE on cygwin
10751         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10752         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10753
10754         pipe-filter: drop O_NONBLOCK workarounds
10755         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10756         * modules/pipe-filter-ii (Depends-on): Likewise.
10757         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10758
10759         nonblocking: provide O_NONBLOCK for mingw
10760         * modules/nonblocking (Depends-on): Add open.
10761         (configure.ac): Set new witness macro.
10762         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10763         * modules/fcntl-h (Makefile.am): Substitute it.
10764         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10765         nonblocking module is in use.
10766         * lib/nonblocking.c: Adjust portability test.
10767         * lib/open.c (open): Don't let native open see gnulib flag.
10768         * tests/test-fcntl-h.c (main): Enhance test.
10769         * tests/test-open.h (test_open): Likewise.
10770         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10771
10772         careadlinkat: fix compilation error on mingw
10773         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10774         within struct allocator.
10775
10776 2011-04-06  Eric Blake  <eblake@redhat.com>
10777
10778         binary-io: relicense under LGPLv2+
10779         * modules/binary-io (License): Relax to LGPLv2+.
10780         Requested for libvirt, and required by pipe2.
10781
10782 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10783
10784         verify: use _Static_assert if available
10785         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10786         (verify_true, verify): Use it if available.  This generates better
10787         diagnostics with GCC 4.6.0 and later.
10788
10789 2011-04-05  Bruno Haible  <bruno@clisp.org>
10790
10791         Remove leftover generated .h files after config.status changed.
10792
10793         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10794         GL_GENERATE_ALLOCA_H.
10795         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10796         GL_GENERATE_ALLOCA_H evaluates to false.
10797
10798         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10799         GL_GENERATE_ARGZ_H.
10800         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10801         evaluates to false.
10802
10803         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10804         GL_GENERATE_BYTESWAP_H.
10805         * modules/byteswap (Makefile.am): Remove byteswap.h if
10806         GL_GENERATE_BYTESWAP_H evaluates to false.
10807
10808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10809         GL_GENERATE_ERRNO_H.
10810         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10811         evaluates to false.
10812
10813         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10814         GL_GENERATE_FLOAT_H.
10815         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10816         evaluates to false.
10817
10818         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10819         GL_GENERATE_FNMATCH_H.
10820         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10821         GL_GENERATE_FNMATCH_H evaluates to false.
10822
10823         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10824         GL_GENERATE_GLOB_H.
10825         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10826         evaluates to false.
10827
10828         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10829         automake conditional GL_GENERATE_ICONV_H.
10830         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10831         evaluates to false.
10832
10833         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10834         GL_GENERATE_NETINET_IN_H.
10835         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10836         GL_GENERATE_NETINET_IN_H evaluates to false.
10837
10838         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10839         conditional GL_GENERATE_PTHREAD_H.
10840         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10841         * modules/pthread (Makefile.am): Remove pthread.h if
10842         GL_GENERATE_PTHREAD_H evaluates to false.
10843
10844         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10845         GL_GENERATE_SCHED_H.
10846         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10847         evaluates to false.
10848
10849         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10850         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10851         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10852         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10853
10854         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10855         GL_GENERATE_STDARG_H.
10856         * modules/stdarg (Makefile.am): Remove stdarg.h if
10857         GL_GENERATE_STDARG_H evaluates to false.
10858
10859         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10860         GL_GENERATE_STDBOOL_H.
10861         * modules/stdbool (Makefile.am): Remove stdbool.h if
10862         GL_GENERATE_STDBOOL_H evaluates to false.
10863
10864         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10865         conditional GL_GENERATE_STDDEF_H.
10866         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10867         * modules/stddef (Makefile.am): Remove stddef.h if
10868         GL_GENERATE_STDDEF_H evaluates to false.
10869
10870         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10871         GL_GENERATE_STDINT_H.
10872         * modules/stdint (Makefile.am): Remove stdint.h if
10873         GL_GENERATE_STDINT_H evaluates to false.
10874
10875         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10876         GL_GENERATE_SYSEXITS_H.
10877         * modules/sysexits (Makefile.am): Remove sysexits.h if
10878         GL_GENERATE_SYSEXITS_H evaluates to false.
10879
10880         Reported by Karl Berry and Ralf Wildenhues.
10881
10882 2011-04-05  Bruno Haible  <bruno@clisp.org>
10883
10884         Ensure to rebuild generated .h files when config.status has changed.
10885         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10886         config.status.
10887         * modules/ctype (Makefile.am): Likewise.
10888         * modules/dirent (Makefile.am): Likewise.
10889         * modules/errno (Makefile.am): Likewise.
10890         * modules/fcntl-h (Makefile.am): Likewise.
10891         * modules/float (Makefile.am): Likewise.
10892         * modules/getopt-posix (Makefile.am): Likewise.
10893         * modules/glob (Makefile.am): Likewise.
10894         * modules/iconv-h (Makefile.am): Likewise.
10895         * modules/inttypes (Makefile.am): Likewise.
10896         * modules/langinfo (Makefile.am): Likewise.
10897         * modules/locale (Makefile.am): Likewise.
10898         * modules/math (Makefile.am): Likewise.
10899         * modules/netdb (Makefile.am): Likewise.
10900         * modules/netinet_in (Makefile.am): Likewise.
10901         * modules/poll-h (Makefile.am): Likewise.
10902         * modules/pthread (Makefile.am): Likewise.
10903         * modules/pty (Makefile.am): Likewise.
10904         * modules/sched (Makefile.am): Likewise.
10905         * modules/search (Makefile.am): Likewise.
10906         * modules/selinux-h (Makefile.am): Likewise.
10907         * modules/signal (Makefile.am): Likewise.
10908         * modules/spawn (Makefile.am): Likewise.
10909         * modules/stdarg (Makefile.am): Likewise.
10910         * modules/stdbool (Makefile.am): Likewise.
10911         * modules/stddef (Makefile.am): Likewise.
10912         * modules/stdint (Makefile.am): Likewise.
10913         * modules/stdio (Makefile.am): Likewise.
10914         * modules/stdlib (Makefile.am): Likewise.
10915         * modules/string (Makefile.am): Likewise.
10916         * modules/strings (Makefile.am): Likewise.
10917         * modules/sys_file (Makefile.am): Likewise.
10918         * modules/sys_ioctl (Makefile.am): Likewise.
10919         * modules/sys_select (Makefile.am): Likewise.
10920         * modules/sys_socket (Makefile.am): Likewise.
10921         * modules/sys_stat (Makefile.am): Likewise.
10922         * modules/sys_time (Makefile.am): Likewise.
10923         * modules/sys_times (Makefile.am): Likewise.
10924         * modules/sys_utsname (Makefile.am): Likewise.
10925         * modules/sys_wait (Makefile.am): Likewise.
10926         * modules/sysexits (Makefile.am): Likewise.
10927         * modules/termios (Makefile.am): Likewise.
10928         * modules/time (Makefile.am): Likewise.
10929         * modules/unistd (Makefile.am): Likewise.
10930         * modules/wchar (Makefile.am): Likewise.
10931         * modules/wctype-h (Makefile.am): Likewise.
10932         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10933
10934 2011-04-05  Bruno Haible  <bruno@clisp.org>
10935
10936         pipe2: Relicense under LGPLv2+.
10937         * modules/pipe2 (License): Change to LGPLv2+.
10938         Requested by Eric Blake, for libvirt.
10939
10940 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10941
10942         bootstrap: compute gnulib_extra_files after updating build_aux
10943         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10944         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10945
10946 2011-04-05  Eric Blake  <eblake@redhat.com>
10947
10948         bootstrap: preserve git whitelist item sorting
10949         * build-aux/bootstrap (sort_patterns): New function.
10950         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10951
10952 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10953
10954         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10955         sc_space_tab check.
10956
10957 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10958
10959         areadlink, areadlinkat: rewrite in terms of careadlinkat
10960         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10961         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10962         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10963         (malloc, realloc): Remove #undefs.
10964         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10965         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10966         readlink, ssize_t, stdint, unistd.
10967         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10968         areadlink, stdint.
10969
10970         careadlinkat: new module
10971         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10972         * modules/careadlinkat: New files, written by me with
10973         a review and feedback from Ben Pfaff in
10974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10975
10976 2011-04-01  Bruno Haible  <bruno@clisp.org>
10977
10978         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10979         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10980         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10981         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10982         Reported by Bruce Korb <bruce.korb@gmail.com>.
10983
10984 2011-04-01  Bruno Haible  <bruno@clisp.org>
10985
10986         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10987         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10988         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10989         * modules/wcpcpy (Depends-on): Add extensions.
10990         * modules/wcpncpy (Depends-on): Likewise.
10991         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10992         systems.
10993         * doc/posix-functions/wcpncpy.texi: Likewise.
10994         * doc/posix-functions/wcwidth.texi: Likewise.
10995
10996 2011-03-31  Eric Blake  <eblake@redhat.com>
10997
10998         nonblocking: fix mingw test failures
10999         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11000         non-blocking flag on regular file.
11001         (get_nonblocking_flag): Set errno on invalid fd.
11002         * tests/test-nonblocking.c (main): Avoid test failure on
11003         directories if fchdir is not active.
11004         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11005
11006 2011-03-31  Bruno Haible  <bruno@clisp.org>
11007
11008         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11009         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11010         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11011         Reported by Simon Josefsson <simon@josefsson.org>.
11012
11013 2011-03-31  Bruno Haible  <bruno@clisp.org>
11014         and Eric Blake  <eblake@redhat.com>
11015
11016         nonblocking: new module
11017         * modules/nonblocking: New module.
11018         * modules/nonblocking-tests: Likewise.
11019         * lib/nonblocking.h: New file.
11020         * lib/nonblocking.c: Likewise.
11021         * tests/test-nonblocking.c: New test.
11022         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11023
11024 2011-03-30  Bruno Haible  <bruno@clisp.org>
11025
11026         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11027         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11028         instead of 'printf' format for GCC >= 4.4.
11029         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11030         (fprintf, printf, vfprintf, vprintf): Declare with
11031         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11032         the system's vfprintf() function.
11033         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11034
11035 2011-03-30  Eric Blake  <eblake@redhat.com>
11036
11037         passfd: fix scoping bug
11038         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11039         before sendmsg/recvmsg.
11040
11041         passfd: standardize coding conventions
11042         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11043         can be learned at compile time.
11044         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11045         ifdefs.
11046         (sendfd, recvfd): Follow gnulib code conventions.
11047
11048         passfd: fix incorrect sendmsg arguments
11049         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11050         incorrect msg_controllen value.
11051         * modules/passfd-tests (Depends-on): Check for alarm.
11052         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11053         Reported by Bastien ROUCARIES.
11054
11055 2011-03-30  Bruno Haible  <bruno@clisp.org>
11056
11057         c-strcasestr: Relicense under LGPLv2+.
11058         * modules/c-strcasestr (License): Change to LGPLv2+.
11059         Requested by Eric Blake, for libvirt.
11060
11061 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11062
11063         * users.txt: Add libidn2.  Fix libtasn1 link.
11064
11065 2011-03-30  Jim Meyering  <meyering@redhat.com>
11066
11067         tests: readlink* ("",... fails with EINVAL on newer kernels
11068         readlink and readlinkat have typically failed with ENOENT for
11069         the invalid, empty file name,  "".  However, with the advent
11070         of linux-2.6.39, they fail with EINVAL.
11071         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11072         when operating on the empty file name.
11073         * tests/test-readlink.h (test_readlink): Likewise.
11074
11075 2011-03-29  Bruno Haible  <bruno@clisp.org>
11076
11077         Relicense some modules under LGPLv2+, for libidn2.
11078         * modules/array-mergesort (License): Change to LGPLv2+.
11079         * modules/c-strcaseeq (License): Likewise.
11080         * modules/striconveh (License): Likewise.
11081         * modules/striconveha (License): Likewise.
11082         * modules/uniconv/base (License): Likewise.
11083         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11084         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11085         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11086         * modules/unictype/base (License): Likewise.
11087         * modules/unictype/bidiclass-of (License): Likewise.
11088         * modules/unictype/category-M (License): Likewise.
11089         * modules/unictype/category-none (License): Likewise.
11090         * modules/unictype/category-of (License): Likewise.
11091         * modules/unictype/category-test (License): Likewise.
11092         * modules/unictype/category-test-withtable (License): Likewise.
11093         * modules/unictype/combining-class (License): Likewise.
11094         * modules/unictype/joiningtype-of (License): Likewise.
11095         * modules/unictype/scripts (License): Likewise.
11096         * modules/uninorm/base (License): Likewise.
11097         * modules/uninorm/canonical-decomposition (License): Likewise.
11098         * modules/uninorm/composition (License): Likewise.
11099         * modules/uninorm/decompose-internal (License): Likewise.
11100         * modules/uninorm/decomposition-table (License): Likewise.
11101         * modules/uninorm/nfc (License): Likewise.
11102         * modules/uninorm/nfd (License): Likewise.
11103         * modules/uninorm/u32-normalize (License): Likewise.
11104         * modules/unistr/base (License): Likewise.
11105         * modules/unistr/u32-cpy (License): Likewise.
11106         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11107         * modules/unistr/u32-to-u8 (License): Likewise.
11108         * modules/unistr/u32-uctomb (License): Likewise.
11109         * modules/unistr/u8-check (License): Likewise.
11110         * modules/unistr/u8-mblen (License): Likewise.
11111         * modules/unistr/u8-mbtouc (License): Likewise.
11112         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11113         * modules/unistr/u8-mbtoucr (License): Likewise.
11114         * modules/unistr/u8-prev (License): Likewise.
11115         * modules/unistr/u8-strlen (License): Likewise.
11116         * modules/unistr/u8-to-u32 (License): Likewise.
11117         * modules/unistr/u8-uctomb (License): Likewise.
11118         * modules/unitypes (License): Likewise.
11119         Requested by Simon Josefsson.
11120
11121 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11122
11123         lib-symbol-visibility: Add a notice.
11124         * modules/lib-symbol-visibility (Notice): New field.
11125
11126 2011-03-29  Bruno Haible  <bruno@clisp.org>
11127
11128         getaddrinfo: Doc fix.
11129         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11130         section "fixed in Gnulib".
11131
11132 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11133
11134         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11135         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11136
11137 2011-03-26  Bruno Haible  <bruno@clisp.org>
11138
11139         unictype/property-byname: Reduce the number of load-time relocations.
11140         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11141         (UC_PROPERTY_INDEX_*): New enumeration values.
11142         (uc_property_byname): Convert an index from the lookup table to an
11143         uc_property_t.
11144         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11145         values.
11146
11147 2011-03-26  Bruno Haible  <bruno@clisp.org>
11148
11149         unictype/property-byname: Allow omitted word separators and aliases.
11150         * lib/unictype/pr_byname.gperf: Add property names without word
11151         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11152         for 'space'.
11153
11154 2011-03-26  Bruno Haible  <bruno@clisp.org>
11155
11156         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11157         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11158         also hyphens to space.
11159         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11160         without spaces.
11161         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11162
11163 2011-03-26  Bruno Haible  <bruno@clisp.org>
11164
11165         unictype/joiningtype-byname: Recognize long names as well.
11166         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11167         a long name.
11168         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11169         unictype/joiningtype_byname.h.
11170         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11171         * lib/unictype/joiningtype_byname.gperf: New file.
11172         * modules/unictype/joiningtype-byname (Files): Add
11173         lib/unictype/joiningtype_byname.gperf.
11174         (Depends-on): Add gperf.
11175         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11176         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11177         long names.
11178
11179         Tests for module 'unictype/joiningtype-longname'.
11180         * modules/unictype/joiningtype-longname-tests: New file.
11181         * tests/unictype/test-joiningtype_longname.c: New file.
11182
11183         New module 'unictype/joiningtype-longname'.
11184         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11185         * lib/unictype/joiningtype_longname.c: New file.
11186         * modules/unictype/joiningtype-longname: New file.
11187         * modules/unictype/joiningtype-all (Depends-on): Add
11188         unictype/joiningtype-longname.
11189
11190 2011-03-26  Bruno Haible  <bruno@clisp.org>
11191
11192         unictype/bidiclass-byname: Recognize long names as well.
11193         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11194         name.
11195         * lib/unictype/bidi_byname.c: Include <string.h>,
11196         unictype/bidi_byname.h.
11197         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11198         * lib/unictype/bidi_byname.gperf: New file.
11199         * modules/unictype/bidiclass-byname (Files): Add
11200         lib/unictype/bidi_byname.gperf.
11201         (Depends-on): Add gperf.
11202         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11203         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11204         long names.
11205
11206         Tests for module 'unictype/bidiclass-longname'.
11207         * modules/unictype/bidiclass-longname-tests: New file.
11208         * tests/unictype/test-bidi_longname.c: New file.
11209
11210         New module 'unictype/bidiclass-longname'.
11211         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11212         * lib/unictype/bidi_longname.c: New file.
11213         * modules/unictype/bidiclass-longname: New file.
11214         * modules/unictype/bidiclass-all (Depends-on): Add
11215         unictype/bidiclass-longname.
11216
11217 2011-03-26  Bruno Haible  <bruno@clisp.org>
11218
11219         unictype/bidi*: Rename modules.
11220         * modules/unictype/bidiclass-all: Renamed from
11221         modules/unictype/bidicategory-all.
11222         * modules/unictype/bidiclass-name: Renamed from
11223         modules/unictype/bidiclass-name.
11224         (Description): Update.
11225         * modules/unictype/bidiclass-name-tests: Renamed from
11226         modules/unictype/bidicategory-name-tests.
11227         * modules/unictype/bidiclass-byname: Renamed from
11228         modules/unictype/bidicategory-byname.
11229         (Description): Update.
11230         * modules/unictype/bidiclass-byname-tests: Renamed from
11231         modules/unictype/bidicategory-byname-tests.
11232         * modules/unictype/bidiclass-of: Renamed from
11233         modules/unictype/bidicategory-of.
11234         (Description): Update.
11235         * modules/unictype/bidiclass-of-tests: Renamed from
11236         modules/unictype/bidicategory-of-tests.
11237         * modules/unictype/bidiclass-test: Renamed from
11238         modules/unictype/bidicategory-test.
11239         (Description): Update.
11240         * modules/unictype/bidiclass-test-tests: Renamed from
11241         modules/unictype/bidicategory-test-tests.
11242         * modules/unictype/bidicategory-all: New file, a simple redirection.
11243         * modules/unictype/bidicategory-name: Likewise.
11244         * modules/unictype/bidicategory-byname: Likewise.
11245         * modules/unictype/bidicategory-of: Likewise.
11246         * modules/unictype/bidicategory-test: Likewise.
11247         * modules/unictype/property-bidi-* (Dependencies): Update.
11248         * lib/unictype/bidi_*.c: Update comment.
11249
11250 2011-03-26  Bruno Haible  <bruno@clisp.org>
11251
11252         unictype/bidi*: Rename functions, part 2.
11253         * modules/unictype/bidicategory-name (configure.ac): Update required
11254         libunistring version.
11255         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11256
11257 2011-03-25  Bruno Haible  <bruno@clisp.org>
11258
11259         New module 'unictype/combining-class-all'.
11260         * modules/unictype/combining-class-all: New file.
11261
11262         Tests for module 'unictype/combining-class-byname'.
11263         * modules/unictype/combining-class-byname-tests: New file.
11264         * tests/unictype/test-combiningclass_byname.c: New file.
11265
11266         New module 'unictype/combining-class-byname'.
11267         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11268         * lib/unictype/combiningclass_byname.c: New file.
11269         * lib/unictype/combiningclass_byname.gperf: New file.
11270         * modules/unictype/combining-class-byname: New file.
11271
11272         Tests for module 'unictype/combining-class-longname'.
11273         * modules/unictype/combining-class-longname-tests: New file.
11274         * tests/unictype/test-combiningclass_longname.c: New file.
11275
11276         New module 'unictype/combining-class-longname'.
11277         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11278         * lib/unictype/combiningclass_longname.c: New file.
11279         * modules/unictype/combining-class-longname: New file.
11280
11281         Tests for module 'unictype/combining-class-name'.
11282         * modules/unictype/combining-class-name-tests: New file.
11283         * tests/unictype/test-combiningclass_name.c: New file.
11284
11285         New module 'unictype/combining-class-name'.
11286         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11287         * lib/unictype/combiningclass_name.c: New file.
11288         * modules/unictype/combining-class-name: New file.
11289
11290 2011-03-25  Bruno Haible  <bruno@clisp.org>
11291
11292         unictype/combining-class: Rename source files.
11293         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11294         of unictype/combining.h.
11295         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11296         Update.
11297         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11298         * modules/unictype/combining-class (Description): Fix.
11299         (Files, Makefile.am): Update.
11300         * tests/unictype/test-combiningclass.c: Renamed from
11301         tests/unictype/test-combining.c.
11302         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11303
11304 2011-03-25  Bruno Haible  <bruno@clisp.org>
11305
11306         unictype: Update list of canonical combining classes.
11307         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11308
11309 2011-03-25  Bruno Haible  <bruno@clisp.org>
11310
11311         unictype/category-byname: Recognize long names as well.
11312         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11313         a long name.
11314         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11315         unictype/categ_byname.h.
11316         (UC_CATEGORY_INDEX_*): New enumeration values.
11317         (uc_general_category_byname): Use uc_general_category_lookup and
11318         convert from index to value.
11319         * lib/unictype/categ_byname.gperf: New file.
11320         * modules/unictype/category-byname (Files): Add
11321         lib/unictype/categ_byname.gperf.
11322         (Depends-on): Add gperf.
11323         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11324         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11325         long names.
11326
11327         Tests for module 'unictype/category-longname'.
11328         * modules/unictype/category-longname-tests: New file.
11329         * tests/unictype/test-categ_longname.c: New file.
11330
11331         New module 'unictype/category-longname'.
11332         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11333         * lib/unictype/categ_longname.c: New file.
11334         * modules/unictype/category-longname: New file.
11335         * modules/unictype/category-all (Depends-on): Add it.
11336
11337 2011-03-25  Bruno Haible  <bruno@clisp.org>
11338
11339         Tests for module 'unictype/category-LC'.
11340         * modules/unictype/category-LC-tests: New file.
11341         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11342
11343         New module 'unictype/category-LC'.
11344         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11345         (UC_CATEGORY_LC): New declaration.
11346         (UC_CASED_LETTER): New macro.
11347         * lib/gen-uni-tables.c (is_category_LC): New function.
11348         (output_categories): Also handle category LC.
11349         (UC_CATEGORY_MASK_LC): New enumeration value.
11350         (general_category_byname): Also handle category LC.
11351         * lib/unictype/categ_LC.c: New file.
11352         * lib/unictype/categ_LC.h: New file, automatically generated.
11353         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11354         category LC.
11355         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11356         * modules/unictype/category-LC: New file.
11357         * modules/unictype/category-byname (Depends-on): Add
11358         unictype/category-LC.
11359         * modules/unictype/category-all (Depends-on): Likewise.
11360
11361 2011-03-25  Eric Blake  <eblake@redhat.com>
11362
11363         xmalloc: revert yesterday's regression
11364         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11365         realloc's underlying behavior (allowing allocation of zero-size
11366         objects, especially if malloc-gnu is also in use).
11367
11368 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11369
11370         maint.mk: add missing version to VC-tag
11371         * top/maint.mk: git tag was missing actual tag name; add it.
11372
11373         valgrind: do leak checking, and exit with code 1 on error (not 0)
11374         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11375         to VALGRIND.
11376
11377 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11378
11379         posix-modules: say what it does.
11380         * posix-modules: Add a line to the --help output saying what it does.
11381
11382 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11383
11384         xmalloc: Do not leak if underlying realloc is C99 compatible.
11385         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11386         This avoids a leak on C99-based systems.  See
11387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11388
11389 2011-03-24  Eric Blake  <eblake@redhat.com>
11390
11391         realloc: document portability problem
11392         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11393         passing 0 size to realloc.
11394
11395 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11396
11397         doc: update users.txt
11398         * users.txt: Add cvsps, tmpwatch
11399
11400 2011-03-23  Matt Rice  <ratmice@gmail.com>
11401
11402         doc: update users.txt
11403         * users.txt: Add gdb.
11404
11405 2011-03-23  Jim Meyering  <meyering@redhat.com>
11406
11407         doc: update users.txt
11408         Looking through matches up to the following URL (there are still
11409         several more pages), I found several projects that use gnulib:
11410         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11411         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11412         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11413
11414 2011-03-22  Bruno Haible  <bruno@clisp.org>
11415
11416         unictype/bidi*: Rename functions.
11417         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11418         uc_bidi_class, uc_is_bidi_class): New declarations.
11419         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11420         uc_bidi_category_byname.
11421         (uc_bidi_category_byname): New function.
11422         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11423         u_bidi_category_name.
11424         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11425         (uc_bidi_category_name): New function.
11426         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11427         uc_bidi_category.
11428         (uc_bidi_category): New function.
11429         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11430         uc_is_bidi_category. Invoke uc_bidi_class.
11431         (uc_is_bidi_category): New function.
11432         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11433         instead of uc_bidi_category_byname.
11434         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11435         instead of uc_bidi_category_name.
11436         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11437         uc_bidi_category.
11438         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11439         instead of uc_is_bidi_category.
11440
11441 2011-03-21  Bruno Haible  <bruno@clisp.org>
11442
11443         New module 'unictype/joininggroup-all'.
11444         * modules/unictype/joininggroup-all: New file.
11445
11446         Tests for module 'unictype/joininggroup-of'.
11447         * modules/unictype/joininggroup-of-tests: New file.
11448         * tests/unictype/test-joininggroup_of.c: New file.
11449         * tests/unictype/test-joininggroup_of.h: New file, automatically
11450         generated by gen-uni-tables.
11451
11452         New module 'unictype/joininggroup-of'.
11453         * modules/unictype/joininggroup-of: New file.
11454         * lib/unictype/joininggroup_of.c: New file.
11455         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11456         gen-uni-tables.
11457
11458         Tests for module 'unictype/joininggroup-byname'.
11459         * modules/unictype/joininggroup-byname-tests: New file.
11460         * tests/unictype/test-joininggroup_byname.c: New file.
11461
11462         New module 'unictype/joininggroup-byname'.
11463         * modules/unictype/joininggroup-byname: New file.
11464         * lib/unictype/joininggroup_byname.c: New file.
11465         * lib/unictype/joininggroup_byname.gperf: New file.
11466
11467         Tests for module 'unictype/joininggroup-name'.
11468         * modules/unictype/joininggroup-name-tests: New file.
11469         * tests/unictype/test-joininggroup_name.c: New file.
11470
11471         New module 'unictype/joininggroup-name'.
11472         * modules/unictype/joininggroup-name: New file.
11473         * lib/unictype/joininggroup_name.c: New file.
11474         * lib/unictype/joininggroup_name.h: New file.
11475
11476         New module 'unictype/joiningtype-all'.
11477         * modules/unictype/joiningtype-all: New file.
11478
11479         Tests for module 'unictype/joiningtype-of'.
11480         * modules/unictype/joiningtype-of-tests: New file.
11481         * tests/unictype/test-joiningtype_of.c: New file.
11482         * tests/unictype/test-joiningtype_of.h: New file, automatically
11483         generated by gen-uni-tables.
11484
11485         New module 'unictype/joiningtype-of'.
11486         * modules/unictype/joiningtype-of: New file.
11487         * lib/unictype/joiningtype_of.c: New file.
11488         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11489         gen-uni-tables.
11490
11491         Tests for module 'unictype/joiningtype-byname'.
11492         * modules/unictype/joiningtype-byname-tests: New file.
11493         * tests/unictype/test-joiningtype_byname.c: New file.
11494
11495         New module 'unictype/joiningtype-byname'.
11496         * modules/unictype/joiningtype-byname: New file.
11497         * lib/unictype/joiningtype_byname.c: New file.
11498
11499         Tests for module 'unictype/joiningtype-name'.
11500         * modules/unictype/joiningtype-name-tests: New file.
11501         * tests/unictype/test-joiningtype_name.c: New file.
11502
11503         New module 'unictype/joiningtype-name'.
11504         * modules/unictype/joiningtype-name: New file.
11505         * lib/unictype/joiningtype_name.c: New file.
11506
11507         unictype: Add support for Arabic shaping properties.
11508         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11509         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11510         declarations.
11511         (UC_JOINING_GROUP_*): New enumeration values.
11512         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11513         declarations.
11514         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11515         (unicode_joining_type): New variable.
11516         (UC_JOINING_GROUP_*): New enumeration values.
11517         (unicode_joining_group): New variable.
11518         (fill_arabicshaping, joining_type_as_c_identifier,
11519         output_joining_type_test, output_joining_type,
11520         joining_group_as_c_identifier, output_joining_group_test,
11521         output_joining_group): New functions.
11522         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11523         fill_arabicshaping and output_joining_type_test, output_joining_type,
11524         output_joining_group_test, output_joining_group.
11525         Reported by Simon Josefsson.
11526
11527 2011-03-21  Jim Meyering  <meyering@redhat.com>
11528
11529         strftime: fix a bug in yesterday's change
11530         * lib/strftime.c (add): Accommodate width's initial value of -1.
11531         Otherwise, nstrftime would copy uninitialized data into
11532         the result buffer.
11533
11534 2011-03-21  Jim Meyering  <meyering@redhat.com>
11535
11536         tests: add strftime-tests module
11537         * tests/test-strftime.c: New file.
11538         * modules/strftime-tests: New module.
11539
11540 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11541
11542         strftime: don't assume a byte count fits in 'int'
11543         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11544         found this problem by static analysis, using gcc -Wstrict-overflow
11545         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11546         on an integer overflow having undefined behavior, but it turns out
11547         that the argument is a size, which might not fit in 'int' anyway,
11548
11549 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11550
11551         stdio: don't require ignore_value around fwrite
11552
11553         This patch works around libc bug 11959
11554         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11555         Without this patch, applications must often write
11556         ignore_value (fwrite (...)) even though the ignore_value is
11557         not helpful here.  It's common to write many objects, using
11558         fwrite/printf/etc., and then use ferror to detect output error.
11559
11560         I considered making this patch optional, but decided against it,
11561         because libc is obviously being inconsistent here: there is no
11562         reason libc should insist that user code must inspect fwrite
11563         return's value without also insisting that it inspect printf's,
11564         putchar's, etc.  If user code wants to have a strict style where
11565         all these functions' values are checked (so that ferror need not
11566         be checked), we could add support for that style in a new gnulib
11567         module, but in the meantime it's better to be consistent and to
11568         support common usage.
11569
11570         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11571         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11572         that we are compiling in checking mode, and if not C++, and
11573         if not already wrapping fwrite for some other reason.
11574         (fwrite): #define to rpl_fwrite if the latter is defined.
11575
11576 2011-03-20  Bruno Haible  <bruno@clisp.org>
11577
11578         verror: Fix compilation error introduced on 2011-02-13.
11579         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11580         instead of __attribute__.
11581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11582
11583 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11584             Bruno Haible  <bruno@clisp.org>
11585
11586         socklen: do not depend on sys_socket
11587         While trying to modify Emacs to use gnulib's socklen module,
11588         I discovered a circular dependency: socklen depends on sys_socket
11589         and vice versa.  Emacs can use socklen, but it does not need
11590         sys_socket because it has its own substitute for sys/socket.h.
11591         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11592         gl_TYPE_SOCKLEN_T.
11593         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11594         gl_PREREQ_SYS_H_SOCKET.
11595         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11596         gl_PREREQ_SYS_H_SOCKET.
11597         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11598         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11599         * modules/socklen (Depends-on): Do not depend on sys_socket.
11600         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11601
11602 2011-03-20  Jim Meyering  <meyering@redhat.com>
11603
11604         maint.mk: sort file names *after* new transformation
11605         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11606         prefix would have led to an unwarranted failure in GNU parted.
11607         Sort after that transformation.
11608
11609 2011-03-19  Jim Meyering  <meyering@redhat.com>
11610
11611         maint.mk: fix po-file syntax-check rule
11612         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11613         Patch by Bruno Haible.
11614
11615 2011-03-19  Bruno Haible  <bruno@clisp.org>
11616
11617         socklen: Update comment.
11618         * m4/socklen.m4: Update comment about platforms.
11619
11620 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11621             Bruno Haible  <bruno@clisp.org>
11622
11623         inet_ntop, inet_pton: Simplify.
11624         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11625         documented to provide socklen_t and we already depend on sys_socket.
11626         * modules/inet_pton (Depends-on): Likewise.
11627         * lib/arpa_inet.in.h: Adjust comment.
11628
11629 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11630             Bruno Haible  <bruno@clisp.org>
11631
11632         netdb: Simplify.
11633         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11634         documented to provide socklen_t and we already depend on sys_socket.
11635         * lib/netdb.in.h: Adjust comment.
11636
11637 2011-03-19  Bruno Haible  <bruno@clisp.org>
11638
11639         sys_socket, netdb: Document problem with socklen_t.
11640         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11641         platforms.
11642         * doc/posix-headers/netdb.texi: Likewise.
11643
11644 2011-03-18  Eric Blake  <eblake@redhat.com>
11645
11646         maint.mk: let po check work in VPATH build
11647         * top/maint.mk (po_file): Allow cfg.mk override.
11648         (sc_po_check): Allow VPATH use.
11649         Reported by Jiri Denemark.
11650
11651 2011-03-16  Jim Meyering  <meyering@redhat.com>
11652
11653         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11654         Before, you would have had to create one .x-sc_ file per rule in order
11655         to exempt offending files.  Now, you may instead use a Make variable --
11656         usually defined in cfg.mk -- whose name identifies the affected rule.
11657         * top/maint.mk (_sc_excl): Define.
11658         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11659         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11660
11661 2011-03-13  Bruno Haible  <bruno@clisp.org>
11662
11663         ignore-value tests: Avoid warnings.
11664         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11665         empty for gcc < 3.4.
11666
11667 2011-03-13  Bruno Haible  <bruno@clisp.org>
11668
11669         passfd: Fix link error on Solaris.
11670         * modules/passfd (Description): Correct.
11671         (Depends-on): Add socketlib.
11672         (Link): New section.
11673         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11674
11675 2011-03-13  Bruno Haible  <bruno@clisp.org>
11676
11677         passfd: Fix link error on AIX 5.2.
11678         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11679
11680 2011-03-13  Bruno Haible  <bruno@clisp.org>
11681
11682         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11683         * lib/sys_socket.in.h: Include <stddef.h>.
11684         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11685         CMSG_FIRSTHDR. Remove unused variable.
11686
11687 2011-03-13  Bruno Haible  <bruno@clisp.org>
11688
11689         passfd: Fix compilation error on OpenBSD.
11690         * lib/passfd.c: Include <sys/uio.h>.
11691
11692 2011-03-13  Bruno Haible  <bruno@clisp.org>
11693
11694         passfd test: Fix warnings.
11695         * tests/test-passfd.c: Include <sys/wait.h>.
11696         (main): Fix typo.
11697
11698 2011-03-13  Bruno Haible  <bruno@clisp.org>
11699
11700         passfd module, part 4, tweaks.
11701         * tests/test-passfd.c: Reorder includes.
11702         (main): Fix perror and printf calls.
11703
11704 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11705
11706         passfd module, part 4.
11707         * modules/passfd-tests: New file.
11708         * tests/test-passfd.c: New file.
11709
11710 2011-03-13  Jim Meyering  <meyering@redhat.com>
11711
11712         Makefile: rely on GNU make; derive syntax-check rule names
11713         Rather than requiring that each sc_ rule be listed as a dependent
11714         of "check", use features of GNU make to derive the list.
11715         * Makefile (syntax-check-rules): Define.
11716         (check): Depend on the new variable, not the hard-coded list.
11717
11718 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11719             Bruno Haible  <bruno@clisp.org>
11720
11721         passfd module, part 3.
11722         * lib/passfd.h (recvfd): Add a flags argument.
11723         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11724         (recvfd): Add a flags argument.
11725         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11726         exists.
11727         * modules/passfd (Depends-on): Add cloexec.
11728         Suggested by Eric Blake.
11729
11730 2011-03-13  Bruno Haible  <bruno@clisp.org>
11731
11732         passfd module, part 2, tweaks.
11733         * modules/passfd (Files): Reorder.
11734         (Depends-on): Remove errno.
11735         (Include): Remove <sys/socket.h>, <sys/un.h>.
11736         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11737         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11738         specification header. Include <sys/socket.h> always. Don't include
11739         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11740         (sendfd): Clarify that it sets errno when it fails.
11741         (recvfd): Fix specification.
11742
11743 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11744
11745         passfd module, part 2.
11746         * modules/passfd: New file.
11747         * lib/passfd.h: New file.
11748         * lib/passfd.c: New file.
11749
11750 2011-03-12  Bruno Haible  <bruno@clisp.org>
11751
11752         wcswidth, mbswidth: Avoid integer overflow.
11753         * lib/wcswidth.c: Include <limits.h>.
11754         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11755         * lib/mbswidth.c: Include <limits.h>.
11756         (mbsnwidth): Avoid 'int' overflow.
11757         Reported by Jim Meyering.
11758
11759 2011-03-12  Bruno Haible  <bruno@clisp.org>
11760
11761         futimens, utimensat: Avoid endless recursion on Solaris 10.
11762         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11763         Solaris.
11764         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11765         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11766
11767 2011-03-11  Jim Meyering  <meyering@redhat.com>
11768
11769         maint.mk: relax a regexp to accommodate other formatting styles
11770         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11771         between "ngettext" and the following "(".
11772
11773 2011-03-11  Pádraig Brady <P@draigBrady.com>
11774
11775         maint.mk: suppress a false positive warning
11776         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11777         diagnostics are marked with ngettext.
11778
11779 2011-03-10  Eric Blake  <eblake@redhat.com>
11780
11781         wchar: add explicit dependencies, for Tru64
11782         * modules/mbmemcasecoll (Depends-on): Add wchar.
11783         * modules/mbtowc (Depends-on): Likewise.
11784         * modules/vasnprintf (Depends-on): Likewise.
11785         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11786         * modules/wctomb (Depends-on): Likewise.
11787         Reported by Peter O'Gorman.
11788
11789 2011-03-08  Bruno Haible  <bruno@clisp.org>
11790
11791         passfd module, part 1, tweaks.
11792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11793         Improve indentation. Improve AC_MSG_CHECKING messages.
11794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11795         gl_SOCKET_FAMILIES.
11796
11797 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11798
11799         passfd module, part 1.
11800         * m4/afunix.m4: New file.
11801         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11802         sockets.
11803
11804 2011-03-08  Bruno Haible  <bruno@clisp.org>
11805
11806         regex-quote: New API.
11807         * lib/regex-quote.h: Include <stdbool.h>.
11808         (struct regex_quote_spec): New type.
11809         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11810         New declarations.
11811         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11812         'const struct regex_quote_spec *' argument.
11813         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11814         (pcre_special): New constant.
11815         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11816         New functions.
11817         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11818         'const struct regex_quote_spec *' argument.
11819         * modules/regex-quote (Depends-on): Add stdbool.
11820         * tests/test-regex-quote.c (check): Update for new API. Add test for
11821         anchored results.
11822         * NEWS: Mention the API change.
11823         Reported by Reuben Thomas and Eric Blake.
11824
11825 2011-03-06  Bruno Haible  <bruno@clisp.org>
11826
11827         regex-quote: Fix creation of POSIX extended regular expressions.
11828         * lib/regex-quote.c (ere_special): Add grouping and alternation
11829         operators.
11830
11831 2011-03-05  Bruno Haible  <bruno@clisp.org>
11832
11833         doc: Improve doc regarding autopoint vs. gnulib.
11834         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11835         disable autopoint while running autoreconf.
11836         Suggested by Ralf Wildenhues.
11837
11838 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11839
11840         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11841         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11842
11843 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11844
11845         parse-duration: remove xalloc.h dependency
11846         * lib/parse-duration.c (parse_period): handle NULL return from
11847         strdup instead of calling xstrdup().
11848         * modules/parse-duration: remove "xalloc" dependency
11849
11850 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11851
11852         bootstrap: honor m4_base when running aclocal
11853         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11854
11855 2011-03-02  Jim Meyering  <meyering@redhat.com>
11856
11857         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11858         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11859         on request from Matt Booth.
11860
11861 2011-03-01  Eric Blake  <eblake@redhat.com>
11862
11863         test-link: work on Hurd
11864         * tests/test-link.h (test_link): Hurd rejects linking directories
11865         with EISDIR instead of the POSIX-mandated EPERM.
11866
11867 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11868
11869         stdio: simplify by moving files to printf-posix, sigpipe
11870         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11871         since this symbol is needed only if printf is replaced.
11872         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11873         Require gl_ASM_SYMBOL_PREFIX.
11874         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11875         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11876         (Depends-on): Add 'raise'.
11877         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11878         * modules/stdio (Files): Remove lib/stdio-write.c,
11879         m4/asm-underscore.m4.
11880         (Depends-on): Remove 'raise'.
11881
11882         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11883         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11884         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11885         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11886
11887 2011-02-28  Bruno Haible  <bruno@clisp.org>
11888
11889         localcharset: Assume ANSI C behaviour of free().
11890         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11891         calling free().
11892         Suggested by Simon Josefsson <simon@josefsson.org>.
11893
11894 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11895             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11896             Bruno Haible  <bruno@clisp.org>  (tiny change)
11897
11898         On Cygwin, use /proc file system instead of win32 API.
11899         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11900         Win32 file names.
11901         (DllMain): Simplify by removing Cygwin specific code.
11902         (find_shared_library_fullname): Use Linux specific implementation also
11903         for Cygwin.
11904         (get_shared_library_fullname): Update accordingly.
11905         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11906         Win32 file names.
11907         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11908         Cygwin specific code.
11909
11910 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11911             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11912
11913         Fix OpenMP flag detection for various Fortran compilers.
11914         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11915         OpenMP-conditional compilation construct, to force compile
11916         failure with missing OpenMP flag.
11917         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11918
11919 2011-02-25  Eric Blake  <eblake@redhat.com>
11920
11921         strstr: expand test coverage
11922         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11923         compilation.
11924         * tests/test-memmem.c (main): Duplicate tests.
11925         * tests/test-strcasestr.c (main): Likewise.
11926         * tests/test-c-strcasestr.c (main): Likewise.
11927
11928 2011-02-25  Jim Meyering  <meyering@redhat.com>
11929
11930         maint.mk: detect missing-NL-at-EOF, too
11931         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11932         it also detects when a file lacks a newline at EOF.
11933         (require_exactly_one_NL_at_EOF_): Renamed from
11934         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11935         since people may well have .x-sc_... file names tied to the
11936         existing name.  Suggested by Eric Blake.
11937
11938 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11939
11940         dirname: move m4/dos.m4 functionality into lib/dosname.h
11941
11942         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11943         extracts symbols from it, puts them into config.h; but it's much
11944         easier to use the symbols directly.  filename.h already does this,
11945         but it disagrees with dos.m4 in some respects.  This patch
11946         introduces a different include file dosname.h that packages up
11947         dos.m4, and then later we can work on merging filename.h and
11948         dosname.h.  Applications that need only the easy-to-configure
11949         symbols should consider including dosname.h rather than dirname.h.
11950         * NEWS: Mention incompatible changes.
11951         * m4/dos.m4: Remove.
11952         * lib/dosname.h, modules/dosname: New files.
11953         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11954         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11955         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11956         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11957         Include dosname.h, not dirname.h.
11958         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11959         Include dosname.h, for definitions of symbols like ISSLASH
11960         that used to be in config.h.
11961         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11963         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11964         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11965         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11966         * modules/rmdir (Files): Likewise.
11967         * modules/stat (Files): Likewise.
11968         * modules/unlink (Files): Likewise.
11969         * modules/dirname-lgpl (Depends-on): Add dosname.
11970         * modules/lstat (Depends-on): Likewise.
11971         * modules/openat (Depends-on): Likewise.
11972         * modules/rmdir (Depends-on): Likewise.
11973         * modules/savewd (Depends-on): Likewise.
11974         * modules/stat (Depends-on): Likewise.
11975         * modules/unlink (Depends-on): Likewise.
11976         * modules/openat (Depends-on): Remove dirname-lgpl.
11977         * modules/savewd (Depends-on): Likewise.
11978         * tests/test-dirname.c: Do not use removed symbols like
11979         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11980         the remaining symbols, e.g., ISSLASH ('\\').
11981
11982 2011-02-25  Eric Blake  <eblake@redhat.com>
11983
11984         strstr: revert patches that introduced bug and pessimization
11985         * lib/str-two-way.h: Add another reference.
11986         (two_way_short_needle, two_way_long_needle): Revert changes from
11987         2011-02-24; they pessimize search speed.
11988         (critical_factorization): Partially revert changes from
11989         2010-06-22; they violate the requirement that the left half of the
11990         needle be smaller than the period of the needle.
11991
11992 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11993
11994         filenamecat: remove unnecessary dependency on dirname-lgpl
11995         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11996         is no direct dependency, just an indirect one via filenamecat-lgpl.
11997
11998         remove: remove unnecessary use of m4/dos.m4
11999         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12000         * modules/remove (FILES): Remove m4/dos.m4.
12001
12002         * lib/openat-proc.c: Don't include dirname.h; not needed.
12003
12004         backupfile: remove unnecessary use of m4/dos.m4
12005         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12006         of its symbols are used by the backupfile code.  backupfile.c does
12007         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12008         for the rare case of programs that want all their backup file
12009         names to live within 8+3 limits, and dos.m4 doesn't address that.
12010         * modules/backupfile (Files): Remove m4/dos.m4.
12011
12012 2011-02-24  Jim Meyering  <meyering@redhat.com>
12013
12014         strstr: fix a bug whereby strstr would mistakenly return NULL
12015         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12016         in period calculation.
12017         (two_way_long_needle): Likewise.
12018         The original problem was reported by Mike Stump in
12019         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12020         Ralf Wildenhues provided the short needle and haystack.
12021         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12022         Add a more involved test to trigger the bug in two_way_long_needle.
12023
12024 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12025
12026         gnulib-tool: remove use of bold display in help screen
12027         * gnulib-tool (func_usage): Do not use bold display anymore in the
12028         help screen.  That was just meant to be a temporary emphasis for a
12029         backward-incompatible change.
12030
12031 2011-02-23  Bruno Haible  <bruno@clisp.org>
12032
12033         Fix misindentation of preprocessor directives.
12034         * lib/argp-namefrob.h: Reindent preprocessor directives.
12035         * lib/getopt_int.h (struct _getopt_data): Likewise.
12036         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12037         * lib/vasnprintf.c (decode_long_double): Likewise.
12038         * tests/test-argmatch.c: Insert blank lines, for clarity.
12039         * tests/test-exclude.c: Likewise.
12040
12041 2011-02-22  Bruno Haible  <bruno@clisp.org>
12042
12043         ioctl: Fix for MacOS X in 64-bit mode.
12044         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12045         value.
12046         Suggested by Eric Blake.
12047         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12048
12049 2011-02-22  Jim Meyering  <meyering@redhat.com>
12050
12051         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12052         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12053         in lib/.
12054
12055 2011-02-22  Eric Blake  <eblake@redhat.com>
12056
12057         maint: avoid any CDPATH issue
12058         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12059
12060         maint: adjust cpp indentation for my modules, as well
12061         * Makefile (sc_cpp_indent_check): Add my name.
12062         * lib/fbufmode.c: Filter through cppi.
12063         * lib/fpurge.c: Likewise.
12064         * lib/freadable.c: Likewise.
12065         * lib/freading.c: Likewise.
12066         * lib/fwritable.c: Likewise.
12067         * lib/fwriting.c: Likewise.
12068         * lib/sigaction.c: Likewise.
12069
12070 2011-02-22  Jim Meyering  <meyering@redhat.com>
12071
12072         maint: adjust cpp indentation to reflect nesting depth
12073         I.e., in a block of code that begins with an unnested "#if",
12074         put one space between the "#" in column 1 and following token.
12075         For example,
12076         -#include <sys/vfs.h>
12077         +# include <sys/vfs.h>
12078         Do this only in .c files that are part of a module I maintain.
12079         * lib/linkat.c: Filter through cppi.
12080         * lib/nanosleep.c: Likewise.
12081         * lib/openat.c: Likewise.
12082         * lib/openat-die.c: Likewise.
12083         * lib/dup3.c: Likewise.
12084         * lib/fchownat.c: Likewise.
12085         * lib/flock.c: Likewise.
12086         * lib/fsync.c: Likewise.
12087         * lib/fts.c: Likewise.
12088         * lib/getpass.c: Likewise.
12089         * lib/gettimeofday.c: Likewise.
12090         * lib/userspec.c: Likewise.
12091         * Makefile (sc_cpp_indent_check): New rule, to check this.
12092
12093 2011-02-22  Bruno Haible  <bruno@clisp.org>
12094
12095         New module 'wctomb'.
12096         * lib/stdlib.in.h (wctomb): New declaration.
12097         * lib/wctomb.c: New file.
12098         * lib/wctomb-impl.h: New file.
12099         * m4/wctomb.m4: New file.
12100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12101         REPLACE_WCTOMB.
12102         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12103         REPLACE_WCTOMB.
12104         * modules/wctomb: New file.
12105         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12106         * doc/posix-functions/wctomb.texi: Mention the new module.
12107         * modules/wctob (Depends-on): Add wctomb.
12108
12109 2011-02-22  Bruno Haible  <bruno@clisp.org>
12110
12111         New module 'mbtowc'.
12112         * lib/stdlib.in.h (mbtowc): New declaration.
12113         * lib/mbtowc.c: New file.
12114         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12115         * m4/mbtowc.m4: New file.
12116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12117         REPLACE_MBTOWC.
12118         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12119         REPLACE_MBTOWC.
12120         * modules/mbtowc: New file.
12121         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12122         * doc/posix-functions/mbtowc.texi: Mention the new module.
12123         * modules/btowc (Depends-on): Add mbtowc.
12124
12125 2011-02-22  Bruno Haible  <bruno@clisp.org>
12126
12127         wcrtomb: Add more tests for native Windows platforms.
12128         * tests/test-wcrtomb-w32-1.sh: New file.
12129         * tests/test-wcrtomb-w32-2.sh: New file.
12130         * tests/test-wcrtomb-w32-3.sh: New file.
12131         * tests/test-wcrtomb-w32-4.sh: New file.
12132         * tests/test-wcrtomb-w32-5.sh: New file.
12133         * tests/test-wcrtomb-w32.c: New file.
12134         * modules/wcrtomb-tests (Files): Add them.
12135         (Makefile.am): Arrange to run these tests.
12136         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12137         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12138
12139 2011-02-20  Bruno Haible  <bruno@clisp.org>
12140
12141         wcrtomb: Enhance test.
12142         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12143
12144 2011-02-20  Bruno Haible  <bruno@clisp.org>
12145
12146         mbrtowc: Tiny optimization.
12147         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12148
12149 2011-02-20  Jim Meyering  <meyering@redhat.com>
12150
12151         test-exclude.c: remove unmatched #endif
12152         * tests/test-exclude.c: Remove stray #endif, left over from
12153         the change of a week ago.
12154
12155 2011-02-19  Jim Meyering  <meyering@redhat.com>
12156
12157         git-version-gen: skip "-dirty" check when appropriate
12158         * build-aux/git-version-gen: Don't run any git commands when the
12159         version string comes from .tarball-version.  Prior to this, we
12160         would run git update-index --refresh even from a just-unpacked
12161         tarball directory, and that could affect a .git/ directory in a
12162         parent of the build directory.  Reported by Mike Frysinger.
12163
12164 2011-02-19  Bruno Haible  <bruno@clisp.org>
12165
12166         unictype/property-byname: Reduce the size of the 'data' segment.
12167         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12168
12169 2011-02-19  Bruno Haible  <bruno@clisp.org>
12170
12171         unictype/scripts: Reduce the size of the 'data' segment.
12172         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12173         '%pic'.
12174         * lib/unictype/scripts_byname.gperf: Regenerated.
12175
12176 2011-02-19  Bruno Haible  <bruno@clisp.org>
12177
12178         stdint: Update documentation.
12179         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12180
12181 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12182
12183         stdint: omit redundant check for wchar.h
12184         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12185         always tests whether wchar.h exists, so remove the now-redundant test.
12186
12187 2011-02-18  Bruno Haible  <bruno@clisp.org>
12188
12189         stdint: Cut dependency to module 'wchar'.
12190         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12191         include the necessary prerequisites.
12192         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12193         * modules/stdint (Depends-on): Remove wchar.
12194         (Makefile.am): Substitute HAVE_WCHAR_H.
12195         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12196
12197 2011-02-18  Eric Blake  <eblake@redhat.com>
12198
12199         longlong: skip, rather than fail, on cross-compilation
12200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12201         when cross-compiling; regression from 2011-02-16.
12202
12203 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12204
12205         * NEWS: Mention 2011-02-08 change to stdlib.
12206
12207 2011-02-17  Bruno Haible  <bruno@clisp.org>
12208
12209         getloadavg: Add comments about platforms.
12210         * m4/getloadavg.m4: Add comment.
12211         * lib/getloadavg.c: Likewise.
12212
12213 2011-02-17  Bruno Haible  <bruno@clisp.org>
12214
12215         getloadavg: Fix link error on Solaris 2.6.
12216         * modules/getloadavg (Link): New section.
12217         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12218         linking test-getloadavg.
12219         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12220         getloadavg.
12221
12222 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12223
12224         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12225         It was 'int', but this doesn't match the IRIX 6.5 manual.
12226         Suggested by Bruno Haible in
12227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12228
12229 2011-02-17  Bruno Haible  <bruno@clisp.org>
12230
12231         havelib: Fix comments.
12232         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12233         change.
12234
12235 2011-02-17  Bruno Haible  <bruno@clisp.org>
12236
12237         havelib: Update config.rpath.
12238         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12239
12240 2011-02-17  Bruno Haible  <bruno@clisp.org>
12241
12242         getloadavg test: Add some plausibility checks.
12243         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12244         is improbable.
12245
12246 2011-02-16  Eric Blake  <eblake@redhat.com>
12247
12248         maintainer-makefile: make syntax-check a no-op from tarballs
12249         * top/maint.mk (no-vc-detected): New rule.
12250         (local-checks-available): Use it to avoid hanging if someone tries
12251         'make syntax-check' from a tarball.  Also append to any non-syntax
12252         checks already defined in cfg.mk.
12253
12254 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12255
12256         longlong: tune, particularly for common case of c99
12257
12258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12259         or running anything if c99, or if unsigned long long int does not
12260         work.  In either case, we know the answer without further tests.
12261         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12262         it at most once, and use its results for both long long int and
12263         unsigned long long int.  This is more likely to be efficient in
12264         the common case where the program wants to check for both long
12265         long int and unsigned long long int.
12266         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12267         since the answer is already known.
12268
12269 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         getloadavg: set errno
12272         * lib/getloadavg.c: Set errno when returning -1.  If no other
12273         error number looks appropriate, set it to ENOSYS if the getloadavg
12274         looks like it can't possibly ever work, ENOTSUP otherwise.
12275         Suggested by Bruno Haible in
12276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12277
12278         getloadavg: trim unused parts and speed up 'configure'
12279         * NEWS: Document this.
12280         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12281         always compiled if getloadavg is absent.
12282         Move test code to ...
12283         * tests/test-getloadavg.c: New file, containing previous
12284         contents of test from lib/getloadavg.c.  It also contains
12285         suggestions by Bruno Haible in
12286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12287         * modules/getloadavg-tests: New file.
12288         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12289         Do tests in the same order as they're needed for getloadavg.c.
12290         Omit setgid-related tests that generate symbols KMEM_GROUP,
12291         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12292         Do only the tests that are needed to see whether the system has
12293         getloadavg, moving the other tests into ...
12294         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12295         NLIST_NAME_UNION; nobody should be using it.  Do not define
12296         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12297         relevant, as the user of this module shouldn't care how getloadavg
12298         is implemented.
12299
12300         getloadavg: omit unused var
12301         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12302
12303 2011-02-15  Jim Meyering  <meyering@redhat.com>
12304
12305         doc: update users.txt
12306         * users.txt: Update iwhd's URL.
12307
12308 2011-02-13  Bruno Haible  <bruno@clisp.org>
12309
12310         Consistent macro naming for macros that use GCC __attribute__.
12311         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12312         _ATTRIBUTE_NONNULL_.
12313         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12314         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12315         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12316         ATTRIBUTE_DEPRECATED.
12317         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12318         ATTRIBUTE_NORETURN.
12319         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12320         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12321         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12322         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12323         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12324         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12325         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12326         ATTRIBUTE_SENTINEL.
12327         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12328         ATTRIBUTE_RETURN_CHECK.
12329         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12330         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12331         ATTRIBUTE_NORETURN.
12332         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12333         Reported by Paul Eggert.
12334
12335 2011-02-13  Bruno Haible  <bruno@clisp.org>
12336
12337         Don't interfere with a program's definition of __attribute__.
12338         * lib/argp.h (__attribute__): Remove definition.
12339         (_GL_ATTRIBUTE_FORMAT): New macro.
12340         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12341         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12342         (_GL_ATTRIBUTE_FORMAT): New macro.
12343         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12344         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12345         GCC 3 or newer.
12346         * lib/error.h (__attribute__): Remove definition.
12347         (_GL_ATTRIBUTE_FORMAT): New macro.
12348         (error, error_at_line): Use it.
12349         * lib/hash.h (__attribute__): Remove definition.
12350         (ATTRIBUTE_WUR): Update definition. Define always.
12351         * lib/openat.h (__attribute__): Remove definition.
12352         (ATTRIBUTE_NORETURN): Update definition. Define always.
12353         * lib/sigpipe-die.h (__attribute__): Remove definition.
12354         (ATTRIBUTE_NORETURN): Update definition. Define always.
12355         * lib/vasnprintf.h (__attribute__): Remove definition.
12356         (_GL_ATTRIBUTE_FORMAT): New macro.
12357         (asnprintf, vasnprintf): Use it.
12358         * lib/xalloc.h (__attribute__): Remove definition.
12359         (ATTRIBUTE_NORETURN): Update definition. Define always.
12360         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12361         * lib/xmemdup0.h (__attribute__): Remove definition.
12362         (ATTRIBUTE_NORETURN): Update definition. Define always.
12363         * lib/xprintf.h (__attribute__): Remove definition.
12364         (_GL_ATTRIBUTE_FORMAT): New macro.
12365         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12366         * lib/xstrtol.h (__attribute__): Remove definition.
12367         (ATTRIBUTE_NORETURN): Update definition. Define always.
12368         * lib/xvasprintf.h (__attribute__): Remove definition.
12369         (_GL_ATTRIBUTE_FORMAT): New macro.
12370         (xasprintf, xvasprintf): Use it.
12371         * tests/test-argmatch.c (__attribute__): Remove definition.
12372         (ATTRIBUTE_NORETURN): Update definition. Define always.
12373         * tests/test-exclude.c (__attribute__): Remove definition.
12374         (ATTRIBUTE_NORETURN): Update definition. Define always.
12375         Reported by Paul Eggert.
12376
12377 2011-02-13  Bruno Haible  <bruno@clisp.org>
12378
12379         mbrtowc: Add more tests for native Windows platforms.
12380         * tests/test-mbrtowc-w32-1.sh: New file.
12381         * tests/test-mbrtowc-w32-2.sh: New file.
12382         * tests/test-mbrtowc-w32-3.sh: New file.
12383         * tests/test-mbrtowc-w32-4.sh: New file.
12384         * tests/test-mbrtowc-w32-5.sh: New file.
12385         * tests/test-mbrtowc-w32.c: New file.
12386         * modules/mbrtowc-tests (Files): Add them.
12387         (Makefile.am): Arrange to run these tests.
12388         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12389         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12390
12391 2011-02-13  Bruno Haible  <bruno@clisp.org>
12392
12393         mbrtowc: Work around native Windows bug.
12394         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12395         guess when no suitable locale for testing was found.
12396         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12397
12398 2011-02-13  Bruno Haible  <bruno@clisp.org>
12399
12400         mbsinit: Work around mingw bug.
12401         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12402         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12403         Windows.
12404         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12405
12406 2011-02-13  Bruno Haible  <bruno@clisp.org>
12407
12408         mbsinit: Don't crash for a NULL argument.
12409         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12410         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12411
12412 2011-02-13  Bruno Haible  <bruno@clisp.org>
12413
12414         Don't interfere with a program's definition of __attribute__.
12415         * lib/stdio.in.h (__attribute__): Remove definition.
12416         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12417         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12418         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12419         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12420         * lib/string.in.h (__attribute__): Remove definition.
12421         Reported by Paul Eggert.
12422
12423 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12424
12425         stdlib: don't get in the way of non-GCC __attribute__
12426         See thread starting at
12427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12428         Revert previous stdlib change, installing the following instead:
12429         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12430         to get in the way of a non-GCC compiler that supports __attribute__.
12431         (_GL_ATTRIBUTE_RETURN): New macro.
12432         (_Exit): Use it instead of __attribute__.
12433
12434 2011-02-12  Bruno Haible  <bruno@clisp.org>
12435
12436         quotearg test: Avoid test failure on mingw.
12437         * tests/test-quotearg.sh: Convert the locale identifier from native
12438         Windows syntax to Unix syntax.
12439
12440 2011-02-12  Bruno Haible  <bruno@clisp.org>
12441
12442         setlocale: Prefer gnulib's override over libintl's override.
12443         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12444         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12445         GNULIB_defined_setlocale is set.
12446
12447 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12448
12449         stdlib: support non-GCC __attribute__
12450
12451         Fix a serious and tricky problem encountered when attempting to
12452         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12453         5.5, but it crashed due to memory corruption on Solaris 10 with
12454         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12455         bits that are otherwise zero.  This tagging is optional inside
12456         Emacs but is preferred and is used when __attribute__ ((__aligned
12457         (8))) works, as it does with both recent-enough GCC and with Sun C
12458         5.11.  However, Sun C 5.11 is not GCC and does not #define
12459         __GNUC__ and __GNUC_MINOR__.
12460
12461         When I added the getloadavg module to Emacs, it brought in
12462         stdlib.in.h, which contained this fragment:
12463
12464            #ifndef __attribute__
12465            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12466            #  define __attribute__(Spec)   /* empty */
12467            # endif
12468            #endif
12469
12470         When files that include <stdlib.h> were compiled with Sun C 5.11,
12471         the above code disabled __attribute__ ((__aligned (8))), which
12472         caused variables to not be properly aligned, which eventually led
12473         to the pointer corruption mentioned above.  (This was a bit hard
12474         to diagnose, unfortunately.)
12475
12476         Several "#define __attribute__(X) /* empty */" code snippets need
12477         to be eradicated from Gnulib to work with non-GCC compilers that
12478         support __attribute__.  The Autoconf way to do this is to test for
12479         each kind of attribute that we want support for, and selectively
12480         enable that in source code.
12481
12482         Fix this problem just for stdlib.h, by adding a test for the
12483         __noreturn__ attribute, and change stdlib.in.h to use that test
12484         when needed.  This technique can be easily generalized to the
12485         other *.in.h files and attributes, and a similar technique can be
12486         used for *.h and *.c files.  This patch is enough to solve the
12487         problem for Emacs + getloadavg, and I thought I'd publish it for
12488         feedback before undertaking further, similar fixes in other
12489         modules.
12490
12491         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12492         because it's not needed for stdlib.h.  It merely substitutes the
12493         value directly into stdlib.h.  We may well need to #define it, or
12494         similar symbols, for other modules, but it's nice to also have an
12495         option to not #define it for applications like Emacs that do not
12496         need it.
12497
12498         * lib/stdlib.in.h (__attribute__): Do not #define.
12499         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12500         be defined only if the _Exit module is also used.
12501         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12503         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12504         platforms.
12505         * modules/_Exit (Files): Add m4/attribute.m4.
12506         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12507         * m4/attribute.m4: New file.
12508
12509 2011-02-12  Bruno Haible  <bruno@clisp.org>
12510
12511         wcsrtombs: Work around bug on native Windows.
12512         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12513         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12514         instead of len.
12515         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12516
12517 2011-02-12  Bruno Haible  <bruno@clisp.org>
12518
12519         mbsrtowcs: Work around bug on native Windows.
12520         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12521         against mingw bug.
12522         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12523
12524 2011-02-12  Bruno Haible  <bruno@clisp.org>
12525
12526         Avoid setlocale bugs in tests.
12527         * modules/btowc (Dependencies): Add setlocale.
12528         * modules/c-strcase (Dependencies): Likewise.
12529         * modules/mbmemcasecmp (Dependencies): Likewise.
12530         * modules/mbmemcasecoll (Dependencies): Likewise.
12531         * modules/mbrtowc (Dependencies): Likewise.
12532         * modules/mbscasecmp (Dependencies): Likewise.
12533         * modules/mbscasestr (Dependencies): Likewise.
12534         * modules/mbschr (Dependencies): Likewise.
12535         * modules/mbscspn (Dependencies): Likewise.
12536         * modules/mbsinit (Dependencies): Likewise.
12537         * modules/mbsncasecmp (Dependencies): Likewise.
12538         * modules/mbsnrtowcs (Dependencies): Likewise.
12539         * modules/mbspbrk (Dependencies): Likewise.
12540         * modules/mbspcasecmp (Dependencies): Likewise.
12541         * modules/mbsrchr (Dependencies): Likewise.
12542         * modules/mbsrtowcs (Dependencies): Likewise.
12543         * modules/mbsspn (Dependencies): Likewise.
12544         * modules/mbsstr (Dependencies): Likewise.
12545         * modules/nl_langinfo (Dependencies): Likewise.
12546         * modules/quotearg (Dependencies): Likewise.
12547         * modules/unicase/locale-language (Dependencies): Likewise.
12548         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12549         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12550         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12551         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12552         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12553         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12554         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12555         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12556         * modules/vasnprintf-posix (Dependencies): Likewise.
12557         * modules/wcrtomb (Dependencies): Likewise.
12558         * modules/wcsnrtombs (Dependencies): Likewise.
12559         * modules/wcsrtombs (Dependencies): Likewise.
12560
12561 2011-02-12  Bruno Haible  <bruno@clisp.org>
12562
12563         setlocale: Workaround native Windows bug.
12564         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12565         succeeds but sets LC_CTYPE to "C", report a failure.
12566         * tests/test-setlocale2.sh: New file.
12567         * tests/test-setlocale2.c: New file.
12568         * modules/setlocale-tests (Files): Add the new files.
12569         (Makefile.am): Enable test-setlocale2.sh test.
12570         * doc/posix-functions/setlocale.texi: Mention workaround.
12571
12572 2011-02-11  Bruno Haible  <bruno@clisp.org>
12573
12574         Tests for module 'setlocale'.
12575         * modules/setlocale-tests: New file.
12576         * tests/test-setlocale1.sh: New file.
12577         * tests/test-setlocale1.c: New file.
12578
12579         New module 'setlocale'.
12580         * lib/locale.in.h (setlocale): New declaration.
12581         * lib/setlocale.c: New file, based on
12582         gettext/gettext-runtime/intl/setlocale.c.
12583         * m4/setlocale.m4: New file.
12584         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12585         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12586         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12587         REPLACE_SETLOCALE.
12588         * modules/setlocale: New file.
12589         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12590         * doc/posix-functions/setlocale.texi: Mention the new module.
12591
12592 2011-02-11  Bruno Haible  <bruno@clisp.org>
12593
12594         Prepare for locale dependent tests on mingw.
12595         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12596         because it has the wrong locale encoding.
12597         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12598         French_France.1252 instead of "fr".
12599         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12600         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12601         because it has the wrong locale encoding.
12602         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12603         native Windows, try Turkish_Turkey.65001.
12604         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12605         Chinese_China.54936.
12606
12607         Prepare for locale dependent tests on mingw.
12608         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12609         differently.
12610         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12611         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12612         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12613         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12614
12615 2011-02-11  Eric Blake  <eblake@redhat.com>
12616
12617         strptime: avoid compiler warnings
12618         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12619         compiler warnings about dead code.
12620         Reported by Daniel P. Berrange.
12621
12622 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12623
12624         doc: update users.txt
12625         * users.txt: Add rcs.
12626
12627 2011-02-10  John W. Eaton  <jwe@gnu.org>
12628
12629         doc: update users.txt
12630         * users.txt: Add octave.
12631
12632 2011-02-10  Jim Meyering  <meyering@redhat.com>
12633
12634         doc: update users.txt
12635         * users.txt: Add iwhd.
12636
12637 2011-02-09  Bruno Haible  <bruno@clisp.org>
12638
12639         gnulib-tool: Make copyright notice adjustment more robust.
12640         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12641         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12642         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12643         License".
12644         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12645
12646 2011-02-06  Bruno Haible  <bruno@clisp.org>
12647
12648         New module 'towctrans'.
12649         * modules/towctrans: New file.
12650         * lib/wctype.in.h (towctrans): New declaration.
12651         * lib/towctrans.c: New file.
12652         * lib/towctrans-impl.h: New file.
12653         * m4/towctrans.m4: New file.
12654         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12655         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12656         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12657         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12658         * doc/posix-functions/towctrans.texi: Mention the new module.
12659
12660 2011-02-06  Bruno Haible  <bruno@clisp.org>
12661
12662         New module 'wctrans'.
12663         * modules/wctrans: New file.
12664         * lib/wctype.in.h (wctrans): New declaration.
12665         * lib/wctrans.c: New file.
12666         * lib/wctrans-impl.h: New file.
12667         * m4/wctrans.m4: New file.
12668         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12669         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12670         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12671         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12672         * doc/posix-functions/wctrans.texi: Mention the new module.
12673
12674 2011-02-06  Bruno Haible  <bruno@clisp.org>
12675
12676         New module 'iswctype'.
12677         * modules/iswctype: New file.
12678         * lib/wctype.in.h (iswctype): New declaration.
12679         * lib/iswctype.c: New file.
12680         * lib/iswctype-impl.h: New file.
12681         * m4/iswctype.m4: New file.
12682         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12683         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12684         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12685         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12686         * doc/posix-functions/iswctype.texi: Mention the new module and the
12687         HP-UX 11.00 problem.
12688
12689 2011-02-06  Bruno Haible  <bruno@clisp.org>
12690
12691         New module 'wctype'.
12692         * modules/wctype: Change to represent the wctype() substitute.
12693         * lib/wctype.in.h (wctype): New declaration.
12694         * lib/wctype.c: New file.
12695         * lib/wctype-impl.h: New file.
12696         * m4/wctype.m4: New file.
12697         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12698         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12699         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12700         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12701         * doc/posix-functions/wctype.texi: Mention the new module and the
12702         HP-UX 11.00 problem.
12703
12704 2011-02-06  Bruno Haible  <bruno@clisp.org>
12705
12706         wctype-h: Ensure wctype_t and wctrans_t are defined.
12707         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12708         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12709         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12710         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12711         HAVE_WCTRANS_T.
12712         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12713
12714 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12715
12716         flock: fix license typo
12717
12718         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12719         omitted.
12720
12721 2011-02-08  Bruno Haible  <bruno@clisp.org>
12722
12723         Split large sed scripts, for HP-UX sed.
12724         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12725         to avoid HP-UX limit of 99 commands, in the near future.
12726         * modules/stdlib (Makefile.am): Likewise.
12727         * modules/unistd (Makefile.am): Likewise.
12728         * modules/wchar (Makefile.am): Likewise.
12729         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12730         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12732
12733 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12734             Bruno Haible  <bruno@clisp.org>
12735
12736         stdlib: improve random_r modularization
12737         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12738         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12739         you also need the random_r module to get this material right.
12740         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12741         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12742         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12743
12744 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         stdlib: don't depend on stdint
12747         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12748         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12749         be independent of whether stdint.h is needed.
12750         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12751         here, instead of ...
12752         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12753         struct random_data should be using the random_r module, not just
12754         the stdlib module (which wouldn't make sense: what package needs
12755         just struct random_data without also needing random_r?).
12756         * modules/stdlib (Depends-on): Remove stdint.
12757
12758         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12759         See the thread rooted at
12760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12761         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12762         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12763         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12764         __VMS)); previously it was always included (via fcntl--.h).
12765         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12766         hand; this is good enough for load averages.  Also, do not use
12767         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12768         flags directly if available and don't bother otherwise.  (Packages
12769         that need the extra reliability should use the modules that define
12770         these flags on older platforms that lack them.)
12771         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12772         fcntl-safer.
12773
12774 2011-02-08  Jim Meyering  <meyering@redhat.com>
12775
12776         di-set.h, ino-map.h: add multiple-inclusion guard
12777         Technically, the guard is required only for ino-map.h, due to its
12778         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12779         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12780         * lib/ino-map.h: Likewise.
12781
12782 2011-02-06  Bruno Haible  <bruno@clisp.org>
12783
12784         iswblank: Ensure declaration on glibc systems.
12785         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12786         * modules/iswblank (Dependencies): Add 'extensions'.
12787         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12788
12789 2011-02-06  Bruno Haible  <bruno@clisp.org>
12790
12791         New module 'iswblank'.
12792         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12793         * modules/iswblank: New file.
12794         * modules/wctype-h (Files): Remove lib/iswblank.c.
12795         (Makefile.am): Substitute GNULIB_ISWBLANK.
12796         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12797         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12798         (gl_WCTYPE_H_DEFAULTS): New macro.
12799         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12800         * modules/iswblank-tests: New file.
12801         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12802         * tests/test-wctype-h.c (main): Remove iswblank tests.
12803         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12804         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12805         of 'wctype-h'.
12806         * NEWS: Mention the change.
12807         * modules/mbchar (Depends-on): Add iswblank.
12808
12809 2011-02-08  Bruno Haible  <bruno@clisp.org>
12810
12811         di-set tests: Refactor.
12812         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12813         unnecessary includes.
12814         (ASSERT): Remove macro.
12815         (main): Make C90 compliant by avoiding variable declaration after
12816         statement.
12817         * modules/di-set-tests (Files): Add tests/macros.h.
12818
12819 2011-02-08  Bruno Haible  <bruno@clisp.org>
12820
12821         ino-map tests: Refactor.
12822         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12823         unnecessary includes.
12824         (ASSERT): Remove macro.
12825         (main): Make C90 compliant by avoiding variable declaration after
12826         statement.
12827         * modules/ino-map-tests (Files): Add tests/macros.h.
12828
12829 2011-02-08  Jim Meyering  <meyering@redhat.com>
12830
12831         di-set: add "const" to a cast
12832         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12833         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12834
12835 2011-02-06  Bruno Haible  <bruno@clisp.org>
12836
12837         Rename module 'wctype' to 'wctype-h'.
12838         * modules/wctype-h: Renamed from modules/wctype.
12839         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12840         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12841         (Files, Depends-on, Makefile.am): Update.
12842         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12843         (Files, Makefile.am): Update.
12844         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12845         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12846         * doc/posix-headers/wctype.texi: Update.
12847         * doc/posix-functions/iswalnum.texi: Update.
12848         * doc/posix-functions/iswalpha.texi: Update.
12849         * doc/posix-functions/iswblank.texi: Update.
12850         * doc/posix-functions/iswcntrl.texi: Update.
12851         * doc/posix-functions/iswdigit.texi: Update.
12852         * doc/posix-functions/iswgraph.texi: Update.
12853         * doc/posix-functions/iswlower.texi: Update.
12854         * doc/posix-functions/iswprint.texi: Update.
12855         * doc/posix-functions/iswpunct.texi: Update.
12856         * doc/posix-functions/iswspace.texi: Update.
12857         * doc/posix-functions/iswupper.texi: Update.
12858         * doc/posix-functions/iswxdigit.texi: Update.
12859         * doc/posix-functions/towlower.texi: Update.
12860         * doc/posix-functions/towupper.texi: Update.
12861         * NEWS: Mention the change.
12862         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12863         * modules/mbchar (Dependencies): Likewise.
12864         * modules/mbswidth (Dependencies): Likewise.
12865         * modules/quotearg (Dependencies): Likewise.
12866         * modules/regex (Dependencies): Likewise.
12867         * modules/wcscasecmp (Dependencies): Likewise.
12868         * modules/wcsncasecmp (Dependencies): Likewise.
12869         * modules/wcwidth (Dependencies): Likewise.
12870
12871 2011-02-06  Bruno Haible  <bruno@clisp.org>
12872
12873         New module 'wcswidth'.
12874         * modules/wcswidth: New file.
12875         * lib/wchar.in.h (wcswidth): New declaration.
12876         * lib/wcswidth.c: New file.
12877         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12878         * m4/wcswidth.m4: New file.
12879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12881         REPLACE_WCSWIDTH.
12882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12883         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12884         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12885         * doc/posix-functions/wcswidth.texi: Mention the new module.
12886
12887 2011-02-06  Bruno Haible  <bruno@clisp.org>
12888
12889         New module 'wcstok'.
12890         * modules/wcstok: New file.
12891         * lib/wchar.in.h (wcstok): New declaration.
12892         * lib/wcstok.c: New file.
12893         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12894         * m4/wcstok.m4: New file.
12895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12898         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12899         * doc/posix-functions/wcstok.texi: Mention the new module.
12900
12901 2011-02-06  Bruno Haible  <bruno@clisp.org>
12902
12903         New module 'wcsstr'.
12904         * modules/wcsstr: New file.
12905         * lib/wchar.in.h (wcsstr): New declaration.
12906         * lib/wcsstr.c: New file.
12907         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12908         * m4/wcsstr.m4: New file.
12909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12912         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12913         * doc/posix-functions/wcsstr.texi: Mention the new module.
12914
12915 2011-02-06  Bruno Haible  <bruno@clisp.org>
12916
12917         New module 'wcspbrk'.
12918         * modules/wcspbrk: New file.
12919         * lib/wchar.in.h (wcspbrk): New declaration.
12920         * lib/wcspbrk.c: New file.
12921         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12922         * m4/wcspbrk.m4: New file.
12923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12926         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12927         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12928
12929 2011-02-06  Bruno Haible  <bruno@clisp.org>
12930
12931         New module 'wcsspn'.
12932         * modules/wcsspn: New file.
12933         * lib/wchar.in.h (wcsspn): New declaration.
12934         * lib/wcsspn.c: New file.
12935         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12936         * m4/wcsspn.m4: New file.
12937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12940         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12941         * doc/posix-functions/wcsspn.texi: Mention the new module.
12942
12943 2011-02-06  Bruno Haible  <bruno@clisp.org>
12944
12945         New module 'wcscspn'.
12946         * modules/wcscspn: New file.
12947         * lib/wchar.in.h (wcscspn): New declaration.
12948         * lib/wcscspn.c: New file.
12949         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12950         * m4/wcscspn.m4: New file.
12951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12954         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12955         * doc/posix-functions/wcscspn.texi: Mention the new module.
12956
12957 2011-02-06  Bruno Haible  <bruno@clisp.org>
12958
12959         New module 'wcsrchr'.
12960         * modules/wcsrchr: New file.
12961         * lib/wchar.in.h (wcsrchr): New declaration.
12962         * lib/wcsrchr.c: New file.
12963         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12964         * m4/wcsrchr.m4: New file.
12965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12968         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12969         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12970
12971 2011-02-06  Bruno Haible  <bruno@clisp.org>
12972
12973         New module 'wcschr'.
12974         * modules/wcschr: New file.
12975         * lib/wchar.in.h (wcschr): New declaration.
12976         * lib/wcschr.c: New file.
12977         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12978         * m4/wcschr.m4: New file.
12979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12982         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12983         * doc/posix-functions/wcschr.texi: Mention the new module.
12984
12985 2011-02-06  Bruno Haible  <bruno@clisp.org>
12986
12987         New module 'wcsdup'.
12988         * modules/wcsdup: New file.
12989         * lib/wchar.in.h (wcsdup): New declaration.
12990         * lib/wcsdup.c: New file.
12991         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12992         * m4/wcsdup.m4: New file.
12993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12996         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12997         * doc/posix-functions/wcsdup.texi: Mention the new module.
12998
12999 2011-02-06  Bruno Haible  <bruno@clisp.org>
13000
13001         New module 'wcsxfrm'.
13002         * modules/wcsxfrm: New file.
13003         * lib/wchar.in.h (wcsxfrm): New declaration.
13004         * lib/wcsxfrm.c: New file.
13005         * lib/wcsxfrm-impl.h: New file.
13006         * m4/wcsxfrm.m4: New file.
13007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13010         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13011         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13012
13013 2011-02-06  Bruno Haible  <bruno@clisp.org>
13014
13015         New module 'wcscoll'.
13016         * modules/wcscoll: New file.
13017         * lib/wchar.in.h (wcscoll): New declaration.
13018         * lib/wcscoll.c: New file.
13019         * lib/wcscoll-impl.h: New file.
13020         * m4/wcscoll.m4: New file.
13021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13024         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13025         * doc/posix-functions/wcscoll.texi: Mention the new module.
13026
13027 2011-02-06  Bruno Haible  <bruno@clisp.org>
13028
13029         New module 'wcsncasecmp'.
13030         * modules/wcsncasecmp: New file.
13031         * lib/wchar.in.h (wcsncasecmp): New declaration.
13032         * lib/wcsncasecmp.c: New file.
13033         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13034         * m4/wcsncasecmp.m4: New file.
13035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13038         HAVE_WCSNCASECMP.
13039         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13040         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13041
13042 2011-02-06  Bruno Haible  <bruno@clisp.org>
13043
13044         New module 'wcscasecmp'.
13045         * modules/wcscasecmp: New file.
13046         * lib/wchar.in.h (wcscasecmp): New declaration.
13047         * lib/wcscasecmp.c: New file.
13048         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13049         * m4/wcscasecmp.m4: New file.
13050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13053         HAVE_WCSCASECMP.
13054         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13055         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13056
13057 2011-02-05  Bruno Haible  <bruno@clisp.org>
13058
13059         New module 'wcsncmp'.
13060         * modules/wcsncmp: New file.
13061         * lib/wchar.in.h (wcsncmp): New declaration.
13062         * lib/wcsncmp.c: New file.
13063         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13064         * m4/wcsncmp.m4: New file.
13065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13068         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13069         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13070
13071 2011-02-05  Bruno Haible  <bruno@clisp.org>
13072
13073         New module 'wcscmp'.
13074         * modules/wcscmp: New file.
13075         * lib/wchar.in.h (wcscmp): New declaration.
13076         * lib/wcscmp.c: New file.
13077         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13078         * m4/wcscmp.m4: New file.
13079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13082         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13083         * doc/posix-functions/wcscmp.texi: Mention the new module.
13084
13085 2011-02-05  Bruno Haible  <bruno@clisp.org>
13086
13087         New module 'wcsncat'.
13088         * modules/wcsncat: New file.
13089         * lib/wchar.in.h (wcsncat): New declaration.
13090         * lib/wcsncat.c: New file.
13091         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13092         * m4/wcsncat.m4: New file.
13093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13095         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13096         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13097         * doc/posix-functions/wcsncat.texi: Mention the new module.
13098
13099 2011-02-05  Bruno Haible  <bruno@clisp.org>
13100
13101         New module 'wcscat'.
13102         * modules/wcscat: New file.
13103         * lib/wchar.in.h (wcscat): New declaration.
13104         * lib/wcscat.c: New file.
13105         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13106         * m4/wcscat.m4: New file.
13107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13110         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13111         * doc/posix-functions/wcscat.texi: Mention the new module.
13112
13113 2011-02-05  Bruno Haible  <bruno@clisp.org>
13114
13115         New module 'wcpncpy'.
13116         * modules/wcpncpy: New file.
13117         * lib/wchar.in.h (wcpncpy): New declaration.
13118         * lib/wcpncpy.c: New file.
13119         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13120         * m4/wcpncpy.m4: New file.
13121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13123         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13124         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13125         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13126
13127 2011-02-05  Bruno Haible  <bruno@clisp.org>
13128
13129         New module 'wcsncpy'.
13130         * modules/wcsncpy: New file.
13131         * lib/wchar.in.h (wcsncpy): New declaration.
13132         * lib/wcsncpy.c: New file.
13133         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13134         * m4/wcsncpy.m4: New file.
13135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13138         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13139         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13140
13141 2011-02-05  Bruno Haible  <bruno@clisp.org>
13142
13143         New module 'wcpcpy'.
13144         * modules/wcpcpy: New file.
13145         * lib/wchar.in.h (wcpcpy): New declaration.
13146         * lib/wcpcpy.c: New file.
13147         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13148         * m4/wcpcpy.m4: New file.
13149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13151         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13152         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13153         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13154
13155 2011-02-05  Bruno Haible  <bruno@clisp.org>
13156
13157         New module 'wcscpy'.
13158         * modules/wcscpy: New file.
13159         * lib/wchar.in.h (wcscpy): New declaration.
13160         * lib/wcscpy.c: New file.
13161         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13162         * m4/wcscpy.m4: New file.
13163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13166         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13167         * doc/posix-functions/wcscpy.texi: Mention the new module.
13168
13169 2011-02-05  Bruno Haible  <bruno@clisp.org>
13170
13171         New module 'wcsnlen'.
13172         * modules/wcsnlen: New file.
13173         * lib/wchar.in.h (wcsnlen): New declaration.
13174         * lib/wcsnlen.c: New file.
13175         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13176         * m4/wcsnlen.m4: New file.
13177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13180         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13181         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13182
13183 2011-02-05  Bruno Haible  <bruno@clisp.org>
13184
13185         New module 'wcslen'.
13186         * modules/wcslen: New file.
13187         * lib/wchar.in.h (wcslen): New declaration.
13188         * lib/wcslen.c: New file.
13189         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13190         * m4/wcslen.m4: New file.
13191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13194         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13195         * doc/posix-functions/wcslen.texi: Mention the new module.
13196
13197 2011-02-05  Bruno Haible  <bruno@clisp.org>
13198
13199         New module 'wmemset'.
13200         * modules/wmemset: New file.
13201         * lib/wchar.in.h (wmemset): New declaration.
13202         * lib/wmemset.c: New file.
13203         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13204         * m4/wmemset.m4: New file.
13205         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13206         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13207         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13208         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13209         * doc/posix-functions/wmemset.texi: Mention the new module.
13210
13211 2011-02-05  Bruno Haible  <bruno@clisp.org>
13212
13213         New module 'wmemmove'.
13214         * modules/wmemmove: New file.
13215         * lib/wchar.in.h (wmemmove): New declaration.
13216         * lib/wmemmove.c: New file.
13217         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13218         * m4/wmemmove.m4: New file.
13219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13221         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13222         HAVE_WMEMMOVE.
13223         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13224         * doc/posix-functions/wmemmove.texi: Mention the new module.
13225
13226 2011-02-05  Bruno Haible  <bruno@clisp.org>
13227
13228         New module 'wmemcpy'.
13229         * modules/wmemcpy: New file.
13230         * lib/wchar.in.h (wmemcpy): New declaration.
13231         * lib/wmemcpy.c: New file.
13232         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13233         * m4/wmemcpy.m4: New file.
13234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13236         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13237         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13238         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13239
13240 2011-02-05  Bruno Haible  <bruno@clisp.org>
13241
13242         New module 'wmemcmp'.
13243         * modules/wmemcmp: New file.
13244         * lib/wchar.in.h (wmemcmp): New declaration.
13245         * lib/wmemcmp.c: New file.
13246         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13247         * m4/wmemcmp.m4: New file.
13248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13250         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13251         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13252         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13253
13254 2011-02-07  Jim Meyering  <meyering@redhat.com>
13255
13256         di-set, ino-map: new modules, from coreutils
13257         * lib/di-set.c: New file.
13258         * lib/di-set.h: Likewise.
13259         * lib/ino-map.c: Likewise.
13260         * lib/ino-map.h: Likewise.
13261         * modules/di-set: Likewise.
13262         * modules/di-set-tests: Likewise.
13263         * modules/ino-map: Likewise.
13264         * modules/ino-map-tests: Likewise.
13265         * tests/test-di-set.c: Likewise.
13266         * tests/test-ino-map.c: Likewise.
13267
13268 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         getloadavg: merge minor changes from Emacs
13271
13272         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13273         (getloadavg): Use memset, not bzero.
13274
13275         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13276         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13277         clash (bug#86).
13278
13279 2010-11-14  Bruno Haible  <bruno@clisp.org>
13280
13281         Allow multiple gnulib generated replacements to coexist.
13282         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13283         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13284         * lib/langinfo.in.h (nl_item): Likewise.
13285         * lib/math.in.h (_NaN, NAN): Likewise.
13286         * lib/netdb.in.h (struct addrinfo): Likewise.
13287         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13288         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13289         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13290         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13291         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13292         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13293         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13294         pthread_mutexattr_init, pthread_mutexattr_settype,
13295         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13296         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13297         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13298         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13299         * lib/sched.in.h (struct sched_param): Likewise.
13300         * lib/se-selinux.in.h (security_class_t, security_context_t,
13301         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13302         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13303         lsetfilecon, fsetfilecon, security_check_context,
13304         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13305         Likewise.
13306         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13307         Likewise.
13308         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13309         _gl_function_taking_int_returning_void_t, union sigval,
13310         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13311         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13312         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13313         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13314         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13315         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13316         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13317         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13318         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13319         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13320         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13321         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13322         socklen_t, rpl_fd_isset): Likewise.
13323         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13324         * lib/sys_time.in.h (struct timeval): Likewise.
13325         * lib/sys_times.in.h (struct tms): Likewise.
13326         * lib/sys_utsname.in.h (struct utsname):
13327         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13328         * lib/unistd.in.h (getpagesize): Likewise.
13329         * lib/wchar.in.h (mbstate_t): Likewise.
13330         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13331         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13332         towlower, towupper): Likewise.
13333         Reported by Sam Steingold <sds@gnu.org>.
13334
13335 2011-02-05  Eric Blake  <eblake@redhat.com>
13336
13337         unsetenv: work around Haiku issues
13338         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13339         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13340
13341 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13342
13343         libposix: avoid calling error() within libposix
13344         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13345         is defined.
13346
13347 2011-02-05  Eric Blake  <eblake@redhat.com>
13348
13349         strerror_r-posix: port to cygwin
13350         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13351         implementation.
13352         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13353         * tests/test-strerror_r.c (main): Fix test.
13354         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13355         issue.
13356
13357 2011-02-05  Bruno Haible  <bruno@clisp.org>
13358
13359         New module 'wmemchr'.
13360         * modules/wmemchr: New file.
13361         * lib/wchar.in.h (wmemchr): New declaration.
13362         * lib/wmemchr.c: New file.
13363         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13364         * m4/wmemchr.m4: New file.
13365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13367         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13368         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13369         * doc/posix-functions/wmemchr.texi: Mention the new module.
13370
13371 2011-02-04  Eric Blake  <eblake@redhat.com>
13372
13373         fdopendir: detect FreeBSD bug
13374         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13375         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13376
13377 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         stdbool: do not define HAVE_STDBOOL_H
13380         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13381         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13382         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13383         imported from the latest Autoconf git.  It was motivated by Emacs,
13384         which uses gnulib but does not need HAVE_STDBOOL_H.
13385
13386 2011-02-04  Bruno Haible  <bruno@clisp.org>
13387
13388         wcsnrtombs: Prepare for new module wwcsnrtombs.
13389         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13390         * lib/wcsnrtombs.c: Include it.
13391         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13392
13393         wcsrtombs: Prepare for new module wwcsrtombs.
13394         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13395         * lib/wcsrtombs.c: Include it.
13396         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13397
13398         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13399         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13400         * lib/mbsnrtowcs.c: Include it.
13401         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13402
13403         mbsrtowcs: Prepare for new module mbsrtowwcs.
13404         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13405         * lib/mbsrtowcs.c: Include it.
13406         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13407
13408 2011-02-04  Bruno Haible  <bruno@clisp.org>
13409
13410         vasnprintf: Reduce use of malloc for small format strings.
13411         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13412         (arguments): Add room for the first 7 arguments.
13413         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13414         (char_directives, u8_directives, u16_directives, u32_directives): Add
13415         room for the first 7 directives.
13416         * lib/printf-parse.c: Include <string.h>.
13417         (PRINTF_PARSE): Change memory handling code so that it uses the first
13418         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13419         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13420         Reported by Pádraig Brady <P@draigbrady.com>.
13421
13422 2011-01-31  Eric Blake  <eblake@redhat.com>
13423
13424         dup2: work around Haiku bug
13425         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13426         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13427         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13428         * tests/test-dup2.c (main): Enhance test.
13429
13430 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13431
13432         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13433         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13434         declared by eglibc 2.11.2.
13435         * lib/stdio.in.h: Likewise.
13436
13437 2011-01-31  Eric Blake  <eblake@redhat.com>
13438
13439         ignore-value: add missing test dependency
13440         * tests/test-ignore-value.c: Revert previous change; stdio.h
13441         provides off_t.
13442         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13443
13444 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         mktime: clarify long_int width checking
13447         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13448         the top level, to make it clearer that the assumption about
13449         long_int width is being checked.  See
13450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13451
13452 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13453
13454         ignore-value: Fix self-test.
13455         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13456
13457 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         TYPE_MAXIMUM: avoid theoretically undefined behavior
13460         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13461         negative number, which the C Standard says has undefined behavior.
13462         In practice this is not a problem, but might as well do it by the book.
13463         Reported by Rich Felker and Eric Blake; see
13464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13465         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13466         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13468         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13469         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13470         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13471
13472         mktime: #undef mktime before #defining it
13473         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13474
13475         mktime: systematically normalize tm_isdst comparisons
13476         * lib/mktime.c (isdst_differ): New function.
13477         (__mktime_internal): Use it systematically for all isdst comparisons.
13478         This completes the fix for libc BZ #6723, and removes the need for
13479         normalizing tm_isdst.  See
13480         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13481         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13482
13483         mktime: fix some integer overflow issues and sidestep the rest
13484
13485         This was prompted by a bug report by Benjamin Lindner for MinGW
13486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13487         His bug is due to signed integer overflow (0 - INT_MIN), and I
13488         I scanned through mktime.c looking for other integer overflow
13489         problems, fixing all the bugs I found.
13490
13491         Although the C Standard says the resulting code is still not safe
13492         in the presence of integer overflow, in practice it should be good
13493         enough for all real-world two's-complement implementations, except
13494         for debugging environments that deliberately trap on integer
13495         overflow (e.g., gcc -ftrapv).
13496
13497         * lib/mktime.c (WRAPV): New macro.
13498         (SHR): Also check that long_int and time_t shift right in the
13499         usual way, before using the fast-but-unportable method.
13500         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13501         used.  The code already assumed two's complement, so there's
13502         no need to test for alternatives.  All uses removed.
13503         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13504         the C standard.  Problem reported by Rich Felker in
13505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13506         (twos_complement_arithmetic): Also check long_int and time_t.
13507         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13508         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13509         (__mktime_internal): Avoid integer overflow with unary subtraction
13510         in two instances where -1 - X is an adequate replacement for -X,
13511         since the calculations are approximate.
13512
13513 2011-01-29  Eric Blake  <eblake@redhat.com>
13514
13515         mktime: avoid infinite loop
13516         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13517         type; behavior is still undefined but portable to all known targets.
13518         Reported by Rich Felker.
13519
13520 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13521
13522         rename, unlink, same-inode: Relicense.
13523         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13524         * modules/unlink (License): Likewise.
13525         * modules/same-inode (License): Likewise.
13526
13527 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         mktime: avoid problems on NetBSD 5 / i386
13530         * lib/mktime.c (long_int): New type.  This works around a problem
13531         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13532         but time_t is 64 bits, and where I expect the existing code is
13533         wrong in some cases.
13534         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13535         (ydhms_diff): Bring back the compile-time check for wide-enough
13536         year and yday.
13537
13538         mktime: fix misspelling in comment
13539         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13540         This merges all recent glibc changes of importance.
13541
13542 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13543
13544         move-if-change: cope with concurrent mv of identical file.
13545         * build-aux/move-if-change (CMPPROG): Accept environment
13546         variable as an override for `cmp'.
13547         (usage): Document CMPPROG.
13548         Adjust comparison to drop stdout.  Cope with failure of mv if
13549         the target file exists and is identical to the source, for
13550         parallel builds.
13551         Report from H.J. Lu against binutils in PR binutils/12283.
13552
13553 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13554
13555         * users.txt: Mention sharutils.
13556
13557 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13558
13559         * users.txt: Mention OATH Toolkit.
13560
13561 2011-01-27  Bruno Haible  <bruno@clisp.org>
13562
13563         Prepare for supporting FreeBSD 10.
13564         * build-aux/config.libpath: Remove handling of freebsd1*.
13565
13566 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13567
13568         Prepare for supporting FreeBSD 10.
13569         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13570         match FreeBSD 10.0.
13571
13572 2011-01-27  Bruno Haible  <bruno@clisp.org>
13573
13574         vma-iter, get-rusage-as: Add OpenBSD support.
13575         * modules/vma-iter (configure.ac): Test for mquery.
13576         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13577         * lib/vma-iter.c: Include <sys/mman.h>.
13578         (vma_iterate): Add an implementation based on mquery().
13579         * lib/resource-ext.h (get_rusage_as): Update comments.
13580         * lib/get-rusage-as.c: Likewise.
13581         * lib/get-rusage-data.c: Likewise.
13582
13583 2011-01-26  Karl Berry  <karl@gnu.org>
13584
13585         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13586         variables to make it easier to override the makeinfo program used.
13587
13588 2011-01-26  Eric Blake  <eblake@redhat.com>
13589
13590         fcntl: work around Haiku F_DUPFD bugs
13591         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13592         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13593         cloexec bit on duplication.
13594         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13595
13596 2011-01-26  Bruno Haible  <bruno@clisp.org>
13597
13598         Enable memory leak tests on AIX.
13599         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13600         * tests/test-fprintf-posix3.c (main): Likewise.
13601
13602 2011-01-26  Bruno Haible  <bruno@clisp.org>
13603
13604         Tests for module 'get-rusage-data'.
13605         * modules/get-rusage-data-tests: New file.
13606         * tests/test-get-rusage-data.c: New file.
13607
13608         New module 'get-rusage-data'.
13609         * lib/resource-ext.h (get_rusage_data): New declaration.
13610         * lib/get-rusage-data.c: New file.
13611         * modules/get-rusage-data: New file.
13612
13613 2011-01-25  Bruno Haible  <bruno@clisp.org>
13614
13615         get-rusage-as: Allow for easier testing.
13616         * lib/resource-ext.h (get_rusage_as): Add comment.
13617         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13618         (main): New function for interactive testing.
13619
13620 2011-01-25  Bruno Haible  <bruno@clisp.org>
13621
13622         vma-iter: Treat Haiku like BeOS.
13623         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13624         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13625
13626 2011-01-25  Eric Blake  <eblake@redhat.com>
13627
13628         c-stack: fix regression on cygwin when libsigsegv is present
13629         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13630
13631 2011-01-24  Bruno Haible  <bruno@clisp.org>
13632
13633         vma-iter: Avoid empty intervals.
13634         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13635         on an empty interval.
13636
13637 2011-01-24  Jim Meyering  <meyering@redhat.com>
13638
13639         u64: remove unnecessary #include
13640         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13641
13642 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13643
13644         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13645         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13646
13647 2011-01-23  Bruno Haible  <bruno@clisp.org>
13648
13649         New module 'vma-iter'.
13650         * lib/vma-iter.h: New file.
13651         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13652         * modules/vma-iter: New file.
13653         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13654         for get_rusage_as_via_iterator.
13655         (vma_iterate_callback): New function.
13656         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13657         * modules/get-rusage-as (Depends-on): Add vma-iter.
13658
13659 2011-01-23  Bruno Haible  <bruno@clisp.org>
13660
13661         uninorm: Tweak includes.
13662         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13663         Reported by Jim Meyering.
13664
13665 2011-01-23  Bruno Haible  <bruno@clisp.org>
13666
13667         get-rusage-as: Improve on NetBSD.
13668         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13669         /proc, like on FreeBSD.
13670
13671 2011-01-23  Jim Meyering  <meyering@redhat.com>
13672
13673         xreadlink.h: remove unnecessary #include
13674         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13675
13676         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13677         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13678
13679 2011-01-23  Bruno Haible  <bruno@clisp.org>
13680
13681         get-rusage-as: Fix bug.
13682         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13683         original limit when aborting the first loop.
13684
13685 2011-01-23  Bruno Haible  <bruno@clisp.org>
13686
13687         wctype: Ensure valid C syntax.
13688         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13689         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13690
13691 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13692
13693         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13695         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13696         as they are needed only for configure's test case.
13697         This removes two unnecessary symbols from config.h.
13698
13699         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13700         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13702         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13703         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13704         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13705         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13706         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13707         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13708         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13709         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13711         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13712         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13713         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13714         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13715         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13716         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13717
13718 2011-01-21  Eric Blake  <eblake@redhat.com>
13719
13720         maintainer-makefile: work with older git for submodule check
13721         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13722         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13723         Reported by Matthias Bolte.
13724
13725         bootstrap: minor portability fixes
13726         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13727         (usage): Omit leading capital and trailing . on help phrases, per
13728         GNU Coding Standards.
13729         (check_versions, top level): Prefix messages with script name.
13730
13731 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13732
13733         bootstrap: support --no-git option
13734         * build-aux/bootstrap: Add --no-git option, to be used when
13735         --gnulib-srcdir points to the exact desired checkout.
13736
13737 2011-01-21  Eric Blake  <eblake@redhat.com>
13738
13739         strerror_r-posix: work with glibc 2.13
13740         * lib/strerror_r.c (strerror_r): Fix return type.
13741
13742 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13743             Bruno Haible  <bruno@clisp.org>
13744
13745         uN_strstr: New unit tests.
13746         * modules/unistr/u8-strstr-tests: New file.
13747         * modules/unistr/u16-strstr-tests: New file.
13748         * modules/unistr/u32-strstr-tests: New file.
13749         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13750         * tests/unistr/test-u8-strstr.c: New file.
13751         * tests/unistr/test-u16-strstr.c: New file.
13752         * tests/unistr/test-u32-strstr.c: New file.
13753
13754 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13755             Bruno Haible  <bruno@clisp.org>
13756
13757         Make uN_strstr functions O(n) worst-case.
13758         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13759         16-bit and 32-bit unit cases, use the unibyte algorithm from
13760         lib/mbsstr.c.
13761         * lib/unistr/u8-strstr.c: Include <string.h>.
13762         (UNIT_IS_UINT8_T): New macro.
13763         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13764         (U_STRLEN, U_STRNLEN): New macros.
13765         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13766         (U_STRLEN, U_STRNLEN): New macros.
13767         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13768         (configure.ac): Update required libunistring version.
13769         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13770         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13771         malloca.
13772         (configure.ac): Update required libunistring version.
13773         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13774         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13775         malloca.
13776         (configure.ac): Update required libunistring version.
13777
13778 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13779             Bruno Haible  <bruno@clisp.org>
13780
13781         Prepare for faster uN_strstr functions.
13782         * lib/str-kmp.h: Support definable UNITs.
13783         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13784         needle_len argument.
13785         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13786         * lib/mbscasestr.c (mbscasestr): Likewise.
13787
13788 2011-01-21  Pádraig Brady <P@draigBrady.com>
13789
13790         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13791         * tests/test-malloca.c (main): Unset the environment variable
13792         to greatly speed up the test.
13793         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13794         * modules/malloca-tests: Depend on unsetenv.
13795
13796 2011-01-21  Pádraig Brady <P@draigBrady.com>
13797
13798         ignore-value: remove stdint dependency
13799         * lib/ignore-value.h: Remove <stdint.h>
13800         * modules/ignore-value: Remove stdint dependency.
13801
13802 2011-01-21  Jim Meyering  <meyering@redhat.com>
13803
13804         maint.mk: adjust variable name to be consistent with other gl_ vars
13805         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13806         to be lower case.
13807
13808 2011-01-20  Jim Meyering  <meyering@redhat.com>
13809
13810         maint.mk: make "check" depend on public-submodule-commit by default
13811         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13812
13813 2011-01-20  Bruno Haible  <bruno@clisp.org>
13814
13815         mbfile, mbiter: Complete change from 2008-12-21.
13816         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13817         * m4/mbiter.m4 (gl_MBITER): Likewise.
13818
13819 2011-01-20  Jim Meyering  <meyering@redhat.com>
13820
13821         init.sh: insert space between each function name and "()"
13822         * tests/init.sh: Make it a little easier to see that a function's
13823         name is "warn_", and not "warn" when looking at the first part of
13824         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13825
13826 2011-01-20  Jim Meyering  <meyering@redhat.com>
13827
13828         mountlist: clean up code formatting
13829         * lib/mountlist.c (read_file_system_list): Split a long line,
13830         correct bracing style, use NULL in place of "(struct statfs *)0",
13831         don't parenthesize return value, add spaces around "=" and after
13832         ";-in-for-stmt".
13833
13834 2011-01-14  Markus Duft <mduft@gentoo.org>
13835
13836         mountlist: add support for Interix
13837         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13838         Apply statvfs to all entries of /dev/fs.
13839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13840         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13841
13842 2011-01-20  Jim Meyering  <meyering@redhat.com>
13843
13844         maint.mk: improve the public-submodule-commit rule
13845         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13846         to suppress printing of its commands... unless V=1.
13847         Add git submodule's --quiet option to suppress printing of e.g.,
13848         "Entering gnulib" output.
13849         "cd" into $(srcdir) before running git submodule.
13850
13851 2011-01-20  Bruno Haible  <bruno@clisp.org>
13852
13853         include_next: Fix bug introduced on 2011-01-18.
13854         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13855         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13856         ac_cv_header_... variable if the second argument is not 'check'.
13857         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13858         gl_NEXT_HEADERS_INTERNAL.
13859
13860 2011-01-20  Bruno Haible  <bruno@clisp.org>
13861
13862         Allow the user to avoid the GNULIB_TEST_* macros.
13863         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13864         Suggested by Paul Eggert.
13865
13866 2011-01-14  Jim Meyering  <meyering@redhat.com>
13867
13868         bootstrap: avoid failure when there is no .gitmodules file
13869         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13870         has been assigned to, even when its value is the empty string.
13871         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13872         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13873         Reported by John W. Eaton <jwe@gnu.org>.
13874
13875 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13876
13877         assume <ctype.h>, ..., <time.h> exist
13878         For years gnulib has been assuming the existence of the headers
13879         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13880         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13881         them, since they don't appear to be needed.
13882         * README (Portability guidelines): Document this.
13883         * lib/flock.c: Assume <fcntl.h> exists.
13884         * lib/regex_internal.h: Assume <locale.h> exists.
13885         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13886         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13887         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13888         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13889         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13890         * m4/regex.m4 (gl_REGEX): Likewise.
13891         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13892         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13893         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13894         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13895         * tests/test-argp.c: Likewise.
13896         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13897
13898         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13899         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13900         AA_APPLE_UNIVERSAL_BUILD.  See
13901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13902         * NEWS: Document this.
13903
13904 2011-01-19  Eric Blake  <eblake@redhat.com>
13905
13906         c-stack: assume stack overflow if SA_SIGINFO unsupported
13907         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13908         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13909         sigaction will work.
13910         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13911         behavior match Linux.
13912         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13913
13914         stdbool-tests: accomodate Haiku
13915         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13916
13917         binary-io: fix O_TEXT on Haiku
13918         * modules/binary-io (Depends-on): Add fcntl-h.
13919         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13920         than blindly undefining O_TEXT.
13921         Reported by Scott McCreary.
13922
13923 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         include_next: do not check for standard headers like stddef.h
13926
13927         I found this problem when modifying Emacs to use gnulib.
13928         I noticed that it added HAVE_STDDEF_H to config.h, even though
13929         gnulib always assumes <stddef.h> exists as per README and this
13930         symbol is unnecessary.
13931         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13932         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13933         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13934         faster for headers like stddef.h that are known to exist.
13935         (gl_CHECK_NEXT_HEADERS): Use it.
13936         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13937         rather than gl_CHECK_NEXT_HEADERS.
13938         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13939         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13940
13941 2011-01-18  Eric Blake  <eblake@redhat.com>
13942
13943         ansi-c++-opt: skip C++ dependency style if C++ is unused
13944         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13945         tests when we know C++ compilation is not desired.
13946         Reported by Scott McCreary.
13947
13948 2011-01-18  Bruno Haible  <bruno@clisp.org>
13949
13950         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13951         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13952         (main): Perform test also when getrlimit and setrlimit don't exist or
13953         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13954         limiting the address space size using setrlimit, compare the address
13955         space size before and after the the test.
13956         * tests/test-dprintf-posix2.c: Likewise.
13957         * tests/test-fprintf-posix3.sh: Update skip messages.
13958         * tests/test-dprintf-posix2.sh: Likewise.
13959         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13960         * modules/dprintf-posix-tests (Depends-on): Likewise.
13961         Reported by Bruce Korb <bkorb@gnu.org> and
13962         Gary V. Vaughan <gary@gnu.org>.
13963
13964 2011-01-18  Bruno Haible  <bruno@clisp.org>
13965
13966         get-rusage-as: Improvement for Cygwin.
13967         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13968         areas that are merely reserved.
13969
13970 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13971
13972         strftime: remove dependencies on multibyte modules
13973
13974         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13975         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13976         only if __osf__ is defined, and I suspect OSF doesn't need these
13977         other modules.  If my guess is wrong, we'll need to come up with a
13978         variant of strftime that doesn't need the multibyte modules.
13979
13980         I discovered this problem when attempting modify Emacs to use the
13981         strftime module.  With the previous gnulib, this caused Emacs to
13982         need 31 new files, ranging from lib/config.charset to
13983         m4/wint_t.m4.  This was overkill and I expect would be offputting
13984         to the Emacs maintainers.  After this change, only 6 new files are
13985         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13986         stdbool.m4, and tm_gmtoff.m4.
13987
13988         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13989         Suggested by Bruno Haible in
13990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13991         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13992         and do not check for wchar.h.
13993         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13994         (Depends-on): Remove mbrlen, mbsinit, wchar.
13995
13996 2011-01-18  Bruno Haible  <bruno@clisp.org>
13997
13998         Tests for module 'get-rusage-as'.
13999         * modules/get-rusage-as-tests: New file.
14000         * tests/test-get-rusage-as.c: New file.
14001
14002         New module 'get-rusage-as'.
14003         * modules/get-rusage-as: New file.
14004         * lib/resource-ext.h: New file.
14005         * lib/get-rusage-as.c: New file.
14006
14007 2011-01-17  Eric Blake  <eblake@redhat.com>
14008
14009         sigaction: relax license from LGPLv3+ to LGPLv2+
14010         * modules/sigaction (License): Relax to LGPLv2+.
14011
14012 2011-01-14  Bruno Haible  <bruno@clisp.org>
14013
14014         filemode: Make function declarations usable in C++ mode.
14015         * lib/filemode.h: Enclose function declarations in extern "C" block.
14016         Reported by John W. Eaton <jwe@gnu.org>.
14017
14018 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14019
14020         save-cwd: no longer include "xgetcwd.h"
14021         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14022         This avoids a compilation failure in projects that use save-cwd
14023         without also using the xgetcwd module.
14024
14025 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14026
14027         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14028         This is so that a program like Emacs, which needs only dtoastr,
14029         does not have to bother with distributing and compiling ftoastr
14030         and ldtoastr.
14031         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14032         * modules/dtoastr, modules/ldtoastr: New files.
14033         * modules/ftoastr: Now works just for 'float'.
14034         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14035         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14036         dtoastr.c, ldtoastr.c.
14037
14038 2011-01-11  Jim Meyering  <meyering@redhat.com>
14039
14040         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14041         There is no need to work around the lack of the fchdir function,
14042         since gnulib can now provide a replacement when required.
14043         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14044         * modules/save-cwd (Depends-on): Add fchdir.
14045
14046 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14047
14048         openat, save-cwd: avoid xmalloc
14049
14050         This removes a direct (but undocumented) dependency of openat on
14051         xalloc, along with an indirect dependency via save-cwd.  It also
14052         removes a dependency of save-cwd on xgetcwd, and thereby
14053         indirectly on xalloc.  This change causes the openat substitute
14054         to fall back on save_cwd when memory is tight, and for save_cwd to
14055         fail instead of dying when memory is tight, but that's good enough.
14056         Problem and initial idea for fix reported by Bastien Roucaries in
14057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14058
14059         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14060         xalloc.h (for xmalloc).
14061         (openat_proc_name): Use malloc, not xmalloc.
14062         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14063         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14064
14065         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14066         This avoids heap allocation for file names whose lengths are in
14067         the range 512..1023, with the upper bound increasing to at most
14068         4031 depending on the platform's PATH_MAX.  (We do not want
14069         pathmax.h here as it might supply a non-constant PATH_MAX.)
14070         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14071         Perhaps they should be moved to malloca.h?
14072         (OPENAT_BUFFER_SIZE): Use them.
14073
14074 2011-01-10  Bruno Haible  <bruno@clisp.org>
14075
14076         doc: Update users.txt.
14077         * users.txt: Add recutils.
14078
14079 2011-01-09  Karl Berry  <karl@gnu.org>
14080
14081         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14082
14083         * doc/configmake.texi: New file.
14084         * doc/gnulib.texi: Include it.
14085         * modules/configmake: Move documentation from here.
14086
14087 2011-01-09  Bruno Haible  <bruno@clisp.org>
14088
14089         Update to Unicode 6.0.0.
14090         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14091         (get_lbp): Update for Unicode 6.0.0.
14092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14093         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14094         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14095         U+11001, U+11038..U+11046. Remove U+06DE.
14096         (uc_width): Fix bounds of planes.
14097         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14098         lib/uniwidth/width.c.
14099         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14100         trailing whitespace removed.
14101         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14102         without comments, but with the original copyright notice.
14103         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14104         * lib/unicase/ignorable.h: Likewise.
14105         * lib/unicase/tocasefold.h: Likewise.
14106         * lib/unicase/tolower.h: Likewise.
14107         * lib/unicase/totitle.h: Likewise.
14108         * lib/unicase/toupper.h: Likewise.
14109         * lib/unictype/bidi_of.h: Likewise.
14110         * lib/unictype/blocks.h: Likewise.
14111         * lib/unictype/categ_C.h: Likewise.
14112         * lib/unictype/categ_Cn.h: Likewise.
14113         * lib/unictype/categ_L.h: Likewise.
14114         * lib/unictype/categ_Ll.h: Likewise.
14115         * lib/unictype/categ_Lm.h: Likewise.
14116         * lib/unictype/categ_Lo.h: Likewise.
14117         * lib/unictype/categ_Lu.h: Likewise.
14118         * lib/unictype/categ_M.h: Likewise.
14119         * lib/unictype/categ_Mc.h: Likewise.
14120         * lib/unictype/categ_Me.h: Likewise.
14121         * lib/unictype/categ_Mn.h: Likewise.
14122         * lib/unictype/categ_N.h: Likewise.
14123         * lib/unictype/categ_Nd.h: Likewise.
14124         * lib/unictype/categ_No.h: Likewise.
14125         * lib/unictype/categ_P.h: Likewise.
14126         * lib/unictype/categ_Po.h: Likewise.
14127         * lib/unictype/categ_S.h: Likewise.
14128         * lib/unictype/categ_Sc.h: Likewise.
14129         * lib/unictype/categ_Sk.h: Likewise.
14130         * lib/unictype/categ_Sm.h: Likewise.
14131         * lib/unictype/categ_So.h: Likewise.
14132         * lib/unictype/categ_of.h: Likewise.
14133         * lib/unictype/combining.h: Likewise.
14134         * lib/unictype/ctype_alnum.h: Likewise.
14135         * lib/unictype/ctype_alpha.h: Likewise.
14136         * lib/unictype/ctype_graph.h: Likewise.
14137         * lib/unictype/ctype_lower.h: Likewise.
14138         * lib/unictype/ctype_print.h: Likewise.
14139         * lib/unictype/ctype_punct.h: Likewise.
14140         * lib/unictype/ctype_upper.h: Likewise.
14141         * lib/unictype/decdigit.h: Likewise.
14142         * lib/unictype/digit.h: Likewise.
14143         * lib/unictype/numeric.h: Likewise.
14144         * lib/unictype/pr_alphabetic.h: Likewise.
14145         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14146         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14147         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14148         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14149         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14150         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14151         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14152         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14153         * lib/unictype/pr_case_ignorable.h: Likewise.
14154         * lib/unictype/pr_cased.h: Likewise.
14155         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14156         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14157         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14158         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14159         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14160         * lib/unictype/pr_combining.h: Likewise.
14161         * lib/unictype/pr_composite.h: Likewise.
14162         * lib/unictype/pr_currency_symbol.h: Likewise.
14163         * lib/unictype/pr_decimal_digit.h: Likewise.
14164         * lib/unictype/pr_deprecated.h: Likewise.
14165         * lib/unictype/pr_format_control.h: Likewise.
14166         * lib/unictype/pr_grapheme_base.h: Likewise.
14167         * lib/unictype/pr_grapheme_extend.h: Likewise.
14168         * lib/unictype/pr_grapheme_link.h: Likewise.
14169         * lib/unictype/pr_id_continue.h: Likewise.
14170         * lib/unictype/pr_id_start.h: Likewise.
14171         * lib/unictype/pr_ideographic.h: Likewise.
14172         * lib/unictype/pr_lowercase.h: Likewise.
14173         * lib/unictype/pr_math.h: Likewise.
14174         * lib/unictype/pr_numeric.h: Likewise.
14175         * lib/unictype/pr_other_alphabetic.h: Likewise.
14176         * lib/unictype/pr_other_id_continue.h: Likewise.
14177         * lib/unictype/pr_other_math.h: Likewise.
14178         * lib/unictype/pr_punctuation.h: Likewise.
14179         * lib/unictype/pr_sentence_terminal.h: Likewise.
14180         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14181         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14182         * lib/unictype/pr_unified_ideograph.h: Likewise.
14183         * lib/unictype/pr_uppercase.h: Likewise.
14184         * lib/unictype/pr_xid_continue.h: Likewise.
14185         * lib/unictype/pr_xid_start.h: Likewise.
14186         * lib/unictype/scripts.h: Likewise.
14187         * lib/unictype/scripts_byname.gperf: Likewise.
14188         * lib/unictype/sy_java_ident.h: Likewise.
14189         * lib/unigbrk/gbrkprop.h: Likewise.
14190         * lib/unilbrk/lbrkprop1.h: Likewise.
14191         * lib/unilbrk/lbrkprop2.h: Likewise.
14192         * lib/uninorm/decomposition-table2.h: Likewise.
14193         * lib/uniwbrk/wbrkprop.h: Likewise.
14194         * tests/unicase/test-cased.c: Likewise.
14195         * tests/unicase/test-ignorable.c: Likewise.
14196         * tests/unicase/test-uc_tolower.c: Likewise.
14197         * tests/unicase/test-uc_totitle.c: Likewise.
14198         * tests/unicase/test-uc_toupper.c: Likewise.
14199         * tests/unictype/test-categ_C.c: Likewise.
14200         * tests/unictype/test-categ_Cn.c: Likewise.
14201         * tests/unictype/test-categ_L.c: Likewise.
14202         * tests/unictype/test-categ_Ll.c: Likewise.
14203         * tests/unictype/test-categ_Lm.c: Likewise.
14204         * tests/unictype/test-categ_Lo.c: Likewise.
14205         * tests/unictype/test-categ_Lu.c: Likewise.
14206         * tests/unictype/test-categ_M.c: Likewise.
14207         * tests/unictype/test-categ_Mc.c: Likewise.
14208         * tests/unictype/test-categ_Me.c: Likewise.
14209         * tests/unictype/test-categ_Mn.c: Likewise.
14210         * tests/unictype/test-categ_N.c: Likewise.
14211         * tests/unictype/test-categ_Nd.c: Likewise.
14212         * tests/unictype/test-categ_No.c: Likewise.
14213         * tests/unictype/test-categ_P.c: Likewise.
14214         * tests/unictype/test-categ_Po.c: Likewise.
14215         * tests/unictype/test-categ_S.c: Likewise.
14216         * tests/unictype/test-categ_Sc.c: Likewise.
14217         * tests/unictype/test-categ_Sk.c: Likewise.
14218         * tests/unictype/test-categ_Sm.c: Likewise.
14219         * tests/unictype/test-categ_So.c: Likewise.
14220         * tests/unictype/test-ctype_alnum.c: Likewise.
14221         * tests/unictype/test-ctype_alpha.c: Likewise.
14222         * tests/unictype/test-ctype_graph.c: Likewise.
14223         * tests/unictype/test-ctype_lower.c: Likewise.
14224         * tests/unictype/test-ctype_print.c: Likewise.
14225         * tests/unictype/test-ctype_punct.c: Likewise.
14226         * tests/unictype/test-ctype_upper.c: Likewise.
14227         * tests/unictype/test-decdigit.h: Likewise.
14228         * tests/unictype/test-digit.h: Likewise.
14229         * tests/unictype/test-numeric.h: Likewise.
14230         * tests/unictype/test-pr_alphabetic.c: Likewise.
14231         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14232         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14233         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14234         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14235         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14236         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14237         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14238         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14239         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14240         * tests/unictype/test-pr_cased.c: Likewise.
14241         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14242         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14243         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14244         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14245         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14246         * tests/unictype/test-pr_combining.c: Likewise.
14247         * tests/unictype/test-pr_composite.c: Likewise.
14248         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14249         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14250         * tests/unictype/test-pr_deprecated.c: Likewise.
14251         * tests/unictype/test-pr_format_control.c: Likewise.
14252         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14253         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14254         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14255         * tests/unictype/test-pr_id_continue.c: Likewise.
14256         * tests/unictype/test-pr_id_start.c: Likewise.
14257         * tests/unictype/test-pr_ideographic.c: Likewise.
14258         * tests/unictype/test-pr_lowercase.c: Likewise.
14259         * tests/unictype/test-pr_math.c: Likewise.
14260         * tests/unictype/test-pr_numeric.c: Likewise.
14261         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14262         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14263         * tests/unictype/test-pr_other_math.c: Likewise.
14264         * tests/unictype/test-pr_punctuation.c: Likewise.
14265         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14266         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14267         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14268         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14269         * tests/unictype/test-pr_uppercase.c: Likewise.
14270         * tests/unictype/test-pr_xid_continue.c: Likewise.
14271         * tests/unictype/test-pr_xid_start.c: Likewise.
14272         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14273         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14274         changes.
14275         * lib/unictype/categ_Cc.h: Likewise.
14276         * lib/unictype/categ_Cf.h: Likewise.
14277         * lib/unictype/categ_Co.h: Likewise.
14278         * lib/unictype/categ_Cs.h: Likewise.
14279         * lib/unictype/categ_Lt.h: Likewise.
14280         * lib/unictype/categ_Nl.h: Likewise.
14281         * lib/unictype/categ_Pc.h: Likewise.
14282         * lib/unictype/categ_Pd.h: Likewise.
14283         * lib/unictype/categ_Pe.h: Likewise.
14284         * lib/unictype/categ_Pf.h: Likewise.
14285         * lib/unictype/categ_Pi.h: Likewise.
14286         * lib/unictype/categ_Ps.h: Likewise.
14287         * lib/unictype/categ_Z.h: Likewise.
14288         * lib/unictype/categ_Zl.h: Likewise.
14289         * lib/unictype/categ_Zp.h: Likewise.
14290         * lib/unictype/categ_Zs.h: Likewise.
14291         * lib/unictype/ctype_blank.h: Likewise.
14292         * lib/unictype/ctype_cntrl.h: Likewise.
14293         * lib/unictype/ctype_digit.h: Likewise.
14294         * lib/unictype/ctype_space.h: Likewise.
14295         * lib/unictype/ctype_xdigit.h: Likewise.
14296         * lib/unictype/mirror.h: Likewise.
14297         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14298         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14299         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14300         * lib/unictype/pr_bidi_control.h: Likewise.
14301         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14302         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14303         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14304         * lib/unictype/pr_bidi_pdf.h: Likewise.
14305         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14306         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14307         * lib/unictype/pr_dash.h: Likewise.
14308         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14309         * lib/unictype/pr_diacritic.h: Likewise.
14310         * lib/unictype/pr_extender.h: Likewise.
14311         * lib/unictype/pr_hex_digit.h: Likewise.
14312         * lib/unictype/pr_hyphen.h: Likewise.
14313         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14314         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14315         * lib/unictype/pr_ignorable_control.h: Likewise.
14316         * lib/unictype/pr_iso_control.h: Likewise.
14317         * lib/unictype/pr_join_control.h: Likewise.
14318         * lib/unictype/pr_left_of_pair.h: Likewise.
14319         * lib/unictype/pr_line_separator.h: Likewise.
14320         * lib/unictype/pr_logical_order_exception.h: Likewise.
14321         * lib/unictype/pr_non_break.h: Likewise.
14322         * lib/unictype/pr_not_a_character.h: Likewise.
14323         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14324         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14325         * lib/unictype/pr_other_id_start.h: Likewise.
14326         * lib/unictype/pr_other_lowercase.h: Likewise.
14327         * lib/unictype/pr_other_uppercase.h: Likewise.
14328         * lib/unictype/pr_paired_punctuation.h: Likewise.
14329         * lib/unictype/pr_paragraph_separator.h: Likewise.
14330         * lib/unictype/pr_pattern_syntax.h: Likewise.
14331         * lib/unictype/pr_pattern_white_space.h: Likewise.
14332         * lib/unictype/pr_private_use.h: Likewise.
14333         * lib/unictype/pr_quotation_mark.h: Likewise.
14334         * lib/unictype/pr_radical.h: Likewise.
14335         * lib/unictype/pr_soft_dotted.h: Likewise.
14336         * lib/unictype/pr_space.h: Likewise.
14337         * lib/unictype/pr_titlecase.h: Likewise.
14338         * lib/unictype/pr_variation_selector.h: Likewise.
14339         * lib/unictype/pr_white_space.h: Likewise.
14340         * lib/unictype/pr_zero_width.h: Likewise.
14341         * lib/unictype/sy_c_ident.h: Likewise.
14342         * lib/unictype/sy_c_whitespace.h: Likewise.
14343         * lib/unictype/sy_java_whitespace.h: Likewise.
14344         * lib/uninorm/composition-table.gperf: Likewise.
14345         * lib/uninorm/decomposition-table1.h: Likewise.
14346         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14347         LB8.
14348         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14349         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14350         * modules/unictype/*: Bump version number of expected libunistring
14351         version.
14352
14353 2011-01-09  Bruno Haible  <bruno@clisp.org>
14354
14355         Update to Unicode 5.2.0.
14356         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14357         trailing whitespace removed.
14358
14359 2011-01-09  Bruno Haible  <bruno@clisp.org>
14360
14361         New Unicode character properties, from Unicode 5.2.0.
14362         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14363         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14364         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14365         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14366         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14367         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14368         uc_is_property_cased, uc_is_property_case_ignorable,
14369         uc_is_property_changes_when_lowercased,
14370         uc_is_property_changes_when_uppercased,
14371         uc_is_property_changes_when_titlecased,
14372         uc_is_property_changes_when_casefolded,
14373         uc_is_property_changes_when_casemapped): New declarations.
14374         * lib/unictype/pr_byname.gperf: Add the new properties.
14375         * modules/unictype/property-byname (Depends-on): Depend on the new
14376         properties modules.
14377         * modules/unictype/property-all (Depends-on): Likewise.
14378         * MODULES.html.sh (Unicode string functions): Add
14379         unictype/property-case-ignorable, unictype/property-cased,
14380         unictype/property-changes-when-casefolded,
14381         unictype/property-changes-when-casemapped,
14382         unictype/property-changes-when-lowercased,
14383         unictype/property-changes-when-titlecased,
14384         unictype/property-changes-when-uppercased.
14385
14386         New module 'unictype/property-changes-when-casemapped'.
14387         * modules/unictype/property-changes-when-casemapped: New file.
14388         * lib/unictype/pr_changes_when_casemapped.c: New file.
14389         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14390         generated by gen-uni-tables.
14391         * modules/unictype/property-changes-when-casemapped-tests: New file.
14392         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14393         automatically generated by gen-uni-tables.
14394
14395         New module 'unictype/property-changes-when-casefolded'.
14396         * modules/unictype/property-changes-when-casefolded: New file.
14397         * lib/unictype/pr_changes_when_casefolded.c: New file.
14398         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14399         generated by gen-uni-tables.
14400         * modules/unictype/property-changes-when-casefolded-tests: New file.
14401         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14402         automatically generated by gen-uni-tables.
14403
14404         New module 'unictype/property-changes-when-titlecased'.
14405         * modules/unictype/property-changes-when-titlecased: New file.
14406         * lib/unictype/pr_changes_when_titlecased.c: New file.
14407         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14408         generated by gen-uni-tables.
14409         * modules/unictype/property-changes-when-titlecased-tests: New file.
14410         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14411         automatically generated by gen-uni-tables.
14412
14413         New module 'unictype/property-changes-when-uppercased'.
14414         * modules/unictype/property-changes-when-uppercased: New file.
14415         * lib/unictype/pr_changes_when_uppercased.c: New file.
14416         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14417         generated by gen-uni-tables.
14418         * modules/unictype/property-changes-when-uppercased-tests: New file.
14419         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14420         automatically generated by gen-uni-tables.
14421
14422         New module 'unictype/property-changes-when-lowercased'.
14423         * modules/unictype/property-changes-when-lowercased: New file.
14424         * lib/unictype/pr_changes_when_lowercased.c: New file.
14425         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14426         generated by gen-uni-tables.
14427         * modules/unictype/property-changes-when-lowercased-tests: New file.
14428         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14429         automatically generated by gen-uni-tables.
14430
14431         New module 'unictype/property-case-ignorable'.
14432         * modules/unictype/property-case-ignorable: New file.
14433         * lib/unictype/pr_case_ignorable.c: New file.
14434         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14435         by gen-uni-tables.
14436         * modules/unictype/property-case-ignorable-tests: New file.
14437         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14438         generated by gen-uni-tables.
14439
14440         New module 'unictype/property-cased'.
14441         * modules/unictype/property-cased: New file.
14442         * lib/unictype/pr_cased.c: New file.
14443         * lib/unictype/pr_cased.h: New file, automatically generated by
14444         gen-uni-tables.
14445         * modules/unictype/property-cased-tests: New file.
14446         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14447         gen-uni-tables.
14448
14449 2011-01-09  Bruno Haible  <bruno@clisp.org>
14450
14451         Update to Unicode 5.2.0.
14452         * lib/gen-uni-tables.c (output_predicate, output_category,
14453         output_combclass, output_bidi_category, output_decimal_digit_test,
14454         output_decimal_digit, output_digit_test, output_digit,
14455         output_numeric_test, output_numeric, output_mirror, output_scripts,
14456         output_scripts_byname, output_blocks, output_ident_category): Fix
14457         comment header.
14458         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14459         get_wbp.
14460         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14461         items.
14462         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14463         Changes_When_Lowercased, Changes_When_Uppercased,
14464         Changes_When_Titlecased, Changes_When_Casefolded,
14465         Changes_When_Casemapped.
14466         (is_property_alphabetic, is_property_default_ignorable_code_point):
14467         Update for Unicode 5.2.0.
14468         (is_property_cased, is_property_case_ignorable,
14469         is_property_changes_when_lowercased,
14470         is_property_changes_when_uppercased,
14471         is_property_changes_when_titlecased,
14472         is_property_changes_when_casefolded,
14473         is_property_changes_when_casemapped): New functions.
14474         (output_properties): Output also the properties cased, case_ignorable,
14475         changes_when_lowercased, changes_when_uppercased,
14476         changes_when_titlecased, changes_when_casefolded,
14477         changes_when_casemapped.
14478         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14479         Unicode TR#11 revision 17 -> 19.
14480         (LBP_CP): New enumeration value.
14481         (LBP_*): Adjust values accordingly.
14482         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14483         TR#14 revision 22 -> 24.
14484         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14485         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14486         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14487         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14488         is_WBP_MIDLETTER.
14489         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14490         the code1 and code2 of each composition rule.
14491         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14492         * lib/unicase/ignorable.h: Likewise.
14493         * lib/unicase/tocasefold.h: Likewise.
14494         * lib/unicase/tolower.h: Likewise.
14495         * lib/unicase/totitle.h: Likewise.
14496         * lib/unicase/toupper.h: Likewise.
14497         * lib/unictype/bidi_of.h: Likewise.
14498         * lib/unictype/blocks.h: Likewise.
14499         * lib/unictype/categ_C.h: Likewise.
14500         * lib/unictype/categ_Cf.h: Likewise.
14501         * lib/unictype/categ_Cn.h: Likewise.
14502         * lib/unictype/categ_L.h: Likewise.
14503         * lib/unictype/categ_Ll.h: Likewise.
14504         * lib/unictype/categ_Lm.h: Likewise.
14505         * lib/unictype/categ_Lo.h: Likewise.
14506         * lib/unictype/categ_Lu.h: Likewise.
14507         * lib/unictype/categ_M.h: Likewise.
14508         * lib/unictype/categ_Mc.h: Likewise.
14509         * lib/unictype/categ_Mn.h: Likewise.
14510         * lib/unictype/categ_N.h: Likewise.
14511         * lib/unictype/categ_Nd.h: Likewise.
14512         * lib/unictype/categ_Nl.h: Likewise.
14513         * lib/unictype/categ_No.h: Likewise.
14514         * lib/unictype/categ_P.h: Likewise.
14515         * lib/unictype/categ_Pd.h: Likewise.
14516         * lib/unictype/categ_Po.h: Likewise.
14517         * lib/unictype/categ_S.h: Likewise.
14518         * lib/unictype/categ_Sc.h: Likewise.
14519         * lib/unictype/categ_So.h: Likewise.
14520         * lib/unictype/categ_of.h: Likewise.
14521         * lib/unictype/combining.h: Likewise.
14522         * lib/unictype/ctype_alnum.h: Likewise.
14523         * lib/unictype/ctype_alpha.h: Likewise.
14524         * lib/unictype/ctype_graph.h: Likewise.
14525         * lib/unictype/ctype_lower.h: Likewise.
14526         * lib/unictype/ctype_print.h: Likewise.
14527         * lib/unictype/ctype_punct.h: Likewise.
14528         * lib/unictype/ctype_upper.h: Likewise.
14529         * lib/unictype/decdigit.h: Likewise.
14530         * lib/unictype/digit.h: Likewise.
14531         * lib/unictype/numeric.h: Likewise.
14532         * lib/unictype/pr_alphabetic.h: Likewise.
14533         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14534         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14535         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14536         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14537         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14538         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14539         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14540         * lib/unictype/pr_combining.h: Likewise.
14541         * lib/unictype/pr_composite.h: Likewise.
14542         * lib/unictype/pr_currency_symbol.h: Likewise.
14543         * lib/unictype/pr_dash.h: Likewise.
14544         * lib/unictype/pr_decimal_digit.h: Likewise.
14545         * lib/unictype/pr_deprecated.h: Likewise.
14546         * lib/unictype/pr_diacritic.h: Likewise.
14547         * lib/unictype/pr_extender.h: Likewise.
14548         * lib/unictype/pr_grapheme_base.h: Likewise.
14549         * lib/unictype/pr_grapheme_extend.h: Likewise.
14550         * lib/unictype/pr_grapheme_link.h: Likewise.
14551         * lib/unictype/pr_id_continue.h: Likewise.
14552         * lib/unictype/pr_id_start.h: Likewise.
14553         * lib/unictype/pr_ideographic.h: Likewise.
14554         * lib/unictype/pr_ignorable_control.h: Likewise.
14555         * lib/unictype/pr_logical_order_exception.h: Likewise.
14556         * lib/unictype/pr_lowercase.h: Likewise.
14557         * lib/unictype/pr_numeric.h: Likewise.
14558         * lib/unictype/pr_other_alphabetic.h: Likewise.
14559         * lib/unictype/pr_punctuation.h: Likewise.
14560         * lib/unictype/pr_sentence_terminal.h: Likewise.
14561         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14562         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14563         * lib/unictype/pr_unified_ideograph.h: Likewise.
14564         * lib/unictype/pr_uppercase.h: Likewise.
14565         * lib/unictype/pr_xid_continue.h: Likewise.
14566         * lib/unictype/pr_xid_start.h: Likewise.
14567         * lib/unictype/pr_zero_width.h: Likewise.
14568         * lib/unictype/scripts.h: Likewise.
14569         * lib/unictype/scripts_byname.gperf: Likewise.
14570         * lib/unictype/sy_java_ident.h: Likewise.
14571         * lib/unigbrk/gbrkprop.h: Likewise.
14572         * lib/unilbrk/lbrkprop1.h: Likewise.
14573         * lib/unilbrk/lbrkprop2.h: Likewise.
14574         * lib/unilbrk/lbrktables.h: Likewise.
14575         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14576         LBP_CP. Implement rule LB30.
14577         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14578         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14579         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14580         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14581         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14582         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14583         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14584         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14585         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14586         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14587         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14588         bits instead of 16 bits in the code1 and code2 of each composition
14589         rule.
14590         (uc_composition): Update for Unicode 5.2.0.
14591         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14592         * lib/uninorm/decomposition-table2.h: Likewise.
14593         * lib/uniwbrk/wbrkprop.h: Likewise.
14594         * tests/unicase/test-cased.c: Likewise.
14595         * tests/unicase/test-ignorable.c: Likewise.
14596         * tests/unicase/test-uc_tolower.c: Likewise.
14597         * tests/unicase/test-uc_totitle.c: Likewise.
14598         * tests/unicase/test-uc_toupper.c: Likewise.
14599         * tests/unictype/test-categ_C.c: Likewise.
14600         * tests/unictype/test-categ_Cf.c: Likewise.
14601         * tests/unictype/test-categ_Cn.c: Likewise.
14602         * tests/unictype/test-categ_L.c: Likewise.
14603         * tests/unictype/test-categ_Ll.c: Likewise.
14604         * tests/unictype/test-categ_Lm.c: Likewise.
14605         * tests/unictype/test-categ_Lo.c: Likewise.
14606         * tests/unictype/test-categ_Lu.c: Likewise.
14607         * tests/unictype/test-categ_M.c: Likewise.
14608         * tests/unictype/test-categ_Mc.c: Likewise.
14609         * tests/unictype/test-categ_Mn.c: Likewise.
14610         * tests/unictype/test-categ_N.c: Likewise.
14611         * tests/unictype/test-categ_Nd.c: Likewise.
14612         * tests/unictype/test-categ_Nl.c: Likewise.
14613         * tests/unictype/test-categ_No.c: Likewise.
14614         * tests/unictype/test-categ_P.c: Likewise.
14615         * tests/unictype/test-categ_Pd.c: Likewise.
14616         * tests/unictype/test-categ_Po.c: Likewise.
14617         * tests/unictype/test-categ_S.c: Likewise.
14618         * tests/unictype/test-categ_Sc.c: Likewise.
14619         * tests/unictype/test-categ_So.c: Likewise.
14620         * tests/unictype/test-ctype_alnum.c: Likewise.
14621         * tests/unictype/test-ctype_alpha.c: Likewise.
14622         * tests/unictype/test-ctype_graph.c: Likewise.
14623         * tests/unictype/test-ctype_lower.c: Likewise.
14624         * tests/unictype/test-ctype_print.c: Likewise.
14625         * tests/unictype/test-ctype_punct.c: Likewise.
14626         * tests/unictype/test-ctype_upper.c: Likewise.
14627         * tests/unictype/test-decdigit.h: Likewise.
14628         * tests/unictype/test-digit.h: Likewise.
14629         * tests/unictype/test-numeric.h: Likewise.
14630         * tests/unictype/test-pr_alphabetic.c: Likewise.
14631         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14632         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14633         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14634         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14635         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14636         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14637         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14638         * tests/unictype/test-pr_combining.c: Likewise.
14639         * tests/unictype/test-pr_composite.c: Likewise.
14640         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14641         * tests/unictype/test-pr_dash.c: Likewise.
14642         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14643         * tests/unictype/test-pr_deprecated.c: Likewise.
14644         * tests/unictype/test-pr_diacritic.c: Likewise.
14645         * tests/unictype/test-pr_extender.c: Likewise.
14646         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14647         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14648         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14649         * tests/unictype/test-pr_id_continue.c: Likewise.
14650         * tests/unictype/test-pr_id_start.c: Likewise.
14651         * tests/unictype/test-pr_ideographic.c: Likewise.
14652         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14653         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14654         * tests/unictype/test-pr_lowercase.c: Likewise.
14655         * tests/unictype/test-pr_numeric.c: Likewise.
14656         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14657         * tests/unictype/test-pr_punctuation.c: Likewise.
14658         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14659         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14660         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14661         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14662         * tests/unictype/test-pr_uppercase.c: Likewise.
14663         * tests/unictype/test-pr_xid_continue.c: Likewise.
14664         * tests/unictype/test-pr_xid_start.c: Likewise.
14665         * tests/unictype/test-pr_zero_width.c: Likewise.
14666         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14667         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14668         changed behaviour: line breaking is now disallowed between a letter
14669         or '=' and '('.
14670         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14671         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14672         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14673         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14674         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14675         lib/uniwidth/width.c.
14676         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14677         without comments, but with the original copyright notice.
14678         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14679         changes.
14680         * lib/unictype/categ_Cc.h: Likewise.
14681         * lib/unictype/categ_Co.h: Likewise.
14682         * lib/unictype/categ_Cs.h: Likewise.
14683         * lib/unictype/categ_Lt.h: Likewise.
14684         * lib/unictype/categ_Me.h: Likewise.
14685         * lib/unictype/categ_Pc.h: Likewise.
14686         * lib/unictype/categ_Pe.h: Likewise.
14687         * lib/unictype/categ_Pf.h: Likewise.
14688         * lib/unictype/categ_Pi.h: Likewise.
14689         * lib/unictype/categ_Ps.h: Likewise.
14690         * lib/unictype/categ_Sk.h: Likewise.
14691         * lib/unictype/categ_Sm.h: Likewise.
14692         * lib/unictype/categ_Z.h: Likewise.
14693         * lib/unictype/categ_Zl.h: Likewise.
14694         * lib/unictype/categ_Zp.h: Likewise.
14695         * lib/unictype/categ_Zs.h: Likewise.
14696         * lib/unictype/ctype_blank.h: Likewise.
14697         * lib/unictype/ctype_cntrl.h: Likewise.
14698         * lib/unictype/ctype_digit.h: Likewise.
14699         * lib/unictype/ctype_space.h: Likewise.
14700         * lib/unictype/ctype_xdigit.h: Likewise.
14701         * lib/unictype/mirror.h: Likewise.
14702         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14703         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14704         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14705         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14706         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14707         * lib/unictype/pr_bidi_control.h: Likewise.
14708         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14709         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14710         * lib/unictype/pr_bidi_pdf.h: Likewise.
14711         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14712         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14713         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14714         * lib/unictype/pr_format_control.h: Likewise.
14715         * lib/unictype/pr_hex_digit.h: Likewise.
14716         * lib/unictype/pr_hyphen.h: Likewise.
14717         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14718         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14719         * lib/unictype/pr_iso_control.h: Likewise.
14720         * lib/unictype/pr_join_control.h: Likewise.
14721         * lib/unictype/pr_left_of_pair.h: Likewise.
14722         * lib/unictype/pr_line_separator.h: Likewise.
14723         * lib/unictype/pr_math.h: Likewise.
14724         * lib/unictype/pr_non_break.h: Likewise.
14725         * lib/unictype/pr_not_a_character.h: Likewise.
14726         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14727         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14728         * lib/unictype/pr_other_id_continue.h: Likewise.
14729         * lib/unictype/pr_other_id_start.h: Likewise.
14730         * lib/unictype/pr_other_lowercase.h: Likewise.
14731         * lib/unictype/pr_other_math.h: Likewise.
14732         * lib/unictype/pr_other_uppercase.h: Likewise.
14733         * lib/unictype/pr_paired_punctuation.h: Likewise.
14734         * lib/unictype/pr_paragraph_separator.h: Likewise.
14735         * lib/unictype/pr_pattern_syntax.h: Likewise.
14736         * lib/unictype/pr_pattern_white_space.h: Likewise.
14737         * lib/unictype/pr_private_use.h: Likewise.
14738         * lib/unictype/pr_quotation_mark.h: Likewise.
14739         * lib/unictype/pr_radical.h: Likewise.
14740         * lib/unictype/pr_soft_dotted.h: Likewise.
14741         * lib/unictype/pr_space.h: Likewise.
14742         * lib/unictype/pr_titlecase.h: Likewise.
14743         * lib/unictype/pr_variation_selector.h: Likewise.
14744         * lib/unictype/pr_white_space.h: Likewise.
14745         * lib/unictype/sy_c_ident.h: Likewise.
14746         * lib/unictype/sy_c_whitespace.h: Likewise.
14747         * lib/unictype/sy_java_whitespace.h: Likewise.
14748         * modules/uni*/*: Bump version number of expected libunistring version.
14749         Reported by Simon Josefsson.
14750
14751 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14752
14753         useless-if-before-free: fix typo in --help and make the internal,
14754         automatic version date update process work once again.
14755         --help output contained a NUL character instead of the
14756         backslash-zero that was intended.  Also, the "must lie within
14757         the first 8 lines" line is on line 9, and hence not getting
14758         automatically updated.
14759         * build-aux/useless-if-before-free: Fix the former by adding a
14760         backslash, and the latter by condensing the three lines of what-it-does
14761         to a single line, leaving one line of slack for the future.
14762
14763 2011-01-09  Bruno Haible  <bruno@clisp.org>
14764
14765         uniwidth/width: Fix width of U+1D173..U+1D17A.
14766         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14767         symbolic_width, output_width_property_test): New functions.
14768         (main): Invoke output_nonspacing_property, output_width_property_test.
14769         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14770         U+1D173..U+1D17A.
14771         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14772         1.
14773         * modules/uniwidth/*: Bump version number of expected libunistring
14774         version.
14775         * modules/unilbrk/*: Likewise.
14776
14777 2011-01-08  Bruno Haible  <bruno@clisp.org>
14778
14779         uninorm tests: Preserve copyright of Unicode data file.
14780         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14781         Mention modifications.
14782
14783 2011-01-08  Bruno Haible  <bruno@clisp.org>
14784
14785         gen-uni-tables: Prepare for Unicode 5.2.0.
14786         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14787         (debug_output_lbp, output_lbp): Update.
14788
14789 2011-01-08  Bruno Haible  <bruno@clisp.org>
14790
14791         unilbrk: Clarify gen-uni-tables.c code.
14792         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14793         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14794         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14795
14796 2011-01-07  Bruno Haible  <bruno@clisp.org>
14797
14798         strtod: Restore errno when successfully parsing Infinity or NaN.
14799         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14800         restore the original errno.
14801
14802 2011-01-07  Bruno Haible  <bruno@clisp.org>
14803
14804         remove test: Avoid failure on HP-UX 11.
14805         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14806
14807 2011-01-07  Bruno Haible  <bruno@clisp.org>
14808
14809         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14810         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14811         error code.
14812
14813 2011-01-07  Pádraig Brady <P@draigBrady.com>
14814
14815         ignore-value: fixup comments, and add Eric Blake
14816         as an author since he rewrote the macros.
14817         * lib/ignore-value.h (ignore_value):  State that
14818         we now support aggregates.  Also specify exactly
14819         when the GCC warn_unused_result feature was added.
14820
14821 2011-01-06  Eric Blake  <eblake@redhat.com>
14822
14823         ignore-value: support aggregate types
14824         * lib/ignore-value.h (ignore_value): Provide separate gcc
14825         definition.
14826         * modules/ignore-value-tests: New test module.
14827         * tests/test-ignore-value.c: New test.
14828
14829         maint.mk: improve sc_prohibit_strcmp regex
14830         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14831         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14832         definition of STRNEQ.
14833
14834         signal: work around Haiku issue with SIGBUS
14835         * lib/siglist.h: Add comment.
14836         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14837         strsignal's favoring of SIGSEGV.
14838         * tests/test-signal.c (main): Avoid test failure.
14839         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14840         Reported by Scott McCreary.
14841
14842         maint.mk: add pre-release check to ensure submodule commits are public
14843         * top/maint.mk (public-submodule-commit): New rule.
14844         (submodule-checks): New variable.
14845         (alpha beta stable): Depend on the variable.
14846
14847 2011-01-05  Pádraig Brady <P@draigBrady.com>
14848         and Jim Meyering  <meyering@redhat.com>
14849
14850         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14851         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14852         (ATTRIBUTE_DEPRECATED): Define.
14853         (_ignore_case): New function.
14854         (ignore_value): New macro, to replace the old function.
14855         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14856         * modules/ignore-value (Depends-on): Add stdint.
14857
14858 2011-01-04  Eric Blake  <eblake@redhat.com>
14859
14860         doc: regenerate INSTALL
14861         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14862         @firstparagraphindent support, now that autoconf dropped it.
14863         (INSTALL_PRELUDE): Reinstate old macro.
14864         * doc/install.texi: Resync from autoconf.
14865         * doc/INSTALL: Reflect recent autoconf update.
14866         * doc/INSTALL.ISO: Likewise.
14867         * doc/INSTALL.UTF-8: Likewise.
14868         Reported by Karl Berry.
14869
14870 2011-01-04  Bruce Korb  <address@hidden>
14871
14872         git-version-gen: avoid a sub-shell
14873         * build-aux/git-version-gen: Redirect stderr in `...` via
14874         "exec 2>...", rather than via an added sub-shell.
14875
14876 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14877
14878         git-version-gen: use (...) rather than sh -c '...'
14879         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14880         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14881
14882 2011-01-03  Jim Meyering  <meyering@redhat.com>
14883
14884         git-version-gen: convert leading TABs to spaces
14885         * build-aux/git-version-gen: Expand leading TABs.
14886
14887         git-version-gen: handle failed "git rev-list"
14888         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14889         from git and proceeding as if it had succeeded but printed no SHA1
14890         checksums, suppress the diagnostic and handle the failure.
14891         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14892
14893         git-version-gen: include command name in one more diagnostic
14894         * build-aux/git-version-gen: When the required .tarball-version file
14895         was missing or unreadable, you might see the diagnostic from "cat",
14896         but no trace of the name of the invoking script.  Now, you still see
14897         the diagnostic from cat, but also get one from "git-version-gen: ".
14898         Inspired by a patch from Bruce Korb.
14899
14900         update-copyright: adjust test to match changed code
14901         * tests/test-update-copyright.sh: Change test's expected output
14902         to match new actual output.
14903
14904 2011-01-02  Bruno Haible  <bruno@clisp.org>
14905
14906         getlogin_r: Avoid test failure on HP-UX 11.
14907         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14908         ERANGE when the second argument is zero.
14909         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14910         portability problem.
14911
14912 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14913
14914         * build-aux/update-copyright: doc Simon's changes
14915
14916 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14917
14918         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14919         environment variable.
14920
14921 2011-01-02  Bruno Haible  <bruno@clisp.org>
14922
14923         unigbrk: Avoid gcc warnings.
14924         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14925         unused variable.
14926         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14927         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14928         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14929         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14930         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14931         Change type of first argument to 'const char *'.
14932         (main): Remove unused variable.
14933         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14934         type of first argument to 'const char *'.
14935         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14936         Likewise.
14937         (main): Change type of variable 's'.
14938         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14939         to 'int'.
14940
14941 2011-01-02  Bruno Haible  <bruno@clisp.org>
14942
14943         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14944         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14945         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14946         bug.
14947         * lib/pwrite.c: Undo 2010-12-31 patch.
14948         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14949
14950 2011-01-02  Bruno Haible  <bruno@clisp.org>
14951
14952         pread: Fix test whether it works.
14953         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14954
14955 2011-01-02  Bruno Haible  <bruno@clisp.org>
14956
14957         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14958         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14959         ends in "6". Don't require a specific month name. Try also the locale
14960         names found on HP-UX 11 and Solaris 7.
14961
14962 2011-01-02  Bruno Haible  <bruno@clisp.org>
14963
14964         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14965         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14966         C linkage.
14967         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14968
14969 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14970
14971         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14972         for consistency, since the "cluster" term is not used elsewhere.
14973         * lib/unigbrk.in.h: Update name.
14974         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14975         * lib/unigbrk/u16-grapheme-next.c: Update name.
14976         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14977         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14978         * lib/unigbrk/u32-grapheme-next.c: Update name.
14979         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14980         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14981         * lib/unigbrk/u8-grapheme-next.c: Update name.
14982         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14983         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14984         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14985         Suggested by Bruno Haible.
14986
14987 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14988
14989         Remove module 'u8-grapheme-len' as too redundant with
14990         'u8-grapheme-next'.
14991         * modules/unigbrk/u8-grapheme-len: Delete file.
14992         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14993         * lib/unigbrk.in.h: Remove prototype for deleted function.
14994         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14995         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14996
14997         Remove module 'u16-grapheme-len' as too redundant with
14998         'u16-grapheme-next'.
14999         * modules/unigbrk/u16-grapheme-len: Delete file.
15000         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15001         * lib/unigbrk.in.h: Remove prototype for deleted function.
15002         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15003         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15004
15005         Remove module 'u32-grapheme-len' as too redundant with
15006         'u32-grapheme-next'.
15007         * modules/unigbrk/u32-grapheme-len: Delete file.
15008         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15009         * lib/unigbrk.in.h: Remove prototype for deleted function.
15010         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15011         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15012
15013         Suggested by Bruno Haible.
15014
15015 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15016
15017         * unigbrk.in.h: Fix typo: "ben" => "been".
15018         Reported by Bruno Haible.
15019
15020 2011-01-01  Jim Meyering  <meyering@redhat.com>
15021
15022         maint: update almost all copyright ranges to include 2011
15023         Run the new "make update-copyright" rule.
15024
15025 2011-01-01  Jim Meyering  <meyering@redhat.com>
15026
15027         maint: update-copyright: exempt doc/INSTALL*
15028         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15029         since they are generated.  Suggested by Bruno Haible.
15030
15031 2011-01-01  Jim Meyering  <meyering@redhat.com>
15032
15033         maint: refine the update-copyright rule
15034         * Makefile (update-copyright): Also exclude any file that includes
15035         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15036         code that merely generates the comment.
15037
15038 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15039
15040         New module 'u8-grapheme-len'.
15041         * modules/unigbrk/u8-grapheme-len: New file.
15042         * modules/unigbrk/u8-grapheme-len-tests: New file.
15043         * lib/unigbrk.in.h: Add prototype for new function.
15044         * lib/unigbrk/u8-grapheme-len.c: New file.
15045         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15046
15047         New module 'u16-grapheme-len'.
15048         * modules/unigbrk/u16-grapheme-len: New file.
15049         * modules/unigbrk/u16-grapheme-len-tests: New file.
15050         * lib/unigbrk.in.h: Add prototype for new function.
15051         * lib/unigbrk/u16-grapheme-len.c: New file.
15052         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15053
15054         New module 'u32-grapheme-len'.
15055         * modules/unigbrk/u32-grapheme-len: New file.
15056         * modules/unigbrk/u32-grapheme-len-tests: New file.
15057         * lib/unigbrk.in.h: Add prototype for new function.
15058         * lib/unigbrk/u32-grapheme-len.c: New file.
15059         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15060
15061         New module 'u8-grapheme-next'.
15062         * modules/unigbrk/u8-grapheme-next: New file.
15063         * modules/unigbrk/u8-grapheme-next-tests: New file.
15064         * lib/unigbrk.in.h: Add prototype for new function.
15065         * lib/unigbrk/u8-grapheme-next.c: New file.
15066         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15067
15068         New module 'u16-grapheme-next'.
15069         * modules/unigbrk/u16-grapheme-next: New file.
15070         * modules/unigbrk/u16-grapheme-next-tests: New file.
15071         * lib/unigbrk.in.h: Add prototype for new function.
15072         * lib/unigbrk/u16-grapheme-next.c: New file.
15073         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15074
15075         New module 'u32-grapheme-next'.
15076         * modules/unigbrk/u32-grapheme-next: New file.
15077         * modules/unigbrk/u32-grapheme-next-tests: New file.
15078         * lib/unigbrk.in.h: Add prototype for new function.
15079         * lib/unigbrk/u32-grapheme-next.c: New file.
15080         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15081
15082         New module 'u8-grapheme-prev'.
15083         * modules/unigbrk/u8-grapheme-prev: New file.
15084         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15085         * lib/unigbrk.in.h: Add prototype for new function.
15086         * lib/unigbrk/u8-grapheme-prev.c: New file.
15087         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15088
15089         New module 'u16-grapheme-prev'.
15090         * modules/unigbrk/u16-grapheme-prev: New file.
15091         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15092         * lib/unigbrk.in.h: Add prototype for new function.
15093         * lib/unigbrk/u16-grapheme-prev.c: New file.
15094         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15095
15096         New module 'u32-grapheme-prev'.
15097         * modules/unigbrk/u32-grapheme-prev: New file.
15098         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15099         * lib/unigbrk.in.h: Add prototype for new function.
15100         * lib/unigbrk/u32-grapheme-prev.c: New file.
15101         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15102
15103         New module 'u8-grapheme-breaks'.
15104         * modules/unigbrk/u8-grapheme-breaks: New file.
15105         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15106         * lib/unigbrk.in.h: Add prototype for new function.
15107         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15108         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15109
15110         New module 'u16-grapheme-breaks'.
15111         * modules/unigbrk/u16-grapheme-breaks: New file.
15112         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15113         * lib/unigbrk.in.h: Add prototype for new function.
15114         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15115         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15116
15117         New module 'u32-grapheme-breaks'.
15118         * modules/unigbrk/u32-grapheme-breaks: New file.
15119         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15120         * lib/unigbrk.in.h: Add prototype for new function.
15121         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15122         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15123
15124         New module 'ulc-grapheme-breaks'.
15125         * modules/unigbrk/ulc-grapheme-breaks: New file.
15126         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15127         * m4/locale-ar.m4: New file.
15128         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15129         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15130         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15131
15132 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15133
15134         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15135         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15136         modified how this file was generated before I initially submitted
15137         the module, but failed to regenerate it.  This meant that several
15138         of the level2 entries were wrong.
15139         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15140         Remove the division-by-2 that is folded into the table now that
15141         gbrkprop.h has been regenerated properly.  Now -1 entries are
15142         handled correctly.
15143
15144         New module 'unigbrk/uc-gbrk-prop-tests'.
15145         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15146         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15147         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15148         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15149
15150 2011-01-01  Bruno Haible  <bruno@clisp.org>
15151
15152         Avoid use of hexadecimal escapes.
15153         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15154         instead of hexadecimal escapes.
15155
15156 2011-01-01  Jim Meyering  <meyering@redhat.com>
15157
15158         maint: new rule to update copyright year ranges
15159         * Makefile (update-copyright): New rule.
15160
15161         maint: indent with TABs in Makefile
15162         * Makefile: Expand leading sequences of spaces to TABs
15163
15164         version-etc: update the copyright year it reports
15165         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15166
15167 2010-12-31  Bruno Haible  <bruno@clisp.org>
15168
15169         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15170         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15171         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15172         zero.
15173
15174 2010-12-31  Bruno Haible  <bruno@clisp.org>
15175
15176         pwrite: Work around HP-UX 11.11 bug.
15177         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15178         works and set REPLACE_PWRITE if not.
15179         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15180         function.
15181         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15182
15183 2010-12-31  Bruno Haible  <bruno@clisp.org>
15184
15185         pread: Work around HP-UX 11 bugs.
15186         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15187         and set REPLACE_PREAD if not.
15188         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15189
15190 2010-12-31  Eric Blake  <eblake@redhat.com>
15191
15192         nl_langinfo: fix YESEXPR on Irix 6.5
15193         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15194         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15195         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15196         it.
15197
15198 2010-12-31  Bruno Haible  <bruno@clisp.org>
15199
15200         iconv: Document HP-UX 11 bug.
15201         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15202
15203 2010-12-31  Bruno Haible  <bruno@clisp.org>
15204
15205         ldexpl: Fix link error on HP-UX 11.
15206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15207         LDEXPL_LIBM, using $ISNANL_LIBM.
15208
15209 2010-12-31  Eric Blake  <eblake@redhat.com>
15210
15211         ftello: avoid compilation failure with SunStudio c89
15212         * lib/ftello.c (ftello): Use lseek, not llseek.
15213
15214         tests: avoid failing coreutils tests on cygwin
15215         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15216         (create_exe_shims_): Return 0 when skipping.
15217
15218 2010-12-31  Bruno Haible  <bruno@clisp.org>
15219
15220         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15221         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15222
15223 2010-12-31  Bruno Haible  <bruno@clisp.org>
15224
15225         waitpid: Fix link error in C++ mode.
15226         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15227
15228 2010-12-31  Bruno Haible  <bruno@clisp.org>
15229
15230         isnan: Use GCC built-ins when possible.
15231         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15232         __builtin_isnan.
15233         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15234         (isnan): Define using GCC built-ins for GCC >= 4.0.
15235
15236 2010-12-31  Bruno Haible  <bruno@clisp.org>
15237
15238         isnand: Fix mistake.
15239         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15240         __builtin_isnand.
15241
15242 2010-12-31  Bruno Haible  <bruno@clisp.org>
15243
15244         open: Avoid C++ error on HP-UX 11.
15245         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15246
15247 2010-12-31  Bruno Haible  <bruno@clisp.org>
15248
15249         time_r: Add missing declarations on HP-UX 11.
15250         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15251         instead of HAVE_LOCALTIME_R.
15252         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15253         HAVE_LOCALTIME_R always.
15254         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15255         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15256         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15257         HAVE_LOCALTIME_R.
15258         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15259         * doc/posix-functions/localtime_r.texi: Likewise.
15260
15261 2010-12-29  Eric Blake  <eblake@redhat.com>
15262
15263         mountlist: tweak previous commit
15264         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15265         Reported by Paul Eggert.
15266
15267         mountlist: fix local drive detection on cygwin
15268         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15269         that works for cygwin.
15270
15271 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15272
15273         ftoastr, snprintf: ftoastr + snprintf module
15274         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15275         since the snprintf module now should be good enough here.
15276         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15277         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15278         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15279         GNULIB_SNPRINTF only for the test directory, and the latter
15280         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15281         seems to suffice by itself.
15282
15283 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15284
15285         alloca: one step towards thread-safety
15286         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15287         need for a static variable.  All callers changed.  This does not
15288         make the alloca replacement thread-safe, but it's one step.
15289
15290         tests: minor indenting change
15291         * tests/init.sh: Sync from coreutils housekeeping patch
15292         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15293         to keep lines within 80 columns.
15294
15295 2010-12-28  Jim Meyering  <meyering@redhat.com>
15296
15297         regex: don't infloop on persistent failing calloc
15298         * lib/regexec.c (build_trtable): Return failure indication upon
15299         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15300         In glibc, this was fixed for version 2.13:
15301         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15302
15303 2010-12-28  Bruno Haible  <bruno@clisp.org>
15304             Paul Eggert <eggert@cs.ucla.edu>
15305
15306         linkat: Make implementation robust against system behaviour variations.
15307         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15308         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15309         way, and to -2 if it needs a generic runtime test.
15310         * lib/linkat.c (solaris_optimized_link_immediate,
15311         solaris_optimized_link_follow): New functions.
15312         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15313         (check_same_link): Use it.
15314
15315 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15316
15317         New module 'unigbrk/base'.
15318         * modules/unigbrk/base: New file.
15319         * lib/unigbrk.in.h: New file.
15320
15321         New module 'unigbrk/uc-gbrk-prop'.
15322         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15323         * modules/unigbrk/uc-gbrk-prop: New file.
15324         * lib/unigbrk/gbrkprop.h: New file.
15325         * lib/unigbrk/uc-gbrk-prop.c: New file.
15326
15327         New module 'unigbrk/uc-is-grapheme-break'.
15328         * modules/unigbrk/uc-is-grapheme-break: New file.
15329         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15330         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15331         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15332         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15333         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15334
15335         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15336
15337 2010-12-27  Bruno Haible  <bruno@clisp.org>
15338
15339         linkat test: Avoid failure on Solaris 11 2010-11.
15340         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15341
15342 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15343
15344         utimens: work around glibc rounding bug on more platforms
15345         * lib/utimens.c (fdutimens): Work around rounding bug even if
15346         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15348
15349 2010-12-27  Bruno Haible  <bruno@clisp.org>
15350
15351         select tests: Improve comments.
15352         * tests/test-select.c (do_select): Add comments.
15353
15354 2010-12-27  Bruno Haible  <bruno@clisp.org>
15355
15356         select tests: Safer way of handling timeout.
15357         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15358         at every invocation.
15359
15360 2010-12-27  Bruno Haible  <bruno@clisp.org>
15361
15362         select tests: Use 'bool' where appropriate.
15363         * tests/test-select.c (connect_to_socket): Change argument type to
15364         'bool'.
15365
15366 2010-12-27  Bruno Haible  <bruno@clisp.org>
15367
15368         select tests: Use existing modules.
15369         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15370         (configure.ac): Don't test for unistd.h.
15371         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15372         declared in <unistd.h>.
15373
15374 2010-12-27  Bruno Haible  <bruno@clisp.org>
15375
15376         mbrtowc: Work around a Solaris 7 bug.
15377         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15378         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15379         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15380         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15381         MBRTOWC_NULL_ARG1_BUG.
15382         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15383         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15384         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15385         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15386
15387 2010-12-27  Jim Meyering  <meyering@redhat.com>
15388
15389         read-file.c: tweak syntax
15390         * lib/read-file.c (fread_file): Remove space after "*" in function
15391         definitions.
15392
15393 2010-12-27  Bruno Haible  <bruno@clisp.org>
15394
15395         times test: Avoid gcc warnings on OSF/1.
15396         * tests/test-times.c (main): Cast printf arguments from clock_t to
15397         'long int'.
15398
15399 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         utimens: work around glibc rounding bug on older Linux kernels
15402         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15403         on Linux with a glibc whose utimes might not work, then work
15404         around a longstanding glibc bug involving rounding rather than
15405         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15406         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15407
15408 2010-12-26  Bruno Haible  <bruno@clisp.org>
15409
15410         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15411         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15412         _GL_CXXALIAS_SYS.
15413         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15414
15415 2010-12-26  Bruno Haible  <bruno@clisp.org>
15416
15417         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15418         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15419         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15420         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15421         looking for the declaration.
15422         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15423         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15424         problem.
15425         * doc/posix-functions/inet_pton.texi: Likewise.
15426
15427 2010-12-26  Bruno Haible  <bruno@clisp.org>
15428
15429         arpa_inet: Use the common idioms with C++ support.
15430         * lib/arpa_inet.in.h: Include c++defs.h.
15431         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15432         support.
15433         * modules/arpa_inet (Depends-on): Add c++defs.
15434         (Makefile.am): Substitute the contents of c++defs.h.
15435         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15436         * modules/arpa_inet-c++-tests: New file.
15437         * tests/test-arpa_inet-c++.cc: New file.
15438
15439 2010-12-25  Bruno Haible  <bruno@clisp.org>
15440
15441         Fix more C++ link errors on Solaris 8.
15442         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15443         $(LIB_EACCESS).
15444         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15445         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15446         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15447         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15448         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15449
15450 2010-12-25  Bruno Haible  <bruno@clisp.org>
15451
15452         printf-posix: Fix link error when a non-GCC compiler is used.
15453         * lib/stdio.in.h (printf): When not using GCC, override printf
15454         correctly.
15455         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15456
15457 2010-12-25  Bruno Haible  <bruno@clisp.org>
15458
15459         strerror_r-posix: Update doc.
15460         * doc/posix-functions/strerror_r.texi: Update doc about the return
15461         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15462
15463 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         utimens: simplify the logic of the previous change
15466         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15467         This should not affect whether the test succeeds or fails.
15468
15469         utimens: configure better on hosts with NFS clock skew
15470         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15471         uses the clock of the local host.  It might use the clock of the
15472         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15474
15475 2010-12-25  Bruno Haible  <bruno@clisp.org>
15476
15477         ptsname test: Avoid failure on Solaris.
15478         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15479         open a pseudo-terminal; don't use BSD-style ptys.
15480         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15481
15482 2010-12-25  Bruno Haible  <bruno@clisp.org>
15483
15484         ptsname: Avoid ERANGE failure on some systems.
15485         * lib/ptsname.c (buffer): Increase size.
15486
15487 2010-12-25  Bruno Haible  <bruno@clisp.org>
15488
15489         rename, renameat: Avoid test failures at NFS mounted locations.
15490         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15491         so that subsequent mkdir calls succeed.
15492
15493 2010-12-25  Bruno Haible  <bruno@clisp.org>
15494
15495         iswblank: Fix C++ link error on Solaris 8.
15496         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15497         _GL_FUNCDECL_SYS.
15498
15499 2010-12-25  Bruno Haible  <bruno@clisp.org>
15500
15501         unistd: Fix C++ link error on Solaris 8.
15502         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15503
15504 2010-12-25  Bruno Haible  <bruno@clisp.org>
15505
15506         readlink doc: Mention an old glibc bug.
15507         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15508
15509 2010-12-25  Bruno Haible  <bruno@clisp.org>
15510
15511         fcntl-h: Fix for use of C++ on glibc systems.
15512         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15513         also on glibc systems in C++ mode.
15514         Reported by Gary V. Vaughan <gary@gnu.org>.
15515
15516 2010-12-25  Bruno Haible  <bruno@clisp.org>
15517
15518         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15519         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15520
15521 2010-12-25  Bruno Haible  <bruno@clisp.org>
15522
15523         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15524         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15525         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15526         test whether truncl works according to ISO C 99 with IEC 60559.
15527         * m4/truncl-ieee.m4: New file.
15528         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15529         m4/signbit.m4.
15530         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15531
15532 2010-12-25  Bruno Haible  <bruno@clisp.org>
15533
15534         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15535         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15536         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15537         test whether ceill works according to ISO C 99 with IEC 60559.
15538         * m4/ceill-ieee.m4: New file.
15539         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15540         m4/signbit.m4.
15541         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15542
15543 2010-12-25  Bruno Haible  <bruno@clisp.org>
15544
15545         Ensure all prerequisites of <wchar.h> are included.
15546         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15547         before <wchar.h>.
15548         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15549         gl_MBRLEN_NUL_RETVAL): Likewise.
15550         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15551         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15552         AC_FUNC_MBRTOWC): Likewise.
15553         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15554         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15556         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15557         Likewise.
15558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15559         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15560         (gl_WCHAR_H): Improve comments.
15561         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15562
15563 2010-12-25  Bruno Haible  <bruno@clisp.org>
15564
15565         strtok_r: Fix C syntax error in autoconf macro.
15566         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15567         characters in test program.
15568
15569 2010-12-24  Bruno Haible  <bruno@clisp.org>
15570
15571         ceil, trunc, round: Fix gcc warnings.
15572         * lib/ceil.c (MIN): Undefine before redefining.
15573         * lib/trunc.c (MIN): Likewise.
15574         * lib/round.c (MIN): Likewise.
15575         Include <math.h> first.
15576
15577 2010-12-24  Bruno Haible  <bruno@clisp.org>
15578
15579         select tests: Avoid failures on OSF/1 5.1.
15580         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15581         failure of closing the last socket; it may fail with ECONNRESET.
15582
15583 2010-12-24  Eric Blake  <eblake@redhat.com>
15584
15585         stdint: avoid HP-UX 10.20 preprocessor bug
15586         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15587         than #if.
15588         * tests/test-floor2.c (main): Likewise.
15589         Reported by Peter O'Gorman.
15590
15591         pipe: make obsoletion transition easier
15592         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15593         * modules/pipe (Files): Include revived file.
15594         (Include): Drop reference, to mirror getdate's behavior.
15595
15596 2010-12-24  Bruno Haible  <bruno@clisp.org>
15597
15598         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15599         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15600         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15601         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15602
15603 2010-12-24  Bruno Haible  <bruno@clisp.org>
15604
15605         gethostname: Ensure declaration on NonStop Kernel.
15606         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15607         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15608
15609 2010-12-24  Bruno Haible  <bruno@clisp.org>
15610
15611         sys_select: Ensure all necessary types on NonStop Kernel.
15612         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15613         include <sys/time.h>.
15614         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15615         NonStop Kernel.
15616         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15617
15618 2010-12-24  Bruno Haible  <bruno@clisp.org>
15619
15620         sys_select: Remove unneeded include.
15621         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15622         have <sys/select.h>.
15623
15624 2010-12-24  Bruno Haible  <bruno@clisp.org>
15625
15626         gethostname: Provide a fallback for HOST_NAME_MAX.
15627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15628         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15629         instead.
15630         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15631
15632 2010-12-24  Bruno Haible  <bruno@clisp.org>
15633
15634         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15635         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15636         (SA_RESTART): Likewise.
15637         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15638
15639 2010-12-24  Bruno Haible  <bruno@clisp.org>
15640
15641         signal: Define NSIG.
15642         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15643         * tests/test-signal.c (nsig): New variable.
15644         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15645
15646 2010-12-24  Bruno Haible  <bruno@clisp.org>
15647
15648         rename, renameat: Avoid test failures on OSF/1 5.1.
15649         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15650         alternative error codes.
15651         * tests/test-renameat.c (main): Likewise.
15652
15653 2010-12-24  Bruno Haible  <bruno@clisp.org>
15654
15655         *printf: Detect large precisions bug on Solaris 10/SPARC.
15656         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15657         by Paul Eggert.
15658         * tests/test-snprintf-posix.h (test_function): Add this test code here
15659         too.
15660         * tests/test-sprintf-posix.h (test_function): Likewise.
15661         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15662         * tests/test-vasprintf-posix.c (test_function): Likewise.
15663         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15664         around by gnulib.
15665         * doc/posix-functions/printf.texi: Likewise.
15666         * doc/posix-functions/snprintf.texi: Likewise.
15667         * doc/posix-functions/sprintf.texi: Likewise.
15668         * doc/posix-functions/vfprintf.texi: Likewise.
15669         * doc/posix-functions/vprintf.texi: Likewise.
15670         * doc/posix-functions/vsnprintf.texi: Likewise.
15671         * doc/posix-functions/vsprintf.texi: Likewise.
15672         * doc/posix-functions/dprintf.texi: Undo last commit.
15673         * doc/posix-functions/vdprintf.texi: Likewise.
15674
15675 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15676
15677         tests: port test-fdutimensat.c to Solaris 8
15678         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15679         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15680         On Solaris 8, it fails with errno == ENOSYS, because there is no
15681         futimens (so it can't use the fd), and there is no lutimens (so it
15682         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15683
15684         vsnprintf: make more consistent with snprintf; doc fixes
15685
15686         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15687         the byte count return problem was promoted from the snprintf-posix
15688         to the snprintf module.
15689         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15690         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15691         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15692         * tests/test-snprintf.c (main): Check the byte count returned.
15693         * tests/test-vsnprintf.c (main): Likewise.
15694
15695 2010-12-23  Eric Blake  <eblake@redhat.com>
15696
15697         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15698         * modules/sigpipe (License): Relax license.
15699
15700 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15701
15702         doc: document Solaris printf bug with large float precisions
15703         * doc/posix-functions/dprintf.texi (dprintf):
15704         * doc/posix-functions/fprintf.texi (fprintf):
15705         * doc/posix-functions/printf.texi (printf):
15706         * doc/posix-functions/snprintf.texi (snprintf):
15707         * doc/posix-functions/sprintf.texi (sprintf):
15708         * doc/posix-functions/vdprintf.texi (vdprintf):
15709         * doc/posix-functions/vfprintf.texi (vfprintf):
15710         * doc/posix-functions/vprintf.texi (vprintf):
15711         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15712         * doc/posix-functions/vsprintf.texi (vsprintf):
15713         Mention that these functions mishandle large floating point
15714         precisions on Solaris 10.  The same bug is also present in Solaris
15715         8, and I assume earlier.  This causes "cd gnulib-tests; make
15716         check" to fail on Solaris 8 (and I assume, later) when building
15717         the latest coreutils, in test-vasprintf-posix's call to
15718         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15719         the wide flavors (e.g., wprintf) so this patch just updates the
15720         documentation for the narrow ones.
15721
15722         test-posixtm.c: add two tests
15723         * tests/test-posixtm.c: Add two tests, to highlight the
15724         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15725         around this bug; this is merely to document it.
15726
15727 2010-12-22  Bruno Haible  <bruno@clisp.org>
15728
15729         getlogin_r: Work around portability problem on OSF/1.
15730         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15731         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15732         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15733         test for a truncated result.
15734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15735         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15736         * modules/getlogin_r (Depends-on): Add memchr.
15737         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15738
15739 2010-12-22  Bruno Haible  <bruno@clisp.org>
15740
15741         ptsname: Avoid test failure on OSF/1 5.1.
15742         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15743         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15744         (same_slave): New function.
15745         (main): Use it to compare ptsname's result with the expected file name.
15746
15747 2010-12-22  Bruno Haible  <bruno@clisp.org>
15748
15749         Port extended stdio modules to HP NonStop Kernel.
15750         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15751         macros.
15752         * lib/fbufmode.c: Update comments.
15753         * lib/fflush.c: Likewise.
15754         * lib/fpurge.c: Likewise.
15755         * lib/freadable.c: Likewise.
15756         * lib/freadahead.c: Likewise.
15757         * lib/freading.c: Likewise.
15758         * lib/freadptr.c: Likewise.
15759         * lib/freadseek.c: Likewise.
15760         * lib/fseeko.c: Likewise.
15761         * lib/fseterr.c: Likewise.
15762         * lib/fwritable.c: Likewise.
15763         * lib/fwriting.c: Likewise.
15764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15765
15766 2010-12-22  Bruno Haible  <bruno@clisp.org>
15767
15768         ttyname_r: Work around bug on OSF/1 5.1.
15769         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15770         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15771         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15772         present.
15773         * lib/ttyname_r.c (ttyname_r): Update comments.
15774
15775 2010-12-22  Bruno Haible  <bruno@clisp.org>
15776
15777         round: Implement result sign according to IEEE 754.
15778         * lib/round.c (MIN, MINUS_ZERO): New macros.
15779         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15780         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15781         * tests/test-round-ieee.c (main): Likewise.
15782         * tests/test-roundl-ieee.c (main): Likewise.
15783
15784         trunc: Implement result sign according to IEEE 754.
15785         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15786         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15787         * tests/test-trunc2.c: Include minus-zero.h.
15788         (MINUS_ZERO): New macro.
15789         (trunc_reference): Keep in sync with lib/trunc.c.
15790         * tests/test-truncf2.c: Include minus-zero.h.
15791         (MINUS_ZERO): New macro.
15792         (truncf_reference): Keep in sync with lib/trunc.c.
15793         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15794         * tests/test-trunc-ieee.c (main): Likewise.
15795         * tests/test-truncl-ieee.c (main): Likewise.
15796
15797         ceil: Implement result sign according to IEEE 754.
15798         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15799         (FUNC): Return -0.0 for -1 < x < 0.
15800         * tests/test-ceil2.c: Include minus-zero.h.
15801         (MINUS_ZERO): New macro.
15802         (ceil_reference): Keep in sync with lib/ceil.c.
15803         * tests/test-ceilf2.c: Include minus-zero.h.
15804         (MINUS_ZERO): New macro.
15805         (ceilf_reference): Keep in sync with lib/ceil.c.
15806         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15807         * tests/test-ceil-ieee.c (main): Likewise.
15808         * tests/test-ceill-ieee.c (main): Likewise.
15809
15810         floor: Implement result sign according to IEEE 754.
15811         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15812         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15813         * tests/test-floorf2.c (floorf_reference): Likewise.
15814         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15815         * tests/test-floor-ieee.c (main): Likewise.
15816         * tests/test-floorl-ieee.c (main): Likewise.
15817
15818 2010-12-22  Bruno Haible  <bruno@clisp.org>
15819
15820         getaddrinfo: Update doc.
15821         * doc/posix-functions/gai_strerror.texi: Return type is also different
15822         on AIX and HP-UX.
15823
15824 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15825
15826         getaddrinfo, inet_ntop: Update doc for Solaris.
15827         * doc/posix-functions/gai_strerror.texi: Return type is also an
15828         issue on Solaris 9 and earlier.
15829         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15830         on Solaris 10 and earlier.
15831
15832 2010-12-21  Bruno Haible  <bruno@clisp.org>
15833
15834         New module 'roundl-ieee'.
15835         * modules/roundl-ieee: New file.
15836         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15837         test whether roundl works according to ISO C 99 with IEC 60559.
15838         * m4/roundl-ieee.m4: New file.
15839         * modules/roundl-ieee-tests: New file.
15840         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15841         * tests/test-roundl.c (main): Remove signbit tests.
15842         * modules/roundl-tests (Depends-on): Remove signbit.
15843         * doc/posix-functions/roundl.texi: Mention the new module.
15844
15845 2010-12-21  Bruno Haible  <bruno@clisp.org>
15846
15847         New module 'truncl-ieee'.
15848         * modules/truncl-ieee: New file.
15849         * modules/truncl-ieee-tests: New file.
15850         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15851         * tests/test-truncl.c (main): Remove signbit tests.
15852         * modules/truncl-tests (Depends-on): Remove signbit.
15853         * doc/posix-functions/truncl.texi: Mention the new module.
15854
15855 2010-12-21  Bruno Haible  <bruno@clisp.org>
15856
15857         New module 'ceill-ieee'.
15858         * modules/ceill-ieee: New file.
15859         * modules/ceill-ieee-tests: New file.
15860         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15861         * tests/test-ceill.c (main): Remove signbit tests.
15862         * modules/ceill-tests (Depends-on): Remove signbit.
15863         * doc/posix-functions/ceill.texi: Mention the new module.
15864
15865 2010-12-21  Bruno Haible  <bruno@clisp.org>
15866
15867         New module 'floorl-ieee'.
15868         * modules/floorl-ieee: New file.
15869         * modules/floorl-ieee-tests: New file.
15870         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15871         * tests/test-floorl.c (main): Remove signbit tests.
15872         * modules/floorl-tests (Depends-on): Remove signbit.
15873         * doc/posix-functions/floorl.texi: Mention the new module.
15874
15875 2010-12-21  Bruno Haible  <bruno@clisp.org>
15876
15877         New module 'round-ieee'.
15878         * modules/round-ieee: New file.
15879         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15880         whether round works according to ISO C 99 with IEC 60559.
15881         * m4/round-ieee.m4: New file.
15882         * modules/round-ieee-tests: New file.
15883         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15884         * tests/test-round1.c (main): Remove signbit tests.
15885         * modules/round-tests (Depends-on): Remove 'signbit'.
15886         * doc/posix-functions/round.texi: Mention the new module.
15887
15888 2010-12-21  Bruno Haible  <bruno@clisp.org>
15889
15890         New module 'trunc-ieee'.
15891         * modules/trunc-ieee: New file.
15892         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15893         whether trunc works according to ISO C 99 with IEC 60559.
15894         * m4/trunc-ieee.m4: New file.
15895         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15897         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15898         * modules/trunc-ieee-tests: New file.
15899         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15900         * tests/test-trunc1.c (main): Remove signbit tests.
15901         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15902         * doc/posix-functions/trunc.texi: Mention the new module.
15903
15904 2010-12-21  Bruno Haible  <bruno@clisp.org>
15905
15906         New module 'ceil-ieee'.
15907         * modules/ceil-ieee: New file.
15908         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15909         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15910         ISO C 99 with IEC 60559.
15911         * m4/ceil-ieee.m4: New file.
15912         * modules/ceil (Files): Add lib/ceil.c.
15913         (Depends-on): Add 'float'.
15914         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15915         * lib/math.in.h (ceil): New declaration.
15916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15917         REPLACE_CEIL.
15918         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15919         * modules/ceil-ieee-tests: New file.
15920         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15921         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15922         * doc/posix-functions/ceil.texi: Mention the new module.
15923
15924 2010-12-21  Bruno Haible  <bruno@clisp.org>
15925
15926         New module 'floor-ieee'.
15927         * modules/floor-ieee: New file.
15928         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15929         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15930         ISO C 99 with IEC 60559.
15931         * m4/floor-ieee.m4: New file.
15932         * modules/floor (Files): Add lib/floor.c.
15933         (Depends-on): Add 'float'.
15934         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15935         * lib/math.in.h (floor): New declaration.
15936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15937         REPLACE_FLOOR.
15938         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15939         * modules/floor-ieee-tests: New file.
15940         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15941         * tests/test-math-c++.cc: Check the signature of 'floor'.
15942         * doc/posix-functions/floor.texi: Mention the new module.
15943
15944 2010-12-21  Bruno Haible  <bruno@clisp.org>
15945
15946         New module 'roundf-ieee'.
15947         * modules/roundf-ieee: New file.
15948         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15949         test whether roundf works according to ISO C 99 with IEC 60559.
15950         * m4/roundf-ieee.m4: New file.
15951         * modules/roundf-ieee-tests: New file.
15952         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15953         * tests/test-roundf1.c (main): Remove signbit tests.
15954         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15955         * doc/posix-functions/roundf.texi: Mention the new module.
15956
15957 2010-12-21  Bruno Haible  <bruno@clisp.org>
15958
15959         New module 'truncf-ieee'.
15960         * modules/truncf-ieee: New file.
15961         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15962         test whether truncf works according to ISO C 99 with IEC 60559.
15963         * m4/truncf-ieee.m4: New file.
15964         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15966         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15967         * modules/truncf-ieee-tests: New file.
15968         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15969         * tests/test-truncf1.c (main): Remove signbit tests.
15970         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15971         * doc/posix-functions/truncf.texi: Mention the new module.
15972
15973 2010-12-21  Bruno Haible  <bruno@clisp.org>
15974
15975         New module 'ceilf-ieee'.
15976         * modules/ceilf-ieee: New file.
15977         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15978         test whether ceilf works according to ISO C 99 with IEC 60559.
15979         * m4/ceilf-ieee.m4: New file.
15980         * modules/ceilf-ieee-tests: New file.
15981         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15982         * tests/test-ceilf1.c (main): Remove signbit tests.
15983         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15984         * doc/posix-functions/ceilf.texi: Mention the new module.
15985
15986 2010-12-21  Bruno Haible  <bruno@clisp.org>
15987
15988         New module 'floorf-ieee'.
15989         * modules/floorf-ieee: New file.
15990         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15991         test whether floorf works according to ISO C 99 with IEC 60559.
15992         * m4/floorf-ieee.m4: New file.
15993         * modules/floorf-ieee-tests: New file.
15994         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15995         * tests/test-floorf1.c (main): Remove signbit tests.
15996         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15997         * doc/posix-functions/floorf.texi: Mention the new module.
15998
15999 2010-12-21  Bruno Haible  <bruno@clisp.org>
16000
16001         Support for minus zero in autoconf macros.
16002         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16003         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16004         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16005         * tests/minus-zero.h: Update comments.
16006
16007 2010-12-21  Bruno Haible  <bruno@clisp.org>
16008
16009         Tests for module 'ceil'.
16010         * modules/ceil-tests: New file.
16011         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16012         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16013
16014 2010-12-21  Bruno Haible  <bruno@clisp.org>
16015
16016         Tests for module 'floor'.
16017         * modules/floor-tests: New file.
16018         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16019         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16020
16021 2010-12-21  Bruno Haible  <bruno@clisp.org>
16022
16023         math: Fix indentation.
16024         * lib/math.in.h (floorf): Fix indentation.
16025
16026 2010-12-21  Bruno Haible  <bruno@clisp.org>
16027
16028         Fix cross-compilation guesses on Solaris.
16029         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16030         not match "solaris2.10".
16031         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16032         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16033         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16034
16035 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16038         This fixes a problem observed with the latest coreutils snapshot
16039         that caused a test to fail on Solaris 8.  src/csplit.c's call
16040         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16041         earlier, instead of returning the number of bytes that would have
16042         been generated; this causes csplit to incorrectly report memory
16043         exhaustion.
16044         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16045         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16046         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16047         comments to match.
16048         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16049         Fix typo in matching older versions of Solaris: "solaris2.10"
16050         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16051         only for guessing while cross-compiling.
16052         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16053
16054 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         ftoastr: fix comment again
16057         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16059         Also, simplify example a bit by using flags = 0.
16060
16061 2010-12-20  Bruno Haible  <bruno@clisp.org>
16062
16063         round*, trunc*: Update documentation regarding glibc.
16064         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16065         * doc/posix-functions/round.texi: Likewise.
16066         * doc/posix-functions/roundl.texi: Likewise.
16067         * doc/posix-functions/truncf.texi: Likewise.
16068         * doc/posix-functions/trunc.texi: Likewise.
16069         * doc/posix-functions/truncl.texi: Likewise.
16070
16071 2010-12-20  Bruno Haible  <bruno@clisp.org>
16072
16073         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16074         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16075         * doc/posix-functions/round.texi: Likewise.
16076         * doc/posix-functions/roundl.texi: Likewise.
16077
16078 2010-12-20  Bruno Haible  <bruno@clisp.org>
16079
16080         ttyname_r: Add missing declaration on HP-UX 11.
16081         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16082         HAVE_TTYNAME_R.
16083         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16084         declared. Set HAVE_TTYNAME_R always.
16085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16086         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16087         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16088         HAVE_TTYNAME_R.
16089         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16090
16091 2010-12-20  Bruno Haible  <bruno@clisp.org>
16092
16093         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16094         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16095         * doc/posix-functions/getlogin_r.texi: Likewise.
16096         * tests/test-getlogin.c: Include <errno.h>.
16097         (main): Avoid test failure on HP-UX 11.11.
16098         * tests/test-getlogin_r.c (main): Likewise.
16099
16100 2010-12-20  Bruno Haible  <bruno@clisp.org>
16101
16102         getlogin_r: Add missing declaration on HP-UX 11.
16103         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16104         declared also when it exists as a function.
16105         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16106
16107 2010-12-20  Bruno Haible  <bruno@clisp.org>
16108
16109         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16110         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16111         through wcrtomb.
16112
16113 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16114
16115         ftoastr: fix comment
16116         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16117         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16118
16119 2010-12-19  Bruno Haible  <bruno@clisp.org>
16120
16121         isnan: Ensure it is a macro.
16122         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16123         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16124         Solaris.
16125
16126 2010-12-19  Bruno Haible  <bruno@clisp.org>
16127
16128         ldexpl test: Fix link error on OSF/1 5.1.
16129         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16130
16131 2010-12-19  Bruno Haible  <bruno@clisp.org>
16132
16133         wctype: Make it work in C++ mode on OSF/1 5.1.
16134         * lib/wctype.in.h (iswblank): Declare but not define here.
16135         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16136         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16137         * modules/wctype (Files): Add lib/iswblank.c.
16138
16139 2010-12-19  Bruno Haible  <bruno@clisp.org>
16140
16141         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16142         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16143         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16144
16145 2010-12-19  Bruno Haible  <bruno@clisp.org>
16146
16147         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16148         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16149         _POSIX_PII_SOCKET.
16150         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16151         * doc/posix-functions/recvfrom.texi: Likewise.
16152         * doc/posix-functions/send.texi: Likewise.
16153         * doc/posix-functions/sendto.texi: Likewise.
16154
16155 2010-12-19  Bruno Haible  <bruno@clisp.org>
16156
16157         tcgetsid: Add missing declaration on OSF/1 5.1.
16158         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16159         HAVE_TCGETSID.
16160         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16161         Don't set HAVE_TCGETSID.
16162         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16163         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16164         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16165         HAVE_TCGETSID.
16166         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16167
16168 2010-12-19  Bruno Haible  <bruno@clisp.org>
16169
16170         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16171         * lib/stdio.in.h: During the include_next statement, let recursive
16172         includes of this file include only the system header file.
16173
16174 2010-12-19  Bruno Haible  <bruno@clisp.org>
16175
16176         iconv_open: Fix regression from 2010-12-04.
16177         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16178         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16179
16180 2010-12-19  Bruno Haible  <bruno@clisp.org>
16181
16182         stdbool test: Avoid a gcc warning.
16183         * tests/test-stdbool.c (main): Fail if e1 is false.
16184         Reported by Jim Meyering.
16185
16186 2010-12-19  Jim Meyering  <meyering@redhat.com>
16187
16188         setenv: restore to working order
16189         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16190         mistakenly removed.
16191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16192         HAVE_SETENV.
16193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16194         HAVE_SETENV.
16195
16196 2010-12-19  Bruno Haible  <bruno@clisp.org>
16197
16198         Document some different function declarations on OSF/1 5.1.
16199         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16200         * doc/posix-functions/inet_ntop.texi: Likewise.
16201         * doc/posix-functions/gethostname.texi: Likewise.
16202         * lib/unistd.in.h (gethostname): Update comment.
16203
16204 2010-12-19  Bruno Haible  <bruno@clisp.org>
16205
16206         doc: Mention vasprintf-posix module.
16207         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16208         the 'vasprintf-posix' module.
16209         * doc/glibc-functions/vasprintf.texi: Likewise.
16210
16211 2010-12-19  Bruno Haible  <bruno@clisp.org>
16212
16213         unsetenv: Add missing declaration on OSF/1 5.1.
16214         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16215         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16216         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16218         not HAVE_UNSETENV.
16219         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16220         HAVE_UNSETENV.
16221         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16222
16223 2010-12-19  Bruno Haible  <bruno@clisp.org>
16224
16225         setenv: Add missing declaration on OSF/1 5.1.
16226         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16227         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16228         declared. Don't set HAVE_SETENV.
16229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16230         not HAVE_SETENV.
16231         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16232         HAVE_SETENV.
16233         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16234
16235 2010-12-19  Bruno Haible  <bruno@clisp.org>
16236
16237         nl_langinfo tests: Avoid gcc warning.
16238         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16239
16240 2010-12-19  Bruno Haible  <bruno@clisp.org>
16241
16242         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16243         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16244         _GL_CXXALIAS_SYS.
16245
16246 2010-12-19  Bruno Haible  <bruno@clisp.org>
16247
16248         stdbool: Relax test.
16249         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16250         address to 'bool' work in static initializer, for compilers other than
16251         GCC.
16252
16253 2010-12-19  Bruno Haible  <bruno@clisp.org>
16254
16255         ftello: Add missing declaration on OSF/1 5.1.
16256         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16257         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16259         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16260         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16261
16262 2010-12-19  Bruno Haible  <bruno@clisp.org>
16263
16264         fseeko: Add missing declaration on OSF/1 5.1.
16265         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16266         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16268         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16269         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16270
16271 2010-12-19  Bruno Haible  <bruno@clisp.org>
16272
16273         fchdir: Add missing declaration on OSF/1 5.1.
16274         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16277         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16278         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16279
16280 2010-12-19  Bruno Haible  <bruno@clisp.org>
16281
16282         relocatable-prog-wrapper: Separate from relocatable-prog.
16283         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16284         uninstall-relocwrapper rule here.
16285         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16286         Reported by Ian Beckwith <ianb@erislabs.net>.
16287
16288 2010-12-19  Bruno Haible  <bruno@clisp.org>
16289
16290         unistr/u8-mbsnlen: Add missing dependency.
16291         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16292         Reported by Ian Beckwith <ianb@erislabs.net>.
16293
16294 2010-12-19  Bruno Haible  <bruno@clisp.org>
16295
16296         iconv: Make it possible again to use this module without 'iconv-h'.
16297         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16298         if it is not defined.
16299         Reported by Ian Beckwith <ianb@erislabs.net>.
16300
16301 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16302
16303         acl: port to Solaris 8 when copying from tmpfs to ufs
16304         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16305         error number.  Problem observed on Solaris 8 with latest
16306         coreutils, with "mv A B", where A is on a tmpfs file system and B
16307         is on a ufs file system.  This caused coreutils' mv/part-symlink
16308         test to fail.
16309
16310         tests: set fail=0 at start
16311         * tests/init.sh (setup_): Move fail=0 initialization here ...
16312         (mktempd_): ... from here, so that tests can rely on fail being
16313         set to 0 initially.  This fixes a problem in coreutils; see:
16314         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16315
16316 2010-12-18  Bruno Haible  <bruno@clisp.org>
16317
16318         memmem-simple: Stylistic changes.
16319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16320         Fix preprocessor directive indentation.
16321
16322 2010-12-15  Pádraig Brady <P@draigBrady.com>
16323
16324         memmem, memmem-simple: reorganize and expand empty needle check
16325         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16326         functional checks to memmem-simple so that one has a fully functional
16327         memmem by using just this module.
16328         Restrict the performance only check to the memmem module.
16329         Also expand the empty needle check to ensure the correct
16330         pointer is returned, not just a non NULL pointer.
16331         * doc/glibc-functions/memmem.texi: Rearrange the portability
16332         documentation to correlate with the rearranged checks.
16333         Clarify exactly how the memmem and memmem-simple modules
16334         relate to each other.
16335
16336 2010-12-15  Pádraig Brady <P@draigBrady.com>
16337             Bruno Haible  <bruno@clisp.org>
16338
16339         Improve cross-compilation guesses for uClibc.
16340         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16341         that uClibc does not have the glibc bug.
16342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16343         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16344
16345 2010-12-14  Eric Blake  <eblake@redhat.com>
16346
16347         configmake: provide fallbacks for oldest supported autotools
16348         * m4/configmake.m4: New file.
16349         * modules/configmake (Files): Ship it.
16350         (configure.ac): Use it to guarantee fallbacks.
16351
16352 2010-12-13  Pádraig Brady <P@draigBrady.com>
16353
16354         read-file: Improve handling of large files
16355         * lib/read-file.c (fread_file): Minimize realloc()s
16356         for regular files, and better manage sizes around SIZE_MAX.
16357
16358 2010-12-13  Eric Blake  <eblake@redhat.com>
16359
16360         cloexec, fcntl: relax license
16361         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16362         consent from all contributors.
16363         * modules/fcntl (License): Likewise.
16364
16365 2010-12-10  Bruno Haible  <bruno@clisp.org>
16366
16367         Tests for module 'pipe-posix'.
16368         * modules/pipe-posix-tests: New file.
16369         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16370
16371 2010-12-10  Bruno Haible  <bruno@clisp.org>
16372
16373         pipe-posix: Make it work in C++ mode.
16374         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16375         (pipe): Use common idiom, not a macro definition.
16376         * lib/pipe.c: New file.
16377         * m4/pipe.m4: New file.
16378         * modules/pipe-posix (Description): Enhance.
16379         (Files): Add lib/pipe.c, m4/pipe.m4.
16380         (configure.ac): Invoke gl_FUNC_PIPE.
16381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16382         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16383         * tests/test-unistd-c++.cc: Check the signature of pipe.
16384
16385 2010-12-10  Bruno Haible  <bruno@clisp.org>
16386
16387         Rename module 'pipe' to 'spawn-pipe'.
16388         * modules/spawn-pipe: New file, renamed from modules/pipe.
16389         (Files, configure.ac, Makefile.am): Update.
16390         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16391         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16392         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16393         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16394         "spawn-pipe.h" instead of "pipe.h".
16395         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16396         to gl_SPAWN_PIPE.
16397         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16398         (Files, Makefile.am): Update.
16399         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16400         Update.
16401         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16402         Include "spawn-pipe.h" instead of "pipe.h".
16403         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16404         * lib/javacomp.c: Likewise.
16405         * lib/javaversion.c: Likewise.
16406         * lib/pipe-filter-gi.c: Likewise.
16407         * lib/pipe-filter-ii.c: Likewise.
16408         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16409         * modules/javacomp (Depends-on): Likewise.
16410         * modules/javaversion (Depends-on): Likewise.
16411         * modules/pipe-filter-gi (Depends-on): Likewise.
16412         * modules/pipe-filter-ii (Depends-on): Likewise.
16413         * MODULES.html.sh (Executing programs): Update.
16414         * NEWS: Mention the change.
16415
16416 2010-12-10  Eric Blake  <eblake@redhat.com>
16417
16418         pipe-posix: new module
16419         * modules/pipe-posix: New file.
16420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16421         (gl_UNISTD_H): Check for declaration.
16422         * modules/unistd (Makefile.am): Substitute it.
16423         * lib/unistd.in.h (pipe): Provide it for mingw.
16424         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16425         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16426
16427 2010-12-07  Bruno Haible  <bruno@clisp.org>
16428
16429         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16430         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16431         u8_strcmp_gnu.
16432         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16433
16434 2010-12-06  Bruno Haible  <bruno@clisp.org>
16435
16436         Update internal documentation.
16437         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16438
16439 2010-12-04  Bruno Haible  <bruno@clisp.org>
16440
16441         Put more information about failed tests into the test return codes.
16442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16443         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16444         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16447         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16449         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16450         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16452         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16453         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16454         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16455         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16456         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16457         returns a bit mask.
16458         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16459         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16460         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16461         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16462         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16466         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16467         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16468         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16469         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16470         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16472         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16473         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16474         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16475         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16476         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16477         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16479         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16481         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16482         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16483         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16484         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16485         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16486         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16487         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16488         gl_PRINTF_PRECISION): Likewise.
16489         * m4/regex.m4 (gl_REGEX): Likewise.
16490         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16491         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16492         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16493         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16497         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16498         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16499         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16502         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16503         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16504         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16506         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16509         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16510         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16511         enumerated value.
16512         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16513
16514 2010-12-04  Bruno Haible  <bruno@clisp.org>
16515
16516         Update for Solaris 11 2010-11.
16517         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16518         Express, released in November 2010.
16519
16520 2010-12-04  Bruno Haible  <bruno@clisp.org>
16521
16522         nproc: Relax license.
16523         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16524         and Paul Eggert.
16525         Requested by Ludovic Courtès <ludo@gnu.org>.
16526
16527 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16528
16529         utimecmp: fine-grained src to nearby coarse-grained dest
16530
16531         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16532         and the source is on a file system with higher-resolution time
16533         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16534         not work, and the time stamps are close together, the algorithm to
16535         determine the exact resolution from the read-back mtime was buggy:
16536         it had a "!=" where it should have had an "==".  This bug has been
16537         in the code ever since it was introduced to gnulib.
16538         Problem reported by Dan Jacobson in
16539         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16540
16541 2010-11-30  Bruno Haible  <bruno@clisp.org>
16542
16543         strerror_r-posix: Fix autoconf test.
16544         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16545
16546 2010-11-28  Bruno Haible  <bruno@clisp.org>
16547             Paul Eggert  <eggert@cs.ucla.edu>
16548
16549         Tests for module 'getdomainname'.
16550         * modules/getdomainname-tests: New file.
16551         * tests/test-getdomainname.c: New file, based on
16552         tests/test-gethostname.c.
16553
16554 2010-11-28  Bruno Haible  <bruno@clisp.org>
16555             Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         getdomainname: Use the system function when possible.
16558         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16559         (getdomainname): Replace if needed. Provide the declaration if it is
16560         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16561         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16562         (getdomainname): When the system has getdomainname, call the system
16563         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16564         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16565         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16566         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16567         the function if its second argument is of type 'int' or if it is found
16568         in libnsl.
16569         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16570         <sys/systeminfo.h> and sysinfo().
16571         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16573         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16574         HAVE_GETDOMAINNAME.
16575         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16576         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16577         * doc/glibc-functions/getdomainname.texi: Document the problems with
16578         the getdomainname declaration.
16579
16580 2010-11-28  Bruno Haible  <bruno@clisp.org>
16581
16582         sys_socket: Ensure ss_family field on AIX.
16583         * lib/sys_socket.in.h (ss_family): New macro definition.
16584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16585         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16586         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16587         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16588         * modules/sys_socket (Makefile.am): Substitute
16589         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16590         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16591
16592 2010-11-27  Bruno Haible  <bruno@clisp.org>
16593
16594         readline: Improve configure output.
16595         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16596         "checking for readline..." result understandable.
16597
16598 2010-11-27  Bruno Haible  <bruno@clisp.org>
16599
16600         *printf-posix: Detect a bug on Solaris 10/x86.
16601         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16602         for floating-point output.
16603         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16604         directive.
16605         * tests/test-snprintf-posix.h (test_function): Likewise.
16606         * tests/test-sprintf-posix.h (test_function): Likewise.
16607         * tests/test-vasprintf-posix.c (test_function): Likewise.
16608         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16609         * doc/posix-functions/printf.texi: Likewise.
16610         * doc/posix-functions/snprintf.texi: Likewise.
16611         * doc/posix-functions/sprintf.texi: Likewise.
16612         * doc/posix-functions/vfprintf.texi: Likewise.
16613         * doc/posix-functions/vprintf.texi: Likewise.
16614         * doc/posix-functions/vsnprintf.texi: Likewise.
16615         * doc/posix-functions/vsprintf.texi: Likewise.
16616         * doc/glibc-functions/obstack_printf.texi: Likewise.
16617         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16618
16619 2010-11-27  Bruno Haible  <bruno@clisp.org>
16620
16621         Fix link error when module libunistring-optional is in use.
16622         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16623         * modules/striconveha-tests (Makefile.am): Likewise.
16624
16625 2010-11-27  Bruno Haible  <bruno@clisp.org>
16626
16627         regex: Mention link dependencies.
16628         * modules/regex (Link): New section.
16629         * modules/rpmatch (Link): Likewise.
16630         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16631
16632 2010-11-27  Bruno Haible  <bruno@clisp.org>
16633
16634         ftoastr: Fix compilation error on Solaris.
16635         * lib/ftoastr.c: Include <config.h>.
16636
16637 2010-11-27  Bruno Haible  <bruno@clisp.org>
16638
16639         getloadavg: Update documentation.
16640         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16641
16642 2010-11-27  Bruno Haible  <bruno@clisp.org>
16643
16644         sys_socket: Fix test whether the functions are declared.
16645         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16646         not <sys/select.h>.
16647
16648 2010-11-27  Bruno Haible  <bruno@clisp.org>
16649
16650         getpass: Make sure to get system declaration on some platforms.
16651         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16652         gl_USE_SYSTEM_EXTENSIONS.
16653         * modules/getpass (Depends-on): Add extensions.
16654
16655 2010-11-26  Bruno Haible  <bruno@clisp.org>
16656
16657         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16658         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16659         'iconv' module is present.
16660         (ICONV_CONST): New macro.
16661         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16662         ICONV_CONST.
16663         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16664         set ICONV_CONST.
16665         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16666         here.
16667         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16668         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16669         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16670         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16671         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16672         present.
16673
16674 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16675
16676         ftoastr: comment fix
16677         * lib/ftoastr.c: "little" -> "little or no" in comment
16678
16679 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16680
16681         stdint: port to GCC 4.3 + OSX + Octave
16682         On this platform, stdint.h is buggy and defines int64_t to long
16683         long int.  The replacement defined it to long int, causing
16684         problems with C++ style name mangling.  Instead, trust the system
16685         definition if INT64_MAX is defined, and likewise for the unsigned
16686         variant.   Problem reported by Jarno Rajahalme in
16687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16688         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16689         and don't mess with int64_t and INT64_MAX in this case.
16690         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16691
16692 2010-11-24  Bruno Haible  <bruno@clisp.org>
16693
16694         doc: Corrections regarding MacOS X 10.4 and 10.5.
16695         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16696         MacOS X.
16697         Reported by Simon Josefsson.
16698
16699 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16700
16701         Uninstall ".bin" files installed by relocwrapper.
16702         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16703         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16704         unless it is already there.
16705
16706 2010-11-21  Bruno Haible  <bruno@clisp.org>
16707
16708         Update for NetBSD 5.0.
16709         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16710         NetBSD; the test fails on NetBSD 5.0.
16711         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16712         about NetBSD.
16713
16714 2010-11-21  Bruno Haible  <bruno@clisp.org>
16715
16716         Update for HP-UX 11.23 and HP-UX 11.31.
16717         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16718         HP-UX.
16719
16720 2010-11-21  Bruno Haible  <bruno@clisp.org>
16721
16722         Update for MacOS X 10.5.
16723         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16724         MacOS X; the test fails on MacOS X 10.5.8.
16725         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16726         about MacOS X.
16727
16728 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16729
16730         bootstrap: add bootstrap_sync option.
16731         See discussion at
16732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16734         * build-aux/bootstrap: Accept --bootstrap-sync to update
16735         bootstrap if it is not identical to the local gnulib's
16736         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16737         enable this by default.  Accept --no-bootstrap-sync to disable
16738         it.
16739
16740 2010-11-20  Bruno Haible  <bruno@clisp.org>
16741
16742         Ensure that <features.h> is included before __GLIBC__ is tested.
16743         * lib/printf-parse.h: Include <features.h>.
16744         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16745         Reported by Mike Frysinger <vapier@gentoo.org>.
16746
16747         Ensure that <features.h> is included before __GLIBC__ is tested.
16748         * lib/wchar.in.h: Include <features.h>.
16749         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16750         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16751         Reported by Mike Frysinger <vapier@gentoo.org>.
16752
16753         Ensure that <features.h> is included before __GLIBC__ is tested.
16754         * lib/arpa_inet.in.h: Include <features.h>.
16755         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16756         * modules/arpa_inet (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         * build-aux/link-warning.h: Include <features.h>.
16761         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16762         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16763         Reported by Mike Frysinger <vapier@gentoo.org>.
16764
16765         Ensure that <features.h> is included before __GLIBC__ is tested.
16766         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16767         Reported by Mike Frysinger <vapier@gentoo.org>.
16768
16769 2010-11-20  Bruno Haible  <bruno@clisp.org>
16770
16771         memmem: Fix autoconf test.
16772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16773
16774 2010-11-20  Bruno Haible  <bruno@clisp.org>
16775
16776         Port to uClibc.
16777         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16778         * lib/fcntl.in.h: Likewise.
16779         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16780         * lib/mbrtowc.c (mbrtowc): Likewise.
16781         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16782         * lib/strerror_r.c: Likewise.
16783         * lib/unistr/u8-strnlen.c: Likewise.
16784         * lib/vasnprintf.c (decimal_point_char): Likewise.
16785         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16786         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16787         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16788         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16789         * tests/test-sigaction.c (handler, main): Likewise.
16790         * lib/freading.h: Treat uClibc like a non-glibc platform.
16791         * lib/freading.c: Likewise.
16792         * lib/gettext.h: Likewise.
16793         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16794         Likewise.
16795         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16796         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16797         * lib/propername.c (proper_name_utf8): Likewise.
16798         * lib/spawn.in.h: Likewise.
16799         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16800         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16801         mem_cd_iconveh_internal): Likewise.
16802         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16803         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16804         strstr, strcasestr): Likewise.
16805         * lib/unicodeio.c (unicode_to_mb): Likewise.
16806         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16807         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16808         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16809         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16810         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16811         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16812         * lib/unistr/u8-stpncpy.c: Likewise.
16813         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16814         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16816         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16817         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16818         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16819         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16822         Likewise.
16823         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16824         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16825         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16827         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16828         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16829         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16830         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16831         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16832         * tests/test-striconveha.c (main): Likewise.
16833         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16834         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16835         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16836         * doc/posix-functions/getline.texi: Likewise.
16837         Reported by Mike Frysinger <vapier@gentoo.org>.
16838
16839 2010-11-20  Bruno Haible  <bruno@clisp.org>
16840
16841         nproc: Fix condition.
16842         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16843         HAVE_PTHREAD_AFFINITY_NP.
16844
16845 2010-11-20  Bruno Haible  <bruno@clisp.org>
16846
16847         Fix a comment.
16848         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16849
16850 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16851
16852         ftoastr: don't assume snprintf
16853         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16854         Implement a subset of snprintf here, by using sprintf safely.
16855         * modules/ftoastr (Depends-on): Remove snprintf.
16856
16857 2010-11-19  Jim Meyering  <meyering@redhat.com>
16858
16859         test-rename.h: fix compilation failure
16860         * tests/test-rename.h (test_rename): Add omitted "}".
16861
16862 2010-11-17  Jim Meyering  <meyering@redhat.com>
16863
16864         maint.mk: add a URL discussing the no-@acronym policy
16865         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16866
16867 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16868
16869         ftoastr: depend on snprintf, improve comments
16870         * lib/ftoastr.c: Also mention Loitsch's draft.
16871         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16872         needed in the current implementation, but it might simplify
16873         speeding up the code later.
16874         * modules/ftoastr: Depend on snprintf; this improves portability.
16875         Suggested by Bruno Haible in the same email.
16876
16877         ftoastr: port to hosts lacking strtof and strtold
16878         Problem reported by Bruno Haible in
16879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16880         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16881         environment and strtold (and presumably strtof) are not available.
16882         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16883         (configure.ac): Require gl_C99_STRTOLD.
16884
16885 2010-11-18  Bruno Haible  <bruno@clisp.org>
16886
16887         c-strtold: Avoid link error on AIX 7.
16888         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16889         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16890         (gl_C_STRTOLD): Test whether strtold_l exists.
16891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16892
16893 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16894
16895         intprops: new macro INT_BITS_STRLEN_BOUND
16896         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16897         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16898         not exposed.  Also, it uses a slightly tighter bound than before;
16899         though this makes no practical difference, we might as well be as
16900         tight as we easily can.
16901
16902         ftoastr: new module, for lossless conversion of floats to short strings
16903         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16904         * modules/ftoastr: New files.
16905
16906 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         bootstrap: port to Solaris sed
16909         * build-aux/bootstrap (get_version): Port to Solaris sed.
16910         See Ralf Wildenhues's note in
16911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16912
16913 2010-11-14  Jim Meyering  <meyering@redhat.com>
16914
16915         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16916         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16917         and move definition closer to sole use.
16918
16919 2010-11-13  Jim Meyering  <meyering@redhat.com>
16920
16921         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16922         Now we require at least autoconf-2.59, which means the work-around
16923         is no longer needed.
16924         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16925         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16927         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16928         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16929
16930 2010-11-13  Bruno Haible  <bruno@clisp.org>
16931
16932         rename, renameat: Avoid test failures at NFS mounted locations.
16933         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16934         functions.
16935         (test_rename): Use assert_nonexistent.
16936         * tests/test-rename.c: Include <dirent.h>.
16937         * tests/test-renameat.c: Likewise.
16938         Reported by Gary V. Vaughan <gary@gnu.org>.
16939
16940         rename, renameat: Document Linux bug with NFS
16941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16942         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16943         * doc/posix-functions/renameat.texi: Likewise.
16944         Suggested by Eric Blake.
16945
16946 2010-11-13  Bruno Haible  <bruno@clisp.org>
16947
16948         rename test: Add comments.
16949         * tests/test-rename.h (test_rename): Add structure and comments.
16950
16951 2010-11-13  Eric Blake  <eblake@redhat.com>
16952
16953         maintainer-makefile: cover a few more files
16954         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16955         scripts generated within C files, for libvirt.
16956
16957 2010-11-13  Bruno Haible  <bruno@clisp.org>
16958
16959         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16960         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16961         character, return the number of bytes that belong together, not always
16962         1.
16963         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16964         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16965         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16966         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16967         number of bytes of an invalid character.
16968         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16969         (main): Invoke it.
16970         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16971         results.
16972         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16973         malformed byte sequences.
16974         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16975         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16976         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16977         Reported by Ben Pfaff and Paolo Bonzini.
16978
16979 2010-11-13  Bruno Haible  <bruno@clisp.org>
16980
16981         openat: Work around glibc bug with fchownat() and empty file names.
16982         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16983         (gl_FUNC_FCHOWNAT): Invoke it.
16984         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16985         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16986         Reported by Gary V. Vaughan <gary@gnu.org>.
16987
16988 2010-11-13  Bruno Haible  <bruno@clisp.org>
16989
16990         openat: Ensure autoconf macro ordering.
16991         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16992         gl_USE_SYSTEM_EXTENSIONS.
16993         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16994
16995 2010-11-13  Bruno Haible  <bruno@clisp.org>
16996
16997         Update comments.
16998         * lib/unistr/u8-check.c: Update file name in comments.
16999         * lib/unistr/u8-mblen.c: Likewise.
17000         * lib/unistr/u8-prev.c: Likewise.
17001         * lib/unistr/u8-strmblen.c: Likewise.
17002         * lib/unistr/u8-strmbtouc.c: Likewise.
17003
17004 2010-11-13  Jim Meyering  <meyering@redhat.com>
17005
17006         tests: avoid test failure on Solaris 10 due to lack of PATH export
17007         * tests/test-update-copyright.sh: Don't forget to export PATH.
17008
17009         init.sh: ensure that IFS is defined, just in case...
17010         * tests/init.sh (setup_): Ensure that IFS is defined,
17011         so that saving and restoring it works as expected.  This
17012         appears to be useful at least for an old version of dash
17013         from a long time ago (RH 6).  See here for details:
17014         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17015
17016         maint.mk: tighten "test a == b" check
17017         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17018         test to files that contain something like #!/bin/sh.
17019         Without this, coreutils would get two false positives in
17020         the comments of C source files.
17021
17022 2010-11-12  Eric Blake  <eblake@redhat.com>
17023
17024         bootstrap: fix typo in previous attempt
17025         * build-aux/bootstrap (buildreq): Correct the grouping.
17026         Reported by Paul Eggert.
17027
17028         maintainer-makefile: prohibit test x == x
17029         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17030         Based on a report by Matthias Bolte.
17031
17032         bootstrap: allow FreeBSD gzip
17033         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17034         which has no '.' and goes to stderr.
17035         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17036         Reported by Matthias Bolte.
17037
17038         maintainer-makefile: check for i18n setup
17039         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17040         will likely work.
17041
17042 2010-11-12  Bruno Haible  <bruno@clisp.org>
17043
17044         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17045         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17046         * lib/nanosleep.c (nanosleep): Likewise.
17047
17048 2010-11-11  Bruno Haible  <bruno@clisp.org>
17049
17050         fcntl-h: Fix for use of C++ on glibc systems.
17051         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17052         also on glibc systems in C++ mode.
17053         Reported by Gary V. Vaughan <gary@gnu.org>.
17054
17055 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17056
17057         mknod: avoid false failure with dash
17058         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17059
17060 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17061
17062         unlink: Fix "is it should" typo in diagnostic.
17063         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17065
17066 2010-11-11  Bruno Haible  <bruno@clisp.org>
17067
17068         Tests for module 'strerror_r-posix'.
17069         * modules/strerror_r-posix-tests: New file.
17070         * tests/test-strerror_r.c: New file.
17071         * tests/test-string-c++.cc: Check the signature of strerror_r.
17072
17073         New module 'strerror_r-posix'.
17074         * lib/string.in.h (strerror_r): New declaration.
17075         * lib/strerror_r.c: New file.
17076         * m4/strerror_r.m4: New file.
17077         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17078         of strerror_r.
17079         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17080         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17081         * modules/strerror_r-posix: New file.
17082         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17083         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17084         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17085         portability problems.
17086
17087 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17088
17089         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17090         line is also considered for output. Quoted function name in shell
17091         command, so temporary files for functions like MyClass::operator()
17092         are removed correctly without errors.
17093
17094 2010-11-09  Bruno Haible  <bruno@clisp.org>
17095
17096         * doc/posix-functions/strerror.texi: List more failing platforms.
17097
17098         * doc/posix-functions/strerror.texi: Add a comment.
17099
17100 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17101
17102         fdopendir: fix bug on MacOS X when low on file descriptors
17103
17104         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17105         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17106         All callers changed.
17107         (fdopendir): Invoke save_cwd at the top level, not after using
17108         multiple dup() calls to use up file descriptors.  Then retry
17109         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17110         less than the maximum number of open file descriptors, because
17111         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17112         on Mac OS X 10.6.4 for tar 1.24
17113         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17114         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17115         and for tar 1.25
17116         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17117
17118 2010-11-07  Bruno Haible  <bruno@clisp.org>
17119
17120         vasnprintf: Support I flag on glibc systems.
17121         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17122         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17123         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17124         snprintf function.
17125         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17126         glibc systems.
17127         * tests/test-vasnprintf-posix3.c: New file.
17128         * modules/vasnprintf-posix-tests (Files): Add it.
17129         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17130
17131 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17132
17133         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17134         * MODULES.html.sh: For compiler warnings, use name
17135         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17136
17137 2010-11-05  Eric Blake  <eblake@redhat.com>
17138
17139         ceil, floor: avoid spurious failure with icc
17140         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17141         [denormals-as-zero] when optimizing without -mieee-fp option.
17142         * tests/test-floorf2.c (floorf_reference): Likewise.
17143         * tests/test-ceilf1.c (dummy): New function.
17144         (main): Use it to outsmart icc's optimization.
17145         * tests/test-floorf1.c (dummy, main): Likewise.
17146
17147         tests: require working signbit
17148         * modules/ceilf-tests (Depends-on): Add signbit.
17149         * modules/ceill-tests (Depends-on): Likewise.
17150         * modules/floorf-tests (Depends-on): Likewise.
17151         * modules/floorl-tests (Depends-on): Likewise.
17152         * modules/round-tests (Depends-on): Likewise.
17153         * modules/roundf-tests (Depends-on): Likewise.
17154         * modules/roundl-tests (Depends-on): Likewise.
17155         * modules/trunc-tests (Depends-on): Likewise.
17156         * modules/truncf-tests (Depends-on): Likewise.
17157         * modules/truncl-tests (Depends-on): Likewise.
17158
17159         strtod: work around icc bug
17160         * lib/strtod.c (minus_zero): Define to working value.
17161         (strtod): Use it to avoid icc bug.
17162
17163         copysign: enhance tests
17164         * modules/copysign-tests (Files): Add minus-zero.h.
17165         * tests/test-copysign.c (main): Also test zeros.
17166
17167 2010-11-04  Eric Blake  <eblake@redhat.com>
17168
17169         ceil, floor, round, trunc: enhance tests of -0
17170         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17171         * tests/test-ceill.c (main): Likewise.
17172         * tests/test-floorf1.c (main): Likewise.
17173         * tests/test-floorl.c (main): Likewise.
17174         * tests/test-round1.c (main): Likewise.
17175         * tests/test-roundf1.c (main): Likewise.
17176         * tests/test-roundl.c (main): Likewise.
17177         * tests/test-trunc1.c (main): Likewise.
17178         * tests/test-truncf1.c (main): Likewise.
17179         * tests/test-truncl.c (main): Likewise.
17180
17181 2010-11-04  Eric Blake  <eblake@redhat.com>
17182
17183         frexp, tests: work around ICC bug with -zero
17184         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17185         works with more compilers.
17186         * tests/minus-zero.h: New file.
17187         * modules/ceilf-tests (Files): Include it.
17188         * modules/ceill-tests (Files): Likewise.
17189         * modules/floorf-tests (Files): Likewise.
17190         * modules/floorl-tests (Files): Likewise.
17191         * modules/frexp-nolibm-tests (Files): Likewise.
17192         * modules/frexp-tests (Files): Likewise.
17193         * modules/frexpl-nolibm-tests (Files): Likewise.
17194         * modules/frexpl-tests (Files): Likewise.
17195         * modules/isnan-tests (Files): Likewise.
17196         * modules/isnand-nolibm-tests (Files): Likewise.
17197         * modules/isnand-tests (Files): Likewise.
17198         * modules/isnanf-nolibm-tests (Files): Likewise.
17199         * modules/isnanf-tests (Files): Likewise.
17200         * modules/isnanl-nolibm-tests (Files): Likewise.
17201         * modules/isnanl-tests (Files): Likewise.
17202         * modules/round-tests (Files): Likewise.
17203         * modules/roundf-tests (Files): Likewise.
17204         * modules/roundl-tests (Files): Likewise.
17205         * modules/ldexpl-tests (Files): Likewise.
17206         * modules/signbit-tests (Files): Likewise.
17207         * modules/snprintf-posix-tests (Files): Likewise.
17208         * modules/sprintf-posix-tests (Files): Likewise.
17209         * modules/strtod-tests (Files): Likewise.
17210         * modules/trunc-tests (Files): Likewise.
17211         * modules/truncf-tests (Files): Likewise.
17212         * modules/truncl-tests (Files): Likewise.
17213         * modules/vsnprintf-posix-tests (Files): Likewise.
17214         * modules/vsprintf-posix-tests (Files): Likewise.
17215         * modules/vasnprintf-posix-tests (Files): Likewise.
17216         * modules/vasprintf-posix-tests (Files): Likewise.
17217         * tests/test-ceilf1.c (main): Use it.
17218         * tests/test-ceill.c (main): Likewise.
17219         * tests/test-floorf1.c (main): Likewise.
17220         * tests/test-floorl.c (main): Likewise.
17221         * tests/test-frexp.c (main): Likewise.
17222         * tests/test-frexpl.c (main): Likewise.
17223         * tests/test-isnan.c (main): Likewise.
17224         * tests/test-isnand.h (main): Likewise.
17225         * tests/test-isnanf.h (main): Likewise.
17226         * tests/test-isnanl.h (main): Likewise.
17227         * tests/test-ldexpl.c (main): Likewise.
17228         * tests/test-round.c (main): Likewise.
17229         * tests/test-roundf.c (main): Likewise.
17230         * tests/test-roundl.c (main): Likewise.
17231         * tests/test-signbit.c (test_signbitf, test_signbitd)
17232         (test_signbitl): Likewise.
17233         * tests/test-snprintf-posix.h (test_function): Likewise.
17234         * tests/test-sprintf-posix.h (test_function): Likewise.
17235         * tests/test-strtod.c (main): Likewise.
17236         * tests/test-trunc1.c (main): Likewise.
17237         * tests/test-truncf1.c (main): Likewise.
17238         * tests/test-truncl.c (main): Likewise.
17239
17240         isnanl: work around icc bug
17241         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17242
17243 2010-11-03  Eric Blake  <eblake@redhat.com>
17244
17245         tests: fix compiler warnings
17246         * tests/test-getopt.h (test_getopt): Fix condition.
17247         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17248         * tests/test-pipe2.c (main): Likewise.
17249         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17250
17251         utimens: fix broken m4 test
17252         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17253
17254 2010-10-28  Bruno Haible  <bruno@clisp.org>
17255
17256         posix_spawn*, getdtablesize: Relax license.
17257         * modules/posix_spawn (License): Change to LGPLv2+.
17258         * modules/posix_spawnp (License): Likewise.
17259         * modules/posix_spawn-internal (License): Likewise.
17260         * modules/posix_spawnattr_init (License): Likewise.
17261         * modules/posix_spawnattr_getflags (License): Likewise.
17262         * modules/posix_spawnattr_setflags (License): Likewise.
17263         * modules/posix_spawnattr_getpgroup (License): Likewise.
17264         * modules/posix_spawnattr_setpgroup (License): Likewise.
17265         * modules/posix_spawnattr_getschedparam (License): Likewise.
17266         * modules/posix_spawnattr_setschedparam (License): Likewise.
17267         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17268         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17269         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17270         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17271         * modules/posix_spawnattr_getsigmask (License): Likewise.
17272         * modules/posix_spawnattr_setsigmask (License): Likewise.
17273         * modules/posix_spawnattr_destroy (License): Likewise.
17274         * modules/posix_spawn_file_actions_init (License): Likewise.
17275         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17276         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17277         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17278         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17279         * modules/getdtablesize (License): Likewise.
17280         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17281
17282 2010-10-26  Bruno Haible  <bruno@clisp.org>
17283
17284         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17285         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17286         Cygwin and mingw.
17287         Suggested by Eric Blake.
17288
17289 2010-10-26  Bruno Haible  <bruno@clisp.org>
17290
17291         stdio: Work around compilation error due to renameat() on Solaris 10.
17292         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17293         * lib/renameat.c: Don't include <unistd.h> here.
17294         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17295         Reported by Paul Eggert and Eric Blake.
17296
17297 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17298
17299         renameat: port to Solaris 10, which declares renameat in unistd.h
17300
17301         * lib/renameat.c: Include unistd.h before stdio.h, because
17302         Solaris 10 declares renameat in unistd.h.  Problem encountered
17303         when building GNU tar 1.24 on Solaris 10.
17304
17305 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17306
17307         fdopendir: fix C89 compilation
17308         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17309         compilers.
17310
17311 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17312
17313         inttostr: simplify by removing unnecessary redundancy
17314         * lib/anytostr.c: Don't include verify.h.
17315         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17316         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17317         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17318         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17319         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17320         Likewise.
17321         * modules/inttostr (Depends-on): Remove 'verify'.
17322
17323 2010-10-23  Bruno Haible  <bruno@clisp.org>
17324
17325         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17326         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17327         Reported by Eric Blake.
17328
17329 2010-10-23  Bruno Haible  <bruno@clisp.org>
17330
17331         Tests: Fix LOCALE_JA on MirBSD 10.
17332         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17333         to an UTF-8 locale.
17334         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17335         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17336         Reported by Eric Blake.
17337
17338 2010-10-21  Bruno Haible  <bruno@clisp.org>
17339
17340         nl_langinfo test: Avoid test failure on NetBSD 5.
17341         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17342         Reported by Eric Blake.
17343
17344 2010-10-21  Eric Blake  <eblake@redhat.com>
17345
17346         c-stack: work around libsigsegv 2.8 bug
17347         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17348         overflow on at least PowerPC64.
17349
17350 2010-10-17  Bruno Haible  <bruno@clisp.org>
17351
17352         userspec: Drop redundant file.
17353         * modules/userspec (Files): Remove lib/inttostr.h.
17354
17355 2010-10-17  Bruno Haible  <bruno@clisp.org>
17356
17357         nl_langinfo tests: Silence some warnings.
17358         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17359         Reported by Jim Meyering.
17360
17361 2010-10-17  Bruno Haible  <bruno@clisp.org>
17362
17363         Make use of GCC's attribute __alloc_size__.
17364         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17365         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17366         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17367         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17368         __alloc_size__.
17369         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17370         Suggested by Jim Meyering.
17371
17372 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17373
17374         bootstrap: anchor .gitignore entries.
17375         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17376         with...
17377         (insert_vc_ignore): ... this new function, which prepends `/' to
17378         all .gitignore entries before passing them to
17379         insert_sorted_if_absent.
17380
17381 2010-10-16  Bruno Haible  <bruno@clisp.org>
17382
17383         nextafter: Fix configure check.
17384         * modules/nextafter (configure.ac): Correct expected prototype.
17385
17386 2010-10-16  Bruno Haible  <bruno@clisp.org>
17387
17388         termios: Update documentation.
17389         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17390
17391 2010-10-16  Bruno Haible  <bruno@clisp.org>
17392
17393         tests: Make them compile with TinyCC.
17394         * tests/test-strstr.c (main): Remove parentheses around array
17395         initializer.
17396
17397 2010-10-15  Eric Blake  <eblake@redhat.com>
17398
17399         ignore-value: make header idempotent
17400         * lib/ignore-value.h: Add double-inclusion guards.
17401         Reported by Stefan Berger.
17402
17403 2010-10-15  Jim Meyering  <meyering@redhat.com>
17404
17405         GNUmakefile: handle "stable" target, not "major"
17406         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17407         lists in maint.mk and announce-gen.  Without this, "make stable"
17408         would fail to ensure that $(VERSION) is up to date.
17409
17410 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17411
17412         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17413         & co.
17414
17415 2010-10-14  Bruno Haible  <bruno@clisp.org>
17416
17417         vasnprintf: Don't set errno to 0.
17418         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17419         block that sets it to 0.
17420         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17421
17422 2010-10-14  Bruno Haible  <bruno@clisp.org>
17423
17424         socketlib: Fix.
17425         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17426         gl_PREREQ_SYS_H_WINSOCK2.
17427         Reported by Ian Beckwith <ianb@erislabs.net>.
17428
17429 2010-10-13  Jim Meyering  <meyering@redhat.com>
17430
17431         test-select-stdin.c: avoid warn_unused_result warnings
17432         * tests/test-select-stdin.c: Include "macros.h".
17433         ASSERT that read and fflush succeed.
17434
17435 2010-10-13  Jim Meyering  <meyering@redhat.com>
17436
17437         git-version-gen: do require git-VC'd files in cwd
17438         * build-aux/git-version-gen: Reject a git version string
17439         if there are no commits associated with the current directory.
17440         This avoids an unlikely false-positive (unrelated dir whose parent
17441         repository also contains a tag matching v*), as pointed out
17442         by Giuseppe Scrivano in
17443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17444
17445 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17446
17447         argv-iter: omit nonconforming declaration
17448         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17449         enum arg_iter_err declaration, which doesn't conform to C99.
17450         Solaris 10 cc warns about this.
17451
17452 2010-10-13  Eric Blake  <eblake@redhat.com>
17453
17454         termios: fix compilation on mingw
17455         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17456         (gl_TERMIOS_H): Adjust it on mingw.
17457         * modules/termios (Makefile.am): Substitute new key.
17458         * lib/termios.in.h (includes): Make include_next conditional.
17459         * doc/posix-headers/termios.texi (termios.h): Update
17460         documentation.
17461         Reported by Daniel P. Berrange.
17462
17463 2010-10-13  Jim Meyering  <meyering@redhat.com>
17464
17465         git-version-gen: don't require that .git/ be in the current dir
17466         * build-aux/git-version-gen: Adjust this script so that it works
17467         when run from any working directory beneath the top-level .git/-
17468         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17470
17471         test-select: avoid warn_unused_result warnings
17472         * tests/test-select.c: Include "macros.h".
17473         ASSERT that each call to read, write, and pipe succeeds.
17474         While not technically required, also check each "close".
17475         * modules/select-tests (Files): Add tests/macros.h.
17476
17477         test-symlinkat: remove declaration of unused local
17478         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17479
17480         test-inttostr: avoid shadowing warnings
17481         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17482         and use malloc rather than the stack for the same reason as
17483         mentioned in the comment justifying the other allocation.
17484
17485 2010-10-11  Bruno Haible  <bruno@clisp.org>
17486
17487         stdlib: Allow multiple gnulib generated replacements to coexist.
17488         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17489         Reported by Sam Steingold <sds@gnu.org>.
17490
17491 2010-10-11  Jim Meyering  <meyering@redhat.com>
17492
17493         fix a documentation typo
17494         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17495
17496 2010-10-11  Eric Blake  <eblake@redhat.com>
17497
17498         futimens: work around Solaris 11 bug
17499         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17500         * tests/test-futimens.h (test_futimens): Enhance, rather than
17501         weaken test.
17502         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17503
17504 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17505
17506         Indentation.
17507         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17508         higher-level operators more to the left.
17509
17510 2010-10-11  Jim Meyering  <meyering@redhat.com>
17511
17512         test-futimens: avoid unwarranted test failure on Solaris 5.11
17513         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17514         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17515         because it tries to dereference the NULL name argument.
17516
17517 2010-10-11  Bruno Haible  <bruno@clisp.org>
17518
17519         Indentation.
17520         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17521         indentation.
17522
17523 2010-10-11  Jim Meyering  <meyering@redhat.com>
17524
17525         spawn.in.h: make indentation consistent with parentheses
17526         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17527         Make indentation consistent with parentheses.
17528
17529 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17530
17531         Fix mismatched parens in previous commit
17532         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17533         parens.
17534
17535 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17536
17537         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17538
17539         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17540         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17541         * lib/malloca.c: Include "verify.h".
17542         (verify1): Remove, replacing with a verify call.
17543         * lib/relocwrapper.c (verify1): Likewise.
17544         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17545         Likewise.
17546         * modules/malloca (Depends-on): Add 'verify'.
17547         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17548         * modules/vasnprintf (Depends-on): Add 'verify'.
17549         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17550         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17551         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17552         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17553         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17554         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17555         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17556
17557         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17558
17559         Formerly the style was sometimes 2*X - 1, because the C standard
17560         was wrongly thought to disallow ?: in integral constant expressions.
17561         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17562         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17563         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17564         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17565         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17566         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17567         verify that time_t cannot be floating.
17568
17569 2010-10-08  Eric Blake  <eblake@redhat.com>
17570
17571         time: enforce recent POSIX ruling that time_t is integral
17572         * lib/time.in.h (__time_t_must_be_integral): Detect any
17573         problematic systems, allowing the rest of gnulib to assume POSIX.
17574
17575 2010-10-08  Jim Meyering  <meyering@redhat.com>
17576
17577         fdopendir: fix a bug on systems lacking openat and /proc support
17578         OpenBSD 4.7 is one such system.  The most noticeable effect was
17579         failure of any application making nontrivial use of fts: rm, du,
17580         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17581           ./rm: traversal failed: `a': Bad file descriptor
17582         Debugging that, you see that even though FD 6 was closed just
17583         prior to the opendir call in fd_clone_opendir, its resulting
17584         dir->dd_fd was 8, rather than the expected value of 6:
17585
17586         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17587         93                close (fd);
17588         (gdb) n
17589         94                dir = fd_clone_opendir (dupfd);
17590         (gdb) n
17591         95                saved_errno = errno;
17592         (gdb) p dir->dd_fd
17593         $11 = 8
17594
17595         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17596         The problem is that on OpenBSD, fd_clone_opendir has to resort
17597         to using the old-style save/restore CWD mechanism, due to its
17598         lack of openat/proc support, and *that* would steal the FD (6)
17599         that opendir was supposed to use.
17600
17601         The fix is to squirrel away the desired FD so that save_cwd uses a
17602         different one, and then free the dest FD right before calling opendir.
17603         That guarantees opendir will use the required file descriptor.
17604
17605         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17606
17607 2010-10-08  Bruno Haible  <bruno@clisp.org>
17608
17609         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17610         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17611
17612 2010-10-08  Bruno Haible  <bruno@clisp.org>
17613
17614         nanosleep: Make replacement POSIX compliant.
17615         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17616         is out of range.
17617         Reported by Jim Meyering.
17618
17619 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17620
17621         bootstrap: add hook for altering gnulib.mk, for Bison
17622         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17623         the Bison bootstrapping process can rewrite file names and variables
17624         in this file before later parts of 'bootstrap' use the file.
17625         Bison wants to include lib/gnulib.mk from the top-level makefile,
17626         so it needs the file names in this file to be relative to the top
17627         level, not relative to lib; plus it needs variable names to be
17628         rewritten.
17629         (slurp): Use the new function.
17630
17631         bootstrap: reformat for readability
17632         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17633
17634 2010-10-08  Eric Blake  <eblake@redhat.com>
17635
17636         docs: update cygwin progress
17637         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17638         1.7.7.
17639         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17640         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17641         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17642         * doc/posix-functions/carg.texi (carg): Likewise.
17643         * doc/posix-functions/cargf.texi (cargf): Likewise.
17644         * doc/posix-functions/casin.texi (casin): Likewise.
17645         * doc/posix-functions/casinf.texi (casinf): Likewise.
17646         * doc/posix-functions/casinh.texi (casinh): Likewise.
17647         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17648         * doc/posix-functions/catan.texi (catan): Likewise.
17649         * doc/posix-functions/catanf.texi (catanf): Likewise.
17650         * doc/posix-functions/catanh.texi (catanh): Likewise.
17651         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17652         * doc/posix-functions/ccos.texi (ccos): Likewise.
17653         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17654         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17655         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17656         * doc/posix-functions/cexp.texi (cexp): Likewise.
17657         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17658         * doc/posix-functions/cimag.texi (cimag): Likewise.
17659         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17660         * doc/posix-functions/clog.texi (clog): Likewise.
17661         * doc/posix-functions/clogf.texi (clogf): Likewise.
17662         * doc/posix-functions/conj.texi (conj): Likewise.
17663         * doc/posix-functions/conjf.texi (conjf): Likewise.
17664         * doc/posix-functions/cpow.texi (cpow): Likewise.
17665         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17666         * doc/posix-functions/cproj.texi (cproj): Likewise.
17667         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17668         * doc/posix-functions/creal.texi (creal): Likewise.
17669         * doc/posix-functions/crealf.texi (crealf): Likewise.
17670         * doc/posix-functions/csin.texi (csin): Likewise.
17671         * doc/posix-functions/csinf.texi (csinf): Likewise.
17672         * doc/posix-functions/csinh.texi (csinh): Likewise.
17673         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17674         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17675         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17676         * doc/posix-functions/ctan.texi (ctan): Likewise.
17677         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17678         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17679         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17680         * doc/posix-headers/complex.texi (complex.h): Likewise.
17681
17682 2010-10-07  Jim Meyering  <meyering@redhat.com>
17683
17684         parse-datetime: avoid compilation failure on OpenBSD 4.7
17685         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17686         This works around a compilation failure on OpenBSD 4.7:
17687         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17688
17689 2010-10-07  Eric Blake  <eblake@redhat.com>
17690
17691         docs: update cygwin progress
17692         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17693         1.7.6.
17694         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17695         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17696         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17697         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17698         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17699         Likewise.
17700         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17701         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17702         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17703         Likewise.
17704         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17705         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17706         Likewise.
17707         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17708         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17709         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17710         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17711         Likewise.
17712         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17713         Likewise.
17714         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17715
17716         docs: update parse-datetime history
17717         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17718         documentation of this function's history and alternatives.
17719
17720         cygwin: use more robust version check
17721         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17722         exclude an eventual cygwin 1.9.1.
17723         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17725         (gl_FUNC_STRCASESTR): Likewise.
17726         Reported by Bruno Haible.
17727
17728 2010-10-06  Bruno Haible  <bruno@clisp.org>
17729
17730         string, sys_select: Avoid #including large headers unless necessary.
17731         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17732         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17733         OSF/1, BeOS, Haiku.
17734         Reported by Jim Meyering.
17735
17736 2010-10-05  Eric Blake  <eblake@redhat.com>
17737
17738         memmem, strstr, strcasestr: fix bug with long periodic needle
17739         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17740         periodic needle having false positive.
17741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17742         and cygwin 1.7.7.
17743         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17745         (gl_FUNC_STRCASESTR): Likewise.
17746         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17747         * tests/test-memmem.c (main): Expose the bug.
17748         * tests/test-strcasestr.c (main): Likewise.
17749         * tests/test-strstr.c (main): Likewise.
17750         * tests/test-c-strcasestr.c (main): Likewise.
17751         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17752         * doc/posix-functions/strstr.texi (strstr): Likewise.
17753         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17754         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17755
17756 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17757
17758         parse-datetime: do some more renaming
17759         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17760         parse_datetime, not get_date.  Mention the renaming.
17761         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17762         in comments.
17763         * m4/bison.m4: Likewise.
17764
17765 2010-10-05  Eric Blake  <eblake@redhat.com>
17766
17767         parse-datetime: better name than get_date
17768         * NEWS: Reword the deprecation notice.
17769         * modules/get_date: Rename to modules/parse-datetime.
17770         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17771         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17772         * lib/get_date.y: Rename to lib/parse-datetime.y.
17773         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17774         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17775         * doc/getdate.texi: Provide fallback wrapper.
17776         * lib/getdate.h: Move guts, and wrap...
17777         * lib/parse-datetime.h: ...new file.
17778         * lib/parse-datetime.y (get_date): Rename...
17779         (parse_datetime): ...to this.
17780         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17781         (gl_PARSE_DATETIME): ...to this.
17782         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17783         documentation.
17784         * modules/getdate (Files): Provide fallback docs and header.
17785         (Notice, Depends-on): Update references.
17786         * tests/test-parse-datetime.c: Likewise.
17787         * DEPENDENCIES: Likewise.
17788         * MODULES.html.sh (Date and time <time.h>): Likewise.
17789         * doc/parse-datetime.texi (Date input formats)
17790         (Authors of parse_datetime): Likewise.
17791         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17792         (Include): Likewise.
17793         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17794         * gnulib-tool: Likewise.
17795         * m4/bison.m4 (gl_BISON): Likewise.
17796         Suggested by Bruno Haible.
17797
17798 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17799
17800         more ports to Solaris tr, which needs [] around ranges
17801         * gnulib-tool: Solaris tr needs [] around ranges.
17802         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17803         * tests/test-pipe-filter-gi1.c (main): Likewise.
17804         * tests/test-pipe-filter-ii1.c (main): Likewise.
17805
17806 2010-10-05  Eric Blake  <eblake@redhat.com>
17807
17808         bootstrap: fix Solaris regression
17809         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17810         around ranges.
17811         Reported by Pádraig Brady.
17812
17813         bootstrap: work with pkg-config
17814         * build-aux/bootstrap (check_versions): Also transliterate - in
17815         prerequisite name.
17816         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17817         prerequisites that were already found, to avoid confusion.
17818         Reported by Justin Clift.
17819
17820         faccessat: remove unused wrappers
17821         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17822         presence of these wrappers dragged in -lgen on Solaris.
17823         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17824
17825 2010-10-05  Jim Meyering  <meyering@redhat.com>
17826
17827         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17828         * Makefile (sc_pragma_columns): New syntax-check rule.
17829
17830 2010-10-04  Bruno Haible  <bruno@clisp.org>
17831
17832         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17833         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17834         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17835         Reported by Bruce Korb and Eric Blake.
17836
17837 2010-10-04  Bruno Haible  <bruno@clisp.org>
17838
17839         threadlib: Make option --with-libpth-prefix work.
17840         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17841         use $LIBPTH, not just -lpth.
17842
17843 2010-10-04  Bruno Haible  <bruno@clisp.org>
17844
17845         Avoid line length limitation from HP NonStop system header files.
17846         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17847         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17848         * lib/ctype.in.h: Likewise.
17849         * lib/dirent.in.h: Likewise.
17850         * lib/errno.in.h: Likewise.
17851         * lib/fcntl.in.h: Likewise.
17852         * lib/float.in.h: Likewise.
17853         * lib/getopt.in.h: Likewise.
17854         * lib/iconv.in.h: Likewise.
17855         * lib/inttypes.in.h: Likewise.
17856         * lib/langinfo.in.h: Likewise.
17857         * lib/locale.in.h: Likewise.
17858         * lib/math.in.h: Likewise.
17859         * lib/netdb.in.h: Likewise.
17860         * lib/netinet_in.in.h: Likewise.
17861         * lib/poll.in.h: Likewise.
17862         * lib/pthread.in.h: Likewise.
17863         * lib/pty.in.h: Likewise.
17864         * lib/sched.in.h: Likewise.
17865         * lib/se-selinux.in.h: Likewise.
17866         * lib/search.in.h: Likewise.
17867         * lib/signal.in.h: Likewise.
17868         * lib/spawn.in.h: Likewise.
17869         * lib/stdarg.in.h: Likewise.
17870         * lib/stddef.in.h: Likewise.
17871         * lib/stdint.in.h: Likewise.
17872         * lib/stdio.in.h: Likewise.
17873         * lib/stdlib.in.h: Likewise.
17874         * lib/string.in.h: Likewise.
17875         * lib/strings.in.h: Likewise.
17876         * lib/sys_file.in.h: Likewise.
17877         * lib/sys_ioctl.in.h: Likewise.
17878         * lib/sys_select.in.h: Likewise.
17879         * lib/sys_socket.in.h: Likewise.
17880         * lib/sys_stat.in.h: Likewise.
17881         * lib/sys_time.in.h: Likewise.
17882         * lib/sys_times.in.h: Likewise.
17883         * lib/sys_utsname.in.h: Likewise.
17884         * lib/sys_wait.in.h: Likewise.
17885         * lib/sysexits.in.h: Likewise.
17886         * lib/termios.in.h: Likewise.
17887         * lib/time.in.h: Likewise.
17888         * lib/unistd.in.h: Likewise.
17889         * lib/wchar.in.h: Likewise.
17890         * lib/wctype.in.h: Likewise.
17891         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17892         * modules/ctype (Makefile.am): Likewise.
17893         * modules/dirent (Makefile.am): Likewise.
17894         * modules/errno (Makefile.am): Likewise.
17895         * modules/fcntl-h (Makefile.am): Likewise.
17896         * modules/float (Makefile.am): Likewise.
17897         * modules/getopt-posix (Makefile.am): Likewise.
17898         * modules/iconv-h (Makefile.am): Likewise.
17899         * modules/inttypes (Makefile.am): Likewise.
17900         * modules/langinfo (Makefile.am): Likewise.
17901         * modules/locale (Makefile.am): Likewise.
17902         * modules/math (Makefile.am): Likewise.
17903         * modules/netdb (Makefile.am): Likewise.
17904         * modules/netinet_in (Makefile.am): Likewise.
17905         * modules/poll-h (Makefile.am): Likewise.
17906         * modules/pthread (Makefile.am): Likewise.
17907         * modules/pty (Makefile.am): Likewise.
17908         * modules/sched (Makefile.am): Likewise.
17909         * modules/search (Makefile.am): Likewise.
17910         * modules/selinux-h (Makefile.am): Likewise.
17911         * modules/signal (Makefile.am): Likewise.
17912         * modules/spawn (Makefile.am): Likewise.
17913         * modules/stdarg (Makefile.am): Likewise.
17914         * modules/stddef (Makefile.am): Likewise.
17915         * modules/stdint (Makefile.am): Likewise.
17916         * modules/stdio (Makefile.am): Likewise.
17917         * modules/stdlib (Makefile.am): Likewise.
17918         * modules/string (Makefile.am): Likewise.
17919         * modules/strings (Makefile.am): Likewise.
17920         * modules/sys_file (Makefile.am): Likewise.
17921         * modules/sys_ioctl (Makefile.am): Likewise.
17922         * modules/sys_select (Makefile.am): Likewise.
17923         * modules/sys_socket (Makefile.am): Likewise.
17924         * modules/sys_stat (Makefile.am): Likewise.
17925         * modules/sys_time (Makefile.am): Likewise.
17926         * modules/sys_times (Makefile.am): Likewise.
17927         * modules/sys_utsname (Makefile.am): Likewise.
17928         * modules/sys_wait (Makefile.am): Likewise.
17929         * modules/sysexits (Makefile.am): Likewise.
17930         * modules/termios (Makefile.am): Likewise.
17931         * modules/time (Makefile.am): Likewise.
17932         * modules/unistd (Makefile.am): Likewise.
17933         * modules/wchar (Makefile.am): Likewise.
17934         * modules/wctype (Makefile.am): Likewise.
17935
17936 2010-10-04  Bruno Haible  <bruno@clisp.org>
17937
17938         read-file tests: Avoid a test failure on NonStop Kernel.
17939         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17940         a regular file.
17941         Reported by Joachim Schmitz <schmitz@hp.com>.
17942
17943 2010-10-03  Bruno Haible  <bruno@clisp.org>
17944
17945         gnulib-tool: Fixes for --create-testdir with --libtool.
17946         * gnulib-tool (func_get_automake_snippet): Don't augment
17947         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17948         an executable.
17949         (func_create_testdir): Handle module 'alloca' like func_import.
17950         Reported by Bruce Korb <bruce.korb@gmail.com>.
17951
17952 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17953
17954         Avoid some lines longer than 80 characters.
17955         * lib/stdint.in.h: Break long comment lines.
17956         * lib/math.in.h: Likewise.
17957         (_GL_NUM_UINT_WORDS): New macro, for readability.
17958         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17959         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17960         * lib/stdlib.in.h: Likewise.
17961         * lib/spawn.in.h: Likewise.
17962         * lib/sys_socket.in.h: Update an URL.
17963         * lib/sys_stat.in.h: Break long line.
17964
17965 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17966
17967         Improve pmccabe2html.
17968         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17969         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17970         when the sources change. Remove the line in the HTML about "Used
17971         ranges" (which implied that there might be other unused ranges),
17972         rename "Resume" to "Summary" (easier to understand for more users).
17973         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17974         styles, and some unnecessary blank lines.
17975
17976 2010-10-03  Bruno Haible  <bruno@clisp.org>
17977             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17978
17979         acl: Add support for ACLs on NonStop Kernel.
17980         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17981         Check whether the function aclsort() exists.
17982         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17983         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17984         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17985         (acl_nontrivial [HAVE_ACLSORT]: New function.
17986         (file_has_acl): Implement for NonStop Kernel.
17987         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17988         (qset_acl): Implement for NonStop Kernel.
17989         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17990         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17991         (main): Implement for NonStop Kernel.
17992         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17993         Kernel. Handle this flavor.
17994         * tests/test-set-mode-acl.sh: Likewise.
17995         * tests/test-copy-acl.sh: Likewise.
17996         * tests/test-copy-file.sh: Likewise.
17997
17998 2010-10-03  Bruno Haible  <bruno@clisp.org>
17999
18000         Info about ACLs on NonStop Kernel.
18001         * doc/acl-resources.txt: Add info about NonStop Kernel.
18002         References by Joachim Schmitz <schmitz@hp.com>.
18003
18004 2010-10-02  Bruno Haible  <bruno@clisp.org>
18005
18006         Define missing EDQUOT on NonStop Kernel.
18007         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18008         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18009         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18010         missing.
18011         * doc/posix-headers/errno.texi: Mention the NSK bug.
18012         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18013         Reported by Joachim Schmitz <schmitz@hp.com>.
18014
18015 2010-10-02  Bruno Haible  <bruno@clisp.org>
18016
18017         Update doc for POSIX:2008.
18018         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18019         Update URL of POSIX specification.
18020
18021 2010-10-02  Bruno Haible  <bruno@clisp.org>
18022
18023         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18024         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18025         from gnulib, not from Automake.
18026
18027 2010-10-02  Bruno Haible  <bruno@clisp.org>
18028
18029         New module 'system-posix'.
18030         * modules/system-posix: New file.
18031         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18032         module is present.
18033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18034         GNULIB_SYSTEM_POSIX.
18035         * modules/stdlib (Depends-on): Remove sys_wait.
18036         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18037         * doc/posix-functions/system.texi: Mention the new module.
18038         * doc/posix-headers/stdlib.texi: Likewise.
18039         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18040         define test_sys_wait_macros to a no-op.
18041         Reported by Sam Steingold <sds@gnu.org>.
18042
18043 2010-09-30  Bruno Haible  <bruno@clisp.org>
18044
18045         More renaming from 'getdate' to 'get_date'.
18046         * doc/get_date.texi: Renamed from doc/getdate.texi.
18047         * modules/get_date (Files): Update.
18048         * MODULES.html.sh (Date and time <time.h>): Update.
18049         * DEPENDENCIES: Update.
18050         * gnulib-tool: Update comment.
18051         * m4/bison.m4 (gl_BISON): Likewise.
18052         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18053
18054 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18055
18056         bootstrap: support ACLOCAL_FLAGS during aclocal
18057         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18058         can add additional -I dir for third-party .m4 files.
18059
18060 2010-09-30  Eric Blake  <eblake@redhat.com>
18061
18062         bootstrap: use glibtoolize on MacOS
18063         * build-aux/bootstrap (check_versions): Convert libtool into
18064         libtoolize.
18065         (tool search): Move libtool check earlier, and look for
18066         glibtoolize for MacOS.
18067         (gnulib_tool_options): Auto-add --libtool when appropriate.
18068         Reported by Justin Clift.
18069
18070         poll: fix typo that broke test on MacOS
18071         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18072         Reported by Justin Clift.
18073
18074         getdate: rename to get_date
18075         Note: getdate.h is not renamed, to minimize client impact.
18076         * modules/getdate: Mark obsolete.  Move old contents...
18077         * modules/get_date: ...to new module name.
18078         * modules/getdate-tests: Move...
18079         * modules/get_date-tests: ...here.
18080         * m4/getdate.m4: Move...
18081         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18082         * lib/getdate.y: Move...
18083         * lib/get_date.y: ...here.
18084         * tests/test-getdate.c: Move...
18085         * tests/test-get_date.c: ...here.
18086         * doc/posix-functions/getdate.texi (getdate): Update name.
18087         * NEWS: Mention the change.
18088
18089 2010-09-29  Bruno Haible  <bruno@clisp.org>
18090
18091         Separate the module 'waitpid' from the module 'sys_wait'.
18092         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18093         present.
18094         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18095         gl_MODULE_INDICATOR_FOR_TESTS.
18096         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18097         * modules/sys_wait (Depends-on): Remove waitpid.
18098         (Makefile.am): Substitute GNULIB_WAITPID.
18099         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18100         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18101         signature only if the 'waitpid' module is present.
18102         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18103         * NEWS: Mention the change.
18104         * modules/grantpt (Depends-on): Add waitpid.
18105         * modules/wait-process (Depends-on): Likewise.
18106
18107 2010-09-29  Bruno Haible  <bruno@clisp.org>
18108
18109         More tests for module 'sys_wait'.
18110         * modules/sys_wait-c++-tests: New file.
18111         * tests/test-sys_wait-c++.cc: New file.
18112         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18113         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18114
18115 2010-09-29  Bruno Haible  <bruno@clisp.org>
18116
18117         New module 'waitpid'.
18118         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18119         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18120         Don't include <process.h>.
18121         (waitpid): Declare only, using modern idiom.
18122         * m4/waitpid.m4: New file.
18123         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18124         * modules/waitpid: New file.
18125         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18126         (Makefile.am): Update.
18127         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18128
18129 2010-09-28  Bruno Haible  <bruno@clisp.org>
18130
18131         poll: Assume ANSI C.
18132         * lib/poll.c (poll): Use an ANSI C declaration.
18133
18134 2010-09-28  Bruno Haible  <bruno@clisp.org>
18135
18136         poll-h: Create poll.h on all platforms.
18137         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18138         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18139         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18140         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18141         (gl_REPLACE_POLL_H): Don't set POLL_H.
18142         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18143         * modules/poll-h (Depends-on): Add include_next.
18144         (Makefile.am): Create poll.h unconditionally. Substitute also
18145         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18146
18147 2010-09-28  Bruno Haible  <bruno@clisp.org>
18148
18149         Tests for module 'poll-h'.
18150         * modules/poll-h-c++-tests: New file.
18151         * tests/test-poll-h-c++.cc: New file.
18152
18153         Tests for module 'poll-h'.
18154         * modules/poll-h-tests: New file.
18155         * tests/test-poll-h.c: New file.
18156
18157 2010-09-28  Bruno Haible  <bruno@clisp.org>
18158
18159         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18160         * modules/poll-h (Depends-on): Add 'extensions'.
18161
18162 2010-09-28  Bruno Haible  <bruno@clisp.org>
18163
18164         New module 'poll-h'.
18165         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18166         (poll): Use modern idiom.
18167         * modules/poll-h: New file.
18168         * modules/poll (Files): Remove lib/poll.in.h.
18169         (Depends-on): Add poll-h.
18170         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18171         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18172         * m4/poll_h.m4: New file.
18173         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18174         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18175         and invoke gl_REPLACE_POLL_H.
18176         * lib/poll.c: Use common idiom.
18177         * tests/test-poll.c: Likewise.
18178         * doc/posix-headers/poll.texi: Mention the poll-h module.
18179         Suggested by Eric Blake.
18180
18181 2010-09-26  Bruno Haible  <bruno@clisp.org>
18182
18183         sys_wait: Implement WSTOPSIG.
18184         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18185         Reported by Simon Josefsson.
18186
18187 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18188
18189         stdlib, sys_wait: Avoid compilation error on mingw.
18190         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18191
18192 2010-09-26  Bruno Haible  <bruno@clisp.org>
18193
18194         stdlib tests: Avoid code duplication.
18195         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18196         * modules/sys_wait-tests (Files): Likewise.
18197         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18198         * tests/test-stdlib.c: Include test-sys_wait.h.
18199         (main): Invoke test_sys_wait_macros.
18200         * tests/test-sys_wait.c: Include test-sys_wait.h.
18201         (main): Invoke test_sys_wait_macros.
18202
18203 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18204
18205         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18206         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18207         sure Windows sockets are working before calling getaddrinfo.
18208         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18209         * doc/gnulib.texi (Windows sockets): Fix typo.
18210
18211 2010-09-25  Bruno Haible  <bruno@clisp.org>
18212
18213         Tests for module 'regex-quote'.
18214         * modules/regex-quote-tests: New file.
18215         * tests/test-regex-quote.c: New file.
18216
18217         New module 'regex-quote'.
18218         * lib/regex-quote.h: New file.
18219         * lib/regex-quote.c: New file.
18220         * modules/regex-quote: New file.
18221         Suggested by Reuben Thomas <rrt@sc3d.org>.
18222
18223 2010-09-24  Bruno Haible  <bruno@clisp.org>
18224
18225         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18226         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18227
18228 2010-09-23  Bruno Haible  <bruno@clisp.org>
18229
18230         setenv: Relax license.
18231         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18232         Blake.
18233         Requested by Eric Blake.
18234
18235 2010-09-22  Bruno Haible  <bruno@clisp.org>
18236
18237         termios: Relax license.
18238         * modules/termios (License): Change to LGPLv2+.
18239         Requested by Eric Blake.
18240
18241 2010-09-22  Bruno Haible  <bruno@clisp.org>
18242
18243         threadlib: Allow the package to change the default to 'no'.
18244         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18245         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18246         Reported by Paul Eggert.
18247
18248 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18249             Bruno Haible  <bruno@clisp.org>
18250
18251         Fix endless loop in mbmemcasecoll.
18252         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18253         byte.
18254         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18255
18256 2010-09-22  Bruno Haible  <bruno@clisp.org>
18257
18258         Tests for module 'memcoll'.
18259         * modules/memcoll-tests: New file.
18260         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18261
18262         memcoll, xmemcoll: Clarify size vs. length.
18263         * modules/memcoll.c (memcoll0): Clarify specification.
18264         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18265         passed to collate_error.
18266
18267 2010-09-22  Bruno Haible  <bruno@clisp.org>
18268
18269         Tests for module 'memcasecmp'.
18270         * modules/memcasecmp-tests: New file.
18271         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18272
18273 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18274
18275         * lib/pthread.in.h: Add split double-inclusion guard, and include
18276         system <pthread.h> if there is one.  Use @@-style as in other
18277         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18278         pthread.h doesn't.
18279         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18280         (pthread_mutexattr_settype, pthread_mutex_trylock):
18281         New static inline functions, if there's no system <pthread.h>.
18282         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18283         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18284         Approximate with mutexes if the system lacks spinlocks, as in
18285         MacOS.
18286         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18287         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18288         @@-style.  Check for spinlocks separately.
18289         (gl_PTHREAD_DEFAULTS): New macro.
18290         * modules/pthread: Redo to use a more typical style for in.h files.
18291
18292 2010-09-21  Eric Blake  <eblake@redhat.com>
18293
18294         net_if: enhance tests
18295         * tests/test-net_if.c (main): Move signature checks earlier.
18296         Print failures to stderr.
18297         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18298         Document the bug that we do not yet fix.
18299
18300 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18301
18302         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18303         about gnulib, not GSS.
18304
18305 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18306
18307         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18308         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18309         for Emacs.
18310         * build-aux/pmccabe2html: Make Makefile.am example code more
18311         cut-and-paste friendly.
18312
18313 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18314
18315         * tests/test-net_if.c: New file.
18316         * modules/net_if-tests: New file.
18317
18318 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18319
18320         pthread: add pthread_spin_destroy
18321         * lib/pthread.in.h (pthread_spin_destroy): New function.
18322
18323 2010-09-19  Bruno Haible  <bruno@clisp.org>
18324
18325         gnulib-tool: Fix --help output.
18326         * gnulib-tool (func_usage): Fix help message.
18327         Reported by Reuben Thomas <rrt@sc3d.org>.
18328
18329 2010-09-18  Jim Meyering  <meyering@redhat.com>
18330
18331         maint.mk: avoid unexpanded \n in two diagnostics
18332         * top/maint.mk (sc_prohibit_always_true_header_tests):
18333         Don't use a literal \n in a halt=... assignment.  It would not be
18334         expanded, and the two \n bytes would appear in the diagnostic output
18335         rather than the desired newline.  Use halt=$$(printf ... instead.
18336         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18337
18338 2010-09-18  Bruno Haible  <bruno@clisp.org>
18339
18340         netinet_in: Doc tweak.
18341         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18342         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18343
18344 2010-09-18  Jim Meyering  <meyering@redhat.com>
18345
18346         init.sh: correct an outdated comment
18347         * tests/init.sh (create_exe_shims_):  s/function/alias/
18348
18349         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18350         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18351         a file named "*.exe" is removed between the glob expansion and the
18352         processing of that oddly named file.
18353
18354 2010-09-17  Eric Blake  <eblake@redhat.com>
18355
18356         mirbsd: add some more support
18357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18358         in BSD family.
18359         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18360         devices as OpenBSD.
18361         * m4/host-os.m4 (mirbsd): Add MirBSD.
18362
18363         tests: fix unportable assumption on sys/wait.h
18364         * tests/test-sys_wait.c (main): Relax test.
18365         * tests/test-stdlib.c (main): Likewise.
18366
18367         init.sh: accomodate directory with no .exes
18368         * tests/init.sh: Accomodate directory containing only scripts.
18369
18370         tests: avoid compiler warning
18371         * tests/test-stdlib.c (main): Use the variable.
18372
18373         fdutimens, fdutimensat: update signature, again
18374         * lib/utimens.h (gl_futimens): Delete, and move signature...
18375         (fdutimens): ...here.
18376         (fdutimensat): Rearrange signature.
18377         (lutimensat): Rename variable for clarity.
18378         * lib/fdutimensat.c (fdutimensat): Update signature.
18379         * lib/utimens.c (fdutimens): Likewise.
18380         (gl_futimens): Delete.
18381         (utimens, lutimens): Update callers.
18382         * lib/futimens.c (futimens): Likewise.
18383         * tests/test-fdutimensat.c: Likewise.
18384         * tests/test-utimens.c: Likewise.
18385         * tests/test-futimens.h: Update comment.
18386         * NEWS: Mention this.
18387         Suggested by Paul Eggert.
18388
18389 2010-09-17  Bruno Haible  <bruno@clisp.org>
18390
18391         Take over the maintenance of some older macros from Autoconf.
18392         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18393         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18394         GNU Autoconf.
18395         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18396         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18397
18398 2010-09-17  Eric Blake  <eblake@redhat.com>
18399
18400         fdutimensat: drop atflag validation
18401         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18402         with valid fd, to close a race scenario where futimens is
18403         unsupported and FILE was replaced by a symlink.
18404         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18405         accordingly.
18406         Suggested by Paul Eggert.
18407
18408 2010-09-16  Bruno Haible  <bruno@clisp.org>
18409
18410         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18411         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18412
18413 2010-09-16  Bruno Haible  <bruno@clisp.org>
18414
18415         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18416         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18417         login_tty exists.
18418         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18419
18420 2010-09-16  Bruno Haible  <bruno@clisp.org>
18421
18422         login_tty: Make the replacement code work on BSD systems.
18423         * lib/login_tty.c: Include <sys/ioctl.h>.
18424         (login_tty): Use ioctl TIOCSCTTY when available.
18425         * modules/login_tty (Depends-on): Add sys_ioctl.
18426         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18427
18428 2010-09-16  Bruno Haible  <bruno@clisp.org>
18429
18430         login_tty: Stricter unit test.
18431         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18432         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18433         and tcgetsid() after login_tty.
18434         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18435
18436 2010-09-16  Bruno Haible  <bruno@clisp.org>
18437
18438         New module 'tcgetsid'.
18439         * lib/tcgetsid.c: New file.
18440         * m4/tcgetsid.m4: New file.
18441         * modules/tcgetsid: New file.
18442         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18443         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18444         GNULIB_TCGETSID, HAVE_TCGETSID.
18445         * lib/termios.in.h: Include <sys/types.h>.
18446         (tcgetsid): New declaration.
18447         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18448         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18449         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18450         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18451
18452 2010-09-16  Bruno Haible  <bruno@clisp.org>
18453
18454         Tests for module 'termios'.
18455         * modules/termios-c++-tests: New file.
18456         * modules/termios-tests: New file.
18457         * tests/test-termios-c++.cc: New file.
18458         * tests/test-termios.c: New file.
18459
18460         New module 'termios'.
18461         * modules/termios: New file.
18462         * lib/termios.in.h: New file.
18463         * m4/termios_h.m4: New file.
18464         * doc/posix-headers/termios.texi: Mention the new module.
18465
18466 2010-09-16  Eric Blake  <eblake@redhat.com>
18467
18468         fdutimensat: add an atflag parameter
18469         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18470         * lib/utimens.h (fdutimensat): Update prototype.
18471         * tests/test-fdutimensat.c: Adjust test to match.
18472         * NEWS: Document the change.
18473         Suggested by Paul Eggert.
18474
18475 2010-09-16  Bruno Haible  <bruno@clisp.org>
18476
18477         Fix typos in comments.
18478         * lib/striconveh.h: Fix typo in comment.
18479         * lib/login_tty.c (login_tty): Likewise.
18480
18481 2010-09-15  Bruno Haible  <bruno@clisp.org>
18482
18483         stdlib: clarify MirBSD WEXITSTATUS bug
18484         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18485         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18486
18487 2010-09-15  Eric Blake  <eblake@redhat.com>
18488
18489         stdlib: work around MirBSD WEXITSTATUS bug
18490         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18491         * modules/stdlib (Depends-on): Add sys_wait.
18492         * tests/test-sys_wait.c (main): Enhance test.
18493         * tests/test-stdlib.c (main): Likewise.
18494         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18495
18496         docs: mention MacOS issue with WEXITSTATUS(constant)
18497         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18498         issue.
18499         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18500
18501         strnlen: add tests
18502         * modules/strnlen-tests: New file.
18503         * tests/test-strnlen.c: Likewise.
18504
18505 2010-09-14  Bruno Haible  <bruno@clisp.org>
18506
18507         unistr/base: Avoid link errors when module 'libunistring' is also used.
18508         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18509         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18510         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18511         Declare also when HAVE_LIBUNISTRING is set.
18512         Reported by Pádraig Brady <P@draigbrady.com>.
18513
18514 2010-09-14  Eric Blake  <eblake@redhat.com>
18515
18516         test-rawmemchr: make more robust
18517         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18518         (Depends-on, configure.ac): Add needed prerequisites to use it.
18519         * modules/memchr-tests (Files, Depends-on, configure.ac):
18520         Likewise, to avoid implicit reliance on memchr module prereqs.
18521         * tests/test-memchr.c (main): Ensure proper masking.
18522         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18523         reads.
18524
18525         memchr: detect glibc Alpha bug
18526         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18527         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18528         Alpha.
18529         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18530         * tests/test-memchr.c (main): Enhance test.
18531         Reported by Nelson H. F. Beebe.
18532
18533 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18534
18535         fts, getcwd, glob: audit for dirfd returning -1
18536         * lib/fts.c (opendir): Remove #define; no longer used.
18537         (opendirat): New arg PDIR_FD.  All callers changed.
18538         (fts_build, _opendir2): Use new opendirat to avoid the need for
18539         dirfd, or for checking whether dirfd returns a negative value.
18540         Don't use opendir; always use openat followed by fdopendir.
18541         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18542         it.
18543         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18544         returns -1 here.
18545         * modules/fts (Depends-on): Remove dirfd.
18546         * modules/getcwd (Depends-on): Likewise.
18547
18548 2010-09-13  Eric Blake  <eblake@redhat.com>
18549
18550         float: fix broken MirBSD header
18551         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18552         * doc/posix-headers/float.texi (float.h): Document it.
18553
18554 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18555
18556         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18557         * lib/fts.c (opendirat): New arg extra_flags.
18558         (__opendir2): Use it to avoid following symlinks when opening
18559         a directory, if symlinks are not supposed to be followed.  See
18560         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18561
18562         fdopendir: preserve argument fd before returning
18563         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18564         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18565         (fdopendir): Use them, arranging for FD to be open to the same
18566         directory that it was when it started.  (It might be temporarily
18567         closed while fdopendir is running, so this not thread- or
18568         signal-safe.)  Be careful to do the right thing even when file
18569         descriptors are scarce and dup fails with errno == EMFILE.  See
18570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18571
18572 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18573
18574         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18575         * NEWS: Document change.
18576         * m4/regex.m4: Disable test for regoff_t size.
18577
18578 2010-09-13  Jim Meyering  <meyering@redhat.com>
18579
18580         fts: don't operate on an invalid file descriptor after failed dup
18581         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18582         negative file descriptor.
18583
18584 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18585
18586         savedir: add streamsavedir, deprecate fdsavedir
18587         * NEWS: Mention deprecation of fdsavedir.
18588         * lib/savedir.c (streamsavedir): New extern function, whose name
18589         ends in "savedir" to be consistent with the others.  This differs
18590         from savedirstream in that it doesn't close its argument.  The
18591         next version of GNU tar will use this instead of fdsavedir, to
18592         avoid some race conditions and conserve file descriptors.
18593         (savedirstream): Reimplement as a wrapper around streamsavedir.
18594         (fdsavedir): Add a comment deprecating this function.  As far as
18595         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18596         * lib/savedir.h (streamsavedir): New decl.
18597         (fdsavedir): Add a comment deprecating this.
18598
18599 2010-09-10  Bruno Haible  <bruno@clisp.org>
18600
18601         langinfo: Fix last commit.
18602         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18603         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18605
18606 2010-09-10  Bruno Haible  <bruno@clisp.org>
18607
18608         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18609         * lib/progreloc.c (O_EXEC): Define fallback.
18610
18611 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18612
18613         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18614         * NEWS: Document recent changes to fcntl-h.
18615         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18616         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18617         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18618         Similarly for O_SEARCH; this last was already true, but not documented.
18619         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18620         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18621         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18622         Likewise.
18623         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18624         is zero, not whether it is defined.
18625         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18626         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18627         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18628
18629 2010-09-10  Bruno Haible  <bruno@clisp.org>
18630
18631         langinfo, nl_langinfo: Fix for IRIX 5.3.
18632         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18633         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18634         HAVE_LANGINFO_YESEXPR.
18635         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18636         HAVE_LANGINFO_YESEXPR.
18637         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18638         HAVE_LANGINFO_T_FMT_AMPM is 0.
18639         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18640         HAVE_LANGINFO_YESEXPR is 0.
18641         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18642         NOEXPR.
18643         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18644         * doc/posix-functions/nl_langinfo.texi: Likewise.
18645         Reported by Eric Blake.
18646
18647 2010-09-10  Bruno Haible  <bruno@clisp.org>
18648
18649         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18650         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18651         on FreeBSD 8.0 and OpenBSD 4.6.
18652         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18653         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18654         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18655         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18656         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18657         ac_includes_default.
18658         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18659
18660 2010-09-09  Eric Blake  <eblake@redhat.com>
18661
18662         strsignal: work around NetBSD bug
18663         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18664         * lib/string.in.h (includes): Likewise.
18665         * doc/posix-functions/strsignal.texi (strsignal): Document the
18666         bug.
18667         Reported by Nelson H. F. Beebe.
18668
18669         gnulib-tool: work with NetBSD /bin/sh
18670         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18671         (func_get_description, func_get_comment, func_get_status)
18672         (func_get_notice, func_get_applicability, func_get_filelist)
18673         (func_get_dependencies, func_get_autoconf_early_snippet)
18674         (func_get_autoconf_snippet, func_get_automake_snippet)
18675         (func_get_include_directive, func_get_link_directive)
18676         (func_get_license, func_get_maintainer, func_import): Avoid
18677         shell syntax errors from parsing syntax extensions.
18678
18679 2010-09-09  Bruno Haible  <bruno@clisp.org>
18680
18681         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18682         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18683         a reliable way to determine whether the 'alias' command works.
18684
18685 2010-09-08  Jim Meyering  <meyering@redhat.com>
18686
18687         init.sh: penalize a set-x-impaired shell; don't disqualify it
18688         * tests/init.sh: Too many shells corrupt application stderr when
18689         you set -x, so we can't afford to disqualify them, since at least
18690         on Irix-6.5, that would disqualify all bourne shells.
18691         Instead, use a two-pass approach.
18692         On the first pass, try to find a shell that meets the stricter
18693         condition that set -x does not corrupt stderr.
18694         If no shell meets the stricter condition, retest each candidate
18695         shell, but without that extra condition.  Finally, when
18696         VERBOSE=yes is requested and set -x might cause trouble, simply
18697         issue a warning and refrain from enabling debug output.
18698
18699 2010-09-08  Eric Blake  <eblake@redhat.com>
18700
18701         unsetenv: fix OpenBSD bug
18702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18703         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18704         documentation.
18705         Reported by Jim Meyering.
18706
18707         strtod: work around IRIX 6.5 bug
18708         * lib/strtod.c (strtod): Reparse number on shorter string if
18709         exponent parse was invalid.
18710         * tests/test-strtod.c (main): Add check for "0x1p 2".
18711         Reported by Tom G. Christensen.
18712
18713         getopt: optimize previous patch
18714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18715         empty variable.  Speed up awk script.
18716         Reported by Paolo Bonzini.
18717
18718 2010-09-08  Jim Meyering  <meyering@redhat.com>
18719
18720         test.sh: disqualify shells for which set -x corrupts stderr
18721         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18722         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18723         appear in stderr output.  For example, this command:
18724             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18725         prints "P=1" on those two systems:
18726
18727 2010-09-08  Bruno Haible  <bruno@clisp.org>
18728
18729         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18730         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18731         commands, because some shells ignore redirections when there is an
18732         error in the command lookup.
18733         Reported by Eric Blake.
18734
18735 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18736
18737         * lib/regex.h: Fix a mention of `regex_compile' (should be
18738         `re_compile_pattern').
18739         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18740         (re_set_registers): Correct name of parameter in comment.
18741
18742         * doc/regex.texi: Add documentation for missing syntax flags.
18743         Remove commented-out documentation of defunct syntax option
18744         RE_NO_EMPTY_ALTS.
18745         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18746         Add documentation of re_set_registers.
18747         Document trick to re-use a pattern buffer by setting fastmap manually.
18748         Update documentation of struct re_pattern_buffer per public members.
18749         Uncomment documentation of equivalence class operators and
18750         collating symbol operators, since they are now implemented,
18751         Explain leftmost-longest matching in relation to alternatives.
18752         Tidy documentation of substring matching.
18753         Remove POSIX documentation, which is done better in
18754         glibc, and refer the reader there. Keep BSD API documentation, as
18755         that is not readily available elsewhere.
18756
18757 2010-09-07  Eric Blake  <eblake@redhat.com>
18758
18759         getopt: handle POSIXLY_CORRECT set but not exported
18760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18761         export state of POSIXLY_CORRECT, due to bash set -o posix.
18762         Reported by Dustin J. Mitchell.
18763
18764 2010-09-05  Bruno Haible  <bruno@clisp.org>
18765
18766         gnulib-tool: Highlight the changed options.
18767         * gnulib-tool (func_usage): Display the --import, --add-import,
18768         --remove-import explanations in bold font.
18769
18770 2010-09-06  Karl Berry  <karl@gnu.org>
18771
18772         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18773
18774 2010-09-05  Bruno Haible  <bruno@clisp.org>
18775
18776         uniwidth/width: Update comment.
18777         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18778         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18779
18780 2010-09-05  Bruno Haible  <bruno@clisp.org>
18781
18782         isinf, isnan: Relax license.
18783         * modules/isinf (License): Change from GPL to LGPL, with consent from
18784         Ben Pfaff.
18785         * modules/isnan (License): Likewise.
18786         Requested by Ludovic Courtès.
18787
18788 2010-09-04  Bruno Haible  <bruno@clisp.org>
18789
18790         gnulib-tool: Help migration from --import to --add-import or --update.
18791         * gnulib-tool: Emit a verbose error message when --import is used
18792         without any module name.
18793
18794 2010-09-04  Bruno Haible  <bruno@clisp.org>
18795
18796         Update doc about gnulib-tool.
18797         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18798         'gnulib-tool --update' in more detail.
18799         Reported by Eric Blake.
18800
18801 2010-09-04  Bruno Haible  <bruno@clisp.org>
18802
18803         gnulib-tool: Change --import. New options --add/remove-import.
18804         * gnulib-tool: New options --add-import, --remove-import.
18805         (func_usage): Document them.
18806         (have_associative): Define always.
18807         (func_import): In import mode, don't merge the specified settings with
18808         the cached settings. Implement remove-import mode.
18809         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18810         Explain when to use them versus --import.
18811         (Simple update): Use --add-import instead of --import.
18812         * NEWS: Mention the change.
18813
18814 2010-09-04  Bruno Haible  <bruno@clisp.org>
18815
18816         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18817         separate gnulib.mk.
18818
18819 2010-09-04  Bruno Haible  <bruno@clisp.org>
18820
18821         gnulib-tool: Don't talk about CVS any more.
18822         * gnulib-tool (func_usage, func_import): Write "version control"
18823         instead of CVS.
18824
18825 2010-09-04  Jim Meyering  <meyering@redhat.com>
18826
18827         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18828         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18829         false positives (whose names may be ill-chosen) when searching
18830         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18831         would cause a false-positive.
18832
18833         avoid coreutils "make distcheck" failure
18834         Coreutils tests with an absolute build directory name that contains
18835         a space.  Not quoting this directory name caused a failure.
18836         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18837         * tests/test-vc-list-files-cvs.sh: Likewise.
18838
18839 2010-09-04  Bruno Haible  <bruno@clisp.org>
18840
18841         gnulib-tool: Avoid error when run in a package without Makefile.am.
18842         * gnulib-tool: When collecting the m4dirs in a package that does not
18843         have a Makefile.am, eliminate those directories that contain no
18844         gnulib-cache.m4. Fix expression that counts these directories.
18845
18846 2010-09-04  Bruno Haible  <bruno@clisp.org>
18847
18848         update-copyright test: Improve output when perl is missing or too old.
18849         * tests/test-update-copyright.sh: Move test of Perl version down after
18850         the test whether Perl exists. Provide an explanation relating Perl's
18851         error message to Automake's SKIP: message.
18852
18853 2010-09-04  Bruno Haible  <bruno@clisp.org>
18854
18855         Don't augment PATH in TESTS_ENVIRONMENT.
18856         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18857         set abs_aux_dir instead of augmenting PATH.
18858         * modules/vc-list-files-tests (Makefile.am): Likewise.
18859         * tests/test-update-copyright.sh: Augment PATH here.
18860         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18861         path_prepend_.
18862         * tests/test-vc-list-files-git.sh: Likewise.
18863
18864 2010-09-04  Jim Meyering  <meyering@redhat.com>
18865
18866         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18867         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18868
18869 2010-09-04  Bruno Haible  <bruno@clisp.org>
18870
18871         strdup: Fix compilation error in C++ mode.
18872         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18873         the macro.
18874
18875 2010-09-04  Bruno Haible  <bruno@clisp.org>
18876
18877         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18878         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18879         macro into a function.
18880         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18881
18882 2010-09-04  Bruno Haible  <bruno@clisp.org>
18883
18884         Set PATH_SEPARATOR the same way autoconf does.
18885         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18886         the value of PATH_SEPARATOR the same way autoconf-generated configure
18887         scripts do.
18888         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18889         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18890
18891 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18892
18893         Set PATH_SEPARATOR the same way autoconf does.
18894         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18895         the same way autoconf-generated configure scripts do.
18896         * posix-modules: Likewise.
18897
18898 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18899
18900         hash: fix safe_hasher const typo
18901         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18902         const; otherwise, there is a type error later.
18903
18904 2010-09-02  Jim Meyering  <meyering@redhat.com>
18905
18906         test-update-copyright.sh: require perl 5.8.0
18907         * tests/test-update-copyright.sh: Require 5.8.0,
18908         which Tom G. Christensen has confirmed is adequate,
18909         while 5.6.1 is not.
18910
18911 2010-09-02  Eric Blake  <eblake@redhat.com>
18912
18913         tests: init.sh improvements for re-exec'ing with zsh
18914         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18915         -vx through shell re-exec.
18916         Reported by Tom G. Christensen.
18917
18918         wctype: fix typo in previous commit
18919         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18920         Reported by Ludovic Courtès.
18921
18922 2010-09-02  Jim Meyering  <meyering@redhat.com>
18923
18924         test-update-copyright.sh: skip test if Perl is too old
18925         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18926         Reported by Tom G. Christensen.
18927
18928 2010-09-02  Bruno Haible  <bruno@clisp.org>
18929
18930         wctype: Avoid compilation error on IRIX 6.5.30.
18931         * lib/wctype.in.h (iswblank): Declare with a replacement if
18932         REPLACE_ISWBLANK is set.
18933         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18934         declared. Set REPLACE_ISWBLANK.
18935         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18936         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18937         * doc/posix-headers/wctype.texi: Likewise.
18938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18939
18940 2010-09-01  Bruno Haible  <bruno@clisp.org>
18941
18942         New module 'socketlib'.
18943         * modules/socketlib: New file.
18944         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18945         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18946         * modules/sockets (Depends-on): Add socketlib.
18947         Suggested by Sam Steingold <sds@gnu.org>.
18948
18949 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18950
18951         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18952
18953         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18954         when one needs search access to a directory but not read access.
18955         On systems where it is available, it works in some cases where
18956         O_RDONLY does not, namely on directories that are searchable but
18957         not readable, and which need only to be searchable.  If O_SEARCH
18958         is not available, fall back to the traditional method of using
18959         O_RDONLY.
18960
18961         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18962         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18963         when opening a directory that needs only to be searchable.
18964         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18965         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18966         * lib/openat-proc.c (openat_proc_name): Likewise.
18967         * lib/openat.c (openat_needs_fchdir): Likewise.
18968         * lib/save-cwd.c (save_cwd): Likewise.
18969         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18970
18971 2010-08-28  Bruno Haible  <bruno@clisp.org>
18972
18973         New module 'host-cpu-c-abi'.
18974         * modules/host-cpu-c-abi: New file.
18975         * m4/host-cpu-c-abi.m4: New file, based on part of
18976         clisp/src/m4/general.m4.
18977         Requested by Sam Steingold <sds@gnu.org>.
18978
18979 2010-08-31  Eric Blake  <eblake@redhat.com>
18980         and Jim Meyering  <meyering@redhat.com>
18981
18982         hash: factor, and guard against misbehaving hasher function
18983         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18984         of table->hasher's return value.  Also protect against a hash value
18985         so large that adding it to table->bucket results in a NULL pointer.
18986         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18987         Use it in place of open-coded check-and-abort.
18988
18989 2010-08-30  Bruno Haible  <bruno@clisp.org>
18990
18991         hash: silence spurious clang warning
18992         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18993         Reported by Eric Blake.
18994
18995 2010-08-30  Eric Blake  <eblake@redhat.com>
18996
18997         strstr, memmem, strcasestr: avoid leaked shell message
18998         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18999         FreeBSD.
19000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19001         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19002
19003         tests: silence clang warning
19004         * tests/test-malloca.c (do_allocation): Avoid dead store.
19005
19006 2010-08-29  Bruno Haible  <bruno@clisp.org>
19007
19008         gettext: Fix recent mistake.
19009         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19010
19011 2010-08-29  Bruno Haible  <bruno@clisp.org>
19012
19013         selinux-h: Offer a --without-selinux option.
19014         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19015         --without-selinux was specified, skip all tests and define
19016         HAVE_SELINUX_SELINUX_H to 0.
19017         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19018         set LIB_SELINUX to empty.
19019         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19020         gl_LIBSELINUX. If --without-selinux was specified, replace
19021         selinux/context.h.
19022         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19023
19024 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19025             Bruno Haible  <bruno@clisp.org>
19026
19027         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19028         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19029         of HAVE_REALLOC.
19030         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19031         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19032         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19033         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19034
19035 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19036             Bruno Haible  <bruno@clisp.org>
19037
19038         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19039         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19040         HAVE_CALLOC.
19041         * lib/xmalloc.c: Update accordingly.
19042         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19043         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19044         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19045
19046 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19047             Bruno Haible  <bruno@clisp.org>
19048
19049         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19050         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19051         HAVE_MALLOC.
19052         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19053         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19054         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19055
19056 2010-08-29  Bruno Haible  <bruno@clisp.org>
19057
19058         Update modules list.
19059         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19060         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19061         (String handling <string.h>): Add astrxfrm.
19062         (File system functions): Add readlinkat.
19063
19064 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19065
19066         Tests for module 'realloc-gnu'.
19067         * modules/realloc-gnu-tests: New file.
19068         * tests/test-realloc-gnu.c: New file.
19069
19070         Tests for module 'calloc-gnu'.
19071         * modules/calloc-gnu-tests: New file.
19072         * tests/test-calloc-gnu.c: New file.
19073
19074         Tests for module 'malloc-gnu'.
19075         * modules/malloc-gnu-tests: New file.
19076         * tests/test-malloc-gnu.c: New file.
19077
19078 2010-08-28  Bruno Haible  <bruno@clisp.org>
19079
19080         Rename module 'realloc' -> 'realloc-gnu'.
19081         * modules/realloc-gnu: New file, copied from modules/realloc.
19082         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19083         obsolete.
19084         * modules/mgetgroups (Depends-on): Update.
19085         * doc/posix-functions/realloc.texi: Update.
19086         * NEWS: Mention the change.
19087
19088         Rename module 'calloc' -> 'calloc-gnu'.
19089         * modules/calloc-gnu: New file, copied from modules/calloc.
19090         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19091         obsolete.
19092         * doc/posix-functions/calloc.texi: Update.
19093         * NEWS: Mention the change.
19094
19095         Rename module 'malloc' -> 'malloc-gnu'.
19096         * modules/malloc-gnu: New file, copied from modules/malloc.
19097         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19098         obsolete.
19099         * modules/argp (Depends-on): Update.
19100         * modules/regex (Depends-on): Update.
19101         * doc/posix-functions/malloc.texi: Update.
19102         * NEWS: Mention the change.
19103
19104 2010-08-28  Eric Blake  <eblake@redhat.com>
19105
19106         pread, pwrite: add missing dependency
19107         * modules/pread (Depends-on): Add extensions.
19108         * modules/pwrite (Depends-on): Likewise.
19109
19110 2010-08-28  Bruno Haible  <bruno@clisp.org>
19111
19112         unistr/u*-strchr: Fix tests dependencies.
19113         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19114         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19115         Reported by Ian Beckwith <ianb@erislabs.net>.
19116
19117 2010-08-28  Bruno Haible  <bruno@clisp.org>
19118
19119         read-file: Don't occupy too much unused memory.
19120         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19121
19122 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19123             Eric Blake  <eblake@redhat.com>
19124             Bruno Haible  <bruno@clisp.org>
19125
19126         read-file: Avoid memory reallocations with regular files.
19127         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19128         (fread_file): With regular files, use the remaining length as the
19129         initial buffer size.  Check against overflow.
19130         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19131         sys_stat.
19132
19133 2010-08-28  Bruno Haible  <bruno@clisp.org>
19134
19135         ftello: Relax license.
19136         * modules/ftello (License): Relax to LGPLv2+.
19137         Reported by Eric Blake.
19138
19139 2010-08-28  Bruno Haible  <bruno@clisp.org>
19140
19141         Avoid relocwrapper link errors due to gnulib replacement functions.
19142         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19143         function.
19144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19145
19146 2010-08-28  Bruno Haible  <bruno@clisp.org>
19147
19148         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19149         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19150         defined.
19151         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19152         Suggested by Eric Blake.
19153
19154 2010-08-28  Bruno Haible  <bruno@clisp.org>
19155
19156         sys_socket, netdb: Ensure socklen_t gets defined.
19157         * modules/sys_socket (Depends-on): Add socklen.
19158         * modules/netdb (Depends-on): Likewise.
19159         * modules/getaddrinfo (Depends-on): Remove socklen.
19160         * modules/getsockopt (Depends-on): Likewise.
19161         * modules/setsockopt (Depends-on): Likewise.
19162         * tests/test-sys_socket.c: Check that socklen_t is defined.
19163         * tests/test-netdb.c: Likewise.
19164         * m4/socklen.m4: Update comments.
19165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19166
19167 2010-08-27  Eric Blake  <eblake@redhat.com>
19168
19169         login_tty: add missing dependency
19170         * modules/login_tty (Depends-on): Add pty.
19171
19172 2010-08-26  Eric Blake  <eblake@redhat.com>
19173
19174         lib-symbol-versions: fix m4 quoting
19175         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19176         format for AC_LINK_IFELSE.
19177
19178         glob: fix compile test
19179         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19180
19181         btowc: fix missing file
19182         * modules/btowc (Files): Also ship locale-fr.m4.
19183
19184         lseek: fix link test
19185         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19186         AC_LINK_IFELSE.
19187
19188         include_next: silence autoconf 2.68 warning
19189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19190         AC_COMPILE_IFELSE as special.
19191         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19192         autoconf < 2.68.
19193
19194         acl: fix compilation test
19195         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19196         AC_COMPILE_IFELSE.
19197
19198 2010-08-26  Bruno Haible  <bruno@clisp.org>
19199
19200         Modernize AC_TRY_RUN invocations.
19201         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19202         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19203         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19204         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19205         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19206         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19209         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19210         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19211         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19212         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19213         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19214         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19215         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19216         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19217         gl_MBRLEN_NUL_RETVAL): Likewise.
19218         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19219         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19220         Likewise.
19221         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19222         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19223         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19224         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19225         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19226         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19227         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19228         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19229         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19230         Likewise.
19231         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19232         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19234         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19235         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19237         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19238         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19239         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19241
19242 2010-08-26  Bruno Haible  <bruno@clisp.org>
19243
19244         Modernize AC_TRY_LINK invocations.
19245         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19246         AC_TRY_LINK.
19247         * m4/argp.m4 (gl_ARGP): Likewise.
19248         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19249         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19250         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19251         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19252         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19253         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19254         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19255         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19256         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19257         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19258         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19259         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19260         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19261         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19262         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19263         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19264         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19265         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19266         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19267         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19268         Likewise.
19269         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19270         Likewise.
19271         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19272         Likewise.
19273         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19275         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19276         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19277         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19278         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19279         * m4/servent.m4 (gl_SERVENT): Likewise.
19280         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19281         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19282         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19283         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19284         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19285         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19286         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19287         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19288         * modules/tsearch-tests (configure.ac): Likewise.
19289
19290 2010-08-26  Bruno Haible  <bruno@clisp.org>
19291
19292         Modernize AC_TRY_COMPILE invocations.
19293         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19294         AC_TRY_COMPILE.
19295         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19296         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19297         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19298         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19299         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19300         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19301         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19302         * m4/lock.m4 (gl_LOCK): Likewise.
19303         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19304         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19305         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19306         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19307         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19308         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19309         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19310         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19311         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19312         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19313         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19314         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19315         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19316         extraneous semicolon.
19317
19318 2010-08-26  Jim Meyering  <meyering@redhat.com>
19319
19320         stat-time: relax license LGPL
19321         * modules/stat-time (License): Change from GPL to LGPL,
19322         with consent from all contributors, for use in libguile.
19323         Requested by Ludovic Courtès.
19324
19325 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19326
19327         poll: return immediately on POLLHUP.
19328         * lib/poll.c (poll): Always set timeout before wait_timeout is
19329         computed.
19330
19331 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19332
19333         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19334         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19335         rmdir ("dir/.//"), unlinkat.
19336
19337 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         stdbool: avoid spurious failure with modern xlc
19340         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19341
19342 2010-08-24  Bruno Haible  <bruno@clisp.org>
19343
19344         getloadavg: simplify code
19345         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19346         gl_have_func. Update comments.
19347
19348 2010-08-24  Eric Blake  <eblake@redhat.com>
19349
19350         getloadavg: don't define SVR4 on cygwin
19351         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19352         only define SVR4 when -lkvm is required.
19353         Reported by Yaakov Selkowitz.
19354
19355 2010-08-24  Bruno Haible  <bruno@clisp.org>
19356
19357         priv-set: fix comment
19358         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19359
19360 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19361
19362         priv-set: fix comments
19363         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19364         to match code, as suggested by David Bartley in:
19365         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19366
19367 2010-08-23  Eric Blake  <eblake@redhat.com>
19368
19369         stdbool: avoid rejecting clang
19370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19371         * tests/test-stdbool.c: Enable more tests if using the system
19372         <stdbool.h> instead of the gnulib replacement.
19373         (main): Move xlc bug test to a runtime test for all compilers.
19374         Reported by Anders Kaseorg.
19375
19376         argz: fix shell quoting issue
19377         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19378         Reported by Charles Wilson.
19379
19380 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19381             Erik Faye-Lund <kusmabite@gmail.com>
19382
19383         poll, select: handle ERROR_BROKEN_PIPE.
19384         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19385         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19386         * lib/select.c (win32_compute_revents): Do not mark a pipe
19387         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19388
19389 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19390
19391         fts: allow compilation with C++
19392         * lib/fts_.h: Specify extern "C" linkage with C++.
19393
19394 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19395
19396         Fix gnulib-tool sed script de-commentation for AIX sed.
19397         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19398         sed.
19399
19400 2010-08-17  Eric Blake  <eblake@redhat.com>
19401
19402         test-stddef: test for (some) offsetof bugs
19403         * tests/test-stddef.c: Enhance test to ensure correct type of
19404         offsetof.
19405         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19406         that we are not fixing at this time.
19407
19408 2010-08-15  Bruno Haible  <bruno@clisp.org>
19409
19410         stpncpy: Allow stpncpy to be defined as a macro.
19411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19412         if it's already correctly declared.
19413         * lib/string.in.h (stpncpy): Undefine before redefining.
19414         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19415
19416 2010-08-14  Bruno Haible  <bruno@clisp.org>
19417
19418         Rename module 'memxfrm' to 'amemxfrm'.
19419         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19420         (amemxfrm): Renamed from memxfrm.
19421         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19422         (amemxfrm): Renamed from memxfrm.
19423         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19424         * NEWS: Mention the change.
19425         * MODULES.html.sh (String handling <string.h>): Update.
19426         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19427         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19428         * lib/unicase/u16-casexfrm.c: Likewise.
19429         * lib/unicase/u32-casexfrm.c: Likewise.
19430         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19431         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19432         * lib/uninorm/u16-normxfrm.c: Likewise.
19433         * lib/uninorm/u32-normxfrm.c: Likewise.
19434         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19435         memxfrm.
19436         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19437         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19438         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19439         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19440         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19441         Suggested by Paul Eggert.
19442
19443 2010-08-14  Bruno Haible  <bruno@clisp.org>
19444
19445         Tests for module 'astrxfrm'.
19446         * modules/astrxfrm-tests: New file.
19447         * tests/test-astrxfrm.c: New file.
19448
19449         New module 'astrxfrm'.
19450         * lib/astrxfrm.h: New file.
19451         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19452         * modules/astrxfrm: New file.
19453
19454 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19455
19456         regex: Tweak doc.
19457         * doc/regex.texi (Overview): Don't mention regex.c.
19458         (GNU Regular Expression Compiling): Likewise.
19459         (Match-end-of-line Operator): Mention 'not_eol'.
19460
19461 2010-08-14  Brian Gough  <bjg@gnu.org>
19462             Bruno Haible  <bruno@clisp.org>
19463
19464         git-merge-changelog: add doc relating to use with bzr and hg.
19465         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19466
19467 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19468
19469         pthread: fix pthread.h creation for srcdir != builddir
19470         * modules/pthread (Makefile.am): Fix the rule to work also in a
19471         non-srcdir build.
19472
19473 2010-08-13  Karl Berry  <karl@gnu.org>
19474
19475         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19476         * doc/posix-*/*: force line break before @url of POSIX
19477         specifications.
19478         Suggested by Werner Lemberg.
19479
19480 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         strtod: fix const diagnostic
19483         * lib/strtod.c (strtod): Don't assign const char * to char *,
19484         as this elicits a warning from GCC when warnings are enabled.
19485
19486 2010-08-10  Pádraig Brady <P@draigbrady.com>
19487         and Eric Blake  <eblake@redhat.com>
19488
19489         copy-acl: ignore ENOTSUP on HP-UX
19490         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19491         so that it is available for HP-UX.
19492         * lib/copy-acl.c (qcopy_acl): Use it.
19493         Reported by Patrick M. Callahan.
19494
19495 2010-08-10  Eric Blake  <eblake@redhat.com>
19496
19497         open, chown: relax license
19498         * modules/open (License): Change to LGPLv2+, with consent by all
19499         authors, for use in augeas.
19500         * modules/chown (License): Likewise.
19501         * modules/lchown (Likewise): Likewise.
19502         Requested by Adam Stokes.
19503
19504 2010-08-09  Karl Berry  <karl@gnu.org>
19505
19506         * build-aux/ar-lib: new file, import from Automake.
19507         * config/srclist.txt: autocheck for updates.
19508
19509 2010-08-09  Eric Blake  <eblake@redhat.com>
19510
19511         readlinkat: adjust client modules
19512         * modules/areadlinkat (Depends-on): Use readlinkat, not
19513         symlinkat.
19514         * modules/areadlinkat-with-size (Depends-on): Likewise.
19515
19516         mknod: be more vocal about danger of running tests as root
19517         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19518         root, since that is just asking for problems.
19519         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19520
19521         readlinkat: split into its own module
19522         * modules/symlinkat: Split readlinkat...
19523         * modules/readlinkat: ...into separate module.
19524         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19525         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19526         * lib/symlinkat.c (readlinkat): Move...
19527         * lib/readlinkat.c: ...into new file.
19528         * modules/symlinkat-tests: Split readlinkat test...
19529         * modules/readlinkat-tests: ...into separate module.
19530         * tests/test-symlinkat.c: Split...
19531         * tests/test-readlinkat.c: ...into new file.
19532         * NEWS: Document the split.
19533         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19534         * lib/unistd.in.h (readlinkat): Likewise.
19535         Suggested by Bruno Haible.
19536
19537 2010-08-08  Bruno Haible  <bruno@clisp.org>
19538
19539         memxfrm: Speed up.
19540         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19541         that usually only one call to strxfrm is necessary for each string
19542         part.
19543         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19544
19545 2010-08-07  Karl Berry  <karl@gnu.org>
19546
19547         * doc/posix-headers/limits.texi,
19548         * doc/posix-functions/malloc.texi,
19549         * doc/posix-functions/strsignal.texi: missing @item.
19550         * doc/ld-version-script.texi: spurious leading i.
19551         * doc/regex.texi (Interval Operators): no commas inside @var.
19552
19553 2010-08-01  Bruno Haible  <bruno@clisp.org>
19554
19555         Integrate the regex documentation.
19556         * doc/gnulib.texi: Define 'cn' index.
19557         (Regular expressions): New a chapter that includes regex.texi and
19558         regexprops-generic.texi.
19559         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19560         syntax.
19561
19562         Whitespace cleanup.
19563         * doc/regex.texi: Remove trailing spaces.
19564
19565         Add regex documentation.
19566         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19567         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19568         Written by Kathy A. Hargreaves and Karl Berry.
19569
19570 2010-08-01  Bruno Haible  <bruno@clisp.org>
19571
19572         link: Update documentation.
19573         * doc/posix-functions/link.texi: Update regarding Solaris.
19574
19575 2010-07-31  Bruno Haible  <bruno@clisp.org>
19576
19577         Update modules list.
19578         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19579         (String handling <string.h>): Add memcmp2, memxfrm.
19580         (Container data structures): Add xlist, xsublist, xoset.
19581         (Core language properties): Add alignof, unused-parameter.
19582         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19583         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19584         (Unibyte characters <ctype.h>): New section.
19585         (String handling <string.h>): New section.
19586         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19587         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19588         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19589         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19590         tan, tanh, tanl, y0, y1, yn.
19591         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19592         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19593         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19594         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19595         unlockpt, vdprintf, vdprintf-posix.
19596         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19597         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19598         xconcat-filename.
19599         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19600         getdtablesize, pipe2, pipe2-safer.
19601         (Security): New section.
19602         (Networking functions): Add accept4.
19603         (Signal handling): Add sigpipe.
19604         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19605         mbmemcasecoll.
19606         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19607         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19608         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19609         pipe-filter-ii.
19610         (Misc): Add argp-version-etc, login_tty, parse-duration.
19611
19612 2010-07-31  Bruno Haible  <bruno@clisp.org>
19613
19614         Improve doc in MODULES.html.
19615         * modules/linkat (Description): Add the word "function".
19616         * modules/mkfifo (Description): Likewise.
19617         * modules/mknod (Description): Likewise.
19618         * modules/remove (Description): Likewise.
19619         * modules/renameat (Description): Likewise.
19620         * modules/stat (Description): Likewise.
19621         * modules/symlink (Description): Likewise.
19622         * modules/unlink (Description): Likewise.
19623
19624 2010-07-31  Bruno Haible  <bruno@clisp.org>
19625
19626         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19627         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19628         option --enable/disable-c++ instead of --enable/disable-cxx.
19629         * NEWS: Mention the change.
19630
19631 2010-07-31  Bruno Haible  <bruno@clisp.org>
19632
19633         readlink, areadlink: Relax test a bit.
19634         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19635         alternative to ENOTDIR.
19636         * tests/test-areadlink.h (test_areadlink): Likewise.
19637         Reported by Rainer Tammer.
19638
19639 2010-07-31  Bruno Haible  <bruno@clisp.org>
19640
19641         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19642         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19643         character, perform the search using U_STRCHR.
19644         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19645         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19646         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19647         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19648         Suggested by Paolo Bonzini.
19649
19650 2010-07-31  Bruno Haible  <bruno@clisp.org>
19651
19652         unistr/u*-strstr: Fix dependencies.
19653         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19654         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19655         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19656
19657 2010-07-31  Bruno Haible  <bruno@clisp.org>
19658
19659         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19660         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19661         the beginning of the loop.
19662         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19663         cases in 'switch' statement.
19664
19665         unistr/u8-strchr: Fix several bugs.
19666         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19667         the string. When not found, return NULL, not a pointer near the end.
19668
19669         More tests for unistr/u8-strchr.
19670         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19671         that the function does not read past the first occurrence of the byte
19672         being searched.
19673         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19674         * tests/unistr/test-u16-strchr.c (main): New function.
19675         * tests/unistr/test-u32-strchr.c (main): New function.
19676
19677 2010-07-31  Bruno Haible  <bruno@clisp.org>
19678
19679         posix-modules: Ignore backup files of documentation files.
19680         * posix-modules: grep only through files named *.texi.
19681
19682 2010-07-31  Bruno Haible  <bruno@clisp.org>
19683
19684         symlinkat: Fix documentation.
19685         * doc/posix-functions/readlinkat.texi: Fix module name.
19686
19687 2010-07-31  Bruno Haible  <bruno@clisp.org>
19688
19689         fchownat: Replace also when chown has the trailing slash bug.
19690         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19691         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19692         introduced on 2010-04-10.
19693         Reported by Rainer Tammer.
19694
19695 2010-07-31  Bruno Haible  <bruno@clisp.org>
19696
19697         linkat: Work around AIX 7.1 bug.
19698         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19699         whether linkat handles trailing slash correctly. If not, replace linkat
19700         and define LINKAT_TRAILING_SLASH_BUG.
19701         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19702         check whether (fd1,file1) points to a directory if file1 or file2 ends
19703         in a slash. Code taken from lib/link.c.
19704         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19705         Reported by Rainer Tammer.
19706
19707 2010-07-31  Bruno Haible  <bruno@clisp.org>
19708
19709         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19710         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19711         This disables an xlc optimization that was causing wrong test results.
19712         Reported by Rainer Tammer.
19713
19714 2010-07-31  Bruno Haible  <bruno@clisp.org>
19715
19716         iconv: Work around AIX 6.1..7.1 bug.
19717         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19718         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19719         cross-compiling, guess no on all versions of AIX.
19720         Reported by Rainer Tammer.
19721
19722 2010-07-31  Bruno Haible  <bruno@clisp.org>
19723
19724         readlink: Relax test a bit.
19725         * tests/test-readlink.h (test_readlink): Allow different errno value
19726         when readlink is called with a file name that ends in / and refers to
19727         a file.
19728         Suggested by Eric Blake.
19729         Reported by Rainer Tammer.
19730
19731 2010-07-31  Bruno Haible  <bruno@clisp.org>
19732
19733         copysign: Does not require -lm on glibc systems.
19734         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19735         gl_COMMON_DOUBLE_MATHFUNC.
19736         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19737
19738 2010-07-31  Bruno Haible  <bruno@clisp.org>
19739
19740         duplocale: Work around AIX 7.1 bug.
19741         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19742         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19743         * lib/duplocale.c (rpl_duplocale): Update comment.
19744         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19745         Reported by Rainer Tammer.
19746
19747 2010-07-30  Bruno Haible  <bruno@clisp.org>
19748
19749         dirfd: Avoid link error on AIX 7.1.
19750         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19751         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19752         exist, set REPLACE_DIRFD.
19753         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19754         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19755         * doc/posix-functions/dirfd.texi: Update.
19756         Reported by Rainer Tammer.
19757
19758 2010-07-30  Eric Blake  <eblake@redhat.com>
19759
19760         strtod: next round of AIX fixes
19761         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19762         exponent.
19763         * tests/test-strtod.c (main): Enhance tests.
19764         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19765         Reported by Rainer Tammer.
19766
19767         futimens: fix configure check
19768         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19769         Reported by Bruno Haible.
19770
19771 2010-07-30  Bruno Haible  <bruno@clisp.org>
19772
19773         getline: Update regarding AIX.
19774         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19775         Reported by Rainer Tammer.
19776
19777 2010-07-30  Bruno Haible  <bruno@clisp.org>
19778
19779         wcwidth: Drop replacement on AIX 7.
19780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19781         AIX 7.
19782         Reported by Rainer Tammer.
19783
19784 2010-07-30  Bruno Haible  <bruno@clisp.org>
19785
19786         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19788         a 'char *'.
19789         Reported by Rainer Tammer.
19790
19791 2010-07-30  Bruno Haible  <bruno@clisp.org>
19792
19793         unlink: Update regarding AIX.
19794         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19795         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19796         Reported by Rainer Tammer.
19797
19798 2010-07-30  Bruno Haible  <bruno@clisp.org>
19799
19800         symlink: Update regarding AIX.
19801         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19802         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19803         Reported by Rainer Tammer.
19804
19805 2010-07-30  Bruno Haible  <bruno@clisp.org>
19806
19807         strndup: Update regarding AIX.
19808         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19809         AIX 7.
19810         Reported by Rainer Tammer.
19811
19812 2010-07-30  Bruno Haible  <bruno@clisp.org>
19813
19814         stat: Update regarding AIX.
19815         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19816         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19817         Reported by Rainer Tammer.
19818
19819 2010-07-30  Bruno Haible  <bruno@clisp.org>
19820
19821         truncl: Fix autoconf test.
19822         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19823         whether truncl works.
19824         Reported by Rainer Tammer.
19825
19826 2010-07-30  Bruno Haible  <bruno@clisp.org>
19827
19828         round: Update regarding AIX.
19829         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19830         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19831         Reported by Rainer Tammer.
19832
19833 2010-07-30  Bruno Haible  <bruno@clisp.org>
19834
19835         rename: Update regarding AIX.
19836         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19837         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19838         Reported by Rainer Tammer.
19839
19840 2010-07-30  Bruno Haible  <bruno@clisp.org>
19841
19842         printf.m4: Update regarding AIX.
19843         * m4/printf.m4: Update comments regarding AIX.
19844         Reported by Rainer Tammer.
19845
19846 2010-07-30  Bruno Haible  <bruno@clisp.org>
19847
19848         iconv: Update regarding AIX.
19849         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19850         AIX 7.
19851         Reported by Rainer Tammer.
19852
19853 2010-07-30  Bruno Haible  <bruno@clisp.org>
19854
19855         getopt: Update regarding AIX.
19856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19857         no on AIX.
19858         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19859         Reported by Rainer Tammer.
19860
19861 2010-07-30  Bruno Haible  <bruno@clisp.org>
19862
19863         ldexpl; Update regarding AIX.
19864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19865         on AIX 7.
19866         Reported by Rainer Tammer.
19867
19868 2010-07-30  Bruno Haible  <bruno@clisp.org>
19869
19870         frexpl: Update regarding AIX.
19871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19872         on AIX 7.
19873         Reported by Rainer Tammer.
19874
19875 2010-07-30  Bruno Haible  <bruno@clisp.org>
19876
19877         open, fopen: Update regarding AIX.
19878         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19879         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19880         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19881         * doc/posix-functions/fopen.texi: Likewise.
19882         Reported by Rainer Tammer.
19883
19884 2010-07-30  Bruno Haible  <bruno@clisp.org>
19885
19886         chown: Update doc regarding AIX.
19887         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19888         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19889         Reported by Rainer Tammer.
19890
19891 2010-07-30  Eric Blake  <eblake@redhat.com>
19892
19893         strtod: fix bug in replacement function on AIX
19894         * lib/strtod.c (strtod): Special case broken "0x" parse in
19895         underlying strtod.
19896         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19897         * doc/posix-functions/strtod.texi (strtod): Likewise.
19898         Reported by Rainer Tammer.
19899
19900 2010-07-30  Bruno Haible  <bruno@clisp.org>
19901
19902         mbrlen: Fix cross-compilation guess for AIX.
19903         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19904         guess. Leftover from 2008-12-22.
19905
19906 2010-07-30  Bruno Haible  <bruno@clisp.org>
19907
19908         mbrtowc: Fix cross-compilation guess for AIX.
19909         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19910         guess. Leftover from 2008-12-21.
19911
19912 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19913
19914         init.sh: work around trap limitation of some shells
19915         * tests/init.sh (setup_): Move exit trap outside of shell function.
19916
19917 2010-07-29  Eric Blake  <eblake@redhat.com>
19918
19919         strtod: aid debugging
19920         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19921         understanding why strtod is rejected.
19922
19923 2010-07-28  Bruno Haible  <bruno@clisp.org>
19924
19925         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19926         * lib/unistr/u8-chr.c: Include <string.h>.
19927         * tests/unistr/test-u8-chr.c: Likewise.
19928         * tests/unistr/test-u16-chr.c: Likewise.
19929         * tests/unistr/test-u32-chr.c: Likewise.
19930         * tests/unistr/test-u8-strchr.c: Likewise.
19931         * tests/unistr/test-u16-strchr.c: Likewise.
19932         * tests/unistr/test-u32-strchr.c: Likewise.
19933         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19934         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19935         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19936         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19937
19938 2010-07-28  Bruno Haible  <bruno@clisp.org>
19939
19940         Use spaces for indentation, not tabs.
19941         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19942
19943 2010-07-27  Bruno Haible  <bruno@clisp.org>
19944
19945         mbspcasecmp: Fix function specification.
19946         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19947         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19948         Reported by Eric Blake <eblake@redhat.com>.
19949
19950 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19951
19952         timespec: use cast and not conditional, as truncation isn't possible
19953         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19954         instead of a conditional.  Comment about the situation in more detail.
19955         This undoes most of the 2009-10-29 patch.
19956
19957 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19958
19959         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19960         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19961         * lib/unistr/u8-strchr.c: Likewise.
19962         * modules/unistr/u8-chr: Depend on memchr.
19963
19964         unistr/u*-strchr: add tests
19965         * modules/unistr/u8-strchr-tests: New file.
19966         * modules/unistr/u16-strchr-tests: New file.
19967         * modules/unistr/u32-strchr-tests: New file.
19968         * tests/unistr/test-strchr.h: New file.
19969         * tests/unistr/test-u8-strchr.c: New file.
19970         * tests/unistr/test-u16-strchr.c: New file.
19971         * tests/unistr/test-u32-strchr.c: New file.
19972
19973         unistr/u*-chr: test multibyte sequences more
19974         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19975         test vector.
19976         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19977         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19978         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19979
19980         unistr/u*-chr: test multibyte sequences
19981         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19982
19983         unistr/u*-chr: prepare for multibyte tests
19984         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19985         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19986         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19987         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19988         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19989         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19990
19991 2010-07-18  Bruno Haible  <bruno@clisp.org>
19992
19993         unistr/u8-strchr: Optimize non-ASCII argument case.
19994         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19995         because the first byte often matches anyway.
19996         Reported by Pádraig Brady <P@draigbrady.com>.
19997
19998 2010-07-15  Karl Berry  <karl@gnu.org>
19999
20000         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20001
20002 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20003
20004         getcwd: on Solaris, work better if ancestors are inaccessible
20005         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20006         buffer and size, try again with a large buffer.  This works better
20007         on Solaris, since its getcwd succeeds even if the path to the root
20008         is inaccessible, and this is helpful in common cases such as .zfs
20009         hidden directories.  Problem reported by J Chapman Flack in
20010         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20011         Use system getcwd if it's declared, not merely if it's partly
20012         working; use the partly-working test only to avoid needless effort
20013         if the system getcwd fails.
20014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20015         comment that was already obsolete and is now even more obsolete.
20016         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20017         now might call strdup.
20018
20019 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20020
20021         pthread: Add enough so that coreutils/src/sort.c compiles.
20022         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20023         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20024         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20025         Include <sys/types.h>, in case it defines pthread_t.
20026         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20027         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20028         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20029         (pthread_rwlockattr_t, pthread_spinlock_t):
20030         New typedefs, if HAVE_PTHREAD_T is not defined.
20031         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20032         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20033         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20034         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20035         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20036         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20037         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20038         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20039         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20040         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20041         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20042         New macros.
20043         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20044         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20045         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20046         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20047         (pthread_spin_unlock): New dummy functions.
20048         (pthread_create): Return EAGAIN; don't set errno.
20049         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20050         require AC_C_INLINE.
20051         * modules/pthread (Depends-on): Add sched, time.
20052         (pthread.h): Use AM_V_GEN.
20053
20054 2010-07-13  Bruno Haible  <bruno@clisp.org>
20055
20056         striconveh: Don't malloc memory if the result buffer is sufficient.
20057         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20058         buffer if its size is sufficient.
20059         Reported by Ludovic Courtès <ludo@gnu.org>.
20060
20061 2010-07-13  Bruno Haible  <bruno@clisp.org>
20062
20063         strtod: Add safety check.
20064         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20065
20066 2010-07-12  Bruno Haible  <bruno@clisp.org>
20067
20068         Unify tests that set gl_cv_func_ldexpl_no_libm.
20069         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20070         gl_FUNC_LDEXPL.
20071         (gl_FUNC_LDEXPL): Invoke it.
20072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20073
20074 2010-07-12  Bruno Haible  <bruno@clisp.org>
20075
20076         Unify tests that set gl_cv_func_ldexp_no_libm.
20077         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20078         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20079         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20080         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20081         * modules/strtod (Files): Add m4/ldexp.m4.
20082
20083 2010-07-12  Bruno Haible  <bruno@clisp.org>
20084
20085         Unify tests that set gl_cv_func_frexpl_no_libm.
20086         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20087         gl_FUNC_FREXPL_NO_LIBM.
20088         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20090
20091 2010-07-12  Bruno Haible  <bruno@clisp.org>
20092
20093         Unify tests that set gl_cv_func_frexp_no_libm.
20094         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20095         gl_FUNC_FREXP_NO_LIBM.
20096         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20097         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20098
20099 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20100
20101         memcoll: clarify sizes versus lengths, document better, and tweak perf
20102         * lib/memcoll.c (strcoll_loop, memcoll0):
20103         Improve quality of descriptive comments.  Name variables
20104         consistently as to whether they are lengths (which do not include
20105         terminating null) versus sizes (which do).
20106         * lib/xmemcoll.c (xmemcoll0): Likewise.
20107         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20108         returned when s1size == 0; this is easier to compile and saves
20109         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20110
20111 2010-07-12  Bruno Haible  <bruno@clisp.org>
20112
20113         Tests for module '_Exit'.
20114         * modules/_Exit-tests: New file.
20115         * tests/test-_Exit.sh: New file.
20116         * tests/test-_Exit.c: New file.
20117
20118         New module '_Exit'.
20119         * lib/stdlib.in.h (__attribute__): New macro.
20120         (_Exit): New declaration.
20121         * lib/_Exit.c: New file.
20122         * m4/_Exit.m4: New file.
20123         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20124         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20125         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20126         * modules/_Exit: New file.
20127         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20128         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20129
20130 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20131
20132         strtod: make it more-accurate typically, and don't require libm
20133         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20134         Include limits.h.  Don't include string.h.
20135         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20136         (locale_isspace): New function, so that no casts are needed to
20137         check whether *s is a space.
20138         (ldexp): Provide an unused dummy if not available.
20139         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20140         (strtod): Use them.  This implementation prefers to use the
20141         underlying strtod if available, falling back on our own code
20142         only to fix known bugs.  This is more likely to produce an
20143         accurate result.  Also, it avoids the use of libm functions.
20144         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20145         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20146         was absent, but it caused a test failure with coreutils.
20147         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20148         with libm.
20149         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20150         * modules/strtod-tests (Makefile.am): Likewise.
20151
20152 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20153             Bruno Haible  <bruno@clisp.org>
20154
20155         unistr/u8-strchr: Optimize ASCII argument case.
20156         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20157
20158 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         (x)memcoll: minor tweaks
20161         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20162         is after the type that it qualifies.
20163         (memcoll0): Likewise.
20164         * lib/memcoll.h (memcoll0): Likewise.
20165         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20166         * lib/xmemcoll.h (xmemcoll0): Likewise.
20167         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20168         differs from memcoll in that the NUL byte is part of the argument.
20169         Omit the abort-checks, as performance is a real issue here.  Plus,
20170         the checks were wrong anyway (an off-by-one error).  Omit local
20171         variable 'diff', as it's a bit clearer that way.
20172         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20173         no longer needed.
20174
20175 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20176
20177         (x)memcoll: speedup when input is known to be NUL delimited
20178         * lib/memcoll.c: Include stdlib.
20179         (memcoll0): New function.
20180         (strcoll_loop): New function, refactored for use in both memcoll
20181         and memcoll0.
20182         * lib/memcoll.h (memcoll0): Add prototype.
20183         * lib/xmemcoll.c (xmemcoll0): New function.
20184         (collate_error): New function, refactored for use in both xmemcoll
20185         and xmemcoll0.
20186         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20187         * m4/memcoll.m4: add inline invocation.
20188
20189 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20190
20191         * build-aux/bootstrap: Remove any local translations
20192         from the translation project synchronization directory,
20193         so that local only translations are not distributed.
20194
20195 2010-07-04  Bruno Haible  <bruno@clisp.org>
20196
20197         fsusage: Clarify which code applies to which platforms.
20198         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20199         platform.
20200         * lib/fsusage.c (get_fs_usage): Likewise.
20201
20202 2010-07-04  Bruno Haible  <bruno@clisp.org>
20203
20204         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20205         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20206         Reported by Martin Lambers <marlam@marlam.de>.
20207
20208 2010-07-04  Jim Meyering  <meyering@redhat.com>
20209
20210         hash: once again explicitly disallow insertion of NULL
20211         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20212         inserting a NULL pointer cannot work with these functions.
20213         Add a comment with details.
20214         This reverts part of the 2010-07-01 commit, 5bef1a35
20215         "hash: extend module to deal with non-pointer keys".
20216
20217 2010-07-01  Bruno Haible  <bruno@clisp.org>
20218
20219         stdbool: Update doc.
20220         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20221         Info from Christian Weisgerber <naddy@mips.inka.de>.
20222
20223 2010-07-01  Jim Meyering  <meyering@redhat.com>
20224
20225         hash: extend module to deal with non-pointer keys
20226         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20227         but that allows insertion of non-pointer entries.
20228         Do not disallow an ENTRY value of NULL.
20229         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20230         * lib/hash.h (hash_insert0): Declare.
20231
20232 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20233
20234         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20235         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20236         not present (i.e. with autoconf 2.59 and when using gettextize, not
20237         gnulib), require AC_GNU_SOURCE instead.
20238
20239 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20240
20241         idpriv-drop: Fix tests.
20242         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20243         not to the test-idpriv-droptemp program.
20244
20245 2010-06-29  Bruno Haible  <bruno@clisp.org>
20246
20247         string: Fix syntax error with g++ 2.96.
20248         * lib/string.in.h (__pure__): Remove definition.
20249         (_GL_ATTRIBUTE_PURE): New macro.
20250         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20251         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20252         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20253
20254 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20255
20256         unitypes: Fix bug introduced on 2010-05-18.
20257         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20258
20259 2010-06-22  Eric Blake  <eblake@redhat.com>
20260
20261         memmem: slight optimization
20262         * lib/str-two-way.h (critical_factorization): Update comments.
20263         Reduce work during factorization phase.
20264         Reported by Carlos Bueno <carlos@bueno.org>.
20265
20266 2010-06-21  Bruno Haible  <bruno@clisp.org>
20267
20268         Fix HAVE_CALLOC_POSIX misnomer.
20269         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20270         !HAVE_CALLOC_POSIX.
20271         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20272         HAVE_CALLOC_POSIX.
20273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20274         instead of HAVE_CALLOC_POSIX.
20275         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20276         HAVE_CALLOC_POSIX.
20277
20278         Use modern idiom for calloc() replacement.
20279         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20280         AC_FUNC_CALLOC.
20281         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20282         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20283         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20284         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20285         (gl_REPLACE_CALLOC): New macro.
20286
20287 2010-06-21  Bruno Haible  <bruno@clisp.org>
20288
20289         Fix HAVE_REALLOC_POSIX misnomer.
20290         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20291         !HAVE_REALLOC_POSIX.
20292         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20293         HAVE_REALLOC_POSIX.
20294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20295         instead of HAVE_REALLOC_POSIX.
20296         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20297         HAVE_REALLOC_POSIX.
20298
20299         Use modern idiom for realloc() replacement.
20300         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20301         AC_FUNC_REALLOC.
20302         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20303         Autoconf's AC_FUNC_REALLOC.
20304         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20305         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20306         (gl_REPLACE_REALLOC): New macro.
20307         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20308
20309 2010-06-21  Bruno Haible  <bruno@clisp.org>
20310
20311         Fix HAVE_MALLOC_POSIX misnomer.
20312         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20313         !HAVE_MALLOC_POSIX.
20314         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20315         HAVE_MALLOC_POSIX.
20316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20317         instead of HAVE_MALLOC_POSIX.
20318         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20319         HAVE_MALLOC_POSIX.
20320
20321         Use modern idiom for malloc() replacement.
20322         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20323         AC_FUNC_MALLOC.
20324         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20325         Autoconf's AC_FUNC_MALLOC.
20326         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20327         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20328         (gl_REPLACE_MALLOC): New macro.
20329         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20330
20331 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20332
20333         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20334         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20335         This macro takes 3 arguments, not 4.
20336
20337 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20338
20339         ipv6: fix detection under mingw
20340         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20341         in6_addr.
20342
20343 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20344
20345         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20346         that strtod() works when cross-compiling to a glibc version known
20347         to work.
20348
20349 2010-06-15  Bruno Haible  <bruno@clisp.org>
20350
20351         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20352
20353 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20354
20355         select: Correct timeout.
20356         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20357
20358 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20359
20360         git-version-gen: init shell var to avoid env var influence
20361         * build-aux/git-version-gen (v): Init shell var to empty.
20362
20363 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20364
20365         priv-set: Don't assume that priv.h exists merely because getppriv does.
20366         See Jan Andersen's bug report about AIX 5L in
20367         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20368         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20369         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20370         * lib/priv-set.h: Likewise.
20371         * tests/test-priv-set.c: Likewise.
20372
20373 2010-06-13  Bruno Haible  <bruno@clisp.org>
20374
20375         relocatable: Make it easier to test whether to install wrappers.
20376         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20377         RELOCATABLE_VIA_WRAPPER.
20378
20379 2010-06-13  Bruno Haible  <bruno@clisp.org>
20380
20381         gnulib-tool: Display specified modules and dependencies differently.
20382         * gnulib-tool (func_show_module_list): New function.
20383         (func_import, func_create_testdir): Invoke it.
20384         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20385
20386 2010-06-13  Bruno Haible  <bruno@clisp.org>
20387
20388         gnulib-tool: Align code of func_import and func_create_testdir.
20389         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20390         specified_modules.
20391
20392 2010-06-12  Jim Meyering  <meyering@redhat.com>
20393
20394         test-inttostr: avoid spurious failure on Solaris 9
20395         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20396         to accept "%ju".  Reported by Bruno Haible.
20397
20398 2010-06-11  Jim Meyering  <meyering@redhat.com>
20399
20400         test-sys_socket: mark variables as used more readably
20401         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20402         as "used" explicitly via (void) statement casts.  This is more
20403         readable than using them in an artificial return expression.
20404         Suggestion from Bruno Haible.
20405
20406 2010-06-11  Bruno Haible  <bruno@clisp.org>
20407
20408         Avoid some more warnings from "gcc -Wwrite-strings".
20409         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20410         to 'const char *'.
20411         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20412         * tests/test-c-strcasestr.c (main): Likewise.
20413         * tests/test-mbscasestr1.c (main): Likewise.
20414         * tests/test-mbscasestr2.c (main): Likewise.
20415         * tests/test-memmem.c (main): Likewise.
20416         * tests/test-strstr.c (main): Likewise.
20417         * tests/test-strcasestr.c (main): Likewise.
20418
20419 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20420
20421         init.sh: change framework_failure_ to fail with status 99, not 1
20422         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20423         automake's parallel-tests rule that this is an unexpected failure,
20424         even if the test is listed in XFAIL_TESTS.
20425
20426 2010-06-11  Jim Meyering  <meyering@redhat.com>
20427
20428         test-inttostr: avoid warnings about 4-6KB literal strings
20429         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20430         Include "macros.h", for its definition of ASSERT.
20431         (CK): s/assert/ASSERT/
20432         * modules/inttostr-tests (Files): Add macros.h.
20433
20434         init.sh: don't use $ME_ or skip_ before they are defined
20435         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20436         their first uses.  Also hoist their companions: warn_, fail_,
20437         framework_failure_, $stderr_fileno.  Prompted by a patch from
20438         Stefano Lattarini.
20439
20440         test-sys_socket: avoid set-but-not-used warnings from gcc
20441         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20442         avoid warning about set-but-not-used variables.
20443
20444         test-xvasprintf: avoid 'const' discard warnings
20445         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20446         "const" when assigning from literal strings.
20447         (test_xasprintf): Add "void" in function argument list to placate
20448         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20449
20450         tests: avoid compilation warnings in argmatch and exclude tests...
20451         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20452         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20453         Since it always exits, declare with the "noreturn" attribute.
20454         * tests/test-argmatch.c: Likewise.
20455
20456         tests: avoid 'const' discard warnings in mbsstr tests
20457         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20458         * tests/test-mbsstr2.c (main): Likewise.
20459
20460         test-verify: avoid warning from gcc's -Wmissing-declarations
20461         * tests/test-verify.c (function): Declare to be static.
20462
20463         test-inttostr.c: include <string.h> for use of strcmp
20464         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20465
20466         test-linkat: avoid failed assertion on "other" architectures
20467         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20468         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20469         sparc: https://bugs.launchpad.net/bugs/591968
20470
20471 2010-06-11  Jim Meyering  <meyering@redhat.com>
20472
20473         printf.m4: avoid autoconf's "Expanded Before Required" warning
20474         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20475         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20476         autoconf warning.
20477
20478 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20479
20480         Replacement header templates are now named with ".in", not "_".
20481         * doc/gnulib-intro.texi: Correct.
20482
20483 2010-06-10  Jim Meyering  <meyering@redhat.com>
20484
20485         inttostr-tests: depend on snprintf, not snprintf-posix
20486         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20487         snprintf-posix, to avoid this aclocal failure:
20488           missing file gnulib-tests/vasnprintf.c
20489           configure.ac:45: error: expected source file, required through \
20490           AC_LIBSOURCES, not found
20491
20492 2010-06-10  Jim Meyering  <meyering@redhat.com>
20493
20494         inttostr: add a new function, inttostr, and tests
20495         The namesake function was not available.  The existence of the
20496         template file, inttostr.c makes its addition nontrivial.
20497         * lib/anytostr.c: Rename from inttostr.c.
20498         (anytostr): Rename from inttostr.
20499         * lib/inttostr.c: New file.
20500         * modules/inttostr (Files): Add anytostr.c.
20501         (Makefile.am): Set lib_SOURCES instead of ...
20502         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20503         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20504         * lib/offtostr.c: Likewise.
20505         * lib/uinttostr.c: Likewise.
20506         * lib/umaxtostr.c: Likewise.
20507         * modules/inttostr-tests: New file.
20508         * tests/test-inttostr.c: New file.  Test these functions.
20509
20510 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20511             Bruno Haible  <bruno@clisp.org>
20512
20513         Add "Extending Gnulib" chapter to manual.
20514         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20515         chapter.
20516         (Extending Gnulib): New chapter.
20517         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20518         chapter.
20519
20520 2010-06-09  Bruno Haible  <bruno@clisp.org>
20521
20522         Avoid relocwrapper link errors due to gnulib replacement functions.
20523         * lib/areadlink.c: Use the system's malloc, realloc functions.
20524         (areadlink): Set errno to ENOMEM explicitly.
20525         * modules/areadlink (Depends-on): Remove malloc-posix.
20526         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20527
20528 2010-06-09  Bruno Haible  <bruno@clisp.org>
20529
20530         Avoid relocwrapper link errors due to gnulib replacement functions.
20531         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20532         * lib/malloca.c: Likewise.
20533         * lib/relocatable.c: Likewise.
20534         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20535         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20536         * lib/setenv.c: Use the system's malloc, realloc functions.
20537         * lib/strerror.c: Use the system's sprintf function.
20538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20539
20540 2010-06-04  Bruno Haible  <bruno@clisp.org>
20541
20542         Prefer documented low-level autoconf macro names.
20543         * m4/lib-link.m4: Use m4_translit instead of translit.
20544         * m4/environ.m4: Likewise.
20545         * m4/mathfunc.m4: Likewise.
20546         * m4/onceonly.m4: Likewise.
20547         * m4/stdint.m4: Likewise.
20548         Suggested by Eric Blake.
20549
20550 2010-06-04  Martin Lambers  <marlam@marlam.de>
20551             Bruno Haible  <bruno@clisp.org>
20552
20553         havelib: Allow library names with '+' characters.
20554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20555         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20556
20557 2010-06-09  Bruno Haible  <bruno@clisp.org>
20558
20559         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20560         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20561         realloc failed.
20562
20563 2010-06-08  Peter Simons  <simons@cryp.to>
20564
20565         maint.mk: make the news-check rule more configurable
20566         * top/maint.mk (news-check-lines-spec): New variable.
20567         (news-check): Use "sed -n 1,10p" in place of "head".
20568
20569 2010-06-07  Jim Meyering  <meyering@redhat.com>
20570
20571         do-release-commit-and-tag: fix typo in --help
20572         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20573
20574         regex: avoid new dead-code warning with gcc-4.6.0
20575         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20576         if-block containing a while-loop.  It's been unused for at least
20577         5 years.
20578
20579 2010-06-05  Bruno Haible  <bruno@clisp.org>
20580
20581         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20582         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20583
20584 2010-06-04  Bruno Haible  <bruno@clisp.org>
20585
20586         Update to GNU gettext 0.18.1.
20587         * modules/gettext (configure.ac): Require gettext infrastructure from
20588         version 0.18.1.
20589
20590 2010-06-03  Bruno Haible  <bruno@clisp.org>
20591
20592         Don't use AC_LIBOBJ with file names in subdirectories.
20593         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20594         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20595         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20596         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20597         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20598         gl_LIBUNISTRING_LIBSOURCE.
20599         (Makefile.am): Augment lib_SOURCES here, conditionally.
20600         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20601
20602 2010-06-03  Bruno Haible  <bruno@clisp.org>
20603
20604         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20605         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20606         expansion does not end with a newline.
20607         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20608         unnecessary newline.
20609
20610 2010-06-03  Bruno Haible  <bruno@clisp.org>
20611
20612         Reduce dependencies.
20613         * tests/test-quotearg.h: New file, extracted from
20614         tests/test-quotearg.c.
20615         * tests/test-quotearg-simple.c: New file, extracted from
20616         tests/test-quotearg.c.
20617         * tests/test-quotearg.c: Don't include <ctype.h>.
20618         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20619         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20620         use_quote_double_quotes, use_quotearg_colon): Moved to
20621         tests/test-quotearg.h.
20622         (results_g, flag_results, custom_quotes, custom_results): Moved
20623         to tests/test-quotearg-simple.c.
20624         (main): Moved the part that does not depend on gettext to
20625         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20626         performed.
20627         * modules/quotearg-simple: New file.
20628         * modules/quotearg-simple-tests: New file.
20629         * modules/quotearg (Depends-on): Add quotearg-simple.
20630         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20631         (Files): Add tests/test-quotearg.h.
20632         Reported by Paolo Bonzini.
20633
20634 2010-06-03  Bruno Haible  <bruno@clisp.org>
20635
20636         Reduce dependencies.
20637         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20638
20639 2010-06-03  Bruno Haible  <bruno@clisp.org>
20640
20641         time: Undefine more broken macros.
20642         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20643         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20644         Reported by Eric Blake.
20645
20646 2010-06-03  Bruno Haible  <bruno@clisp.org>
20647
20648         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20649         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20650         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20651         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20652         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20653         Reported by Ludovic Courtès <ludo@gnu.org>.
20654
20655 2010-06-02  Eric Blake  <eblake@redhat.com>
20656
20657         time: work with mingw + pthreads-win32 library
20658         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20659         if timespec is defined only in pthread.h.
20660         * modules/time (Makefile.am): Substitute it.
20661         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20662         <pthread.h>, when needed.
20663         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20664         from the library.
20665
20666 2010-05-31  Bruno Haible  <bruno@clisp.org>
20667
20668         Avoid expanding two macros in the wrong order.
20669         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20670         gl_LIBUNISTRING if it is defined.
20671         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20672         autoconf >= 2.64.
20673         Reported by Ludovic Courtès <ludo@gnu.org>.
20674
20675 2010-05-27  Jim Meyering  <meyering@redhat.com>
20676
20677         maint.mk: also prohibit "#undef" of always-defined symbols
20678         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20679         Allow more than one space before the symbol name.
20680         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20681         the regexp uses alternation.
20682
20683 2010-05-26  Eric Blake  <eblake@redhat.com>
20684
20685         maint.mk: avoid echo -e
20686         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20687         Convert all uses of echo -* to printf.
20688         Reported by Matthias Bolte.
20689
20690 2010-05-25  Bruno Haible  <bruno@clisp.org>
20691
20692         Update to GNU gettext 0.18, part 2.
20693         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20694         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20695
20696 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20697
20698         Add missing include in test-pwrite.c.
20699         * tests/test-pwrite.c: Include string.h, for strcmp.
20700
20701 2010-05-24  Bruno Haible  <bruno@clisp.org>
20702
20703         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20704
20705 2010-05-24  Bruno Haible  <bruno@clisp.org>
20706
20707         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20708         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20709         iconveh_error argument.
20710         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20711         U_STRCONV_TO_LOCALE.
20712         * lib/unistr/u16-strcoll.c: Likewise.
20713         * lib/unistr/u32-strcoll.c: Likewise.
20714         * modules/unistr/u8-strcoll (Depends-on): Add
20715         uniconv/u8-strconv-to-enc, localcharset. Remove
20716         uniconv/u8-strconv-to-locale.
20717         (configure.ac): Bump version number.
20718         * modules/unistr/u16-strcoll (Depends-on): Add
20719         uniconv/u16-strconv-to-enc, localcharset. Remove
20720         uniconv/u16-strconv-to-locale.
20721         (configure.ac): Bump version number.
20722         * modules/unistr/u32-strcoll (Depends-on): Add
20723         uniconv/u32-strconv-to-enc, localcharset. Remove
20724         uniconv/u32-strconv-to-locale.
20725         (configure.ac): Bump version number.
20726
20727 2010-05-24  Bruno Haible  <bruno@clisp.org>
20728
20729         Avoid a test failure on NetBSD 5.0.
20730         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20731         an iconv() bug.
20732
20733 2010-05-24  Bruno Haible  <bruno@clisp.org>
20734
20735         Adjust #include directive style.
20736         * modules/regex (Includes): Recommend to write <regex.h>.
20737
20738 2010-05-24  Bruno Haible  <bruno@clisp.org>
20739
20740         regex: Don't require alloca.
20741         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20742         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20743         only inside if (0).
20744
20745 2010-05-23  Jim Meyering  <meyering@redhat.com>
20746
20747         test-renameat.c: include <sys/stat.h>
20748         * tests/test-renameat.c: Include <sys/stat.h>; required for
20749         definition of S_IS* macros.
20750
20751 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20752
20753         Update maintainer documentation for 'relocatable-prog' module.
20754         * doc/relocatable-maint.texi: Update.
20755         Comments by Bruno Haible.
20756
20757 2010-05-23  Bruno Haible  <bruno@clisp.org>
20758
20759         git-merge-changelog: Enable --split-merged-entry by default.
20760         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20761         (usage): Don't mention this option any more.
20762         Reported by Ralf Wildenhues.
20763
20764 2010-05-23  Jim Meyering  <meyering@redhat.com>
20765
20766         test-pwrite: do not leave behind a test file named "out"
20767         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20768         The trivial-looking use of init.sh is really necessary.
20769         It ensures that the temporary file, "out", is created in
20770         a temporary directory, and removed upon termination.
20771         * tests/test-pwrite.sh: Re-add file.
20772         * modules/pwrite-tests: Reference it.
20773
20774 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20775
20776         Fix output redirection buglet in init.sh.
20777         * tests/init.sh: Fix redirection of stderr.
20778
20779 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20780
20781         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20782
20783 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20784
20785         * modules/valgrind-tests: New file.
20786         * m4/valgrind-tests.m4: New file.
20787         * doc/valgrind-tests.texi: New file.
20788         * doc/gnulib.texi (Running self-tests under valgrind): New
20789         section.
20790
20791 2010-05-19  Bruno Haible  <bruno@clisp.org>
20792
20793         Clean up dead code in recent commit.
20794         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20795         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20796         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20797         Suggested by Paolo Bonzini.
20798
20799 2010-05-19  Bruno Haible  <bruno@clisp.org>
20800
20801         Avoid valgrind error reports from libunistring.
20802         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20803         * modules/libunistring (Files): Add it.
20804         * modules/libunistring-optional (Files): Likewise.
20805
20806 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20807             Bruno Haible  <bruno@clisp.org>
20808
20809         New module 'libunistring-optional'.
20810         * modules/libunistring-optional: New file.
20811         * m4/libunistring-base.m4: New file.
20812         * m4/libunistring-optional.m4: New file.
20813         * lib/unicase.in.h: Renamed from lib/unicase.h.
20814         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20815         * lib/unictype.in.h: Renamed from lib/unictype.h.
20816         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20817         * lib/uniname.in.h: Renamed from lib/uniname.h.
20818         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20819         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20820         * lib/unistr.in.h: Renamed from lib/unistr.h.
20821         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20822         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20823         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20824         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20825         gl_LIBUNISTRING. If the library was found, determine the installed
20826         version and set LIBUNISTRING_VERSION.
20827         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20828         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20829         handle a configuration option --with-included-libunistring.
20830         * modules/libunistring (Files): Add m4/absolute-header.m4.
20831         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20832         Add m4/libunistring-base.m4.
20833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20834         (Makefile.am): Build unicase.h from unicase.in.h.
20835         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20836         Add m4/libunistring-base.m4.
20837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20838         (Makefile.am): Build uniconv.h from uniconv.in.h.
20839         * modules/unictype/base (Files): Use unictype.in.h instead of
20840         unictype.h. Add m4/libunistring-base.m4.
20841         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20842         (Makefile.am): Build unictype.h from unictype.in.h.
20843         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20844         Add m4/libunistring-base.m4.
20845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20846         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20847         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20848         Add m4/libunistring-base.m4.
20849         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20850         (Makefile.am): Build uniname.h from uniname.in.h.
20851         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20852         Add m4/libunistring-base.m4.
20853         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20854         (Makefile.am): Build uninorm.h from uninorm.in.h.
20855         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20856         unistdio.h. Add m4/libunistring-base.m4.
20857         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20858         (Makefile.am): Build unistdio.h from unistdio.in.h.
20859         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20860         Add m4/libunistring-base.m4.
20861         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20862         (Makefile.am): Build unistr.h from unistr.in.h.
20863         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20864         Add m4/libunistring-base.m4.
20865         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20866         (Makefile.am): Build unitypes.h from unitypes.in.h.
20867         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20868         Add m4/libunistring-base.m4.
20869         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20870         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20871         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20872         uniwidth.h. Add m4/libunistring-base.m4.
20873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20874         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20875         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20876         instead of augmenting lib_SOURCES.
20877         * modules/unicase/empty-suffix-context: Likewise.
20878         * modules/unicase/locale-language: Likewise.
20879         * modules/unicase/tolower: Likewise.
20880         * modules/unicase/totitle: Likewise.
20881         * modules/unicase/toupper: Likewise.
20882         * modules/unicase/u8-casecmp: Likewise.
20883         * modules/unicase/u8-casecoll: Likewise.
20884         * modules/unicase/u8-casefold: Likewise.
20885         * modules/unicase/u8-casexfrm: Likewise.
20886         * modules/unicase/u8-ct-casefold: Likewise.
20887         * modules/unicase/u8-ct-tolower: Likewise.
20888         * modules/unicase/u8-ct-totitle: Likewise.
20889         * modules/unicase/u8-ct-toupper: Likewise.
20890         * modules/unicase/u8-is-cased: Likewise.
20891         * modules/unicase/u8-is-casefolded: Likewise.
20892         * modules/unicase/u8-is-lowercase: Likewise.
20893         * modules/unicase/u8-is-titlecase: Likewise.
20894         * modules/unicase/u8-is-uppercase: Likewise.
20895         * modules/unicase/u8-prefix-context: Likewise.
20896         * modules/unicase/u8-suffix-context: Likewise.
20897         * modules/unicase/u8-tolower: Likewise.
20898         * modules/unicase/u8-totitle: Likewise.
20899         * modules/unicase/u8-toupper: Likewise.
20900         * modules/unicase/u16-casecmp: Likewise.
20901         * modules/unicase/u16-casecoll: Likewise.
20902         * modules/unicase/u16-casefold: Likewise.
20903         * modules/unicase/u16-casexfrm: Likewise.
20904         * modules/unicase/u16-ct-casefold: Likewise.
20905         * modules/unicase/u16-ct-tolower: Likewise.
20906         * modules/unicase/u16-ct-totitle: Likewise.
20907         * modules/unicase/u16-ct-toupper: Likewise.
20908         * modules/unicase/u16-is-cased: Likewise.
20909         * modules/unicase/u16-is-casefolded: Likewise.
20910         * modules/unicase/u16-is-lowercase: Likewise.
20911         * modules/unicase/u16-is-titlecase: Likewise.
20912         * modules/unicase/u16-is-uppercase: Likewise.
20913         * modules/unicase/u16-prefix-context: Likewise.
20914         * modules/unicase/u16-suffix-context: Likewise.
20915         * modules/unicase/u16-tolower: Likewise.
20916         * modules/unicase/u16-totitle: Likewise.
20917         * modules/unicase/u16-toupper: Likewise.
20918         * modules/unicase/u32-casecmp: Likewise.
20919         * modules/unicase/u32-casecoll: Likewise.
20920         * modules/unicase/u32-casefold: Likewise.
20921         * modules/unicase/u32-casexfrm: Likewise.
20922         * modules/unicase/u32-ct-casefold: Likewise.
20923         * modules/unicase/u32-ct-tolower: Likewise.
20924         * modules/unicase/u32-ct-totitle: Likewise.
20925         * modules/unicase/u32-ct-toupper: Likewise.
20926         * modules/unicase/u32-is-cased: Likewise.
20927         * modules/unicase/u32-is-casefolded: Likewise.
20928         * modules/unicase/u32-is-lowercase: Likewise.
20929         * modules/unicase/u32-is-titlecase: Likewise.
20930         * modules/unicase/u32-is-uppercase: Likewise.
20931         * modules/unicase/u32-prefix-context: Likewise.
20932         * modules/unicase/u32-suffix-context: Likewise.
20933         * modules/unicase/u32-tolower: Likewise.
20934         * modules/unicase/u32-totitle: Likewise.
20935         * modules/unicase/u32-toupper: Likewise.
20936         * modules/unicase/ulc-casecmp: Likewise.
20937         * modules/unicase/ulc-casecoll: Likewise.
20938         * modules/unicase/ulc-casexfrm: Likewise.
20939         * modules/uniconv/u8-conv-from-enc: Likewise.
20940         * modules/uniconv/u8-conv-to-enc: Likewise.
20941         * modules/uniconv/u8-strconv-from-enc: Likewise.
20942         * modules/uniconv/u8-strconv-from-locale: Likewise.
20943         * modules/uniconv/u8-strconv-to-enc: Likewise.
20944         * modules/uniconv/u8-strconv-to-locale: Likewise.
20945         * modules/uniconv/u16-conv-from-enc: Likewise.
20946         * modules/uniconv/u16-conv-to-enc: Likewise.
20947         * modules/uniconv/u16-strconv-from-enc: Likewise.
20948         * modules/uniconv/u16-strconv-from-locale: Likewise.
20949         * modules/uniconv/u16-strconv-to-enc: Likewise.
20950         * modules/uniconv/u16-strconv-to-locale: Likewise.
20951         * modules/uniconv/u32-conv-from-enc: Likewise.
20952         * modules/uniconv/u32-conv-to-enc: Likewise.
20953         * modules/uniconv/u32-strconv-from-enc: Likewise.
20954         * modules/uniconv/u32-strconv-from-locale: Likewise.
20955         * modules/uniconv/u32-strconv-to-enc: Likewise.
20956         * modules/uniconv/u32-strconv-to-locale: Likewise.
20957         * modules/unictype/bidicategory-byname: Likewise.
20958         * modules/unictype/bidicategory-name: Likewise.
20959         * modules/unictype/bidicategory-of: Likewise.
20960         * modules/unictype/bidicategory-test: Likewise.
20961         * modules/unictype/block-list: Likewise.
20962         * modules/unictype/block-test: Likewise.
20963         * modules/unictype/category-C: Likewise.
20964         * modules/unictype/category-Cc: Likewise.
20965         * modules/unictype/category-Cf: Likewise.
20966         * modules/unictype/category-Cn: Likewise.
20967         * modules/unictype/category-Co: Likewise.
20968         * modules/unictype/category-Cs: Likewise.
20969         * modules/unictype/category-L: Likewise.
20970         * modules/unictype/category-Ll: Likewise.
20971         * modules/unictype/category-Lm: Likewise.
20972         * modules/unictype/category-Lo: Likewise.
20973         * modules/unictype/category-Lt: Likewise.
20974         * modules/unictype/category-Lu: Likewise.
20975         * modules/unictype/category-M: Likewise.
20976         * modules/unictype/category-Mc: Likewise.
20977         * modules/unictype/category-Me: Likewise.
20978         * modules/unictype/category-Mn: Likewise.
20979         * modules/unictype/category-N: Likewise.
20980         * modules/unictype/category-Nd: Likewise.
20981         * modules/unictype/category-Nl: Likewise.
20982         * modules/unictype/category-No: Likewise.
20983         * modules/unictype/category-P: Likewise.
20984         * modules/unictype/category-Pc: Likewise.
20985         * modules/unictype/category-Pd: Likewise.
20986         * modules/unictype/category-Pe: Likewise.
20987         * modules/unictype/category-Pf: Likewise.
20988         * modules/unictype/category-Pi: Likewise.
20989         * modules/unictype/category-Po: Likewise.
20990         * modules/unictype/category-Ps: Likewise.
20991         * modules/unictype/category-S: Likewise.
20992         * modules/unictype/category-Sc: Likewise.
20993         * modules/unictype/category-Sk: Likewise.
20994         * modules/unictype/category-Sm: Likewise.
20995         * modules/unictype/category-So: Likewise.
20996         * modules/unictype/category-Z: Likewise.
20997         * modules/unictype/category-Zl: Likewise.
20998         * modules/unictype/category-Zp: Likewise.
20999         * modules/unictype/category-Zs: Likewise.
21000         * modules/unictype/category-and: Likewise.
21001         * modules/unictype/category-and-not: Likewise.
21002         * modules/unictype/category-byname: Likewise.
21003         * modules/unictype/category-name: Likewise.
21004         * modules/unictype/category-none: Likewise.
21005         * modules/unictype/category-of: Likewise.
21006         * modules/unictype/category-or: Likewise.
21007         * modules/unictype/category-test: Likewise.
21008         * modules/unictype/combining-class: Likewise.
21009         * modules/unictype/ctype-alnum: Likewise.
21010         * modules/unictype/ctype-alpha: Likewise.
21011         * modules/unictype/ctype-blank: Likewise.
21012         * modules/unictype/ctype-cntrl: Likewise.
21013         * modules/unictype/ctype-digit: Likewise.
21014         * modules/unictype/ctype-graph: Likewise.
21015         * modules/unictype/ctype-lower: Likewise.
21016         * modules/unictype/ctype-print: Likewise.
21017         * modules/unictype/ctype-punct: Likewise.
21018         * modules/unictype/ctype-space: Likewise.
21019         * modules/unictype/ctype-upper: Likewise.
21020         * modules/unictype/ctype-xdigit: Likewise.
21021         * modules/unictype/decimal-digit: Likewise.
21022         * modules/unictype/digit: Likewise.
21023         * modules/unictype/mirror: Likewise.
21024         * modules/unictype/numeric: Likewise.
21025         * modules/unictype/property-alphabetic: Likewise.
21026         * modules/unictype/property-ascii-hex-digit: Likewise.
21027         * modules/unictype/property-bidi-arabic-digit: Likewise.
21028         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21029         * modules/unictype/property-bidi-block-separator: Likewise.
21030         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21031         * modules/unictype/property-bidi-common-separator: Likewise.
21032         * modules/unictype/property-bidi-control: Likewise.
21033         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21034         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21035         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21036         * modules/unictype/property-bidi-european-digit: Likewise.
21037         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21038         * modules/unictype/property-bidi-left-to-right: Likewise.
21039         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21040         * modules/unictype/property-bidi-other-neutral: Likewise.
21041         * modules/unictype/property-bidi-pdf: Likewise.
21042         * modules/unictype/property-bidi-segment-separator: Likewise.
21043         * modules/unictype/property-bidi-whitespace: Likewise.
21044         * modules/unictype/property-byname: Likewise.
21045         * modules/unictype/property-combining: Likewise.
21046         * modules/unictype/property-composite: Likewise.
21047         * modules/unictype/property-currency-symbol: Likewise.
21048         * modules/unictype/property-dash: Likewise.
21049         * modules/unictype/property-decimal-digit: Likewise.
21050         * modules/unictype/property-default-ignorable-code-point: Likewise.
21051         * modules/unictype/property-deprecated: Likewise.
21052         * modules/unictype/property-diacritic: Likewise.
21053         * modules/unictype/property-extender: Likewise.
21054         * modules/unictype/property-format-control: Likewise.
21055         * modules/unictype/property-grapheme-base: Likewise.
21056         * modules/unictype/property-grapheme-extend: Likewise.
21057         * modules/unictype/property-grapheme-link: Likewise.
21058         * modules/unictype/property-hex-digit: Likewise.
21059         * modules/unictype/property-hyphen: Likewise.
21060         * modules/unictype/property-id-continue: Likewise.
21061         * modules/unictype/property-id-start: Likewise.
21062         * modules/unictype/property-ideographic: Likewise.
21063         * modules/unictype/property-ids-binary-operator: Likewise.
21064         * modules/unictype/property-ids-trinary-operator: Likewise.
21065         * modules/unictype/property-ignorable-control: Likewise.
21066         * modules/unictype/property-iso-control: Likewise.
21067         * modules/unictype/property-join-control: Likewise.
21068         * modules/unictype/property-left-of-pair: Likewise.
21069         * modules/unictype/property-line-separator: Likewise.
21070         * modules/unictype/property-logical-order-exception: Likewise.
21071         * modules/unictype/property-lowercase: Likewise.
21072         * modules/unictype/property-math: Likewise.
21073         * modules/unictype/property-non-break: Likewise.
21074         * modules/unictype/property-not-a-character: Likewise.
21075         * modules/unictype/property-numeric: Likewise.
21076         * modules/unictype/property-other-alphabetic: Likewise.
21077         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21078         * modules/unictype/property-other-grapheme-extend: Likewise.
21079         * modules/unictype/property-other-id-continue: Likewise.
21080         * modules/unictype/property-other-id-start: Likewise.
21081         * modules/unictype/property-other-lowercase: Likewise.
21082         * modules/unictype/property-other-math: Likewise.
21083         * modules/unictype/property-other-uppercase: Likewise.
21084         * modules/unictype/property-paired-punctuation: Likewise.
21085         * modules/unictype/property-paragraph-separator: Likewise.
21086         * modules/unictype/property-pattern-syntax: Likewise.
21087         * modules/unictype/property-pattern-white-space: Likewise.
21088         * modules/unictype/property-private-use: Likewise.
21089         * modules/unictype/property-punctuation: Likewise.
21090         * modules/unictype/property-quotation-mark: Likewise.
21091         * modules/unictype/property-radical: Likewise.
21092         * modules/unictype/property-sentence-terminal: Likewise.
21093         * modules/unictype/property-soft-dotted: Likewise.
21094         * modules/unictype/property-space: Likewise.
21095         * modules/unictype/property-terminal-punctuation: Likewise.
21096         * modules/unictype/property-test: Likewise.
21097         * modules/unictype/property-titlecase: Likewise.
21098         * modules/unictype/property-unassigned-code-value: Likewise.
21099         * modules/unictype/property-unified-ideograph: Likewise.
21100         * modules/unictype/property-uppercase: Likewise.
21101         * modules/unictype/property-variation-selector: Likewise.
21102         * modules/unictype/property-white-space: Likewise.
21103         * modules/unictype/property-xid-continue: Likewise.
21104         * modules/unictype/property-xid-start: Likewise.
21105         * modules/unictype/property-zero-width: Likewise.
21106         * modules/unictype/scripts: Likewise.
21107         * modules/unictype/syntax-c-ident: Likewise.
21108         * modules/unictype/syntax-c-whitespace: Likewise.
21109         * modules/unictype/syntax-java-ident: Likewise.
21110         * modules/unictype/syntax-java-whitespace: Likewise.
21111         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21112         * modules/unilbrk/u8-width-linebreaks: Likewise.
21113         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21114         * modules/unilbrk/u16-width-linebreaks: Likewise.
21115         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21116         * modules/unilbrk/u32-width-linebreaks: Likewise.
21117         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21118         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21119         * modules/uniname/uniname: Likewise.
21120         * modules/uninorm/canonical-decomposition: Likewise.
21121         * modules/uninorm/composition: Likewise.
21122         * modules/uninorm/decomposing-form: Likewise.
21123         * modules/uninorm/decomposition: Likewise.
21124         * modules/uninorm/filter: Likewise.
21125         * modules/uninorm/nfc: Likewise.
21126         * modules/uninorm/nfd: Likewise.
21127         * modules/uninorm/nfkc: Likewise.
21128         * modules/uninorm/nfkd: Likewise.
21129         * modules/uninorm/u8-normalize: Likewise.
21130         * modules/uninorm/u8-normcmp: Likewise.
21131         * modules/uninorm/u8-normcoll: Likewise.
21132         * modules/uninorm/u8-normxfrm: Likewise.
21133         * modules/uninorm/u16-normalize: Likewise.
21134         * modules/uninorm/u16-normcmp: Likewise.
21135         * modules/uninorm/u16-normcoll: Likewise.
21136         * modules/uninorm/u16-normxfrm: Likewise.
21137         * modules/uninorm/u32-normalize: Likewise.
21138         * modules/uninorm/u32-normcmp: Likewise.
21139         * modules/uninorm/u32-normcoll: Likewise.
21140         * modules/uninorm/u32-normxfrm: Likewise.
21141         * modules/unistdio/u8-asnprintf: Likewise.
21142         * modules/unistdio/u8-asprintf: Likewise.
21143         * modules/unistdio/u8-snprintf: Likewise.
21144         * modules/unistdio/u8-sprintf: Likewise.
21145         * modules/unistdio/u8-u8-asnprintf: Likewise.
21146         * modules/unistdio/u8-u8-asprintf: Likewise.
21147         * modules/unistdio/u8-u8-snprintf: Likewise.
21148         * modules/unistdio/u8-u8-sprintf: Likewise.
21149         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21150         * modules/unistdio/u8-u8-vasprintf: Likewise.
21151         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21152         * modules/unistdio/u8-u8-vsprintf: Likewise.
21153         * modules/unistdio/u8-vasnprintf: Likewise.
21154         * modules/unistdio/u8-vasprintf: Likewise.
21155         * modules/unistdio/u8-vsnprintf: Likewise.
21156         * modules/unistdio/u8-vsprintf: Likewise.
21157         * modules/unistdio/u16-asnprintf: Likewise.
21158         * modules/unistdio/u16-asprintf: Likewise.
21159         * modules/unistdio/u16-snprintf: Likewise.
21160         * modules/unistdio/u16-sprintf: Likewise.
21161         * modules/unistdio/u16-u16-asnprintf: Likewise.
21162         * modules/unistdio/u16-u16-asprintf: Likewise.
21163         * modules/unistdio/u16-u16-snprintf: Likewise.
21164         * modules/unistdio/u16-u16-sprintf: Likewise.
21165         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21166         * modules/unistdio/u16-u16-vasprintf: Likewise.
21167         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21168         * modules/unistdio/u16-u16-vsprintf: Likewise.
21169         * modules/unistdio/u16-vasnprintf: Likewise.
21170         * modules/unistdio/u16-vasprintf: Likewise.
21171         * modules/unistdio/u16-vsnprintf: Likewise.
21172         * modules/unistdio/u16-vsprintf: Likewise.
21173         * modules/unistdio/u32-asnprintf: Likewise.
21174         * modules/unistdio/u32-asprintf: Likewise.
21175         * modules/unistdio/u32-snprintf: Likewise.
21176         * modules/unistdio/u32-sprintf: Likewise.
21177         * modules/unistdio/u32-u32-asnprintf: Likewise.
21178         * modules/unistdio/u32-u32-asprintf: Likewise.
21179         * modules/unistdio/u32-u32-snprintf: Likewise.
21180         * modules/unistdio/u32-u32-sprintf: Likewise.
21181         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21182         * modules/unistdio/u32-u32-vasprintf: Likewise.
21183         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21184         * modules/unistdio/u32-u32-vsprintf: Likewise.
21185         * modules/unistdio/u32-vasnprintf: Likewise.
21186         * modules/unistdio/u32-vasprintf: Likewise.
21187         * modules/unistdio/u32-vsnprintf: Likewise.
21188         * modules/unistdio/u32-vsprintf: Likewise.
21189         * modules/unistdio/ulc-asnprintf: Likewise.
21190         * modules/unistdio/ulc-asprintf: Likewise.
21191         * modules/unistdio/ulc-fprintf: Likewise.
21192         * modules/unistdio/ulc-snprintf: Likewise.
21193         * modules/unistdio/ulc-sprintf: Likewise.
21194         * modules/unistdio/ulc-vasnprintf: Likewise.
21195         * modules/unistdio/ulc-vasprintf: Likewise.
21196         * modules/unistdio/ulc-vfprintf: Likewise.
21197         * modules/unistdio/ulc-vsnprintf: Likewise.
21198         * modules/unistdio/ulc-vsprintf: Likewise.
21199         * modules/unistr/u8-check: Likewise.
21200         * modules/unistr/u8-chr: Likewise.
21201         * modules/unistr/u8-cmp: Likewise.
21202         * modules/unistr/u8-cmp2: Likewise.
21203         * modules/unistr/u8-cpy: Likewise.
21204         * modules/unistr/u8-cpy-alloc: Likewise.
21205         * modules/unistr/u8-endswith: Likewise.
21206         * modules/unistr/u8-mblen: Likewise.
21207         * modules/unistr/u8-mbsnlen: Likewise.
21208         * modules/unistr/u8-mbtouc: Likewise.
21209         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21210         * modules/unistr/u8-mbtoucr: Likewise.
21211         * modules/unistr/u8-move: Likewise.
21212         * modules/unistr/u8-next: Likewise.
21213         * modules/unistr/u8-prev: Likewise.
21214         * modules/unistr/u8-set: Likewise.
21215         * modules/unistr/u8-startswith: Likewise.
21216         * modules/unistr/u8-stpcpy: Likewise.
21217         * modules/unistr/u8-stpncpy: Likewise.
21218         * modules/unistr/u8-strcat: Likewise.
21219         * modules/unistr/u8-strchr: Likewise.
21220         * modules/unistr/u8-strcmp: Likewise.
21221         * modules/unistr/u8-strcoll: Likewise.
21222         * modules/unistr/u8-strcpy: Likewise.
21223         * modules/unistr/u8-strcspn: Likewise.
21224         * modules/unistr/u8-strdup: Likewise.
21225         * modules/unistr/u8-strlen: Likewise.
21226         * modules/unistr/u8-strmblen: Likewise.
21227         * modules/unistr/u8-strmbtouc: Likewise.
21228         * modules/unistr/u8-strncat: Likewise.
21229         * modules/unistr/u8-strncmp: Likewise.
21230         * modules/unistr/u8-strncpy: Likewise.
21231         * modules/unistr/u8-strnlen: Likewise.
21232         * modules/unistr/u8-strpbrk: Likewise.
21233         * modules/unistr/u8-strrchr: Likewise.
21234         * modules/unistr/u8-strspn: Likewise.
21235         * modules/unistr/u8-strstr: Likewise.
21236         * modules/unistr/u8-strtok: Likewise.
21237         * modules/unistr/u8-to-u16: Likewise.
21238         * modules/unistr/u8-to-u32: Likewise.
21239         * modules/unistr/u8-uctomb: Likewise.
21240         * modules/unistr/u16-check: Likewise.
21241         * modules/unistr/u16-chr: Likewise.
21242         * modules/unistr/u16-cmp: Likewise.
21243         * modules/unistr/u16-cmp2: Likewise.
21244         * modules/unistr/u16-cpy: Likewise.
21245         * modules/unistr/u16-cpy-alloc: Likewise.
21246         * modules/unistr/u16-endswith: Likewise.
21247         * modules/unistr/u16-mblen: Likewise.
21248         * modules/unistr/u16-mbsnlen: Likewise.
21249         * modules/unistr/u16-mbtouc: Likewise.
21250         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21251         * modules/unistr/u16-mbtoucr: Likewise.
21252         * modules/unistr/u16-move: Likewise.
21253         * modules/unistr/u16-next: Likewise.
21254         * modules/unistr/u16-prev: Likewise.
21255         * modules/unistr/u16-set: Likewise.
21256         * modules/unistr/u16-startswith: Likewise.
21257         * modules/unistr/u16-stpcpy: Likewise.
21258         * modules/unistr/u16-stpncpy: Likewise.
21259         * modules/unistr/u16-strcat: Likewise.
21260         * modules/unistr/u16-strchr: Likewise.
21261         * modules/unistr/u16-strcmp: Likewise.
21262         * modules/unistr/u16-strcoll: Likewise.
21263         * modules/unistr/u16-strcpy: Likewise.
21264         * modules/unistr/u16-strcspn: Likewise.
21265         * modules/unistr/u16-strdup: Likewise.
21266         * modules/unistr/u16-strlen: Likewise.
21267         * modules/unistr/u16-strmblen: Likewise.
21268         * modules/unistr/u16-strmbtouc: Likewise.
21269         * modules/unistr/u16-strncat: Likewise.
21270         * modules/unistr/u16-strncmp: Likewise.
21271         * modules/unistr/u16-strncpy: Likewise.
21272         * modules/unistr/u16-strnlen: Likewise.
21273         * modules/unistr/u16-strpbrk: Likewise.
21274         * modules/unistr/u16-strrchr: Likewise.
21275         * modules/unistr/u16-strspn: Likewise.
21276         * modules/unistr/u16-strstr: Likewise.
21277         * modules/unistr/u16-strtok: Likewise.
21278         * modules/unistr/u16-to-u32: Likewise.
21279         * modules/unistr/u16-to-u8: Likewise.
21280         * modules/unistr/u16-uctomb: Likewise.
21281         * modules/unistr/u32-check: Likewise.
21282         * modules/unistr/u32-chr: Likewise.
21283         * modules/unistr/u32-cmp: Likewise.
21284         * modules/unistr/u32-cmp2: Likewise.
21285         * modules/unistr/u32-cpy: Likewise.
21286         * modules/unistr/u32-cpy-alloc: Likewise.
21287         * modules/unistr/u32-endswith: Likewise.
21288         * modules/unistr/u32-mblen: Likewise.
21289         * modules/unistr/u32-mbsnlen: Likewise.
21290         * modules/unistr/u32-mbtouc: Likewise.
21291         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21292         * modules/unistr/u32-mbtoucr: Likewise.
21293         * modules/unistr/u32-move: Likewise.
21294         * modules/unistr/u32-next: Likewise.
21295         * modules/unistr/u32-prev: Likewise.
21296         * modules/unistr/u32-set: Likewise.
21297         * modules/unistr/u32-startswith: Likewise.
21298         * modules/unistr/u32-stpcpy: Likewise.
21299         * modules/unistr/u32-stpncpy: Likewise.
21300         * modules/unistr/u32-strcat: Likewise.
21301         * modules/unistr/u32-strchr: Likewise.
21302         * modules/unistr/u32-strcmp: Likewise.
21303         * modules/unistr/u32-strcoll: Likewise.
21304         * modules/unistr/u32-strcpy: Likewise.
21305         * modules/unistr/u32-strcspn: Likewise.
21306         * modules/unistr/u32-strdup: Likewise.
21307         * modules/unistr/u32-strlen: Likewise.
21308         * modules/unistr/u32-strmblen: Likewise.
21309         * modules/unistr/u32-strmbtouc: Likewise.
21310         * modules/unistr/u32-strncat: Likewise.
21311         * modules/unistr/u32-strncmp: Likewise.
21312         * modules/unistr/u32-strncpy: Likewise.
21313         * modules/unistr/u32-strnlen: Likewise.
21314         * modules/unistr/u32-strpbrk: Likewise.
21315         * modules/unistr/u32-strrchr: Likewise.
21316         * modules/unistr/u32-strspn: Likewise.
21317         * modules/unistr/u32-strstr: Likewise.
21318         * modules/unistr/u32-strtok: Likewise.
21319         * modules/unistr/u32-to-u16: Likewise.
21320         * modules/unistr/u32-to-u8: Likewise.
21321         * modules/unistr/u32-uctomb: Likewise.
21322         * modules/uniwbrk/u8-wordbreaks: Likewise.
21323         * modules/uniwbrk/u16-wordbreaks: Likewise.
21324         * modules/uniwbrk/u32-wordbreaks: Likewise.
21325         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21326         * modules/uniwbrk/wordbreak-property: Likewise.
21327         * modules/uniwidth/u8-strwidth: Likewise.
21328         * modules/uniwidth/u8-width: Likewise.
21329         * modules/uniwidth/u16-strwidth: Likewise.
21330         * modules/uniwidth/u16-width: Likewise.
21331         * modules/uniwidth/u32-strwidth: Likewise.
21332         * modules/uniwidth/u32-width: Likewise.
21333         * modules/uniwidth/width: Likewise.
21334         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21335         with $(LIBUNISTRING).
21336         * modules/unicase/ignorable-tests: Likewise.
21337         * modules/unicase/locale-language-tests: Likewise.
21338         * modules/unicase/tolower-tests: Likewise.
21339         * modules/unicase/totitle-tests: Likewise.
21340         * modules/unicase/toupper-tests: Likewise.
21341         * modules/unicase/u8-casecmp-tests: Likewise.
21342         * modules/unicase/u8-casecoll-tests: Likewise.
21343         * modules/unicase/u8-casefold-tests: Likewise.
21344         * modules/unicase/u8-is-cased-tests: Likewise.
21345         * modules/unicase/u8-is-casefolded-tests: Likewise.
21346         * modules/unicase/u8-is-lowercase-tests: Likewise.
21347         * modules/unicase/u8-is-titlecase-tests: Likewise.
21348         * modules/unicase/u8-is-uppercase-tests: Likewise.
21349         * modules/unicase/u8-tolower-tests: Likewise.
21350         * modules/unicase/u8-totitle-tests: Likewise.
21351         * modules/unicase/u8-toupper-tests: Likewise.
21352         * modules/unicase/u16-casecmp-tests: Likewise.
21353         * modules/unicase/u16-casecoll-tests: Likewise.
21354         * modules/unicase/u16-casefold-tests: Likewise.
21355         * modules/unicase/u16-is-cased-tests: Likewise.
21356         * modules/unicase/u16-is-casefolded-tests: Likewise.
21357         * modules/unicase/u16-is-lowercase-tests: Likewise.
21358         * modules/unicase/u16-is-titlecase-tests: Likewise.
21359         * modules/unicase/u16-is-uppercase-tests: Likewise.
21360         * modules/unicase/u16-tolower-tests: Likewise.
21361         * modules/unicase/u16-totitle-tests: Likewise.
21362         * modules/unicase/u16-toupper-tests: Likewise.
21363         * modules/unicase/u32-casecmp-tests: Likewise.
21364         * modules/unicase/u32-casecoll-tests: Likewise.
21365         * modules/unicase/u32-casefold-tests: Likewise.
21366         * modules/unicase/u32-is-cased-tests: Likewise.
21367         * modules/unicase/u32-is-casefolded-tests: Likewise.
21368         * modules/unicase/u32-is-lowercase-tests: Likewise.
21369         * modules/unicase/u32-is-titlecase-tests: Likewise.
21370         * modules/unicase/u32-is-uppercase-tests: Likewise.
21371         * modules/unicase/u32-tolower-tests: Likewise.
21372         * modules/unicase/u32-totitle-tests: Likewise.
21373         * modules/unicase/u32-toupper-tests: Likewise.
21374         * modules/unicase/ulc-casecmp-tests: Likewise.
21375         * modules/unicase/ulc-casecoll-tests: Likewise.
21376         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21377         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21378         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21379         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21380         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21381         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21382         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21383         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21384         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21385         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21386         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21387         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21388         * modules/unictype/bidicategory-byname-tests: Likewise.
21389         * modules/unictype/bidicategory-name-tests: Likewise.
21390         * modules/unictype/bidicategory-of-tests: Likewise.
21391         * modules/unictype/bidicategory-test-tests: Likewise.
21392         * modules/unictype/block-list-tests: Likewise.
21393         * modules/unictype/block-of-tests: Likewise.
21394         * modules/unictype/block-test-tests: Likewise.
21395         * modules/unictype/category-C-tests: Likewise.
21396         * modules/unictype/category-Cc-tests: Likewise.
21397         * modules/unictype/category-Cf-tests: Likewise.
21398         * modules/unictype/category-Cn-tests: Likewise.
21399         * modules/unictype/category-Co-tests: Likewise.
21400         * modules/unictype/category-Cs-tests: Likewise.
21401         * modules/unictype/category-L-tests: Likewise.
21402         * modules/unictype/category-Ll-tests: Likewise.
21403         * modules/unictype/category-Lm-tests: Likewise.
21404         * modules/unictype/category-Lo-tests: Likewise.
21405         * modules/unictype/category-Lt-tests: Likewise.
21406         * modules/unictype/category-Lu-tests: Likewise.
21407         * modules/unictype/category-M-tests: Likewise.
21408         * modules/unictype/category-Mc-tests: Likewise.
21409         * modules/unictype/category-Me-tests: Likewise.
21410         * modules/unictype/category-Mn-tests: Likewise.
21411         * modules/unictype/category-N-tests: Likewise.
21412         * modules/unictype/category-Nd-tests: Likewise.
21413         * modules/unictype/category-Nl-tests: Likewise.
21414         * modules/unictype/category-No-tests: Likewise.
21415         * modules/unictype/category-P-tests: Likewise.
21416         * modules/unictype/category-Pc-tests: Likewise.
21417         * modules/unictype/category-Pd-tests: Likewise.
21418         * modules/unictype/category-Pe-tests: Likewise.
21419         * modules/unictype/category-Pf-tests: Likewise.
21420         * modules/unictype/category-Pi-tests: Likewise.
21421         * modules/unictype/category-Po-tests: Likewise.
21422         * modules/unictype/category-Ps-tests: Likewise.
21423         * modules/unictype/category-S-tests: Likewise.
21424         * modules/unictype/category-Sc-tests: Likewise.
21425         * modules/unictype/category-Sk-tests: Likewise.
21426         * modules/unictype/category-Sm-tests: Likewise.
21427         * modules/unictype/category-So-tests: Likewise.
21428         * modules/unictype/category-Z-tests: Likewise.
21429         * modules/unictype/category-Zl-tests: Likewise.
21430         * modules/unictype/category-Zp-tests: Likewise.
21431         * modules/unictype/category-Zs-tests: Likewise.
21432         * modules/unictype/category-and-not-tests: Likewise.
21433         * modules/unictype/category-and-tests: Likewise.
21434         * modules/unictype/category-byname-tests: Likewise.
21435         * modules/unictype/category-name-tests: Likewise.
21436         * modules/unictype/category-none-tests: Likewise.
21437         * modules/unictype/category-of-tests: Likewise.
21438         * modules/unictype/category-or-tests: Likewise.
21439         * modules/unictype/category-test-withtable-tests: Likewise.
21440         * modules/unictype/combining-class-tests: Likewise.
21441         * modules/unictype/ctype-alnum-tests: Likewise.
21442         * modules/unictype/ctype-alpha-tests: Likewise.
21443         * modules/unictype/ctype-blank-tests: Likewise.
21444         * modules/unictype/ctype-cntrl-tests: Likewise.
21445         * modules/unictype/ctype-digit-tests: Likewise.
21446         * modules/unictype/ctype-graph-tests: Likewise.
21447         * modules/unictype/ctype-lower-tests: Likewise.
21448         * modules/unictype/ctype-print-tests: Likewise.
21449         * modules/unictype/ctype-punct-tests: Likewise.
21450         * modules/unictype/ctype-space-tests: Likewise.
21451         * modules/unictype/ctype-upper-tests: Likewise.
21452         * modules/unictype/ctype-xdigit-tests: Likewise.
21453         * modules/unictype/decimal-digit-tests: Likewise.
21454         * modules/unictype/digit-tests: Likewise.
21455         * modules/unictype/mirror-tests: Likewise.
21456         * modules/unictype/numeric-tests: Likewise.
21457         * modules/unictype/property-alphabetic-tests: Likewise.
21458         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21459         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21460         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21461         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21462         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21463         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21464         * modules/unictype/property-bidi-control-tests: Likewise.
21465         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21466         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21467         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21468         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21469         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21470         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21471         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21472         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21473         * modules/unictype/property-bidi-pdf-tests: Likewise.
21474         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21475         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21476         * modules/unictype/property-byname-tests: Likewise.
21477         * modules/unictype/property-combining-tests: Likewise.
21478         * modules/unictype/property-composite-tests: Likewise.
21479         * modules/unictype/property-currency-symbol-tests: Likewise.
21480         * modules/unictype/property-dash-tests: Likewise.
21481         * modules/unictype/property-decimal-digit-tests: Likewise.
21482         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21483         * modules/unictype/property-deprecated-tests: Likewise.
21484         * modules/unictype/property-diacritic-tests: Likewise.
21485         * modules/unictype/property-extender-tests: Likewise.
21486         * modules/unictype/property-format-control-tests: Likewise.
21487         * modules/unictype/property-grapheme-base-tests: Likewise.
21488         * modules/unictype/property-grapheme-extend-tests: Likewise.
21489         * modules/unictype/property-grapheme-link-tests: Likewise.
21490         * modules/unictype/property-hex-digit-tests: Likewise.
21491         * modules/unictype/property-hyphen-tests: Likewise.
21492         * modules/unictype/property-id-continue-tests: Likewise.
21493         * modules/unictype/property-id-start-tests: Likewise.
21494         * modules/unictype/property-ideographic-tests: Likewise.
21495         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21496         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21497         * modules/unictype/property-ignorable-control-tests: Likewise.
21498         * modules/unictype/property-iso-control-tests: Likewise.
21499         * modules/unictype/property-join-control-tests: Likewise.
21500         * modules/unictype/property-left-of-pair-tests: Likewise.
21501         * modules/unictype/property-line-separator-tests: Likewise.
21502         * modules/unictype/property-logical-order-exception-tests: Likewise.
21503         * modules/unictype/property-lowercase-tests: Likewise.
21504         * modules/unictype/property-math-tests: Likewise.
21505         * modules/unictype/property-non-break-tests: Likewise.
21506         * modules/unictype/property-not-a-character-tests: Likewise.
21507         * modules/unictype/property-numeric-tests: Likewise.
21508         * modules/unictype/property-other-alphabetic-tests: Likewise.
21509         * modules/unictype/property-other-default-ignorable-code-point-tests:
21510         Likewise.
21511         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21512         * modules/unictype/property-other-id-continue-tests: Likewise.
21513         * modules/unictype/property-other-id-start-tests: Likewise.
21514         * modules/unictype/property-other-lowercase-tests: Likewise.
21515         * modules/unictype/property-other-math-tests: Likewise.
21516         * modules/unictype/property-other-uppercase-tests: Likewise.
21517         * modules/unictype/property-paired-punctuation-tests: Likewise.
21518         * modules/unictype/property-paragraph-separator-tests: Likewise.
21519         * modules/unictype/property-pattern-syntax-tests: Likewise.
21520         * modules/unictype/property-pattern-white-space-tests: Likewise.
21521         * modules/unictype/property-private-use-tests: Likewise.
21522         * modules/unictype/property-punctuation-tests: Likewise.
21523         * modules/unictype/property-quotation-mark-tests: Likewise.
21524         * modules/unictype/property-radical-tests: Likewise.
21525         * modules/unictype/property-sentence-terminal-tests: Likewise.
21526         * modules/unictype/property-soft-dotted-tests: Likewise.
21527         * modules/unictype/property-space-tests: Likewise.
21528         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21529         * modules/unictype/property-test-tests: Likewise.
21530         * modules/unictype/property-titlecase-tests: Likewise.
21531         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21532         * modules/unictype/property-unified-ideograph-tests: Likewise.
21533         * modules/unictype/property-uppercase-tests: Likewise.
21534         * modules/unictype/property-variation-selector-tests: Likewise.
21535         * modules/unictype/property-white-space-tests: Likewise.
21536         * modules/unictype/property-xid-continue-tests: Likewise.
21537         * modules/unictype/property-xid-start-tests: Likewise.
21538         * modules/unictype/property-zero-width-tests: Likewise.
21539         * modules/unictype/scripts-tests: Likewise.
21540         * modules/unictype/syntax-c-ident-tests: Likewise.
21541         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21542         * modules/unictype/syntax-java-ident-tests: Likewise.
21543         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21544         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21545         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21546         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21547         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21548         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21549         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21550         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21551         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21552         * modules/uniname/uniname-tests: Likewise.
21553         * modules/uninorm/canonical-decomposition-tests: Likewise.
21554         * modules/uninorm/compat-decomposition-tests: Likewise.
21555         * modules/uninorm/composition-tests: Likewise.
21556         * modules/uninorm/decomposing-form-tests: Likewise.
21557         * modules/uninorm/decomposition-tests: Likewise.
21558         * modules/uninorm/filter-tests: Likewise.
21559         * modules/uninorm/nfc-tests: Likewise.
21560         * modules/uninorm/nfd-tests: Likewise.
21561         * modules/uninorm/nfkc-tests: Likewise.
21562         * modules/uninorm/nfkd-tests: Likewise.
21563         * modules/uninorm/u8-normcmp-tests: Likewise.
21564         * modules/uninorm/u8-normcoll-tests: Likewise.
21565         * modules/uninorm/u16-normcmp-tests: Likewise.
21566         * modules/uninorm/u16-normcoll-tests: Likewise.
21567         * modules/uninorm/u32-normcmp-tests: Likewise.
21568         * modules/uninorm/u32-normcoll-tests: Likewise.
21569         * modules/unistdio/u8-asnprintf-tests: Likewise.
21570         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21571         * modules/unistdio/u8-vasprintf-tests: Likewise.
21572         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21573         * modules/unistdio/u8-vsprintf-tests: Likewise.
21574         * modules/unistdio/u16-asnprintf-tests: Likewise.
21575         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21576         * modules/unistdio/u16-vasprintf-tests: Likewise.
21577         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21578         * modules/unistdio/u16-vsprintf-tests: Likewise.
21579         * modules/unistdio/u32-asnprintf-tests: Likewise.
21580         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21581         * modules/unistdio/u32-vasprintf-tests: Likewise.
21582         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21583         * modules/unistdio/u32-vsprintf-tests: Likewise.
21584         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21585         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21586         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21587         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21588         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21589         * modules/unistr/u8-check-tests: Likewise.
21590         * modules/unistr/u8-chr-tests: Likewise.
21591         * modules/unistr/u8-cmp-tests: Likewise.
21592         * modules/unistr/u8-cmp2-tests: Likewise.
21593         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21594         * modules/unistr/u8-cpy-tests: Likewise.
21595         * modules/unistr/u8-mblen-tests: Likewise.
21596         * modules/unistr/u8-mbsnlen-tests: Likewise.
21597         * modules/unistr/u8-mbtouc-tests: Likewise.
21598         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21599         * modules/unistr/u8-mbtoucr-tests: Likewise.
21600         * modules/unistr/u8-move-tests: Likewise.
21601         * modules/unistr/u8-next-tests: Likewise.
21602         * modules/unistr/u8-prev-tests: Likewise.
21603         * modules/unistr/u8-set-tests: Likewise.
21604         * modules/unistr/u8-stpcpy-tests: Likewise.
21605         * modules/unistr/u8-stpncpy-tests: Likewise.
21606         * modules/unistr/u8-strcat-tests: Likewise.
21607         * modules/unistr/u8-strcmp-tests: Likewise.
21608         * modules/unistr/u8-strcoll-tests: Likewise.
21609         * modules/unistr/u8-strcpy-tests: Likewise.
21610         * modules/unistr/u8-strdup-tests: Likewise.
21611         * modules/unistr/u8-strlen-tests: Likewise.
21612         * modules/unistr/u8-strmblen-tests: Likewise.
21613         * modules/unistr/u8-strmbtouc-tests: Likewise.
21614         * modules/unistr/u8-strncat-tests: Likewise.
21615         * modules/unistr/u8-strncmp-tests: Likewise.
21616         * modules/unistr/u8-strncpy-tests: Likewise.
21617         * modules/unistr/u8-strnlen-tests: Likewise.
21618         * modules/unistr/u8-to-u16-tests: Likewise.
21619         * modules/unistr/u8-to-u32-tests: Likewise.
21620         * modules/unistr/u8-uctomb-tests: Likewise.
21621         * modules/unistr/u16-check-tests: Likewise.
21622         * modules/unistr/u16-chr-tests: Likewise.
21623         * modules/unistr/u16-cmp-tests: Likewise.
21624         * modules/unistr/u16-cmp2-tests: Likewise.
21625         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21626         * modules/unistr/u16-cpy-tests: Likewise.
21627         * modules/unistr/u16-mblen-tests: Likewise.
21628         * modules/unistr/u16-mbsnlen-tests: Likewise.
21629         * modules/unistr/u16-mbtouc-tests: Likewise.
21630         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21631         * modules/unistr/u16-mbtoucr-tests: Likewise.
21632         * modules/unistr/u16-move-tests: Likewise.
21633         * modules/unistr/u16-next-tests: Likewise.
21634         * modules/unistr/u16-prev-tests: Likewise.
21635         * modules/unistr/u16-set-tests: Likewise.
21636         * modules/unistr/u16-stpcpy-tests: Likewise.
21637         * modules/unistr/u16-stpncpy-tests: Likewise.
21638         * modules/unistr/u16-strcat-tests: Likewise.
21639         * modules/unistr/u16-strcmp-tests: Likewise.
21640         * modules/unistr/u16-strcoll-tests: Likewise.
21641         * modules/unistr/u16-strcpy-tests: Likewise.
21642         * modules/unistr/u16-strdup-tests: Likewise.
21643         * modules/unistr/u16-strlen-tests: Likewise.
21644         * modules/unistr/u16-strmblen-tests: Likewise.
21645         * modules/unistr/u16-strmbtouc-tests: Likewise.
21646         * modules/unistr/u16-strncat-tests: Likewise.
21647         * modules/unistr/u16-strncmp-tests: Likewise.
21648         * modules/unistr/u16-strncpy-tests: Likewise.
21649         * modules/unistr/u16-strnlen-tests: Likewise.
21650         * modules/unistr/u16-to-u32-tests: Likewise.
21651         * modules/unistr/u16-to-u8-tests: Likewise.
21652         * modules/unistr/u16-uctomb-tests: Likewise.
21653         * modules/unistr/u32-check-tests: Likewise.
21654         * modules/unistr/u32-chr-tests: Likewise.
21655         * modules/unistr/u32-cmp-tests: Likewise.
21656         * modules/unistr/u32-cmp2-tests: Likewise.
21657         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21658         * modules/unistr/u32-cpy-tests: Likewise.
21659         * modules/unistr/u32-mblen-tests: Likewise.
21660         * modules/unistr/u32-mbsnlen-tests: Likewise.
21661         * modules/unistr/u32-mbtouc-tests: Likewise.
21662         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21663         * modules/unistr/u32-mbtoucr-tests: Likewise.
21664         * modules/unistr/u32-move-tests: Likewise.
21665         * modules/unistr/u32-next-tests: Likewise.
21666         * modules/unistr/u32-prev-tests: Likewise.
21667         * modules/unistr/u32-set-tests: Likewise.
21668         * modules/unistr/u32-stpcpy-tests: Likewise.
21669         * modules/unistr/u32-stpncpy-tests: Likewise.
21670         * modules/unistr/u32-strcat-tests: Likewise.
21671         * modules/unistr/u32-strcmp-tests: Likewise.
21672         * modules/unistr/u32-strcoll-tests: Likewise.
21673         * modules/unistr/u32-strcpy-tests: Likewise.
21674         * modules/unistr/u32-strdup-tests: Likewise.
21675         * modules/unistr/u32-strlen-tests: Likewise.
21676         * modules/unistr/u32-strmblen-tests: Likewise.
21677         * modules/unistr/u32-strmbtouc-tests: Likewise.
21678         * modules/unistr/u32-strncat-tests: Likewise.
21679         * modules/unistr/u32-strncmp-tests: Likewise.
21680         * modules/unistr/u32-strncpy-tests: Likewise.
21681         * modules/unistr/u32-strnlen-tests: Likewise.
21682         * modules/unistr/u32-to-u16-tests: Likewise.
21683         * modules/unistr/u32-to-u8-tests: Likewise.
21684         * modules/unistr/u32-uctomb-tests: Likewise.
21685         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21686         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21687         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21688         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21689         * modules/uniwidth/u8-strwidth-tests: Likewise.
21690         * modules/uniwidth/u8-width-tests: Likewise.
21691         * modules/uniwidth/u16-strwidth-tests: Likewise.
21692         * modules/uniwidth/u16-width-tests: Likewise.
21693         * modules/uniwidth/u32-strwidth-tests: Likewise.
21694         * modules/uniwidth/u32-width-tests: Likewise.
21695         * modules/uniwidth/width-tests: Likewise.
21696
21697 2010-05-18  Richard Jones  <rjones@redhat.com>
21698
21699         doc: users.txt: list hivex
21700         * users.txt: Add hivex.
21701
21702 2010-05-18  Richard Jones  <rjones@redhat.com>
21703
21704         doc: users.txt: list febootstrap
21705         * users.txt: Add febootstrap.
21706
21707 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21708
21709         bootstrap: fix an error when gnulib is not used as a git submodule
21710         * build-aux/bootstrap (gnulib_path): If its length is zero then
21711         assign "gnulib" to it.
21712         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21713
21714 2010-05-16  Bruno Haible  <bruno@clisp.org>
21715
21716         Avoid autoconf warnings about AM_ICONV.
21717         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21718         2.64.
21719
21720 2010-05-16  Bruno Haible  <bruno@clisp.org>
21721
21722         absolute-header: Make the macro usable in more situations.
21723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21724         from gl_ABSOLUTE_HEADER.
21725         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21726
21727 2010-05-16  James Youngman  <jay@gnu.org>
21728
21729         doc: update users.txt
21730         * users.txt: Add CSSC.
21731
21732 2010-05-16  Jim Meyering  <meyering@redhat.com>
21733
21734         init.sh: fix an error in the previous change; add more comments
21735         * tests/init.sh: Compare exit code in loop against 9, not 2.
21736         Patch by Bruno Haible.
21737         Make the two tests more similar by adding an empty "then" clause.
21738         Add comments.
21739
21740         init.sh: avoid unnecessary shell re-exec
21741         * tests/init.sh: Improve the re-exec-required check to first test the
21742         current shell.  If it passes the test, do not search for a shell that
21743         does pass, and do not re-exec.  This test is particularly contorted to
21744         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21745         of $(...) evokes a syntax error and causes immediate shell exit with
21746         status 2.  Bruno Haible reported that the re-exec made it impossible
21747         to single-step through any init.sh-using script.
21748
21749 2010-05-16  Bruno Haible  <bruno@clisp.org>
21750
21751         Fix collision between gnulib's and libintl's printf replacements.
21752         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21753         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21754         (printf): When using GNU C, map the __printf__ function to rpl_printf
21755         via __asm__. When not using GNU C, define rpl_printf instead of
21756         __printf__.
21757         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21758         commit.
21759         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21760         commit.
21761         * m4/asm-underscore.m4: New file.
21762         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21763         * modules/stdio (Files): Add m4/asm-underscore.m4.
21764         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21765         Reported by Ben Pfaff.
21766
21767 2010-05-16  Bruno Haible  <bruno@clisp.org>
21768
21769         verify: Avoid skipping the test on openSUSE 11.0.
21770         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21771
21772 2010-05-13  Bruno Haible  <bruno@clisp.org>
21773
21774         Avoid useless warnings from G++.
21775         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21776         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21777         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21778
21779 2010-05-11  Jim Meyering  <meyering@redhat.com>
21780
21781         maint.mk: tweak preceding change
21782         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21783         regexps tighter by anchoring at EOL, and make the new group "shy"
21784         for slightly decreased overhead.
21785
21786 2010-05-11  Eric Blake  <eblake@redhat.com>
21787
21788         maint.mk: gnulib doesn't guarantee NSIG
21789         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21790
21791 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21792
21793         test-pwrite.c: Remove unused variable declaration.
21794         * tests/test-pwrite.c (main): Remove read_buf declaration.
21795
21796         Remove useless test-pwrite.sh file.
21797         * tests/test-pwrite.sh: Delete file.
21798         * modules/pwrite-tests: Remove references.
21799         Reported by Bruno Haible.
21800
21801 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21802
21803         init.sh: fix a typo
21804         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21805
21806 2010-05-10  Jim Meyering  <meyering@redhat.com>
21807
21808         maint.mk: avoid using a temporary file in the always-defined-macros check
21809         * top/maint.mk (.re-defmac): Remove rule.
21810         (gl_trap_): Remove definition.
21811         (sc_prohibit_always-defined_macros): Rewrite not to create and
21812         depend on a temporary file.  Instead, depend on GNU grep's ability
21813         to read a list of regular expressions from stdin when given "-f -".
21814
21815 2010-05-09  Bruno Haible  <bruno@clisp.org>
21816
21817         Update to GNU gettext 0.18, part 1.
21818         * m4/gettext.m4: Update to GNU gettext 0.18.
21819         * m4/intl.m4: Likewise.
21820         * m4/po.m4: Likewise.
21821         * modules/gettext (Files): Add m4/fcntl-o.m4.
21822         (configure.ac): Require gettext infrastructure from version 0.18.
21823
21824 2010-05-09  Jim Meyering  <meyering@redhat.com>
21825
21826         init.sh: enable MALLOC_PERTURB_
21827         * tests/init.sh: Enable glibc's malloc-perturbing option.
21828
21829         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21830         With my recent change in init.sh from the two-line form:
21831             -#   : ${srcdir=.}
21832             -#   . "$srcdir/init.sh"; path_prepend_ .
21833             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21834         I noticed that using the one-line form would cause this test
21835         to fail with a false-positive, or to stop working altogether,
21836         depending on whether help-version changed or all the tests did.
21837         * top/maint.mk (_hv_regex): Remove this definition.
21838         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21839         (_hv_regex_strong): Use a stronger regex to check for conformance.
21840         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21841         Give a separate diagnostic for lack of conforming use.
21842
21843         maint.mk: prohibit definition of symbols defined by gnulib
21844         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21845         definition of symbols defined by gnulib.
21846
21847 2010-05-09  Bruno Haible  <bruno@clisp.org>
21848
21849         acl: Avoid test failure on Cygwin-hosted mingw.
21850         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21851
21852 2010-05-09  Bruno Haible  <bruno@clisp.org>
21853
21854         error: Use system's fcntl function.
21855         * lib/error.c (fcntl): Undefine.
21856
21857 2010-05-09  Jim Meyering  <meyering@redhat.com>
21858
21859         verify: adjust formatting to be more consistent
21860         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21861         argument-list '('s, and after one comma.
21862
21863 2010-05-09  Bruno Haible  <bruno@clisp.org>
21864
21865         error: More reliable output on mingw.
21866         * lib/error.c: Include <windows.h>.
21867         (is_open): New function.
21868         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21869         defined.
21870
21871 2010-05-09  Bruno Haible  <bruno@clisp.org>
21872
21873         vasnprintf: Fix syntax errors in libintl build on mingw.
21874         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21875         pad_ourselves and prec_ourselves after use.
21876
21877 2010-05-08  Bruno Haible  <bruno@clisp.org>
21878
21879         * lib/config.charset: Update comments for Cygwin 1.7.
21880         * lib/localcharset.c: Likewise.
21881
21882 2010-05-07  Jim Meyering  <meyering@redhat.com>
21883
21884         init.sh: improve comments
21885         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21886         . "${srcdir=.}/init.sh"; path_prepend_ .
21887         Add a note about path_prepend_ and the alternative of using
21888         TESTS_ENVIRONMENT.
21889
21890 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21891
21892         exclude: Unescape hashed patterns in wildcard mode.
21893         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21894         to the hash list.
21895         * tests/test-exclude8.sh: New test case.
21896         * modules/exclude-tests: Add new test.
21897
21898 2010-05-05  Eric Blake  <eblake@redhat.com>
21899
21900         verify: automate tests
21901         * modules/verify-tests: New module.
21902         * tests/test-verify.sh: New file.
21903         * tests/test-verify.c: Guard each negative test with a unique id.
21904         Also avoid warning about unused left hand of comma expressions.
21905
21906 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21907
21908         Further improvements to verify.h, suggested by Eric Blake.
21909         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21910         the GL_* versions, to avoid collision with OpenGL.
21911         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21912         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21913         than testing merely whether it's defined.
21914
21915         Modify verify.h to pacify gcc -Wredundant_decls.
21916         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21917         These use the prefix "GL_" since they're likely to be useful elsewhere.
21918         We may need to break them out into a different .h file.
21919         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21920         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21921         of verify_function__.
21922
21923 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21924
21925         Tests for module pwrite.
21926         * modules/pwrite-tests: New file.
21927         * tests/test-pwrite.sh: New file.
21928         * tests/test-pwrite.c: New file.
21929
21930         New module pwrite.
21931         * lib/unistd.in.h (pwrite): New declaration.
21932         * lib/pwrite.c: New file, from glibc with modifications.
21933         * m4/pwrite.m4: New file.
21934         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21935         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21936         REPLACE_PWRITE.
21937         * modules/pwrite: New file.
21938         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21939         REPLACE_PWRITE.
21940         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21941         * doc/posix-functions/pwrite.texi: Mention the new module.
21942
21943 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21944
21945         pread: Update documentation.
21946         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21947
21948 2010-05-04  Eric Blake  <eblake@redhat.com>
21949
21950         docs: update cygwin progress
21951         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21952         this bug.
21953         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21954         Added in cygwin 1.7.2.
21955         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21956         Likewise.
21957         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21958         Likewise.
21959         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21960         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21961         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21962         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21963         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21964         Mention nproc module.
21965         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21966         bug in cygwin 1.7.5 addition.
21967         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21968         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21969         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21970         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21971         1.7.5.
21972         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21973         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21974         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21975         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21976         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21977         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21978         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21979         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21980         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21981         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21982         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21983         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21984         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21985         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21986         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21987         Likewise.
21988         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21989         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21990         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21991         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21992         Likewise.
21993         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21994         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21995         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21996         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21997         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21998         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21999         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22000         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22001         Likewise.
22002         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22003         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22004         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22005         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22006         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22007         Likewise.
22008         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22009         Likewise.
22010         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22011         Likewise.
22012         * doc/glibc-functions/xdrrec_endofrecord.texi
22013         (xdrrec_endofrecord): Likewise.
22014         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22015         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22016         Likewise.
22017         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22018         Likewise.
22019
22020 2010-05-04  Jim Meyering  <meyering@redhat.com>
22021
22022         gendocs.sh: make its "-s FILE" option more useful
22023         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22024         $PACKAGE to reflect the probably-different basename of "FILE".
22025
22026 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22027
22028         bootstrap: don't ignore download_po_files failure
22029         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22030         failure.
22031
22032 2010-05-03  Jim Meyering  <meyering@redhat.com>
22033
22034         maint.mk: allow to pass options to gendocs.sh
22035         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22036         (gendocs_options_): New overridable variable.
22037
22038         gnu-web-doc-update: don't ignore configure or build failure
22039         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22040
22041         announce-gen: backslash-escape '@'s in --help output
22042         * build-aux/announce-gen: Fix syntax errors.
22043
22044         maint.mk, announce-gen: allow project-specific announcement mail headers
22045         * top/maint.mk (translation_project_): Define default.
22046         (announcement_Cc_, announcement_mail_headers_): Likewise.
22047         (announcement): Invoke announce-gen with new --mail-headers option.
22048         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22049
22050         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22051         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22052         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22053         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22054         line in the "err2" output file when running "make check" in verbose
22055         mode (i.e., with set -x enabled).
22056
22057 2010-05-03  Bruno Haible  <bruno@clisp.org>
22058
22059         wctob: Fix for weird platforms.
22060         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22061         argument value.
22062
22063 2010-05-03  Jim Meyering  <meyering@redhat.com>
22064
22065         maint.mk: prohibit unwarranted use of <strings.h>
22066         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22067         strings.h in a file that does not also use strcasecmp, strncasecmp,
22068         ffs or ffsll.
22069
22070         maint.mk: remove obsolete comments
22071         * top/maint.mk: Remove stale, commented-out rules.
22072
22073 2010-05-02  Bruno Haible  <bruno@clisp.org>
22074
22075         wcwidth: Declare also when it's aliased.
22076         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22077         macro.
22078
22079 2010-05-02  Bruno Haible  <bruno@clisp.org>
22080
22081         Fix regression from 2010-04-25.
22082         * gnulib-tool (func_modules_transitive_closure): Check the status of
22083         all modules, not only of the tests that are of the form foo-tests where
22084         foo is a module.
22085
22086 2010-05-02  Bruno Haible  <bruno@clisp.org>
22087
22088         wctob: Work around nasty Cygwin 1.7.2 bug.
22089         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22090         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22091
22092 2010-05-01  Bruno Haible  <bruno@clisp.org>
22093
22094         fpurge: Sharper test.
22095         * tests/test-fpurge.c (main): Add one more ftell check.
22096         * modules/fpurge-tests (Depends-on): Add ftell.
22097         Suggested by Eric Blake.
22098
22099 2010-05-01  Bruno Haible  <bruno@clisp.org>
22100
22101         ftello: Another test.
22102         * tests/test-ftello3.c: New file.
22103         * modules/ftello-tests (Files): Add it.
22104         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22105         MOSTLYCLEANFILES.
22106
22107         ftell: Another test.
22108         * tests/test-ftell3.c: New file.
22109         * modules/ftell-tests (Files): Add it.
22110         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22111         MOSTLYCLEANFILES.
22112
22113 2010-05-01  Bruno Haible  <bruno@clisp.org>
22114
22115         ftell, ftello: Work around Solaris bug.
22116         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22117         * lib/ftello.c: Include stdio-impl.h.
22118         (ftello): On Solaris, when _IOWRT is set, compute the result without
22119         looking at _IOREAD.
22120         * modules/ftello (Files): Add lib/stdio-impl.h.
22121         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22122         * doc/posix-functions/ftello.texi: Likewise.
22123         Reported by Eric Blake.
22124
22125 2010-05-01  Bruno Haible  <bruno@clisp.org>
22126
22127         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22128         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22129         the _IOWRT flag is also set.
22130
22131 2010-05-01  Bruno Haible  <bruno@clisp.org>
22132
22133         Fix doc about a HP-UX stdio bug.
22134         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22135         * doc/posix-functions/ftello.texi: Likewise.
22136
22137 2010-05-01  Bruno Haible  <bruno@clisp.org>
22138
22139         lseek test: Fix failure on Solaris.
22140         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22141         output.
22142
22143 2010-04-30  Jim Meyering  <meyering@redhat.com>
22144
22145         bootstrap: don't ignore failure to generate po*/Makevars
22146         * build-aux/bootstrap (with_gettext): Don't ignore failure
22147         to create po/Makevars or runtime-po/Makevars.
22148
22149 2010-04-29  Eric Blake  <eblake@redhat.com>
22150
22151         headers: relax license to LGPLv2+
22152         * modules/fcntl-h (License): Relax license.
22153         * modules/getopt-posix (License): Likewise.
22154         * modules/locale (License): Likewise.
22155         * modules/math (License): Likewise.
22156         * modules/pty (License): Likewise.
22157         * modules/sched (License): Likewise.
22158         * modules/search (License): Likewise.
22159         * modules/spawn (License): Likewise.
22160         * modules/stdarg (License): Likewise.
22161         * modules/sysexits (License): Likewise.
22162
22163 2010-04-29  Jim Meyering  <meyering@redhat.com>
22164
22165         inttypes: relax license to LGPLv2+
22166         * modules/inttypes (License): Relax license.
22167
22168 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22169
22170         * top/maint.mk (indent): Run twice to produce idempotent results.
22171
22172 2010-04-28  Bruno Haible  <bruno@clisp.org>
22173
22174         getdate: Generate getdate.c in the source directory.
22175         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22176         MOSTLYCLEANFILES.
22177         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22178
22179 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22180
22181         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22182         is not declared as a const *; avoid warnings in that case.
22183
22184 2010-04-28  Eric Blake  <eblake@redhat.com>
22185
22186         canonicalize-lgpl: avoid compiler warning
22187         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22188         declaration' / 'extraneous semicolon' warning with some compilers.
22189         Reported by Andreas Gruenbacher.
22190
22191 2010-04-28  Jim Meyering  <meyering@redhat.com>
22192
22193         init.sh: ensure a more reliable exit status when exiting via trap
22194         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22195         Inspired by patches from Dmitry V. Levin.
22196         Also trap on signal 3 (SIGQUIT).
22197
22198 2010-04-27  Bruno Haible  <bruno@clisp.org>
22199
22200         Update doc about utimes().
22201         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22202         'utimens' module.
22203         Reported by Andreas Gruenbacher <agruen@suse.de>.
22204
22205 2010-04-27  Eric Blake  <eblake@redhat.com>
22206
22207         full-read, full-write: relax license
22208         * modules/full-read (License): Drop to LGPLv2+.
22209         * modules/full-write (License): Likewise.
22210         * modules/safe-read (License): Likewise.
22211         * modules/safe-write (License): Likewise.
22212
22213         pthread: mention library for linking
22214         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22215
22216 2010-04-27  Jim Meyering  <meyering@redhat.com>
22217
22218         maint.mk: fix a bug introduced in last change
22219         * top/maint.mk (gl_assured_headers_): Now that all names are on
22220         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22221         is not anchored to end of word, it should be adequate.
22222
22223         maint.mk: avoid side-effect in latest syntax-check
22224         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22225         to run commands via $(shell...), and hence to incur cost only when
22226         the new rule is actually run.
22227
22228         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22229         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22230         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22231         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22232         (gl_assured_headers_, az_, AZ_): Define.
22233         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22234
22235 2010-04-26  Jim Meyering  <jim@meyering.net>
22236             Bruno Haible  <bruno@clisp.org>
22237
22238         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22239         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22240         Prompted by an exchange with Gilles Espinasse.
22241
22242 2010-04-26  Jim Meyering  <meyering@redhat.com>
22243
22244         git-version-gen: aesthetic tweak
22245         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22246         so that the command remains on a single line.
22247
22248 2010-04-26  Eric Blake  <eblake@redhat.com>
22249
22250         git-version-gen: allow use on EBCDIC hosts
22251         * build-aux/git-version-gen (dirty): Use literal rather than tying
22252         ourselves to ascii.
22253         Reported by Steve Goetze.
22254
22255 2010-04-25  Bruno Haible  <bruno@clisp.org>
22256
22257         netdb: Add support for GNULIB_POSIXCHECK.
22258         * lib/netdb.in.h: Include warn-on-use.h.
22259         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22260         functions are used when GNULIB_POSIXCHECK is defined and the
22261         getaddrinfo module is not in use.
22262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22263         freeaddrinfo, gai_strerror, getnameinfo are declared.
22264         * modules/netdb (Depends-on): Add warn-on-use.
22265         (Makefile.am): Include warn-on-use.h in netdb.h.
22266
22267 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22268
22269         build: avoid "make check" failure without .git/ directory
22270         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22271         there is no .git/ directory.
22272
22273 2010-04-25  Bruno Haible  <bruno@clisp.org>
22274
22275         ptsname: Fix misuse of ttyname_r.
22276         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22277         of errno.
22278
22279 2010-04-25  Bruno Haible  <bruno@clisp.org>
22280
22281         ttyname_r: Make it work on Solaris 10.
22282         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22283         if the system function has the POSIX declaration. Test whether the
22284         function fails if the buffer is less than 128 bytes large.
22285         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22286         system's ttyname_r function. Provide a reasonably large buffer.
22287         * modules/ttyname_r (Depends-on): Add extensions.
22288         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22289
22290 2010-04-25  Bruno Haible  <bruno@clisp.org>
22291
22292         Use the 'extensions' module for some more functions on Solaris.
22293         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22294         module.
22295         * doc/posix-functions/ctime_r.texi: Likewise.
22296         * doc/posix-functions/getgrgid_r.texi: Likewise.
22297         * doc/posix-functions/getgrnam_r.texi: Likewise.
22298         * doc/posix-functions/getpwnam_r.texi: Likewise.
22299         * doc/posix-functions/getpwuid_r.texi: Likewise.
22300         * doc/posix-functions/readdir_r.texi: Likewise.
22301         * doc/posix-functions/sigwait.texi: Likewise.
22302         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22303         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22304
22305 2010-04-25  Bruno Haible  <bruno@clisp.org>
22306
22307         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22308         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22309         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22310         * lib/ttyname_r.c: Include <limits.h>.
22311         (ttyname_r): Define using the system's ttyname_r function, if it exists
22312         and not on Solaris.
22313         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22314         set.
22315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22316         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22317         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22318         Reported by Simon Josefsson.
22319
22320 2010-04-25  Bruno Haible  <bruno@clisp.org>
22321
22322         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22323         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22324         * doc/posix-functions/ctime_r.texi: Likewise.
22325         * doc/posix-functions/getgrgid_r.texi: Likewise.
22326         * doc/posix-functions/getgrnam_r.texi: Likewise.
22327         * doc/posix-functions/getlogin_r.texi: Likewise.
22328         * doc/posix-functions/getpwnam_r.texi: Likewise.
22329         * doc/posix-functions/getpwuid_r.texi: Likewise.
22330         * doc/posix-functions/readdir_r.texi: Likewise.
22331         * doc/posix-functions/sigwait.texi: Likewise.
22332         * doc/posix-functions/ttyname_r.texi: Likewise.
22333         Reported by Simon Josefsson.
22334
22335 2010-04-25  Bruno Haible  <bruno@clisp.org>
22336
22337         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22338         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22339         also to --create-testdir.
22340         (func_acceptable): Don't consider the status of *-tests modules here.
22341         (func_modules_transitive_closure): Consider it here, before including a
22342         test module.
22343         (func_import, func_create_testdir): Set inc_all_direct_tests,
22344         inc_all_indirect_tests.
22345         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22346         --create-testdir and --create-megatestdir.
22347
22348 2010-04-25  Bruno Haible  <bruno@clisp.org>
22349
22350         gnulib-tool: Add --without-*-tests options.
22351         * gnulib-tool (func_usage): Document the --without-*-tests options.
22352         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22353         excl_unportable_tests): New variables.
22354         Fail if they are specified with --import or --update.
22355         (func_acceptable): Respect the excl_*_tests variables.
22356         (func_import): Set the excl_*_tests variables to empty.
22357
22358 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22359             Bruno Haible  <bruno@clisp.org>
22360
22361         Work around a MacOS X 10.4 bug with openpty.
22362         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22363         * tests/test-openpty.c (main): Close the master side explicitly.
22364
22365 2010-04-25  Bruno Haible  <bruno@clisp.org>
22366
22367         strnlen: Fix a C++ test error on MacOS X and Solaris.
22368         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22369         the function is not declared.
22370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22371         Simon Josefsson.
22372
22373 2010-04-24  Bruno Haible  <bruno@clisp.org>
22374
22375         Avoid a gcc warning.
22376         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22377         of correct type for %08lx directive.
22378         Reported by Eric Blake.
22379
22380 2010-04-24  Bruno Haible  <bruno@clisp.org>
22381
22382         vasnprintf: Correct errno value in case of out-of-memory.
22383         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22384         or sprintf. Use the errno value from SNPRINTF or sprintf.
22385         Reported by Ian Beckwith <ianb@erislabs.net>.
22386
22387 2010-04-24  Bruno Haible  <bruno@clisp.org>
22388
22389         ansi-c++-opt: Find correct compiler when cross-compiling.
22390         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22391         AC_CHECK_PROGS.
22392         Reported by Simon Josefsson.
22393
22394 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22395
22396         vc-list-files: Add support for subversion
22397         * build-aux/vc-list-files: Use "svn list" to generate the list of
22398         files controlled by subversion.
22399
22400 2010-04-23  Jim Meyering  <meyering@redhat.com>
22401
22402         vc-list-files tests: convert to use init.sh
22403         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22404         path_prepend_.
22405         Use Exit, not exit.
22406         Use skip_ rather than open coding it.
22407         Remove trap set-up and compare definitions.
22408         * tests/test-vc-list-files-git.sh: Likewise.
22409         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22410
22411 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22412
22413         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22414         backup files.
22415
22416 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22417
22418         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22419
22420 2010-04-20  Eric Blake  <eblake@redhat.com>
22421
22422         tests: be robust to ignored SIGPIPE
22423         * tests/test-select-in.sh: Consume all output.
22424         * tests/test-lseek.sh: Check correct exit status, while avoiding
22425         EPIPE.
22426
22427 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22428             Bruno Haible  <bruno@clisp.org>
22429
22430         visibility: Don't use -fvisibility if it leads to a warning.
22431         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22432         yes, don't pretend that visibility works if it leads to a warning.
22433         Reported by Mike Gran <spk121@yahoo.com>.
22434
22435 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22436
22437         * build-aux/bootstrap: Use "git -h" for testing for supported options
22438         instead of "git --help".  The short-form option only shows a summary,
22439         and doesn't layout the full man page.  Grep for the full option name
22440         in the summary, too.
22441
22442 2010-04-19  Bruno Haible  <bruno@clisp.org>
22443
22444         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22445         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22446         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22447         mention of RELOCATABLE_STRIP.
22448         Reported by Sylvain Beucler <beuc@beuc.net>.
22449
22450 2010-04-19  Bruno Haible  <bruno@clisp.org>
22451
22452         * lib/diffseq.h: Fix typo in comment.
22453         Reported by Eric Blake.
22454
22455 2010-04-19  Bruno Haible  <bruno@clisp.org>
22456
22457         ioctl: Move autoconf macro to a .m4 file.
22458         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22459         * modules/ioctl (Files): Add it.
22460         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22461         Reported by Ian Beckwith <ianb@erislabs.net>.
22462
22463 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22464             Bruno Haible  <bruno@clisp.org>
22465
22466         diffseq: Accommodate use-case with abstract arrays.
22467         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22468         is not defined.
22469         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22470         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22471
22472 2010-04-18  Bruno Haible  <bruno@clisp.org>
22473
22474         * doc/posix-headers/stdbool.texi: More precise wording.
22475
22476 2010-04-17  Jim Meyering  <meyering@redhat.com>
22477
22478         maint.mk: use gnu-style indentation in an embedded perl script
22479         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22480         Rename variable: s/two/last_two_bytes/
22481
22482 2010-04-16  Eric Blake  <eblake@redhat.com>
22483
22484         test-stdbool: skip test that fails with Solaris CC
22485         * tests/test-stdbool.c (f): Skip test that causes compilation
22486         error under buggy C++ compiler.
22487         * lib/stdbool.in.h: Document the limitation.
22488         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22489
22490         setenv: allow compilation with C++
22491         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22492         register keyword.
22493
22494         stdint: allow test to pass with C++
22495         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22496
22497         getopt: allow compilation with C++
22498         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22499         struct.
22500         * lib/getopt.c (_getopt_internal_r): Use correct type.
22501         Reported by Dagobert Michelson, via Joel E. Denny.
22502
22503 2010-04-16  Bruno Haible  <bruno@clisp.org>
22504
22505         Override netdb.h always.
22506         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22507         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22508         Reported by Ludovic Courtès <ludo@gnu.org>.
22509
22510 2010-04-15  Bruno Haible  <bruno@clisp.org>
22511
22512         openpty: Fix mistake from 2010-03-21.
22513         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22514         Reported by Simon Josefsson.
22515
22516 2010-04-15  Eric Blake  <eblake@redhat.com>
22517
22518         test-forkpty: fix expected signature
22519         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22520         Reported by Simon Josefsson.
22521
22522 2010-04-15  Jim Meyering  <meyering@redhat.com>
22523
22524         maint.mk: texinfo_suffix_re_: correct the default regexp
22525         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22526
22527         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22528         make it configurable via texinfo_suffix_re_.
22529
22530 2010-04-14  Eric Blake  <eblake@redhat.com>
22531
22532         strtok_r: relax license to LGPLv2+
22533         * modules/strtok_r (License): Relax license.
22534         Reported by Matthias Bolte.
22535
22536 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22537
22538         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22539         version 1.4.4 by default instead of requiring the libgcrypt
22540         version used during build.  This makes it possible to use the
22541         application with older but still binary compatible libgcrypt
22542         versions.
22543
22544 2010-04-13  Eric Blake  <eblake@redhat.com>
22545
22546         getopt-gnu: match recent glibc fixes and posix ruling
22547         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22548         '+' handling, when requesting extensions.
22549         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22550         'W;' handling.
22551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22552         * doc/posix-functions/getopt.texi (getopt): Document this.
22553         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22554         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22555         Likewise.
22556
22557         getopt: merge bug fixes from glibc
22558         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22559         diagnostics.  Honor '+:' correctly.  Reject ';'.
22560
22561         getopt-posix: detect MacOS bug
22562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22563         optind when missing a required argument.
22564         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22565         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22566         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22567         Likewise.
22568
22569         getopt-posix: avoid spurious failure on Solaris
22570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22571         an indicator that setting optind=1 is sufficient for reset.
22572
22573         getopt-posix: avoid spurious failure on FreeBSD
22574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22575         in POSIX mode, since the m4 test uses it.
22576
22577         gnulib-tool: silence warning on BSD sh
22578         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22579
22580 2010-04-13  Jim Meyering  <meyering@redhat.com>
22581
22582         doc: users.txt: GNU patch now uses gnulib
22583         * users.txt: Add patch.
22584
22585 2010-04-12  Jim Meyering  <meyering@redhat.com>
22586
22587         maint.mk: generate more concise timing data for syntax-check rules
22588         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22589         " done" from each line that reports a syntax-check test duration.
22590
22591 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22592
22593         git-version-gen: use "git update-index..." rather than "git status"
22594         * build-aux/git-version-gen: Use git update-index --refresh, not
22595         "git status".  With some versions of git, "git status" would fail
22596         to update the index and result in an unwarranted "-dirty" suffix.
22597
22598 2010-04-11  Jim Meyering  <meyering@redhat.com>
22599
22600         openat: correct formatting (no semantic change)
22601         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22602         Suggested by Bruno Haible.
22603
22604 2010-04-11  Bruno Haible  <bruno@clisp.org>
22605
22606         Stricter declaration checking in testdirs.
22607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22608         If for_tests is true, augment AM_CPPFLAGS to define
22609         GNULIB_STRICT_CHECKING.
22610         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22611         GNULIB_STRICT_CHECKING is defined, verify that the function is
22612         declared.
22613
22614 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22615             Bruno Haible  <bruno@clisp.org>
22616
22617         libunistring: Improve configure output.
22618         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22619         Don't say "consider installing GNU libunistring" when checking again
22620         with libiconv.
22621
22622 2010-04-11  Bruno Haible  <bruno@clisp.org>
22623
22624         libunistring: Correct value of $LTLIBUNISTRING.
22625         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22626         correct the value of $LTLIBUNISTRING.
22627
22628 2010-04-11  Bruno Haible  <bruno@clisp.org>
22629
22630         havelib: Add static libraries to LIBS in the right order.
22631         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22632         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22633
22634 2010-04-11  Bruno Haible  <bruno@clisp.org>
22635
22636         libunistring: Detect libunistring also when it depends on libiconv.
22637         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22638         the second AC_LIB_HAVE_LINKFLAGS invocation.
22639
22640 2010-04-11  James Youngman  <jay@gnu.org>
22641
22642         close-stream: declare local scalars to be "const"
22643         * lib/close-stream.c (close_stream): Make boolean variables const
22644         to document the fact that we set but do not change them.
22645
22646 2010-04-11  Bruno Haible  <bruno@clisp.org>
22647
22648         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22649
22650 2010-04-11  Jim Meyering  <meyering@redhat.com>
22651
22652         maint.mk: don't include dist-check.mk
22653         * top/maint.mk: Remove bogus include directive.
22654
22655         maint.mk: improve empty-line-at-EOF check
22656         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22657         solution, rather than tail+Perl-based one.  The latter would read
22658         a few kilobytes from the end of each file, and did not handle empty
22659         files properly.
22660
22661         maint.mk: print the elapsed time for each syntax-check rule
22662         * top/maint.mk (sc_m_rules_): Save start time in a file.
22663         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22664         (local-check): Interpose the .z rules
22665
22666 2010-04-11  Jim Meyering  <meyering@redhat.com>
22667
22668         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22669         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22670         empty file with one that ends in an empty line.
22671
22672 2010-04-10  Bruno Haible  <bruno@clisp.org>
22673
22674         mkdir: Make it work on mingw64.
22675         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22676         * lib/mkdir.c: Update comment.
22677         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22678
22679 2010-04-10  Bruno Haible  <bruno@clisp.org>
22680
22681         Don't override improved macro from newer autoconf.
22682         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22683         autoconf >= 2.62.
22684         Reported by Joel E. Denny <jdenny@clemson.edu>.
22685
22686 2010-04-10  Jim Meyering  <meyering@redhat.com>
22687
22688         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22689         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22690
22691         maint.mk: correct a diagnostic
22692         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22693         in diagnostic; now use $prohibit.
22694
22695 2010-04-10  Bruno Haible  <address@hidden>
22696
22697         fchownat: Fix a C++ test error on Solaris 8.
22698         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22699         the function does not exist.
22700
22701 2010-04-10  Bruno Haible  <bruno@clisp.org>
22702
22703         vasnprintf: Add more tests.
22704         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22705         (test_function): Test converting an invalid wide string.
22706
22707         vasnprintf: Correct handling of unconvertible wide string arguments.
22708         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22709         VASNPRINTF.
22710         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22711         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22712         smaller than the expected maximum need for the directive. Set errno to
22713         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22714         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22716         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22717         * modules/vasnprintf (Files): Add m4/printf.m4.
22718         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22719
22720 2010-04-10  Bruno Haible  <bruno@clisp.org>
22721
22722         vasnprintf: Fix crash in %ls directive.
22723         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22724         string is passed as argument to %ls, with no precision and no width.
22725         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22726
22727 2010-04-10  Bruno Haible  <bruno@clisp.org>
22728
22729         vasnprintf: Fix multiple test failures on mingw.
22730         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22731         _snprintf, or snwprintf, not _snwprintf.
22732
22733 2010-04-10  Bruno Haible  <bruno@clisp.org>
22734
22735         write: Fix a C++ test error on mingw.
22736         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22737
22738 2010-04-10  Bruno Haible  <bruno@clisp.org>
22739
22740         vasnprintf test: Reduce code duplication.
22741         * tests/test-vasnprintf.c (test_function): New function, extracted from
22742         test_vasnprintf.
22743         (test_vasnprintf, test_asnprintf): Invoke it.
22744
22745 2010-04-10  Bruno Haible  <bruno@clisp.org>
22746
22747         strnlen: Fix warning in C++ mode on MacOS X.
22748         * lib/string.in.h (strnlen): Use the modern idiom.
22749         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22750         defining strnlen as a macro already in <config.h>.
22751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22752         REPLACE_STRNLEN.
22753         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22754         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22755
22756 2010-04-08  James Youngman  <jay@gnu.org>
22757
22758         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22759         the example.
22760
22761 2010-04-09  Jim Meyering  <meyering@redhat.com>
22762
22763         maint.mk: print better diagnostic when there is no $(_hv_file)
22764         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22765         announce that when $(_hv_file) (aka help-version) does not exist.
22766
22767         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22768         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22769         not try to interpret its random input bytes.  Jarno Rajahalme reported
22770         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22771         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22772         (mktempd_): Likewise, just in case.
22773
22774         ftruncate: add two years to projected module removal date: 2012
22775         * m4/ftruncate.m4: Adjust comments.
22776
22777         ftruncate: mark module as obsolete; even MinGW provides it, now
22778         * modules/ftruncate (Status): Obsolete.
22779         (Notice): Say that.
22780         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22782
22783 2010-04-08  Bruno Haible  <bruno@clisp.org>
22784
22785         Fix side effects from tests-related modules.
22786         * modules/dprintf-posix (Comment): New section.
22787         * modules/fprintf-posix (Comment): Likewise.
22788         * modules/obstack-printf-posix (Comment): Likewise.
22789         * modules/printf-posix (Comment): Likewise.
22790         * modules/snprintf-posix (Comment): Likewise.
22791         * modules/sprintf-posix (Comment): Likewise.
22792         * modules/vasnprintf-posix (Comment): Likewise.
22793         * modules/vasprintf-posix (Comment): Likewise.
22794         * modules/vdprintf-posix (Comment): Likewise.
22795         * modules/vfprintf-posix (Comment): Likewise.
22796         * modules/vprintf-posix (Comment): Likewise.
22797         * modules/vsnprintf-posix (Comment): Likewise.
22798         * modules/vsprintf-posix (Comment): Likewise.
22799         * modules/xprintf-posix (Comment): Likewise.
22800         * modules/xvasprintf-posix (Comment): Likewise.
22801         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22802         * modules/floorf-tests (Depends-on): Likewise.
22803         * modules/round-tests (Depends-on): Likewise.
22804         * modules/roundf-tests (Depends-on): Likewise.
22805         * modules/trunc-tests (Depends-on): Likewise.
22806         * modules/truncf-tests (Depends-on): Likewise.
22807         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22808         'fprintf-posix' module is not present.
22809         * tests/test-floorf2.c (check): Likewise.
22810         * tests/test-trunc2.c (check): Likewise.
22811         * tests/test-truncf2.c (check): Likewise.
22812         * tests/test-round2.c (equal): Likewise.
22813         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22814
22815 2010-04-07  Karl Berry  <karl@gnu.org>
22816
22817         * config/srclist.txt,
22818         * config/srclistvars.sh,
22819         * config/srclist-update: doc fixes.
22820
22821 2010-04-07  Jim Meyering  <meyering@redhat.com>
22822
22823         maint.mk: add a PATH crosschecking syntax-check rule
22824         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22825         Useful if you use a test like the one in help-version (coreutils,
22826         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22827         printed by prog --version.
22828
22829 2010-04-06  Bruno Haible  <bruno@clisp.org>
22830
22831         Fix link error on mingw.
22832         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22833         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22834
22835 2010-04-06  Bruno Haible  <bruno@clisp.org>
22836
22837         Assume rmdir exists.
22838         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22839
22840 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22841
22842         doc: update users.txt
22843         * users.txt: Add gcal.
22844
22845 2010-04-06  Jim Meyering  <meyering@redhat.com>
22846
22847         init.sh: simply unset TMPDIR rather than risking env -i
22848         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22849         although it probably works fine on all Unix-based systems, some
22850         systems (Cygwin?) cannot tolerate a totally cleared environment.
22851         Suggestion from Eric Blake.
22852
22853 2010-04-06  Jim Meyering  <meyering@redhat.com>
22854
22855         init.sh: portability fix: use env's POSIX-specified -i option not -u
22856         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22857         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22858
22859 2010-04-05  Bruno Haible  <bruno@clisp.org>
22860
22861         btowc: Work around Cygwin 1.7.2 bug.
22862         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22863         does not map NUL to 0.
22864         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22865
22866 2010-04-05  Bruno Haible  <bruno@clisp.org>
22867
22868         Make the multithread modules work on Cygwin 1.7.2.
22869         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22870         imported symbols can be declared weak, so that it returns "no" on
22871         Cygwin 1.7.2.
22872
22873 2010-04-05  Bruno Haible  <bruno@clisp.org>
22874
22875         Use the module 'strncat'.
22876         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22877
22878         Tests for module 'strncat'.
22879         * modules/strncat-tests: New file.
22880         * tests/test-strncat.c: New file.
22881
22882         New module 'strncat'.
22883         * lib/string.in.h (strncat): New declaration.
22884         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22885         * m4/strncat.m4: New file, based on m4/memchr.m4.
22886         * modules/strncat: New file.
22887         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22888         is declared.
22889         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22890         REPLACE_STRNCAT.
22891         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22892         REPLACE_STRNCAT.
22893         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22894         module.
22895         * tests/test-string-c++.cc: Check signature of strncat.
22896
22897 2010-04-05  Jim Meyering  <meyering@redhat.com>
22898
22899         xstrtoumax-tests: convert to use init.sh
22900         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22901         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22902         Use Exit, not exit.
22903         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22904
22905         xstrtoimax-tests: convert to use init.sh
22906         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22907         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
22912
22913         sys_socket: Avoid #define replacements in C++ mode.
22914         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22915         warning to the function if possible, rather than #defining the symbol
22916         to a dysfunctional alias.
22917
22918 2010-04-05  Bruno Haible  <bruno@clisp.org>
22919
22920         fseeko: Fix C++ test error on mingw.
22921         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22922         gl_FUNC_FSEEKO.
22923         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22924         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22925         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22926         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22927
22928 2010-04-05  Bruno Haible  <bruno@clisp.org>
22929
22930         duplocale: Improve test output.
22931         * tests/test-duplocale.c (main): Print reason for skipped test.
22932
22933 2010-04-05  Bruno Haible  <bruno@clisp.org>
22934
22935         Assume rmdir exists.
22936         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22937         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22938
22939 2010-04-05  Bruno Haible  <bruno@clisp.org>
22940
22941         Fix link error on Solaris 8 with cc.
22942         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22943
22944 2010-04-05  Bruno Haible  <bruno@clisp.org>
22945
22946         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22947         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22948
22949 2010-04-05  Bruno Haible  <bruno@clisp.org>
22950
22951         vasprintf: Update documentation.
22952         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22953
22954 2010-04-05  Bruno Haible  <bruno@clisp.org>
22955
22956         ptsname: Improve test.
22957         * tests/test-ptsname.c (main): Also try the various master names of BSD
22958         systems.
22959
22960 2010-04-05  Bruno Haible  <bruno@clisp.org>
22961
22962         memchr: Avoid a possible C++ test error.
22963         * lib/string.in.h (memchr): Provide declaration if function is missing.
22964         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22965         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22967         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22968
22969 2010-04-05  Bruno Haible  <bruno@clisp.org>
22970
22971         strtok_r: Improve idiom.
22972         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22973         AC_LIBOBJ is used.
22974
22975 2010-04-05  Bruno Haible  <bruno@clisp.org>
22976
22977         strdup: Improve idiom.
22978         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22979         AC_LIBOBJ is used.
22980         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22981         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22982         when AC_LIBOBJ is used.
22983
22984 2010-04-05  Bruno Haible  <bruno@clisp.org>
22985
22986         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22987         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22988         don't set REPLACE_MBSINIT to 1.
22989         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22990         don't set REPLACE_MBRTOWC to 1.
22991         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22992         exist, don't set REPLACE_MBSRTOWCS to 1.
22993         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22994         exist, don't set REPLACE_MBSNRTOWCS to 1.
22995         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22996         don't set REPLACE_WCRTOMB to 1.
22997         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22998         exist, don't set REPLACE_WCSRTOMBS to 1.
22999         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23000         exist, don't set REPLACE_WCSNRTOMBS to 1.
23001
23002 2010-04-05  Bruno Haible  <bruno@clisp.org>
23003
23004         ldexpl: Improve idiom.
23005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23006         make sure to set HAVE_DECL_LDEXPL to 0.
23007
23008 2010-04-05  Jim Meyering  <meyering@redhat.com>
23009
23010         xstrtol-tests: convert to use init.sh
23011         * modules/xstrtol-tests (Files): Add tests/init.sh.
23012         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23013         Use Exit, not exit.
23014         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23015
23016         atexit-tests: convert to use init.sh
23017         * modules/atexit-tests (Files): Add tests/init.sh.
23018         * tests/test-atexit.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         init.sh: fix typo
23023         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23024
23025         init.sh: make it easier for a test script to write to the tty, ...
23026         when using automake's parallel-tests mode.
23027         * tests/init.sh (stderr_fileno_): Define overridable variable.
23028         (warn_): New function, to use it.
23029         (fail_, skip_, framework_failure_): Use warn_.
23030
23031 2010-04-04  Bruno Haible  <bruno@clisp.org>
23032
23033         btowc: Avoid warning.
23034         * lib/btowc.c: Include <stdlib.h>.
23035         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23036
23037 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23038             Bruno Haible  <bruno@clisp.org>
23039
23040         wchar: Port to NetBSD 1.5.
23041         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23042         * lib/wctype.in.h (WEOF): Likewise.
23043
23044 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23045             Bruno Haible  <bruno@clisp.org>
23046
23047         Port extended stdio to NetBSD 1.5.
23048         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23049         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23050         older.
23051
23052 2010-04-04  Bruno Haible  <bruno@clisp.org>
23053
23054         string: Remove unused substitution.
23055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23056         HAVE_DECL_STRERROR.
23057         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23058
23059 2010-04-04  Bruno Haible  <bruno@clisp.org>
23060
23061         strtod: Avoid a possible C++ test error.
23062         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23063         set REPLACE_STRTOD.
23064
23065 2010-04-04  Bruno Haible  <bruno@clisp.org>
23066
23067         strerror: Update documentation.
23068         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23069
23070 2010-04-04  Bruno Haible  <bruno@clisp.org>
23071
23072         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23073         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23074         _GL_CXXALIAS_SYS_CAST.
23075
23076 2010-04-04  Bruno Haible  <bruno@clisp.org>
23077
23078         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23079         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23080         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23081         REPLACE_FREXPL to 1.
23082         * doc/posix-functions/frexpl.texi: Update documentation.
23083
23084 2010-04-04  Bruno Haible  <bruno@clisp.org>
23085
23086         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23087         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23088
23089 2010-04-04  Bruno Haible  <bruno@clisp.org>
23090
23091         Implement nanosleep for native Windows.
23092         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23093
23094 2010-04-04  Bruno Haible  <bruno@clisp.org>
23095
23096         math: Fix some C++ test errors on Solaris 8.
23097         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23098
23099 2010-04-04  Bruno Haible  <bruno@clisp.org>
23100
23101         math: Fix some C++ test errors on Cygwin.
23102         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23103         truncl): Provide declaration if the system does not have it.
23104         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23105         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23106         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23107         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23108         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23109         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23110         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23111         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23112         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23113         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23114         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23115         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23116         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23117         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23118         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23119         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23121         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23122         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23123         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23124         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23125         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23126
23127 2010-04-04  Bruno Haible  <bruno@clisp.org>
23128
23129         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23130         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23131         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23132         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23133         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23134         * m4/isinf.m4 (gl_ISINF): Likewise.
23135         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23136
23137 2010-04-04  Bruno Haible  <bruno@clisp.org>
23138
23139         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23140         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23141
23142 2010-04-04  Bruno Haible  <bruno@clisp.org>
23143
23144         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23145         * modules/tmpfile (configure.ac): Update.
23146
23147         tmpfile: Fix C++ test error on mingw.
23148         * lib/stdio.in.h (tmpfile): New declaration.
23149         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23150         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23151         * modules/tmpfile (Depends-on): Add stdio.
23152         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23153         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23154         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23155         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23156         REPLACE_TMPFILE.
23157         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23158
23159 2010-04-04  Bruno Haible  <bruno@clisp.org>
23160
23161         ioctl: Fix C++ test error on mingw.
23162         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23163         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23164         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23165
23166 2010-04-03  Bruno Haible  <bruno@clisp.org>
23167
23168         wcwidth: Fix C++ test error on mingw.
23169         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23171         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23172
23173 2010-04-03  Bruno Haible  <bruno@clisp.org>
23174
23175         nanosleep: Fix C++ test error on mingw.
23176         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23177         * lib/time.in.h (nanosleep): Use modern idiom.
23178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23179         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23180         REPLACE_NANOSLEEP to 1.
23181         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23182         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23183
23184 2010-04-03  Bruno Haible  <bruno@clisp.org>
23185
23186         strptime: Fix C++ test error on mingw.
23187         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23188         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23189         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23190         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23192         not REPLACE_STRPTIME.
23193         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23194         REPLACE_STRPTIME.
23195
23196 2010-04-03  Bruno Haible  <bruno@clisp.org>
23197
23198         timegm: Fix C++ test error on mingw.
23199         * lib/time.in.h (timegm): Use modern idiom.
23200         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23201         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23202         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23203         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23204
23205 2010-04-03  Bruno Haible  <bruno@clisp.org>
23206
23207         timegm: Assume declaration if function exists.
23208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23209         if it exists. Don't clobber ac_cv_func_timegm.
23210
23211 2010-04-03  Bruno Haible  <bruno@clisp.org>
23212
23213         time_r: Fix C++ test error on mingw.
23214         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23215         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23216         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23217         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23218         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23219
23220 2010-04-03  Bruno Haible  <bruno@clisp.org>
23221
23222         time_r: Minor updates.
23223         * modules/time_r (Description): Mention the provided functions.
23224         * lib/time_r.c: Don't include <string.h>.
23225         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23226         * doc/posix-functions/localtime_r.texi: Likewise.
23227
23228 2010-04-03  Bruno Haible  <bruno@clisp.org>
23229
23230         time: Fix regression introduced on 2010-03-08.
23231         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23232         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23233
23234 2010-04-03  Jim Meyering  <meyering@redhat.com>
23235
23236         maint.mk: don't silently disable project-specific syntax-check rules
23237         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23238         that they need to convert their project-specific syntax-check rules
23239         to use the new _sc_search_regexp.
23240
23241 2010-04-03  Bruno Haible  <bruno@clisp.org>
23242
23243         fchdir: Fix regression introduced on 2010-03-08.
23244         * lib/unistd.in.h (fchdir): Fix declaration.
23245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23247         REPLACE_FCHDIR.
23248         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23249         REPLACE_FCHDIR.
23250
23251 2010-04-03  Bruno Haible  <bruno@clisp.org>
23252
23253         getpagesize: Fix C++ test error on mingw.
23254         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23255         system does not declare the function.
23256         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23257         declared.
23258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23259         HAVE_DECL_GETPAGESIZE.
23260         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23261
23262 2010-04-03  Bruno Haible  <bruno@clisp.org>
23263
23264         stdio: Make C++ tests work on mingw.
23265         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23266         does not declare the function.
23267
23268 2010-04-03  Bruno Haible  <bruno@clisp.org>
23269
23270         ftello: Fix C++ test error on mingw.
23271         * lib/stdio.in.h (ftello): Use modern idiom.
23272         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23273         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23274         is missing and that it needs to be replaced.
23275         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23277         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23278
23279 2010-04-03  Bruno Haible  <bruno@clisp.org>
23280
23281         fseeko: Fix C++ test error on mingw.
23282         * lib/stdio.in.h (fseeko): Use modern idiom.
23283         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23284         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23285         is missing and that it needs to be replaced.
23286         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23288         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23289
23290 2010-04-03  Bruno Haible  <bruno@clisp.org>
23291
23292         mkstemp: Fix C++ test error on mingw.
23293         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23295         function is missing and that it needs to be replaced.
23296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23297         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23298
23299 2010-04-03  Bruno Haible  <bruno@clisp.org>
23300
23301         stpncpy: Fix C++ test error on mingw.
23302         * lib/string.in.h (stpncpy): Use modern idiom.
23303         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23304         function is missing and that it needs to be replaced.
23305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23306         REPLACE_STPNCPY.
23307         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23308
23309 2010-04-03  Bruno Haible  <bruno@clisp.org>
23310
23311         sys_stat: Fix C++ test error on mingw.
23312         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23313         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23314
23315 2010-04-03  Bruno Haible  <bruno@clisp.org>
23316
23317         pty: Update doc.
23318         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23319
23320 2010-04-03  Bruno Haible  <bruno@clisp.org>
23321
23322         unistd: Fix C++ test error on mingw.
23323         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23324
23325 2010-04-03  Bruno Haible  <bruno@clisp.org>
23326
23327         Update doc regarding mingw.
23328         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23329         * doc/glibc-functions/login_tty.texi: Likewise.
23330         * doc/glibc-functions/forkpty.texi: Likewise.
23331
23332 2010-04-03  Bruno Haible  <bruno@clisp.org>
23333
23334         stdlib: Avoid compilation failure of c-strtold on mingw.
23335         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23336
23337 2010-04-03  Bruno Haible  <bruno@clisp.org>
23338
23339         locale: Make C++ tests work on Cygwin and mingw.
23340         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23341         cannot provide the function.
23342         Reported by Simon Josefsson.
23343
23344 2010-04-03  Bruno Haible  <bruno@clisp.org>
23345
23346         localename: Port to MacOS X 10.6.
23347         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23348         memory layout of the locales in MacOS X 10.6 as well.
23349         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23350
23351 2010-04-02  Bruno Haible  <bruno@clisp.org>
23352
23353         gnulib-tool: Ensure that long-running tests are executed last.
23354         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23355         running tests after the one for the other tests.
23356
23357 2010-04-02  Bruno Haible  <bruno@clisp.org>
23358
23359         gnulib-tool: Ensure the tests in the main directory are executed first.
23360         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23361         start with the current directory.
23362
23363 2010-04-02  Bruno Haible  <bruno@clisp.org>
23364
23365         Tests for module 'havelib', moved here from GNU gettext.
23366         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23367         modifications.
23368         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23369         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23370         with modifications.
23371         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23372         modifications.
23373         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23374         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23375         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23376         with modifications.
23377         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23378         with modifications.
23379         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23380         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23381         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23382         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23383         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23384         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23385         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23386         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23387         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23388         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23389         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23390         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23391         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23392         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23393         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23394         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23395         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23396         with modifications.
23397         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23398         with modifications.
23399         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23400         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23401         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23402         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23403         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23404         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23405         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23406         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23407         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23408         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23409         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23410         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23411         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23412         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23413         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23414         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23415         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23416         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23417         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23418         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23419         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23420         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23421         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23422         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23423         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23424         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23425         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23426         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23427         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23428         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23429         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23430         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23431         * tests/havelib/rpathx/rpathx.c: New file, from
23432         gettext/autoconf-lib-link.
23433         * tests/havelib/rpathx/Makefile.am: New file, from
23434         gettext/autoconf-lib-link.
23435         * tests/havelib/rpathx/configure.ac: New file, from
23436         gettext/autoconf-lib-link with modifications.
23437         * tests/havelib/rpathy/rpathy.c: New file, from
23438         gettext/autoconf-lib-link.
23439         * tests/havelib/rpathy/Makefile.am: New file, from
23440         gettext/autoconf-lib-link.
23441         * tests/havelib/rpathy/configure.ac: New file, from
23442         gettext/autoconf-lib-link with modifications.
23443         * tests/havelib/rpathz/rpathz.c: New file, from
23444         gettext/autoconf-lib-link.
23445         * tests/havelib/rpathz/Makefile.am: New file, from
23446         gettext/autoconf-lib-link.
23447         * tests/havelib/rpathz/configure.ac: New file, from
23448         gettext/autoconf-lib-link with modifications.
23449         * tests/havelib/rpathlx/usex.c: New file, from
23450         gettext/autoconf-lib-link.
23451         * tests/havelib/rpathlx/Makefile.am: New file, from
23452         gettext/autoconf-lib-link.
23453         * tests/havelib/rpathlx/configure.ac: New file, from
23454         gettext/autoconf-lib-link with modifications.
23455         * tests/havelib/rpathly/usey.c: New file, from
23456         gettext/autoconf-lib-link.
23457         * tests/havelib/rpathly/Makefile.am: New file, from
23458         gettext/autoconf-lib-link.
23459         * tests/havelib/rpathly/configure.ac: New file, from
23460         gettext/autoconf-lib-link with modifications.
23461         * tests/havelib/rpathlz/usez.c: New file, from
23462         gettext/autoconf-lib-link.
23463         * tests/havelib/rpathlz/Makefile.am: New file, from
23464         gettext/autoconf-lib-link.
23465         * tests/havelib/rpathlz/configure.ac: New file, from
23466         gettext/autoconf-lib-link with modifications.
23467         * tests/havelib/rpathlyx/usey.c: New file, from
23468         gettext/autoconf-lib-link.
23469         * tests/havelib/rpathlyx/Makefile.am: New file, from
23470         gettext/autoconf-lib-link.
23471         * tests/havelib/rpathlyx/configure.ac: New file, from
23472         gettext/autoconf-lib-link with modifications.
23473         * tests/havelib/rpathlzyx/usez.c: New file, from
23474         gettext/autoconf-lib-link.
23475         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23476         gettext/autoconf-lib-link.
23477         * tests/havelib/rpathlzyx/configure.ac: New file, from
23478         gettext/autoconf-lib-link with modifications.
23479         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23480         with modifications.
23481
23482 2010-04-02  Bruno Haible  <bruno@clisp.org>
23483
23484         gnulib-tool: Create distributed built sources also for the tests.
23485         * gnulib-tool (func_create_testdir): Also generate distributed built
23486         sources in the tests directory.
23487
23488 2010-04-02  Bruno Haible  <bruno@clisp.org>
23489
23490         gnulib-tool: Obey user's environment variables.
23491         * gnulib-tool (func_create_testdir): When creating built sources,
23492         respect the environment variables for autoconf, automake, etc. given by
23493         the user.
23494
23495 2010-04-02  Bruno Haible  <bruno@clisp.org>
23496
23497         gnulib-tool: Provide the value of --m4-base to modules.
23498         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23499         of gl_m4_base.
23500
23501 2010-04-02  Eric Blake  <eblake@redhat.com>
23502
23503         maint.mk: fix some fallout
23504         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23505         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23506
23507 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23508
23509         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23510         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23511         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23512         (sc_cast_of_x_alloc_return_value): Likewise.
23513         (sc_cast_of_alloca_return_value): Likewise.
23514         (sc_space_tab): Likewise.
23515         (sc_prohibit_atoi_atof): Likewise.
23516         (sc_prohibit_magic_number_exit): Likewise.
23517         (sc_error_exit_success): Likewise.
23518         (sc_file_system): Likewise.
23519         (sc_prohibit_have_config_h): Likewise.
23520         (sc_require_config_h): Likewise.
23521         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23522         (sc_obsolete_symbols): Likewise.
23523         (sc_changelog): Likewise.
23524         (sc_program_name): Likewise.
23525         (sc_the_the): Likewise.
23526         (sc_trailing_blank): Likewise.
23527         (sc_two_space_separator_in_usage): Likewise.
23528         (sc_useless_cpp_parens): Likewise.
23529         (sc_GPL_version): Likewise.
23530         (sc_GFDL_version): Likewise.
23531         (sc_texinfo_acronym): Likewise.
23532         (sc_prohibit_cvs_keyword): Likewise.
23533         (sc_prohibit_stat_st_blocks): Likewise.
23534         (sc_prohibit_S_IS_definition): Likewise.
23535         (sc_redundant_const): Likewise.
23536         (sc_makefile_TAB_only_indentation): Likewise.
23537         (sc_m4_quote_check): Likewise.
23538         (sc_makefile_path_separator_check): Likewise.
23539         (sc_copyright_check): Likewise.
23540         (sc_Wundef_boolean): Likewise.
23541         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23542
23543         maint.mk: match 0 or more whitespace-before-function-call '('
23544         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23545         that have zero or two-and-more spaces between the function name
23546         and the open parenthesis.
23547         (sc_error_message_warn_fatal): Likewise.
23548         (sc_error_message_uppercase): Likewise.
23549         (sc_error_message_period): Likewise.
23550
23551 2010-03-31  Eric Blake  <eblake@redhat.com>
23552
23553         maint.mk: check for [ as well as test
23554         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23555         Based on a libvirt report by Matthias Bolte.
23556
23557         gnumakefile: don't squelch _version output
23558         * top/GNUmakefile (_version): Create one-shot dependency rather
23559         than using $(shell) when version must be regenerated.
23560         (_autoreconf): Run verbosely, by default.
23561
23562         sys_time: avoid compiler warnings
23563         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23564         unconditional, fixing regression from 2010-03-29.
23565         Reported by Simon Josefsson.
23566
23567 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23568
23569         maint.mk: s/_header_without_use/_sc_header_without_use/
23570         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23571         (sc_prohibit_assert_without_use): Use the new name.
23572         (sc_prohibit_close_stream_without_use): Likewise.
23573         (sc_prohibit_getopt_without_use): Likewise.
23574         (sc_prohibit_quotearg_without_use): Likewise.
23575         (sc_prohibit_quote_without_use): Likewise.
23576         (sc_prohibit_long_options_without_use): Likewise.
23577         (sc_prohibit_inttostr_without_use): Likewise.
23578         (sc_prohibit_ignore_value_without_use): Likewise.
23579         (sc_prohibit_error_without_use): Likewise.
23580         (sc_prohibit_xalloc_without_use): Likewise.
23581         (sc_prohibit_hash_without_use): Likewise.
23582         (sc_prohibit_hash_pjw_without_use): Likewise.
23583         (sc_prohibit_safe_read_without_use): Likewise.
23584         (sc_prohibit_argmatch_without_use): Likewise.
23585         (sc_prohibit_canonicalize_without_use): Likewise.
23586         (sc_prohibit_root_dev_ino_without_use): Likewise.
23587         (sc_prohibit_openat_without_use): Likewise.
23588         (sc_prohibit_c_ctype_without_use): Likewise.
23589         (sc_prohibit_signal_without_use): Likewise.
23590         (sc_prohibit_intprops_without_use): Likewise.
23591
23592 2010-03-30  Eric Blake  <eblake@redhat.com>
23593
23594         maint: improve module indicators
23595         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23596         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23597         columns, and avoid extra macro expansion.
23598
23599         fdopendir: work around FreeBSD bug
23600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23601         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23602         * modules/dirent (Makefile.am): Substitute it.
23603         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23604         declaration.
23605         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23606         fix.
23607         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23608
23609 2010-03-29  Bruno Haible  <bruno@clisp.org>
23610
23611         Emit #pragma system_header after the inclusion guard, not before.
23612         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23613         guard that spans the entire file, not before. This enables an
23614         optimization in GCC's preprocessor.
23615         * lib/ctype.in.h: Likewise.
23616         * lib/dirent.in.h: Likewise.
23617         * lib/errno.in.h: Likewise.
23618         * lib/float.in.h: Likewise.
23619         * lib/getopt.in.h: Likewise.
23620         * lib/iconv.in.h: Likewise.
23621         * lib/langinfo.in.h: Likewise.
23622         * lib/locale.in.h: Likewise.
23623         * lib/math.in.h: Likewise.
23624         * lib/netdb.in.h: Likewise.
23625         * lib/netinet_in.in.h: Likewise.
23626         * lib/pty.in.h: Likewise.
23627         * lib/sched.in.h: Likewise.
23628         * lib/se-selinux.in.h: Likewise.
23629         * lib/search.in.h: Likewise.
23630         * lib/spawn.in.h: Likewise.
23631         * lib/stdarg.in.h: Likewise.
23632         * lib/stdint.in.h: Likewise.
23633         * lib/string.in.h: Likewise.
23634         * lib/strings.in.h: Likewise.
23635         * lib/sys_file.in.h: Likewise.
23636         * lib/sys_ioctl.in.h: Likewise.
23637         * lib/sys_time.in.h: Likewise.
23638         * lib/sys_times.in.h: Likewise.
23639         * lib/sys_utsname.in.h: Likewise.
23640         * lib/sys_wait.in.h: Likewise.
23641         * lib/sysexits.in.h: Likewise.
23642         * lib/wctype.in.h: Likewise.
23643
23644 2010-03-28  James Youngman  <jay@gnu.org>
23645
23646         save-cwd: don't leak a file descriptor when the caller execs.
23647         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23648         saved file descriptor.
23649         * modules/save-cwd (Depends-on): Depend on cloexec.
23650
23651 2010-03-29  Bruno Haible  <bruno@clisp.org>
23652
23653         Remove vestiges of fts-lgpl module.
23654         * lib/fts_.h: Assume GNULIB_FTS is 1.
23655         * lib/fts.c: Likewise.
23656         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23657
23658 2010-03-28  Bruno Haible  <bruno@clisp.org>
23659
23660         Fix definition of tests witness macro.
23661         * gnulib-tool (func_import): Fix definition of witness macro.
23662
23663 2010-03-28  Bruno Haible  <bruno@clisp.org>
23664
23665         Fix ioctl's protoype on glibc systems.
23666         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23667         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23668         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23669         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23670         signature. If not, arrange to replace the ioctl function.
23671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23672         REPLACE_IOCTL.
23673         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23674         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23675         Reported by Ludovic Courtès <ludo@gnu.org>.
23676
23677 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23678
23679         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23680         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23681         made it so grep -r --include=GLOB* ... did not work.
23682
23683 2010-03-26  Jim Meyering  <meyering@redhat.com>
23684             Eric Blake  <eblake@redhat.com>
23685
23686         maint.mk: prohibit use of test's -o and -a operators
23687         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23688
23689 2010-03-28  Bruno Haible  <bruno@clisp.org>
23690
23691         Remove unused GNULIB_XYZ macro definitions.
23692         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23693         invocation.
23694
23695 2010-03-28  Bruno Haible  <bruno@clisp.org>
23696
23697         Mark privileged tests modules.
23698         * modules/idpriv-drop-tests (Status): New section.
23699         * modules/idpriv-droptemp-tests (Status): New section.
23700
23701 2010-03-28  Bruno Haible  <bruno@clisp.org>
23702
23703         Split C++ tests into separate tests modules.
23704         * modules/dirent-c++-tests: New file, extracted from
23705         modules/dirent-tests.
23706         * modules/dirent-tests: Depend on it.
23707         * modules/fcntl-h-c++-tests: New file, extracted from
23708         modules/fcntl-h-tests.
23709         * modules/fcntl-h-tests: Depend on it.
23710         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23711         * modules/glob-tests: Depend on it.
23712         * modules/iconv-h-c++-tests: New file, extracted from
23713         modules/iconv-h-tests.
23714         * modules/iconv-h-tests: Depend on it.
23715         * modules/langinfo-c++-tests: New file, extracted from
23716         modules/langinfo-tests.
23717         * modules/langinfo-tests: Depend on it.
23718         * modules/locale-c++-tests: New file, extracted from
23719         modules/locale-tests.
23720         * modules/locale-tests: Depend on it.
23721         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23722         * modules/math-tests: Depend on it.
23723         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23724         * modules/pty-tests: Depend on it.
23725         * modules/search-c++-tests: New file, extracted from
23726         modules/search-tests.
23727         * modules/search-tests: Depend on it.
23728         * modules/signal-c++-tests: New file, extracted from
23729         modules/signal-tests.
23730         * modules/signal-tests: Depend on it.
23731         * modules/spawn-c++-tests: New file, extracted from
23732         modules/spawn-tests.
23733         * modules/spawn-tests: Depend on it.
23734         * modules/stdio-c++-tests: New file, extracted from
23735         modules/stdio-tests.
23736         * modules/stdio-tests: Depend on it.
23737         * modules/stdlib-c++-tests: New file, extracted from
23738         modules/stdlib-tests.
23739         * modules/stdlib-tests: Depend on it.
23740         * modules/string-c++-tests: New file, extracted from
23741         modules/string-tests.
23742         * modules/string-tests: Depend on it.
23743         * modules/sys_ioctl-c++-tests: New file, extracted from
23744         modules/sys_ioctl-tests.
23745         * modules/sys_ioctl-tests: Depend on it.
23746         * modules/sys_select-c++-tests: New file, extracted from
23747         modules/sys_select-tests.
23748         * modules/sys_select-tests: Depend on it.
23749         * modules/sys_socket-c++-tests: New file, extracted from
23750         modules/sys_socket-tests.
23751         * modules/sys_socket-tests: Depend on it.
23752         * modules/sys_stat-c++-tests: New file, extracted from
23753         modules/sys_stat-tests.
23754         * modules/sys_stat-tests: Depend on it.
23755         * modules/sys_time-c++-tests: New file, extracted from
23756         modules/sys_time-tests.
23757         * modules/sys_time-tests: Depend on it.
23758         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23759         * modules/time-tests: Depend on it.
23760         * modules/unistd-c++-tests: New file, extracted from
23761         modules/unistd-tests.
23762         * modules/unistd-tests: Depend on it.
23763         * modules/wchar-c++-tests: New file, extracted from
23764         modules/wchar-tests.
23765         * modules/wchar-tests: Depend on it.
23766         * modules/wctype-c++-tests: New file, extracted from
23767         modules/wctype-tests.
23768         * modules/wctype-tests: Depend on it.
23769         Reported by Simon Josefsson.
23770
23771 2010-03-28  Bruno Haible  <bruno@clisp.org>
23772
23773         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23774         * gnulib-tool (func_exists_module): New function, extracted from
23775         func_verify_module.
23776         (func_verify_module): Use it.
23777         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23778         'foo' only if 'foo' exists.
23779         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23780         module.
23781
23782 2010-03-28  Bruno Haible  <bruno@clisp.org>
23783
23784         gnulib-tool: Add support for special categories of tests.
23785         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23786         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23787         (func_usage): Document them.
23788         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23789         inc_unportable_tests, inc_all_tests): New variables.
23790         (func_acceptable): Consider these variables.
23791         (func_modules_transitive_closure): Make it work when the 'Status' field
23792         consists of multiple words.
23793         (func_import): Store and restore the values of inc_cxx_tests,
23794         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23795         inc_all_tests in gnulib-comp.m4.
23796         (func_create_testdir): Set inc_all_tests to true.
23797         * doc/gnulib.texi (Extra tests modules): New section.
23798         Suggested by Jim Meyering.
23799
23800 2010-03-28  Bruno Haible  <bruno@clisp.org>
23801
23802         ansi-c++-opt: Allow turning off the C++ build by default.
23803         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23804         gl_CXX_CHOICE_DEFAULT_NO is defined.
23805         Requested by Eric Blake.
23806
23807 2010-03-28  Bruno Haible  <bruno@clisp.org>
23808
23809         unistd: Avoid #define replacements in C++ mode.
23810         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23811         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23812         setsockopt, shutdown, select): In C++, attach a warning to the function
23813         if possible, rather than #defining the symbol to a dysfunctional alias.
23814         Reported by John W. Eaton <jwe@gnu.org>.
23815
23816 2010-03-28  Bruno Haible  <bruno@clisp.org>
23817
23818         Fix link errors on mingw.
23819         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23820         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23821         $(LIBSOCKET).
23822         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23823         $(LIBSOCKET).
23824
23825 2010-03-28  Bruno Haible  <bruno@clisp.org>
23826             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23827
23828         lib-ignore: Determine different options for different compilers.
23829         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23830         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23831         Add comments.
23832         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23833         * NEWS: Mention the change.
23834
23835 2010-03-27  Bruno Haible  <bruno@clisp.org>
23836
23837         Remove unused GNULIB_XYZ macro definitions.
23838         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23839         * modules/fseek (configure.ac): Likewise.
23840         * modules/ioctl (configure.ac): Likewise.
23841         * modules/open (configure.ac): Likewise.
23842         * modules/stdlib-safer (configure.ac): Likewise.
23843
23844 2010-03-27  Bruno Haible  <bruno@clisp.org>
23845
23846         Add a remark about certain modules.
23847         * modules/malloc (Comment): New section.
23848         * modules/realloc (Comment): Likewise.
23849         * modules/sigpipe (Comment): Likewise.
23850
23851 2010-03-27  Bruno Haible  <bruno@clisp.org>
23852
23853         Resolve conflict between the two kinds of module indicators.
23854         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23855         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23856         * modules/canonicalize (configure.ac): Invoke
23857         gl_MODULE_INDICATOR_FOR_TESTS.
23858         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23859         GNULIB_XYZ.
23860         * tests/test-dirent-c++.cc: Likewise.
23861         * tests/test-dirent-safer.c: Likewise.
23862         * tests/test-dup2.c: Likewise.
23863         * tests/test-fchdir.c: Likewise.
23864         * tests/test-fcntl-h-c++.cc: Likewise.
23865         * tests/test-getopt.c: Likewise.
23866         * tests/test-getopt.h: Likewise.
23867         * tests/test-langinfo-c++.cc: Likewise.
23868         * tests/test-locale-c++.cc: Likewise.
23869         * tests/test-math-c++.cc: Likewise.
23870         * tests/test-pty-c++.cc: Likewise.
23871         * tests/test-search-c++.cc: Likewise.
23872         * tests/test-signal-c++.cc: Likewise.
23873         * tests/test-spawn-c++.cc: Likewise.
23874         * tests/test-stdio-c++.cc: Likewise.
23875         * tests/test-stdlib-c++.cc: Likewise.
23876         * tests/test-string-c++.cc: Likewise.
23877         * tests/test-sys_ioctl-c++.cc: Likewise.
23878         * tests/test-sys_select-c++.cc: Likewise.
23879         * tests/test-sys_socket-c++.cc: Likewise.
23880         * tests/test-sys_stat-c++.cc: Likewise.
23881         * tests/test-sys_time-c++.cc: Likewise.
23882         * tests/test-time-c++.cc: Likewise.
23883         * tests/test-unistd-c++.cc: Likewise.
23884         * tests/test-wchar-c++.cc: Likewise.
23885         * tests/uninorm/test-u8-nfc.c: Likewise.
23886         * tests/uninorm/test-u8-nfd.c: Likewise.
23887         * tests/uninorm/test-u8-nfkc.c: Likewise.
23888         * tests/uninorm/test-u8-nfkd.c: Likewise.
23889         * tests/uninorm/test-u16-nfc.c: Likewise.
23890         * tests/uninorm/test-u16-nfd.c: Likewise.
23891         * tests/uninorm/test-u16-nfkc.c: Likewise.
23892         * tests/uninorm/test-u16-nfkd.c: Likewise.
23893         * tests/uninorm/test-u32-nfc.c: Likewise.
23894         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23895         * tests/uninorm/test-u32-nfd.c: Likewise.
23896         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23897         * tests/uninorm/test-u32-nfkc.c: Likewise.
23898         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23899         * tests/uninorm/test-u32-nfkd.c: Likewise.
23900         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23901         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23902
23903 2010-03-27  Bruno Haible  <bruno@clisp.org>
23904
23905         Distinguish two kinds of module indicators.
23906         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23907         gl_MODULE_INDICATOR.
23908         (gl_MODULE_INDICATOR): New macro.
23909         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23910         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23911         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23912         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23913         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23914         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23915         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23916         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23917         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23918         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23919         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23920         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23923         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23924         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23925         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23926         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23927         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23928         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23929         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23930         * modules/cloexec (configure.ac): Likewise.
23931         * modules/getopt-gnu (configure.ac): Likewise.
23932         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23933         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23934         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23935         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23936
23937 2010-03-27  Bruno Haible  <bruno@clisp.org>
23938
23939         New module description field 'Comment'.
23940         * gnulib-tool: New option --extract-comment.
23941         (func_usage): Document it.
23942         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23943         (func_get_comment): New function.
23944         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23945
23946 2010-03-27  Bruno Haible  <bruno@clisp.org>
23947
23948         Addendum to 2010-02-07 commit.
23949         * gnulib-tool (func_usage): Document --extract-applicability option.
23950
23951 2010-03-27  Bruno Haible  <bruno@clisp.org>
23952
23953         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23954         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23955         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23956         rather than link errors.
23957
23958 2010-03-27  Bruno Haible  <bruno@clisp.org>
23959
23960         Avoid side effects from tests-related modules on the compilation of lib.
23961         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23962         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23963         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23964         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23965         macro.
23966         (func_import): Define a witness macro. Assign it a value that depends
23967         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23968         tests-related modules.
23969         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23970         Reported by Jim Meyering.
23971
23972 2010-03-27  Bruno Haible  <bruno@clisp.org>
23973
23974         Factorize common .m4 code.
23975         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23976         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23977         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23978         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23979         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23980         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23981         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23982         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23983         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23984         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23985         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23986         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23987         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23988         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23989         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23990         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23991         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23992         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23994         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23995         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23997         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23998         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23999         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24000         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24001         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24002         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24003         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24004         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24005         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24006         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24007
24008 2010-03-27  Bruno Haible  <bruno@clisp.org>
24009
24010         Fix a compilation error on Cygwin with g++ >= 4.3.
24011         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24012         if it is undefined or if we alias it to chmod.
24013         (lstat): Don't warn about the use of this function if it is undefined
24014         or if we alias it to stat.
24015         Reported by Simon Josefsson.
24016
24017 2010-03-27  Bruno Haible  <bruno@clisp.org>
24018
24019         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24020         * modules/getlogin (configure.ac): Update.
24021
24022         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24023         * modules/getlogin_r (configure.ac): Update.
24024
24025         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24027         * modules/inet_ntop (configure.ac): Update.
24028
24029         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24030         * modules/inet_pton (configure.ac): Update.
24031
24032         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24033         * modules/mbslen (configure.ac): Update.
24034
24035         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24036         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24037         * modules/forkpty (configure.ac): Update.
24038         * modules/openpty (configure.ac): Update.
24039
24040 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24041
24042         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24043         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24044
24045 2010-03-25  Eric Blake  <eblake@redhat.com>
24046
24047         maint: use pragma consistently across replacement headers
24048         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24049         * lib/dirent.in.h (system_header): Likewise.
24050         * lib/errno.in.h (system_header): Likewise.
24051         * lib/float.in.h (system_header): Likewise.
24052         * lib/getopt.in.h (system_header): Likewise.
24053         * lib/iconv.in.h (system_header): Likewise.
24054         * lib/inttypes.in.h (system_header): Likewise.
24055         * lib/langinfo.in.h (system_header): Likewise.
24056         * lib/locale.in.h (system_header): Likewise.
24057         * lib/math.in.h (system_header): Likewise.
24058         * lib/netdb.in.h (system_header): Likewise.
24059         * lib/netinet_in.in.h (system_header): Likewise.
24060         * lib/pty.in.h (system_header): Likewise.
24061         * lib/sched.in.h (system_header): Likewise.
24062         * lib/se-selinux.in.h (system_header): Likewise.
24063         * lib/search.in.h (system_header): Likewise.
24064         * lib/spawn.in.h (system_header): Likewise.
24065         * lib/stdarg.in.h (system_header): Likewise.
24066         * lib/stdint.in.h (system_header): Likewise.
24067         * lib/string.in.h (system_header): Likewise.
24068         * lib/strings.in.h (system_header): Likewise.
24069         * lib/sys_file.in.h (system_header): Likewise.
24070         * lib/sys_ioctl.in.h (system_header): Likewise.
24071         * lib/sys_socket.in.h (system_header): Likewise.
24072         * lib/sys_times.in.h (system_header): Likewise.
24073         * lib/sys_utsname.in.h (system_header): Likewise.
24074         * lib/sys_wait.in.h (system_header): Likewise.
24075         * lib/sysexits.in.h (system_header): Likewise.
24076         * lib/unistd.in.h (system_header): Likewise.
24077         * lib/wctype.in.h (system_header): Likewise.
24078
24079         arpa/inet: fix mingw compilation warning
24080         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24081         Reported by Matthew Bolte.
24082
24083 2010-03-25  Bruno Haible  <bruno@clisp.org>
24084
24085         Avoid collision between gnulib wrapper and libintl wrapper.
24086         * lib/printf.c (printf): Don't define if a printf wrapper is already
24087         defined in intl/printf.c.
24088         Reported by Michel Boaventura <michel@michelboaventura.com>.
24089
24090 2010-03-25  Bruno Haible  <bruno@clisp.org>
24091
24092         Use ANSI C.
24093         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24094
24095 2010-03-25  Bruno Haible  <bruno@clisp.org>
24096
24097         Minor formatting changes.
24098         * lib/acosl.c: Insert space before function argument list.
24099         * lib/argz.c: Likewise.
24100         * lib/asinl.c: Likewise.
24101         * lib/expl.c: Likewise.
24102         * lib/gen-uni-tables.c: Likewise.
24103         * lib/gettext.h: Likewise.
24104         * lib/glthread/lock.h: Likewise.
24105         * lib/tanl.c: Likewise.
24106         * lib/uniname/uniname.c: Likewise.
24107         * tests/test-idpriv-drop.c: Likewise.
24108         * tests/test-idpriv-droptemp.c: Likewise.
24109         * tests/test-lock.c: Likewise.
24110         * tests/test-tls.c: Likewise.
24111         * lib/argp-help.c: Insert space before function-like macro argument
24112         list.
24113         * lib/memcmp.c: Likewise.
24114         * tests/test-base64.c: Likewise.
24115         * lib/localename.c: Insert space before sizeof's argument list.
24116         * lib/safe-alloc.h: Likewise.
24117         * lib/file-set.h: Insert space before macro argument list.
24118         * tests/test-argp.c: Likewise.
24119         * lib/argp-namefrob.h: Insert space before function parameter list.
24120         * lib/getaddrinfo.c: Likewise.
24121         * lib/netdb.in.h: Likewise.
24122         * lib/parse-duration.h: Likewise.
24123         * lib/parse-duration.c: Likewise.
24124         * lib/poll.c: Likewise.
24125         * lib/select.c: Likewise.
24126         * lib/trim.h: Likewise.
24127         * tests/test-usleep.c: Likewise.
24128         * lib/ldexpl.c: Insert space before function parameter list and before
24129         function argument list.
24130         * lib/logl.c: Likewise.
24131         * lib/sqrtl.c: Likewise.
24132         * lib/trim.c: Likewise.
24133         * lib/cosl.c: Use GNU style indentation. Insert space before function
24134         argument list.
24135         * lib/sinl.c: Likewise.
24136         * lib/tsearch.c: Insert space after 'for'.
24137         Reported by Jim Meyering.
24138
24139 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24140
24141         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24142         config header before grepping, as it's not present before
24143         autoreconf/configure are run.  Reported by Simon Josefsson.
24144
24145 2010-03-23  Bruno Haible  <bruno@clisp.org>
24146
24147         pt_chown: Make it work with automake < 1.11.
24148         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24149         Reported by Simon Josefsson.
24150
24151 2010-03-23  Bruno Haible  <bruno@clisp.org>
24152
24153         pt_chown: Don't depend on GPLed modules.
24154         * lib/pt_chown.c: Don't include idpriv.h.
24155         (main): Don't drop privileges.
24156         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24157         Reported by Simon Josefsson.
24158
24159 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24160
24161         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24162         suggestions from karl@freefriends.org (Karl Berry).
24163
24164 2010-03-22  Eric Blake  <eblake@redhat.com>
24165
24166         gethostname: further tweaks
24167         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24168         are overriding gethostname.
24169         Suggested by Bruno Haible.
24170
24171 2010-03-21  Bruno Haible  <bruno@clisp.org>
24172
24173         Fix comments.
24174         * lib/forkpty.c (rpl_forkpty): Fix comment.
24175         * lib/openpty.c (rpl_openpty): Likewise.
24176         Reported by Eric Blake.
24177
24178 2010-03-22  Eric Blake  <eblake@redhat.com>
24179
24180         gethostname: fix build on mingw
24181         * lib/unistd.in.h (includes): Work around fact that mingw
24182         <winsock2.h> re-includes <unistd.h>, by avoiding any
24183         redeclarations if we are being included by <winsock2.h>.
24184         Reported by Matthias Bolte.
24185
24186 2010-03-21  Bruno Haible  <bruno@clisp.org>
24187
24188         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24189         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24190         modifications.
24191         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24192         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24193         provide the replacement.
24194         * modules/forkpty (Depends-on): Add openpty, login_tty.
24195         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24196         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24197         * doc/glibc-functions/forkpty.texi: More supported platforms.
24198         * config/srclist.txt: Add forkpty.c (commented).
24199
24200 2010-03-21  Bruno Haible  <bruno@clisp.org>
24201
24202         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24203         (Makefile.am): Verify that PTY_LIB is defined.
24204
24205         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24206
24207 2010-03-21  Bruno Haible  <bruno@clisp.org>
24208
24209         Tests for module 'login_tty'.
24210         * modules/login_tty-tests: New file.
24211         * tests/test-login_tty.c: New file.
24212
24213         New module 'login_tty'.
24214         * lib/login_tty.c: New file.
24215         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24216         * modules/login_tty: New file.
24217         * doc/glibc-functions/login_tty.texi: Mention the new module.
24218
24219 2010-03-21  Bruno Haible  <bruno@clisp.org>
24220
24221         login_tty: Documentation.
24222         * doc/glibc-functions/login_tty.texi: New file.
24223         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24224
24225 2010-03-21  Bruno Haible  <bruno@clisp.org>
24226
24227         pty: Consistent macro naming.
24228         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24229         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24230         * modules/pty (configure.ac): Update.
24231
24232 2010-03-21  Bruno Haible  <bruno@clisp.org>
24233
24234         Tests for openpty: Make stricter.
24235         * tests/test-openpty.c (main): Add test of canonical processing and
24236         erase.
24237         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24238
24239         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24240         * lib/openpty.c (openpty): New replacement function.
24241         * lib/pty.in.h: Include <termios.h>.
24242         (openpty): Update declaration. Add comments.
24243         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24244         is not declared, arrange to provide the replacement. Check for _getpty
24245         and posix_openpt.
24246         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24247         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24248         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24249         * modules/pty-tests (test_pty_c___LDADD): New variable.
24250         * doc/glibc-functions/openpty.texi: More supported platforms.
24251
24252 2010-03-21  Bruno Haible  <bruno@clisp.org>
24253
24254         setenv: Tweaks.
24255         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24256         the test program.
24257         * doc/posix-functions/setenv.texi: Update platforms list.
24258
24259 2010-03-21  Bruno Haible  <bruno@clisp.org>
24260
24261         New module 'unlockpt'.
24262         * lib/unlockpt.c: New file, from glibc with modifications.
24263         * m4/unlockpt.m4: New file.
24264         * modules/unlockpt: New file.
24265         * lib/stdlib.in.h (unlockpt): New declaration.
24266         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24267         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24268         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24269         HAVE_UNLOCKPT.
24270         * doc/posix-functions/unlockpt.texi: Mention the new module.
24271         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24272         * config/srclist.txt: Add unlockpt.c (commented).
24273
24274 2010-03-21  Jim Meyering  <meyering@redhat.com>
24275
24276         maint.mk: prohibit inclusion of "intprops.h" without use
24277         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24278
24279 2010-03-21  Bruno Haible  <bruno@clisp.org>
24280
24281         New module 'grantpt'.
24282         * lib/grantpt.c: New file, from glibc with modifications.
24283         * m4/grantpt.m4: New file.
24284         * modules/grantpt: New file.
24285         * lib/stdlib.in.h (grantpt): New declaration.
24286         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24287         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24288         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24289         HAVE_GRANTPT.
24290         * doc/posix-functions/grantpt.texi: Mention the new module.
24291         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24292         * config/srclist.txt: Add grantpt.c (commented).
24293
24294 2010-03-21  Bruno Haible  <bruno@clisp.org>
24295
24296         New module 'pt_chown'.
24297         * lib/pt_chown.c: New file, from glibc with modifications.
24298         * lib/pty-private.h: New file, from glibc with modifications.
24299         * modules/pt_chown: New file.
24300         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24301
24302 2010-03-21  Bruno Haible  <bruno@clisp.org>
24303
24304         Tests for module 'ptsname'.
24305         * modules/ptsname-tests: New file.
24306         * tests/test-ptsname.c: New file.
24307
24308         New module 'ptsname'.
24309         * lib/ptsname.c: New file, from glibc with modifications.
24310         * m4/ptsname.m4: New file.
24311         * modules/ptsname: New file.
24312         * lib/stdlib.in.h (ptsname): New declaration.
24313         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24314         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24315         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24316         HAVE_PTSNAME.
24317         * doc/posix-functions/ptsname.texi: Mention the new module.
24318         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24319         * config/srclist.txt: Add ptsname.c (commented).
24320
24321 2010-03-21  Bruno Haible  <bruno@clisp.org>
24322
24323         Tests for module 'ttyname_r'.
24324         * modules/ttyname_r-tests: New file.
24325         * tests/test-ttyname_r.c: New file.
24326
24327         New module 'ttyname_r'.
24328         * lib/ttyname_r.c: New file.
24329         * m4/ttyname_r.m4: New file.
24330         * modules/ttyname_r: New file.
24331         * lib/unistd.in.h (ttyname_r): New declaration.
24332         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24333         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24334         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24335         HAVE_TTYNAME_R.
24336         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24337         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24338
24339 2010-03-20  Bruno Haible  <bruno@clisp.org>
24340
24341         signal: Undefine macro definitions in C++ mode.
24342         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24343         sigfillset): Undefine macro definitions from the system header in C++
24344         mode.
24345         Reported by John W. Eaton <jwe@gnu.org>.
24346
24347 2010-03-20  Bruno Haible  <bruno@clisp.org>
24348
24349         Ensure no #include statements inside extern "C" { ... }.
24350         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24351         contain #include statements.
24352         * lib/time.in.h: Likewise.
24353
24354 2010-03-20  Bruno Haible  <bruno@clisp.org>
24355
24356         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24357         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24358         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24359         Reported by John W. Eaton <jwe@gnu.org>.
24360
24361 2010-03-20  Bruno Haible  <bruno@clisp.org>
24362
24363         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24364         Reported by Jim Meyering.
24365
24366 2010-03-20  Bruno Haible  <bruno@clisp.org>
24367
24368         pipe: Set errno upon failure.
24369         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24370         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24371         errno value in error message.
24372
24373 2010-03-20  Bruno Haible  <bruno@clisp.org>
24374             Jim Meyering  <meyering@redhat.com>
24375
24376         lchown: Avoid "unused variable" warning.
24377         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24378
24379 2010-03-20  Bruno Haible  <bruno@clisp.org>
24380
24381         Work around unlink() bug on MacOS X 10.5.6.
24382         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24383         attempting to unlink a parent directory.
24384         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24385         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24386         activate for the replacement function.
24387         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24388
24389 2010-03-20  Bruno Haible  <bruno@clisp.org>
24390
24391         Fix link errors on Solaris 8.
24392         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24393         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24394
24395 2010-03-19  Jim Meyering  <meyering@redhat.com>
24396
24397         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24398         The _LIBC implementation of build_range_exp correctly honors the
24399         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24400         However, the non-_LIBC implementation would ignore that syntax-bit
24401         flag and return REG_ERANGE unconditionally.
24402         This change makes it honor that flag.
24403         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24404         Make two pointer parameters "const".
24405         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24406         (parse_bracket_exp): Update caller.
24407
24408         regex.m4: correct the reversed range endpoint ([b-a]) test
24409         * m4/regex.m4: When requiring that [b-a] evoke failure,
24410         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24411         test pass once again for x86-based systems.
24412
24413 2010-03-19  Bruno Haible  <bruno@clisp.org>
24414
24415         scandir: Fix link error on Solaris 8.
24416         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24417         macros.
24418
24419 2010-03-19  Bruno Haible  <bruno@clisp.org>
24420
24421         getusershell: Fix documentation.
24422         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24423         module.
24424         * doc/glibc-functions/setusershell.texi: Likewise.
24425
24426         getusershell: Provide declaration, missing on Solaris 9.
24427         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24428         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24429         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24430         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24432         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24433         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24434         HAVE_GETUSERSHELL.
24435         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24436
24437 2010-03-19  Bruno Haible  <bruno@clisp.org>
24438
24439         wctype: Provide iswblank function.
24440         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24441         exists and is fine.
24442         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24443         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24444         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24445         * doc/posix-functions/iswblank.texi: Update.
24446
24447 2010-03-19  Bruno Haible  <bruno@clisp.org>
24448
24449         Tests of module 'pty' in C++ mode.
24450         * modules/pty-tests: New file.
24451         * tests/test-pty-c++.cc: New file.
24452         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24453
24454 2010-03-19  Eric Blake  <eblake@redhat.com>
24455
24456         logb: fix documentation
24457         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24458         1.5 declaration bug.
24459
24460         forkpty, openpty: prefer glibc's const-safe prototype
24461         * lib/forkpty.c (rpl_forkpty): New file.
24462         * lib/openpty.c (rpl_openpty): Likewise.
24463         * modules/forkpty (Files): Distribute it.
24464         * modules/openpty (Files): Likewise.
24465         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24466         check...
24467         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24468         replacement for for non-const BSD signature.
24469         * modules/pty (Makefile.am): Substitute witnesses.
24470         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24471         * tests/test-forkpty.c: Update signature check.
24472         * tests/test-openpty.c: Likewise.
24473         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24474         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24475
24476         forkpty, openpty: split functions into new modules
24477         * modules/pty (Makefile.am): Substitute new witnesses.
24478         (Libraries): Move library detection...
24479         * modules/forkpty: ...into new module.
24480         * modules/openpty: Another new module.
24481         * modules/pty-tests: Rename and split...
24482         * modules/forkpty-tests: ...to this...
24483         * modules/openpty-tests: ...and this.
24484         * tests/test-pty.c: Rename and split...
24485         * tests/test-forkpty.c: ...to this...
24486         * tests/test-openpty.c: ...and this.
24487         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24488         (gl_PTY): Split library searching...
24489         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24490         (gl_FORKPTY, gl_OPENPTY): New macros.
24491         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24492         * NEWS: Mention the split.
24493         * MODULES.html.sh (Misc): Document the modules.
24494         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24495         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24496
24497         pty: improve replacement header
24498         * lib/pty.in.h: New file.
24499         * modules/pty (Files): Ship it.
24500         (Makefile.am): Always build replacement.
24501         * m4/pty.m4: Rename...
24502         * m4/pty_h.m4: ...to this.
24503         (gl_PTY): Modernize setting of witness macros; update check of
24504         forkpty to take proper advantage of cache.
24505         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24506
24507         getopt: avoid compiler warning
24508         * lib/getopt.c (attribute_hidden): Remove unused macro.
24509
24510 2010-03-18  Bruno Haible  <bruno@clisp.org>
24511
24512         Fix link errors on Solaris 8.
24513         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24514         * modules/search-tests (test_search_c___LDADD): Likewise.
24515         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24516         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24517         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24518         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24519         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24520         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24521         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24522
24523 2010-03-18  Bruno Haible  <bruno@clisp.org>
24524
24525         Fix bug introduced on 2010-03-14.
24526         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24527         (gl_SPAWN_H): Require it.
24528         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24529         Reported by Simon Josefsson.
24530
24531 2010-03-18  Bruno Haible  <bruno@clisp.org>
24532
24533         Fix typo introduced on 2009-12-31.
24534         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24535         posix_spawn_file_actions_adddup2.
24536
24537 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24538         and Eric Blake  <eblake@redhat.com>
24539
24540         test-vc-list-files-git: make more robust
24541         * tests/test-vc-list-files-git.sh: Unset problematic environment
24542         variables.  Chain commands together.
24543
24544 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24545
24546         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24547         `AC_CHECK_DECL' invocation.
24548
24549 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24550
24551         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24552         appears before executable statements. Suggested by Petr Sumbera
24553         <Petr.Sumbera@Sun.COM>.
24554
24555 2010-03-14  Bruno Haible  <bruno@clisp.org>
24556
24557         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24558         portability problems. Instead use a simpler test.
24559         (main): Check that invalid arguments are rejected only on Linux.
24560
24561 2010-03-14  Bruno Haible  <bruno@clisp.org>
24562
24563         Fix bug introduced on 2009-12-31.
24564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24565         gl_PREREQ_SYS_H_WINSOCK2 always.
24566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24567         SYS_SOCKET_H variable.
24568         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24569         Update comments.
24570         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24571         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24572         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24573         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24574         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24575
24576 2010-03-14  Bruno Haible  <bruno@clisp.org>
24577
24578         Fix values returned by sinl, cosl.
24579         * lib/trigl.h: Add specification comments.
24580         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24581         that combines the values from the precomputed table with the values of
24582         the Chebyshev polynomials.
24583
24584 2010-03-14  Bruno Haible  <bruno@clisp.org>
24585
24586         Fix compilation error when modules 'posix_spawn[p]' are not used.
24587         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24588         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24589
24590 2010-03-14  Bruno Haible  <bruno@clisp.org>
24591
24592         Fix compilation error on mingw when module 'time_r' is not used.
24593         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24594         is 1.
24595         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24596         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24597         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24598         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24599
24600 2010-03-14  Bruno Haible  <bruno@clisp.org>
24601
24602         Fix compilation error with Sun C.
24603         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24604         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24605         instead of GCC specific ULONG_LONG_MAX.
24606         * lib/xstrtoll.c: Likewise.
24607         * lib/xstrtoull.c: Likewise.
24608
24609 2010-03-13  Bruno Haible  <bruno@clisp.org>
24610
24611         Allow the user to disable C++ code and tests.
24612         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24613         (gl_PROG_ANSI_CXX): Require it.
24614
24615 2010-03-13  Bruno Haible  <bruno@clisp.org>
24616
24617         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24618         cases.
24619
24620 2010-03-13  Bruno Haible  <bruno@clisp.org>
24621
24622         Test that gnulib does not break the standard C++ headers.
24623         * tests/test-locale-c++2.cc: New file.
24624         * modules/locale-tests (Files): Add it.
24625         (Makefile.am): Compile it for test-locale-c++.
24626         * tests/test-math-c++2.cc: New file.
24627         * modules/math-tests (Files): Add it.
24628         (Makefile.am): Compile it for test-math-c++.
24629         * tests/test-signal-c++2.cc: New file.
24630         * modules/signal-tests (Files): Add it.
24631         (Makefile.am): Compile it for test-signal-c++.
24632         * tests/test-stdio-c++2.cc: New file.
24633         * modules/stdio-tests (Files): Add it.
24634         (Makefile.am): Compile it for test-stdio-c++.
24635         * tests/test-stdlib-c++2.cc: New file.
24636         * modules/stdlib-tests (Files): Add it.
24637         (Makefile.am): Compile it for test-stdlib-c++.
24638         * tests/test-string-c++2.cc: New file.
24639         * modules/string-tests (Files): Add it.
24640         (Makefile.am): Compile it for test-string-c++.
24641         * tests/test-time-c++2.cc: New file.
24642         * modules/time-tests (Files): Add it.
24643         (Makefile.am): Compile it for test-time-c++.
24644         Reported by John W. Eaton <jwe@gnu.org>.
24645
24646 2010-03-13  Bruno Haible  <bruno@clisp.org>
24647
24648         * gnulib-tool (func_usage): Clarify which options are available for
24649         --create-testdir and --create-megatestdir.
24650
24651 2010-03-13  Bruno Haible  <bruno@clisp.org>
24652
24653         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24654         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24655         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24656         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24657         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24658         when appropriate.
24659         Reported by Jim Meyering.
24660
24661 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24662
24663         * gnulib-tool (func_import): Explain origin of code.
24664
24665 2010-03-12  Bruno Haible  <bruno@clisp.org>
24666
24667         Fix problem with automake's definition of CXXLINK.
24668         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24669         Reported by Simon Josefsson and Ludovic Courtès.
24670
24671 2010-03-12  Bruno Haible  <bruno@clisp.org>
24672
24673         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24674         stable releases.
24675
24676 2010-03-11  Bruno Haible  <bruno@clisp.org>
24677
24678         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24679         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24680         whether the system provides one variant or multiple variants of the
24681         function.
24682         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24683         C++ compilers.
24684         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24685         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24686         Reported by Jim Meyering.
24687
24688 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24689
24690         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24691
24692 2010-03-08  Bruno Haible  <bruno@clisp.org>
24693
24694         gnulib-tool: Add support for --libtool in --create-testdir.
24695         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24696         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24697
24698 2010-03-08  Eric Blake  <eblake@redhat.com>
24699
24700         gnulib-tool.texi: mention possibility of git submodule
24701         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24702         submodules.
24703         * doc/.gitignore: Ignore another generated file.
24704
24705 2010-03-08  Karl Berry  <karl@gnu.org>
24706
24707         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24708         of committing gnulib files while skipping others.
24709
24710 2010-03-07  Bruno Haible  <bruno@clisp.org>
24711
24712         Tests of module 'wctype' in C++ mode.
24713         * tests/test-wctype-c++.cc: New file.
24714         * modules/wctype-tests (Files): Add it and tests/signature.h.
24715         (Depends-on): Add ansi-c++-opt.
24716         (Makefile.am): Arrange to compile and run test-wctype-c++.
24717
24718         Tests of module 'wchar' in C++ mode.
24719         * tests/test-wchar-c++.cc: New file.
24720         * modules/wchar-tests (Files): Add it and tests/signature.h.
24721         (Depends-on): Add ansi-c++-opt.
24722         (Makefile.am): Arrange to compile and run test-wchar-c++.
24723         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24724         gl_MODULE_INDICATOR.
24725
24726         Tests of module 'unistd' in C++ mode.
24727         * tests/test-unistd-c++.cc: New file.
24728         * modules/unistd-tests (Files): Add it and tests/signature.h.
24729         (Depends-on): Add ansi-c++-opt.
24730         (Makefile.am): Arrange to compile and run test-unistd-c++.
24731         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24732         gl_MODULE_INDICATOR.
24733
24734         Tests of module 'time' in C++ mode.
24735         * tests/test-time-c++.cc: New file.
24736         * modules/time-tests (Files): Add it and tests/signature.h.
24737         (Depends-on): Add ansi-c++-opt.
24738         (Makefile.am): Arrange to compile and run test-time-c++.
24739         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24740
24741         Tests of module 'sys_time' in C++ mode.
24742         * tests/test-sys_time-c++.cc: New file.
24743         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24744         (Depends-on): Add ansi-c++-opt.
24745         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24746         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24747         gl_MODULE_INDICATOR.
24748
24749         Tests of module 'sys_stat' in C++ mode.
24750         * tests/test-sys_stat-c++.cc: New file.
24751         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24752         (Depends-on): Add ansi-c++-opt.
24753         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24754         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24755         gl_MODULE_INDICATOR.
24756
24757         Tests of module 'sys_socket' in C++ mode.
24758         * tests/test-sys_socket-c++.cc: New file.
24759         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24760         (Depends-on): Add ansi-c++-opt.
24761         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24763         gl_MODULE_INDICATOR.
24764
24765         Tests of module 'sys_select' in C++ mode.
24766         * tests/test-sys_select-c++.cc: New file.
24767         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24768         (Depends-on): Add ansi-c++-opt.
24769         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24770         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24771         gl_MODULE_INDICATOR.
24772
24773         Tests of module 'sys_ioctl' in C++ mode.
24774         * tests/test-sys_ioctl-c++.cc: New file.
24775         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24776         (Depends-on): Add ansi-c++-opt.
24777         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24779         gl_MODULE_INDICATOR.
24780
24781         Tests of module 'string' in C++ mode.
24782         * tests/test-string-c++.cc: New file.
24783         * modules/string-tests (Files): Add it and tests/signature.h.
24784         (Depends-on): Add ansi-c++-opt.
24785         (Makefile.am): Arrange to compile and run test-string-c++.
24786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24787         gl_MODULE_INDICATOR.
24788
24789         Tests of module 'stdlib' in C++ mode.
24790         * tests/test-stdlib-c++.cc: New file.
24791         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24792         (Depends-on): Add ansi-c++-opt.
24793         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24794         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24795         gl_MODULE_INDICATOR.
24796
24797         Tests of module 'stdio' in C++ mode.
24798         * tests/test-stdio-c++.cc: New file.
24799         * modules/stdio-tests (Files): Add it and tests/signature.h.
24800         (Depends-on): Add ansi-c++-opt.
24801         (Makefile.am): Arrange to compile and run test-stdio-c++.
24802         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24803         gl_MODULE_INDICATOR.
24804
24805         Tests of module 'spawn' in C++ mode.
24806         * tests/test-spawn-c++.cc: New file.
24807         * modules/spawn-tests (Files): Add it and tests/signature.h.
24808         (Depends-on): Add ansi-c++-opt.
24809         (Makefile.am): Arrange to compile and run test-spawn-c++.
24810         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24811         gl_MODULE_INDICATOR.
24812
24813         Tests of module 'signal' in C++ mode.
24814         * tests/test-signal-c++.cc: New file.
24815         * modules/signal-tests (Files): Add it and tests/signature.h.
24816         (Depends-on): Add ansi-c++-opt.
24817         (Makefile.am): Arrange to compile and run test-signal-c++.
24818         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24819         gl_MODULE_INDICATOR.
24820
24821         Tests of module 'search' in C++ mode.
24822         * tests/test-search-c++.cc: New file.
24823         * modules/search-tests (Files): Add it and tests/signature.h.
24824         (Depends-on): Add ansi-c++-opt.
24825         (Makefile.am): Arrange to compile and run test-search-c++.
24826         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24827         gl_MODULE_INDICATOR.
24828
24829         Tests of module 'math' in C++ mode.
24830         * tests/test-math-c++.cc: New file.
24831         * modules/math-tests (Files): Add it and tests/signature.h.
24832         (Depends-on): Add ansi-c++-opt.
24833         (Makefile.am): Arrange to compile and run test-math-c++.
24834         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24835
24836         Tests of module 'locale' in C++ mode.
24837         * tests/test-locale-c++.cc: New file.
24838         * modules/locale-tests (Files): Add it and tests/signature.h.
24839         (Depends-on): Add ansi-c++-opt.
24840         (Makefile.am): Arrange to compile and run test-locale-c++.
24841         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24842         gl_MODULE_INDICATOR.
24843
24844         Tests of module 'langinfo' in C++ mode.
24845         * tests/test-langinfo-c++.cc: New file.
24846         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24847         (Depends-on): Add ansi-c++-opt.
24848         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24849         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24850         gl_MODULE_INDICATOR.
24851
24852         Tests of module 'iconv-h' in C++ mode.
24853         * tests/test-iconv-h-c++.cc: New file.
24854         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24855         (Depends-on): Add ansi-c++-opt.
24856         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24857
24858         Tests of module 'glob' in C++ mode.
24859         * tests/test-glob-c++.cc: New file.
24860         * modules/glob-tests (Files): Add it.
24861         (Depends-on): Add ansi-c++-opt.
24862         (Makefile.am): Arrange to compile and run test-glob-c++.
24863
24864         Tests of module 'fcntl-h' in C++ mode.
24865         * tests/test-fcntl-h-c++.cc: New file.
24866         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24867         (Depends-on): Add ansi-c++-opt.
24868         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24869         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24870         gl_MODULE_INDICATOR.
24871
24872         Tests of module 'dirent' in C++ mode.
24873         * tests/test-dirent-c++.cc: New file.
24874         * modules/dirent-tests (Files): Add it and tests/signature.h.
24875         (Depends-on): Add ansi-c++-opt.
24876         (Makefile.am): Arrange to compile and run test-dirent-c++.
24877         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24878         gl_MODULE_INDICATOR.
24879
24880         New module 'ansi-c++-opt'.
24881         * modules/ansi-c++-opt: New file.
24882         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24883
24884         Document C++ namespace mode.
24885         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24886
24887         wctype: Avoid #define replacements in C++ mode.
24888         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24889         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24890         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24891         In C++, define a namespaced alias symbol.
24892         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24893         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24894         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24895         rule.
24896
24897         wchar: Avoid #define replacements in C++ mode.
24898         * lib/wchar.in.h: Include c++defs.h.
24899         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24900         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24901         symbol.
24902         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24903         * modules/wchar (Depends-on): Add c++defs.
24904         (Makefile.am): Update wchar.h rule.
24905
24906         unistd: Avoid #define replacements in C++ mode.
24907         * lib/unistd.in.h: Include c++defs.h.
24908         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24909         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24910         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24911         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24912         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24913         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24914         symbol.
24915         (environ): Update.
24916         * modules/unistd (Depends-on): Add c++defs.
24917         (Makefile.am): Update unistd.h rule.
24918
24919         time: Avoid #define replacements in C++ mode.
24920         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24921         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24922         define a namespaced alias symbol.
24923         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24924         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24925         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24926         * modules/time (Depends-on): Add c++defs, warn-on-use.
24927         (Makefile.am): Update time.h rule.
24928         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24929         * modules/nanosleep (configure.ac): Likewise.
24930         * modules/strptime (configure.ac): Likewise.
24931         * modules/timegm (configure.ac): Likewise.
24932
24933         sys_time: Avoid #define replacements in C++ mode.
24934         * lib/sys_time.in.h: Include c++defs.h.
24935         (gettimeofday): In C++, define a namespaced alias symbol.
24936         * modules/sys_time (Depends-on): Add c++defs.
24937         (Makefile.am): Update sys/time.h rule.
24938
24939         sys_stat: Avoid #define replacements in C++ mode.
24940         * lib/sys_stat.in.h: Include c++defs.h.
24941         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24942         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24943         namespaced alias symbol.
24944         In C++, define a namespaced alias symbol.
24945         * modules/sys_stat (Depends-on): Add c++defs.
24946         (Makefile.am): Update sys/stat.h rule.
24947
24948         sys_socket: Avoid #define replacements in C++ mode.
24949         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24950         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24951         definitions also when the system has a <sys/socket.h>.
24952         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24953         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24954         In C++, define a namespaced alias symbol.
24955         * modules/sys_socket (Depends-on): Add c++defs.
24956         (Makefile.am): Update sys/socket.h rule.
24957
24958         sys_select: Avoid #define replacements in C++ mode.
24959         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24960         definitions also when the system has a <sys/select.h>.
24961         (select): In C++, define a namespaced alias symbol.
24962         * modules/sys_select (Depends-on): Add c++defs.
24963         (Makefile.am): Update sys/select.h rule.
24964
24965         sys_ioctl: Avoid #define replacements in C++ mode.
24966         * lib/sys_ioctl.in.h: Include c++defs.h.
24967         (ioctl): In C++, define a namespaced alias symbol.
24968         * modules/sys_ioctl (Depends-on): Add c++defs.
24969         (Makefile.am): Update sys/ioctl.h rule.
24970
24971         string: Avoid #define replacements in C++ mode.
24972         * lib/string.in.h: Include c++defs.h.
24973         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24974         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24975         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24976         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24977         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24978         * modules/string (Depends-on): Add c++defs.
24979         (Makefile.am): Update string.h rule.
24980
24981         stdlib: Avoid #define replacements in C++ mode.
24982         * lib/stdlib.in.h: Include c++defs.h.
24983         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24984         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24985         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24986         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24987         symbol.
24988         * modules/stdlib (Depends-on): Add c++defs.
24989         (Makefile.am): Update stdlib.h rule.
24990
24991         stdio: Avoid #define replacements in C++ mode.
24992         * lib/stdio.in.h: Include c++defs.h.
24993         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24994         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24995         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24996         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24997         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24998         namespaced alias symbol.
24999         * modules/stdio (Depends-on): Add c++defs.
25000         (Makefile.am): Update stdio.h rule.
25001
25002         spawn: Avoid #define replacements in C++ mode.
25003         * lib/spawn.in.h: Include c++defs.h.
25004         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25005         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25006         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25007         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25008         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25009         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25010         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25011         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25012         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25013         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25014         In C++, define a namespaced alias symbol.
25015         * modules/spawn (Depends-on): Add c++defs.
25016         (Makefile.am): Update spawn.h rule.
25017
25018         signal: Avoid #define replacements in C++ mode.
25019         * lib/signal.in.h: Include c++defs.h.
25020         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25021         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25022         namespaced alias symbol.
25023         * modules/signal (Depends-on): Add c++defs.
25024         (Makefile.am): Update signal.h rule.
25025
25026         search: Avoid #define replacements in C++ mode.
25027         * lib/search.in.h: Include c++defs.h.
25028         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25029         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25030         symbol.
25031         * modules/search (Depends-on): Add c++defs.
25032         (Makefile.am): Update search.h rule.
25033
25034         math: Avoid #define replacements in C++ mode.
25035         * lib/math.in.h: Include c++defs.h.
25036         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25037         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25038         trunc, truncl): In C++, define a namespaced alias symbol.
25039         * modules/math (Depends-on): Add c++defs.
25040         (Makefile.am): Update math.h rule.
25041
25042         locale: Avoid #define replacements in C++ mode.
25043         * lib/locale.in.h: Include c++defs.h.
25044         (duplocale): In C++, define a namespaced alias symbol.
25045         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25046         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25047         * modules/locale (Depends-on): Add c++defs.
25048         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25049
25050         langinfo: Avoid #define replacements in C++ mode.
25051         * lib/langinfo.in.h: Include c++defs.h.
25052         (nl_langinfo): In C++, define a namespaced alias symbol.
25053         * modules/langinfo (Depends-on): Add c++defs.
25054         (Makefile.am): Update langinfo.h rule.
25055
25056         iconv-h: Avoid #define replacements in C++ mode.
25057         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25058         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25059         symbol.
25060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25061         whenever iconv is present.
25062         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25063         (Makefile.am): Update iconv.h rule.
25064
25065         glob: Avoid #define replacements in C++ mode.
25066         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25067         (_gl_glob_errfunc_fn): New type.
25068         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25069         symbol.
25070         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25071         (Makefile.am): Update glob.h rule.
25072
25073         fcntl-h: Avoid #define replacements in C++ mode.
25074         * lib/fcntl.in.h: Include c++defs.h.
25075         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25076         * modules/fcntl-h (Depends-on): Add c++defs.
25077         (Makefile.am): Update fcntl.h rule.
25078
25079         dirent: Avoid #define replacements in C++ mode.
25080         * lib/dirent.in.h: Include c++defs.h.
25081         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25082         namespaced alias symbol.
25083         (dirfd): Update declaration.
25084         * modules/dirent (Depends-on): Add c++defs.
25085         (Makefile.am): Update dirent.h rule.
25086
25087         ctype: Make it usable in C++ code.
25088         * lib/ctype.in.h: Include c++defs.h.
25089         (isblank): Declare as extern "C".
25090         * modules/ctype (Depends-on): Add c++defs.
25091         (Makefile.am): Update ctype.h rule.
25092
25093         New module 'c++defs'.
25094         * modules/c++defs: New file.
25095         * build-aux/c++defs.h: New file.
25096         Reported by John W. Eaton <jwe@gnu.org>.
25097
25098 2010-03-07  Bruno Haible  <bruno@clisp.org>
25099
25100         logb: Provide missing declaration for Cygwin.
25101         * lib/math.in.h (logb): New declaration.
25102         * m4/logb.m4: New file.
25103         * modules/logb (Files): Add m4/logb.m4.
25104         (Depends-on): Add math.
25105         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25106         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25108         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25109         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25110
25111 2010-03-07  Bruno Haible  <bruno@clisp.org>
25112
25113         Fix test-cond link error.
25114         * tests/test-cond.c: Include <stdio.h>.
25115
25116 2010-03-07  Bruno Haible  <bruno@clisp.org>
25117
25118         Fix test-dirent-safer link error.
25119         * modules/dirent-safer-tests (Makefile.am): Define
25120         test_dirent_safer_LDADD.
25121
25122 2010-03-07  Bruno Haible  <bruno@clisp.org>
25123
25124         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25125         among default module list.
25126
25127 2010-03-07  Bruno Haible  <bruno@clisp.org>
25128
25129         Fix link error on platforms with GNU libiconv.
25130         * modules/unistr/u8-strcoll-tests (Makefile): Define
25131         test_u8_strcoll_LDADD.
25132         * modules/unistr/u16-strcoll-tests (Makefile): Define
25133         test_u16_strcoll_LDADD.
25134         * modules/unistr/u32-strcoll-tests (Makefile): Define
25135         test_u32_strcoll_LDADD.
25136
25137 2010-03-07  Bruno Haible  <bruno@clisp.org>
25138
25139         Use POSIX declarations for socket functions.
25140         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25141         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25142         rpl_sendto): Change declaration to match POSIX.
25143         * lib/connect.c (rpl_connect): Likewise.
25144         * lib/accept.c (rpl_accept): Likewise.
25145         * lib/bind.c (rpl_bind): Likewise.
25146         * lib/getpeername.c (rpl_getpeername): Likewise.
25147         * lib/getsockname.c (rpl_getsockname): Likewise.
25148         * lib/recv.c (rpl_recv): Likewise.
25149         * lib/send.c (rpl_send): Likewise.
25150         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25151         * lib/sendto.c (rpl_sendto): Likewise.
25152
25153 2010-03-06  Bruno Haible  <bruno@clisp.org>
25154
25155         Clarify access, euidaccess, faccessat.
25156         * doc/posix-functions/faccessat.texi: Mention security problem under
25157         "Other problems", not "Portability problems".
25158         * doc/posix-functions/access.texi: Likewise. Mention a related security
25159         problem.
25160         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25161         * lib/euidaccess.c: Add comments about platforms.
25162         * lib/unistd.in.h (access, euidaccess): Add warnings.
25163
25164 2010-03-07  Bruno Haible  <bruno@clisp.org>
25165
25166         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25167         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25168         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25169         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25170         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25171         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25172         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25173         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25174         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25176         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25177         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25178         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25179         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25180         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25181         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25182         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25183         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25184         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25185         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25186         Likewise.
25187         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25188         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25189         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25190         Likewise.
25191         * tests/test-spawn.c (main): Make it work when
25192         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25193
25194 2010-03-07  Bruno Haible  <bruno@clisp.org>
25195
25196         Fix incorrect Makefile.am generation in German locale.
25197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25198         Execute sed command with character range in C locale.
25199
25200 2010-03-06  Bruno Haible  <bruno@clisp.org>
25201
25202         Tests for module 'iconv-h'.
25203         * modules/iconv-h-tests: New file.
25204         * tests/test-iconv-h.c: New file.
25205
25206         New module 'iconv-h'.
25207         * modules/iconv-h: New file.
25208         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25209         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25210         (configure.ac): Remove gl_ICONV_H.
25211         (Makefile.am): Remove rule for iconv.h.
25212
25213 2010-03-06  Bruno Haible  <bruno@clisp.org>
25214
25215         More consistent naming of *.m4 files.
25216         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25217         * modules/wctype (Files): Update.
25218
25219         More consistent naming of *.m4 files.
25220         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25221         * modules/wchar (Files): Update.
25222
25223 2010-03-06  Jim Meyering  <meyering@redhat.com>
25224
25225         euidaccess: relax license to LGPLv2+
25226         * modules/euidaccess (License): Relax to LGPLv2+.
25227
25228 2010-03-06  Bruno Haible  <bruno@clisp.org>
25229
25230         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25231         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25232         (Makefile.am): Augment lib_SOURCES instead.
25233
25234 2010-03-04  Jim Meyering  <meyering@redhat.com>
25235
25236         utime: remove obsolete module
25237         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25238         unnecessary for years, and has been marked as obsolete for 10 months.
25239         * modules/utime: Remove file.
25240         * lib/utime.c: Remove file.
25241         * m4/utime.m4: Remove file.
25242         * m4/utimes-null.m4: Remove file.
25243         * doc/posix-functions/utime.texi (utime): Remove reference to
25244         the module.  Move the sole "fixed by gnulib" item into the
25245         "problems not fixed by Gnulib" list.
25246         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25247
25248 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25249
25250         * modules/exit (License): Relax license to LGPLv2+.
25251         (Status): Mark as obsolete.
25252         * NEWS: Mention deprecated 'exit' module.
25253         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25254         of now obsolete 'exit'.
25255
25256 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25257
25258         fts-lgpl: remove unused module
25259         * modules/fts-lgpl: Remove.
25260         * MODULES.html.sh (func_all_modules): Adjust.
25261         * check-module (find_included_lib_files): Adjust.
25262         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25263
25264 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25265
25266         copy-acl: enhance Solaris ACL error handling
25267         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25268         * lib/set-mode-acl.c (qset_acl): Likewise.
25269
25270 2010-03-02  Bruno Haible  <bruno@clisp.org>
25271
25272         spawn: Don't override the system defined values on FreeBSD 8.
25273         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25274         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25275         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25276         if HAVE_POSIX_SPAWN is 1.
25277         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25278
25279 2010-03-01  Bruno Haible  <bruno@clisp.org>
25280
25281         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25282         regarding Automake.
25283
25284 2010-02-25  Bruno Haible  <bruno@clisp.org>
25285
25286         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25287         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25288         setting, not afterwards.
25289         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25290
25291 2010-02-24  Eric Blake  <eblake@redhat.com>
25292
25293         bootstrap, git-version-gen: use timestamp
25294         * build-aux/git-version-gen (scriptversion): Force UTC.
25295         * build-aux/bootstrap (scriptversion): New variable.
25296
25297         bootstrap: allow older git
25298         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25299         older than 1.6.4.  Requested by the libvirt project.
25300
25301 2010-02-23  Eric Blake  <eblake@redhat.com>
25302
25303         warn-on-use: work with old autoconf
25304         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25305         AS_VAR semantics of autoconf 2.60.
25306         Reported by Bruno Haible.
25307
25308         bootstrap: improve some comments
25309         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25310         clarification comments.
25311
25312         gettimeofday: provide correct function
25313         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25314         when replacement is declared, otherwise provide gettimeofday.
25315         Reported by Michael Goffioul.
25316
25317 2010-02-23  Jim Meyering  <meyering@redhat.com>
25318
25319         lib-ignore: relax license to "unlimited", not LGPLv2+
25320         * modules/lib-ignore (License): Relax to "unlimited".
25321
25322 2010-02-23  Jim Meyering  <meyering@redhat.com>
25323
25324         lib-ignore: relax license to LGPLv2+
25325         * modules/lib-ignore (License): Relax to LGPLv2+.
25326
25327 2010-02-22  Eric Blake  <eblake@redhat.com>
25328
25329         lseek: avoid bash 3.2 broken pipe bug
25330         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25331         warning from bash 3.2.
25332         Reported by Ben Pfaff, with analysis from Bruno Haible.
25333
25334         bootstrap: support non-FSF copyright holder
25335         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25336         bootstrap.conf override of COPYRIGHT_HOLDER.
25337         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25338
25339         bootstrap: interoperate with gettext 0.14.1
25340         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25341
25342         bootstrap: allow for alternate submodule location
25343         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25344         hardcoding submodule location.
25345         (gnulib_mk): Allow direct use of Makefile.am.
25346
25347         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25348         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25349         rather than reconfiguring where the submodule points.
25350
25351         gettimeofday: restore support for platforms that lack function
25352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25353         replacement if function is missing.
25354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25355         * modules/sys_time (Makefile.am): Substitute it.
25356         * lib/sys_time.in.h (gettimeofday): Check it.
25357         Reported by Michael Goffioul.
25358
25359 2010-02-21  Bruno Haible  <bruno@clisp.org>
25360
25361         * lib/stdio.in.h (obstack_printf): Fix typo.
25362
25363 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25364
25365         vc-list-files: use bzr ls's -R option
25366         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25367         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25368
25369 2010-02-21  Jim Meyering  <meyering@redhat.com>
25370
25371         init.sh: fix EXEEXT shims to work also for names like test-prog
25372         * tests/init.sh: Re-exec a better shell, when needed.
25373         If the current shell lacks support for posix $(...), an init.sh-using
25374         test will now try to find a shell that supports that.  If EXEEXT is
25375         nonempty, we also require support for hyphen-in-alias-name and shell
25376         substitutions like ${var#glob}.  Failure to find such a shell results
25377         in a skipped test.
25378
25379 2010-02-21  Bruno Haible  <bruno@clisp.org>
25380
25381         Really work around around "broken pipe" error message from bash 3.2.
25382         * gnulib-tool (func_reset_sigpipe): Remove function.
25383         (echo): In bash 3.2, define to a function that uses printf.
25384         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25385
25386 2010-02-20  Bruno Haible  <bruno@clisp.org>
25387
25388         Restore support for automake 1.9.6 with autoconf 2.61.
25389         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25390         Reported by James Youngman <jay@gnu.org>.
25391
25392 2010-02-20  Bruno Haible  <bruno@clisp.org>
25393
25394         Improve *printf warning condition.
25395         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25396         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25397         and the function is overridden due to SIGPIPE emulation.
25398
25399 2010-02-20  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/stdio.in.h: Tweak comments.
25402
25403 2010-02-19  Bruno Haible  <bruno@clisp.org>
25404
25405         Make it easier to find modules. New gnulib-tool option '--find'.
25406         * gnulib-tool: New option --find.
25407         (func_usage): Document it.
25408         (func_sanitize_modulelist): New function, extracted from
25409         func_all_modules.
25410         (func_all_modules): Invoke it.
25411         * doc/gnulib-tool.texi (Which modules?): New node.
25412
25413 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25414
25415         * lib/sys_select.in.h: Provide select replacement even if
25416         sys/select.h exists on a system, for Interix.
25417
25418 2010-02-18  Jim Meyering  <meyering@redhat.com>
25419
25420         init.sh: don't use $(...) just yet
25421         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25422         to accommodate e.g., Solaris' /bin/sh.
25423
25424 2010-02-17  Bruno Haible  <bruno@clisp.org>
25425
25426         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25427         Reported by Ludovic Courtès <ludo@gnu.org>.
25428
25429 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25430
25431         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25432         linking with -lintl.
25433
25434 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25435
25436         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25437         if not provided by the system's netdb.h.  Reported by
25438         ludo@gnu.org (Ludovic Courtès).
25439
25440 2010-02-15  Jim Meyering  <meyering@redhat.com>
25441
25442         init.sh: improve portability and efficiency
25443         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25444         "dummy" in a for loop.
25445         Use '!', not '^' to select the complement of a character set used
25446         in a "case" statement.
25447         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25448         Suggestions from Eric Blake.
25449
25450         init.sh: automatically accommodate programs with the .exe suffix
25451         Automatically arrange for an invocation of "prog" to execute the
25452         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25453         may use the simpler "prog", yet still work when built on a system
25454         that requires specifying the added suffix.
25455         Do this by constructing a function named "prog" that invokes
25456         "prog.exe" for each .exe file in selected directories.
25457         * tests/init.sh (find_exe_basenames_): New function.
25458         (create_exe_shim_functions_): New function.
25459         (path_prepend_): Use it.
25460
25461         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25462         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25463         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25464
25465 2010-02-14  Jim Meyering  <meyering@redhat.com>
25466
25467         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25468         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25469         (sc_prohibit_hash_pjw_without_use): New rule.
25470
25471         maint.mk: allow the default upload destination dir to be overridden
25472         * top/maint.mk (upload_dest_dir_): Define with a default that
25473         preserves the status quo.
25474         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25475         Reported by Peter Simons.
25476
25477         maint.mk: prohibit inclusion of "hash.h" without_use
25478         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25479
25480 2010-02-10  Jim Meyering  <meyering@redhat.com>
25481
25482         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25483         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25484
25485 2010-02-09  Eric Blake  <ebb9@byu.net>
25486         and Bruno Haible  <bruno@clisp.org>
25487
25488         obstack-printf-posix: ensure declaration
25489         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25490         extracted from gl_FUNC_OBSTACK_PRINTF.
25491         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25492         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25493         Likewise.
25494         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25495         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25496         0.
25497
25498 2010-02-08  Bruno Haible  <bruno@clisp.org>
25499
25500         gnulib-tool: Fix typo in 2010-02-07 commit.
25501         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25502         Reported by Eric Blake.
25503
25504 2010-02-07  Bruno Haible  <bruno@clisp.org>
25505
25506         gnulib-tool: Fix up caching patches.
25507         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25508         option --no-cache. Use associative arrays when supported by the shell.
25509         (sed_comments): New variable.
25510         (modcache): Renamed from do_cache.
25511         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25512         abbreviate unnecessarily.
25513         (have_associative): New variable.
25514         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25515         way also for ksh and zsh.
25516         (func_init_sed_convert_to_cache_statements): New function, extracted
25517         from func_cache_lookup_module. Add support for associative arrays.
25518         Don't set the c_MODULE_cached variable here. Ignore all lines before
25519         the first field header. Remove only the final newline, not all trailing
25520         newlines. Support empty fields correctly. Limit the use of 'eval' to
25521         assignments.
25522         (func_get_description, func_get_status, func_get_notice,
25523         func_get_applicability, func_get_filelist, func_get_dependencies,
25524         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25525         func_get_automake_snippet, func_get_include_directive,
25526         func_get_link_directive, func_get_license, func_get_maintainer):
25527         Update documentation. List the unoptimized code first. Add support for
25528         associative arrays. Limit the use of 'eval' to assignments.
25529         (func_get_applicability): Undo stylistic pessimisations.
25530         (func_get_automake_snippet, func_get_include_directive): Reduce code
25531         duplication.
25532         (func_modules_transitive_closure, func_modules_add_dummy,
25533         func_modules_notice, func_modules_to_filelist, func_add_file,
25534         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25535         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25536         func_create_testdir, func_create_megatestdir): Update documentation.
25537
25538 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25539
25540         * gnulib-tool (func_cache_lookup_module): Store the module name
25541         belonging to the cache variable; error out if two different
25542         module names map to the same cache variable name.
25543
25544 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25545
25546         gnulib-tool: Make caching optional.
25547         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25548         Update matching short versions of --no-changelog.
25549         (func_usage): Update.
25550         (sed_extract_cache_prog): Renamed from ...
25551         (sed_extract_prog): ... this; revert to old extraction script.
25552         (func_get_description, func_get_status)
25553         (func_get_notice, func_get_applicability, func_get_filelist)
25554         (func_get_dependencies, func_get_autoconf_early_snippet)
25555         (func_get_autoconf_snippet, func_get_automake_snippet)
25556         (func_get_include_directive, func_get_link_directive)
25557         (func_get_license, func_get_maintainer): If $do_cache is false,
25558         use old, non-caching extraction scripts.
25559         Suggestion by Bruno Haible.
25560
25561 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25562
25563         gnulib-tool: cache module metainformation.
25564         * gnulib-tool (sed_extract_prog): Match newline before each
25565         header, and rewrite header to a shell variable suffix.
25566         (func_cache_var, func_cache_lookup_module): New functions,
25567         to turn a module name into a cache variable prefix, and to
25568         look up and cache module metainformation.
25569         (func_get_description, func_get_status)
25570         (func_get_notice, func_get_applicability, func_get_filelist)
25571         (func_get_dependencies, func_get_autoconf_early_snippet)
25572         (func_get_autoconf_snippet, func_get_automake_snippet)
25573         (func_get_include_directive, func_get_link_directive)
25574         (func_get_license, func_get_maintainer): Use
25575         func_cache_lookup_module.
25576
25577 2010-02-07  Bruno Haible  <bruno@clisp.org>
25578
25579         fnctl: Fix missing dependency.
25580         * modules/fcntl (Depends-on): Add getdtablesize.
25581         Reported by John W. Eaton <jwe@gnu.org>.
25582
25583 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25584
25585         Argp: fix recognition of short alias options.
25586
25587         * lib/argp-parse.c (convert_options): Fix improper use of
25588         `|' between character values.
25589         * tests/test-argp.c (group1_option): New alias option
25590         --read (-r).
25591         (group1_parser): Special handling for 'r'.
25592         (test15): New test case.
25593         (test_fun): Add test15.
25594         * tests/test-argp-2.sh: Update expected --help and --usage
25595         outputs.
25596
25597 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25598
25599         * tests/test-argp.c: Fix indentation.
25600
25601 2010-02-04  Eric Blake  <ebb9@byu.net>
25602
25603         gettimeofday: expose type of second argument
25604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25605         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25606         * tests/test-gettimeofday.c: Use it to silence warning.
25607         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25608         the issue.
25609
25610 2010-02-03  Jim Meyering  <meyering@redhat.com>
25611
25612         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25613         * lib/regcomp.c (TYPE_SIGNED): Define.
25614         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25615
25616         regcomp.c: avoid a new -Wshadow warning
25617         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25618
25619 2010-02-01  Jim Meyering  <meyering@redhat.com>
25620
25621         removing useless parentheses in cpp #define directives
25622         For motivation, see commit c0221df4, "define STREQ(a,b)
25623         consistently, removing useless parentheses"
25624         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25625         * lib/mountlist.c (MNT_IGNORE): Likewise.
25626         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25627
25628 2010-02-01  Eric Blake  <ebb9@byu.net>
25629
25630         sys_time: use link-warning
25631         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25632         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25633         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25634         * modules/sys_time (Depends-on): Add warn-on-use.
25635         (Makefile.am): Always build replacement.
25636         (configure.ac): Update substitutions.
25637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25638         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25639         bother with SYS_TIME_H.
25640         * modules/gettimeofday (configure.ac): Declare indicator.
25641         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25642         in use.
25643
25644         closein-tests: silence compiler warning
25645         * tests/test-closein.c (main): Ignore fread result.
25646         * modules/closein-tests (Depends-on): Add ignore-value.
25647
25648         tests: silence warning about system return
25649         * tests/test-areadlink-with-size.c (main): Ignore system result.
25650         * tests/test-areadlink.c (main): Likewise.
25651         * tests/test-areadlinkat-with-size.c (main): Likewise.
25652         * tests/test-areadlinkat.c (main): Likewise.
25653         * tests/test-canonicalize-lgpl.c (main): Likewise.
25654         * tests/test-canonicalize.c (main): Likewise.
25655         * tests/test-chown.c (main): Likewise.
25656         * tests/test-fchownat.c (main): Likewise.
25657         * tests/test-fdutimensat.c (main): Likewise.
25658         * tests/test-fstatat.c (main): Likewise.
25659         * tests/test-futimens.c (main): Likewise.
25660         * tests/test-lchown.c (main): Likewise.
25661         * tests/test-link.c (main): Likewise.
25662         * tests/test-linkat.c (main): Likewise.
25663         * tests/test-lstat.c (main): Likewise.
25664         * tests/test-mkdir.c (main): Likewise.
25665         * tests/test-mkdirat.c (main): Likewise.
25666         * tests/test-mkfifo.c (main): Likewise.
25667         * tests/test-mkfifoat.c (main): Likewise.
25668         * tests/test-mknod.c (main): Likewise.
25669         * tests/test-readlink.c (main): Likewise.
25670         * tests/test-remove.c (main): Likewise.
25671         * tests/test-rename.c (main): Likewise.
25672         * tests/test-renameat.c (main): Likewise.
25673         * tests/test-rmdir.c (main): Likewise.
25674         * tests/test-symlink.c (main): Likewise.
25675         * tests/test-symlinkat.c (main): Likewise.
25676         * tests/test-unlink.c (main): Likewise.
25677         * tests/test-unlinkat.c (main): Likewise.
25678         * tests/test-utimens.c (main): Likewise.
25679         * tests/test-utimensat.c (main): Likewise.
25680         * modules/areadlink-tests (Depends-on): Add ignore-value.
25681         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25682         * modules/areadlinkat-tests (Depends-on): Likewise.
25683         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25684         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25685         * modules/canonicalize-tests (Depends-on): Likewise.
25686         * modules/chown-tests (Depends-on): Likewise.
25687         * modules/fdutimensat-tests (Depends-on): Likewise.
25688         * modules/futimens-tests (Depends-on): Likewise.
25689         * modules/lchown-tests (Depends-on): Likewise.
25690         * modules/link-tests (Depends-on): Likewise.
25691         * modules/linkat-tests (Depends-on): Likewise.
25692         * modules/lstat-tests (Depends-on): Likewise.
25693         * modules/mkdir-tests (Depends-on): Likewise.
25694         * modules/mkfifo-tests (Depends-on): Likewise.
25695         * modules/mkfifoat-tests (Depends-on): Likewise.
25696         * modules/mknod-tests (Depends-on): Likewise.
25697         * modules/openat-tests (Depends-on): Likewise.
25698         * modules/readlink-tests (Depends-on): Likewise.
25699         * modules/remove-tests (Depends-on): Likewise.
25700         * modules/rename-tests (Depends-on): Likewise.
25701         * modules/renameat-tests (Depends-on): Likewise.
25702         * modules/rmdir-tests (Depends-on): Likewise.
25703         * modules/symlink-tests (Depends-on): Likewise.
25704         * modules/symlinkat-tests (Depends-on): Likewise.
25705         * modules/unlink-tests (Depends-on): Likewise.
25706         * modules/utimens-tests (Depends-on): Likewise.
25707         * modules/utimensat-tests (Depends-on): Likewise.
25708
25709 2010-01-31  Bruno Haible  <bruno@clisp.org>
25710
25711         Perform the same test for many <math.h> functions.
25712         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25713         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25714         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25715         of gl_MATHFUNC.
25716         * modules/acos (configure.ac): Likewise.
25717         * modules/asin (configure.ac): Likewise.
25718         * modules/atan (configure.ac): Likewise.
25719         * modules/atan2 (configure.ac): Likewise.
25720         * modules/cbrt (configure.ac): Likewise.
25721         * modules/copysign (configure.ac): Likewise.
25722         * modules/cos (configure.ac): Likewise.
25723         * modules/cosh (configure.ac): Likewise.
25724         * modules/erf (configure.ac): Likewise.
25725         * modules/erfc (configure.ac): Likewise.
25726         * modules/exp (configure.ac): Likewise.
25727         * modules/fmod (configure.ac): Likewise.
25728         * modules/hypot (configure.ac): Likewise.
25729         * modules/j0 (configure.ac): Likewise.
25730         * modules/j1 (configure.ac): Likewise.
25731         * modules/jn (configure.ac): Likewise.
25732         * modules/lgamma (configure.ac): Likewise.
25733         * modules/log (configure.ac): Likewise.
25734         * modules/log10 (configure.ac): Likewise.
25735         * modules/log1p (configure.ac): Likewise.
25736         * modules/pow (configure.ac): Likewise.
25737         * modules/remainder (configure.ac): Likewise.
25738         * modules/sin (configure.ac): Likewise.
25739         * modules/sinh (configure.ac): Likewise.
25740         * modules/tan (configure.ac): Likewise.
25741         * modules/tanh (configure.ac): Likewise.
25742         * modules/y0 (configure.ac): Likewise.
25743         * modules/y1 (configure.ac): Likewise.
25744         * modules/yn (configure.ac): Likewise.
25745         Suggested by Paolo Bonzini.
25746
25747 2010-01-31  Bruno Haible  <bruno@clisp.org>
25748
25749         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25750
25751 2010-01-31  Bruno Haible  <bruno@clisp.org>
25752
25753         Work around getdelim() bug on FreeBSD 8.0.
25754         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25755         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25756         not work.
25757         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25758         is 1.
25759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25760         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25761         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25762         a non-zero size.
25763         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25764
25765 2010-01-31  Bruno Haible  <bruno@clisp.org>
25766
25767         Work around getline() bug on FreeBSD 8.0.
25768         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25769         and a non-zero size.
25770         * tests/test-getline.c (main): Likewise.
25771         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25772         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25773
25774 2010-01-28  Eric Blake  <ebb9@byu.net>
25775
25776         regex: fix build failure
25777         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25778         platforms.
25779
25780 2010-01-28  Jim Meyering  <meyering@redhat.com>
25781
25782         regex: do not ignore memory allocation failure
25783         * lib/regex_internal.c (create_cd_newstate): Detect
25784         re_node_set_init_copy failure.   Extracted from glibc commit
25785         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25786
25787         regex: sync more white-space changes from libc
25788         * lib/regex_internal.c: White-space only changes.
25789         * lib/regexec.c: Likewise.
25790
25791         regex: add many uses of __attribute_warn_unused_result__
25792         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25793         * lib/regexec.c: Likewise.
25794         Extracted from a messy glibc commit.
25795
25796         regcomp.c: spelling and merge-artifact from glibc
25797         * lib/regcomp.c: Merge remainder of glibc's
25798         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25799
25800         regcomp.c: sync white-space changes from glibc
25801         * lib/regcomp.c: Merge to accommodate white space
25802         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25803
25804         regcomp.c: do not ignore internal return values
25805         * lib/regcomp.c: Do not ignore internal return values.
25806         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25807         but without its white-space changes and spelling fixes.
25808
25809         regex_internal.h: define __attribute_warn_unused_result__
25810         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25811
25812         maint: add a syntax-check rule to check for vulnerable Makefile.in
25813         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25814
25815 2010-01-27  Jim Meyering  <meyering@redhat.com>
25816
25817         ncftpput-ftp: clean up spaces
25818         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25819         Remove trailing blanks.
25820
25821 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25822
25823         * build-aux/git-version-gen: Fix copyright statement.
25824         * build-aux/gnupload: Likewise.
25825         * tests/test-arcfour.c: Likewise.
25826         * tests/test-arctwo.c: Likewise.
25827         * tests/test-count-one-bits.c: Likewise.
25828         * tests/test-crc.c: Likewise.
25829         * tests/test-des.c: Likewise.
25830         * tests/test-gc-arcfour.c: Likewise.
25831         * tests/test-gc-arctwo.c: Likewise.
25832         * tests/test-gc-des.c: Likewise.
25833         * tests/test-gc-hmac-md5.c: Likewise.
25834         * tests/test-gc-hmac-sha1.c: Likewise.
25835         * tests/test-gc-md2.c: Likewise.
25836         * tests/test-gc-md4.c: Likewise.
25837         * tests/test-gc-md5.c: Likewise.
25838         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25839         * tests/test-gc-rijndael.c: Likewise.
25840         * tests/test-gc-sha1.c: Likewise.
25841         * tests/test-gc.c: Likewise.
25842         * tests/test-gethostname.c: Likewise.
25843         * tests/test-gettimeofday.c: Likewise.
25844         * tests/test-hash.c: Likewise.
25845         * tests/test-hmac-md5.c: Likewise.
25846         * tests/test-hmac-sha1.c: Likewise.
25847         * tests/test-md2.c: Likewise.
25848         * tests/test-md4.c: Likewise.
25849         * tests/test-md5.c: Likewise.
25850         * tests/test-memchr.c: Likewise.
25851         * tests/test-memchr2.c: Likewise.
25852         * tests/test-memcmp.c: Likewise.
25853         * tests/test-memmem.c: Likewise.
25854         * tests/test-memrchr.c: Likewise.
25855         * tests/test-rawmemchr.c: Likewise.
25856         * tests/test-read-file.c: Likewise.
25857         * tests/test-rijndael.c: Likewise.
25858         * tests/test-sockets.c: Likewise.
25859         * tests/test-strchrnul.c: Likewise.
25860         * tests/test-strstr.c: Likewise.
25861         * tests/test-strtod.c: Likewise.
25862         * build-aux/ncftpput-ftp: Likewise.
25863
25864 2010-01-26  Eric Blake  <ebb9@byu.net>
25865
25866         ignore-value: update recommended header name
25867         * modules/ignore-value (Include): Only use <> for headers that
25868         exist in glibc.
25869
25870 2010-01-26  Jim Meyering  <meyering@redhat.com>
25871
25872         test-userspec.c: avoid compiler warnings
25873         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25874         and "initialization discards qualifiers..." warnings.
25875         Put the first "uid" in its own scope, and make char* members "const".
25876
25877 2010-01-25  Bruno Haible  <bruno@clisp.org>
25878
25879         gnulib-tool: Make warning diagnostics consistent.
25880         * gnulib-tool (func_warning): New function.
25881         Use it everywhere where gnulib-tool produces output to stderr and it is
25882         not a fatal error.
25883
25884 2010-01-25  Bruno Haible  <bruno@clisp.org>
25885
25886         Fix test dependencies.
25887         * modules/xstrtol-tests (Depends-on): Add inttypes.
25888         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25889
25890 2010-01-25 Pádraig Brady <P@draigBrady.com>
25891
25892         syntax-check: detect incorrect boolean macro values in config.h
25893         * modules/maintainer-makefile (configure.ac): Parameterize the location
25894         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25895         The logic is from Eric Blake and the location indicated by Jim Meyering.
25896         Note the more natural CONFIG_HEADER name is prohibited by automake
25897         for backwards compatibility reasons.
25898         * top/maint.mk (sc_Wundef_boolean): New rule.
25899
25900 2010-01-25  Jim Meyering  <meyering@redhat.com>
25901
25902         bootstrap: detect MacOS 10.6's shasum, too
25903         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25904         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25905
25906 2010-01-23  Jim Meyering  <meyering@redhat.com>
25907
25908         xstrtoll: new module
25909         * modules/xstrtoll: New file.
25910         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25911         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25912         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25913         ./configure fails if you use this module and lack "long long".
25914         * modules/xstrtoll-tests: New module.
25915         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25916         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25917         new init.sh-based test framework.
25918
25919 2010-01-24  Bruno Haible  <bruno@clisp.org>
25920
25921         Tests for module 'yn'.
25922         * modules/yn-tests: New file.
25923         * tests/test-yn.c: New file.
25924
25925         Tests for module 'y1'.
25926         * modules/y1-tests: New file.
25927         * tests/test-y1.c: New file.
25928
25929         Tests for module 'y0'.
25930         * modules/y0-tests: New file.
25931         * tests/test-y0.c: New file.
25932
25933         Tests for module 'tanh'.
25934         * modules/tanh-tests: New file.
25935         * tests/test-tanh.c: New file.
25936
25937         Tests for module 'tan'.
25938         * modules/tan-tests: New file.
25939         * tests/test-tan.c: New file.
25940
25941         Tests for module 'sqrt'.
25942         * modules/sqrt-tests: New file.
25943         * tests/test-sqrt.c: New file.
25944
25945         Tests for module 'sinh'.
25946         * modules/sinh-tests: New file.
25947         * tests/test-sinh.c: New file.
25948
25949         Tests for module 'sin'.
25950         * modules/sin-tests: New file.
25951         * tests/test-sin.c: New file.
25952
25953         Tests for module 'rint'.
25954         * modules/rint-tests: New file.
25955         * tests/test-rint.c: New file.
25956
25957         Tests for module 'remainder'.
25958         * modules/remainder-tests: New file.
25959         * tests/test-remainder.c: New file.
25960
25961         Tests for module 'pow'.
25962         * modules/pow-tests: New file.
25963         * tests/test-pow.c: New file.
25964
25965         Tests for module 'nextafter'.
25966         * modules/nextafter-tests: New file.
25967         * tests/test-nextafter.c: New file.
25968
25969         Tests for module 'modf'.
25970         * modules/modf-tests: New file.
25971         * tests/test-modf.c: New file.
25972
25973         Tests for module 'logb'.
25974         * modules/logb-tests: New file.
25975         * tests/test-logb.c: New file.
25976
25977         Tests for module 'log1p'.
25978         * modules/log1p-tests: New file.
25979         * tests/test-log1p.c: New file.
25980
25981         Tests for module 'log10'.
25982         * modules/log10-tests: New file.
25983         * tests/test-log10.c: New file.
25984
25985         Tests for module 'log'.
25986         * modules/log-tests: New file.
25987         * tests/test-log.c: New file.
25988
25989         Tests for module 'lgamma'.
25990         * modules/lgamma-tests: New file.
25991         * tests/test-lgamma.c: New file.
25992
25993         Tests for module 'ldexp'.
25994         * modules/ldexp-tests: New file.
25995         * tests/test-ldexp.c: New file.
25996
25997         Tests for module 'jn'.
25998         * modules/jn-tests: New file.
25999         * tests/test-jn.c: New file.
26000
26001         Tests for module 'j1'.
26002         * modules/j1-tests: New file.
26003         * tests/test-j1.c: New file.
26004
26005         Tests for module 'j0'.
26006         * modules/j0-tests: New file.
26007         * tests/test-j0.c: New file.
26008
26009         Tests for module 'hypot'.
26010         * modules/hypot-tests: New file.
26011         * tests/test-hypot.c: New file.
26012
26013         Tests for module 'fmod'.
26014         * modules/fmod-tests: New file.
26015         * tests/test-fmod.c: New file.
26016
26017         Tests for module 'fabs'.
26018         * modules/fabs-tests: New file.
26019         * tests/test-fabs.c: New file.
26020
26021         Tests for module 'exp'.
26022         * modules/exp-tests: New file.
26023         * tests/test-exp.c: New file.
26024
26025         Tests for module 'erfc'.
26026         * modules/erfc-tests: New file.
26027         * tests/test-erfc.c: New file.
26028
26029         Tests for module 'erf'.
26030         * modules/erf-tests: New file.
26031         * tests/test-erf.c: New file.
26032
26033         Tests for module 'cosh'.
26034         * modules/cosh-tests: New file.
26035         * tests/test-cosh.c: New file.
26036
26037         Tests for module 'cos'.
26038         * modules/cos-tests: New file.
26039         * tests/test-cos.c: New file.
26040
26041         Tests for module 'copysign'.
26042         * modules/copysign-tests: New file.
26043         * tests/test-copysign.c: New file.
26044
26045         Tests for module 'cbrt'.
26046         * modules/cbrt-tests: New file.
26047         * tests/test-cbrt.c: New file.
26048
26049         Tests for module 'atan2'.
26050         * modules/atan2-tests: New file.
26051         * tests/test-atan2.c: New file.
26052
26053         Tests for module 'atan'.
26054         * modules/atan-tests: New file.
26055         * tests/test-atan.c: New file.
26056
26057         Tests for module 'asin'.
26058         * modules/asin-tests: New file.
26059         * tests/test-asin.c: New file.
26060
26061         Tests for module 'acos'.
26062         * modules/acos-tests: New file.
26063         * tests/test-acos.c: New file.
26064
26065 2010-01-24  Bruno Haible  <bruno@clisp.org>
26066
26067         Fix tests for common <math.h> functions.
26068         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26069         code snippet that references the function pointer, rather than merely
26070         calling the function. Substitute the FUNC_LIBM variable.
26071         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26072         * modules/acos (configure.ac): Likewise.
26073         * modules/asin (configure.ac): Likewise.
26074         * modules/atan (configure.ac): Likewise.
26075         * modules/atan2 (configure.ac): Likewise.
26076         * modules/cbrt (configure.ac): Likewise.
26077         * modules/copysign (configure.ac): Likewise.
26078         * modules/cos (configure.ac): Likewise.
26079         * modules/cosh (configure.ac): Likewise.
26080         * modules/erf (configure.ac): Likewise.
26081         * modules/erfc (configure.ac): Likewise.
26082         * modules/exp (configure.ac): Likewise.
26083         * modules/fabs (configure.ac): Likewise.
26084         * modules/fmod (configure.ac): Likewise.
26085         * modules/hypot (configure.ac): Likewise.
26086         * modules/j0 (configure.ac): Likewise.
26087         * modules/j1 (configure.ac): Likewise.
26088         * modules/jn (configure.ac): Likewise.
26089         * modules/ldexp (configure.ac): Likewise.
26090         * modules/lgamma (configure.ac): Likewise.
26091         * modules/log (configure.ac): Likewise.
26092         * modules/log10 (configure.ac): Likewise.
26093         * modules/log1p (configure.ac): Likewise.
26094         * modules/logb (configure.ac): Likewise.
26095         * modules/modf (configure.ac): Likewise.
26096         * modules/nextafter (configure.ac): Likewise.
26097         * modules/pow (configure.ac): Likewise.
26098         * modules/remainder (configure.ac): Likewise.
26099         * modules/rint (configure.ac): Likewise.
26100         * modules/sin (configure.ac): Likewise.
26101         * modules/sinh (configure.ac): Likewise.
26102         * modules/tan (configure.ac): Likewise.
26103         * modules/tanh (configure.ac): Likewise.
26104         * modules/y0 (configure.ac): Likewise.
26105         * modules/y1 (configure.ac): Likewise.
26106         * modules/yn (configure.ac): Likewise.
26107
26108 2010-01-24  Bruno Haible  <bruno@clisp.org>
26109
26110         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26111         * tests/test-acosl.c (x): New variable.
26112         (main): Store argument in x and fetch it from x.
26113         * tests/test-asinl.c (x): New variable.
26114         (main): Store argument in x and fetch it from x.
26115         * tests/test-atanl.c (x): New variable.
26116         (main): Store argument in x and fetch it from x.
26117         * tests/test-cosl.c (x): New variable.
26118         (main): Store argument in x and fetch it from x.
26119         * tests/test-expl.c (x): New variable.
26120         (main): Store argument in x and fetch it from x.
26121         * tests/test-logl.c (x): New variable.
26122         (main): Store argument in x and fetch it from x.
26123         * tests/test-sinl.c (x): New variable.
26124         (main): Store argument in x and fetch it from x.
26125         * tests/test-sqrtl.c (x): New variable.
26126         (main): Store argument in x and fetch it from x.
26127         * tests/test-tanl.c (x): New variable.
26128         (main): Store argument in x and fetch it from x.
26129
26130 2010-01-24  Bruno Haible  <bruno@clisp.org>
26131
26132         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26133         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26134         assignments to the initial TESTS_ENVIRONMENT.
26135         * doc/gnulib.texi (Unit test modules): Document it.
26136         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26137         TESTS_ENVIRONMENT.
26138         * modules/btowc-tests (Makefile.am): Likewise.
26139         * modules/c-stack-tests (Makefile.am): Likewise.
26140         * modules/c-strcase-tests (Makefile.am): Likewise.
26141         * modules/copy-file-tests (Makefile.am): Likewise.
26142         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26143         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26144         * modules/mbrtowc-tests (Makefile.am): Likewise.
26145         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26146         * modules/mbscasestr-tests (Makefile.am): Likewise.
26147         * modules/mbschr-tests (Makefile.am): Likewise.
26148         * modules/mbscspn-tests (Makefile.am): Likewise.
26149         * modules/mbsinit-tests (Makefile.am): Likewise.
26150         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26151         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26152         * modules/mbspbrk-tests (Makefile.am): Likewise.
26153         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26154         * modules/mbsrchr-tests (Makefile.am): Likewise.
26155         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26156         * modules/mbsspn-tests (Makefile.am): Likewise.
26157         * modules/mbsstr-tests (Makefile.am): Likewise.
26158         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26159         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26160         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26161         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26162         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26163         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26164         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26165         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26166         * modules/wcrtomb-tests (Makefile.am): Likewise.
26167         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26168         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26169         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26170         assignments from TESTS_ENVIRONMENT.
26171         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26172         augmentation.
26173         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26174         * modules/atexit-tests (Makefile.am): Likewise.
26175         * modules/binary-io-tests (Makefile.am): Likewise.
26176         * modules/closein-tests (Makefile.am): Likewise.
26177         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26178         * modules/exclude-tests (Makefile.am): Likewise.
26179         * modules/fflush-tests (Makefile.am): Likewise.
26180         * modules/fpending-tests (Makefile.am): Likewise.
26181         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26182         * modules/freadahead-tests (Makefile.am): Likewise.
26183         * modules/freadptr-tests (Makefile.am): Likewise.
26184         * modules/freadseek-tests (Makefile.am): Likewise.
26185         * modules/fseek-tests (Makefile.am): Likewise.
26186         * modules/fseeko-tests (Makefile.am): Likewise.
26187         * modules/ftell-tests (Makefile.am): Likewise.
26188         * modules/ftello-tests (Makefile.am): Likewise.
26189         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26190         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26191         * modules/lseek-tests (Makefile.am): Likewise.
26192         * modules/parse-duration-tests (Makefile.am): Likewise.
26193         * modules/perror-tests (Makefile.am): Likewise.
26194         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26195         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26196         * modules/pipe-tests (Makefile.am): Likewise.
26197         * modules/pread-tests (Makefile.am): Likewise.
26198         * modules/printf-posix-tests (Makefile.am): Likewise.
26199         * modules/select-tests (Makefile.am): Likewise.
26200         * modules/sigpipe-tests (Makefile.am): Likewise.
26201         * modules/tsearch-tests (Makefile.am): Likewise.
26202         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26203         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26204         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26205         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26206         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26207         * modules/version-etc-tests (Makefile.am): Likewise.
26208         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26209         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26210         * modules/xalloc-die-tests (Makefile.am): Likewise.
26211         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26212         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26213         * modules/xstrtol-tests (Makefile.am): Likewise.
26214         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26215         * modules/yesno-tests (Makefile.am): Likewise.
26216         Suggested by Jim Meyering.
26217
26218 2010-01-24  Bruno Haible  <bruno@clisp.org>
26219
26220         More documentation.
26221         * doc/gnulib.texi (Writing modules): New chapter.
26222         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26223         the new chapter.
26224
26225 2010-01-24  Jim Meyering  <meyering@redhat.com>
26226
26227         maint.mk: do not prepend "./" after filtering
26228         * top/maint.mk (_prepend_srcdir_prefix): New variable
26229         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26230         "./" when $(srcdir) is ".".
26231
26232         define STREQ(a,b) consistently, removing useless parentheses
26233         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26234         since the only risk is that "a" or "b" contains an unparenthesized
26235         comma, but if either did that, STREQ would have 3 or more arguments.
26236         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26237         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26238         * lib/hash-triple.c (STREQ): Likewise.
26239         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26240         * lib/getugroups.c (STREQ): Likewise.
26241
26242 2010-01-23  Jim Meyering  <meyering@redhat.com>
26243
26244         maint.mk: fix syntax-check in a non-srcdir build directory
26245         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26246         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26247
26248 2010-01-22  Jim Meyering  <meyering@redhat.com>
26249
26250         userspec: add unit tests
26251         * tests/test-userspec.c: New file.
26252         * modules/userspec-tests: Likewise.
26253
26254 2010-01-21  Jim Meyering  <meyering@redhat.com>
26255
26256         maint.mk: handle source file names containing "." robustly
26257         * top/maint.mk (_dot_escaped_srcdir): Define.
26258         (VC_LIST): Use it in LHS of sed substitution.
26259
26260 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26261
26262         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26263         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26264         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26265         from a non-srcdir build.
26266
26267 2010-01-20  Eric Blake  <ebb9@byu.net>
26268
26269         warn-on-use: use instead of link-warning
26270         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26271         * modules/unistd (Depends-on, Makefile.am): Likewise.
26272         * modules/arpa_inet (Depends-on): Replace link-warning with
26273         warn-on-use.
26274         (Makefile.am): Update rules accordingly.
26275         * modules/ctype (Depends-on, Makefile.am): Likewise.
26276         * modules/dirent (Depends-on, Makefile.am): Likewise.
26277         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26278         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26279         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26280         * modules/locale (Depends-on, Makefile.am): Likewise.
26281         * modules/math (Depends-on, Makefile.am): Likewise.
26282         * modules/search (Depends-on, Makefile.am): Likewise.
26283         * modules/signal (Depends-on, Makefile.am): Likewise.
26284         * modules/spawn (Depends-on, Makefile.am): Likewise.
26285         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26286         * modules/string (Depends-on, Makefile.am): Likewise.
26287         * modules/strings (Depends-on, Makefile.am): Likewise.
26288         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26289         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26290         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26291         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26292         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26293         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26294         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26295         * modules/wchar (Depends-on, Makefile.am): Likewise.
26296         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26297         should be poisoned.
26298         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26299         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26300         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26301         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26302         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26303         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26304         * m4/math_h.m4 (gl_MATH_H): Likewise.
26305         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26306         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26307         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26308         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26309         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26310         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26311         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26312         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26313         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26319         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26320         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26321         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26322         GL_LINK_WARNING.
26323         * lib/ctype.in.h: Likewise.
26324         * lib/dirent.in.h: Likewise.
26325         * lib/fcntl.in.h: Likewise.
26326         * lib/inttypes.in.h: Likewise.
26327         * lib/langinfo.in.h: Likewise.
26328         * lib/locale.in.h: Likewise.
26329         * lib/math.in.h: Likewise.
26330         * lib/search.in.h: Likewise.
26331         * lib/signal.in.h: Likewise.
26332         * lib/spawn.in.h: Likewise.
26333         * lib/stdio.in.h: Likewise.
26334         * lib/stdlib.in.h: Likewise.
26335         * lib/string.in.h: Likewise.
26336         * lib/strings.in.h: Likewise.
26337         * lib/sys_file.in.h: Likewise.
26338         * lib/sys_ioctl.in.h: Likewise.
26339         * lib/sys_select.in.h: Likewise.
26340         * lib/sys_socket.in.h: Likewise.
26341         * lib/sys_stat.in.h: Likewise.
26342         * lib/sys_times.in.h: Likewise.
26343         * lib/sys_utsname.in.h: Likewise.
26344         * lib/unistd.in.h: Likewise.
26345         * lib/wchar.in.h: Likewise.
26346
26347 2010-01-20  Bruno Haible  <bruno@clisp.org>
26348
26349         Avoid duplicate -lm.
26350         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26351         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26352         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26354         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26355         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26356         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26357         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26358         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26359         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26360         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26361         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26362         Reported by Paolo Bonzini.
26363
26364 2010-01-19  Bruno Haible  <bruno@clisp.org>
26365
26366         langinfo, nl_langinfo: Relicense under LGPLv2+.
26367         * modules/langinfo (License): Change to LGPLv2+.
26368         * modules/nl_langinfo (License): Likewise.
26369         Patch by David Lutterkort <lutter@redhat.com>.
26370
26371 2010-01-19  Bruno Haible  <bruno@clisp.org>
26372
26373         Avoid compilation error with cc on OSF/1 5.1.
26374         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26375         statement, not before.
26376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26377
26378 2010-01-18  Bruno Haible  <bruno@clisp.org>
26379
26380         Avoid a link error due to the __printf__ symbol.
26381         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26382         and 2.6.x.
26383         (__format__, __printf__): Remove definitions.
26384         * lib/argp-fmtstream.h: Likewise.
26385         * lib/argp.h: Likewise.
26386         * lib/error.h: Likewise.
26387         * lib/vasnprintf.h: Likewise.
26388         * lib/xprintf.h: Likewise.
26389         * lib/xvasprintf.h: Likewise.
26390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26391
26392 2010-01-18  Bruno Haible  <bruno@clisp.org>
26393
26394         Tests for module 'tanl'.
26395         * modules/tanl-tests: New file.
26396         * tests/test-tanl.c: New file.
26397
26398         Tests for module 'sqrtl'.
26399         * modules/sqrtl-tests: New file.
26400         * tests/test-sqrtl.c: New file.
26401
26402         Tests for module 'sinl'.
26403         * modules/sinl-tests: New file.
26404         * tests/test-sinl.c: New file.
26405
26406         Tests for module 'logl'.
26407         * modules/logl-tests: New file.
26408         * tests/test-logl.c: New file.
26409
26410         Tests for module 'expl'.
26411         * modules/expl-tests: New file.
26412         * tests/test-expl.c: New file.
26413
26414         Tests for module 'cosl'.
26415         * modules/cosl-tests: New file.
26416         * tests/test-cosl.c: New file.
26417
26418         Tests for module 'atanl'.
26419         * modules/atanl-tests: New file.
26420         * tests/test-atanl.c: New file.
26421
26422         Tests for module 'asinl'.
26423         * modules/asinl-tests: New file.
26424         * tests/test-asinl.c: New file.
26425
26426         Tests for module 'acosl'.
26427         * modules/acosl-tests: New file.
26428         * tests/test-acosl.c: New file.
26429
26430         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26431         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26432         tanl): Use the standard gnulib idiom.
26433         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26434         * lib/sinl.c: Likewise.
26435         * lib/tanl.c: Don't include trigl.c.
26436         (kernel_tanl): Make static.
26437         * lib/sincosl.c: Include trigl.h first.
26438         * lib/trigl.c: Likewise.
26439         * m4/acosl.m4: New file.
26440         * m4/asinl.m4: New file.
26441         * m4/atanl.m4: New file.
26442         * m4/cosl.m4: New file.
26443         * m4/expl.m4: New file.
26444         * m4/logl.m4: New file.
26445         * m4/sinl.m4: New file.
26446         * m4/sqrtl.m4: New file.
26447         * m4/tanl.m4: New file.
26448         * m4/mathl.m4: Remove file.
26449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26450         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26451         Don't initialize GNULIB_MATHL.
26452         * modules/acosl: New file.
26453         * modules/asinl: New file.
26454         * modules/atanl: New file.
26455         * modules/cosl: New file.
26456         * modules/expl: New file.
26457         * modules/logl: New file.
26458         * modules/sinl: New file.
26459         * modules/sqrtl: New file.
26460         * modules/tanl: New file.
26461         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26462         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26463         substitute GNULIB_MATHL.
26464         * modules/mathl: Rewritten.
26465         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26466         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26467         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26468         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26469         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26470         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26471         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26472         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26473         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26474
26475 2010-01-18  Bruno Haible  <bruno@clisp.org>
26476
26477         sqrt: Make gl_FUNC_SQRT requirable.
26478         * m4/sqrt.m4: New file.
26479         * modules/sqrt (Files): Add it.
26480         (configure.ac): Invoke gl_FUNC_SQRT.
26481
26482 2010-01-18  Bruno Haible  <bruno@clisp.org>
26483
26484         New modules for common <math.h> functions.
26485         * m4/mathfunc.m4: New file.
26486         * modules/acos: New file.
26487         * modules/asin: New file.
26488         * modules/atan: New file.
26489         * modules/atan2: New file.
26490         * modules/cbrt: New file.
26491         * modules/copysign: New file.
26492         * modules/cos: New file.
26493         * modules/cosh: New file.
26494         * modules/erf: New file.
26495         * modules/erfc: New file.
26496         * modules/exp: New file.
26497         * modules/fabs: New file.
26498         * modules/fmod: New file.
26499         * modules/hypot: New file.
26500         * modules/j0: New file.
26501         * modules/j1: New file.
26502         * modules/jn: New file.
26503         * modules/ldexp: New file.
26504         * modules/lgamma: New file.
26505         * modules/log: New file.
26506         * modules/log10: New file.
26507         * modules/log1p: New file.
26508         * modules/logb: New file.
26509         * modules/modf: New file.
26510         * modules/nextafter: New file.
26511         * modules/pow: New file.
26512         * modules/remainder: New file.
26513         * modules/rint: New file.
26514         * modules/sin: New file.
26515         * modules/sinh: New file.
26516         * modules/sqrt: New file.
26517         * modules/tan: New file.
26518         * modules/tanh: New file.
26519         * modules/y0: New file.
26520         * modules/y1: New file.
26521         * modules/yn: New file.
26522         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26523         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26524         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26525         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26526         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26527         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26528         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26529         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26530         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26531         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26532         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26533         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26534         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26535         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26536         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26537         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26538         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26539         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26540         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26541         * doc/posix-functions/log.texi: Mention the 'log' module.
26542         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26543         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26544         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26545         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26546         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26547         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26548         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26549         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26550         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26551         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26552         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26553         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26554         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26555         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26556         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26557         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26558
26559 2010-01-18  Jim Meyering  <meyering@redhat.com>
26560
26561         ignore-value: relax license to LGPLv2+
26562         * modules/ignore-value (License): Relax to LGPLv2+.
26563
26564         getdate: don't leak when TZ contains two or more '"'s
26565         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26566         double quote in TZ after the first one.
26567
26568         readtokens: do not leak internal token_lengths buffer
26569         * lib/readtokens.c (readtokens): Free the local, lengths,
26570         when the supplied "token_lengths" parameter is NULL.
26571
26572 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26573
26574         Fix a couple of missing LIBTHREAD link failures on AIX.
26575         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26576         $(LIBTHREAD).
26577         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26578
26579         Link test-poll against INET_PTON_LIB.
26580         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26581         for inet_pton on Solaris 10.
26582
26583 2010-01-17  Bruno Haible  <bruno@clisp.org>
26584
26585         unistdio/*-sprintf: Fix typo in module description.
26586         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26587         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26588         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26589         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26590         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26591         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26592         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26593         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26594
26595 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26596
26597         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26598         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26599         variables in shell case patterns, for AIX and HP-UX ksh.
26600
26601         Split large sed scripts, for HP-UX sed.
26602         * modules/stdio: Split sed scripts around 50 sed commands,
26603         to avoid HP-UX limit of 99 commands, in the near future.
26604         * modules/string: Likewise.
26605         * modules/unistd: Likewise.
26606
26607         gnulib-tool: avoid writing in the current directory.
26608         * gnulib-tool (func_emit_lib_Makefile_am)
26609         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26610         not in the current directory, so concurrent gnulib-tool
26611         instances do not interfere.
26612
26613 2010-01-16  Jim Meyering  <meyering@redhat.com>
26614
26615         doc: update users.txt
26616         * users.txt: Add grep.
26617         (diffutils, gzip): Update URLs.
26618
26619 2010-01-12  Bruno Haible  <bruno@clisp.org>
26620
26621         posix_spawn: Avoid test failure on Cygwin.
26622         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26623         characters.
26624         Reported by Simon Josefsson.
26625
26626 2010-01-12  Bruno Haible  <bruno@clisp.org>
26627
26628         * tests/test-cond.c (main): When skipping the test, show the reason.
26629
26630 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26631
26632         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26633
26634 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26635
26636         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26637         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26638
26639 2010-01-12  Eric Blake  <ebb9@byu.net>
26640
26641         build: guarantee AS_VAR_IF
26642         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26643         (gl_AS_VAR_IF): Move...
26644         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26645         Reported by Simon Josefsson.
26646
26647 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26648
26649         * lib/stdio.in.h: Fix typo.
26650
26651 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26652
26653         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26654         libgpg-error.
26655
26656 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26657
26658         * tests/test-xalloc-die.sh: Use $EXEEXT.
26659
26660 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26661             Bruno Haible  <bruno@clisp.org>
26662
26663         getlogin, getlogin_r: Avoid test failure.
26664         * tests/test-getlogin.c: Include <stdio.h>.
26665         (main): Skip the test when the function fails because stdin is not a
26666         tty.
26667         * tests/test-getlogin_r.c: Include <stdio.h>.
26668         (main): Skip the test when the function fails because stdin is not a
26669         tty.
26670
26671 2010-01-11  Eric Blake  <ebb9@byu.net>
26672
26673         tests: avoid more large file warnings
26674         * tests/test-fflush.c: Avoid warning about ftell use.
26675         * tests/test-fseek.c: Avoid warning about fseek use.
26676
26677 2010-01-10  Bruno Haible  <bruno@clisp.org>
26678
26679         nproc: Work better on Linux when /proc and /sys are not mounted.
26680         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26681         as lower bound when, on glibc/Linux systems,
26682         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26683         Suggested by Pádraig Brady <P@draigbrady.com>.
26684         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26685
26686         nproc: Refactor.
26687         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26688         extracted from num_processors.
26689         (num_processors): Call it.
26690
26691 2010-01-11  Jim Meyering  <meyering@redhat.com>
26692
26693         utimecmp: avoid new warning from upcoming gcc-4.5.0
26694         * lib/utimecmp.c (BILLION): Define using #define rather than an
26695         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26696
26697 2010-01-11  Eric Blake  <ebb9@byu.net>
26698
26699         math: add portability warnings for classification macros
26700         * modules/math (Depends-on): Add warn-on-use.
26701         (Makefile.am): Provide new substitutions.
26702         * m4/math_h.m4 (gl_MATH_H): Require inline.
26703         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26704         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26705         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26706         implement warnings.
26707
26708         unistd: warn on use of environ without module
26709         * modules/unistd (Depends-on): Add warn-on-use.
26710         (Makefile.am): Provide new substitutions.
26711         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26712         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26713
26714         stdio: warn on suspicious uses
26715         * modules/stdio (Depends-on): Add warn-on-use.
26716         (Makefile.am): Provide new substitutions.
26717         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26718         fseeko.
26719         * lib/stdio.in.h (gets): Always warn on use.
26720         (fseek, ftell): Adjust when warnings are issued, and honor
26721         _GL_NO_LARGE_FILES as a way to silence the warning.
26722         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26723         any warning about large file offsets.
26724         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26725         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26726         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26727         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26728         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26729         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26730         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26731         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26732
26733         warn-on-use: new module
26734         * modules/warn-on-use: New file.
26735         * build-aux/warn-on-use.h: Likewise.
26736         * m4/warn-on-use.m4: Likewise.
26737         * MODULES.html.sh (Support for building): Mention it.
26738
26739 2010-01-10  Bruno Haible  <bruno@clisp.org>
26740
26741         Tests for module 'unistr/u32-strdup'.
26742         * modules/unistr/u32-strdup-tests: New file.
26743         * tests/unistr/test-u32-strdup.c: New file.
26744
26745         Tests for module 'unistr/u16-strdup'.
26746         * modules/unistr/u16-strdup-tests: New file.
26747         * tests/unistr/test-u16-strdup.c: New file.
26748
26749         Tests for module 'unistr/u8-strdup'.
26750         * modules/unistr/u8-strdup-tests: New file.
26751         * tests/unistr/test-u8-strdup.c: New file.
26752         * tests/unistr/test-strdup.h: New file.
26753
26754         Tests for module 'unistr/u32-strncmp'.
26755         * modules/unistr/u32-strncmp-tests: New file.
26756         * tests/unistr/test-u32-strncmp.c: New file.
26757
26758         Tests for module 'unistr/u16-strncmp'.
26759         * modules/unistr/u16-strncmp-tests: New file.
26760         * tests/unistr/test-u16-strncmp.c: New file.
26761
26762         Tests for module 'unistr/u8-strncmp'.
26763         * modules/unistr/u8-strncmp-tests: New file.
26764         * tests/unistr/test-u8-strncmp.c: New file.
26765         * tests/unistr/test-strncmp.h: New file.
26766
26767         Tests for module 'unistr/u32-strcoll'.
26768         * modules/unistr/u32-strcoll-tests: New file.
26769         * tests/unistr/test-u32-strcoll.c: New file.
26770
26771         Tests for module 'unistr/u16-strcoll'.
26772         * modules/unistr/u16-strcoll-tests: New file.
26773         * tests/unistr/test-u16-strcoll.c: New file.
26774
26775         Tests for module 'unistr/u8-strcoll'.
26776         * modules/unistr/u8-strcoll-tests: New file.
26777         * tests/unistr/test-u8-strcoll.c: New file.
26778
26779         Tests for module 'unistr/u32-strcmp'.
26780         * modules/unistr/u32-strcmp-tests: New file.
26781         * tests/unistr/test-u32-strcmp.c: New file.
26782         * tests/unistr/test-u32-strcmp.h: New file.
26783
26784         Tests for module 'unistr/u16-strcmp'.
26785         * modules/unistr/u16-strcmp-tests: New file.
26786         * tests/unistr/test-u16-strcmp.c: New file.
26787         * tests/unistr/test-u16-strcmp.h: New file.
26788
26789         Tests for module 'unistr/u8-strcmp'.
26790         * modules/unistr/u8-strcmp-tests: New file.
26791         * tests/unistr/test-u8-strcmp.c: New file.
26792         * tests/unistr/test-u8-strcmp.h: New file.
26793         * tests/unistr/test-strcmp.h: New file.
26794
26795         Tests for module 'unistr/u32-strncat'.
26796         * modules/unistr/u32-strncat-tests: New file.
26797         * tests/unistr/test-u32-strncat.c: New file.
26798
26799         Tests for module 'unistr/u16-strncat'.
26800         * modules/unistr/u16-strncat-tests: New file.
26801         * tests/unistr/test-u16-strncat.c: New file.
26802
26803         Tests for module 'unistr/u8-strncat'.
26804         * modules/unistr/u8-strncat-tests: New file.
26805         * tests/unistr/test-u8-strncat.c: New file.
26806         * tests/unistr/test-strncat.h: New file.
26807
26808         Tests for module 'unistr/u32-strcat'.
26809         * modules/unistr/u32-strcat-tests: New file.
26810         * tests/unistr/test-u32-strcat.c: New file.
26811
26812         Tests for module 'unistr/u16-strcat'.
26813         * modules/unistr/u16-strcat-tests: New file.
26814         * tests/unistr/test-u16-strcat.c: New file.
26815
26816         Tests for module 'unistr/u8-strcat'.
26817         * modules/unistr/u8-strcat-tests: New file.
26818         * tests/unistr/test-u8-strcat.c: New file.
26819         * tests/unistr/test-strcat.h: New file.
26820
26821         Tests for module 'unistr/u32-stpncpy'.
26822         * modules/unistr/u32-stpncpy-tests: New file.
26823         * tests/unistr/test-u32-stpncpy.c: New file.
26824
26825         Tests for module 'unistr/u16-stpncpy'.
26826         * modules/unistr/u16-stpncpy-tests: New file.
26827         * tests/unistr/test-u16-stpncpy.c: New file.
26828
26829         Tests for module 'unistr/u8-stpncpy'.
26830         * modules/unistr/u8-stpncpy-tests: New file.
26831         * tests/unistr/test-u8-stpncpy.c: New file.
26832         * tests/unistr/test-stpncpy.h: New file.
26833
26834         Tests for module 'unistr/u32-strncpy'.
26835         * modules/unistr/u32-strncpy-tests: New file.
26836         * tests/unistr/test-u32-strncpy.c: New file.
26837
26838         Tests for module 'unistr/u16-strncpy'.
26839         * modules/unistr/u16-strncpy-tests: New file.
26840         * tests/unistr/test-u16-strncpy.c: New file.
26841
26842         Tests for module 'unistr/u8-strncpy'.
26843         * modules/unistr/u8-strncpy-tests: New file.
26844         * tests/unistr/test-u8-strncpy.c: New file.
26845         * tests/unistr/test-strncpy.h: New file.
26846
26847         Tests for module 'unistr/u32-stpcpy'.
26848         * modules/unistr/u32-stpcpy-tests: New file.
26849         * tests/unistr/test-u32-stpcpy.c: New file.
26850
26851         Tests for module 'unistr/u16-stpcpy'.
26852         * modules/unistr/u16-stpcpy-tests: New file.
26853         * tests/unistr/test-u16-stpcpy.c: New file.
26854
26855         Tests for module 'unistr/u8-stpcpy'.
26856         * modules/unistr/u8-stpcpy-tests: New file.
26857         * tests/unistr/test-u8-stpcpy.c: New file.
26858         * tests/unistr/test-stpcpy.h: New file.
26859
26860         Tests for module 'unistr/u32-strcpy'.
26861         * modules/unistr/u32-strcpy-tests: New file.
26862         * tests/unistr/test-u32-strcpy.c: New file.
26863
26864         Tests for module 'unistr/u16-strcpy'.
26865         * modules/unistr/u16-strcpy-tests: New file.
26866         * tests/unistr/test-u16-strcpy.c: New file.
26867
26868         Tests for module 'unistr/u8-strcpy'.
26869         * modules/unistr/u8-strcpy-tests: New file.
26870         * tests/unistr/test-u8-strcpy.c: New file.
26871         * tests/unistr/test-strcpy.h: New file.
26872
26873         Tests for module 'unistr/u32-strnlen'.
26874         * modules/unistr/u32-strnlen-tests: New file.
26875         * tests/unistr/test-u32-strnlen.c: New file.
26876
26877         Tests for module 'unistr/u16-strnlen'.
26878         * modules/unistr/u16-strnlen-tests: New file.
26879         * tests/unistr/test-u16-strnlen.c: New file.
26880
26881         Tests for module 'unistr/u8-strnlen'.
26882         * modules/unistr/u8-strnlen-tests: New file.
26883         * tests/unistr/test-u8-strnlen.c: New file.
26884         * tests/unistr/test-strnlen.h: New file.
26885
26886         Tests for module 'unistr/u32-strlen'.
26887         * modules/unistr/u32-strlen-tests: New file.
26888         * tests/unistr/test-u32-strlen.c: New file.
26889
26890         Tests for module 'unistr/u16-strlen'.
26891         * modules/unistr/u16-strlen-tests: New file.
26892         * tests/unistr/test-u16-strlen.c: New file.
26893
26894         Tests for module 'unistr/u8-strlen'.
26895         * modules/unistr/u8-strlen-tests: New file.
26896         * tests/unistr/test-u8-strlen.c: New file.
26897
26898         Tests for module 'unistr/u32-prev'.
26899         * modules/unistr/u32-prev-tests: New file.
26900         * tests/unistr/test-u32-prev.c: New file.
26901
26902         Tests for module 'unistr/u16-prev'.
26903         * modules/unistr/u16-prev-tests: New file.
26904         * tests/unistr/test-u16-prev.c: New file.
26905
26906         Tests for module 'unistr/u8-prev'.
26907         * modules/unistr/u8-prev-tests: New file.
26908         * tests/unistr/test-u8-prev.c: New file.
26909
26910         Tests for module 'unistr/u32-next'.
26911         * modules/unistr/u32-next-tests: New file.
26912         * tests/unistr/test-u32-next.c: New file.
26913
26914         Tests for module 'unistr/u16-next'.
26915         * modules/unistr/u16-next-tests: New file.
26916         * tests/unistr/test-u16-next.c: New file.
26917
26918         Tests for module 'unistr/u8-next'.
26919         * modules/unistr/u8-next-tests: New file.
26920         * tests/unistr/test-u8-next.c: New file.
26921
26922         Tests for module 'unistr/u32-strmbtouc'.
26923         * modules/unistr/u32-strmbtouc-tests: New file.
26924         * tests/unistr/test-u32-strmbtouc.c: New file.
26925
26926         Tests for module 'unistr/u16-strmbtouc'.
26927         * modules/unistr/u16-strmbtouc-tests: New file.
26928         * tests/unistr/test-u16-strmbtouc.c: New file.
26929
26930         Tests for module 'unistr/u8-strmbtouc'.
26931         * modules/unistr/u8-strmbtouc-tests: New file.
26932         * tests/unistr/test-u8-strmbtouc.c: New file.
26933
26934         Tests for module 'unistr/u32-strmblen'.
26935         * modules/unistr/u32-strmblen-tests: New file.
26936         * tests/unistr/test-u32-strmblen.c: New file.
26937
26938         Tests for module 'unistr/u16-strmblen'.
26939         * modules/unistr/u16-strmblen-tests: New file.
26940         * tests/unistr/test-u16-strmblen.c: New file.
26941
26942         Tests for module 'unistr/u8-strmblen'.
26943         * modules/unistr/u8-strmblen-tests: New file.
26944         * tests/unistr/test-u8-strmblen.c: New file.
26945
26946         Tests for module 'unistr/u32-cpy-alloc'.
26947         * modules/unistr/u32-cpy-alloc-tests: New file.
26948         * tests/unistr/test-u32-cpy-alloc.c: New file.
26949
26950         Tests for module 'unistr/u16-cpy-alloc'.
26951         * modules/unistr/u16-cpy-alloc-tests: New file.
26952         * tests/unistr/test-u16-cpy-alloc.c: New file.
26953
26954         Tests for module 'unistr/u8-cpy-alloc'.
26955         * modules/unistr/u8-cpy-alloc-tests: New file.
26956         * tests/unistr/test-u8-cpy-alloc.c: New file.
26957         * tests/unistr/test-cpy-alloc.h: New file.
26958
26959         Tests for module 'unistr/u32-mbsnlen'.
26960         * modules/unistr/u32-mbsnlen-tests: New file.
26961         * tests/unistr/test-u32-mbsnlen.c: New file.
26962
26963         Tests for module 'unistr/u16-mbsnlen'.
26964         * modules/unistr/u16-mbsnlen-tests: New file.
26965         * tests/unistr/test-u16-mbsnlen.c: New file.
26966
26967         Tests for module 'unistr/u8-mbsnlen'.
26968         * modules/unistr/u8-mbsnlen-tests: New file.
26969         * tests/unistr/test-u8-mbsnlen.c: New file.
26970
26971         Tests for module 'unistr/u32-chr'.
26972         * modules/unistr/u32-chr-tests: New file.
26973         * tests/unistr/test-u32-chr.c: New file.
26974
26975         Tests for module 'unistr/u16-chr'.
26976         * modules/unistr/u16-chr-tests: New file.
26977         * tests/unistr/test-u16-chr.c: New file.
26978
26979         Tests for module 'unistr/u8-chr'.
26980         * modules/unistr/u8-chr-tests: New file.
26981         * tests/unistr/test-u8-chr.c: New file.
26982         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26983
26984         Tests for module 'unistr/u32-cmp2'.
26985         * modules/unistr/u32-cmp2-tests: New file.
26986         * tests/unistr/test-u32-cmp2.c: New file.
26987
26988         Tests for module 'unistr/u16-cmp2'.
26989         * modules/unistr/u16-cmp2-tests: New file.
26990         * tests/unistr/test-u16-cmp2.c: New file.
26991
26992         Tests for module 'unistr/u8-cmp2'.
26993         * modules/unistr/u8-cmp2-tests: New file.
26994         * tests/unistr/test-u8-cmp2.c: New file.
26995         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26996
26997         Tests for module 'unistr/u32-cmp'.
26998         * modules/unistr/u32-cmp-tests: New file.
26999         * tests/unistr/test-u32-cmp.c: New file.
27000
27001         Tests for module 'unistr/u16-cmp'.
27002         * modules/unistr/u16-cmp-tests: New file.
27003         * tests/unistr/test-u16-cmp.c: New file.
27004
27005         Tests for module 'unistr/u8-cmp'.
27006         * modules/unistr/u8-cmp-tests: New file.
27007         * tests/unistr/test-u8-cmp.c: New file.
27008         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27009
27010         Tests for module 'unistr/u32-set'.
27011         * modules/unistr/u32-set-tests: New file.
27012         * tests/unistr/test-u32-set.c: New file.
27013
27014         Tests for module 'unistr/u16-set'.
27015         * modules/unistr/u16-set-tests: New file.
27016         * tests/unistr/test-u16-set.c: New file.
27017
27018         Tests for module 'unistr/u8-set'.
27019         * modules/unistr/u8-set-tests: New file.
27020         * tests/unistr/test-u8-set.c: New file.
27021         * tests/unistr/test-set.h: New file.
27022
27023         Tests for module 'unistr/u32-move'.
27024         * modules/unistr/u32-move-tests: New file.
27025         * tests/unistr/test-u32-move.c: New file.
27026
27027         Tests for module 'unistr/u16-move'.
27028         * modules/unistr/u16-move-tests: New file.
27029         * tests/unistr/test-u16-move.c: New file.
27030
27031         Tests for module 'unistr/u8-move'.
27032         * modules/unistr/u8-move-tests: New file.
27033         * tests/unistr/test-u8-move.c: New file.
27034         * tests/unistr/test-move.h: New file.
27035
27036         Tests for module 'unistr/u32-cpy'.
27037         * modules/unistr/u32-cpy-tests: New file.
27038         * tests/unistr/test-u32-cpy.c: New file.
27039
27040         Tests for module 'unistr/u16-cpy'.
27041         * modules/unistr/u16-cpy-tests: New file.
27042         * tests/unistr/test-u16-cpy.c: New file.
27043
27044         Tests for module 'unistr/u8-cpy'.
27045         * modules/unistr/u8-cpy-tests: New file.
27046         * tests/unistr/test-u8-cpy.c: New file.
27047         * tests/unistr/test-cpy.h: New file.
27048
27049 2010-01-09  Bruno Haible  <bruno@clisp.org>
27050
27051         Tests for module 'unistr/u32-uctomb'.
27052         * modules/unistr/u32-uctomb-tests: New file.
27053         * tests/unistr/test-u32-uctomb.c: New file.
27054
27055         Tests for module 'unistr/u16-uctomb'.
27056         * modules/unistr/u16-uctomb-tests: New file.
27057         * tests/unistr/test-u16-uctomb.c: New file.
27058
27059         Tests for module 'unistr/u8-uctomb'.
27060         * modules/unistr/u8-uctomb-tests: New file.
27061         * tests/unistr/test-u8-uctomb.c: New file.
27062
27063         Tests for module 'unistr/u32-mbtoucr'.
27064         * modules/unistr/u32-mbtoucr-tests: New file.
27065         * tests/unistr/test-u32-mbtoucr.c: New file.
27066
27067         Tests for module 'unistr/u16-mbtoucr'.
27068         * modules/unistr/u16-mbtoucr-tests: New file.
27069         * tests/unistr/test-u16-mbtoucr.c: New file.
27070
27071         Tests for module 'unistr/u8-mbtoucr'.
27072         * modules/unistr/u8-mbtoucr-tests: New file.
27073         * tests/unistr/test-u8-mbtoucr.c: New file.
27074
27075         Tests for module 'unistr/u32-mbtouc'.
27076         * modules/unistr/u32-mbtouc-tests: New file.
27077         * tests/unistr/test-u32-mbtouc.c: New file.
27078
27079         Tests for module 'unistr/u16-mbtouc'.
27080         * modules/unistr/u16-mbtouc-tests: New file.
27081         * tests/unistr/test-u16-mbtouc.c: New file.
27082
27083         Tests for module 'unistr/u8-mbtouc'.
27084         * modules/unistr/u8-mbtouc-tests: New file.
27085         * tests/unistr/test-u8-mbtouc.c: New file.
27086
27087         Tests for module 'unistr/u32-mbtouc-unsafe'.
27088         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27089         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27090         * tests/unistr/test-u32-mbtouc.h: New file.
27091
27092         Tests for module 'unistr/u16-mbtouc-unsafe'.
27093         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27094         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27095         * tests/unistr/test-u16-mbtouc.h: New file.
27096
27097         Tests for module 'unistr/u8-mbtouc-unsafe'.
27098         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27099         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27100         * tests/unistr/test-u8-mbtouc.h: New file.
27101
27102         Tests for module 'unistr/u32-mblen'.
27103         * modules/unistr/u32-mblen-tests: New file.
27104         * tests/unistr/test-u32-mblen.c: New file.
27105
27106         Tests for module 'unistr/u16-mblen'.
27107         * modules/unistr/u16-mblen-tests: New file.
27108         * tests/unistr/test-u16-mblen.c: New file.
27109
27110         Tests for module 'unistr/u8-mblen'.
27111         * modules/unistr/u8-mblen-tests: New file.
27112         * tests/unistr/test-u8-mblen.c: New file.
27113
27114         Tests for module 'unistr/u32-to-u16'.
27115         * modules/unistr/u32-to-u16-tests: New file.
27116         * tests/unistr/test-u32-to-u16.c: New file.
27117
27118         Tests for module 'unistr/u32-to-u8'.
27119         * modules/unistr/u32-to-u8-tests: New file.
27120         * tests/unistr/test-u32-to-u8.c: New file.
27121
27122         Tests for module 'unistr/u16-to-u32'.
27123         * modules/unistr/u16-to-u32-tests: New file.
27124         * tests/unistr/test-u16-to-u32.c: New file.
27125
27126         Tests for module 'unistr/u16-to-u8'.
27127         * modules/unistr/u16-to-u8-tests: New file.
27128         * tests/unistr/test-u16-to-u8.c: New file.
27129
27130         Tests for module 'unistr/u8-to-u32'.
27131         * modules/unistr/u8-to-u32-tests: New file.
27132         * tests/unistr/test-u8-to-u32.c: New file.
27133
27134         Tests for module 'unistr/u8-to-u16'.
27135         * modules/unistr/u8-to-u16-tests: New file.
27136         * tests/unistr/test-u8-to-u16.c: New file.
27137
27138         Tests for module 'unistr/u32-check'.
27139         * modules/unistr/u32-check-tests: New file.
27140         * tests/unistr/test-u32-check.c: New file.
27141
27142         Tests for module 'unistr/u16-check'.
27143         * modules/unistr/u16-check-tests: New file.
27144         * tests/unistr/test-u16-check.c: New file.
27145
27146         Tests for module 'unistr/u8-check'.
27147         * modules/unistr/u8-check-tests: New file.
27148         * tests/unistr/test-u8-check.c: New file.
27149
27150         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27151         (category_equals): New function.
27152         (main): Add more tests.
27153         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27154
27155         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27156
27157 2010-01-10  Bruno Haible  <bruno@clisp.org>
27158
27159         unistr/u*-strcoll: Try harder to distinguish different strings.
27160         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27161         compare s1 and s2 to see if they are different.
27162
27163 2010-01-10  Bruno Haible  <bruno@clisp.org>
27164
27165         unistr/u*-stpncpy: Fix the return value.
27166         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27167         description of the return value consistent with stpncpy in glibc.
27168         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27169         written non-NUL unit.
27170
27171 2010-01-10  Bruno Haible  <bruno@clisp.org>
27172
27173         unistr/u*-next: Add missing dependencies.
27174         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27175         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27176         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27177
27178 2010-01-10  Bruno Haible  <bruno@clisp.org>
27179
27180         unistr/u8-mbsnlen: Fix return value for incomplete character.
27181         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27182         u8_mblen.
27183         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27184         Remove unistr/u8-mblen.
27185         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27186         u16_mblen.
27187         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27188         Remove unistr/u16-mblen.
27189
27190 2010-01-10  Bruno Haible  <bruno@clisp.org>
27191
27192         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27193         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27194         Reported by Brian Gough <bjg@gnu.org> and
27195         Chris Clayton <chris2553@googlemail.com> via
27196         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27197
27198 2010-01-09  Bruno Haible  <bruno@clisp.org>
27199
27200         unistr/u16-to-u32: Reject invalid input.
27201         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27202         u16_mbtouc.
27203         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27204         Remove unistr/u16-mbtouc.
27205
27206         unistr/u16-to-u8: Reject invalid input.
27207         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27208         u16_mbtouc.
27209         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27210         Remove unistr/u16-mbtouc.
27211
27212         unistr/u8-to-u32: Reject invalid input.
27213         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27214         u8_mbtouc.
27215         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27216         Remove unistr/u8-mbtouc.
27217
27218         unistr/u8-to-u16: Reject invalid input.
27219         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27220         u8_mbtouc.
27221         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27222         Remove unistr/u8-mbtouc.
27223
27224 2010-01-09  Bruno Haible  <bruno@clisp.org>
27225
27226         Tests for module 'getlogin'.
27227         * modules/getlogin-tests: New file.
27228         * tests/test-getlogin.c: New file.
27229
27230         New module 'getlogin'.
27231         * lib/unistd.in.h (getlogin): New declaration.
27232         * lib/getlogin.c: New file.
27233         * m4/getlogin.m4: New file.
27234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27235         HAVE_GETLOGIN.
27236         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27237         HAVE_GETLOGIN.
27238         * modules/getlogin: New file.
27239         * doc/posix-functions/getlogin.texi: Mention the new module.
27240         Reported by John W. Eaton <jwe@gnu.org>.
27241
27242 2010-01-09  Bruno Haible  <bruno@clisp.org>
27243
27244         getlogin_r: Support for native Windows.
27245         * lib/getlogin_r.c: Include <windows.h>
27246         (getlogin_r): Implement for native Windows.
27247         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27248         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27249         via John W. Eaton <jwe@gnu.org>.
27250
27251 2010-01-09  Bruno Haible  <bruno@clisp.org>
27252
27253         getlogin_r: Small fixes.
27254         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27255         succeeds.
27256         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27257         before testing whether getlogin_r is declared. No need to set
27258         HAVE_DECL_GETLOGIN_R to 1.
27259         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27260
27261 2010-01-09  Bruno Haible  <bruno@clisp.org>
27262
27263         * lib/unistd.in.h (getlogin_r): Add comment.
27264
27265 2010-01-09  Bruno Haible  <bruno@clisp.org>
27266
27267         Tests for module 'getlogin_r'.
27268         * modules/getlogin_r-tests: New file.
27269         * tests/test-getlogin_r.c: New file.
27270
27271 2010-01-09  Jim Meyering  <meyering@redhat.com>
27272
27273         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27274         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27275         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27276
27277 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27278
27279         * lib/dup2.c (rpl_dup2): Improve comment.
27280
27281 2010-01-08  Eric Blake  <ebb9@byu.net>
27282
27283         maint.mk: allow packages to add makefile @@ exceptions
27284         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27285         (sc_makefile_check): Rename...
27286         (sc_makefile_at_at_check): ...to this, and use hook.
27287
27288         dup2: work around mingw bug
27289         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27290         Reported by Simon Josefsson.
27291
27292 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27293
27294         glob: Fix C++ compilation.
27295         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27296         C++.
27297
27298 2010-01-07  Bruno Haible  <bruno@clisp.org>
27299
27300         Fix indentation of wctype.in.h, broken since 2007-01-06.
27301         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27302
27303 2010-01-07  Bruno Haible  <bruno@clisp.org>
27304
27305         mbslen: Avoid collision with system function.
27306         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27307         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27308         * m4/mbslen.m4: New file.
27309         * modules/mbslen (Files): Add it.
27310         (configure.ac): Invoke gl_MBSLEN.
27311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27312         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27313         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27314         via Ian Beckwith <ianb@erislabs.net>.
27315
27316 2010-01-07  Bruno Haible  <bruno@clisp.org>
27317
27318         dirent: Document the last fix.
27319         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27320
27321 2010-01-07  Bruno Haible  <bruno@clisp.org>
27322
27323         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27324         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27325         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27326         va_list are defined.
27327         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27328         Reported by Eric Blake.
27329
27330 2010-01-07  Bruno Haible  <bruno@clisp.org>
27331
27332         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27333         * modules/xlist (Depends-on): Add 'list',
27334         * modules/xoset (Depends-on): Add 'oset'.
27335         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27336
27337 2010-01-07  Bruno Haible  <bruno@clisp.org>
27338
27339         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27340         * doc/posix-functions/strncasecmp.texi: Likewise.
27341
27342 2010-01-07  Bruno Haible  <bruno@clisp.org>
27343
27344         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27345
27346 2010-01-07  John W. Eaton  <jwe@octave.org>
27347
27348         wctype: allow C++ use
27349         * lib/wctype.in.h: Add extern "C" block for C++.
27350
27351 2010-01-06  Eric Blake  <ebb9@byu.net>
27352
27353         maint.mk: detect incorrect GFDL usage
27354         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27355
27356 2010-01-06  Jim Meyering  <meyering@redhat.com>
27357         and Eric Blake  <ebb9@byu.net>
27358
27359         maint.mk: ignore multi-line copyright in NEWS
27360         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27361
27362 2010-01-06  Eric Blake  <ebb9@byu.net>
27363
27364         select: add missing dependency
27365         * modules/select-tests (Depends-on): Move sockets dependency...
27366         * modules/select (Depends-on): ...here.
27367         Reported by Ian Beckwith.
27368
27369         doc: regenerate INSTALL
27370         * doc/INSTALL: Reflect recent autoconf update.
27371         * doc/INSTALL.ISO: Likewise.
27372         * doc/INSTALL.UTF-8: Likewise.
27373
27374         pread: fix compilation on glibc
27375         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27376         Reported by Ralf Wildenhues.
27377
27378         dirent: fix test failure
27379         * lib/dirent.in.h (includes): Guarantee ino_t.
27380         Reported by Ralf Wildenhues.
27381
27382 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27383
27384         linkat, renameat: avoid bad free
27385         * lib/at-func2.c (at_func2): Fix typo.
27386         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27387
27388 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27389
27390         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27391         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27392         to avoid failure of symlink test later.
27393
27394 2010-01-06  Eric Blake  <ebb9@byu.net>
27395
27396         stdio, unistd: guarantee ssize_t
27397         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27398         2008 are exposed when needed.
27399         * lib/stdio.in.h (includes): Likewise.
27400         Reported by Ralf Wildenhues.
27401
27402 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27403
27404         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27405         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27406         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27407
27408 2010-01-06  Jim Meyering  <meyering@redhat.com>
27409
27410         readtokens: this module *does* require xalloc.h
27411         It uses only functions that were omitted by the old syntax-check rule.
27412         * lib/readtokens.c: Include "xalloc.h" once again.
27413         * modules/readtokens (Depends-on): Add xalloc.
27414         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27415
27416 2010-01-05  Eric Blake  <ebb9@byu.net>
27417
27418         maint: support 'make announcement' from a VPATH build
27419         * top/maint.mk (announcement): Look for correct NEWS file.
27420
27421 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27422
27423         utimens (fdutimens): ignore a negative FD, per contract
27424         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27425         when we have a valid file descriptor.  Otherwise, using a brand
27426         new glibc (with just-patched futimens that now fails with EBADF)
27427         would cause this function to fail with ENOSYS.
27428         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27429         See also http://bugzilla.redhat.com/552320.
27430
27431 2010-01-05  Eric Blake  <ebb9@byu.net>
27432
27433         strcase: document what it provides
27434         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27435         gnulib module.
27436         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27437         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27438
27439 2010-01-05  Jim Meyering  <meyering@redhat.com>
27440
27441         maint: remove useless inclusions of "xalloc.h"
27442         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27443         * lib/readtokens.c: Likewise.
27444         * lib/same.c: Likewise.
27445         * modules/getloadavg (Depends-on): Remove xalloc.
27446         * modules/readtokens: Likewise.
27447         * modules/same: Likewise.
27448
27449         maint.mk: include 4 more function names in alloca.h-checking regexp
27450         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27451         regexp.  Before, we would give a false-positive (saying alloca.h
27452         is included unnecessarily) when the only uses involved omitted symbols.
27453
27454         xalloc.h: use consistent formatting
27455         * lib/xalloc.h: Move declarations to start in the first column.
27456
27457 2010-01-05  Eric Blake  <ebb9@byu.net>
27458
27459         mkdir: avoid xalloc
27460         * lib/mkdir.c (includes): Drop unused header.
27461         Reported by John W. Eaton.
27462
27463 2010-01-04  Jim Meyering  <meyering@redhat.com>
27464
27465         nl_langinfo: avoid configure-time syntax error
27466         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27467         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27468         the empty string.  Don't let that provoke a shell syntax error.
27469
27470         regcomp, regexec, fnmatch: avoid array bounds read error
27471         * lib/regcomp.c (build_equiv_class): From glibc:
27472         Use only the low 24 bits of a findidx return value as an index
27473         into the weights array.  Patch by Ulrich Drepper:
27474         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27475         * lib/regexec.c (check_node_accept_bytes): Likewise.
27476         * lib/fnmatch_loop.c (FCT): Likewise.
27477
27478         regcomp: skip collseq lookup when there are no rules
27479         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27480         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27481
27482         regcomp: recognize ill-formed { } expressions
27483         * lib/regcomp.c (parse_dup_op): From glibc:
27484         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27485
27486         regcomp: fix typo in comment
27487         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27488         s/satisfy/satisfies/.
27489
27490         regcomp: sync from glibc: remove dead store
27491         * lib/regcomp.c (duplicate_node_closure): Remove useless
27492         search_duplicated_node call and dead store.
27493
27494         regcomp: sync from glibc; always use nl_langinfo
27495         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27496         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27497         * modules/regex (Depends-on): Add nl_langinfo.
27498
27499 2010-01-04  Eric Blake  <ebb9@byu.net>
27500
27501         fdopendir: fix configure test
27502         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27503
27504 2010-01-01  Bruno Haible  <bruno@clisp.org>
27505
27506         wchar: Remove unused configure check.
27507         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27508
27509 2010-01-01  Eric Blake  <ebb9@byu.net>
27510
27511         headers: make check of system header explicit
27512         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27513         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27514         ourselves.
27515         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27517         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27518         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27519         internals.
27520         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27521         missing.
27522         Suggested by Bruno Haible.
27523
27524 2010-01-01  Jim Meyering  <meyering@redhat.com>
27525
27526         ChangeLog: tweak to eliminate unnecessary copyright line
27527         * ChangeLog: Remove a copyright line that was mistakenly updated
27528         by today's update-copyright run.  Reported by Eric Blake.
27529
27530         test-update-copyright: don't let envvar setting cause test failure
27531         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27532
27533 2010-01-01  Bruno Haible  <bruno@clisp.org>
27534
27535         localename: Avoid gcc warning.
27536         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27537         function if it is not used.
27538
27539 2010-01-01  Jim Meyering  <meyering@redhat.com>
27540
27541         update nearly all FSF copyright year lists to include 2010
27542         Use the same procedure as for 2009, outlined in
27543         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27544
27545         version-etc: set COPYRIGHT_YEAR to 2010
27546         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27547
27548 2009-12-31  Eric Blake  <ebb9@byu.net>
27549
27550         doc: correct availability of cygwin 1.5.x getopt
27551         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27552         variables.
27553         * doc/posix-functions/opterr.texi (opterr): Likewise.
27554         * doc/posix-functions/optind.texi (optind): Likewise.
27555         * doc/posix-functions/optopt.texi (optopt): Likewise.
27556         * doc/posix-functions/tzname.texi (tzname): Likewise.
27557
27558         openat: update maintainer
27559         * modules/openat (Maintainer): Add myself.
27560
27561         utimens: avoid shadowing warning
27562         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27563         buffers into one, to avoid shadowing, as well as avoiding a
27564         redundant stat.
27565         Reported by Jim Meyering.
27566
27567         test-dup2: avoid compiler warning
27568         * tests/test-dup2.c (is_inheritable): Only define if used.
27569
27570 2010-01-01  Bruno Haible  <bruno@clisp.org>
27571
27572         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27573         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27574         defined, use wctomb instead of wcrtomb.
27575
27576 2010-01-01  Bruno Haible  <bruno@clisp.org>
27577
27578         iconv: Reject native Solaris iconv.
27579         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27580         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27581
27582 2009-12-31  Bruno Haible  <bruno@clisp.org>
27583
27584         * tests/test-signal.c (main): Remove test of 'SIG'.
27585
27586 2009-12-31  Bruno Haible  <bruno@clisp.org>
27587
27588         spawn: Fix incomplete fix.
27589         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27590         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27591         warnings for GNULIB_POSIXCHECK again.
27592         Reported by Eric Blake.
27593
27594 2009-12-31  Bruno Haible  <bruno@clisp.org>
27595
27596         Avoid namespace pollution on glibc systems.
27597         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27598         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27599         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27600         glibc systems.
27601
27602 2009-12-31  Bruno Haible  <bruno@clisp.org>
27603
27604         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27605         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27606         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27607         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27608         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27609         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27610         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27611
27612 2009-12-31  Bruno Haible  <bruno@clisp.org>
27613
27614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27615         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27616         afterwards.
27617
27618 2009-12-31  Bruno Haible  <bruno@clisp.org>
27619
27620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27621         SYS_UTSNAME_H.
27622
27623 2009-12-31  Bruno Haible  <bruno@clisp.org>
27624
27625         spawn: Fix misapplied patch.
27626         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27627         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27628         warnings for GNULIB_POSIXCHECK.
27629
27630 2009-12-31  Bruno Haible  <bruno@clisp.org>
27631
27632         times: Update after sys_times changed.
27633         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27634         * modules/times (Files): Add it.
27635         (configure.ac): Invoke gl_FUNC_TIMES.
27636
27637 2009-12-31  Bruno Haible  <bruno@clisp.org>
27638
27639         Use AC_C_INLINE where necessary.
27640         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27643         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27644         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27645         * m4/mbiter.m4 (gl_MBITER): Likewise.
27646         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27647         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27648         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27649         * modules/u64 (configure.ac): Likewise.
27650
27651 2009-12-31  Bruno Haible  <bruno@clisp.org>
27652
27653         Use AC_C_INLINE instead of module 'inline' where possible.
27654         * modules/inline (Description): Clarify purpose.
27655         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27656         * modules/count-one-bits (Depends-on): Remove inline.
27657         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27658         * modules/openat (Depends-on): Remove inline.
27659         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27660         instead of depending on module 'inline'.
27661         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27662         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27663         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27664         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27665         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27666         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27667         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27668         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27669         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27670         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27671         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27672         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27673         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27674         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27675         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27676         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27677         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27678         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27679         Likewise.
27680         * modules/unictype/property-ascii-hex-digit (Depends-on,
27681         configure.ac): Likewise.
27682         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27683         configure.ac): Likewise.
27684         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27685         configure.ac): Likewise.
27686         * modules/unictype/property-bidi-block-separator (Depends-on,
27687         configure.ac): Likewise.
27688         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27689         configure.ac): Likewise.
27690         * modules/unictype/property-bidi-common-separator (Depends-on,
27691         configure.ac): Likewise.
27692         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27693         Likewise.
27694         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27695         configure.ac): Likewise.
27696         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27697         configure.ac): Likewise.
27698         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27699         configure.ac): Likewise.
27700         * modules/unictype/property-bidi-european-digit (Depends-on,
27701         configure.ac): Likewise.
27702         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27703         configure.ac): Likewise.
27704         * modules/unictype/property-bidi-left-to-right (Depends-on,
27705         configure.ac): Likewise.
27706         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27707         configure.ac): Likewise.
27708         * modules/unictype/property-bidi-other-neutral (Depends-on,
27709         configure.ac): Likewise.
27710         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27711         Likewise.
27712         * modules/unictype/property-bidi-segment-separator (Depends-on,
27713         configure.ac): Likewise.
27714         * modules/unictype/property-bidi-whitespace (Depends-on,
27715         configure.ac): Likewise.
27716         * modules/unictype/property-combining (Depends-on, configure.ac):
27717         Likewise.
27718         * modules/unictype/property-composite (Depends-on, configure.ac):
27719         Likewise.
27720         * modules/unictype/property-currency-symbol (Depends-on,
27721         configure.ac): Likewise.
27722         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27723         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27724         Likewise.
27725         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27726         configure.ac): Likewise.
27727         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27728         Likewise.
27729         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27730         Likewise.
27731         * modules/unictype/property-extender (Depends-on, configure.ac):
27732         Likewise.
27733         * modules/unictype/property-format-control (Depends-on, configure.ac):
27734         Likewise.
27735         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27736         Likewise.
27737         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27738         Likewise.
27739         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27740         Likewise.
27741         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27742         Likewise.
27743         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27744         Likewise.
27745         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27746         Likewise.
27747         * modules/unictype/property-id-start (Depends-on, configure.ac):
27748         Likewise.
27749         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27750         Likewise.
27751         * modules/unictype/property-ids-binary-operator (Depends-on,
27752         configure.ac): Likewise.
27753         * modules/unictype/property-ids-trinary-operator (Depends-on,
27754         configure.ac): Likewise.
27755         * modules/unictype/property-ignorable-control (Depends-on,
27756         configure.ac): Likewise.
27757         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27758         Likewise.
27759         * modules/unictype/property-join-control (Depends-on, configure.ac):
27760         Likewise.
27761         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27762         Likewise.
27763         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27764         Likewise.
27765         * modules/unictype/property-logical-order-exception (Depends-on,
27766         configure.ac): Likewise.
27767         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27768         Likewise.
27769         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27770         * modules/unictype/property-non-break (Depends-on, configure.ac):
27771         Likewise.
27772         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27773         Likewise.
27774         * modules/unictype/property-numeric (Depends-on, configure.ac):
27775         Likewise.
27776         * modules/unictype/property-other-alphabetic (Depends-on,
27777         configure.ac): Likewise.
27778         * modules/unictype/property-other-default-ignorable-code-point
27779         (Depends-on, configure.ac): Likewise.
27780         * modules/unictype/property-other-grapheme-extend (Depends-on,
27781         configure.ac): Likewise.
27782         * modules/unictype/property-other-id-continue (Depends-on,
27783         configure.ac): Likewise.
27784         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27785         Likewise.
27786         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27787         Likewise.
27788         * modules/unictype/property-other-math (Depends-on, configure.ac):
27789         Likewise.
27790         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27791         Likewise.
27792         * modules/unictype/property-paired-punctuation (Depends-on,
27793         configure.ac): Likewise.
27794         * modules/unictype/property-paragraph-separator (Depends-on,
27795         configure.ac): Likewise.
27796         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27797         Likewise.
27798         * modules/unictype/property-pattern-white-space (Depends-on,
27799         configure.ac): Likewise.
27800         * modules/unictype/property-private-use (Depends-on, configure.ac):
27801         Likewise.
27802         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27803         Likewise.
27804         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27805         Likewise.
27806         * modules/unictype/property-radical (Depends-on, configure.ac):
27807         Likewise.
27808         * modules/unictype/property-sentence-terminal (Depends-on,
27809         configure.ac): Likewise.
27810         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27811         Likewise.
27812         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27813         * modules/unictype/property-terminal-punctuation (Depends-on,
27814         configure.ac): Likewise.
27815         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27816         Likewise.
27817         * modules/unictype/property-unassigned-code-value (Depends-on,
27818         configure.ac): Likewise.
27819         * modules/unictype/property-unified-ideograph (Depends-on,
27820         configure.ac): Likewise.
27821         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27822         Likewise.
27823         * modules/unictype/property-variation-selector (Depends-on,
27824         configure.ac): Likewise.
27825         * modules/unictype/property-white-space (Depends-on, configure.ac):
27826         Likewise.
27827         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27828         Likewise.
27829         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27830         Likewise.
27831         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27832         Likewise.
27833         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27834         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27835         Likewise.
27836
27837 2009-12-31  Bruno Haible  <bruno@clisp.org>
27838
27839         Remove unnecessary AC_C_INLINE invocation.
27840         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27841         since 2009-08-21.
27842
27843 2009-12-31  Jim Meyering  <meyering@redhat.com>
27844
27845         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27846         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27847         With this change, we can all remove the gpg_key_ID = ... definition
27848         from our respective cfg.mk files.
27849
27850         maint.mk: create announcement template in ~/, not in /tmp
27851         * top/maint.mk (emit_upload_commands): Adjust.
27852         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27853         Remove temporary file, .ci-msg.
27854
27855 2009-12-31  Eric Blake  <ebb9@byu.net>
27856
27857         link-warning: always build headers with link warnings
27858         * modules/arpa_inet (Makefile.am): Always build replacement
27859         header.
27860         * modules/ctype (Makefile.am): Likewise.
27861         * modules/dirent (Makefile.am): Likewise.
27862         * modules/inttypes (Makefile.am): Likewise.
27863         * modules/langinfo (Makefile.am): Likewise.
27864         * modules/locale (Makefile.am): Likewise.
27865         * modules/spawn (Makefile.am): Likewise.
27866         * modules/sys_file (Makefile.am): Likewise.
27867         * modules/sys_ioctl (Makefile.am): Likewise.
27868         * modules/sys_select (Makefile.am): Likewise.
27869         * modules/sys_socket (Makefile.am): Likewise.
27870         * modules/sys_times (Makefile.am): Likewise.
27871         * modules/sys_utsname (Makefile.am): Likewise.
27872         * modules/sys_wait (Makefile.am): Likewise.
27873         * modules/wchar (Makefile.am): Likewise.
27874         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27875         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27876         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27877         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27878         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27879         Likewise.
27880         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27881         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27882         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27883         Likewise.
27884         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27885         Likewise.
27886         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27887         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27888         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27890         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27891         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27892         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27893         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27894         (gl_WCHAR_H_DEFAULTS): Likewise.
27895
27896 2009-12-31  Eric Blake  <ebb9@byu.net>
27897
27898         signal, spawn: use link warnings
27899         * lib/signal.in.h (sigset_t): Make unconditional.
27900         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27901         (sigpending, sigprocmask, sigaction): Add link warnings.
27902         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27903         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27904         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27905         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27906         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27907         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27908         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27909         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27910         (posix_spawn_file_actions_destroy)
27911         (posix_spawn_file_actions_addopen)
27912         (posix_spawn_file_actions_addclose)
27913         (posix_spawn_file_actions_adddup2): Likewise.
27914         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27915         * tests/test-signal.c (main): Enhance test.
27916
27917         spawn: improve wrapper support
27918         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27919         (gl_SPAWN_H_DEFAULTS): New defaults.
27920         * modules/spawn (Makefile.am): Substitute them.
27921         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27922         Only declare if missing or broken.
27923
27924         sys_times, sys_utsname: use include_next
27925         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27926         header.
27927         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27928         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27929         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27930         * modules/sys_times (Depends-on): Add include_next.
27931         (Makefile.am): Substitute additional values.
27932         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27933         * lib/sys_times.in.h (includes): Include native header, if
27934         available.
27935         * lib/sys_utsname.in.h (includes): Likewise.
27936         * tests/test-sys_times.c (main): Enhance test.
27937
27938         fdutimensat: revert prior patch
27939         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27940         utimens.h.
27941         Reported by Bruno Haible.
27942
27943 2009-12-30  Eric Blake  <ebb9@byu.net>
27944
27945         sys_wait: drop link-warning dependency
27946         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27947         link-warning efforts.
27948         * lib/sys_wait.in.h: Likewise.
27949
27950         fdutimensat: remove bogus dependency
27951         * modules/fdutimensat (Depends-on): Drop inline.
27952
27953         unistd: fix typo
27954         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27955
27956 2009-12-30  Bruno Haible  <bruno@clisp.org>
27957
27958         Fix compilation error with Solaris cc.
27959         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27960         * lib/unicase/u16-is-invariant.c: Likewise.
27961         * lib/unicase/u32-is-invariant.c: Likewise.
27962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27963
27964 2009-12-30  Bruno Haible  <bruno@clisp.org>
27965
27966         Fix test crash.
27967         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27968         locales.
27969         Reported by Simon Josefsson <simon@josefsson.org>.
27970
27971 2009-12-30  Bruno Haible  <bruno@clisp.org>
27972
27973         Fix compilation error on most platforms.
27974         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27975         Reported by Simon Josefsson <simon@josefsson.org>
27976         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27977
27978 2009-12-30  Eric Blake  <ebb9@byu.net>
27979
27980         futimens, utimensat: work around ntfs-3g bug
27981         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27982         a ctime bug is present, and expand workaround to cover ntfs-3g.
27983         * lib/utimens.c (fdutimens, lutimens): Likewise.
27984         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27985         (validate_timespec): Adjust return value.
27986         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27988         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27989
27990 2009-12-29  Eric Blake  <ebb9@byu.net>
27991
27992         link-warning: make usage consistent
27993         * modules/ctype (Depends-on): Add link-warning.
27994         (Makefile.am): Update rules accordingly.
27995         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27996         * modules/locale (Depends-on, Makefile.am): Likewise.
27997         * modules/sys_file (Makefile.am): Likewise.
27998         * modules/getopt-posix (Makefile.am): Delete unused link warning
27999         efforts.
28000         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28001         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28002         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28003         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28004
28005         stdio: remove unused variables
28006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28007         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28008         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28009
28010         tests: test more substitute headers
28011         * modules/ctype-tests: New file.
28012         * modules/dirent-tests: Likewise.
28013         * modules/spawn-tests: Likewise.
28014         * modules/sys_file-tests: Likewise.
28015         * modules/sys_ioctl-tests: Likewise.
28016         * modules/sys_wait-tests: Likewise.
28017         * tests/test-ctype.c: Likewise.
28018         * tests/test-dirent.c: Likewise.
28019         * tests/test-spawn.c: Likewise.
28020         * tests/test-sys_file.c: Likewise.
28021         * tests/test-sys_ioctl.c: Likewise.
28022         * tests/test-sys_wait.c: Likewise.
28023         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28024         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28025         whether or not flock is in use.
28026
28027         tests: remove License section from module
28028         * modules/arpa_inet-tests: Remove unneeded section.
28029         * modules/byteswap-tests: Likewise.
28030         * modules/ceilf-tests: Likewise.
28031         * modules/ceill-tests: Likewise.
28032         * modules/crypto/des-tests: Likewise.
28033         * modules/crypto/gc-arcfour-tests: Likewise.
28034         * modules/crypto/gc-arctwo-tests: Likewise.
28035         * modules/crypto/gc-des-tests: Likewise.
28036         * modules/crypto/gc-hmac-md5-tests: Likewise.
28037         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28038         * modules/crypto/gc-md2-tests: Likewise.
28039         * modules/crypto/gc-md4-tests: Likewise.
28040         * modules/crypto/gc-md5-tests: Likewise.
28041         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28042         * modules/crypto/gc-rijndael-tests: Likewise.
28043         * modules/crypto/gc-sha1-tests: Likewise.
28044         * modules/crypto/gc-tests: Likewise.
28045         * modules/crypto/md2-tests: Likewise.
28046         * modules/crypto/md4-tests: Likewise.
28047         * modules/fcntl-h-tests: Likewise.
28048         * modules/floorf-tests: Likewise.
28049         * modules/floorl-tests: Likewise.
28050         * modules/frexp-nolibm-tests: Likewise.
28051         * modules/frexp-tests: Likewise.
28052         * modules/frexpl-nolibm-tests: Likewise.
28053         * modules/frexpl-tests: Likewise.
28054         * modules/getaddrinfo-tests: Likewise.
28055         * modules/inttypes-tests: Likewise.
28056         * modules/isfinite-tests: Likewise.
28057         * modules/isinf-tests: Likewise.
28058         * modules/ldexpl-tests: Likewise.
28059         * modules/locale-tests: Likewise.
28060         * modules/math-tests: Likewise.
28061         * modules/netdb-tests: Likewise.
28062         * modules/netinet_in-tests: Likewise.
28063         * modules/printf-frexp-tests: Likewise.
28064         * modules/printf-frexpl-tests: Likewise.
28065         * modules/priv-set-tests: Likewise.
28066         * modules/random_r-tests: Likewise.
28067         * modules/round-tests: Likewise.
28068         * modules/roundf-tests: Likewise.
28069         * modules/roundl-tests: Likewise.
28070         * modules/search-tests: Likewise.
28071         * modules/select-tests: Likewise.
28072         * modules/signal-tests: Likewise.
28073         * modules/stdbool-tests: Likewise.
28074         * modules/stddef-tests: Likewise.
28075         * modules/stdint-tests: Likewise.
28076         * modules/stdio-tests: Likewise.
28077         * modules/stdlib-tests: Likewise.
28078         * modules/string-tests: Likewise.
28079         * modules/strings-tests: Likewise.
28080         * modules/sys_select-tests: Likewise.
28081         * modules/sys_socket-tests: Likewise.
28082         * modules/sys_stat-tests: Likewise.
28083         * modules/sys_time-tests: Likewise.
28084         * modules/sys_utsname-tests: Likewise.
28085         * modules/sysexits-tests: Likewise.
28086         * modules/time-tests: Likewise.
28087         * modules/trunc-tests: Likewise.
28088         * modules/truncf-tests: Likewise.
28089         * modules/truncl-tests: Likewise.
28090         * modules/tsearch-tests: Likewise.
28091         * modules/unistd-tests: Likewise.
28092         * modules/wchar-tests: Likewise.
28093         * modules/wctype-tests: Likewise.
28094
28095         tests: fix license on several tests
28096         * tests/test-des.c: Update to GPLv3+.
28097         * tests/test-flock.c: Likewise.
28098         * tests/test-fsync.c: Likewise.
28099         * tests/test-futimens.h: Likewise.
28100         * tests/test-gc-arcfour.c: Likewise.
28101         * tests/test-gc-arctwo.c: Likewise.
28102         * tests/test-gc-des.c: Likewise.
28103         * tests/test-gc-hmac-md5.c: Likewise.
28104         * tests/test-gc-hmac-sha1.c: Likewise.
28105         * tests/test-gc-md2.c: Likewise.
28106         * tests/test-gc-md4.c: Likewise.
28107         * tests/test-gc-md5.c: Likewise.
28108         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28109         * tests/test-gc-rijndael.c: Likewise.
28110         * tests/test-gc-sha1.c: Likewise.
28111         * tests/test-gc.c: Likewise.
28112         * tests/test-getcwd.c: Likewise.
28113         * tests/test-link.c: Likewise.
28114         * tests/test-link.h: Likewise.
28115         * tests/test-lutimens.h: Likewise.
28116         * tests/test-md2.c: Likewise.
28117         * tests/test-md4.c: Likewise.
28118         * tests/test-mkdir.h: Likewise.
28119         * tests/test-rename.c: Likewise.
28120         * tests/test-rename.h: Likewise.
28121         * tests/test-safe-alloc.c: Likewise.
28122         * tests/test-utimens-common.h: Likewise.
28123         * tests/test-utimens.h: Likewise.
28124
28125         maint: sync license texts
28126         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28127         * doc/gpl-3.0.texi: Revert copyright year update.
28128         * doc/lgpl-3.0.texi: Likewise.
28129
28130 2009-12-29  Jim Meyering  <meyering@redhat.com>
28131
28132         update nearly all FSF copyright year lists to include 2009
28133         The files named by the following are exempted:
28134             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28135               test -f "$dst" && { echo "$dst"; continue; }
28136               test -d "$dst" || continue
28137               echo "$dst"/$(basename "$src")
28138             done > exempt
28139             git ls-files tests/unictype >> exempt
28140         In the remaining files, convert to all-interval notation if
28141         - there is already at least one year interval like 2000-2003
28142         - the file is maintained by me
28143         - the file is in lib/uni*/, where that style already prevails
28144         Otherwise, use update-copyright's default.
28145
28146 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28147         and Eric Blake  <ebb9@byu.net>
28148
28149         tests: don't require debug system() to pass
28150         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28151         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28152         * tests/test-unlink.h (test_unlink_func): Likewise.
28153         * tests/test-fstatat.c (main): ...into callers.
28154         * tests/test-lstat.c (main): Likewise.
28155         * tests/test-rmdir.c (main): Likewise.
28156         * tests/test-unlink.c (main): Likewise.
28157         * tests/test-unlinkat.c (main): Likewise.
28158         * tests/test-areadlink-with-size.c (main): Don't require a
28159         debug-only system call to pass, aiding cross-testing to mingw.
28160         * tests/test-areadlink.c (main): Likewise.
28161         * tests/test-areadlinkat-with-size.c (main): Likewise.
28162         * tests/test-areadlinkat.c (main): Likewise.
28163         * tests/test-canonicalize-lgpl.c (main): Likewise.
28164         * tests/test-canonicalize.c (main): Likewise.
28165         * tests/test-chown.c (main): Likewise.
28166         * tests/test-fchownat.c (main): Likewise.
28167         * tests/test-lchown.c (main): Likewise.
28168         * tests/test-fdutimensat.c (main): Likewise.
28169         * tests/test-futimens.c (main): Likewise.
28170         * tests/test-link.c (main): Likewise.
28171         * tests/test-linkat.c (main): Likewise.
28172         * tests/test-mkdir.c (main): Likewise.
28173         * tests/test-mkdirat.c (main): Likewise.
28174         * tests/test-mkfifo.c (main): Likewise.
28175         * tests/test-mkfifoat.c (main): Likewise.
28176         * tests/test-mknod.c (main): Likewise.
28177         * tests/test-readlink.c (main): Likewise.
28178         * tests/test-remove.c (main): Likewise.
28179         * tests/test-rename.c (main): Likewise.
28180         * tests/test-renameat.c (main): Likewise.
28181         * tests/test-symlink.c (main): Likewise.
28182         * tests/test-symlinkat.c (main): Likewise.
28183         * tests/test-utimens.c (main): Likewise.
28184         * tests/test-utimensat.c (main): Likewise.
28185
28186 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28187
28188         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28189         on $(UNUSED_PARAMETER_H) to avoid build failure.
28190
28191 2009-12-28  Jim Meyering  <meyering@redhat.com>
28192
28193         update-copyright: you may specify a max. line length other than 72
28194         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28195
28196         maint: use consistent FSF copyright line syntax
28197         * lib/posixtm.c: Add missing comma in FSF copyright line.
28198         * lib/posixtm.h: Likewise.
28199         * lib/getugroups.c: Add missing ", Inc.".
28200
28201         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28202         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28203         FSF copyright line.  Remove trailing blanks.
28204
28205 2009-12-28  Eric Blake  <ebb9@byu.net>
28206
28207         test-dup2: reduce dependencies
28208         * modules/cloexec (Configure.ac): Set witness.
28209         * modules/dup2-tests (Depends-on): Drop cloexec.
28210         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28211         not present.
28212         Suggested by Bruno Haible.
28213
28214 2009-12-26  Bruno Haible  <bruno@clisp.org>
28215
28216         Remove an unneeded dependency.
28217         * modules/fseterr (Depends-on): Remove dup2.
28218
28219 2009-12-26  Eric Blake  <ebb9@byu.net>
28220
28221         tests: use macros.h in more places
28222         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28223         (ASSERT_STREAM): Provide default of stderr.
28224         * tests/test-dirent-safer.c: Include macros.h, using alternate
28225         stream for assertions.
28226         * tests/test-dup-safer.c: Likewise.
28227         * tests/test-freopen-safer.c: Likewise.
28228         * tests/test-getopt.c: Likewise.
28229         * tests/test-openat-safer.c: Likewise.
28230         * tests/test-pipe.c: Likewise.
28231         * tests/test-popen-safer.c: Likewise.
28232         * modules/dirent-safer-tests (Files): Include macros.h.
28233         * modules/unistd-safer-tests (Files): Likewise.
28234         * modules/freopen-safer-tests (Files): Likewise.
28235         * modules/getopt-posix-tests (Files): Likewise.
28236         * modules/openat-safer-tests (Files): Likewise.
28237         * modules/pipe-tests (Files): Likewise.
28238
28239 2009-12-26  Bruno Haible  <bruno@clisp.org>
28240
28241         javacomp: Portability fix.
28242         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28243         that it also works on Solaris.
28244
28245 2009-12-26  Bruno Haible  <bruno@clisp.org>
28246
28247         localename: Fix storage allocation of gl_locale_name_thread's result.
28248         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28249         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28250         all platforms that have 'uselocale'.
28251         (gl_locale_name_thread_unsafe): New function, extracted from
28252         gl_locale_name_thread.
28253         (gl_locale_name_thread): Call struniq on all platforms that have
28254         'uselocale'.
28255         * tests/test-localename.c (test_locale_name_thread): Check that the
28256         resulting strings are permanently allocated.
28257         * modules/localename-tests (Depends-on): Add strdup.
28258
28259 2009-12-26  Bruno Haible  <bruno@clisp.org>
28260
28261         * tests/test-localename.c (categories): Fill in the strings.
28262
28263 2009-12-26  Jim Meyering  <meyering@redhat.com>
28264
28265         isdir: complete the removal of m4/isdir.m4
28266         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28267
28268         isdir: clean up, since at least grep still uses it
28269         * lib/isdir.c: Include "isdir.h".
28270         (S_ISDIR): Remove now-unneeded definition.
28271         * modules/isdir (Files): Add lib/isdir.h.
28272         * lib/isdir.h: New file, with declaration.
28273         * m4/isdir.m4: Remove file -- unneeded.
28274
28275 2009-12-25  Bruno Haible  <bruno@clisp.org>
28276
28277         selinux-h: Make generated .h files standalone.
28278         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28279         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28280         * lib/se-selinux.in.h: Likewise.
28281         * modules/selinux-h (Depends-on): Add unused-parameter.
28282         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28283         selinux/selinux.h and selinux/context.h.
28284         Suggested by Eric Blake.
28285
28286 2009-12-25  Bruno Haible  <bruno@clisp.org>
28287
28288         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28289         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28290         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28291         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28292         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28293
28294 2009-12-24  Bruno Haible  <bruno@clisp.org>
28295
28296         openat: Fix warning.
28297         * lib/openat-proc.c: Include <unistd.h>.
28298
28299 2009-12-24  Bruno Haible  <bruno@clisp.org>
28300
28301         New module 'unused-parameter'.
28302         * build-aux/unused-parameter.h: New file, extracted from earlier
28303         gnulib-common.m4.
28304         * modules/unused-parameter: New file.
28305         * lib/unistr.h: Include unused-parameter.h.
28306         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28307         _GL_UNUSED.
28308         * modules/unistr/base (Depends-on): Add unused-parameter.
28309
28310 2009-12-24  Bruno Haible  <bruno@clisp.org>
28311
28312         Add missing dependencies to 'extensions' module.
28313         * m4/extensions.m4: Add comment.
28314         * modules/accept4 (Depends-on): Add extensions.
28315         * modules/dup3 (Depends-on): Likewise.
28316         * modules/fcntl (Depends-on): Likewise.
28317         * modules/futimens (Depends-on): Likewise.
28318         * modules/mknod (Depends-on): Likewise.
28319         * modules/pipe2 (Depends-on): Likewise.
28320         * modules/stat-time (Depends-on): Likewise.
28321         * modules/strcasestr-simple (Depends-on): Likewise.
28322         * modules/strsignal (Depends-on): Likewise.
28323         * modules/utimensat (Depends-on): Likewise.
28324         * modules/localcharset (Depends-on): Likewise. Needed because of
28325         gl_FCNTL_O_FLAGS.
28326         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28327         AC_TYPE_MBSTATE_T.
28328         * modules/wcsnrtombs (Depends-on): Likewise.
28329         * modules/wcsrtombs (Depends-on): Likewise.
28330
28331 2009-12-24  Bruno Haible  <bruno@clisp.org>
28332
28333         binary-io: Avoid gcc warning due to SET_BINARY.
28334         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28335         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28336
28337 2009-12-24  Bruno Haible  <bruno@clisp.org>
28338
28339         Avoid future namespace pollution on glibc systems.
28340         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28341         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28342         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28343         glibc systems.
28344
28345 2009-12-24  Bruno Haible  <bruno@clisp.org>
28346
28347         Refactor common macros used in tests.
28348         * tests/macros.h: New file.
28349         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28350         and/or <stdlib.h>, if appropriate.
28351         (ASSERT, SIZEOF): Remove macros.
28352         * tests/test-areadlink-with-size.c: Likewise.
28353         * tests/test-areadlinkat.c: Likewise.
28354         * tests/test-areadlinkat-with-size.c: Likewise.
28355         * tests/test-argmatch.c: Likewise.
28356         * tests/test-argv-iter.c: Likewise.
28357         * tests/test-array-mergesort.c: Likewise.
28358         * tests/test-array_list.c: Likewise.
28359         * tests/test-array_oset.c: Likewise.
28360         * tests/test-avltree_list.c: Likewise.
28361         * tests/test-avltree_oset.c: Likewise.
28362         * tests/test-avltreehash_list.c: Likewise.
28363         * tests/test-base64.c: Likewise.
28364         * tests/test-binary-io.c: Likewise.
28365         * tests/test-bitrotate.c: Likewise.
28366         * tests/test-btowc.c: Likewise.
28367         * tests/test-byteswap.c: Likewise.
28368         * tests/test-c-ctype.c: Likewise.
28369         * tests/test-c-stack.c: Likewise.
28370         * tests/test-c-strcasecmp.c: Likewise.
28371         * tests/test-c-strcasestr.c: Likewise.
28372         * tests/test-c-strncasecmp.c: Likewise.
28373         * tests/test-c-strstr.c: Likewise.
28374         * tests/test-canonicalize-lgpl.c: Likewise.
28375         * tests/test-canonicalize.c: Likewise.
28376         * tests/test-carray_list.c: Likewise.
28377         * tests/test-ceilf1.c: Likewise.
28378         * tests/test-ceilf2.c: Likewise.
28379         * tests/test-ceill.c: Likewise.
28380         * tests/test-chown.c: Likewise.
28381         * tests/test-cloexec.c: Likewise.
28382         * tests/test-copy-acl.c: Likewise.
28383         * tests/test-copy-file.c: Likewise.
28384         * tests/test-count-one-bits.c: Likewise.
28385         * tests/test-dprintf-posix.c: Likewise.
28386         * tests/test-dup2.c: Likewise.
28387         * tests/test-dup3.c: Likewise.
28388         * tests/test-duplocale.c: Likewise.
28389         * tests/test-fbufmode.c: Likewise.
28390         * tests/test-fchdir.c: Likewise.
28391         * tests/test-fchownat.c: Likewise.
28392         * tests/test-fcntl-safer.c: Likewise.
28393         * tests/test-fcntl.c: Likewise.
28394         * tests/test-fdopendir.c: Likewise.
28395         * tests/test-fdutimensat.c: Likewise.
28396         * tests/test-fflush2.c: Likewise.
28397         * tests/test-file-has-acl.c: Likewise.
28398         * tests/test-filevercmp.c: Likewise.
28399         * tests/test-flock.c: Likewise.
28400         * tests/test-floorf1.c: Likewise.
28401         * tests/test-floorf2.c: Likewise.
28402         * tests/test-floorl.c: Likewise.
28403         * tests/test-fnmatch.c: Likewise.
28404         * tests/test-fopen.h: Likewise.
28405         * tests/test-fpending.c: Likewise.
28406         * tests/test-fprintf-posix.c: Likewise.
28407         * tests/test-fpurge.c: Likewise.
28408         * tests/test-freadable.c: Likewise.
28409         * tests/test-freadahead.c: Likewise.
28410         * tests/test-freading.c: Likewise.
28411         * tests/test-freadptr.c: Likewise.
28412         * tests/test-freadptr2.c: Likewise.
28413         * tests/test-freadseek.c: Likewise.
28414         * tests/test-freopen.c: Likewise.
28415         * tests/test-frexp.c: Likewise.
28416         * tests/test-frexpl.c: Likewise.
28417         * tests/test-fseek.c: Likewise.
28418         * tests/test-fseeko.c: Likewise.
28419         * tests/test-fstatat.c: Likewise.
28420         * tests/test-fstrcmp.c: Likewise.
28421         * tests/test-fsync.c: Likewise.
28422         * tests/test-ftell.c: Likewise.
28423         * tests/test-ftello.c: Likewise.
28424         * tests/test-func.c: Likewise.
28425         * tests/test-futimens.c: Likewise.
28426         * tests/test-fwritable.c: Likewise.
28427         * tests/test-fwriting.c: Likewise.
28428         * tests/test-getcwd.c: Likewise.
28429         * tests/test-getdate.c: Likewise.
28430         * tests/test-getdelim.c: Likewise.
28431         * tests/test-getdtablesize.c: Likewise.
28432         * tests/test-getgroups.c: Likewise.
28433         * tests/test-getline.c: Likewise.
28434         * tests/test-getndelim2.c: Likewise.
28435         * tests/test-glob.c: Likewise.
28436         * tests/test-hash.c: Likewise.
28437         * tests/test-i-ring.c: Likewise.
28438         * tests/test-iconv-utf.c: Likewise.
28439         * tests/test-iconv.c: Likewise.
28440         * tests/test-idpriv-drop.c: Likewise.
28441         * tests/test-idpriv-droptemp.c: Likewise.
28442         * tests/test-inet_ntop.c: Likewise.
28443         * tests/test-inet_pton.c: Likewise.
28444         * tests/test-isblank.c: Likewise.
28445         * tests/test-isfinite.c: Likewise.
28446         * tests/test-isinf.c: Likewise.
28447         * tests/test-isnan.c: Likewise.
28448         * tests/test-isnand.h: Likewise.
28449         * tests/test-isnanf.h: Likewise.
28450         * tests/test-isnanl.h: Likewise.
28451         * tests/test-lchown.c: Likewise.
28452         * tests/test-ldexpl.c: Likewise.
28453         * tests/test-link.c: Likewise.
28454         * tests/test-linkat.c: Likewise.
28455         * tests/test-linked_list.c: Likewise.
28456         * tests/test-linkedhash_list.c: Likewise.
28457         * tests/test-localename.c: Likewise.
28458         * tests/test-lseek.c: Likewise.
28459         * tests/test-lstat.c: Likewise.
28460         * tests/test-mbmemcasecmp.c: Likewise.
28461         * tests/test-mbmemcasecoll.c: Likewise.
28462         * tests/test-mbrtowc.c: Likewise.
28463         * tests/test-mbscasecmp.c: Likewise.
28464         * tests/test-mbscasestr1.c: Likewise.
28465         * tests/test-mbscasestr2.c: Likewise.
28466         * tests/test-mbscasestr3.c: Likewise.
28467         * tests/test-mbscasestr4.c: Likewise.
28468         * tests/test-mbschr.c: Likewise.
28469         * tests/test-mbscspn.c: Likewise.
28470         * tests/test-mbsinit.c: Likewise.
28471         * tests/test-mbsncasecmp.c: Likewise.
28472         * tests/test-mbsnrtowcs.c: Likewise.
28473         * tests/test-mbspbrk.c: Likewise.
28474         * tests/test-mbspcasecmp.c: Likewise.
28475         * tests/test-mbsrchr.c: Likewise.
28476         * tests/test-mbsrtowcs.c: Likewise.
28477         * tests/test-mbsspn.c: Likewise.
28478         * tests/test-mbsstr1.c: Likewise.
28479         * tests/test-mbsstr2.c: Likewise.
28480         * tests/test-mbsstr3.c: Likewise.
28481         * tests/test-memchr.c: Likewise.
28482         * tests/test-memchr2.c: Likewise.
28483         * tests/test-memcmp.c: Likewise.
28484         * tests/test-memmem.c: Likewise.
28485         * tests/test-memrchr.c: Likewise.
28486         * tests/test-mkdir.c: Likewise.
28487         * tests/test-mkdirat.c: Likewise.
28488         * tests/test-mkfifo.c: Likewise.
28489         * tests/test-mkfifoat.c: Likewise.
28490         * tests/test-mknod.c: Likewise.
28491         * tests/test-nanosleep.c: Likewise.
28492         * tests/test-nl_langinfo.c: Likewise.
28493         * tests/test-obstack-printf.c: Likewise.
28494         * tests/test-open.c: Likewise.
28495         * tests/test-openat.c: Likewise.
28496         * tests/test-pipe-filter-gi1.c: Likewise.
28497         * tests/test-pipe-filter-gi2-main.c: Likewise.
28498         * tests/test-pipe-filter-ii1.c: Likewise.
28499         * tests/test-pipe-filter-ii2-main.c: Likewise.
28500         * tests/test-pipe2.c: Likewise.
28501         * tests/test-popen.h: Likewise.
28502         * tests/test-posixtm.c: Likewise.
28503         * tests/test-pread.c: Likewise.
28504         * tests/test-printf-frexp.c: Likewise.
28505         * tests/test-printf-frexpl.c: Likewise.
28506         * tests/test-printf-posix.c: Likewise.
28507         * tests/test-priv-set.c: Likewise.
28508         * tests/test-quotearg.c: Likewise.
28509         * tests/test-random_r.c: Likewise.
28510         * tests/test-rawmemchr.c: Likewise.
28511         * tests/test-rbtree_list.c: Likewise.
28512         * tests/test-rbtree_oset.c: Likewise.
28513         * tests/test-rbtreehash_list.c: Likewise.
28514         * tests/test-readlink.c: Likewise.
28515         * tests/test-remove.c: Likewise.
28516         * tests/test-rename.c: Likewise.
28517         * tests/test-renameat.c: Likewise.
28518         * tests/test-rmdir.c: Likewise.
28519         * tests/test-round1.c: Likewise.
28520         * tests/test-roundf1.c: Likewise.
28521         * tests/test-roundl.c: Likewise.
28522         * tests/test-safe-alloc.c: Likewise.
28523         * tests/test-sameacls.c: Likewise.
28524         * tests/test-set-mode-acl.c: Likewise.
28525         * tests/test-setenv.c: Likewise.
28526         * tests/test-sigaction.c: Likewise.
28527         * tests/test-signbit.c: Likewise.
28528         * tests/test-sleep.c: Likewise.
28529         * tests/test-snprintf-posix.c: Likewise.
28530         * tests/test-snprintf.c: Likewise.
28531         * tests/test-sprintf-posix.c: Likewise.
28532         * tests/test-stat-time.c: Likewise.
28533         * tests/test-stat.c: Likewise.
28534         * tests/test-strcasestr.c: Likewise.
28535         * tests/test-strchrnul.c: Likewise.
28536         * tests/test-strerror.c: Likewise.
28537         * tests/test-striconv.c: Likewise.
28538         * tests/test-striconveh.c: Likewise.
28539         * tests/test-striconveha.c: Likewise.
28540         * tests/test-strsignal.c: Likewise.
28541         * tests/test-strstr.c: Likewise.
28542         * tests/test-strtod.c: Likewise.
28543         * tests/test-strverscmp.c: Likewise.
28544         * tests/test-symlink.c: Likewise.
28545         * tests/test-symlinkat.c: Likewise.
28546         * tests/test-trunc1.c: Likewise.
28547         * tests/test-trunc2.c: Likewise.
28548         * tests/test-truncf1.c: Likewise.
28549         * tests/test-truncf2.c: Likewise.
28550         * tests/test-truncl.c: Likewise.
28551         * tests/test-uname.c: Likewise.
28552         * tests/test-unlink.c: Likewise.
28553         * tests/test-unlinkat.c: Likewise.
28554         * tests/test-unsetenv.c: Likewise.
28555         * tests/test-usleep.c: Likewise.
28556         * tests/test-utimens.c: Likewise.
28557         * tests/test-utimensat.c: Likewise.
28558         * tests/test-vasnprintf-posix.c: Likewise.
28559         * tests/test-vasnprintf-posix2.c: Likewise.
28560         * tests/test-vasnprintf.c: Likewise.
28561         * tests/test-vasprintf-posix.c: Likewise.
28562         * tests/test-vasprintf.c: Likewise.
28563         * tests/test-vdprintf-posix.c: Likewise.
28564         * tests/test-vfprintf-posix.c: Likewise.
28565         * tests/test-vprintf-posix.c: Likewise.
28566         * tests/test-vsnprintf-posix.c: Likewise.
28567         * tests/test-vsnprintf.c: Likewise.
28568         * tests/test-vsprintf-posix.c: Likewise.
28569         * tests/test-wcrtomb.c: Likewise.
28570         * tests/test-wcsnrtombs.c: Likewise.
28571         * tests/test-wcsrtombs.c: Likewise.
28572         * tests/test-wctype.c: Likewise.
28573         * tests/test-wcwidth.c: Likewise.
28574         * tests/test-xfprintf-posix.c: Likewise.
28575         * tests/test-xmemdup0.c: Likewise.
28576         * tests/test-xprintf-posix.c: Likewise.
28577         * tests/test-xvasprintf.c: Likewise.
28578         * tests/unicase/test-locale-language.c: Likewise.
28579         * tests/unicase/test-mapping-part1.h: Likewise.
28580         * tests/unicase/test-predicate-part1.h: Likewise.
28581         * tests/unicase/test-u8-casecmp.c: Likewise.
28582         * tests/unicase/test-u8-casecoll.c: Likewise.
28583         * tests/unicase/test-u8-casefold.c: Likewise.
28584         * tests/unicase/test-u8-is-cased.c: Likewise.
28585         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28586         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28587         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28588         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28589         * tests/unicase/test-u8-tolower.c: Likewise.
28590         * tests/unicase/test-u8-totitle.c: Likewise.
28591         * tests/unicase/test-u8-toupper.c: Likewise.
28592         * tests/unicase/test-u16-casecmp.c: Likewise.
28593         * tests/unicase/test-u16-casecoll.c: Likewise.
28594         * tests/unicase/test-u16-casefold.c: Likewise.
28595         * tests/unicase/test-u16-is-cased.c: Likewise.
28596         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28597         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28598         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28599         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28600         * tests/unicase/test-u16-tolower.c: Likewise.
28601         * tests/unicase/test-u16-totitle.c: Likewise.
28602         * tests/unicase/test-u16-toupper.c: Likewise.
28603         * tests/unicase/test-u32-casecmp.c: Likewise.
28604         * tests/unicase/test-u32-casecoll.c: Likewise.
28605         * tests/unicase/test-u32-casefold.c: Likewise.
28606         * tests/unicase/test-u32-is-cased.c: Likewise.
28607         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28608         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28609         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28610         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28611         * tests/unicase/test-u32-tolower.c: Likewise.
28612         * tests/unicase/test-u32-totitle.c: Likewise.
28613         * tests/unicase/test-u32-toupper.c: Likewise.
28614         * tests/unicase/test-ulc-casecmp.c: Likewise.
28615         * tests/unicase/test-ulc-casecoll.c: Likewise.
28616         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28617         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28618         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28619         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28620         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28621         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28622         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28623         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28624         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28625         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28626         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28627         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28628         * tests/unictype/test-bidi_byname.c: Likewise.
28629         * tests/unictype/test-bidi_name.c: Likewise.
28630         * tests/unictype/test-bidi_of.c: Likewise.
28631         * tests/unictype/test-bidi_test.c: Likewise.
28632         * tests/unictype/test-block_list.c: Likewise.
28633         * tests/unictype/test-block_of.c: Likewise.
28634         * tests/unictype/test-block_test.c: Likewise.
28635         * tests/unictype/test-categ_and.c: Likewise.
28636         * tests/unictype/test-categ_and_not.c: Likewise.
28637         * tests/unictype/test-categ_byname.c: Likewise.
28638         * tests/unictype/test-categ_name.c: Likewise.
28639         * tests/unictype/test-categ_none.c: Likewise.
28640         * tests/unictype/test-categ_of.c: Likewise.
28641         * tests/unictype/test-categ_or.c: Likewise.
28642         * tests/unictype/test-categ_test_withtable.c: Likewise.
28643         * tests/unictype/test-combining.c: Likewise.
28644         * tests/unictype/test-decdigit.c: Likewise.
28645         * tests/unictype/test-digit.c: Likewise.
28646         * tests/unictype/test-mirror.c: Likewise.
28647         * tests/unictype/test-numeric.c: Likewise.
28648         * tests/unictype/test-pr_byname.c: Likewise.
28649         * tests/unictype/test-pr_test.c: Likewise.
28650         * tests/unictype/test-predicate-part1.h: Likewise.
28651         * tests/unictype/test-scripts.c: Likewise.
28652         * tests/unictype/test-sy_c_ident.c: Likewise.
28653         * tests/unictype/test-sy_java_ident.c: Likewise.
28654         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28655         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28656         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28657         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28658         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28659         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28660         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28661         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28662         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28663         * tests/uninorm/test-compat-decomposition.c: Likewise.
28664         * tests/uninorm/test-composition.c: Likewise.
28665         * tests/uninorm/test-decomposing-form.c: Likewise.
28666         * tests/uninorm/test-decomposition.c: Likewise.
28667         * tests/uninorm/test-u8-nfc.c: Likewise.
28668         * tests/uninorm/test-u8-nfd.c: Likewise.
28669         * tests/uninorm/test-u8-nfkc.c: Likewise.
28670         * tests/uninorm/test-u8-nfkd.c: Likewise.
28671         * tests/uninorm/test-u8-normcmp.c: Likewise.
28672         * tests/uninorm/test-u8-normcoll.c: Likewise.
28673         * tests/uninorm/test-u16-nfc.c: Likewise.
28674         * tests/uninorm/test-u16-nfd.c: Likewise.
28675         * tests/uninorm/test-u16-nfkc.c: Likewise.
28676         * tests/uninorm/test-u16-nfkd.c: Likewise.
28677         * tests/uninorm/test-u16-normcmp.c: Likewise.
28678         * tests/uninorm/test-u16-normcoll.c: Likewise.
28679         * tests/uninorm/test-u32-nfc.c: Likewise.
28680         * tests/uninorm/test-u32-nfd.c: Likewise.
28681         * tests/uninorm/test-u32-nfkc.c: Likewise.
28682         * tests/uninorm/test-u32-nfkd.c: Likewise.
28683         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28684         * tests/uninorm/test-u32-normcmp.c: Likewise.
28685         * tests/uninorm/test-u32-normcoll.c: Likewise.
28686         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28687         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28688         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28689         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28690         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28691         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28692         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28693         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28694         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28695         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28696         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28697         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28698         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28699         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28700         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28701         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28702         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28703         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28704         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28705         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28706         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28707         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28708         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28709         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28710         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28711         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28712         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28713         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28714         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28715         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28716         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28717         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28718         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28719         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28720         * tests/uniwidth/test-u8-width.c: Likewise.
28721         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28722         * tests/uniwidth/test-u16-width.c: Likewise.
28723         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28724         * tests/uniwidth/test-u32-width.c: Likewise.
28725         * tests/uniwidth/test-uc_width.c: Likewise.
28726         * tests/uniwidth/test-uc_width2.c: Likewise.
28727         * modules/acl-tests (Files): Add tests/macros.h.
28728         * modules/areadlink-tests (Files): Likewise.
28729         * modules/areadlink-with-size-tests (Files): Likewise.
28730         * modules/areadlinkat-tests (Files): Likewise.
28731         * modules/areadlinkat-with-size-tests (Files): Likewise.
28732         * modules/argmatch-tests (Files): Likewise.
28733         * modules/argv-iter-tests (Files): Likewise.
28734         * modules/array-list-tests (Files): Likewise.
28735         * modules/array-mergesort-tests (Files): Likewise.
28736         * modules/array-oset-tests (Files): Likewise.
28737         * modules/avltree-list-tests (Files): Likewise.
28738         * modules/avltree-oset-tests (Files): Likewise.
28739         * modules/avltreehash-list-tests (Files): Likewise.
28740         * modules/base64-tests (Files): Likewise.
28741         * modules/binary-io-tests (Files): Likewise.
28742         * modules/bitrotate-tests (Files): Likewise.
28743         * modules/btowc-tests (Files): Likewise.
28744         * modules/byteswap-tests (Files): Likewise.
28745         * modules/c-ctype-tests (Files): Likewise.
28746         * modules/c-stack-tests (Files): Likewise.
28747         * modules/c-strcase-tests (Files): Likewise.
28748         * modules/c-strcasestr-tests (Files): Likewise.
28749         * modules/c-strstr-tests (Files): Likewise.
28750         * modules/canonicalize-lgpl-tests (Files): Likewise.
28751         * modules/canonicalize-tests (Files): Likewise.
28752         * modules/carray-list-tests (Files): Likewise.
28753         * modules/ceilf-tests (Files): Likewise.
28754         * modules/ceill-tests (Files): Likewise.
28755         * modules/chown-tests (Files): Likewise.
28756         * modules/cloexec-tests (Files): Likewise.
28757         * modules/copy-file-tests (Files): Likewise.
28758         * modules/count-one-bits-tests (Files): Likewise.
28759         * modules/dprintf-posix-tests (Files): Likewise.
28760         * modules/dup2-tests (Files): Likewise.
28761         * modules/dup3-tests (Files): Likewise.
28762         * modules/duplocale-tests (Files): Likewise.
28763         * modules/fbufmode-tests (Files): Likewise.
28764         * modules/fchdir-tests (Files): Likewise.
28765         * modules/fcntl-safer-tests (Files): Likewise.
28766         * modules/fcntl-tests (Files): Likewise.
28767         * modules/fdopendir-tests (Files): Likewise.
28768         * modules/fdutimensat-tests (Files): Likewise.
28769         * modules/fflush-tests (Files): Likewise.
28770         * modules/filevercmp-tests (Files): Likewise.
28771         * modules/flock-tests (Files): Likewise.
28772         * modules/floorf-tests (Files): Likewise.
28773         * modules/floorl-tests (Files): Likewise.
28774         * modules/fnmatch-tests (Files): Likewise.
28775         * modules/fopen-safer-tests (Files): Likewise.
28776         * modules/fopen-tests (Files): Likewise.
28777         * modules/fpending-tests (Files): Likewise.
28778         * modules/fprintf-posix-tests (Files): Likewise.
28779         * modules/fpurge-tests (Files): Likewise.
28780         * modules/freadable-tests (Files): Likewise.
28781         * modules/freadahead-tests (Files): Likewise.
28782         * modules/freading-tests (Files): Likewise.
28783         * modules/freadptr-tests (Files): Likewise.
28784         * modules/freadseek-tests (Files): Likewise.
28785         * modules/freopen-tests (Files): Likewise.
28786         * modules/frexp-nolibm-tests (Files): Likewise.
28787         * modules/frexp-tests (Files): Likewise.
28788         * modules/frexpl-nolibm-tests (Files): Likewise.
28789         * modules/frexpl-tests (Files): Likewise.
28790         * modules/fseek-tests (Files): Likewise.
28791         * modules/fseeko-tests (Files): Likewise.
28792         * modules/fstrcmp-tests (Files): Likewise.
28793         * modules/fsync-tests (Files): Likewise.
28794         * modules/ftell-tests (Files): Likewise.
28795         * modules/ftello-tests (Files): Likewise.
28796         * modules/func-tests (Files): Likewise.
28797         * modules/futimens-tests (Files): Likewise.
28798         * modules/fwritable-tests (Files): Likewise.
28799         * modules/fwriting-tests (Files): Likewise.
28800         * modules/getcwd-tests (Files): Likewise.
28801         * modules/getdate-tests (Files): Likewise.
28802         * modules/getdelim-tests (Files): Likewise.
28803         * modules/getdtablesize-tests (Files): Likewise.
28804         * modules/getgroups-tests (Files): Likewise.
28805         * modules/getline-tests (Files): Likewise.
28806         * modules/getndelim2-tests (Files): Likewise.
28807         * modules/glob-tests (Files): Likewise.
28808         * modules/hash-tests (Files): Likewise.
28809         * modules/i-ring-tests (Files): Likewise.
28810         * modules/iconv-tests (Files): Likewise.
28811         * modules/iconv_open-utf-tests (Files): Likewise.
28812         * modules/idpriv-drop-tests (Files): Likewise.
28813         * modules/idpriv-droptemp-tests (Files): Likewise.
28814         * modules/inet_ntop-tests (Files): Likewise.
28815         * modules/inet_pton-tests (Files): Likewise.
28816         * modules/isblank-tests (Files): Likewise.
28817         * modules/isfinite-tests (Files): Likewise.
28818         * modules/isinf-tests (Files): Likewise.
28819         * modules/isnan-tests (Files): Likewise.
28820         * modules/isnand-nolibm-tests (Files): Likewise.
28821         * modules/isnand-tests (Files): Likewise.
28822         * modules/isnanf-nolibm-tests (Files): Likewise.
28823         * modules/isnanf-tests (Files): Likewise.
28824         * modules/isnanl-nolibm-tests (Files): Likewise.
28825         * modules/isnanl-tests (Files): Likewise.
28826         * modules/lchown-tests (Files): Likewise.
28827         * modules/ldexpl-tests (Files): Likewise.
28828         * modules/link-tests (Files): Likewise.
28829         * modules/linkat-tests (Files): Likewise.
28830         * modules/linked-list-tests (Files): Likewise.
28831         * modules/linkedhash-list-tests (Files): Likewise.
28832         * modules/localename-tests (Files): Likewise.
28833         * modules/lseek-tests (Files): Likewise.
28834         * modules/lstat-tests (Files): Likewise.
28835         * modules/mbmemcasecmp-tests (Files): Likewise.
28836         * modules/mbmemcasecoll-tests (Files): Likewise.
28837         * modules/mbrtowc-tests (Files): Likewise.
28838         * modules/mbscasecmp-tests (Files): Likewise.
28839         * modules/mbscasestr-tests (Files): Likewise.
28840         * modules/mbschr-tests (Files): Likewise.
28841         * modules/mbscspn-tests (Files): Likewise.
28842         * modules/mbsinit-tests (Files): Likewise.
28843         * modules/mbsncasecmp-tests (Files): Likewise.
28844         * modules/mbsnrtowcs-tests (Files): Likewise.
28845         * modules/mbspbrk-tests (Files): Likewise.
28846         * modules/mbspcasecmp-tests (Files): Likewise.
28847         * modules/mbsrchr-tests (Files): Likewise.
28848         * modules/mbsrtowcs-tests (Files): Likewise.
28849         * modules/mbsspn-tests (Files): Likewise.
28850         * modules/mbsstr-tests (Files): Likewise.
28851         * modules/memchr-tests (Files): Likewise.
28852         * modules/memchr2-tests (Files): Likewise.
28853         * modules/memcmp-tests (Files): Likewise.
28854         * modules/memmem-tests (Files): Likewise.
28855         * modules/memrchr-tests (Files): Likewise.
28856         * modules/mkdir-tests (Files): Likewise.
28857         * modules/mkfifo-tests (Files): Likewise.
28858         * modules/mkfifoat-tests (Files): Likewise.
28859         * modules/mknod-tests (Files): Likewise.
28860         * modules/nanosleep-tests (Files): Likewise.
28861         * modules/nl_langinfo-tests (Files): Likewise.
28862         * modules/obstack-printf-tests (Files): Likewise.
28863         * modules/open-tests (Files): Likewise.
28864         * modules/openat-tests (Files): Likewise.
28865         * modules/pipe-filter-gi-tests (Files): Likewise.
28866         * modules/pipe-filter-ii-tests (Files): Likewise.
28867         * modules/pipe2-tests (Files): Likewise.
28868         * modules/popen-safer-tests (Files): Likewise.
28869         * modules/popen-tests (Files): Likewise.
28870         * modules/posixtm-tests (Files): Likewise.
28871         * modules/pread-tests (Files): Likewise.
28872         * modules/printf-frexp-tests (Files): Likewise.
28873         * modules/printf-frexpl-tests (Files): Likewise.
28874         * modules/printf-posix-tests (Files): Likewise.
28875         * modules/priv-set-tests (Files): Likewise.
28876         * modules/quotearg-tests (Files): Likewise.
28877         * modules/random_r-tests (Files): Likewise.
28878         * modules/rawmemchr-tests (Files): Likewise.
28879         * modules/rbtree-list-tests (Files): Likewise.
28880         * modules/rbtree-oset-tests (Files): Likewise.
28881         * modules/rbtreehash-list-tests (Files): Likewise.
28882         * modules/readlink-tests (Files): Likewise.
28883         * modules/remove-tests (Files): Likewise.
28884         * modules/rename-tests (Files): Likewise.
28885         * modules/renameat-tests (Files): Likewise.
28886         * modules/rmdir-tests (Files): Likewise.
28887         * modules/round-tests (Files): Likewise.
28888         * modules/roundf-tests (Files): Likewise.
28889         * modules/roundl-tests (Files): Likewise.
28890         * modules/safe-alloc-tests (Files): Likewise.
28891         * modules/setenv-tests (Files): Likewise.
28892         * modules/sigaction-tests (Files): Likewise.
28893         * modules/signbit-tests (Files): Likewise.
28894         * modules/sleep-tests (Files): Likewise.
28895         * modules/snprintf-posix-tests (Files): Likewise.
28896         * modules/snprintf-tests (Files): Likewise.
28897         * modules/sprintf-posix-tests (Files): Likewise.
28898         * modules/stat-tests (Files): Likewise.
28899         * modules/stat-time-tests (Files): Likewise.
28900         * modules/strcasestr-tests (Files): Likewise.
28901         * modules/strchrnul-tests (Files): Likewise.
28902         * modules/strerror-tests (Files): Likewise.
28903         * modules/striconv-tests (Files): Likewise.
28904         * modules/striconveh-tests (Files): Likewise.
28905         * modules/striconveha-tests (Files): Likewise.
28906         * modules/strsignal-tests (Files): Likewise.
28907         * modules/strstr-tests (Files): Likewise.
28908         * modules/strtod-tests (Files): Likewise.
28909         * modules/strverscmp-tests (Files): Likewise.
28910         * modules/symlink-tests (Files): Likewise.
28911         * modules/symlinkat-tests (Files): Likewise.
28912         * modules/trunc-tests (Files): Likewise.
28913         * modules/truncf-tests (Files): Likewise.
28914         * modules/truncl-tests (Files): Likewise.
28915         * modules/uname-tests (Files): Likewise.
28916         * modules/unicase/cased-tests (Files): Likewise.
28917         * modules/unicase/ignorable-tests (Files): Likewise.
28918         * modules/unicase/locale-language-tests (Files): Likewise.
28919         * modules/unicase/tolower-tests (Files): Likewise.
28920         * modules/unicase/totitle-tests (Files): Likewise.
28921         * modules/unicase/toupper-tests (Files): Likewise.
28922         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28923         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28924         * modules/unicase/u8-casefold-tests (Files): Likewise.
28925         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28926         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28927         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28928         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28929         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28930         * modules/unicase/u8-tolower-tests (Files): Likewise.
28931         * modules/unicase/u8-totitle-tests (Files): Likewise.
28932         * modules/unicase/u8-toupper-tests (Files): Likewise.
28933         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28934         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28935         * modules/unicase/u16-casefold-tests (Files): Likewise.
28936         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28937         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28938         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28939         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28940         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28941         * modules/unicase/u16-tolower-tests (Files): Likewise.
28942         * modules/unicase/u16-totitle-tests (Files): Likewise.
28943         * modules/unicase/u16-toupper-tests (Files): Likewise.
28944         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28945         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28946         * modules/unicase/u32-casefold-tests (Files): Likewise.
28947         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28948         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28949         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28950         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28951         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28952         * modules/unicase/u32-tolower-tests (Files): Likewise.
28953         * modules/unicase/u32-totitle-tests (Files): Likewise.
28954         * modules/unicase/u32-toupper-tests (Files): Likewise.
28955         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28956         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28957         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28958         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28959         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28960         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28961         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28962         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28963         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28964         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28965         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28966         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28967         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28968         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28969         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28970         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28971         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28972         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28973         * modules/unictype/block-list-tests (Files): Likewise.
28974         * modules/unictype/block-of-tests (Files): Likewise.
28975         * modules/unictype/block-test-tests (Files): Likewise.
28976         * modules/unictype/category-C-tests (Files): Likewise.
28977         * modules/unictype/category-Cc-tests (Files): Likewise.
28978         * modules/unictype/category-Cf-tests (Files): Likewise.
28979         * modules/unictype/category-Cn-tests (Files): Likewise.
28980         * modules/unictype/category-Co-tests (Files): Likewise.
28981         * modules/unictype/category-Cs-tests (Files): Likewise.
28982         * modules/unictype/category-L-tests (Files): Likewise.
28983         * modules/unictype/category-Ll-tests (Files): Likewise.
28984         * modules/unictype/category-Lm-tests (Files): Likewise.
28985         * modules/unictype/category-Lo-tests (Files): Likewise.
28986         * modules/unictype/category-Lt-tests (Files): Likewise.
28987         * modules/unictype/category-Lu-tests (Files): Likewise.
28988         * modules/unictype/category-M-tests (Files): Likewise.
28989         * modules/unictype/category-Mc-tests (Files): Likewise.
28990         * modules/unictype/category-Me-tests (Files): Likewise.
28991         * modules/unictype/category-Mn-tests (Files): Likewise.
28992         * modules/unictype/category-N-tests (Files): Likewise.
28993         * modules/unictype/category-Nd-tests (Files): Likewise.
28994         * modules/unictype/category-Nl-tests (Files): Likewise.
28995         * modules/unictype/category-No-tests (Files): Likewise.
28996         * modules/unictype/category-P-tests (Files): Likewise.
28997         * modules/unictype/category-Pc-tests (Files): Likewise.
28998         * modules/unictype/category-Pd-tests (Files): Likewise.
28999         * modules/unictype/category-Pe-tests (Files): Likewise.
29000         * modules/unictype/category-Pf-tests (Files): Likewise.
29001         * modules/unictype/category-Pi-tests (Files): Likewise.
29002         * modules/unictype/category-Po-tests (Files): Likewise.
29003         * modules/unictype/category-Ps-tests (Files): Likewise.
29004         * modules/unictype/category-S-tests (Files): Likewise.
29005         * modules/unictype/category-Sc-tests (Files): Likewise.
29006         * modules/unictype/category-Sk-tests (Files): Likewise.
29007         * modules/unictype/category-Sm-tests (Files): Likewise.
29008         * modules/unictype/category-So-tests (Files): Likewise.
29009         * modules/unictype/category-Z-tests (Files): Likewise.
29010         * modules/unictype/category-Zl-tests (Files): Likewise.
29011         * modules/unictype/category-Zp-tests (Files): Likewise.
29012         * modules/unictype/category-Zs-tests (Files): Likewise.
29013         * modules/unictype/category-and-not-tests (Files): Likewise.
29014         * modules/unictype/category-and-tests (Files): Likewise.
29015         * modules/unictype/category-byname-tests (Files): Likewise.
29016         * modules/unictype/category-name-tests (Files): Likewise.
29017         * modules/unictype/category-none-tests (Files): Likewise.
29018         * modules/unictype/category-of-tests (Files): Likewise.
29019         * modules/unictype/category-or-tests (Files): Likewise.
29020         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29021         * modules/unictype/combining-class-tests (Files): Likewise.
29022         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29023         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29024         * modules/unictype/ctype-blank-tests (Files): Likewise.
29025         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29026         * modules/unictype/ctype-digit-tests (Files): Likewise.
29027         * modules/unictype/ctype-graph-tests (Files): Likewise.
29028         * modules/unictype/ctype-lower-tests (Files): Likewise.
29029         * modules/unictype/ctype-print-tests (Files): Likewise.
29030         * modules/unictype/ctype-punct-tests (Files): Likewise.
29031         * modules/unictype/ctype-space-tests (Files): Likewise.
29032         * modules/unictype/ctype-upper-tests (Files): Likewise.
29033         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29034         * modules/unictype/decimal-digit-tests (Files): Likewise.
29035         * modules/unictype/digit-tests (Files): Likewise.
29036         * modules/unictype/mirror-tests (Files): Likewise.
29037         * modules/unictype/numeric-tests (Files): Likewise.
29038         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29039         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29040         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29041         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29042         Likewise.
29043         * modules/unictype/property-bidi-block-separator-tests (Files):
29044         Likewise.
29045         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29046         Likewise.
29047         * modules/unictype/property-bidi-common-separator-tests (Files):
29048         Likewise.
29049         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29050         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29051         Likewise.
29052         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29053         Likewise.
29054         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29055         Likewise.
29056         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29057         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29058         Likewise.
29059         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29060         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29061         Likewise.
29062         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29063         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29064         * modules/unictype/property-bidi-segment-separator-tests (Files):
29065         Likewise.
29066         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29067         * modules/unictype/property-byname-tests (Files): Likewise.
29068         * modules/unictype/property-combining-tests (Files): Likewise.
29069         * modules/unictype/property-composite-tests (Files): Likewise.
29070         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29071         * modules/unictype/property-dash-tests (Files): Likewise.
29072         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29073         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29074         Likewise.
29075         * modules/unictype/property-deprecated-tests (Files): Likewise.
29076         * modules/unictype/property-diacritic-tests (Files): Likewise.
29077         * modules/unictype/property-extender-tests (Files): Likewise.
29078         * modules/unictype/property-format-control-tests (Files): Likewise.
29079         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29080         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29081         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29082         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29083         * modules/unictype/property-hyphen-tests (Files): Likewise.
29084         * modules/unictype/property-id-continue-tests (Files): Likewise.
29085         * modules/unictype/property-id-start-tests (Files): Likewise.
29086         * modules/unictype/property-ideographic-tests (Files): Likewise.
29087         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29088         * modules/unictype/property-ids-trinary-operator-tests (Files):
29089         Likewise.
29090         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29091         * modules/unictype/property-iso-control-tests (Files): Likewise.
29092         * modules/unictype/property-join-control-tests (Files): Likewise.
29093         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29094         * modules/unictype/property-line-separator-tests (Files): Likewise.
29095         * modules/unictype/property-logical-order-exception-tests (Files):
29096         Likewise.
29097         * modules/unictype/property-lowercase-tests (Files): Likewise.
29098         * modules/unictype/property-math-tests (Files): Likewise.
29099         * modules/unictype/property-non-break-tests (Files): Likewise.
29100         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29101         * modules/unictype/property-numeric-tests (Files): Likewise.
29102         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29103         * modules/unictype/property-other-default-ignorable-code-point-tests
29104         (Files): Likewise.
29105         * modules/unictype/property-other-grapheme-extend-tests (Files):
29106         Likewise.
29107         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29108         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29109         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29110         * modules/unictype/property-other-math-tests (Files): Likewise.
29111         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29112         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29113         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29114         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29115         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29116         * modules/unictype/property-private-use-tests (Files): Likewise.
29117         * modules/unictype/property-punctuation-tests (Files): Likewise.
29118         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29119         * modules/unictype/property-radical-tests (Files): Likewise.
29120         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29121         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29122         * modules/unictype/property-space-tests (Files): Likewise.
29123         * modules/unictype/property-terminal-punctuation-tests (Files):
29124         Likewise.
29125         * modules/unictype/property-test-tests (Files): Likewise.
29126         * modules/unictype/property-titlecase-tests (Files): Likewise.
29127         * modules/unictype/property-unassigned-code-value-tests (Files):
29128         Likewise.
29129         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29130         * modules/unictype/property-uppercase-tests (Files): Likewise.
29131         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29132         * modules/unictype/property-white-space-tests (Files): Likewise.
29133         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29134         * modules/unictype/property-xid-start-tests (Files): Likewise.
29135         * modules/unictype/property-zero-width-tests (Files): Likewise.
29136         * modules/unictype/scripts-tests (Files): Likewise.
29137         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29138         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29139         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29140         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29141         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29142         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29143         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29144         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29145         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29146         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29147         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29148         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29149         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29150         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29151         * modules/uninorm/composition-tests (Files): Likewise.
29152         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29153         * modules/uninorm/decomposition-tests (Files): Likewise.
29154         * modules/uninorm/filter-tests (Files): Likewise.
29155         * modules/uninorm/nfc-tests (Files): Likewise.
29156         * modules/uninorm/nfd-tests (Files): Likewise.
29157         * modules/uninorm/nfkc-tests (Files): Likewise.
29158         * modules/uninorm/nfkd-tests (Files): Likewise.
29159         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29160         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29161         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29162         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29163         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29164         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29165         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29166         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29167         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29168         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29169         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29170         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29171         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29172         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29173         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29174         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29175         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29176         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29177         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29178         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29179         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29180         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29181         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29182         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29183         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29184         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29185         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29186         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29187         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29188         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29189         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29190         * modules/uniwidth/u8-width-tests (Files): Likewise.
29191         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29192         * modules/uniwidth/u16-width-tests (Files): Likewise.
29193         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29194         * modules/uniwidth/u32-width-tests (Files): Likewise.
29195         * modules/uniwidth/width-tests (Files): Likewise.
29196         * modules/unlink-tests (Files): Likewise.
29197         * modules/unsetenv-tests (Files): Likewise.
29198         * modules/usleep-tests (Files): Likewise.
29199         * modules/utimens-tests (Files): Likewise.
29200         * modules/utimensat-tests (Files): Likewise.
29201         * modules/vasnprintf-posix-tests (Files): Likewise.
29202         * modules/vasnprintf-tests (Files): Likewise.
29203         * modules/vasprintf-posix-tests (Files): Likewise.
29204         * modules/vasprintf-tests (Files): Likewise.
29205         * modules/vdprintf-posix-tests (Files): Likewise.
29206         * modules/vfprintf-posix-tests (Files): Likewise.
29207         * modules/vprintf-posix-tests (Files): Likewise.
29208         * modules/vsnprintf-posix-tests (Files): Likewise.
29209         * modules/vsnprintf-tests (Files): Likewise.
29210         * modules/vsprintf-posix-tests (Files): Likewise.
29211         * modules/wcrtomb-tests (Files): Likewise.
29212         * modules/wcsnrtombs-tests (Files): Likewise.
29213         * modules/wcsrtombs-tests (Files): Likewise.
29214         * modules/wctype-tests (Files): Likewise.
29215         * modules/wcwidth-tests (Files): Likewise.
29216         * modules/xmemdup0-tests (Files): Likewise.
29217         * modules/xprintf-posix-tests (Files): Likewise.
29218         * modules/xvasprintf-tests (Files): Likewise.
29219
29220 2009-12-24  Eric Blake  <ebb9@byu.net>
29221
29222         test-nanosleep: fix typo
29223         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29224         patch.
29225         Reported by Bruno Haible.
29226
29227 2009-12-24  Bruno Haible  <bruno@clisp.org>
29228
29229         Reduce namespace pollution on glibc systems.
29230         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29231         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29232         systems.
29233         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29234         <getopt.h> on glibc systems.
29235         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29236         systems.
29237         * lib/fcntl.c: Include <unistd.h> here instead.
29238
29239 2009-12-24  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29242
29243 2009-12-24  Eric Blake  <ebb9@byu.net>
29244
29245         tests: add signature checks
29246         * tests/signature.h (SIGNATURE_CHECK): New file.
29247         * modules/atexit-tests (Files): Use it.
29248         * modules/btowc-tests (Files): Likewise.
29249         * modules/canonicalize-lgpl-tests (Files): Likewise.
29250         * modules/ceilf-tests (Files): Likewise.
29251         * modules/ceill-tests (Files): Likewise.
29252         * modules/chown-tests (Files): Likewise.
29253         * modules/dprintf-posix-tests (Files): Likewise.
29254         * modules/dup2-tests (Files): Likewise.
29255         * modules/dup3-tests (Files): Likewise.
29256         * modules/duplocale-tests (Files): Likewise.
29257         * modules/fchdir-tests (Files): Likewise.
29258         * modules/fcntl-tests (Files): Likewise.
29259         * modules/fdopendir-tests (Files): Likewise.
29260         * modules/fflush-tests (Files): Likewise.
29261         * modules/flock-tests (Files): Likewise.
29262         * modules/floorf-tests (Files): Likewise.
29263         * modules/floorl-tests (Files): Likewise.
29264         * modules/fnmatch-tests (Files): Likewise.
29265         * modules/fopen-tests (Files): Likewise.
29266         * modules/fprintf-posix-tests (Files): Likewise.
29267         * modules/freopen-tests (Files): Likewise.
29268         * modules/frexp-nolibm-tests (Files): Likewise.
29269         * modules/frexp-tests (Files): Likewise.
29270         * modules/frexpl-nolibm-tests (Files): Likewise.
29271         * modules/frexpl-tests (Files): Likewise.
29272         * modules/fseek-tests (Files): Likewise.
29273         * modules/fseeko-tests (Files): Likewise.
29274         * modules/fsync-tests (Files): Likewise.
29275         * modules/ftell-tests (Files): Likewise.
29276         * modules/ftello-tests (Files): Likewise.
29277         * modules/futimens-tests (Files): Likewise.
29278         * modules/getaddrinfo-tests (Files): Likewise.
29279         * modules/getcwd-tests (Files): Likewise.
29280         * modules/getdelim-tests (Files): Likewise.
29281         * modules/getdtablesize-tests (Files): Likewise.
29282         * modules/getgroups-tests (Files): Likewise.
29283         * modules/gethostname-tests (Files): Likewise.
29284         * modules/getline-tests (Files): Likewise.
29285         * modules/getopt-posix-tests (Files): Likewise.
29286         * modules/gettimeofday-tests (Files): Likewise.
29287         * modules/glob-tests (Files): Likewise.
29288         * modules/iconv-tests (Files): Likewise.
29289         * modules/inet_ntop-tests (Files): Likewise.
29290         * modules/inet_pton-tests (Files): Likewise.
29291         * modules/isblank-tests (Files): Likewise.
29292         * modules/lchown-tests (Files): Likewise.
29293         * modules/ldexpl-tests (Files): Likewise.
29294         * modules/link-tests (Files): Likewise.
29295         * modules/linkat-tests (Files): Likewise.
29296         * modules/lseek-tests (Files): Likewise.
29297         * modules/lstat-tests (Files): Likewise.
29298         * modules/mbrtowc-tests (Files): Likewise.
29299         * modules/mbsinit-tests (Files): Likewise.
29300         * modules/mbsnrtowcs-tests (Files): Likewise.
29301         * modules/mbsrtowcs-tests (Files): Likewise.
29302         * modules/memchr-tests (Files): Likewise.
29303         * modules/memcmp-tests (Files): Likewise.
29304         * modules/memmem-tests (Files): Likewise.
29305         * modules/memrchr-tests (Files): Likewise.
29306         * modules/mkdir-tests (Files): Likewise.
29307         * modules/mkfifo-tests (Files): Likewise.
29308         * modules/mkfifoat-tests (Files): Likewise.
29309         * modules/mknod-tests (Files): Likewise.
29310         * modules/nanosleep-tests (Files): Likewise.
29311         * modules/nl_langinfo-tests (Files): Likewise.
29312         * modules/obstack-printf-tests (Files): Likewise.
29313         * modules/open-tests (Files): Likewise.
29314         * modules/openat-tests (Files): Likewise.
29315         * modules/perror-tests (Files): Likewise.
29316         * modules/pipe2-tests (Files): Likewise.
29317         * modules/poll-tests (Files): Likewise.
29318         * modules/popen-tests (Files): Likewise.
29319         * modules/posix_spawn-tests (Files): Likewise.
29320         * modules/posix_spawnp-tests (Files): Likewise.
29321         * modules/pread-tests (Files): Likewise.
29322         * modules/printf-posix-tests (Files): Likewise.
29323         * modules/pty-tests (Files): Likewise.
29324         * modules/random_r-tests (Files): Likewise.
29325         * modules/rawmemchr-tests (Files): Likewise.
29326         * modules/readlink-tests (Files): Likewise.
29327         * modules/remove-tests (Files): Likewise.
29328         * modules/rename-tests (Files): Likewise.
29329         * modules/renameat-tests (Files): Likewise.
29330         * modules/rmdir-tests (Files): Likewise.
29331         * modules/round-tests (Files): Likewise.
29332         * modules/roundf-tests (Files): Likewise.
29333         * modules/roundl-tests (Files): Likewise.
29334         * modules/select-tests (Files): Likewise.
29335         * modules/setenv-tests (Files): Likewise.
29336         * modules/sigaction-tests (Files): Likewise.
29337         * modules/sleep-tests (Files): Likewise.
29338         * modules/snprintf-posix-tests (Files): Likewise.
29339         * modules/snprintf-tests (Files): Likewise.
29340         * modules/sprintf-posix-tests (Files): Likewise.
29341         * modules/stat-tests (Files): Likewise.
29342         * modules/strcasestr-tests (Files): Likewise.
29343         * modules/strchrnul-tests (Files): Likewise.
29344         * modules/strerror-tests (Files): Likewise.
29345         * modules/strsignal-tests (Files): Likewise.
29346         * modules/strstr-tests (Files): Likewise.
29347         * modules/strtod-tests (Files): Likewise.
29348         * modules/strverscmp-tests (Files): Likewise.
29349         * modules/symlink-tests (Files): Likewise.
29350         * modules/symlinkat-tests (Files): Likewise.
29351         * modules/times-tests (Files): Likewise.
29352         * modules/trunc-tests (Files): Likewise.
29353         * modules/truncf-tests (Files): Likewise.
29354         * modules/truncl-tests (Files): Likewise.
29355         * modules/tsearch-tests (Files): Likewise.
29356         * modules/uname-tests (Files): Likewise.
29357         * modules/unlink-tests (Files): Likewise.
29358         * modules/unsetenv-tests (Files): Likewise.
29359         * modules/usleep-tests (Files): Likewise.
29360         * modules/utimensat-tests (Files): Likewise.
29361         * modules/vasprintf-tests (Files): Likewise.
29362         * modules/vdprintf-posix-tests (Files): Likewise.
29363         * modules/vfprintf-posix-tests (Files): Likewise.
29364         * modules/vprintf-posix-tests (Files): Likewise.
29365         * modules/vsnprintf-posix-tests (Files): Likewise.
29366         * modules/vsnprintf-tests (Files): Likewise.
29367         * modules/vsprintf-posix-tests (Files): Likewise.
29368         * modules/wcrtomb-tests (Files): Likewise.
29369         * modules/wcsnrtombs-tests (Files): Likewise.
29370         * modules/wcsrtombs-tests (Files): Likewise.
29371         * modules/wcwidth-tests (Files): Likewise.
29372         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29373         * tests/test-isinf.c (isinf): Likewise.
29374         * tests/test-isnan.c (isnan): Likewise.
29375         * tests/test-signbit.c (signbit): Likewise.
29376         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29377         declaration, either as macro or with correct signature.
29378         (select): Ensure function under test is declared with correct
29379         signature in correct header.
29380         * tests/test-atexit.c (atexit): Likewise.
29381         * tests/test-btowc.c (btowc): Likewise.
29382         * tests/test-canonicalize-lgpl.c (realpath)
29383         (canonicalize_file_name): Likewise.
29384         * tests/test-ceilf1.c (ceilf): Likewise.
29385         * tests/test-ceill.c (ceill): Likewise.
29386         * tests/test-chown.c (chown): Likewise.
29387         * tests/test-dprintf-posix.c (dprintf): Likewise.
29388         * tests/test-dup2.c (dup2): Likewise.
29389         * tests/test-dup3.c (dup3): Likewise.
29390         * tests/test-duplocale.c (duplocale): Likewise.
29391         * tests/test-fchdir.c (fchdir): Likewise.
29392         * tests/test-fchownat.c (fchownat): Likewise.
29393         * tests/test-fcntl.c (fcntl): Likewise.
29394         * tests/test-fdopendir.c (fdopendir): Likewise.
29395         * tests/test-fflush.c (fflush): Likewise.
29396         * tests/test-flock.c (flock): Likewise.
29397         * tests/test-floorf1.c (floorf): Likewise.
29398         * tests/test-floorl.c (floorl): Likewise.
29399         * tests/test-fnmatch.c (fnmatch): Likewise.
29400         * tests/test-fopen.c (fopen): Likewise.
29401         * tests/test-fprintf-posix.c (fprintf): Likewise.
29402         * tests/test-freopen.c (freopen): Likewise.
29403         * tests/test-frexp.c (frexp): Likewise.
29404         * tests/test-frexpl.c (frexpl): Likewise.
29405         * tests/test-fseek.c (fseek): Likewise.
29406         * tests/test-fseeko.c (fseeko): Likewise.
29407         * tests/test-fstatat.c (fstatat): Likewise.
29408         * tests/test-fsync.c (fsync): Likewise.
29409         * tests/test-ftell.c (ftell): Likewise.
29410         * tests/test-ftello.c (ftello): Likewise.
29411         * tests/test-futimens.c (futimens): Likewise.
29412         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29413         (gai_strerror): Likewise.
29414         * tests/test-getcwd.c (getcwd): Likewise.
29415         * tests/test-getdelim.c (getdelim): Likewise.
29416         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29417         * tests/test-getgroups.c (getgroups): Likewise.
29418         * tests/test-gethostname.c (gethostname): Likewise.
29419         * tests/test-getline.c (getline): Likewise.
29420         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29421         Likewise.
29422         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29423         * tests/test-glob.c (glob, globfree): Likewise.
29424         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29425         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29426         * tests/test-inet_pton.c (inet_pton): Likewise.
29427         * tests/test-isblank.c (isblank): Likewise.
29428         * tests/test-lchown.c (lchown): Likewise.
29429         * tests/test-ldexpl.c (ldexpl): Likewise.
29430         * tests/test-link.c (link): Likewise.
29431         * tests/test-linkat.c (linkat): Likewise.
29432         * tests/test-lseek.c (lseek): Likewise.
29433         * tests/test-lstat.c (lstat): Likewise.
29434         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29435         * tests/test-mbsinit.c (mbsinit): Likewise.
29436         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29437         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29438         * tests/test-memchr.c (memchr): Likewise.
29439         * tests/test-memcmp.c (memcmp): Likewise.
29440         * tests/test-memmem.c (memmem): Likewise.
29441         * tests/test-memrchr.c (memrchr): Likewise.
29442         * tests/test-mkdir.c (mkdir): Likewise.
29443         * tests/test-mkdirat.c (mkdirat): Likewise.
29444         * tests/test-mkfifo.c (mkfifo): Likewise.
29445         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29446         * tests/test-mknod.c (mknod): Likewise.
29447         * tests/test-nanosleep.c (nanosleep): Likewise.
29448         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29449         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29450         Likewise.
29451         * tests/test-open.c (open): Likewise.
29452         * tests/test-openat.c (openat): Likewise.
29453         * tests/test-perror.c (perror): Likewise.
29454         * tests/test-pipe2.c (pipe2): Likewise.
29455         * tests/test-poll.c (poll): Likewise.
29456         * tests/test-popen.c (popen, pclose): Likewise.
29457         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29458         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29459         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29460         (posix_spawn_file_actions_destroy)
29461         (posix_spawn_file_actions_addclose)
29462         (posix_spawn_file_actions_addopen)
29463         (posix_spawn_file_actions_adddup2): Likewise.
29464         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29465         * tests/test-pread.c (pread): Likewise.
29466         * tests/test-printf-posix.c (printf): Likewise.
29467         * tests/test-pty.c (openpty, forkpty): Likewise.
29468         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29469         (random_r): Likewise.
29470         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29471         * tests/test-readlink.c (readlink): Likewise.
29472         * tests/test-remove.c (remove): Likewise.
29473         * tests/test-rename.c (rename): Likewise.
29474         * tests/test-renameat.c (renameat): Likewise.
29475         * tests/test-rmdir.c (rmdir): Likewise.
29476         * tests/test-round1.c (round): Likewise.
29477         * tests/test-roundf1.c (roundf): Likewise.
29478         * tests/test-roundl.c (roundl): Likewise.
29479         * tests/test-setenv.c (setenv): Likewise.
29480         * tests/test-sigaction.c (sigaction): Likewise.
29481         * tests/test-sleep.c (sleep): Likewise.
29482         * tests/test-snprintf.c (snprintf): Likewise.
29483         * tests/test-sprintf-posix.c (sprintf): Likewise.
29484         * tests/test-stat.c (stat): Likewise.
29485         * tests/test-stpncpy.c (stpncpy): Likewise.
29486         * tests/test-strcasestr.c (strcasestr): Likewise.
29487         * tests/test-strchrnul.c (strchrnul): Likewise.
29488         * tests/test-strerror.c (strerror): Likewise.
29489         * tests/test-strsignal.c (strsignal): Likewise.
29490         * tests/test-strstr.c (strstr): Likewise.
29491         * tests/test-strtod.c (strtod): Likewise.
29492         * tests/test-strverscmp.c (strverscmp): Likewise.
29493         * tests/test-symlink.c (symlink): Likewise.
29494         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29495         * tests/test-times.c (times): Likewise.
29496         * tests/test-trunc1.c (trunc): Likewise.
29497         * tests/test-truncf1.c (truncf): Likewise.
29498         * tests/test-truncl.c (truncl): Likewise.
29499         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29500         Likewise.
29501         * tests/test-uname.c (uname): Likewise.
29502         * tests/test-unlink.c (unlink): Likewise.
29503         * tests/test-unlinkat.c (unlinkat): Likewise.
29504         * tests/test-unsetenv.c (unsetenv): Likewise.
29505         * tests/test-usleep.c (usleep): Likewise.
29506         * tests/test-utimensat.c (utimensat): Likewise.
29507         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29508         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29509         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29510         * tests/test-vprintf-posix.c (vprintf): Likewise.
29511         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29512         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29513         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29514         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29515         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29516         * tests/test-wcwidth.c (wcwidth): Likewise.
29517
29518         build: pull in conditional headers during GNULIB_POSIXCHECK
29519         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29520         definitions from any conditionally-included headers.
29521         * lib/stdlib.in.h (includes): Likewise.
29522         * lib/unistd.in.h (includes): Likewise.
29523
29524 2009-12-24  Bruno Haible  <bruno@clisp.org>
29525
29526         * tests/test-argv-iter.c: Include header file being tested immediately
29527         after config.h.
29528         * tests/test-base64.c: Likewise.
29529         * tests/test-flock.c: Likewise.
29530         * tests/test-fsync.c: Likewise.
29531         * tests/test-getdate.c: Likewise.
29532         * tests/test-getndelim2.c: Likewise.
29533         * tests/test-isfinite.c: Likewise.
29534         * tests/test-isinf.c: Likewise.
29535         * tests/test-strerror.c: Likewise.
29536         * tests/test-strsignal.c: Likewise.
29537
29538 2009-12-23  Eric Blake  <ebb9@byu.net>
29539
29540         unistd: work around cygwin bug
29541         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29542         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29543         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29544
29545 2009-12-23  Bruno Haible  <bruno@clisp.org>
29546
29547         localename: More tests.
29548         * tests/test-localename.c (SIZEOF): New macro.
29549         (categories): New variable.
29550         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29551         test_locale_name_default): Add test w.r.t. thread locale.
29552         (test_locale_name_thread): New function.
29553         (main): Invoke it.
29554
29555         localename: Make aware of thread locale.
29556         * lib/localename.h (gl_locale_name_thread): New declaration.
29557         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29558         behaviour with respect to thread locale.
29559         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29560         <langinfo.h>, glthread/lock.h.
29561         (SIZE_BITS): New macro.
29562         (string_hash): New function.
29563         (struct hash_node): New type.
29564         (HASH_TABLE_SIZE): New macro.
29565         (struniq_hash_table, struniq_lock): New variables.
29566         (struniq): New function.
29567         (gl_locale_name_thread): New function.
29568         (gl_locale_name): Invoke it.
29569         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29570         * modules/localename (Depends-on): Add lock.
29571         Reported by Mike Gran <spk121@yahoo.com>.
29572
29573 2009-12-23  Eric Blake  <ebb9@byu.net>
29574
29575         va-args: new module
29576         * modules/va-args: New file.
29577         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29578         * MODULES.html.sh (Core language properties): Mention it.
29579
29580         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29581         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29582         named alias for __attribute__((__unused__)).
29583         * lib/chown.c: Update client.
29584         * lib/fchmodat.c: Likewise.
29585         * lib/fts.c: Likewise.
29586         * lib/getdate.y: Likewise.
29587         * lib/getgroups.c: Likewise.
29588         * lib/getopt.c: Likewise.
29589         * lib/getugroups.c: Likewise.
29590         * lib/mkdir.c: Likewise.
29591         * lib/mkfifo.c: Likewise.
29592         * lib/mkfifoat.c: Likewise.
29593         * lib/mknod.c: Likewise.
29594         * lib/mknodat.c: Likewise.
29595         * lib/readlink.c: Likewise.
29596         * lib/se-context.in.h: Likewise.
29597         * lib/se-selinux.in.h: Likewise.
29598         * lib/sockets.c: Likewise.
29599         * lib/symlink.c: Likewise.
29600         * lib/symlinkat.c: Likewise.
29601         * lib/unicodeio.c: Likewise.
29602         * lib/unistr.h: Likewise.
29603         * tests/test-areadlink.c: Likewise.
29604         * tests/test-areadlinkat.c: Likewise.
29605         * tests/test-filenamecat.c: Likewise.
29606         * tests/test-fseeko.c: Likewise.
29607         * tests/test-ftello.c: Likewise.
29608         * tests/test-getdate.c: Likewise.
29609         * tests/test-getgroups.c: Likewise.
29610         * tests/test-gethostname.c: Likewise.
29611         * tests/test-quotearg.c: Likewise.
29612         * tests/test-version-etc.c: Likewise.
29613         * tests/test-xalloc-die.c: Likewise.
29614         * tests/test-xfprintf-posix.c: Likewise.
29615         * tests/test-xprintf-posix.c: Likewise.
29616         * tests/test-xvasprintf.c: Likewise.
29617
29618         tests: avoid compiler warnings
29619         * tests/test-fcntl.c (main): Delete unused parameters.
29620         * tests/test-freopen-safer.c (main): Likewise.
29621         * tests/test-xalloc-die.c (main): Mark unused parameters.
29622         * tests/test-fseeko.c (main): Likewise.
29623         * tests/test-ftello.c (main): Likewise.
29624         * tests/test-nanosleep.c (main): Avoid declaration warning.
29625         * tests/test-sleep.c (main): Likewise.
29626         * tests/test-unsetenv.c (main): Silence warning about string
29627         literal.
29628         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29629
29630 2009-12-23  Bruno Haible  <bruno@clisp.org>
29631
29632         * tests/test-localename.c (test_locale_name): New function, extracted
29633         from main. Also test mixed situations.
29634         (test_locale_name_posix, test_locale_name_environ,
29635         test_locale_name_default): New functions.
29636         (main): Invoke them all.
29637         * modules/localename-tests (configure.ac): Test for newlocale.
29638
29639 2009-12-23  Bruno Haible  <bruno@clisp.org>
29640
29641         unistd: Ensure getcwd gets declared before being overridden.
29642         * lib/unistd.in.h: Conditionally include <io.h>.
29643
29644 2009-12-22  Bruno Haible  <bruno@clisp.org>
29645
29646         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29647         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29648         (gl_WCHAR_H): Invoke it.
29649         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29650         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29651         Reported by Karl Berry <karl@freefriends.org>.
29652
29653 2009-12-22  Eric Blake  <ebb9@byu.net>
29654
29655         math, unistd: avoid redundant includes
29656         * lib/math.in.h (isnan): No need to re-include <math.h>.
29657         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29658
29659         getsubopt: work around cygwin bug
29660         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29661         avoid conflicting with system getsubopt.
29662         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29663         bug.
29664
29665         getopt: synchronize from glibc
29666         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29667         parameter order.  Adjust all callers.
29668         (_getopt_internal_r, main): Adjust quoting in error messages.
29669         Drop considerations for outdated POSIX 1003.2 error message.
29670         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29671         callers.
29672         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29673
29674         test-getopt: test stderr behavior
29675         * modules/getopt-posix-tests (Depends-on): Add dup2.
29676         * tests/test-getopt.c (ASSERT): Avoid stderr.
29677         (main): Move stderr to a temporary file.
29678         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29679         Instead, add parameter to inform caller if output occurred.
29680         (test_getopt): Adjust all existing tests to expect silence, and
29681         add new tests of leading ":".
29682         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29683         glibc shortcomings with leading "-:" or "+:" in optstring.
29684         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29685         Likewise.
29686         * doc/posix-functions/getopt.texi (getopt): Likewise.
29687
29688         test-getopt: enhance test
29689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29690         supports optind=0.
29691         * tests/test-getopt.c (OPTIND_MIN): Move...
29692         * tests/test-getopt.h (OPTIND_MIN): ...here.
29693         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29694         Require that optind=0 works, since modern BSD supports it in
29695         addition to optreset, and since coreutils expects it.
29696         (test_getopt_long_only): New test.
29697         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29698         glibc shortcomings with 'W;', and enforcement of optind=0.
29699         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29700         Likewise.
29701
29702 2009-12-21  Bruno Haible  <bruno@clisp.org>
29703
29704         localename: Improvements for MacOS X and Cygwin.
29705         * lib/localename.h (gl_locale_name_environ): New declaration.
29706         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29707         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29708         (gl_locale_name_posix): Invoke it.
29709         (gl_locale_name_default): Add comments. Use Windows native API also on
29710         Cygwin.
29711
29712 2009-12-21  Bruno Haible  <bruno@clisp.org>
29713
29714         Update list of Win32 locale ids.
29715         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29716         (LANG_SAMI): Renamed from LANG_SAAMI.
29717         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29718         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29719         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29720         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29721         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29722         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29723         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29724         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29725         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29726         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29727         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29728         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29729         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29730         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29731         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29732         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29733         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29734         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29735         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29736         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29737         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29738         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29739         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29740         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29741         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29742         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29743         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29744         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29745         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29746         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29747         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29748         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29749         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29750         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29751         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29752         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29753         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29754         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29755         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29756         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29757         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29758         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29759         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29760         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29761         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29762         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29763         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29764         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29765         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29766         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29767         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29768         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29769         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29770         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29771         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29772         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29773         Add more languages and countries for Sami, Sorbian. Add more countries
29774         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29775         for Pashto. Change country for Syriac, Tswana.
29776
29777 2009-12-21  Eric Blake  <ebb9@byu.net>
29778
29779         test-utimens: avoid spurious failure
29780         * tests/test-chown.h (nap): Factor...
29781         * tests/nap.h: ...into new file.
29782         * tests/test-lchown.h (nap): Avoid duplication.
29783         * tests/test-utimens-common.h (nap): Use shared implementation,
29784         necessary on file systems with 1-second resolution.
29785         * modules/chown-tests (Files): Include new file.
29786         * modules/fdutimensat-tests (Files): Likewise.
29787         * modules/futimens-tests (Files): Likewise.
29788         * modules/lchown-tests (Files): Likewise.
29789         * modules/openat-tests (Files): Likewise.
29790         * modules/utimens-tests (Files): Likewise.
29791         * modules/utimensat-tests (Files): Likewise.
29792
29793 2009-12-19  Eric Blake  <ebb9@byu.net>
29794
29795         futimens, utimensat: work around Linux bug
29796         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29797         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29798         * lib/utimensat.c (rpl_utimensat): Work around it.
29799         * lib/futimens.c (rpl_futimens): Adjust comment.
29800
29801         utimens: work around Linux ctime bug
29802         * lib/utimens.c (detect_ctime_bug): New helper function.
29803         (update_timespec): Differentiate between workaround needed for
29804         this bug vs. what is needed for systems that lack utimensat.
29805         (fdutimens, lutimens): Work around bug.
29806
29807         utimens: check for ctime update
29808         * tests/test-utimens-common.h (check_ctime): Define.
29809         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29810         * tests/test-futimens.h (test_futimens): Likewise.
29811         * tests/test-lutimens.h (test_lutimens): Likewise.
29812         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29813         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29814
29815 2009-12-19  Bruno Haible  <bruno@clisp.org>
29816
29817         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29818         * tests/test-dprintf-posix2.sh: New file.
29819         * tests/test-dprintf-posix2.c: New file.
29820         * modules/dprintf-posix-tests (Files): Add them.
29821         (configure.ac): Check for getrlimit and setrlimit.
29822         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29823
29824 2009-12-19  Bruno Haible  <bruno@clisp.org>
29825
29826         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29827         * tests/test-fprintf-posix3.sh: New file.
29828         * tests/test-fprintf-posix3.c: New file.
29829         * modules/fprintf-posix-tests (Files): Add them.
29830         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29831
29832 2009-12-19  Eric Blake  <ebb9@byu.net>
29833
29834         dirfd: fix prototype
29835         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29836         * lib/dirfd.c (dirfd): Likewise.
29837
29838         canonicalize: reduce memory usage
29839         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29840         allocation to size.
29841         Reported by Solar Designer <solar@openwall.com>.
29842
29843 2009-12-19  Bruno Haible  <bruno@clisp.org>
29844
29845         New module attribute 'Applicability'.
29846         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29847         * gnulib-tool: New option --extract-applicability.
29848         (func_usage): Document it.
29849         (sed_extract_prog): Recognize it.
29850         (func_get_applicability): New function.
29851         (func_import): Generalize handling of 'link-warning' module.
29852         * modules/link-warning (Applicability): New section.
29853         * modules/arg-nonnull (Applicability): New section.
29854         Repoted by Simon Josefsson <simon@josefsson.org>.
29855
29856 2009-12-19  Bruno Haible  <bruno@clisp.org>
29857
29858         fflush: tweak
29859         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29860         * lib/fseeko.c (rpl_fseeko): Likewise.
29861
29862 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29863
29864         * lib/gl_list.h: Fix typo in comment.
29865
29866 2009-12-16  Eric Blake  <ebb9@byu.net>
29867
29868         fcntl: use to simplify other modules
29869         * modules/cloexec (Depends-on): Add fcntl.
29870         * modules/fchdir (Depends-on): Likewise.
29871         * modules/fd-safer-flag (Depends-on): Likewise.
29872         * modules/unistd-safer (Depends-on): Likewise.
29873         * modules/dup3 (configure.ac): Set module indicator.
29874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29875         missing.
29876         * lib/fchdir.c (_gl_register_dup): Fix comment.
29877         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29878         * lib/dup-safer.c (dup_safer): Likewise.
29879         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29880         * lib/dup3.c (dup3): Likewise.
29881         * tests/test-fchdir.c (main): Enhance test.
29882         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29883
29884         fcntl: port portions of fcntl to mingw
29885         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29886         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29887         replacement for mingw.
29888         * modules/fcntl (Description): Update.
29889         (Depends-on): Add dup2.
29890         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29891         * modules/fcntl-h (Makefile.am): Substitute it.
29892         * lib/fcntl.in.h (fcntl): Update declaration.
29893         (F_DUPFD, F_GETFD): New macros, when needed.
29894         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29895         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29896         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29897         we now guarantee.
29898
29899         fcntl: work around cygwin bug in F_DUPFD
29900         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29901         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29902         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29903         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29904         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29905
29906         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29907         * modules/fcntl (Files): List new files.
29908         (configure.ac): Run a test.
29909         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29910         * lib/fcntl.c (rpl_fcntl): Likewise.
29911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29912         (gl_FCNTL_H): Always replace fcntl.h.
29913         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29914         * lib/fcntl.in.h (fcntl): Declare replacement.
29915         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29916         needed, plus a witness.
29917         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29918         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29919         * tests/test-fcntl.c: New file.
29920         * modules/fcntl-tests: Likewise.
29921
29922         binary-io: avoid potential compilation warning
29923         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29924         directives.
29925
29926         fflush: avoid compilation error on NetBSD
29927         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29928         between off_t and fpos_t, since the latter is sometimes a struct.
29929         * lib/fseeko.c (rpl_fseeko): Likewise.
29930         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29931
29932 2009-12-15  Eric Blake  <ebb9@byu.net>
29933
29934         fcntl-h, stdio, sys_ioctl: fix declarations
29935         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29936         function must not take arguments.
29937         * lib/sys_ioctl.in.h (ioctl): Likewise.
29938         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29939         (open): Add a link warning.
29940
29941 2009-12-15  Jim Meyering  <meyering@redhat.com>
29942
29943         areadlink, areadlink-with-size: relax license to LGPLv2+
29944         * modules/areadlink (License): Relax to LGPLv2+.
29945         * modules/areadlink-with-size (License): Likewise.
29946
29947 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29948             Bruno Haible  <bruno@clisp.org>
29949
29950         *printf: Fix memory leak.
29951         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29952         * lib/vfprintf.c (vfprintf): Likewise.
29953         * lib/dprintf.c (dprintf): Likewise.
29954         * lib/vdprintf.c (vdprintf): Likewise.
29955
29956 2009-12-14  Eric Blake  <ebb9@byu.net>
29957
29958         accept4: adjust module dependencies
29959         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29960
29961         utimens: one more try at avoiding compiler warning
29962         * lib/utimens.c (lutimens): Lower scope of result.
29963
29964 2009-12-13  Bruno Haible  <bruno@clisp.org>
29965
29966         Move the malloc checking from module 'list' to new module 'xlist'.
29967         * modules/xlist: New file.
29968         * lib/gl_xlist.h: New file.
29969         * lib/gl_xlist.c: New file.
29970         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29971         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29972         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29973         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29974         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29975         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29976         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29977         gl_sortedlist_nx_add): New declarations.
29978         (struct gl_list_implementation): Rename and change methods accordingly.
29979         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29980         (gl_list_nx_create): Renamed from gl_list_create.
29981         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29982         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29983         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29984         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29985         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29986         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29987         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29988         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29989         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29990         gl_list_create_empty.
29991         (gl_list_nx_create): Renamed from gl_list_create.
29992         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29993         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29994         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29995         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29996         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29997         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29998         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29999         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30000         * lib/gl_array_list.c: Don't include xalloc.h.
30001         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30002         NULL upon out-of-memory.
30003         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30004         out-of-memory.
30005         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30006         Change return type to 'int'.
30007         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30008         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30009         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30010         upon out-of-memory.
30011         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30012         upon out-of-memory.
30013         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30014         upon out-of-memory.
30015         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30016         upon out-of-memory.
30017         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30018         out-of-memory.
30019         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30020         Update.
30021         (gl_array_list_implementation): Update.
30022         * lib/gl_carray_list.c: Don't include xalloc.h.
30023         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30024         Return NULL upon out-of-memory.
30025         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30026         out-of-memory.
30027         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30028         Change return type to 'int'.
30029         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30030         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30031         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30032         upon out-of-memory.
30033         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30034         upon out-of-memory.
30035         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30036         out-of-memory.
30037         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30038         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30039         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30040         Update.
30041         (gl_carray_list_implementation): Update.
30042         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30043         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30044         gl_linked_create_empty. Return NULL upon out-of-memory.
30045         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30046         out-of-memory.
30047         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30048         Change return type to 'int'. Return -1 upon out-of-memory.
30049         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30050         out-of-memory.
30051         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30052         upon out-of-memory.
30053         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30054         upon out-of-memory.
30055         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30056         NULL upon out-of-memory.
30057         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30058         upon out-of-memory.
30059         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30060         out-of-memory.
30061         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30062         Update.
30063         * lib/gl_linked_list.c: Don't include xalloc.h.
30064         (gl_linked_list_implementation): Update.
30065         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30066         (add_to_bucket): Change return type to 'int'.
30067         (gl_linkedhash_list_implementation): Update.
30068         * lib/gl_anytree_list1.h (free_subtree): New function.
30069         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30070         gl_tree_create_empty. Return NULL upon out-of-memory.
30071         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30072         Change return type to 'int'. Return -1 upon out-of-memory.
30073         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30074         out-of-memory.
30075         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30076         (gl_tree_remove_node): New function, moved here from
30077         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30078         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30079         Update.
30080         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30081         malloc, not xmalloc. Return NULL upon out-of-memory.
30082         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30083         out-of-memory.
30084         (gl_tree_remove_node_from_tree): New function, extracted from
30085         gl_tree_remove_node.
30086         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30087         upon out-of-memory.
30088         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30089         out-of-memory.
30090         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30091         upon out-of-memory.
30092         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30093         upon out-of-memory.
30094         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30095         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30096         not xmalloc. Return NULL upon out-of-memory.
30097         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30098         out-of-memory.
30099         (gl_tree_remove_node_from_tree): New function, extracted from
30100         gl_tree_remove_node.
30101         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30102         upon out-of-memory.
30103         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30104         out-of-memory.
30105         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30106         upon out-of-memory.
30107         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30108         upon out-of-memory.
30109         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30110         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30111         gl_anytree_list1.h before gl_anyavltree_list2.h.
30112         (gl_avltree_list_implementation): Update.
30113         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30114         gl_anytree_list1.h before gl_anyavltree_list2.h.
30115         (gl_rbtree_list_implementation): Update.
30116         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30117         Change return type to 'int'. Return -1 upon out-of-memory. Use
30118         __builtin_expect.
30119         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30120         (gl_avltreehash_list_implementation): Update.
30121         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30122         (gl_rbtreehash_list_implementation): Update.
30123         * modules/array-list (Depends-on): Remove xalloc.
30124         * modules/carray-list (Depends-on): Likewise.
30125         * modules/linked-list (Depends-on): Likewise.
30126         * modules/linkedhash-list (Depends-on): Likewise.
30127         * modules/avltree-list (Depends-on): Likewise.
30128         * modules/rbtree-list (Depends-on): Likewise.
30129         * modules/avltreehash-list (Depends-on): Likewise.
30130         * modules/rbtreehash-list (Depends-on): Likewise.
30131
30132         * modules/xsublist: New file.
30133         * lib/gl_xsublist.h: New file.
30134         * lib/gl_xsublist.c: New file.
30135         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30136         (gl_sublist_nx_create): New declaration.
30137         * lib/gl_sublist.c: Don't include xalloc.h.
30138         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30139         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30140         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30141         Change return type to 'int'. Return -1 upon out-of-memory.
30142         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30143         upon out-of-memory.
30144         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30145         NULL upon out-of-memory.
30146         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30147         upon out-of-memory.
30148         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30149         NULL upon out-of-memory.
30150         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30151         NULL upon out-of-memory.
30152         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30153         upon out-of-memory.
30154         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30155         (gl_sublist_list_implementation): Update.
30156         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30157         upon out-of-memory.
30158         * modules/sublist (Depends-on): Remove xalloc.
30159
30160         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30161         * tests/test-carray_list.c: Likewise.
30162         * tests/test-linked_list.c: Likewise.
30163         * tests/test-linkedhash_list.c: Likewise.
30164         * tests/test-avltree_list.c: Likewise.
30165         * tests/test-rbtree_list.c: Likewise.
30166         * tests/test-avltreehash_list.c: Likewise.
30167         * tests/test-rbtreehash_list.c: Likewise.
30168         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30169         * modules/carray-list-tests (Makefile.am): Likewise.
30170         * modules/linked-list-tests (Makefile.am): Likewise.
30171         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30172         * modules/avltree-list-tests (Makefile.am): Likewise.
30173         * modules/rbtree-list-tests (Makefile.am): Likewise.
30174         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30175         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30176
30177         * NEWS: Mention the changes.
30178
30179         * lib/clean-temp.c: Include gl_xlist.h.
30180         * modules/clean-temp (Depends-on): Add xlist.
30181
30182         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30183         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30184
30185         * tests/test-array_oset.c: Include gl_xlist.h.
30186         * modules/array-oset-tests (Depends-on): Add xlist.
30187
30188         Reported by José E. Marchesi <jemarch@gnu.org>.
30189
30190 2009-12-13  Bruno Haible  <bruno@clisp.org>
30191
30192         Move the malloc checking from module 'oset' to new module 'xoset'.
30193         * modules/xoset: New file.
30194         * lib/gl_xoset.h: New file.
30195         * lib/gl_xoset.c: New file.
30196         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30197         declarations.
30198         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30199         (struct gl_oset_implementation): Rename and change methods accordingly.
30200         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30201         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30202         'int'. Mark as __warn_unused_result__.
30203         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30204         gl_oset_create_empty.
30205         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30206         'int'.
30207         * lib/gl_array_oset.c: Don't include xalloc.h.
30208         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30209         malloc, not xmalloc.
30210         (grow): Change return type to 'int'. Don't call xalloc_die.
30211         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30212         to 'int'.
30213         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30214         'int'.
30215         (gl_array_oset_implementation): Update.
30216         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30217         gl_tree_create_empty.
30218         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30219         'int'.
30220         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30221         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30222         xmalloc.
30223         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30224         not xmalloc.
30225         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30226         xmalloc.
30227         (gl_avltree_oset_implementation): Update.
30228         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30229         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30230         xmalloc.
30231         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30232         not xmalloc.
30233         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30234         xmalloc.
30235         (gl_rbtree_oset_implementation): Update.
30236         * modules/array-oset (Depends-on): Remove xalloc.
30237         * modules/avltree-oset (Depends-on): Likewise.
30238         * modules/rbtree-oset (Depends-on): Likewise.
30239         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30240         * tests/test-avltree_oset.c: Likewise.
30241         * tests/test-rbtree_oset.c: Likewise.
30242         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30243         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30244         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30245         * NEWS: Mention the change.
30246
30247 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30248
30249         maint.mk: allow a project to override release-prep commands
30250         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30251         commands into a new rule.
30252         (release-prep): New rule.
30253         (release-prep-hook): New overridable variable.
30254
30255 2009-12-13  Bruno Haible  <bruno@clisp.org>
30256
30257         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30258
30259 2009-12-13  Jim Meyering  <meyering@redhat.com>
30260
30261         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30262         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30263
30264 2009-12-12  Bruno Haible  <bruno@clisp.org>
30265
30266         duplocale: Tweak.
30267         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30268
30269 2009-12-12  Karl Berry  <karl@gnu.org>
30270
30271         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30272
30273 2009-12-12  Bruno Haible  <bruno@clisp.org>
30274
30275         * m4/po.m4: Undo incorrect untabification.
30276
30277 2009-12-12  Bruno Haible  <bruno@clisp.org>
30278
30279         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30280         * modules/c-strtod (Depends-on): Add locale.
30281         * modules/c-strtold (Depends-on): Likewise.
30282
30283 2009-12-12  Bruno Haible  <bruno@clisp.org>
30284
30285         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30286
30287 2009-12-11  Eric Blake  <ebb9@byu.net>
30288
30289         setenv: relax requirement in light of POSIX ruling
30290         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30291         not NULL.
30292         * tests/test-setenv.c (main): Relax test.
30293         * tests/test-unsetenv.c (main): Likewise.
30294         * doc/posix-functions/setenv.texi (setenv): Document this.
30295         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30296
30297 2009-12-11  Bruno Haible  <bruno@clisp.org>
30298
30299         New module 'fd-safer-flag'.
30300         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30301         * lib/dup-safer.c (dup_safer_flag): Remove function.
30302         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30303         * lib/fd-safer.c (fd_safer_flag): Remove function.
30304         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30305         * modules/cloexec (configure.ac): Drop indicator macro.
30306         * modules/fd-safer-flag: New file.
30307         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30308         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30309         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30310
30311 2009-12-11  Bruno Haible  <bruno@clisp.org>
30312
30313         Tests for module 'nl_langinfo'.
30314         * modules/nl_langinfo-tests: New file.
30315         * tests/test-nl_langinfo.sh: New file.
30316         * tests/test-nl_langinfo.c: New file.
30317
30318         New module 'nl_langinfo'.
30319         * lib/nl_langinfo.c: New file.
30320         * m4/nl_langinfo.m4: New file.
30321         * modules/nl_langinfo: New file.
30322         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30323
30324 2009-12-11  Bruno Haible  <bruno@clisp.org>
30325
30326         Tests for module 'langinfo'.
30327         * modules/langinfo-tests: New file.
30328         * tests/test-langinfo.c: New file.
30329
30330         New module 'langinfo'.
30331         * lib/langinfo.in.h: New file.
30332         * m4/langinfo_h.m4: New file.
30333         * modules/langinfo: New file.
30334         * doc/posix-headers/langinfo.texi: Mention the new module.
30335
30336 2009-12-11  Bruno Haible  <bruno@clisp.org>
30337
30338         * lib/config.charset: Untabify.
30339
30340 2009-12-11  Bruno Haible  <bruno@clisp.org>
30341
30342         * modules/unistd-safer (configure.ac): Drop indicator macro.
30343
30344 2009-12-11  Bruno Haible  <bruno@clisp.org>
30345
30346         Move pipe2-safer code to its own file.
30347         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30348         * lib/pipe-safer.c (pipe2_safer): Remove function.
30349         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30350         (Makefile.am): Add it to lib_SOURCES.
30351
30352 2009-12-10  Bruno Haible  <bruno@clisp.org>
30353
30354         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30355
30356 2009-12-10  Bruno Haible  <bruno@clisp.org>
30357
30358         Declare which arguments expect non-NULL values, for GCC and clang.
30359         * build-aux/arg-nonnull.h: New file.
30360         * modules/arg-nonnull: New file.
30361         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30362         (inet_ntop, inet_pton): Use it.
30363         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30364         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30365         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30366         (open, openat): Use it.
30367         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30368         (fnmatch): Use it.
30369         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30370         (getopt, getopt_long, getopt_long_only): Use it.
30371         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30372         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30373         Use it.
30374         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30375         (iconv_open): Use it.
30376         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30377         (strtoimax, strtoumax): Use it.
30378         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30379         (duplocale): Use it.
30380         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30381         (frexp, frexpl): Use it.
30382         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30383         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30384         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30385         (tsearch, tfind, tdelete, twalk): Use it.
30386         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30387         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30388         sigpending): Use it.
30389         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30390         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30391         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30392         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30393         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30394         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30395         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30396         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30397         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30398         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30399         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30400         Use it.
30401         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30402         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30403         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30404         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30405         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30406         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30407         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30408         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30409         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30410         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30411         strtoull, unsetenv): Use it.
30412         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30413         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30414         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30415         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30416         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30417         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30418         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30419         (strcasecmp, strncasecmp): Use it.
30420         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30421         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30422         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30423         rpl_setsockopt): Use it.
30424         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30425         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30426         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30427         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30428         (gettimeofday): Use it.
30429         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30430         (times): Use it.
30431         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30432         (uname): Use it.
30433         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30434         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30435         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30436         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30437         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30438         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30439         unlinkat, write): Use it.
30440         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30441         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30442         * lib/argv-iter.h: Include arg-nonnull.h.
30443         (_ATTRIBUTE_NONNULL_): Remove macro.
30444         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30445         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30446         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30447         optimization.
30448         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30449         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30450         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30451         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30452         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30453         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30454         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30455         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30456         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30457         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30458         * modules/dirent (Depends-on): Add arg-nonnull.
30459         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30460         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30461         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30462         * modules/fnmatch (Depends-on): Add arg-nonnull.
30463         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30464         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30465         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30466         * modules/glob (Depends-on): Add arg-nonnull.
30467         (Makefile.am): Insert arg-nonnull.h into glob.h.
30468         * modules/iconv_open (Depends-on): Add arg-nonnull.
30469         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30470         * modules/inttypes (Depends-on): Add arg-nonnull.
30471         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30472         * modules/locale (Depends-on): Add arg-nonnull.
30473         (Makefile.am): Insert arg-nonnull.h into locale.h.
30474         * modules/math (Depends-on): Add arg-nonnull.
30475         (Makefile.am): Insert arg-nonnull.h into math.h.
30476         * modules/netdb (Depends-on): Add arg-nonnull.
30477         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30478         * modules/search (Depends-on): Add arg-nonnull.
30479         (Makefile.am): Insert arg-nonnull.h into search.h.
30480         * modules/signal (Depends-on): Add arg-nonnull.
30481         (Makefile.am): Insert arg-nonnull.h into signal.h.
30482         * modules/spawn (Depends-on): Add arg-nonnull.
30483         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30484         * modules/stdio (Depends-on): Add arg-nonnull.
30485         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30486         * modules/stdlib (Depends-on): Add arg-nonnull.
30487         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30488         * modules/string (Depends-on): Add arg-nonnull.
30489         (Makefile.am): Insert arg-nonnull.h into string.h.
30490         * modules/strings (Depends-on): Add arg-nonnull.
30491         (Makefile.am): Insert arg-nonnull.h into strings.h.
30492         * modules/sys_socket (Depends-on): Add arg-nonnull.
30493         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30494         * modules/sys_stat (Depends-on): Add arg-nonnull.
30495         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30496         * modules/sys_time (Depends-on): Add arg-nonnull.
30497         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30498         * modules/sys_times (Depends-on): Add arg-nonnull.
30499         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30500         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30501         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30502         * modules/time (Depends-on): Add arg-nonnull.
30503         (Makefile.am): Insert arg-nonnull.h into time.h.
30504         * modules/unistd (Depends-on): Add arg-nonnull.
30505         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30506         * modules/wchar (Depends-on): Add arg-nonnull.
30507         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30508         * modules/argv-iter (Depends-on): Add arg-nonnull.
30509         * tests/test-canonicalize.c (null_ptr): New function.
30510         (main): Use it.
30511         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30512         (main): Use it.
30513         * tests/test-memmem.c (null_ptr): New function.
30514         (main): Use it.
30515         Reported by Jim Meyering.
30516
30517 2009-12-10  Bruno Haible  <bruno@clisp.org>
30518
30519         Use spaces for indentation, not tabs.
30520         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30521         * m4/*.m4: Untabify.
30522         * build-aux/*.h: Untabify.
30523         * tests/**/*.[hc]: Untabify.
30524         * README: New section "Indent with spaces, not TABs", based on
30525         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30526         * NEWS: Mention the change.
30527
30528 2009-12-10  Bruno Haible  <bruno@clisp.org>
30529
30530         pty test: Fix link error.
30531         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30532         test_pty_LDADD.
30533
30534 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30535
30536         * modules/pty: New file.
30537         * modules/pty-tests: New file.
30538         * m4/pty.m4: New file.
30539         * tests/test-pty.c: New file.
30540         * doc/glibc-headers/pty.texi: Modified.
30541         * doc/glibc-functions/forkpty.texi: Modified.
30542         * doc/glibc-functions/openpty.texi: Modified.
30543
30544 2009-12-10  Bruno Haible  <bruno@clisp.org>
30545
30546         Avoid syntax error in C++ mode.
30547         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30548
30549 2009-12-10  Bruno Haible  <bruno@clisp.org>
30550
30551         Use sed with option -e.
30552         * gnulib-tool (func_version, func_emit_copyright_notice,
30553         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30554         option -e to sed.
30555         * modules/link-warning (Makefile.am): Likewise.
30556
30557 2009-12-10  Jim Meyering  <meyering@redhat.com>
30558
30559         mgetgroups: do not write bytes beyond end of malloc'd buffer
30560         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30561         username, we call getgroups with a one-element-shorter buffer,
30562         but still told it the length was original, max_n_groups.
30563
30564 2009-12-09  Eric Blake  <ebb9@byu.net>
30565
30566         cloexec: relax license
30567         * modules/cloexec (Maintainer): Add myself.
30568         (License): Use LGPL, not GPL.
30569
30570         link-warning: optimize generation
30571         * modules/link-warning (Makefile.am): Reduce process usage.
30572
30573 2009-12-09  Bruno Haible  <bruno@clisp.org>
30574
30575         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30576         workaround was added on 2009-11-17.
30577
30578 2009-12-09  Jim Meyering  <meyering@redhat.com>
30579             Bruno Haible  <bruno@clisp.org>
30580
30581         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30582         * modules/link-warning (Makefile.am): Make the comment-removing sed
30583         command more robust in the face of bootstrap-prepended comment lines.
30584
30585 2009-12-09  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30588         most one group.
30589
30590 2009-12-09  Simon Josefsson <simon@josefsson.org>
30591             Bruno Haible  <bruno@clisp.org>
30592
30593         * build-aux/link-warning.h: Add copyright notice.
30594         * modules/link-warning (Makefile.am): Generate link-warning.h from
30595         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30596         * NEWS: Mention change in link-warning module.
30597         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30598         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30599         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30600         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30601         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30602         * modules/math (Makefile.am): Add dependency to math.h.
30603         * modules/search (Makefile.am): Add dependency to search.h.
30604         * modules/signal (Makefile.am): Add dependency to signal.h.
30605         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30606         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30607         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30608         * modules/string (Makefile.am): Add dependency to string.h.
30609         * modules/strings (Makefile.am): Add dependency to strings.h.
30610         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30611         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30612         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30613         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30614         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30615         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30616         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30617         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30618         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30619
30620 2009-12-09  Bruno Haible  <bruno@clisp.org>
30621
30622         fchdir: Optimize away rpl_fstat when possible.
30623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30624         REPLACE_OPEN_DIRECTORY.
30625         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30626
30627 2009-12-09  Bruno Haible  <bruno@clisp.org>
30628
30629         * lib/fchdir.c: Update comment.
30630
30631 2009-12-09  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30634
30635 2009-12-08  Eric Blake  <ebb9@byu.net>
30636
30637         fchdir: avoid memory leak on re-registration.
30638         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30639
30640 2009-12-08  Jim Meyering  <meyering@redhat.com>
30641
30642         init.sh: avoid Solaris 10 /bin/sh portability problem
30643         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30644         sourced script:
30645           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30646           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30647           bar
30648         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30649         and two tests used that idiom.
30650         * tests/init.sh: Update suggested usage comments.
30651         (path_prepend_): New function, to be used in place
30652         of the --src-path=DIR option.
30653         (setup_): Move PATH-prepending code into path_prepend_.
30654         * tests/test-pread.sh: Adapt to new usage.
30655         * tests/test-xalloc-die.sh: Likewise.
30656
30657 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30658
30659         * doc/gnulib.texi (Glibc pty.h): Add.
30660         * doc/glibc-functions/forkpty.texi: Add.
30661         * doc/glibc-functions/openpty.texi: Add.
30662         Suggested by Bruno Haible.
30663
30664 2009-12-08  Eric Blake  <ebb9@byu.net>
30665
30666         fchdir: fix logic bugs
30667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30668         * tests/test-fchdir.c (main): Enhance test.
30669         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30670         is in use.
30671
30672         dup2: fix logic bugs
30673         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30674         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30675         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30676         exists.
30677         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30678
30679 2009-12-07  Eric Blake  <ebb9@byu.net>
30680
30681         unlink: fix m4 detection
30682         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30683
30684         unistd-safer: add unit test
30685         * modules/unistd-safer-tests: New file.
30686         * tests/test-dup-safer.c: Likewise.
30687         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30688         * tests/test-dup2.c (setmode): Likewise.
30689         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30690
30691         cloexec: preserve text vs. binary across dup_cloexec
30692         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30693         mode.
30694         * modules/dup2-tests (Depends-on): Add binary-io.
30695         * modules/cloexec-tests (Depends-on): Likewise.
30696         * tests/test-dup2.c (setmode, is_mode): New helpers.
30697         (main): Add tests that translation mode is preserved.
30698         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30699         Reported by Bruno Haible.
30700
30701         mgetgroups: reduce duplicate listings
30702         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30703         resulting array.
30704         * tests/test-chown.h (test_chown): Simplify client.
30705         * tests/test-lchown.h (test_lchown): Likewise.
30706
30707 2009-12-06  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30710         value.
30711
30712 2009-12-06  Bruno Haible  <bruno@clisp.org>
30713
30714         * lib/progname.c: Include stdio.h, stdlib.h.
30715         (set_program_name): Reject a NULL argument.
30716
30717 2009-12-05  Eric Blake  <ebb9@byu.net>
30718
30719         pipe2-safer: new module
30720         * modules/pipe2-safer: New file.
30721         * lib/unistd-safer.h (pipe2_safer): New prototype.
30722         * lib/unistd--.h (pipe2): New wrapper.
30723         * lib/pipe-safer.c (pipe2_safer): New function.
30724         * modules/pipe (Depends-on): Add pipe2-safer.
30725         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30726
30727         stdlib-safer: preserve cloexec flag for mkostemp[s]
30728         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30729         fd_safer_flag.
30730
30731         unistd-safer: allow preservation of cloexec status via flag
30732         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30733         prototypes.
30734         * lib/dup-safer.c (dup_safer_flag): New function.
30735         * lib/fd-safer.c (fd_safer_flag): Likewise.
30736         * modules/cloexec (configure.ac): Set witness.
30737
30738         test-dup2: enhance test
30739         * modules/dup2-tests (Depends-on): Add cloexec.
30740         * tests/test-dup2.c (main): Enhance test.
30741
30742         cloexec: add dup_cloexec
30743         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30744         header and comments.
30745         * lib/cloexec.c (set_cloexec_flag): Add comments.
30746         (dup_cloexec): New function, with mingw implementation borrowed
30747         from...
30748         * lib/w32spawn.h (dup_noinherit): ...here.
30749         * modules/execute (Depends-on): Add cloexec.
30750         * modules/pipe (Depends-on): Likewise.
30751         * modules/cloexec (Depends-on): Add dup2.
30752         * modules/cloexec-tests (Files): New file.
30753         * tests/test-cloexec.c: Likewise.
30754
30755         test-xalloc-die: fix test for mingw
30756         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30757         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30758         directory and .exe suffix off argv[0] output.
30759
30760         test-fseeko: fix test for mingw
30761         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30762         than undefining fseek, so test will pass on mingw.
30763
30764 2009-12-05  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/progname.h (set_program_name): Clarify specification.
30767         * lib/progname.c (set_program_name): Likewise.
30768         Reported by Jim Meyering.
30769
30770 2009-12-05  Jim Meyering  <meyering@redhat.com>
30771
30772         maint.mk: backslash-escape parens in default regexp
30773         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30774         backslash-escape the literal parentheses.
30775
30776         maint.mk: news-date-check: use grep -E
30777         * top/maint.mk (today): Define a Make variable, not a...
30778         (news-date-check): ...shell variable.
30779         (news-date-regexp): Use the Make variable.
30780         Use grep's -E option.  Change the failing diagnostic to mention
30781         the variable, $(news-date-regexp).
30782
30783 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30784
30785         maintainer-makefile: allow customization of NEWS entry format
30786         * top/maint.mk (news-date-regexp): New overridable variable.
30787         (news-date-check): Use it.
30788
30789 2009-12-04  Eric Blake  <ebb9@byu.net>
30790
30791         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30792         * lib/mgetgroups.h (xgetgroups): New prototype.
30793         * lib/mgetgroups.c (xgetgroups): New wrapper.
30794         (mgetgroups): Handle ENOSYS.
30795         * modules/mgetgroups (Depends-on): Add realloc.
30796         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30797
30798         mgetgroups: avoid argument promotion issues with -1
30799         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30800         for invalid gid_t.
30801         * tests/test-chown.h (getegid, test_chown): Likewise.
30802         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30803
30804 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30805
30806         exclude: Fix header file problems.
30807         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30808
30809 2009-12-01  Jim Meyering  <meyering@redhat.com>
30810
30811         fts: fts_open: do not let an empty string cause immediate failure
30812         This is required in support of GNU rm, for which the command
30813         "rm A '' B" must process and remove both A and B, in spite of
30814         the empty string argument.
30815         * lib/fts.c (fts_open): Do not let the presence of an empty string
30816         cause fts_open to fail immediately.  Most fts-using tools must be
30817         able to process all arguments, in order, and can be expected to
30818         diagnose such arguments themselves.
30819
30820 2009-11-30  Eric Blake  <ebb9@byu.net>
30821
30822         utimens: fix compilation error
30823         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30824         Declare variable at right scope.
30825
30826 2009-11-29  Jim Meyering  <meyering@redhat.com>
30827
30828         bootstrap: handle perl-5.11's changed --version output
30829         * build-aux/bootstrap (get_version): Handle perl separately,
30830         since perl-5.11's --version output is different.
30831
30832 2009-11-28  Jim Meyering  <meyering@redhat.com>
30833
30834         userspec: depend on the inttostr module, too
30835         * modules/userspec (Depends-on): Add inttostr.
30836
30837         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30838         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30839         number of MAXUID when it evaluates to (uid_t) -1.
30840         Likewise for group ID.  Reported by Matt McCutchen in
30841         <http://savannah.gnu.org/bugs/?28113>
30842
30843         userspec: reformat to use spaces, not TABs
30844         * lib/userspec.c: Expand TABs to spaces.
30845         Add Emacs' "indent-tabs-mode: nil" hint.
30846
30847 2009-11-27  Eric Blake  <ebb9@byu.net>
30848
30849         getopt-gnu: flush out another BSD bug
30850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30851         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30852         flush out BSD bug.
30853         * tests/test-getopt.h (test_getopt): End lists with NULL.
30854         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30855         (test_getopt_long_posix): Enhance test.
30856         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30857         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30858         getopt-gnu.
30859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30860         Likewise.
30861
30862 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30863
30864         * modules/idpriv-droptemp-tests (Notice): Fix text.
30865
30866 2009-11-27  Jim Meyering  <meyering@redhat.com>
30867
30868         test-xalloc-die: avoid spurious failure due to libtool argv difference
30869         In a libtool-enabled project, this test would fail due to a difference
30870         in the emitted program name, e.g.,
30871         -test-xalloc-die: memory exhausted
30872         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30873         Use program to avoid that.
30874         * modules/xalloc-die-tests (Depends-on): Add progname.
30875         * tests/test-xalloc-die.c: Include progname.h".
30876         (program_name): Remove decl.
30877         (main): Call set_program_name.
30878         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30879
30880 2009-11-26  Richard Jones  <rjones@redhat.com>
30881
30882         w32sock: leave win32 error in place.
30883         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30884
30885 2009-11-26  Eric Blake  <ebb9@byu.net>
30886
30887         init.sh: suggest to use skip_ and fail_ functions in comments
30888         * tests/init.sh: Add a sentence.
30889
30890 2009-11-25  Bruno Haible  <bruno@clisp.org>
30891
30892         init.sh: add documentation in comments
30893         * tests/init.sh: Add some developer and user documentation.
30894
30895 2009-11-26  Jim Meyering  <meyering@redhat.com>
30896
30897         init.sh: accommodate even those who specify bogus srcdir manually
30898         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30899         configure-time tests to be sanitized, so that there is no need to
30900         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30901         (with no double quotes) suffices.  However, since tests may be
30902         invoked manually, and since you may explicitly set srcdir to the
30903         name of a directory containing spaces, do quote its uses here.
30904         * tests/test-pread.sh: Likewise.
30905         Suggested by Bruno Haible.
30906
30907         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30908         * tests/test-pread.sh: Write no data into the pipe, because
30909         test-pread actually reads none.  This avoids a diagnostic,
30910         "bash: echo: write error: Broken pipe", that arises in the unusual
30911         event something is ignoring SIGPIPE, and might be interpreted
30912         as some sort of failure.  Reported by Bruno Haible.
30913
30914 2009-11-25  Jim Meyering  <meyering@redhat.com>
30915
30916         test-pread: cover failure with ESPIPE and EINVAL
30917         * tests/test-pread.c (main): Test for failure, too.
30918         * tests/test-pread.sh: Invoke with stdin on a pipe.
30919         Suggested by Eric Blake.
30920
30921         pread: improvement and fix
30922         * modules/pread (Depends-on): Depend on lseek, for portability to
30923         e.g., mingw.  Suggested by Eric Blake.
30924         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30925
30926         unistd.in.h: correct declaration of pread
30927         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30928         Reported by Richard W.M. Jones.
30929
30930         test-pread.sh: distribute the test script
30931         * modules/pread-tests (Files): Include test-pread.sh.
30932
30933         test-pread.sh: clean up
30934         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30935         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30936         That is unnecessary, since it's always ".".
30937         Suggestion from Eric Blake.
30938
30939         test-pread.sh: make executable
30940         * tests/test-pread.sh: Set executable bit.
30941         Reported by Eric Blake.
30942
30943         correct typo in test-pread.sh
30944         * tests/test-pread.sh: Add #! line.
30945
30946         test pread
30947         * tests/test-pread.c: New file.
30948         * tests/test-pread.sh: Likewise.
30949         * modules/pread-tests: Likewise.
30950
30951         pread: new module
30952         * modules/pread: New file.
30953         * lib/unistd.in.h (pread): Define/declare.
30954         * lib/pread.c (pread): New file.
30955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30956         * modules/unistd (Makefile.am): Substitute witnesses.
30957         * doc/posix-functions/pread.texi (pread): Update.
30958         * MODULES.html.sh: Add pread.
30959
30960 2009-11-25  Jim Meyering  <meyering@redhat.com>
30961
30962         tests/init.sh: new file to be used via most *.sh tests
30963         * tests/init.sh: New file.
30964
30965 2009-11-25  Eric Blake  <ebb9@byu.net>
30966
30967         utimens: work around older Linux failure with symlinks
30968         * lib/utimens.c (lutimensat_works_really): New variable.
30969         (fdutimens, lutimens): Use it to manage kernels that support
30970         nanosecond times on files, but not on symlinks.
30971         Reported by OndÅ™ej Vašík.
30972
30973         utimes: fix configure grammar
30974         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30975
30976 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30977
30978         regex: Fix fastmap for multibyte character ranges.
30979         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30980         characters when a multibyte character range is included.
30981
30982 2009-11-22  Andy Wingo  <wingo@pobox.com>
30983
30984         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30985         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30986
30987 2009-11-24  Bruno Haible  <bruno@clisp.org>
30988
30989         doc: Most *_l functions exist in MacOS X 10.5.
30990         * doc/posix-functions/duplocale.texi: Update platforms list.
30991         * doc/posix-functions/freelocale.texi: Likewise.
30992         * doc/posix-functions/newlocale.texi: Likewise.
30993         * doc/posix-functions/uselocale.texi: Likewise.
30994         * doc/posix-functions/isalnum_l.texi: Likewise.
30995         * doc/posix-functions/isalpha_l.texi: Likewise.
30996         * doc/posix-functions/isblank_l.texi: Likewise.
30997         * doc/posix-functions/iscntrl_l.texi: Likewise.
30998         * doc/posix-functions/isdigit_l.texi: Likewise.
30999         * doc/posix-functions/isgraph_l.texi: Likewise.
31000         * doc/posix-functions/islower_l.texi: Likewise.
31001         * doc/posix-functions/isprint_l.texi: Likewise.
31002         * doc/posix-functions/ispunct_l.texi: Likewise.
31003         * doc/posix-functions/isspace_l.texi: Likewise.
31004         * doc/posix-functions/isupper_l.texi: Likewise.
31005         * doc/posix-functions/iswalnum_l.texi: Likewise.
31006         * doc/posix-functions/iswalpha_l.texi: Likewise.
31007         * doc/posix-functions/iswblank_l.texi: Likewise.
31008         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31009         * doc/posix-functions/iswctype_l.texi: Likewise.
31010         * doc/posix-functions/iswdigit_l.texi: Likewise.
31011         * doc/posix-functions/iswgraph_l.texi: Likewise.
31012         * doc/posix-functions/iswlower_l.texi: Likewise.
31013         * doc/posix-functions/iswprint_l.texi: Likewise.
31014         * doc/posix-functions/iswpunct_l.texi: Likewise.
31015         * doc/posix-functions/iswspace_l.texi: Likewise.
31016         * doc/posix-functions/iswupper_l.texi: Likewise.
31017         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31018         * doc/posix-functions/isxdigit_l.texi: Likewise.
31019         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31020         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31021         * doc/posix-functions/strcoll_l.texi: Likewise.
31022         * doc/posix-functions/strfmon_l.texi: Likewise.
31023         * doc/posix-functions/strftime_l.texi: Likewise.
31024         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31025         * doc/posix-functions/strxfrm_l.texi: Likewise.
31026         * doc/posix-functions/tolower_l.texi: Likewise.
31027         * doc/posix-functions/toupper_l.texi: Likewise.
31028         * doc/posix-functions/towctrans_l.texi: Likewise.
31029         * doc/posix-functions/towlower_l.texi: Likewise.
31030         * doc/posix-functions/towupper_l.texi: Likewise.
31031         * doc/posix-functions/wcscoll_l.texi: Likewise.
31032         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31033         * doc/posix-functions/wctrans_l.texi: Likewise.
31034         * doc/posix-functions/wctype_l.texi: Likewise.
31035         * doc/glibc-functions/strptime_l.texi: Likewise.
31036         * doc/glibc-functions/strtod_l.texi: Likewise.
31037         * doc/glibc-functions/strtof_l.texi: Likewise.
31038         * doc/glibc-functions/strtol_l.texi: Likewise.
31039         * doc/glibc-functions/strtold_l.texi: Likewise.
31040         * doc/glibc-functions/strtoll_l.texi: Likewise.
31041         * doc/glibc-functions/strtoul_l.texi: Likewise.
31042         * doc/glibc-functions/strtoull_l.texi: Likewise.
31043         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31044         * doc/glibc-functions/wcstod_l.texi: Likewise.
31045         * doc/glibc-functions/wcstof_l.texi: Likewise.
31046         * doc/glibc-functions/wcstol_l.texi: Likewise.
31047         * doc/glibc-functions/wcstold_l.texi: Likewise.
31048         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31049         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31050         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31051
31052 2009-11-24  Bruno Haible  <bruno@clisp.org>
31053
31054         duplocale: Fix logic bug.
31055         * lib/duplocale.c: Don't include <langinfo.h>.
31056         (_NL_LOCALE_NAME): Remove macro.
31057         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31058         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31059
31060 2009-11-23  Jim Meyering  <meyering@redhat.com>
31061
31062         test-update-copyright: don't hard-code /usr/bin/perl
31063         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31064         perl to print the current year.  Gilles Espinasse reported that
31065         the replaced use of perl was hard-coded as /usr/bin/perl.
31066
31067 2009-11-23  Bruno Haible  <bruno@clisp.org>
31068
31069         duplocale: Add support for glibc 2.3.x.
31070         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31071
31072 2009-11-22  Bruno Haible  <bruno@clisp.org>
31073
31074         vasnprintf: Tiny optimization.
31075         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31076         MacOS X.
31077
31078 2009-11-22  Bruno Haible  <bruno@clisp.org>
31079
31080         Tests for module 'duplocale'.
31081         * modules/duplocale-tests: New file.
31082         * tests/test-duplocale.c: New file.
31083
31084         New module 'duplocale'.
31085         * m4/duplocale.m4: New file.
31086         * lib/locale.in.h (duplocale): New declaration.
31087         * lib/duplocale.c: New file.
31088         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31089         gl_LOCALE_H_DEFAULTS): New macros.
31090         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31091         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31092         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31093         REPLACE_DUPLOCALE.
31094         * modules/duplocale: New file.
31095         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31096
31097 2009-11-22  Bruno Haible  <bruno@clisp.org>
31098
31099         * modules/locale-tests (configure.ac): Test for newlocale function.
31100         * tests/test-locale.c: When the system has extended locale functions,
31101         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31102
31103         locale: Make locale_t available when possible.
31104         * lib/locale.in.h: Include <xlocale.h> when it exists.
31105         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31106         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31107         * modules/locale (Depends-on): Add extensions.
31108         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31109         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31110
31111 2009-11-22  Bruno Haible  <bruno@clisp.org>
31112
31113         Add comments.
31114         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31115         invocation.
31116         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31117         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31118         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31119
31120 2009-11-22  Bruno Haible  <bruno@clisp.org>
31121
31122         error: account for the possibility of freopen (stdout).
31123         * lib/error.c: Include <unistd.h>.
31124         (flush_stdout): New function, extracted from error and error_at_line.
31125         Determine stdout's fd dynamically.
31126         (error, error_at_line): Invoke flush_stdout.
31127         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31128         * modules/error (Depends-on): Add unistd.
31129
31130 2009-11-22  Bruno Haible  <bruno@clisp.org>
31131
31132         diffseq: Add comment.
31133         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31134
31135 2009-11-22  Jim Meyering  <meyering@redhat.com>
31136
31137         c-stack: avoid defining an unused static function
31138         * lib/c-stack.c (find_stack_direction): Do not define this function
31139         when it will not be used.
31140
31141         diffseq: avoid spurious gcc warnings
31142         * lib/diffseq.h (IF_LINT2): Define.
31143         (compareseq): Use it to initialize two members of "part".
31144         This avoids two used-uninitialized warnings.
31145
31146 2009-11-21  Jim Meyering  <meyering@redhat.com>
31147
31148         c-stack: avoid "ignoring return value of `write'" warning
31149         * lib/c-stack.c: Include "ignore-value.h".
31150         (die): Explicitly ignore each write return value.
31151         * modules/c-stack (Depends-on): Add ignore-value.
31152
31153 2009-11-21  Bruno Haible  <bruno@clisp.org>
31154
31155         diffseq: reduce scope of variable 'best'.
31156         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31157         variable, earlier used for two different purposes.
31158
31159 2009-11-21  Jim Meyering  <meyering@redhat.com>
31160
31161         diffseq: remove useless assignment to "best"
31162         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31163         assignment.  At that point "best" is already guaranteed to be zero.
31164
31165 2009-11-20  Eric Blake  <ebb9@byu.net>
31166
31167         build: mention ftp redirector in release announcements
31168         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31169         values that used to come from cfg.mk; mention FTP redirect URL.
31170         * build-aux/announce-gen: Mention the mirror list.
31171         Suggested by Karl Berry.
31172
31173         nanosleep: improve port to mingw
31174         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31176         LIB_NANOSLEEP, but only when needed.
31177         * modules/select (Link): Document LIBSOCKET.
31178         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31179         enough.
31180
31181         nanosleep: work around cygwin bug
31182         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31183         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31184         bug.
31185         (getnow): Delete, not needed.
31186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31187         LIB_CLOCK_GETTIME.
31188         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31189         clock-time, gettime.
31190         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31191         bug.
31192         * modules/nanosleep-tests: New test.
31193         * tests/test-nanosleep.c: New file.
31194
31195         sleep: work around cygwin bug
31196         * lib/sleep.c (rpl_sleep): Work around the bug.
31197         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31198         (gl_PREREQ_SLEEP): Delete unused macro.
31199         * modules/sleep (Depends-on): Add verify.
31200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31201         * modules/unistd (Makefile.am): Substitute witness.
31202         * lib/unistd.in.h (sleep): Update prototype.
31203         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31204         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31205         * modules/sleep-tests (Depends-on): Check for alarm.
31206
31207 2009-11-20  Jim Meyering  <meyering@redhat.com>
31208
31209         maint.mk: improve sc_prohibit_magic_number_exit
31210         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31211         so it does not match uses like System.exit(1).
31212         Add comments showing how to correct all offenders.
31213
31214 2009-11-19  Eric Blake  <ebb9@byu.net>
31215
31216         xalloc-die-tests: add missing library
31217         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31218
31219         test-xvasprintf: silence compiler warnings
31220         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31221         empty string from gcc.
31222
31223 2009-11-19  Jim Meyering  <meyering@redhat.com>
31224
31225         xfreopen: new module, from coreutils
31226         * modules/xfreopen: New module.
31227         * lib/xfreopen.c: New file.
31228         * lib/xfreopen.h: New file.
31229         * MODULES.html.sh (File stream based Input/Output"): Add it.
31230
31231 2009-11-19  Eric Blake  <ebb9@byu.net>
31232
31233         manywarnings: depend on warnings
31234         * modules/manywarnings (Depends-on): Add warnings.
31235
31236         build: avoid compiler warnings
31237         * lib/select.c (rpl_select): Delete unused variable.
31238         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31239
31240 2009-11-18  Eric Blake  <ebb9@byu.net>
31241
31242         tests: avoid false negative with --with-packager
31243         * tests/test-version-etc.sh: Discard packager information.
31244         * tests/test-argp-version-etc-1.sh: Likewise.
31245         Reported by Mike Frysinger.
31246
31247         utimens: fix regression on Solaris
31248         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31249         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31250         can only change fd timestamps via futimesat.  Instead, use an
31251         additional witness macro to avoid BSD bug.
31252         Reported by Jim Meyering.
31253
31254 2009-11-17  Eric Blake  <ebb9@byu.net>
31255
31256         usleep: use it to simplify tests
31257         * modules/stat-time-tests (Depends-on): Add usleep.
31258         (configure.ac): Drop usleep check.
31259         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31260         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31261         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31262         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31263         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31264         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31265         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31266         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31267         Likewise.
31268         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31269         * tests/test-lchown.h (nap): Likewise.
31270         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31271         * tests/test-stat-time.c (nap): Likewise.
31272         * tests/test-utimens-common.h (nap): Update comments.
31273
31274         usleep: new module
31275         * modules/usleep: New file.
31276         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31277         * lib/usleep.c (usleep): Likewise.
31278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31279         * modules/unistd (Makefile.am): Substitute witnesses.
31280         * lib/unistd.in.h (usleep): Add declaration.
31281         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31282         * MODULES.html.sh (Date and time): Likewise.
31283         * modules/usleep-tests (Depends-on): New test.
31284         * tests/test-usleep.c: New file.
31285
31286         chown: work around OpenBSD bug
31287         * lib/chown.c (rpl_chown): Work around the bug.
31288         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31289         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31290         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31291         * modules/chown (Depends-on): Add stdbool.
31292         * modules/lchown (Depends-on): Likewise.
31293         * doc/posix-functions/chown.texi (chown): Document the bug.
31294         * doc/posix-functions/lchown.texi (lchown): Likewise.
31295         * tests/test-lchown.h (test_chown): Relax test.
31296
31297         mkstemp: avoid conflict with C++ keyword template
31298         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31299         * lib/mkostemp.c (mkostemp): Likewise.
31300         * lib/mkostemps.c (mkostemps): Likewise.
31301         * lib/mkstemp.c (mkstemp): Likewise.
31302         * lib/mkstemps.c (mkstemps): Likewise.
31303
31304         xalloc-die-tests: optimize
31305         * tests/test-xalloc-die.sh: Reduce number of processes.
31306
31307 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31308
31309         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31310         patch from ludo@gnu.org (Ludovic Courtès).
31311
31312 2009-11-17  Jim Meyering  <meyering@redhat.com>
31313
31314         version-etc: use proper license string
31315         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31316         * modules/version-etc-fsf: Likewise.
31317
31318 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31319
31320         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31321         printed to stdout.  Deal with EOL differences.
31322
31323 2009-11-17  Eric Blake  <ebb9@byu.net>
31324
31325         unsetenv: work around Solaris bug
31326         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31327         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31328         Reported by Jim Meyering.
31329
31330         vasnprintf: avoid compiler warnings
31331         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31332         variables.
31333         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31334
31335 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31336
31337         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31338         settings since xalloc-die is no longer the self test,
31339         xalloc-die.sh is.
31340
31341 2009-11-17  Jim Meyering  <meyering@redhat.com>
31342
31343         test-xalloc-die.sh: make the code agree with the commit log
31344         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31345         at the end, just in case you happen to have a test-xalloc-die
31346         program in some other PATH directory.
31347
31348         test-xalloc-die.sh: fix a portability bug
31349         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31350         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31351         Otherwise, argv[0] (as often seen in diagnostics) would be too
31352         system-dependent, sometimes with, and sometimes without the leading "./".
31353
31354         version-etc-fsf: relax license to LGPLv3+
31355         * modules/version-etc-fsf (License): Relax license.
31356
31357 2009-11-16  Eric Blake  <ebb9@byu.net>
31358
31359         xalloc-die-tests: avoid printing null pointer
31360         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31361         shell script.
31362         * tests/test-xalloc-die.c (program_name): Declare.
31363         * tests/test-xalloc-die.sh (tmpfiles): New file.
31364
31365         setenv, unsetenv: work around various bugs
31366         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31367         (setenv) [HAVE_SETENV]: Work around bugs.
31368         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31369         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31370         for bugs.
31371         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31372         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31374         * modules/stdlib (Makefile.am): Update substitutions.
31375         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31376         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31377         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31378         * modules/setenv-tests: New test.
31379         * modules/unsetenv-tests: Likewise.
31380         * tests/test-setenv.c: New file.
31381         * tests/test-unsetenv.c: Likewise.
31382
31383 2009-11-16  Jim Meyering  <meyering@redhat.com>
31384
31385         version-etc: relax license to LGPLv3+
31386         * modules/version-etc (License): Relax license.
31387
31388         better AC_REQUIRE expanded-before-required-warning avoidance
31389         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31390         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31391         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31392         which is no longer needed.
31393
31394 2009-11-16  Eric Blake  <ebb9@byu.net>
31395
31396         test-freading: clean up temporary file
31397         * tests/test-freading.c (main): Remove file on success, and use
31398         ASSERT more liberally.
31399         Reported by Jim Meyering.
31400
31401 2009-11-16  Jim Meyering  <meyering@redhat.com>
31402
31403         avoid new AC_REQUIRE expanded-before-required warnings
31404         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31405         merely using it.
31406         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31407         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31408
31409 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31410
31411         * tests/test-xalloc-die.c: New file.
31412         * modules/xalloc-die-tests: New file.
31413         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31414         XFAIL_TESTS so it can be appended by modules.
31415
31416 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31417
31418         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31419         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31420
31421 2009-11-14  Eric Blake  <ebb9@byu.net>
31422
31423         fnmatch: avoid compiler warning
31424         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31425         to silence compiler warning about mismatch signedness in ?:.
31426         Reported by Robert Millan.
31427
31428         intprops: add double-inclusion guard
31429         * lib/intprops.h: Allow idempotent includes.
31430         Suggested by Bruce Korb.
31431
31432         openat: detect Solaris fchownat bug
31433         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31434         penalizing glibc chownat when only lchownat is broken.
31435         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31436         trailing slash bugs.
31437         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31438         * modules/openat-tests (Files): Include more files.
31439         (Depends-on): Add mgetgroups, sleep, stat-time.
31440         (configure.ac): Add additional checks.
31441         (Makefile.am): Build new test.
31442         * tests/test-fchownat.c: New file.
31443
31444         lchown: detect Solaris and FreeBSD bug
31445         * lib/lchown.c (rpl_lchown): Work around bug.
31446         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31448         * modules/unistd (Makefile.am): Populate it.
31449         * lib/unistd.in.h (lchown): Update declaration.
31450         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31451         * modules/lchown-tests: New file.
31452         * tests/test-lchown.h (test_lchown): Likewise.
31453         * tests/test-lchown.c (main): Likewise.
31454
31455         chown: detect Solaris and FreeBSD bug
31456         * lib/chown.c (rpl_chown): Work around bug.
31457         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31458         (gl_PREREQ_CHOWN): Delete.
31459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31460         * modules/unistd (Makefile.am): Populate it.
31461         * lib/unistd.in.h (chown): Update declaration.
31462         * lib/lchown.c (chown): Update client.
31463         * modules/lchown (Depends-on): Add lstat.
31464         * doc/posix-functions/chown.texi (chown): Document the bug.
31465         * doc/posix-functions/getgroups.texi (getgroups): Document
31466         getgroups pitfall.
31467         * modules/chown-tests: New file.
31468         * tests/test-chown.h (test_chown): Likewise.
31469         * tests/test-chown.c (main): Likewise.
31470
31471 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31472
31473         gnulib-tool: correctly detect absence of m4 directories
31474         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31475
31476 2009-11-14  Jim Meyering  <meyering@redhat.com>
31477
31478         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31479         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31480
31481 2009-11-14  John W. Eaton  <jwe@gnu.org>
31482
31483         strftime.h: wrap funtion declaration in extern "C" block
31484         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31485
31486 2009-11-13  Eric Blake  <ebb9@byu.net>
31487
31488         getgroups: avoid compiler warning
31489         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31490
31491         getgroups: work around FreeBSD bug
31492         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31493         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31494         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31495         * tests/test-getgroups.c (main): Fix buffer overrun.
31496
31497         getgroups: avoid compilation failure
31498         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31499         * modules/getgroups (Depends-on): Add stdint.
31500
31501 2009-11-13  Jim Meyering  <meyering@redhat.com>
31502
31503         test-getgroups: avoid compilation failure
31504         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31505
31506 2009-11-13  Eric Blake  <ebb9@byu.net>
31507
31508         mgetgroups: new module, taken from coreutils
31509         * modules/mgetgroups: New file.
31510         * lib/mgetgroups.h: Likewise.
31511         * lib/mgetgroups.c (mgetgroups): Likewise.
31512         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31513         * MODULES.html.sh (Users and groups): Mention it.
31514
31515         getgroups: don't expose GETGROUPS_T to user
31516         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31517         an element at a time if GETGROUPS_T is wrong size.
31518         * lib/getugroups.h (getugroups): Change signature.
31519         * lib/unistd.in.h (getgroups): Likewise.
31520         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31521         signature needs fixing.
31522         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31523         AC_TYPE_GETGROUPS.
31524         * modules/group-member (Depends-on): Add getgroups.
31525         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31526         (group_member): Rely on getgroups replacement.
31527         * lib/getugroups.c (getugroups): Use gid_t.
31528         * tests/test-getgroups.c (main): Likewise.
31529         * NEWS: Mention the signature change.
31530         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31531         problem with signature.
31532         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31533         GETGROUPS_T is still useful for setgroups.
31534
31535         getgroups, getugroups: provide stubs for mingw
31536         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31537         * lib/getugroups.c (getugroups): Likewise.
31538         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31539         function.  Modernize replacement scheme.
31540         (gl_PREREQ_GETGROUPS): Delete.
31541         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31542         * modules/getgroups (configure.ac): Declare witness.
31543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31544         * modules/unistd (Depends-on): Substitute witness.
31545         * lib/unistd.in.h (getgroups): Declare replacement.
31546
31547         getgroups: avoid calling exit
31548         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31549         drop xalloc.
31550         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31551         dependencies.
31552         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31553         exiting, in the rare case of malloc failure.
31554
31555         getgroups: fix logic error
31556         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31557         has more than 20 groups.
31558         * modules/getgroups-tests: New test.
31559         * tests/test-getgroups.c: New file.
31560
31561 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31562
31563         * tests/test-base64.c: Improve.
31564
31565 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31566
31567         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31568         Blake <ebb9@byu.net>.
31569
31570 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31571
31572         * tests/test-xvasprintf.c: Add %s%s related checks.
31573
31574 2009-11-12  Eric Blake  <ebb9@byu.net>
31575
31576         version-etc: match standards.texi style
31577         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31578         and use <> only for URLs.
31579
31580 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31581
31582         fts: do not fail on a submount during traversal
31583         * lib/fts.c (fts_build): Read the stat info again after opening
31584         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31585         Original report at http://bugzilla.redhat.com/501848.
31586
31587 2009-11-12  Jim Meyering  <meyering@redhat.com>
31588
31589         bootstrap: sync from coreutils
31590         * build-aux/bootstrap (bootstrap_epilogue): New function.
31591         Use git_modules_config in one more place.  This make bootstrap's
31592         --gnulib-srcdir option more useful for testing.
31593
31594         bootstrap: generalize autoheader check
31595         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31596         AC_CONFIG_HEADERS.
31597
31598 2009-11-11  Eric Blake  <ebb9@byu.net>
31599
31600         mkfifoat: use new modules for Solaris and BSD bugs
31601         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31602         * lib/mkfifoat.c (mknodat): Split...
31603         * lib/mknodat.c (mknodat): ...into new file.
31604         * modules/mkfifoat (Files): Ship new file.
31605         (Depends-on): Add mkfifo, mknod.
31606         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31607         (Depends-on): Add symlink.
31608         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31609         redundant with test_mkfifo.h.
31610         (do_mkfifoat, do_mknodat): New helpers.
31611
31612         mknod: new module
31613         * modules/mknod: New file.
31614         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31615         * lib/mknod.c (mknod): Likewise.
31616         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31617         defaults.
31618         * modules/sys_stat (Makefile.am): Substitute them.
31619         * lib/sys_stat.in.h (mknod): Declare replacement.
31620         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31621         Document it.
31622         * doc/posix-functions/mknod.texi (mknod): Likewise.
31623         * modules/mknod-tests: New test.
31624         * tests/test-mknod.c: Likewise.
31625
31626         mkfifo: new module
31627         * modules/mkfifo: New file.
31628         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31629         * lib/mkfifo.c (mkfifo): Likewise.
31630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31631         defaults.
31632         * modules/sys_stat (Makefile.am): Substitute them.
31633         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31634         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31635         Document it.
31636         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31637         * modules/mkfifo-tests: New test.
31638         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31639         from test-mkfifoat.c.
31640         * tests/test-mkfifo.c: New file.
31641
31642         readlink: detect FreeBSD bug
31643         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31644         slash on symlink.
31645         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31646         * tests/test-readlink.h (test_readlink): Enhance test.
31647
31648         symlink: detect FreeBSD bug
31649         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31650         slash on symlink.
31651         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31652         * tests/test-symlink.h (test_symlink): Enhance test.
31653
31654 2009-11-10  Eric Blake  <ebb9@byu.net>
31655
31656         link: detect FreeBSD bug
31657         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31658         symlink.
31659         * doc/posix-functions/link.texi (link): Document the bug.
31660         * tests/test-link.h (test_link): Enhance test.
31661         * tests/test-linkat.c (main): Update caller.
31662
31663         unlink, remove: detect FreeBSD bug
31664         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31665         slash on symlink.
31666         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31667         * doc/posix-functions/remove.texi (remove): Likewise.
31668         * tests/test-unlink.h (test_unlink): Enhance test.
31669         * tests/test-remove.c (main): Likewise.
31670
31671 2009-11-09  Eric Blake  <ebb9@byu.net>
31672
31673         rename: detect FreeBSD bug
31674         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31675         slash on symlink.
31676         * modules/renameat-tests (Depends-on): Add filenamecat.
31677         * tests/test-rename.h (test_rename): Allow one more errno.
31678         * tests/test-renameat.c (main): Likewise.
31679         * doc/posix-functions/rename.texi (rename): Document the bug.
31680
31681         open: detect FreeBSD bug
31682         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31683         symlink.
31684         * doc/posix-functions/open.texi (open): Document the bug.
31685         * doc/posix-functions/utimes.texi (utimes): Likewise.
31686         * tests/test-open.h (test_open): Add parameters, and test symlink
31687         handling.
31688         * tests/test-open.c (main): Adjust caller.
31689         * tests/test-fcntl-safer.c (main): Likewise.
31690         * modules/open-tests (Depends-on): Add stdbool, symlink.
31691         * modules/fcntl-safer-tests (Depends-on): Likewise.
31692         * tests/test-openat.c (main): Add test-open tests.
31693
31694         stat: detect FreeBSD bug
31695         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31696         symlink.
31697         * doc/posix-functions/stat.texi (stat): Document the bug.
31698         * tests/test-stat.h (test_stat_func): Add argument.
31699         * tests/test-stat.c (main): Adjust caller.
31700         * tests/test-fstatat.c (main): Likewise.
31701         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31702         Reported by Jim Meyering.
31703
31704 2009-11-09  James Youngman  <jay@gnu.org>
31705
31706         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31707         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31708
31709 2009-11-08  Jim Meyering  <meyering@redhat.com>
31710
31711         utimens: remove invalid futimesat call
31712         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31713         It used the file descriptor of the target file as the DIR_FD
31714         parameter and NULL as the file name.  That caused failure with
31715         errno == EFAULT on FreeBSD-8.0-rc2
31716
31717 2009-11-07  Eric Blake  <ebb9@byu.net>
31718
31719         fflush, freadseek: use fseeko, not fseek
31720         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31721         (clear_ungetc_buffer): Avoid potential problems on large files.
31722         * lib/freadseek.c (freadseek): Likewise.
31723         * modules/freadseek (Depends-on): Add fseeko.
31724         * modules/fseek (configure.ac): Set a witness.
31725         * tests/test-fflush.c (main): Use fseeko.
31726         * tests/test-fpurge.c (fseek): Disable link warning.
31727         * tests/test-freadable.c (fseek): Likewise.
31728         * tests/test-freading.c (fseek): Likewise.
31729         * tests/test-fseeko.c (fseek): Likewise.
31730         * tests/test-ftell.c (fseek): Likewise.
31731         * tests/test-ftello.c (fseek): Likewise.
31732         * tests/test-fwritable.c (fseek): Likewise.
31733         * tests/test-fwriting.c (fseek): Likewise.
31734
31735 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31736
31737         * modules/memchr (Depends-on): Drop getpagesize dependency.
31738
31739 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31740
31741         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31742         Reported by Ludovic Courtès.
31743         * build-aux/pmccabe2html: Improve example usage.
31744         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31745
31746 2009-11-06  Jim Meyering  <meyering@redhat.com>
31747
31748         do-release-commit-and-tag: New module.
31749         Automate the release-commit and tag process.
31750         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31751         * modules/do-release-commit-and-tag: New file.
31752         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31753
31754 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31755
31756         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31757         because test-select.c uses inet_pton.
31758
31759 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31760
31761         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31762         GETADDRINFO_LIB.  Bump serial number.
31763         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31764         Suggested by Eric Blake <ebb9@byu.net>.
31765
31766 2009-11-05  Eric Blake  <ebb9@byu.net>
31767
31768         strtod: detect darwin bug
31769         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31770         Reported by Leo Davis.
31771
31772         freopen-safer: new module
31773         * modules/freopen-safer: New module.
31774         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31775         * lib/freopen-safer.c (freopen_safer): New file.
31776         * lib/stdio-safer.h (freopen_safer): New declaration.
31777         * lib/stdio--.h (freopen): New override.
31778         * MODULES.html.sh (File stream based Input/Output): Mention it.
31779         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31780         freopen-safer module.
31781         * doc/posix-functions/stderr.texi (stderr): Likewise.
31782         * doc/posix-functions/stdin.texi (stdin): Likewise.
31783         * doc/posix-functions/stdout.texi (stdout): Likewise.
31784         * modules/freopen-safer-tests: New test.
31785         * tests/test-reopen-safer.c: New file.
31786
31787 2009-11-05  Jim Meyering  <meyering@redhat.com>
31788
31789         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31790         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31791
31792 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31793
31794         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31795
31796 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31797
31798         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31799
31800 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31801
31802         Fix link error.
31803         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31804         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31805
31806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31807
31808         * tests/test-func.c: Also test value of __func__.
31809
31810 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31811
31812         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31813         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31814
31815 2009-11-05  Bruno Haible  <bruno@clisp.org>
31816
31817         Fix link error.
31818         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31819         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31820         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31821
31822 2009-11-05  Bruno Haible  <bruno@clisp.org>
31823
31824         Tests for module 'inet_pton'.
31825         * modules/inet_pton-tests: New file.
31826         * tests/test-inet_pton.c: New file.
31827
31828 2009-11-05  Bruno Haible  <bruno@clisp.org>
31829
31830         Tests for module 'inet_ntop'.
31831         * modules/inet_ntop-tests: New file.
31832         * tests/test-inet_ntop.c: New file.
31833
31834 2009-11-04  Eric Blake  <ebb9@byu.net>
31835
31836         stdlib-safer: wrap all mkstemp variants
31837         * modules/mkostemp (configure.ac): Set witness.
31838         * modules/mkostemps (configure.ac): Likewise.
31839         * modules/mkstemps (configure.ac): Likewise.
31840         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31841         (mkstemps_safer): Wrap more functions.
31842         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31843         wrapping.
31844         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31845         (mkstemps_safer): Implement the wrappers.
31846
31847         mkstemps, mkostemps: new modules
31848         * modules/mkostemps: New module.
31849         * modules/mkstemps: Likewise.
31850         * lib/mkostemps.c (mkostemps): New file.
31851         * lib/mkstemps.c (mkstemps): Likewise.
31852         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31853         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31855         * modules/stdlib (Makefile.am): Substitute them.
31856         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31857         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31858         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31859         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31860         * MODULES.html.sh (File system functions): Mention them.
31861
31862         tempname: resync from glibc
31863         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31864         same values for __GT_FILE as glibc.  Abort even when assertions
31865         are disabled.
31866         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31867         match its value otherwise.  Allow idempotent inclusion.
31868         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31869         * lib/mkostemp.c (mkostemp): Likewise.
31870         * lib/mkstemp.c (mkstemp): Likewise.
31871         * lib/tmpfile.c (tmpfile): Likewise.
31872         * NEWS: Document this.
31873
31874         utimens: fix use of futimens on older Linux
31875         * lib/utimens.c (fdutimens): Use updated, rather than original,
31876         timespec to avoid bug in older Linux kernel.
31877         Reported by Simon Josefsson.
31878
31879 2009-11-04  Bruno Haible  <bruno@clisp.org>
31880
31881         Make num_processors more flexible and consistent.
31882         * lib/nproc.h (enum nproc_query): New type.
31883         (num_processors): Add a 'query' argument.
31884         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31885         (num_processors): Add a 'query' argument. Test the value of the
31886         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31887         mingw, count the number of CPUs available for the current process.
31888         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31889         Check for sched_getaffinity and sched_getaffinity_np.
31890         * modules/nproc (Depends-on): Add c-ctype, extensions.
31891         * NEWS: Mention the change.
31892
31893 2009-11-03  Bruno Haible  <bruno@clisp.org>
31894
31895         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31896
31897 2009-11-03  Jim Meyering  <meyering@redhat.com>
31898
31899         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31900         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31901         if it is defined.
31902
31903 2009-11-02  Eric Blake  <ebb9@byu.net>
31904
31905         mktime, timegm: share common declaration
31906         * lib/mktime-internal.h: New file.
31907         * lib/mktime.c: Use it rather than open-coding a declaration.
31908         * lib/timegm.c: Likewise.
31909         * modules/mktime (Files): Ship it.
31910         * modules/timegm (Files): Likewise.
31911         Suggested by Bruno Haible.
31912
31913         test-update-copyright: update test to match script changes
31914         * tests/test-update-copyright.sh: Avoid hard-coding perl
31915         location.  Don't update *.bak created by earlier runs.
31916
31917 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31918             Simon Josefsson  <simon@josefsson.org>
31919             Bruno Haible  <bruno@clisp.org>
31920
31921         Fix link error on Solaris 8.
31922         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31923         also in libnsl. Define also INET_PTON_LIB.
31924         * modules/inet_pton (Link): New section.
31925
31926 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31927             Bruno Haible  <bruno@clisp.org>
31928
31929         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31930         * modules/inet_ntop (Link): New section.
31931         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31932
31933 2009-11-02  Eric Blake  <ebb9@byu.net>
31934
31935         maint: avoid compiler warnings in m4 macros
31936         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31938
31939 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31940
31941         * m4/pmccabe2html.m4: Remove file.
31942         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31943         function.  Change maintainer.
31944         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31945         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31946         Courtès).
31947
31948 2009-10-31  Eric Blake  <ebb9@byu.net>
31949
31950         fseeko: fix m4 regression
31951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31952         regression from 2009-10-27.
31953         Reported by Ralf Wildenhues.
31954
31955 2009-10-31  Jim Meyering  <meyering@redhat.com>
31956
31957         inttostr: aesthetics and improved (compile-time) safety
31958         Define inttype_is_signed rather than inttype_is_unsigned,
31959         since the sole use is via "#if inttype_is_signed".
31960         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31961         inttype_is_unsigned.
31962         * lib/offtostr.c (inttype_is_signed): Likewise.
31963         * lib/uinttostr.c (inttype_is_signed): Likewise.
31964         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31965         * lib/inttostr.c (inttostr): Use verify to cross-check the
31966         inttype_is_signed value and the signedness of the actual type.
31967         * modules/inttostr (Depends-on): Add verify.
31968
31969 2009-10-30  Eric Blake  <ebb9@byu.net>
31970
31971         build: avoid compiler warnings
31972         * lib/fchmodat.c (lchmod): Mark unused variables.
31973         * lib/getopt.c (_getopt_initialize): Likewise.
31974         * lib/mktime.c (__mktime_internal): Provide prototype.
31975         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31976         older gcc that do not understand #pragma GCC diagnostic.
31977         * lib/uinttostr.c (inttype_is_unsigned): Define.
31978         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31979
31980 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31981
31982         stat: fix compilation on AIX
31983         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31984         only see struct stat64.
31985
31986 2009-10-30  Eric Blake  <ebb9@byu.net>
31987
31988         exclude: make more robust
31989         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31990         rather than masking a coding bug.
31991         Suggested by Bruno Haible.
31992
31993 2009-10-30  Jim Meyering  <meyering@redhat.com>
31994
31995         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31996         Rather than putting #!/usr/bin/perl on the first line,
31997         start with a variant of what's recommended by "man perlrun" that
31998         invokes the first "perl" program from your shell's search path.
31999         * build-aux/gitlog-to-changelog: Replace #!... as above.
32000         Add a "Local Variables" perl mode setting.
32001         Prompted by a patch from Ludovic Courtès.
32002         Improved by Eric Blake.
32003         * build-aux/useless-if-before-free: Likewise.
32004         * build-aux/announce-gen: Likewise.
32005         * build-aux/update-copyright: Likewise.
32006
32007 2009-10-29  Eric Blake  <ebb9@byu.net>
32008
32009         filenamecat-lgpl: adjust clients
32010         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32011         filenamecat.
32012         * modules/renameat (Depends-on): Likewise.
32013
32014         filenamecat: split into filenamecat-lgpl
32015         * modules/filenamecat-lgpl: New module.
32016         * modules/filenamecat (Files): Move library-safe files into
32017         filenamecat-lgpl.
32018         (Depends-on): Add filenamecat-lgpl.
32019         (configure.ac): Declare witness.
32020         * lib/filenamecat.h (file_name_concat): Only declare when using
32021         GPL module.
32022         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32023         Move...
32024         * lib/filenamecat-lgpl.c: ...into new file.
32025         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32026         (gl_FILE_NAME_CONCAT): Use it.
32027         * MODULES.html.sh (File system functions): Mention new module.
32028
32029         argp: avoid memory leak
32030         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32031         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32032         base_name, since the latter malloc()s and can call exit().
32033         Leak introduced 2006-07-03.
32034
32035         dirname-lgpl: adjust clients that don't need full dirname
32036         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32037         * modules/filenamecat (Depends-on): Likewise.
32038         * modules/linkat (Depends-on): Likewise.
32039         * modules/mkancesdirs (Depends-on): Likewise.
32040         * modules/mkdir (Depends-on): Likewise.
32041         * modules/openat (Depends-on): Likewise.
32042         * modules/savewd (Depends-on): Likewise.
32043         * modules/rename (Depends-on): Likewise.
32044         (License): Relax license.
32045         * modules/mkdir-tests (Depends-on): Drop progname.
32046         (Makefile.am): Delete unneeded LDADD.
32047         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32048
32049         dirname: split into dirname-lgpl
32050         * modules/dirname-lgpl: New module.
32051         * modules/dirname (Files): Move library-safe files into
32052         dirname-lgpl.
32053         (Depends-on): Add dirname-lgpl.
32054         (configure.ac): Declare witness.
32055         * modules/double-slash-root (License): Relax license.
32056         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32057         module.
32058         * lib/dirname.c (dir_len, mdir_name): Move...
32059         * lib/dirname-lgpl.c: ...into new file.
32060         * lib/basename.c (last_component, base_len): Move...
32061         * lib/basename-lgpl.c: ...into new file.
32062         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32063         (gl_DIRNAME): Use it.
32064         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32065         Mention new module.
32066         * modules/dirname-tests (Depends-on): Add progname.
32067         * tests/test-dirname.c (program_name): Delete.
32068
32069         mkdir: make safe for libraries
32070         * modules/mkdir (Depends-on): Drop xalloc.
32071         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32072         exit.
32073
32074         tests: avoid some compiler warnings
32075         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32076         literals.
32077         * tests/test-memchr.c (main): Avoid type mismatch.
32078         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32079         * tests/test-base64.c (main): Likewise.
32080         * tests/test-getdelim.c (main): Likewise.
32081         * tests/test-gethostname.c (main): Likewise.
32082         * tests/test-getline.c (main): Likewise.
32083         * tests/test-netinet_in.c (main): Likewise.
32084         * tests/test-select.c (open_server_socket, main): Likewise.
32085         * tests/test-select-stdin.c (main): Likewise.
32086         * tests/test-sockets.c (main): Likewise.
32087         * tests/test-strsignal.c (main): Likewise.
32088         * tests/test-sys_select.c (main): Likewise.
32089         * tests/test-sys_socket.c (main): Likewise.
32090         * tests/test-u64.c (main): Likewise.
32091         * tests/test-xfprintf-posix.c (main): Likewise.
32092         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32093
32094         sockets: avoid compiler warning
32095         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32096
32097         maint: detect usage(1) and other suspicious exits
32098         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32099
32100 2009-10-29  Jim Meyering  <meyering@redhat.com>
32101
32102         timespec: long-to-int truncation could make timespec_cmp malfunction
32103         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32104         a multiple of 2^32 nanoseconds as no difference.
32105
32106 2009-10-28  Jim Meyering  <meyering@redhat.com>
32107
32108         fprintftime: wrap macro code argument in "do {...} while(0)"
32109         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32110         cpy macro must be a statement that can be followed by a semicolon.
32111         Now that the else clause contains a comment and is hence longer
32112         than one line, I require curly braces.  That in turn requires
32113         that we wrap this code block in the standard do...while(0).
32114
32115         fprintftime: remove stray semicolon from previous change
32116         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32117
32118         fprintftime: avoid a warning about ignored fwrite return value
32119         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32120         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32121         that is unsafe.
32122         * modules/fprintftime (Depends-on): Add ignore-value.
32123
32124         exclude: avoid an unwarranted warning
32125         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32126
32127 2009-10-27  Eric Blake  <ebb9@byu.net>
32128
32129         fseek: avoid compilation failure when fflush is replaced
32130         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32131         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32132         module is in use.
32133         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32134         module is not in use; since REPLACE_FSEEK worked otherwise.
32135         (GNULIB_FTELLO): Likewise for ftell.
32136         Reported by Ian Beckwith and others.
32137
32138 2009-10-27  Bruno Haible  <bruno@clisp.org>
32139
32140         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32141         Reported by Jim Meyering.
32142
32143 2009-10-27  Jim Meyering  <jim@meyering.net>
32144             Bruno Haible  <bruno@clisp.org>
32145
32146         Avoid warning despite dropping the return value of fwrite.
32147         * lib/unicodeio.c: Include ignore-value.h.
32148         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32149         * modules/unicodeio (Depends-on): Add ignore-value.
32150
32151 2009-10-26  Eric Blake  <ebb9@byu.net>
32152
32153         areadlinkat: fix fallback path
32154         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32155         pointer and zero.
32156
32157 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32158
32159         Use a better IO block size for modern systems
32160         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32161         * lib/md2.c: Likewise.
32162         * lib/md4.c: Likewise.
32163         * lib/md5.c: Likewise.
32164         * lib/sha1.c: Likewise.
32165         * lib/sha256.c: Likewise.
32166         * lib/sha512.c: Likewise.
32167
32168 2009-10-22  Eric Blake  <ebb9@byu.net>
32169
32170         tests: avoid several compiler warnings
32171         * tests/test-getcwd.c (main): Avoid buffer underflow.
32172         * tests/test-getdate.c (main): String literals are not safe with
32173         putenv, so use setenv.  Declare unused argument.
32174         * modules/getdate-tests (Depends-on): Add setenv.
32175         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32176         problems with string literals in char *.
32177         * tests/test-hash.c (main): Avoid shadowing declaration.
32178         (insert_new): Treat string literals as char const *.
32179         * tests/test-getopt.h (test_getopt): Likewise.
32180         (getopt_loop): Alter types to minimize casting elsewhere.
32181         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32182         (test_getopt_long_posix): Likewise.
32183         (do_getopt_long): Add wrapper to minimize casting.
32184         * tests/test-atexit.c (clear_temp_file): Use void.
32185         * tests/test-areadlink-with-size.c (main): Declare unused
32186         arguments.
32187         * tests/test-areadlink.c (main): Likewise.
32188         * tests/test-areadlinkat-with-size.c (main): Likewise.
32189         * tests/test-areadlinkat.c (main): Likewise.
32190         * tests/test-canonicalize-lgpl.c (main): Likewise.
32191         * tests/test-canonicalize.c (main): Likewise.
32192         * tests/test-dirent-safer.c (main): Likewise.
32193         * tests/test-dirname.c (main): Likewise.
32194         * tests/test-dup2.c (main): Likewise.
32195         * tests/test-fchdir.c (main): Likewise.
32196         * tests/test-fcntl-h.c (main): Likewise.
32197         * tests/test-fcntl-safer.c (main): Likewise.
32198         * tests/test-fdopendir.c (main): Likewise.
32199         * tests/test-fdutimensat.c (main): Likewise.
32200         * tests/test-fflush.c (main): Likewise.
32201         * tests/test-filenamecat.c (main): Likewise.
32202         * tests/test-filevercmp.c (main): Likewise.
32203         * tests/test-fopen-safer.c (main): Likewise.
32204         * tests/test-fopen.c (main): Likewise.
32205         * tests/test-fpending.c (main): Likewise.
32206         * tests/test-fpurge.c (main): Likewise.
32207         * tests/test-freading.c (main): Likewise.
32208         * tests/test-fstatat.c (main): Likewise.
32209         * tests/test-fsync.c (main): Likewise.
32210         * tests/test-futimens.c (main): Likewise.
32211         * tests/test-getndelim2.c (main): Likewise.
32212         * tests/test-gettimeofday.c (main): Likewise.
32213         * tests/test-getopt.c (main): Likewise.
32214         * tests/test-i-ring.c (main): Likewise.
32215         * tests/test-inttypes.c (main): Likewise.
32216         * tests/test-link.c (main): Likewise.
32217         * tests/test-lstat.c (main): Likewise.
32218         * tests/test-math.c (main): Likewise.
32219         * tests/test-md5.c (main): Likewise.
32220         * tests/test-memchr2.c (main): Likewise.
32221         * tests/test-memrchr.c (main): Likewise.
32222         * tests/test-mkdir.c (main): Likewise.
32223         * tests/test-mkdirat.c (main): Likewise.
32224         * tests/test-mkfifoat.c (main): Likewise.
32225         * tests/test-open.c (main): Likewise.
32226         * tests/test-openat-safer.c (main): Likewise.
32227         * tests/test-openat.c (main): Likewise.
32228         * tests/test-quotearg.c (main): Likewise.
32229         * tests/test-rawmemchr.c (main): Likewise.
32230         * tests/test-readlink.c (main): Likewise.
32231         * tests/test-remove.c (main): Likewise.
32232         * tests/test-rename.c (main): Likewise.
32233         * tests/test-renameat.c (main): Likewise.
32234         * tests/test-rmdir.c (main): Likewise.
32235         * tests/test-sha1.c (main): Likewise.
32236         * tests/test-signal.c (main): Likewise.
32237         * tests/test-sigaction.c (main): Likewise.
32238         * tests/test-stat.c (main): Likewise.
32239         * tests/test-stat-time.c (main): Likewise.
32240         * tests/test-stddef.c (main): Likewise.
32241         * tests/test-stdint.c (main): Likewise.
32242         * tests/test-stdio.c (main): Likewise.
32243         * tests/test-stdlib.c (main): Likewise.
32244         * tests/test-strchrnul.c (main): Likewise.
32245         * tests/test-strerror.c (main): Likewise.
32246         * tests/test-string.c (main): Likewise.
32247         * tests/test-strtod.c (main): Likewise.
32248         * tests/test-strverscmp.c (main): Likewise.
32249         * tests/test-symlink.c (main): Likewise.
32250         * tests/test-symlinkat.c (main): Likewise.
32251         * tests/test-sys_stat.c (main): Likewise.
32252         * tests/test-sys_time.c (main): Likewise.
32253         * tests/test-time.c (main): Likewise.
32254         * tests/test-unistd.c (main): Likewise.
32255         * tests/test-unlink.c (main): Likewise.
32256         * tests/test-unlinkat.c (main): Likewise.
32257         * tests/test-utimens.c (main): Likewise.
32258         * tests/test-utimensat.c (main): Likewise.
32259         * tests/test-version-etc.c (main): Likewise.
32260         * tests/test-wchar.c (main): Likewise.
32261         * tests/test-wctype.c (main): Likewise.
32262         * tests/test-xprintf-posix.c (main): Likewise.
32263         * tests/test-posixtm.c (main): Likewise.
32264         (STREQ): Delete unused macro.
32265         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32266         shadowed variables.
32267         * tests/test-memchr.c (main): Likewise.
32268
32269 2009-10-21  Eric Blake  <ebb9@byu.net>
32270
32271         areadlinkat: avoid failure on older glibc
32272         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32273         rather than mis-comparing 0 against FUNC_RESULT of char*.
32274
32275 2009-10-21  Bruno Haible  <bruno@clisp.org>
32276
32277         * modules/stpncpy (License): Relicense under LGPLv2+.
32278         Reported by David Lutterkort <lutter@redhat.com>.
32279
32280 2009-10-20  Eric Blake  <ebb9@byu.net>
32281
32282         utimensat: work around Solaris 9 bug
32283         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32284         has trailing slash bugs.
32285         * tests/test-lutimens.h (test_lutimens): Enhance test.
32286         * tests/test-utimens.h (test_utimens): Likewise.
32287         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32288         * doc/posix-functions/utimes.texi (utimes): Likewise.
32289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32290         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32291         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32292         * doc/posix-functions/futimens.texi (futimens): Likewise.
32293
32294         fdutimensat: new module
32295         * modules/fdutimensat: New file.
32296         * lib/fdutimensat.c (fdutimensat): Likewise.
32297         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32298         * MODULES.html.sh (File system functions): Mention module.
32299         * modules/fdutimensat-tests: New test.
32300         * tests/test-fdutimensat.c: Likewise.
32301
32302         doc: regenerate INSTALL
32303         * doc/INSTALL: Reflect recent autoconf update.
32304         * doc/INSTALL.ISO: Likewise.
32305         * doc/INSTALL.UTF-8: Likewise.
32306
32307 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32308
32309         acl: warn if ACL support is not detected
32310         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32311
32312 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32313
32314         * lib/nproc.h: Add extern "C" block for C++.
32315
32316 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32317             Bruno Haible  <bruno@clisp.org>
32318
32319         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32320         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32321         * doc/posix-functions/isalpha.texi: Likewise.
32322         * doc/posix-functions/isblank.texi: Likewise.
32323         * doc/posix-functions/iscntrl.texi: Likewise.
32324         * doc/posix-functions/isdigit.texi: Likewise.
32325         * doc/posix-functions/isgraph.texi: Likewise.
32326         * doc/posix-functions/islower.texi: Likewise.
32327         * doc/posix-functions/isprint.texi: Likewise.
32328         * doc/posix-functions/ispunct.texi: Likewise.
32329         * doc/posix-functions/isspace.texi: Likewise.
32330         * doc/posix-functions/isupper.texi: Likewise.
32331         * doc/posix-functions/isxdigit.texi: Likewise.
32332
32333 2009-10-18  Bruno Haible  <bruno@clisp.org>
32334
32335         Tests for module 'isblank'.
32336         * modules/isblank-tests: New file.
32337         * tests/test-isblank.c: New file.
32338
32339         New module 'isblank'.
32340         * lib/isblank.c: New file.
32341         * m4/isblank.m4: New file.
32342         * modules/isblank: New file.
32343         * doc/posix-functions/isblank.texi: Mention the new module.
32344
32345 2009-10-18  Bruno Haible  <bruno@clisp.org>
32346
32347         New module 'ctype'.
32348         * lib/ctype.in.h: New file.
32349         * m4/ctype.m4: New file.
32350         * modules/ctype: New file.
32351         * doc/posix-headers/ctype.texi: Mention the new module.
32352
32353 2009-10-18  Jim Meyering  <meyering@redhat.com>
32354
32355         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32356         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32357         right after its initialization, rather than farther down.
32358         Keeping these in close proximity makes it easier to ensure
32359         that each such variable is initialized.  E.g.,
32360
32361             LIB_CLOCK_GETTIME=
32362             AC_SUBST([LIB_CLOCK_GETTIME])
32363
32364         This change also increments these serial numbers.
32365         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32366         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32368
32369 2009-10-18  Bruno Haible  <bruno@clisp.org>
32370
32371         Don't let environment variables perturb build.
32372         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32373         (gl_PREREQ_GETHRXTIME): ... not here.
32374
32375 2009-10-18  Bruno Haible  <bruno@clisp.org>
32376
32377         Avoid symlink attack in localcharset module.
32378         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32379         (O_NOFOLLOW): Define fallback.
32380         (get_charset_aliases): Don't open the file if it is a symbolic link.
32381         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32382         gl_FCNTL_H.
32383         (gl_FCNTL_H): Require it.
32384         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32385         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32386         Reported by Fergal Glynn <fglynn@veracode.com>.
32387
32388 2009-10-18  Bruno Haible  <bruno@clisp.org>
32389
32390         Implement nproc for mingw.
32391         * lib/nproc.c: Include <windows.h>
32392         (num_processors): On native Windows platforms, try GetSystemInfo.
32393
32394 2009-10-18  Bruno Haible  <bruno@clisp.org>
32395
32396         Implement nproc for IRIX.
32397         * lib/nproc.c: Include <sys/sysmp.h>.
32398         (num_processors): On IRIX systems, try sysmp.
32399         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32400
32401 2009-10-18  Bruno Haible  <bruno@clisp.org>
32402
32403         Implement nproc for HP-UX.
32404         * lib/nproc.c: Include <sys/pstat.h>
32405         (num_processors): On HP-UX systems, try pstat_getdynamic.
32406         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32407         pstat_getdynamic.
32408
32409 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32410             Bruno Haible  <bruno@clisp.org>
32411
32412         Implement nproc for NetBSD, OpenBSD.
32413         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32414         (ARRAY_SIZE): New macro.
32415         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32416         * m4/nproc.m4: New file.
32417         * modules/nproc (Files): Add m4/nproc.m4.
32418         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32419         (Makefile.am): Instead, augment lib_SOURCES.
32420
32421 2009-10-18  Bruno Haible  <bruno@clisp.org>
32422
32423         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32424         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32425         sys/param.h.
32426
32427 2009-10-16  Eric Blake  <ebb9@byu.net>
32428
32429         utimensat: new module
32430         * modules/utimensat: New file.
32431         * lib/utimensat.c (utimensat): Likewise.
32432         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32433         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32434         so we can work around Linux bugs.
32435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32436         * modules/sys_stat (Makefile.am): Substitute them.
32437         * lib/sys_stat.in.h (utimensat): Declare it.
32438         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32439         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32440         * modules/utimensat-tests: New test.
32441         * tests/test-utimensat.c: Likewise.
32442
32443         utimens: let lutimens work on non-symlinks
32444         * lib/utimens.c (lutimens): Fall back to utimens rather than
32445         failing with ENOSYS, when file is not a symlink.
32446         (utimens): Reduce redirection.
32447         * tests/test-lutimens.h (test_lutimens): Update test to cover
32448         non-symlinks.
32449         * tests/test-utimens.h (test_utimens): Update test to cover
32450         symlinks.
32451         * tests/test-utimens.c (main): Update caller.
32452
32453         utimens: cache whether utimensat syscall works
32454         * lib/utimens.c (utimensat_works_really): New cache variable.
32455         (fdutimens, lutimens): Use it to avoid failing syscall.
32456
32457         test-stat-time, test-utimens: improve portability
32458         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32459         ext4 on alpha, and for cygwin.
32460         * tests/test-utimens-common.h: New file.
32461         (nap): Factor delays into single function.
32462         * tests/test-lutimens.h (test_lutimens): Use new header.
32463         * tests/test-futimens.h (test_futimens): Likewise.
32464         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32465         timestamps to occur from same machine, as was done previously for
32466         test_utimens.
32467         * modules/utimens-tests (Files): Ship new file.
32468         * modules/futimens-tests (Files): Likewise.
32469         Reported in part by Jim Meyering.
32470
32471         sys_stat: sort replacement declarations
32472         * lib/sys_stat.in.h: Sort declarations.
32473         * lib/futimens.c (futimens): Fix typo.
32474
32475 2009-10-15  Jim Meyering  <meyering@redhat.com>
32476
32477         don't let environment settings perturb build
32478         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32479         could cause a configure-time and/or build-time malfunction.
32480         Typically, a configure-time function-in-library test is performed
32481         via code like this:
32482
32483           LIB_VAR=
32484           AC_SUBST([LIB_VAR])
32485           prefix_saved_LIBS=$LIBS
32486             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32487                        [test "$ac_cv_search_FUNC" = "none required" ||
32488                         LIB_VAR=$ac_cv_search_FUNC])
32489           LIBS=$prefix_saved_LIBS
32490
32491         However, in each of the files affected by this change, the LIB_VAR=
32492         initialization was omitted.  Thus, when set in the environment, its
32493         value would propagate into generated Makefiles when FUNC is not found
32494         in LIB_NAME.
32495         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32496         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32498
32499 2009-10-14  Eric Blake  <ebb9@byu.net>
32500
32501         fchdir: avoid infinite recursion in mingw
32502         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32503         recursing.
32504
32505         test-stat-time: port to mingw
32506         * tests/test-stat-time.c (force_unlink): Return a value.
32507         (test_ctime) [W32]: Fix compilation error.
32508         (nap): Don't call usleep with too large an argument.  Use
32509         force_unlink.
32510         * doc/pastposix-functions/usleep.texi (usleep): Document the
32511         portability issue.
32512
32513 2009-10-13  Jim Meyering  <meyering@redhat.com>
32514
32515         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32516         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32517         * modules/pipe-filter-ii: Likewise.
32518         * modules/sys_socket-tests: Likewise.
32519         * modules/tsearch-tests: Likewise.
32520         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32521         (check): Depend on it.
32522
32523 2009-10-12  Eric Blake  <ebb9@byu.net>
32524
32525         utimens-tests: port to NFS file systems
32526         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32527         comparisons to avoid spurious failures from timestamp drift
32528         between NFS machines.
32529
32530 2009-10-12  Eric Blake  <ebb9@byu.net>
32531
32532         stat-time-tests: minor cleanups
32533         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32534         * tests/test-stat-time.c (nap): Separate assignment from call.
32535         Suggested by Paolo Bonzini and Bruno Haible.
32536
32537         sys_stat: guarantee struct timespec
32538         * lib/sys_stat.in.h (includes): Always include <time.h>
32539         * modules/sys_stat (Depends-on): Add time.
32540         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32541         mode_t permission values.
32542         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32543         get at subsecond timestamps.
32544
32545 2009-10-10  Eric Blake  <ebb9@byu.net>
32546
32547         futimens: new module
32548         * modules/futimens: New file.
32549         * lib/futimens.c (futimens): Likewise.
32550         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32551         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32552         we can work around Linux bugs.
32553         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32554         * modules/sys_stat (Makefile.am): Substitute them.
32555         * lib/sys_stat.in.h (futimens): Declare it.
32556         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32557         * doc/posix-functions/futimens.texi (futimens): Likewise.
32558         * modules/futimens-tests: New test.
32559         * tests/test-futimens.c: Likewise.
32560
32561         utimens: introduce fdutimens
32562         * lib/utimens.h (fdutimens): New prototype.
32563         * lib/utimens.c (gl_futimens): Move guts...
32564         (fdutimens): ...to new interface.
32565         * tests/test-utimens.c (do_fdutimens): Use it.
32566
32567         utimens: add UTIME_NOW and UTIME_OMIT support
32568         * lib/utimens.c (validate_timespec, update_timespec): New helper
32569         functions.
32570         (gl_futimens, lutimens): Use them.
32571         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32572         stdbool, sys_stat.
32573         (Link): Mention resulting library dependency.
32574         * modules/utimecmp (Link): Likewise.
32575         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32576         (Makefile.am): Pick up library dependency.
32577         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32578         definition.
32579         * tests/test-sys_stat.c: Test the definitions.
32580         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32581         * NEWS: Document library dependency.
32582
32583         utimecmp: support symlink timestamps
32584         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32585         hashing when possible.  Use pathconf when available.
32586         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32587         * modules/utimecmp (Depends-on): Add lstat.
32588
32589         utimens: add lutimens interface
32590         * lib/utimens.c (lutimens): New function.
32591         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32592         * lib/utimens.h (lutimens): Declare new interface.
32593         * tests/test-utimens.c (main): Enhance test.
32594         * tests/test-lutimens.h (test_lutimens): New file.
32595         * modules/utimens-tests (Files): Distribute it.
32596         (Depends-on): Add symlink.
32597         (configure.ac): Check for usleep.
32598
32599         utimens: validate futimens usage
32600         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32601         fewer syscalls on failure later on.  Avoid compiler warning on
32602         mingw.
32603         * modules/utimens (Depends-on): Add dup2.
32604
32605         utimens: add test
32606         * modules/utimens-tests: New test.
32607         * tests/test-utimens.h: New file.
32608         * tests/test-futimens.h: Likewise.
32609         * tests/test-utimens.c: Likewise.
32610
32611         doc: mention timestamp portability issues
32612         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32613         instead.
32614         * doc/posix-functions/utime.texi (utime): Likewise.
32615         * doc/posix-functions/utimes.texi (utimes): Likewise.
32616         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32617         instead.
32618         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32619         module.
32620         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32621         Mention weakness with symlink timestamps.
32622         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32623         to utimensat/futimens instead.
32624         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32625
32626         test-dup2: enhance test
32627         * tests/test-dup2.c (main): Also check AT_FDCWD.
32628
32629         test-stat-time: avoid more spurious failures
32630         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32631         xfs; and avoid race if the two timestamps cross quantization edge.
32632
32633         relocatable: prefer 'file system' over 'filesystem'
32634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32635         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32636         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32637         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32638         * lib/relocatable.c (compute_curr_prefix): Likewise.
32639
32640 2009-10-10  Jim Meyering  <meyering@redhat.com>
32641
32642         stat-time-tests: check for the usleep function
32643         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32644
32645 2009-10-10  Bruno Haible  <bruno@clisp.org>
32646
32647         * modules/xnanosleep: Put the Link section after the Include section.
32648
32649 2009-10-09  Eric Blake  <ebb9@byu.net>
32650
32651         dup2: work around FreeBSD 6.1 bug
32652         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32653         * doc/posix-functions/dup2.texi (dup2): Document it.
32654         Reported by Nelson H. F. Beebe and Jim Meyering.
32655
32656         test-stat-time: port to buggy NFS clients
32657         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32658         (test_ctime): Also skip test if mtime and ctime are skewed.
32659
32660         maint: prefer 'file system' over 'filesystem'
32661         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32662         * doc/posix-functions/lstat.texi (lstat): Likewise.
32663         * lib/file-has-acl.c (file_has_acl): Likewise.
32664         * lib/fwriteerror.c [TEST]: Likewise.
32665         * tests/test-areadlink.h (test_areadlink): Likewise.
32666         * tests/test-areadlinkat-with-size.c (main): Likewise.
32667         * tests/test-areadlinkat.c (main): Likewise.
32668         * tests/test-canonicalize-lgpl.c (main): Likewise.
32669         * tests/test-canonicalize.c (main): Likewise.
32670         * tests/test-fstatat.c (main): Likewise.
32671         * tests/test-linkat.c (main): Likewise.
32672         * tests/test-lstat.h (test_lstat_func): Likewise.
32673         * tests/test-mkdir.h (test_mkdir): Likewise.
32674         * tests/test-readlink.h (test_readlink): Likewise.
32675         * tests/test-remove.c (main): Likewise.
32676         * tests/test-rename.h (test_rename): Likewise.
32677         * tests/test-renameat.c (main): Likewise.
32678         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32679         * tests/test-symlink.h (test_symlink): Likewise.
32680         * tests/test-symlinkat.c (main): Likewise.
32681         * tests/test-unlink.h (test_unlink_func): Likewise.
32682         * tests/test-unlinkat.c (main): Likewise.
32683
32684         maint: make realtime library usage explicit
32685         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32686         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32687         * modules/settime (Link): Likewise.
32688         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32689
32690         test-stat-time: speed up execution
32691         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32692         warning on mingw.
32693         (nap): New helper function.
32694         (prepare_test): Use it to reduce sleep time.
32695         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32696         execution.
32697         * modules/stat-time-tests (configure.ac): Check for usleep.
32698
32699 2009-10-09  Jim Meyering  <meyering@redhat.com>
32700
32701         selinux-h: always use getfilecon wrappers
32702         * lib/getfilecon.c: New file.
32703         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32704         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32705         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32706         (fgetfilecon): Provide a stub.
32707         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32708         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32709         file unconditionally.
32710         When <selinux/selinux.h> is found, arrange to use wrappers.
32711         * modules/selinux-h (Files): Add getfilecon.c.
32712         (Makefile.am): Substitute include-next-related bits
32713         into the now-always-generated selinux/selinux.h file.
32714         * doc/glibc-functions/lgetfilecon.texi: New file.
32715         * doc/glibc-functions/fgetfilecon.texi: New file.
32716         * doc/glibc-functions/getfilecon.texi: New file.
32717         * doc/glibc-functions/getfilecon-desc.texi: New file.
32718         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32719         which to pull in the new files.
32720         * MODULES.html.sh (Misc): Add selinux-h.
32721
32722 2009-10-08  Jim Meyering  <meyering@redhat.com>
32723
32724         unistd: fix comment typo
32725         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32726
32727 2009-10-08  Eric Blake  <ebb9@byu.net>
32728
32729         areadlink: use SIZE_MAX consistently
32730         * modules/areadlink (Depends-on): Add stdint.
32731         * modules/areadlink-with-size (Depends-on): Likewise.
32732         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32733         gives NULL; drop sys/types, since unistd gives size_t; and add
32734         stdint for SIZE_MAX.
32735         (SIZE_MAX): Rely on headers.
32736         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32737         and add stdint.
32738         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32739         (SIZE_MAX): Likewise.
32740         (INITIAL_BUF_SIZE): Turn into enum.
32741         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32742
32743 2009-10-08  Jim Meyering  <meyering@redhat.com>
32744
32745         areadlinkat: avoid compilation failure
32746         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32747         Fix typo in comment.
32748
32749 2009-10-07  Eric Blake  <ebb9@byu.net>
32750
32751         areadlinkat-with-size: new module
32752         * modules/areadlinkat-with-size: New module.
32753         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32754         * lib/areadlink.h (areadlinkat): Declare it.
32755         * MODULES.html.sh (File system functions): Mention it.
32756         * modules/areadlinkat-with-size-tests: New test.
32757         * tests/test-areadlinkat-with-size.c: New file.
32758
32759         xreadlinkat: new module
32760         * modules/xreadlinkat: New module.
32761         * lib/xreadlinkat.c (xreadlinkat): New file.
32762         * lib/xreadlink.h (xreadlinkat): Declare it.
32763         * MODULES.html.sh (File system functions): Mention it.
32764
32765         areadlinkat: new module
32766         * lib/at-func.c (FUNC_FAIL): New define.
32767         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32768         * modules/areadlinkat: New module.
32769         * lib/linkat.c (areadlinkat): Move...
32770         * lib/areadlinkat.c (areadlinkat): ...to new file.
32771         * lib/areadlink.h (areadlinkat): Declare it.
32772         * modules/linkat (Depends-on): Add areadlinkat.
32773         * MODULES.html.sh (File system functions): Mention it.
32774         * modules/areadlinkat-tests: New test.
32775         * tests/test-areadlinkat.c: New file.
32776
32777         areadlink, areadlink-with-size: add tests
32778         * modules/areadlink-tests: New test.
32779         * modules/areadlink-with-size-tests: Likewise.
32780         * tests/test-areadlink.h: New file.
32781         * tests/test-areadlink.c: Likewise.
32782         * tests/test-areadlink-with-size.c: Likewise.
32783
32784         maint: minor cleanups
32785         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32786         _UNUSED_PARAMETER_ instead.
32787         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32788         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32789         * modules/linkat-tests (Files): Distribute test-link.h.
32790
32791         openat, utimens: whitespace cleanup
32792         * lib/openat.c: Prefer space throughout, rather than mix of 8
32793         spaces vs. tabs.
32794         * lib/at-func.c: Likewise.
32795         * lib/utimens.c: Likewise.
32796
32797         openat: avoid using wrong fd
32798         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32799         working directory chooses same fd.
32800         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32801
32802         mkdir, mkdirat: fix cygwin 1.5.x bug
32803         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32804         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32805         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32806         bug.
32807         (gl_PREREQ_MKDIR): Delete unused macro.
32808         * modules/mkdir (Files): Track file rename.
32809         (configure.ac): Update macro name.
32810         * modules/openat (Depends-on): Add mkdir.
32811         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32812
32813         mkdir, mkdirat: add tests
32814         * modules/mkdir-tests: New test.
32815         * tests/test-mkdir.h: New file.
32816         * tests/test-mkdir.c: Likewise.
32817         * tests/test-mkdirat.c: Likewise.
32818         * modules/openat-tests (Files): Add new files.
32819         (Makefile.am): Run new test.
32820
32821 2009-10-06  Eric Blake  <ebb9@byu.net>
32822
32823         doc: tweak *at function documentation
32824         * doc/posix-functions/faccessat.texi (faccessat): Mention
32825         known issue with replacement.
32826         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32827         * doc/posix-functions/linkat.texi (linkat): Likewise.
32828         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32829         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32830         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32831         * doc/posix-functions/renameat.texi (renameat): Likewise.
32832         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32833
32834         openat: fix GNU/Hurd bug in unlinkat
32835         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32836         broken.
32837         * doc/posix-functions/unlink.texi (unlink): Document this.
32838         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32839
32840         fdopendir: fix GNU/Hurd bug
32841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32842         allowing non-directory fds.
32843         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32845         * modules/dirent (Makefile.am): Substitute it.
32846         * lib/dirent.in.h (fdopendir): Declare replacement.
32847         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32848         * tests/test-fdopendir.c (main): Test something other than
32849         /dev/null, since on Hurd that behaves like a directory.
32850
32851         test-symlink: port to GNU/Hurd
32852         * tests/test-symlink.h (test_symlink): Relax expected errno.
32853
32854         doc: tweak more cygwin information
32855         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32856         now compatible with glibc.
32857         * doc/posix-functions/getopt.texi (getopt): Likewise.
32858
32859         getopt-gnu: add another test
32860         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32861         guarantee behavior relied on by m4.
32862         * tests/test-getopt.c (main): Use it.
32863         * modules/getopt-posix-tests (Depends-on): Add setenv.
32864         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32865
32866         getopt: fix compilation on darwin
32867         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32868         include.
32869         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32870         Reported by Ludovic Courtès.
32871
32872 2009-10-06  Bruno Haible  <bruno@clisp.org>
32873
32874         * modules/size_max (Description): Discourage its use.
32875         Reported by Simon Josefsson.
32876
32877 2009-10-06  Jim Meyering  <meyering@redhat.com>
32878
32879         linkat: avoid compilation failure
32880         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32881
32882 2009-10-05  Eric Blake  <ebb9@byu.net>
32883
32884         linkat: support Linux 2.6.17
32885         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32886         linkat on Linux, but allow cache variable override.
32887         * lib/linkat.c (rpl_linkat): Define override.
32888         * modules/linkat (Depends-on): Add symlinkat.
32889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32890         * modules/unistd (Makefile.am): Substitute it.
32891         * lib/unistd.in.h (linkat): Declare replacement.
32892         Reported by Pádraig Brady.
32893
32894         quotearg: port test to systems with C.UTF-8 locale
32895         * tests/test-quotearg.c (struct result_strings): Add another
32896         member, differentiating between C.ASCII and C.UTF-8 handling.
32897         (compare_strings): Add parameter.
32898         (main): Adjust all callers.
32899
32900         getopt: avoid clash with FreeBSD _getopt_internal
32901         * lib/getopt.in.h (_getopt_internal): Override the name.
32902         * lib/getopt_int.h (includes): Pick up any overrides.
32903         Reported by Reuben Thomas.
32904
32905         hash: allow C89 compilation
32906         * lib/hash.c (check_tuning): Move declaration before statement.
32907         Reported by Reuben Thomas.
32908
32909 2009-10-05  Karl Berry  <karl@gnu.org>
32910
32911         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32912
32913 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32914             Bruno Haible  <bruno@clisp.org>
32915
32916         * lib/uname.c (uname): Use a table-driven algorithm to compute
32917         Windows NT versions.
32918
32919 2009-10-04  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32922         program_invocation_short_name.
32923         * modules/progname (configure.ac): Test for presence of
32924         program_invocation_short_name.
32925         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32926
32927 2009-10-04  Bruno Haible  <bruno@clisp.org>
32928
32929         * lib/progname.c (set_program_name): Fix comment.
32930         Reported by Jim Meyering.
32931
32932 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32933             Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/uname.c: Include <string.h>.
32936         (uname): Do only one call to GetVersionEx in the common case.
32937
32938 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32939             Bruno Haible  <bruno@clisp.org>
32940
32941         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32942         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32943         (uname): Add support for Windows CE and various non-x86 CPU types.
32944
32945 2009-10-03  Bruno Haible  <bruno@clisp.org>
32946
32947         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32948         invocation to tests/configure.ac.
32949         Reported by Ian Beckwith <ianb@erislabs.net>.
32950
32951 2009-10-02  Eric Blake  <ebb9@byu.net>
32952
32953         fchdir: avoid compiler warning
32954         * lib/fchdir.c (canonicalize_file_name)
32955         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32956
32957         test-open: support mingw errno values
32958         * tests/test-open.h (test_open): Relax test.
32959         * tests/test-fopen.h (test_fopen): Likewise.
32960         * tests/test-openat-safer.c (main): Likewise.
32961
32962         open: fix opening directory on mingw
32963         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32964
32965         test-open: on GNU/Hurd, /dev/null is a directory
32966         * tests/test-fopen.h (main): Rename...
32967         (test_fopen): ...to this.  Use a guaranteed non-directory when
32968         confirming open behavior on trailing slash.
32969         * tests/test-openat-safer.c (main): Likewise.
32970         * tests/test-open.h (main): Likewise....
32971         (test_open): ...to this.
32972         * tests/test-fopen.c (main): Adjust caller.
32973         * tests/test-fopen-safer.c (main): Likewise.
32974         * tests/test-open.c (main): Likewise.
32975         * tests/test-fcntl-safer.c (main): Likewise.
32976         Reported by Samuel Thibault.
32977
32978         rename, fchdir: don't ignore chdir failure
32979         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32980         * lib/rename.c (rpl_rename) [W32]: Likewise.
32981         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32982         an empty destination directory if source cannot be renamed,
32983         although there is still possibility for failure.
32984         * doc/posix-functions/rename.texi (rename): Document the race.
32985         Reported by Jim Meyering.
32986
32987         maint: cleanup whitespace in recent commits
32988         * lib/rename.c (rpl_rename): Remove tabs.
32989         * tests/test-link.h (test_link): Likewise.
32990         * lib/fchdir.c (get_name): Likewise.
32991         Reported by Jim Meyering.
32992
32993 2009-10-02  Ben Pfaff  <blp@gnu.org>
32994
32995         relocatable-prog-wrapper: Add missing dependency on
32996         double-slash-root.
32997         * modules/relocatable-prog-wrapper: Add dependency.
32998         Reported by Ian Beckwith <ianb@erislabs.net>.
32999
33000 2009-10-02  Eric Blake  <ebb9@byu.net>
33001
33002         renameat: fix Solaris bugs
33003         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33004         needed fixing.
33005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33006         * modules/stdio (Makefile.am): Substitute it.
33007         * lib/stdio.in.h (renameat): Declare replacement.
33008         * lib/renameat.c (rpl_renameat): Implement fix.
33009
33010         renameat: new module
33011         * modules/renameat: New file.
33012         * lib/renameat.c (renameat): Likewise.
33013         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33015         * modules/stdio (Makefile.am): Substitute them.
33016         * lib/stdio.in.h (renameat): Declare it.
33017         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33018         * doc/posix-functions/renameat.texi (renameat): Likewise.
33019         * modules/renameat-tests: New test.
33020         * tests/test-renameat.c: Likewise.
33021
33022         rename: fix mingw bugs
33023         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33024         directory overwrite bugs.
33025
33026         rename: fix another cygwin 1.5 bug
33027         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33028         checks.
33029         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33030         unnecessary cygwin workarounds.  Also work around bug with moving
33031         full directory onto an empty one.
33032         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33033
33034         rename-dest-slash: merge into rename module
33035         * modules/rename-dest-slash (Status): Mark obsolete.
33036         (Depends-on): Add rename.
33037         (Files): Let rename do it all.
33038         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33039         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33040         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33041         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33042         * lib/rename.c (rpl_rename): Update comments.
33043
33044         rename: fix cygwin 1.5.x bugs
33045         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33046         * lib/rename.c (rpl_rename): Work around them.
33047         * modules/rename (Depends-on): Add same-inode.
33048
33049         rename: fix Solaris 10 bug
33050         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33051         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33052         was the only bug.
33053
33054         rename: fix Solaris 9 bug
33055         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33056         on non-directory.  Avoid calling exit.
33057         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33058         strdup.
33059         * modules/rename-tests (Depends-on): Drop lstat.
33060         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33061         (gl_PREREQ_RENAME): Delete unused macro.
33062
33063         rename-dest-slash: fix NetBSD bug
33064         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33065         links.
33066         * modules/rename-dest-slash (Depends-on): Add same-inode.
33067
33068         rename-tests: new test, exposes several platform bugs
33069         * modules/rename-tests: New file.
33070         * tests/test-rename.h: Likewise.
33071         * tests/test-rename.c: Likewise.
33072         * doc/posix-functions/rename.texi (rename): Improve documentation,
33073         including bugs that will eventually be fixed in gnulib.
33074
33075 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33076
33077         * lib/uname.c: Include <stdlib.h>
33078         (uname): Assume version info is available.
33079
33080 2009-10-02  Jim Meyering  <meyering@redhat.com>
33081
33082         gnu-web-doc-update: correct --help output
33083         * build-aux/gnu-web-doc-update: Make --help output relevant.
33084
33085         gnu-web-doc-update: add standard options
33086         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33087
33088         gnu-web-doc-update: New module.
33089         Use this script to automatically update the on-line web documentation
33090         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33091         * modules/gnu-web-doc-update: New file, from coreutils.
33092         * build-aux/gnu-web-doc-update: New script.
33093
33094 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33095
33096         link: LoadLibrary is not needed.
33097         * lib/link.c: Use GetModuleHandle.
33098
33099 2009-10-01  Eric Blake  <ebb9@byu.net>
33100
33101         getopt: bump serial number
33102         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33103         change.
33104
33105         tests: tighten link, rmdir, and remove tests
33106         * tests/test-link.h (includes): No need to use <config.h> here.
33107         Clean up if directory hard link was created, otherwise test for
33108         trailing '.'.
33109         * tests/test-linkat.c (main): Simplify.
33110         * tests/test-remove.c (main): Enhance test for trailing '.'.
33111         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33112
33113 2009-10-01  Jim Meyering  <meyering@redhat.com>
33114
33115         maint.mk: requiring "make major" was annoying, for a "minor" release.
33116         What is intended is "stable", to contrast with alpha and beta,
33117         so require "make stable", not "make major".
33118         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33119         (get_tool_versions): Likewise.
33120         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33121
33122 2009-09-30  Ben Pfaff  <blp@gnu.org>
33123
33124         Fix broken build of replacement for Windows tmpfile().
33125         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33126         flags argument added along with the 'mkostemp' module.
33127
33128 2009-09-28  Bruno Haible  <bruno@clisp.org>
33129
33130         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33131         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33132         to 'remove_elt'.
33133         (gl_list_remove): Update.
33134         * lib/gl_list.c (gl_list_remove): Update.
33135         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33136         to 'remove_elt'.
33137         (gl_oset_remove): Update.
33138         * lib/gl_list.c (gl_oset_remove): Update.
33139         Reported by Eric Blake.
33140
33141 2009-09-28  Eric Blake  <ebb9@byu.net>
33142
33143         doc: mention yet more cygwin 1.7 status
33144         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33145         cygwin.
33146         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33147         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33148
33149         argp: fix test failure
33150         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33151         that are not upper-case.  Pass correct range to tolower.
33152
33153 2009-09-27  Jim Meyering  <meyering@redhat.com>
33154
33155         test-yesno: work around sparc-dash here-document infelicity
33156         Without this change, the literal \177 byte in a here document
33157         would make dash 0.5.5.1-3 access uninitialized memory.
33158         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33159         Instead, use a marker, "@", and filter through tr to create the desired
33160         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33161
33162 2009-09-27  Bruno Haible  <bruno@clisp.org>
33163
33164         Disable untested support for new flavours of ACLs on AIX.
33165         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33166         progress.
33167         * lib/set-mode-acl.c (qset_acl): Likewise.
33168
33169 2008-12-07  Bruno Haible  <bruno@clisp.org>
33170
33171         Add support for new flavours of ACLs on AIX. (Untested.)
33172         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33173         (file_has_acl): Add support for newer AIX.
33174         * lib/set-mode-acl.c (qset_acl): Likewise.
33175         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33176         Rainer Tammer <tammer@tammer.net>.
33177
33178 2009-09-26  Eric Blake  <ebb9@byu.net>
33179
33180         argp: fix compilation of getopt
33181         * lib/getopt.in.h (includes): Use different guard than glibc.
33182         Reported by Sergey Poznyakoff.
33183
33184         doc: mention more cygwin 1.7 status
33185         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33186         bug.
33187         * doc/posix-functions/execl.texi (execl): Likewise.
33188         * doc/posix-functions/execle.texi (execle): Likewise.
33189         * doc/posix-functions/execlp.texi (execlp): Likewise.
33190         * doc/posix-functions/execv.texi (execv): Likewise.
33191         * doc/posix-functions/execve.texi (execve): Likewise.
33192         * doc/posix-functions/execvp.texi (execvp): Likewise.
33193         * doc/glibc-functions/canonicalize_file_name.texi
33194         (canonicalize_file_name): Cygwin 1.7 now provides this.
33195         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33196         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33197         on AT_SYMLINK_NOFOLLOW.
33198
33199 2009-09-24  Eric Blake  <ebb9@byu.net>
33200
33201         test-linkat: make test more robust
33202         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33203
33204         getopt: fix inclusion guards for cygwin
33205         * modules/getopt-posix (Depends-on): Add include-next.
33206         (Makefile.am): Substitute more items in replacement header.
33207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33208         <getopt.h>.
33209         * lib/getopt.in.h (includes): Use split inclusion guard, and
33210         prefer <getopt.h> over include <unistd.h> when one is present.
33211         (option): Also override name of 'struct option'.
33212
33213         same-inode: revert prior change; it is not yet ready
33214         * NEWS: Undo mention of this change.
33215         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33216         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33217         * lib/cycle-check.c (cycle_check): Likewise.
33218         * lib/same.c (same_name): Likewise.
33219         * lib/at-func2.c (at_func2): Likewise.
33220
33221 2009-09-23  Eric Blake  <ebb9@byu.net>
33222
33223         linkat: new module
33224         * modules/linkat: New file.
33225         * lib/at-func2.c (at_func2): Likewise.
33226         * lib/linkat.c (linkat): Likewise.
33227         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33228         * lib/openat-priv.h (at_func2): Add declaration.
33229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33230         * modules/unistd (Makefile.am): Substitute them.
33231         * lib/unistd.in.h (linkat): Declare it.
33232         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33233         * doc/posix-functions/linkat.texi (linkat): Likewise.
33234         * doc/posix-functions/link.texi (link): Tweak wording.
33235         * tests/test-link.c (main): Move guts...
33236         * tests/test-link.h (test_link): ...into new file.
33237         * modules/linkat-tests: New test.
33238         * tests/test-linkat.c: Likewise.
33239         * modules/link-tests (Files): Ship new file.
33240         (Depends-on): Add stdbool.
33241
33242         dirname: add library-safe mdir_name
33243         * lib/dirname.h (mdir_name): New prototype.
33244         * lib/dirname.c (dir_name): Move guts...
33245         (mdir_name): ...to new function that avoids xalloc_die.
33246
33247         fchdir: another mingw fix
33248         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33249         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33250         on mingw (where it has not yet been ported), and make it optional
33251         elsewhere.
33252         (_gl_register_fd): Use it.
33253
33254         same-inode: make SAME_INODE tri-state, to port to mingw
33255         * NEWS: Mention this change.
33256         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33257         st_ino always being 0.
33258         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33259         * lib/cycle-check.c (cycle_check): Likewise.
33260         * lib/same.c (same_name): Likewise.
33261
33262         lstat: avoid mingw compilation error
33263         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33264         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33265         lstat ourselves.
33266         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33267         was adequate.
33268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33269         the checks for lstat.
33270         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33271
33272         link: fix test failure on Solaris 9
33273         * lib/link.c (rpl_link): Don't assume link will catch bogus
33274         trailing slash on source.
33275
33276         test-symlinkat: enhance test
33277         * tests/test-readlink.c (main): Move guts...
33278         * tests/test-readlink.h (test_readlink): ...into new file.
33279         * tests/test-symlink.c (main): Move guts...
33280         * tests/test-symlink.h (test_symlink): ...into new file.
33281         * tests/test-symlinkat.c (main): Use new files for further
33282         coverage.
33283         (do_symlink, do_readlink): New helper functions.
33284         * modules/symlink-tests (Files): Ship new file.
33285         (Depends-on): Add stdbool.
33286         * modules/readlink-tests (Files): Ship new file.
33287         (Depends-on): Add stdbool.
33288         * modules/symlinkat-tests (Files): Use new files.
33289
33290 2009-09-23  Eric Blake  <ebb9@byu.net>
33291
33292         readlink: document portability issue with symlink length
33293         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33294         systems have bogus st_size on symlinks, and mention the
33295         areadlink-with-size module.
33296         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33297         * doc/posix-functions/readlink.texi (readlink): Mention the
33298         areadlink module, and ERANGE failure.
33299         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33300         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33301
33302         readlink: fix Solaris 9 bug with trailing slash
33303         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33304         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33305         * doc/posix-functions/readlink.texi (readlink): Document this.
33306         * modules/readlink-tests: New test.
33307         * tests/test-readlink.c: Likewise.
33308
33309         readlink: fix cygwin 1.5.x bug with return type
33310         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33311         * lib/unistd.in.h (readlink): Use ssize_t.
33312         * lib/readlink.c (readlink): Likewise.
33313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33314         * modules/unistd (Makefile.am): Substitute it.
33315         * lib/unistd.in.h (readlink): Declare replacement.
33316         * doc/posix-functions/readlink.texi (readlink): Document this.
33317
33318         symlink: use throughout gnulib
33319         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33320         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33321         symlink is not used.
33322         * modules/symlinkat (Depends-on): Add symlink.
33323         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33324         * modules/canonicalize-tests (Depends-on): Likewise.
33325         * modules/lstat-tests (Depends-on): Likewise.
33326         * modules/openat-tests (Depends-on): Likewise.
33327         * modules/remove-tests (Depends-on): Likewise.
33328         * modules/rmdir-tests (Depends-on): Likewise.
33329         * modules/unlink-tests (Depends-on): Likewise.
33330         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33331         * tests/test-canonicalize.c (symlink): Likewise.
33332         * tests/test-fstatat.c (symlink): Likewise.
33333         * tests/test-lstat.c (symlink): Likewise.
33334         * tests/test-remove.c (symlink): Likewise.
33335         * tests/test-rmdir.c (symlink): Likewise.
33336         * tests/test-unlink.c (symlink): Likewise.
33337         * tests/test-unlinkat.c (symlink): Likewise.
33338
33339         symlink: new module, for Solaris 9 bug
33340         * modules/symlink: New file.
33341         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33342         * lib/symlink.c: Likewise.
33343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33344         * modules/unistd (Makefile.am): Substitute them.
33345         * lib/unistd.in.h (symlink): Declare replacement.
33346         * MODULES.html.sh (File system functions): Mention it.
33347         * doc/posix-functions/symlink.texi (symlink): Likewise.
33348         * modules/symlink-tests: New test.
33349         * tests/test-symlink.c: Likewise.
33350
33351 2009-09-23  Bruno Haible  <bruno@clisp.org>
33352
33353         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33354         when needed.
33355         Test case: gnulib-tool --import --with-tests atexit inttypes.
33356         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33357
33358 2009-09-23  Bruno Haible  <bruno@clisp.org>
33359
33360         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33361         subcommand, not in a subshell.
33362
33363 2009-09-22  Eric Blake  <ebb9@byu.net>
33364
33365         unistd: sort replacement declarations
33366         * lib/unistd.in.h: Sort declarations.
33367
33368         open, openat: minor optimization
33369         * lib/open.c (open): If open succeeded, len is non-zero.
33370         * lib/openat.c (rpl_openat): Likewise.
33371
33372         link-follow: ensure correct result
33373         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33374         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33375         distinguish between possible failures.
33376
33377 2009-09-21  Eric Blake  <ebb9@byu.net>
33378
33379         fts: avoid compiler warning
33380         * lib/fts.c (dirent_inode_sort_may_be_useful)
33381         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33382
33383 2009-09-19  Bruno Haible  <bruno@clisp.org>
33384
33385         * lib/progreloc.c (canonicalize_file_name): New declaration.
33386
33387 2009-09-19  Eric Blake  <ebb9@byu.net>
33388
33389         link: fix quoting
33390         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33391
33392         openat: fix openat bugs on Solaris 9
33393         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33394         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33395         * modules/openat (Depends-on): Add open.
33396         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33397         * modules/fcntl-h (Makefile.am): Substitute it.
33398         * lib/fcntl.in.h (openat): Declare replacement.
33399         * doc/posix-functions/openat.texi (openat): Document this.
33400
33401         openat: move fstatat and unlinkat into correct files
33402         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33403         compiled.
33404         * lib/openat.c (fstatat, unlinkat): Move...
33405         * lib/fstatat.c (fstatat): ...into correct files.
33406         * lib/unlinkat.c (unlinkat): Likewise.
33407
33408         openat: fix unlinkat bugs on Solaris 9
33409         * lib/unlinkat.c (unlinkat): New file.
33410         * modules/openat (Depends-on): Add unlink.
33411         (Files): Distribute it.
33412         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33413         trailing slash behavior is broken.
33414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33415         * modules/unistd (Makefile.am): Substitute it.
33416         * lib/unistd.in.h (unlinkat): Declare replacement.
33417         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33418
33419         openat: fix fstatat bugs on Solaris 9
33420         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33421         stat.
33422         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33423
33424         test-unlinkat: enhance test, to expose Solaris 9 bug
33425         * tests/test-unlink.c (main): Factor guts...
33426         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33427         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33428         * tests/test-rmdir.c (main): Adjust caller.
33429         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33430         (unlinker): New helper function.
33431         (rmdirat): Enhance check.
33432         * modules/rmdir-tests (Depends-on): Add stdbool.
33433         * modules/unlink-tests (Depends-on): Likewise.
33434         (Files): Add test-unlink.h.
33435         * modules/openat-tests (Files): Likewise.
33436         (Depends-on): Add unlinkdir.
33437
33438         test-fstatat: new test, to expose Solaris 9 bugs
33439         * tests/test-stat.c (main): Factor guts...
33440         * tests/test-stat.h (test_stat_func): ...into new file.
33441         * tests/test-lstat.c (main): Factor guts...
33442         * tests/test-lstat.h (test_lstat_func): ...into new file.
33443         * tests/test-fstatat.c: New file.
33444         * modules/stat-tests (Files): Add test-stat.h.
33445         * modules/lstat-tests (Files): Add test-lstat.h.
33446         (Depends-on): Add stdbool.
33447         * modules/openat-tests (Depends-on): Add pathmax.
33448         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33449         (Makefile.am): Run new test.
33450
33451         remove: new module, for mingw and Solaris 9 bugs
33452         * modules/remove: New file.
33453         * lib/remove.c: Likewise.
33454         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33456         * modules/stdio (Makefile.am): Use them.
33457         * lib/stdio.in.h (remove): Declare replacement.
33458         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33459         * doc/posix-functions/remove.texi (remove): Likewise.
33460         * modules/remove-tests: New test.
33461         * tests/test-remove.c: Likewise.
33462
33463         unlink: new module, for Solaris 9 bug
33464         * modules/unlink: New file.
33465         * lib/unlink.c: Likewise.
33466         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33468         * modules/unistd (Makefile.am): Use them.
33469         * lib/unistd.in.h (stat): Declare replacement.
33470         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33471         * doc/posix-functions/unlink.texi (unlink): Likewise.
33472         * modules/unlink-tests: New test.
33473         * tests/test-unlink.c: Likewise.
33474
33475         lstat: fix Solaris 9 bug
33476         * lib/lstat.c (lstat): Also check for trailing slash on
33477         non-symlink, non-directories.  Use stat module to simplify logic.
33478         * doc/posix-functions/lstat.texi (lstat): Document it.
33479         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33480         (configure.ac): Check for symlink.
33481         * tests/test-lstat.c (main): Add more tests.
33482
33483         stat: add as dependency to other modules
33484         * modules/chown (Depends-on): Add stat.
33485         * modules/euidaccess (Depends-on): Likewise.
33486         * modules/fchdir (Depends-on): Likewise.
33487         * modules/isdir (Depends-on): Likewise.
33488         * modules/link (Depends-on): Likewise.
33489         * modules/lstat (Depends-on): Likewise.
33490         * modules/mkdir-p (Depends-on): Likewise.
33491         * modules/modechange (Depends-on): Likewise.
33492         * modules/open (Depends-on): Likewise.
33493         * modules/readlink (Depends-on): Likewise.
33494         * modules/same (Depends-on): Likewise.
33495
33496         stat: fix Solaris 9 bug
33497         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33498         slash.
33499         * lib/stat.c (rpl_stat): Work around it.
33500         * doc/posix-functions/stat.texi (stat): Update documentation.
33501
33502         stat: new module, for mingw bug
33503         * modules/stat: New file.
33504         * lib/stat.c: Likewise.
33505         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33507         * modules/sys_stat (Makefile.am): Use them.
33508         * lib/sys_stat.in.h (stat): Declare replacement.
33509         * lib/openat.c (fstatat): Deal with lstat and stat being function
33510         macros.
33511         * modules/openat (Depends-on): Add inline.
33512         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33513         * doc/posix-functions/stat.texi (stat): Likewise.
33514         * modules/stat-tests: New test.
33515         * tests/test-stat.c: Likewise.
33516
33517 2009-09-19  Jim Meyering  <meyering@redhat.com>
33518
33519         syntax-check: detect unnecessary inclusion of canonicalize.h
33520         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33521
33522 2009-09-19  Eric Blake  <ebb9@byu.net>
33523
33524         canonicalize-lgpl: adjust clients to use correct header
33525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33526         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33527         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33528         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33529         * lib/progreloc.c (includes): Likewise.
33530
33531 2009-09-19  Jim Meyering  <meyering@redhat.com>
33532
33533         test-posixtm.c: correct a comment
33534         * tests/test-posixtm.c: Correct first-line comment.
33535         Spotted by Eric Blake.
33536
33537 2009-09-16  Jim Meyering  <meyering@redhat.com>
33538
33539         posixtm-tests: make T const-correct; add a test case
33540         * tests/test-posixtm.c (T): Declare const.
33541         Add a test for -(2^31+1).
33542         Remove useless can-succeed-only-in-2002 test.
33543
33544         posixtm-tests: adjust the sole failing test
33545         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33546         expected output matches what mktime now produces.  Cross-checked via
33547         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33548
33549         posixtm: move #ifdef'd tests into a new module
33550         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33551         * tests/test-posixtm.c: ... this new file.
33552         * modules/posixtm-tests: New module.
33553
33554 2009-09-19  Eric Blake  <ebb9@byu.net>
33555
33556         openat: simplify use of at-func.c
33557         * lib/at-func.c (includes): Include prerequisites here, to
33558         simplify requirements on client files.
33559         * lib/openat-priv.h: Add double-inclusion guard.
33560         * lib/faccessat.c (includes): Simplify.
33561         * lib/fchmodat.c (includes): Likewise.
33562         * lib/fchownat.c (includes): Likewise.
33563         * lib/mkdirat.c (includes): Likewise.
33564         * lib/mkfifoat.c (includes): Likewise.
33565         * lib/symlinkat.c (includes): Likewise.
33566
33567         openat: allow return of fd 0
33568         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33569         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33570         unistd-safer.
33571         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33572         <fcntl.h>; this module does not leak fds.
33573         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33574         must be allowed to return 0, leaving openat_safer to add the
33575         safety.
33576         (openat_permissive): Avoid writing to just-opened fd 2 if
33577         restoring the current directory fails.
33578         * lib/openat-die.c (openat_restore_fail): Add comment.
33579         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33580         (save_cwd): Guarantee safe fd, but without use of open_safer.
33581         * tests/test-openat.c: New test.
33582         * modules/openat-tests (Files, Makefile.am): Distribute and build
33583         new file.
33584
33585         relocatable-prog-wrapper: fix build
33586         * modules/relocatable-prog-wrapper (Files): Update name of
33587         canonicalize m4 file, broken on 2009-09-17.
33588         Reported by emad hajjar <aleppos@hotmail.com>.
33589
33590 2009-09-19  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33593         * lib/safe-alloc.c: Likewise.
33594         Reported by Ian Beckwith <ianb@erislabs.net>.
33595
33596 2009-09-18  Bruno Haible  <bruno@clisp.org>
33597
33598         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33599         Reported by <erobles@sensacd.com.mx>.
33600
33601 2009-09-17  Eric Blake  <ebb9@byu.net>
33602
33603         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33604         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33605         slashes when checking if last component is missing.
33606         * tests/test-canonicalize.c (main): Test this.
33607
33608         canonicalize, canonicalize-lgpl: honor // if distinct from /
33609         * modules/canonicalize (Files): Add double-slash-root.m4.
33610         * modules/canonicalize-lgpl (Files): Likewise.
33611         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33612         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33613         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33614         fallback definition.
33615         (canonicalize_filename_mode): Use it to protect //.
33616         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33617         (__realpath): Likewise.
33618         * tests/test-canonicalize.c (main): Test this.
33619         * tests/test-canonicalize-lgpl.c (main): Likewise.
33620         * modules/canonicalize-tests (Depends-on): Add same-inode.
33621         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33622
33623         canonicalize-lgpl: fix glibc bug with trailing slash
33624         * m4/canonicalize-lgpl.m4: Move contents...
33625         * m4/canonicalize.m4: ...here.
33626         (gl_CANONICALIZE_LGPL): Factor realpath check...
33627         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33628         glibc 2.3.5 bug, fixed 2005-04-27.
33629         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33630         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33631         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33632         * modules/canonicalize-lgpl (Files): Manage file rename.
33633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33634         * modules/stdlib (Makefile.am): Substitute witness.
33635         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33636         is needed.
33637         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33638         replacement is required.
33639         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33640         * doc/glibc-functions/canonicalize_file_name.texi
33641         (canonicalize_file_name): Document this.
33642         * doc/posix-functions/realpath.texi (realpath): Likewise.
33643
33644         canonicalize-lgpl: reject non-directory with trailing slash
33645         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33646         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33647         catches failures in glibc 2.3.5.
33648         * tests/test-canonicalize.c (main): Likewise.
33649
33650         canonicalize-lgpl: use native realpath if it works
33651         * lib/canonicalize-lgpl.c (realpath): Guard with
33652         FUNC_REALPATH_WORKS.
33653         * lib/stdlib.in.h (realpath): Make declaration optional based on
33654         HAVE_REALPATH.
33655         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33656         native realpath works.
33657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33658         * modules/stdlib (Makefile.am): Substitute witness.
33659
33660         canonicalize, canonicalize-lgpl: use <stdlib.h>
33661         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33662         (Include): Mention <stdlib.h>.
33663         (configure.ac): Mention functions we provide.
33664         * modules/canonicalize (configure.ac): Likewise.
33665         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33666         realpath if canonicalize_file_name is missing.
33667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33668         * modules/stdlib (Makefile.am): Substitute witnesses.
33669         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33670         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33671         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33672         * NEWS: Document this.
33673         * doc/glibc-functions/canonicalize_file_name.texi
33674         (canonicalize_file_name): Likewise.
33675         * doc/posix-functions/realpath.texi (realpath): Likewise.
33676         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33677
33678         test-canonicalize: consolidate into single C program
33679         * tests/test-canonicalize.sh: Delete; move setup into...
33680         * tests/test-canonicalize.c (main): ...the program, making it
33681         easier to run in debugger.  Add some tests.
33682         * modules/canonicalize-tests (Files): Remove unused file.
33683         (Depends-on): Add progname.
33684         (configure.ac, Makefile.am): Simplify.
33685
33686         test-canonicalize-lgpl: consolidate into single C program
33687         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33688         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33689         easier to run in debugger.  Add some tests.
33690         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33691         (configure.ac, Makefile.am): Simplify.
33692
33693         canonicalize: avoid resolvepath
33694         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33695         unnecessary checks.
33696         * lib/canonicalize.c (includes): Simplify.
33697         (canonicalize_file_name): Drop resolvepath implementation.
33698         * modules/canonicalize (Depends-on): Drop filenamecat.
33699
33700         canonicalize: don't lose errno
33701         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33702         over calls to free.
33703
33704         canonicalize: simplify errno handling
33705         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33706         assignment.
33707
33708         canonicalize, canonicalize-lgpl: update module dependencies
33709         * modules/canonicalize (Depends-on): Add extensions, lstat,
33710         pathmax, stdlib.
33711         (Files): Drop pathmax.h.
33712         (configure.ac): Adjust macro name.
33713         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33714         lstat, stdlib, sys_stat.
33715         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33716         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33717         extensions.
33718         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33719         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33720         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33721         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33722         declaration, if available.
33723         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33724         we can rely on the readlink module.
33725         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33726         (includes): Use <unistd.h> unconditionally.
33727
33728 2009-09-17  Eric Blake  <ebb9@byu.net>
33729
33730         maint: make Include sections of modules consistent
33731         * modules/alloca: Use only header name; no need to list #include.
33732         * modules/alloca-opt: Likewise.
33733         * modules/arpa_inet: Likewise.
33734         * modules/canon-host: Likewise.
33735         * modules/configmake: Likewise.
33736         * modules/dirent: Likewise.
33737         * modules/eealloc: Likewise.
33738         * modules/environ: Likewise.
33739         * modules/fchdir: Likewise.
33740         * modules/fcntl: Likewise.
33741         * modules/fcntl-h: Likewise.
33742         * modules/gethrxtime: Likewise.
33743         * modules/gettime: Likewise.
33744         * modules/ignore-value: Likewise.
33745         * modules/inet_ntop: Likewise.
33746         * modules/inet_pton: Likewise.
33747         * modules/inttypes: Likewise.
33748         * modules/isnand-nolibm: Likewise.
33749         * modules/isnanf-nolibm: Likewise.
33750         * modules/mbchar: Likewise.
33751         * modules/mbfile: Likewise.
33752         * modules/mbiter: Likewise.
33753         * modules/mbuiter: Likewise.
33754         * modules/netdb: Likewise.
33755         * modules/netinet_in: Likewise.
33756         * modules/nproc: Likewise.
33757         * modules/pagealign_alloc: Likewise.
33758         * modules/poll: Likewise.
33759         * modules/printf-frexp: Likewise.
33760         * modules/pthread: Likewise.
33761         * modules/putenv: Likewise.
33762         * modules/random_r: Likewise.
33763         * modules/relocatable-prog: Likewise.
33764         * modules/search: Likewise.
33765         * modules/select: Likewise.
33766         * modules/selinux-h: Likewise.
33767         * modules/settime: Likewise.
33768         * modules/signal: Likewise.
33769         * modules/size_max: Likewise.
33770         * modules/socklen: Likewise.
33771         * modules/ssize_t: Likewise.
33772         * modules/stdarg: Likewise.
33773         * modules/stdbool: Likewise.
33774         * modules/stddef: Likewise.
33775         * modules/stdint: Likewise.
33776         * modules/stdio: Likewise.
33777         * modules/stdlib: Likewise.
33778         * modules/string: Likewise.
33779         * modules/strings: Likewise.
33780         * modules/sys_file: Likewise.
33781         * modules/sys_ioctl: Likewise.
33782         * modules/sys_select: Likewise.
33783         * modules/sys_socket: Likewise.
33784         * modules/sys_stat: Likewise.
33785         * modules/sys_time: Likewise.
33786         * modules/sys_times: Likewise.
33787         * modules/sys_utsname: Likewise.
33788         * modules/sys_wait: Likewise.
33789         * modules/sysexits: Likewise.
33790         * modules/time: Likewise.
33791         * modules/times: Likewise.
33792         * modules/tmpfile: Likewise.
33793         * modules/trim: Likewise.
33794         * modules/unistd: Likewise.
33795         * modules/wchar: Likewise.
33796         * modules/wctype: Likewise.
33797
33798 2009-09-17  Bruno Haible  <bruno@clisp.org>
33799
33800         Make getdate.y compile on QNX and NetBSD 5 / i386.
33801         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33802         TIME_T_FITS_IN_LONG_INT.
33803         * lib/getdate.y (long_time_t): New type.
33804         (relative_time): Change type of 'seconds' field to long_time_t.
33805         (get_date): Update types of local variables. Check against overflow
33806         during conversion from long_time_t to time_t.
33807         Reported by Matt Kraai <kraai@ftbfs.org>
33808         and Hasso Tepper <hasso@netbsd.org>.
33809
33810 2009-09-17  Bruno Haible  <bruno@clisp.org>
33811
33812         * modules/COPYING: Update copyright years.
33813         * modules/README: Likeiwse.
33814         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33815         Reported by Ian Beckwith <ianb@erislabs.net>.
33816
33817 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33818
33819         * users.txt: Update references for gnuit package.
33820
33821 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33822
33823         * m4/getdelim.m4: Fix typo in copyright line.
33824
33825 2009-09-17  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/atoll.c: Use the standard header with GPL copyright.
33828         * lib/argz.in.h: Likewise.
33829         * lib/glob.c: Likewise.
33830         * lib/glob-libc.h: Likewise.
33831         * lib/random_r.c: Likewise.
33832         * lib/siglist.h: Likewise.
33833         * lib/strsignal.c: Likewise.
33834         Reported by Ian Beckwith <ianb@erislabs.net>.
33835
33836 2009-09-17  Eric Blake  <ebb9@byu.net>
33837
33838         rmdir: ensure correct dependency order
33839         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33840
33841 2009-09-17  Bruno Haible  <bruno@clisp.org>
33842
33843         Disable assertion that fails on NetBSD 5 / i386.
33844         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33845         Reported by Sam Steingold <sds@gnu.org>
33846         and Hasso Tepper <hasso@netbsd.org>.
33847
33848 2009-09-16  Eric Blake  <ebb9@byu.net>
33849
33850         unlinkdir: port to mingw
33851         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33852         on which no one can unlink a directory.
33853
33854         stdlib: sort witness names
33855         * modules/stdlib (Makefile.am): Sort replacements.
33856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33857         * lib/stdlib.in.h: Likewise.
33858
33859         parse-duration-tests: avoid link failure
33860         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33861         LIBINTL.
33862         Reported by Tom G. Christensen.
33863
33864         openat-tests: ensure unlinkat behaves like rmdir
33865         * tests/test-rmdir.c (main): Factor guts...
33866         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33867         * modules/rmdir-tests (Files): Ship new file.
33868         * modules/openat-tests: New test.
33869         * tests/test-unlinkat.c: Likewise.
33870
33871         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33872         * modules/rmdir-errno (Status, Notice): Now obsolete.
33873
33874         rmdir: work around cygwin 1.5.x and mingw bugs
33875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33876         * lib/rmdir.c (rmdir): Work around it.
33877         * modules/rmdir (Status, Notice): No longer obsolete.
33878         (Files): Add dos.m4.
33879         (Depends-on): Add unistd.
33880         (configure.ac): Set witnesses.
33881         (License): Relax to LGPLv2+.
33882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33883         * modules/unistd (Makefile.am): Substitute witnesses.
33884         * lib/unistd.in.h (rmdir): Declare replacement.
33885         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33886         * modules/rmdir-tests: New tests.
33887         * tests/test-rmdir.c: Likewise.
33888
33889 2009-09-15  Eric Blake  <ebb9@byu.net>
33890
33891         fchdir: improve use of replacement functions
33892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33893         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33894         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33895         REPLACE_CLOSEDIR.
33896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33897         * modules/sys_stat (Makefile.am): Substitute correct witness.
33898         * modules/dirent (Makefile.am): Likewise.
33899         * modules/unistd (Makefile.am): Likewise.
33900         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33901         * lib/unistd.in.h (dup): Likewise.
33902         * lib/sys_stat.in.h (fstat): Likewise.
33903
33904         maint: ignore gnulib-tool temp files
33905         * .gitignore: Ignore files created during gnulib-tool --test.
33906
33907 2009-09-13  Jim Meyering  <meyering@redhat.com>
33908
33909         posixtm: don't reject a time that specify "60" as the number of seconds
33910         * lib/posixtm.c (posixtime): The code to reject invalid dates
33911         would also reject a time specified with the .60 suffix.
33912         But POSIX allows that, in order to accommodate leap seconds.
33913         So don't reject it.
33914         (main): Adjust tests accordingly.
33915         * modules/posixtm (Depends-on): Add stpcpy.
33916
33917 2009-09-11  Jim Meyering  <meyering@redhat.com>
33918
33919         announce-gen: include [$release_type] in emitted Subject:
33920         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33921         e.g., [stable] in the emitted Subject: line.
33922
33923 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33924
33925         Remove obsolete macros from several modules.
33926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33927         obsolete Autoconf macros with their modern counterparts.
33928         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33929         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33931         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33933         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33935         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33936         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33937         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33938         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33939         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33940         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33941         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33942         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33944         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33945         * m4/time_r.m4 (gl_TIME_R): Likewise.
33946         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33947         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33948         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33949
33950         Fix copyright header in build-aux scripts.
33951         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33952         recommendation.
33953         * build-aux/ncftpput-ftp: Likewise.
33954         * build-aux/update-copyright: Likewise.
33955
33956 2009-09-09  Eric Blake  <ebb9@byu.net>
33957
33958         test-link: allow Linux choice of errno
33959         * tests/test-link.c (main): Relax test for alternate error.
33960
33961         strndup: fix improper m4 caching
33962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33963         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33964         (gl_PREREQ_STRNDUP): Delete.
33965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33966         * modules/string (Makefile.am): Substitute it.
33967         * lib/string.in.h (strndup): Modernize prototype.
33968
33969         getcwd: port to mingw
33970         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33971         different from the POSIX assumptions made throughout the getcwd
33972         module; fortunately, the mingw getcwd does not need replacement.
33973         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33974         * modules/getcwd-tests: New test.
33975         * tests/test-getcwd.c: Likewise.
33976
33977         link: fix platform bugs
33978         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33979         * lib/link.c (link): Work around them.  Fix related mingw bug.
33980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33981         * modules/unistd (Makefile.am): Substitute it.
33982         * lib/unistd.in.h (link): Declare replacement.
33983         * doc/posix-functions/link.texi (link): Document this.
33984         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33985
33986         test-link: consolidate into single C program, test more cases
33987         * tests/test-link.sh: Delete.
33988         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33989         at least Cygwin and Solaris.
33990         * modules/link-tests (Files): Remove unused file.
33991         (Depends-on): Add errno, sys_stat.
33992         (Makefile.am): Simplify.
33993
33994 2009-09-08  Bruno Haible  <bruno@clisp.org>
33995
33996         Work around towlower, towupper bug on mingw.
33997         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33998         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33999         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34000         * doc/posix-functions/towupper.texi: Likewise.
34001         Reported by Eric Blake.
34002
34003 2009-09-08  Jim Meyering  <meyering@redhat.com>
34004
34005         build: don't try to run autoheader if we don't use it
34006         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34007         is not used in configure.ac.
34008
34009 2009-09-08  Eric Blake  <ebb9@byu.net>
34010
34011         euidaccess: fix compilation error
34012         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34013
34014         rawmemchr: relax license
34015         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34016         okay.
34017         Reported by Jim Meyering.
34018
34019         mkfifoat: new module
34020         * modules/mkfifoat: New file.
34021         * lib/mkfifoat.c: Likewise.
34022         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34023         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34024         * modules/sys_stat (Makefile.am): Use them.
34025         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34026         * MODULES.html.sh (File system functions): Mention module.
34027         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34028         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34029         * modules/mkfifoat-tests: New test.
34030         * tests/test-mkfifoat.c: Likewise.
34031
34032         strchrnul: relax license
34033         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34034         okay.
34035         Reported by Jim Meyering.
34036
34037 2009-09-08  Eric Blake  <ebb9@byu.net>
34038
34039         fstatat: fix compilation on Solaris
34040         * lib/fstatat.c (includes): Add fcntl.h.
34041         Reported by Pádraig Brady.
34042
34043 2009-09-07  Eric Blake  <ebb9@byu.net>
34044
34045         rename: modernize replacement
34046         * modules/rename (Depends-on): Add stdio.
34047         (configure.ac): Declare witness.
34048         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34049         stdio take care of replacement.
34050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34051         * modules/stdio (Makefile.am): Substitute them.
34052         * lib/stdio.in.h (rename): Declare replacement.
34053         * lib/rename.c (includes): Allow cross-compilation to non-windows
34054         machines.
34055         * doc/posix-functions/rename.texi (rename): Improve
34056         documentation.
34057
34058         stdio: sort witness names
34059         * modules/stdio (Makefile.am): Sort replacements.
34060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34061         * lib/stdio.in.h: Likewise.
34062
34063         getcwd: minor cleanups
34064         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34065         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34066
34067         openat: provide more convenience names
34068         * modules/faccessat (configure.ac): Add C witness.
34069         * lib/unistd.in.h (readlinkat): Fix typo.
34070         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34071         convenience wrappers.
34072         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34073         wrappers in syntax checks.
34074
34075 2009-09-06  Eric Blake  <ebb9@byu.net>
34076
34077         doc: fix comments in recent patches
34078         * lib/faccessat.c: Mention correct function.
34079         * lib/fchmodat.c: Likewise.
34080         * lib/fchownat.c: Likewise.
34081         * lib/symlinkat.c: Likewise.
34082         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34083         constants.
34084
34085         faccessat, symlinkat: continue cleanup of previous patch
34086         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34087         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34088         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34090         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34091         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34092         set.
34093
34094 2009-09-06  Bruno Haible  <bruno@clisp.org>
34095
34096         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34097         (fstatat): Declare if GNULIB_FSTATAT is set.
34098         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34099         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34100         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34101         * modules/fcntl-h (Files): Remove m4/openat.m4.
34102         * modules/sys_stat (Files): Remove m4/openat.m4.
34103         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34104         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34105         * modules/unistd (Files): Remove m4/openat.m4.
34106         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34107         GNULIB_OPENAT.
34108         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34109         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34111         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34112         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34113         gl_OPENAT_DEFAULTS.
34114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34115         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34116         Don't require gl_OPENAT_DEFAULTS.
34117         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34118         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34119         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34120         (gl_OPENAT_DEFAULTS): Remove macro.
34121
34122 2009-09-06  Bruno Haible  <bruno@clisp.org>
34123
34124         * modules/openat (configure.ac): Remove unneeded witness.
34125
34126 2009-09-06  Bruno Haible  <bruno@clisp.org>
34127
34128         Set errno to ENOSYS when a function is entirely unsupported.
34129         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34130         EOPNOTSUPP.
34131         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34132         * modules/chown (Depends-on): Remove errno.
34133
34134 2009-09-06  Bruno Haible  <bruno@clisp.org>
34135
34136         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34137
34138 2009-09-06  Bruno Haible  <bruno@clisp.org>
34139
34140         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34141
34142 2009-09-06  Ben Pfaff  <blp@gnu.org>
34143             Bruno Haible  <bruno@clisp.org>
34144
34145         Work around a glibc bug in strtok_r.
34146         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34147         Undefine if UNDEFINE_STRTOK_R is set.
34148         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34150         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34152         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34153         UNDEFINE_STRTOK_R.
34154         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34155
34156 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34157
34158         exclude: minor fix
34159         * lib/exclude.c: Include wctype.h
34160
34161 2009-09-06  Akim Demaille  <demaille@gostai.com>
34162
34163         bootstrap: improve error message
34164         * build-aux/bootstrap (find_tool): Upon failure, report the list
34165         of candidates.
34166         Honor the initial value of the envvar.
34167
34168 2009-09-05  Eric Blake  <ebb9@byu.net>
34169
34170         symlinkat: new module
34171         * modules/symlinkat: New file.
34172         * lib/symlinkat.c: Likewise.
34173         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34175         * modules/unistd (Makefile.am): Use them.
34176         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34177         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34178         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34179         * MODULES.html.sh (File system functions): Mention module.
34180         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34181         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34182         * modules/symlinkat-tests: New test.
34183         * tests/test-symlinkat.c: Likewise.
34184
34185         test-openat-safer: add more checks
34186         * tests/test-openat-safer.c (main): Check more code paths.
34187
34188 2009-09-05  Jim Meyering  <meyering@redhat.com>
34189
34190         syntax-check: detect unnecessary inclusion of openat.h
34191         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34192
34193 2009-09-05  Bruno Haible  <bruno@clisp.org>
34194
34195         Support towlower, towupper.
34196         * doc/posix-functions/towlower.texi: Mention module wctype.
34197         * doc/posix-functions/towupper.texi: Likewise.
34198         * lib/wctype.in.h (towlower, towupper): New functions.
34199         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34200         (ASSERT): New macro.
34201         (e): New variable.
34202         (main): Test also towlower, towupper. Test WEOF argument.
34203         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34204
34205 2009-09-05  Bruno Haible  <bruno@clisp.org>
34206
34207         Fix conversion behaviour when the input is invalid.
34208         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34209         mark occurring in first pass of indirect conversion.
34210         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34211         input.
34212         Found by clang's static analyzer.
34213
34214 2009-09-05  Bruno Haible  <bruno@clisp.org>
34215
34216         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34217         where direct conversion is possible.
34218
34219 2009-09-04  Eric Blake  <ebb9@byu.net>
34220
34221         openat: fail with ENOENT on empty name
34222         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34223         buffer.
34224
34225         link-follow: fix logic bug in prior patch
34226         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34227         reversed sense of yes and no in prior patch.  Avoid confusing
34228         compilation failure with desired semantics.
34229
34230         link-follow: accomodate mingw and cross-compilation
34231         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34232         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34233         cross-compilation results to -1, to make linkat easier to
34234         implement when cross-compiling.  Trivially support mingw.
34235         * modules/link-follow (configure.ac): Call new name.
34236         * NEWS: Mention this.
34237
34238 2009-09-03  Eric Blake  <ebb9@byu.net>
34239
34240         faccessat: compile replacement
34241         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34242         needed.
34243
34244         fts: fix compilation error
34245         * lib/fts.c (includes): Re-add "openat.h", for
34246         openat_needs_fchdir.
34247
34248         faccessat: new module
34249         * modules/faccessat: New file.
34250         * lib/faccessat.c: Likewise.
34251         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34253         * modules/unistd (Makefile.am): Use it.
34254         * lib/unistd.in.h (faccessat): Declare it.
34255         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34256         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34257         * MODULES.html.sh (File system functions): Mention it.
34258         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34259         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34260
34261         euidaccess: prefer POSIX over non-standard implementation
34262         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34263         * lib/euidaccess.c (euidaccess): Use it if available.
34264
34265         openat: make template easier to use
34266         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34267         AT_FUNC_F2 to be undefined.
34268         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34269         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34270         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34271         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34272         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34273         Likewise.
34274         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34275         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34276         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34277         Likewise.
34278
34279         openat: declare in POSIX headers
34280         * NEWS: Mention this.
34281         * modules/openat (configure.ac): Declare witnesses.
34282         (Depends-on): Add fcntl-h, sys_stat, unistd.
34283         (Include): Mention correct headers.
34284         * modules/fcntl-h (Depends-on): Add link-warning.
34285         (Files): Add openat.m4.
34286         (Makefile.am): Substitute witnesses.
34287         * modules/sys_stat (Files, Makefile.am): Likewise.
34288         * modules/unistd (Files, Makefile.am): Likewise.
34289         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34290         (gl_OPENAT_DEFAULTS): New macro.
34291         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34294         (SYS_STAT_H): Remove unused variable.
34295         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34296         * lib/fcntl--.h (includes): Remove unneeded header.
34297         * lib/openat-safer.c (includes): Likewise.
34298         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34299         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34300         appropriate headers.
34301         (__OPENAT_PREFIX): Delete.
34302         * lib/fcntl.in.h (openat): Provide declaration.
34303         (AT_FDCWD): Fix Solaris bug.
34304         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34305         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34306         * lib/fchmodat.c (includes):  Adjust to find declaration.
34307         * lib/fchownat.c (includes): Likewise.
34308         * lib/mkdirat.c (includes): Likewise.
34309         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34310         still visible.
34311
34312 2009-09-02  Eric Blake  <ebb9@byu.net>
34313
34314         errno: use consistently
34315         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34316         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34317         * lib/canonicalize.c (ELOOP): Likewise.
34318         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34319         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34320         * lib/lchown.c (EOPNOTSUPP): Likewise.
34321         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34322         * lib/savewd.c (ESTALE): Likewise.
34323         * lib/settime.c (ENOSYS): Likewise.
34324         * lib/utimens.c (ENOSYS): Likewise.
34325         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34326         * lib/chdir-safer.c (ELOOP): Likewise.
34327         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34328         * modules/c-stack (Depends-on): Add errno.
34329         * modules/canonicalize (Depends-on): Likewise.
34330         * modules/chdir-safer (Depends-on): Likewise.
34331         * modules/fdopendir (Depends-on): Likewise.
34332         * modules/inet_ntop (Depends-on): Likewise.
34333         * modules/inet_pton (Depends-on): Likewise.
34334         * modules/lchown (Depends-on): Likewise.
34335         * modules/openat (Depends-on): Likewise.
34336         * modules/savewd (Depends-on): Likewise.
34337         * modules/settime (Depends-on): Likewise.
34338         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34339
34340         fts: avoid leaking fds
34341         * modules/fts (Depends-on): Add cloexec.
34342         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34343         flag.
34344
34345         fts: make directory fds more robust
34346         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34347         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34348
34349         backupfile, chdir-long, fts, savedir: make safer
34350         * lib/backupfile.c (includes): Use "dirent--.h", since
34351         numbered_backup can write to stderr during readdir.
34352         * lib/savedir.c (includes): Likewise.
34353         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34354         emulation can write to stderr on failure.
34355         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34356         * lib/getcwd.c: Document why opendir_safer is unused.
34357         * lib/glob.c: Likewise.
34358         * lib/scandir.c: Likewise.
34359         * lib/openat-proc.c: Likewise, for open_safer.
34360         * modules/backupfile (Depends-on): Add dirent-safer.
34361         * modules/savedir (Depends-on): Likewise.
34362         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34363         * modules/chdir-long (Depends-on): Add openat-safer.
34364
34365         openat-safer: new module
34366         * modules/openat-safer: New file.
34367         * lib/openat-safer.c: Likewise.
34368         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34369         * lib/fcntl-safer.h (openat_safer): Declare.
34370         * lib/fcntl--.h (openat): Override.
34371         * MODULES.html.sh (File descriptor based I/O): Mention it.
34372         * lib/openat.h: Add double-inclusion guards.
34373         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34374         "fcntl--.h", so we can implement openat.
34375         * modules/openat-safer-tests: New test.
34376         * tests/test-openat-safer.c: New file.
34377
34378         dirent-safer: new module
34379         * modules/dirent-safer: New file.
34380         * lib/dirent--.h: Likewise.
34381         * lib/dirent-safer.h: Likewise.
34382         * lib/opendir-safer.c: Likewise.
34383         * m4/dirent-safer.m4: Likewise.
34384         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34385         * modules/dirent-safer-tests: New test.
34386         * tests/test-dirent-safer.c: New file.
34387         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34388
34389         fdopendir: optimize on mingw
34390         * lib/unistd.in.h (_gl_directory_name): New prototype.
34391         * lib/fchdir.c (_gl_directory_name): Implement it.
34392         (fchdir): Use it to simplify implementation.
34393         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34394         fchdir, when available, to avoid calling [f]chdir().
34395
34396         fdopendir: split into its own module
34397         * lib/openat.c (fdopendir): Move...
34398         * lib/fdopendir.c: ...into new file.
34399         * modules/fdopendir: New module.
34400         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34401         * modules/openat (Depends-on): Add fdopendir.
34402         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34403         fdopendir here.
34404         * modules/savedir (Depends-on): Only need fdopendir, not full
34405         openat.
34406         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34407         * lib/openat.h (fdopendir): Drop prototype.
34408         * lib/dirent.in.h (fdopendir): Provide prototype.
34409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34410         * modules/dirent (Makefile.am): Substitute them.
34411         * MODULES.html.sh (File system functions): Mention it.
34412         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34413         * modules/fdopendir-tests: New file.
34414         * tests/test-fdopendir.c: Likewise.
34415
34416         fchdir: use more consistent macro convention
34417         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34418         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34419         REPLACE_FCHDIR, rather than relying on config.h macros.
34420         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34421         inside a single make-time REPLACE_FCHDIR block, rather than using
34422         the config.h FCHDIR_REPLACEMENT.
34423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34424         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34425         Manage fstat replacement.
34426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34427         REPLACE_FCHDIR.
34428         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34429         (Makefile.am): Substitute REPLACE_FCHDIR.
34430         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34431         FCHDIR_REPLACEMENT.
34432         * lib/dup-safer.c (dup_safer): Likewise.
34433         * lib/dup2.c (rpl_dup2): Likewise.
34434         * lib/dup3.c (rpl_dup3): Likewise.
34435         * lib/open.c (rpl_open): Likewise.
34436
34437         fchdir: simplify error handling, and support dup3
34438         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34439         stdbool, malloc-posix, realloc-posix.
34440         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34441         (ensure_dirs_slot): Return false on allocation failure.
34442         (rpl_dup2): Delete.
34443         (_gl_register_dup): New function.
34444         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34445         (_gl_register_fd): Close fd on allocation failure.
34446         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34447         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34448         prototype.
34449         (rpl_dup2_fchdir): Delete prototype.
34450         * lib/open.c (open): Update caller.
34451         * lib/dup2.c (dup2): Track fchdir metadata.
34452         * lib/dup3.c (dup3): Likewise.
34453         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34455
34456 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34457
34458         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34459         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34460         don't pass arguments to AC_OUTPUT.
34461
34462 2009-09-02  Bruno Haible  <bruno@clisp.org>
34463
34464         * modules/mkdtemp (License): Relicense under LGPLv2+.
34465         Reported by Paolo Bonzini.
34466
34467 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34468
34469         Replace uses of obsolete autoconf macros in Jim's modules.
34470         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34471         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34472         can evoke a warning from autoconf when run with -Wobsolete
34473         enabled.  They were declared obsolete for good reasons (see
34474         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34475         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34476         should not continue using the deprecated macros.
34477         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34478         obsolete Autoconf macros with modern counterparts.
34479         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34480         * m4/dos.m4 (gl_AC_DOS): Likewise.
34481         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34483         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34484         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34485         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34486         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34487         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34488         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34489         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34490         Likewise.
34491         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34492         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34493         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34494         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34495         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34496         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34497
34498 2009-09-01  Eric Blake  <ebb9@byu.net>
34499
34500         fchdir: fix off-by-one bug in previous patch
34501         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34502         (_gl_unregister_fd): Delete useless if.
34503
34504 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34505
34506         maint.mk: sort the list of syntax-check rules
34507         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34508         easier to get a sense of progress when the rules are run sequentially
34509         and take a long time.
34510
34511 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34512
34513         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34514         * modules/netinet_in: Likewise.
34515         * modules/sys_file: Likewise.
34516         * modules/sys_ioctl: Likewise.
34517         * modules/sys_select: Likewise.
34518         * modules/sys_socket: Likewise.
34519         * modules/sys_stat: Likewise.
34520         * modules/sys_time: Likewise.
34521         * modules/sys_times: Likewise.
34522         * modules/sys_utsname: Likewise.
34523         * modules/sys_wait: Likewise.
34524
34525 2009-09-01  Jim Meyering  <meyering@redhat.com>
34526
34527         fts: help ensure that return values are not ignored
34528         * lib/fts_.h (__GNUC_PREREQ): Define.
34529         (__attribute_warn_unused_result__): Define.
34530         (fts_children, fts_close, fts_open, fts_read): Declare with
34531         __attribute_warn_unused_result__.
34532
34533         fts: fts_close now fails also when closing a dir file descriptor fails
34534         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34535         and propagate to caller, along with errno.
34536
34537         announce-gen: correct formatting in --help output
34538         * build-aux/announce-gen (usage): Move the one-line description in
34539         --help output "up", to where it belongs, just after Usage:.
34540
34541 2009-08-31  Eric Blake  <ebb9@byu.net>
34542
34543         fchdir: port to mingw
34544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34545         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34546         opened, then use a substitute.
34547         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34548         replacement.
34549         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34550         (_gl_register_fd): No need to check stat if open already filters
34551         all directories.
34552         (fchdir): Fix error condition to match POSIX.
34553         * modules/fchdir (Depends-on): Add sys_stat.
34554         * doc/posix-functions/open.texi (open): Document the limitation.
34555         * modules/fchdir-tests: New file.
34556         * tests/test-fchdir.c: Likewise.
34557
34558         canonicalize: allow cross-testing from cygwin to mingw
34559         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34560         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34561         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34562         Likewise.
34563         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34564         target does not support symlinks.
34565         * tests/test-canonicalize-lgpl.sh: Likewise.
34566
34567         chown: avoid compilation warning on mingw
34568         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34569         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34570         mingw.
34571         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34572         * modules/chown (Depends-on): Add errno.
34573
34574 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34575
34576         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34577         command.
34578
34579 2009-08-31  Jim Meyering  <meyering@redhat.com>
34580
34581         canonicalize: remove useless initialization
34582         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34583         initialization of local, "end".
34584
34585 2009-08-30  Bruno Haible  <bruno@clisp.org>
34586
34587         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34588         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34589         ENOSYS.
34590
34591 2009-08-30  Bruno Haible  <bruno@clisp.org>
34592
34593         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34594         /usr/xpg4/bin/tr when it exists.
34595         * tests/test-pipe-filter-gi1.sh: Likewise.
34596
34597 2009-08-30  Bruno Haible  <bruno@clisp.org>
34598
34599         Work around deficient /usr/bin/id program on Solaris.
34600         * tests/test-file-has-acl.sh (ID): New variable.
34601         * tests/test-set-mode-acl.sh (ID): Likewise.
34602         * tests/test-copy-acl.sh (ID): Likewise.
34603         * tests/test-copy-file.sh (ID): Likewise.
34604
34605 2009-08-30  Bruno Haible  <bruno@clisp.org>
34606
34607         New module 'xstriconveh'.
34608         * lib/xstriconveh.h: New file.
34609         * lib/xstriconveh.c: New file.
34610         * modules/xstriconveh: New file.
34611
34612 2009-08-30  Bruno Haible  <bruno@clisp.org>
34613
34614         Make it easier to use mem_cd_iconveh.
34615         * lib/striconveh.h (iconveh_t): New type.
34616         (iconveh_open, iconveh_close): New declarations.
34617         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34618         with a single 'const iconveh_t *' argument.
34619         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34620         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34621         with a single 'const iconveh_t *' argument.
34622         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34623         * tests/test-striconveh.c (main): Update.
34624         * NEWS: Mention the change.
34625
34626 2009-08-30  Bruno Haible  <bruno@clisp.org>
34627
34628         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34629         problem.
34630
34631 2009-08-30  Bruno Haible  <bruno@clisp.org>
34632
34633         Work around iconv_open problem on Solaris.
34634         * lib/iconv_open-solaris.gperf: New file.
34635         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34637         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34638         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34639         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34640         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34641
34642 2009-08-29  Jim Meyering  <meyering@redhat.com>
34643
34644         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34645         * top/maint.mk (cvs-check): Remove target; it was just an alias
34646         to the better-named vc-diff-check.
34647         (maintainer-distcheck): Remove rule.  It was used only from
34648         the (alpha/beta/major) target, and all of its commands but one
34649         were coreutils-specific.
34650         (vc-dist): Remove rule.
34651         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34652         Run vc-diff-check, not vc-dist.
34653         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34654
34655 2009-08-27  Bruno Haible  <bruno@clisp.org>
34656
34657         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34658         of 0.
34659
34660 2009-08-27  Bruno Haible  <bruno@clisp.org>
34661
34662         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34663         compilers.
34664         * doc/func.texi: Document the SunPRO C bug.
34665
34666 2009-08-27  Bruno Haible  <bruno@clisp.org>
34667
34668         Fix link error on Solaris.
34669         * tests/test-parse-duration.c (xstrdup): Remove function.
34670
34671 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34672
34673         ignore-value: handle pointer types, too
34674         * lib/ignore-value.h (__attribute__): Remove definition.
34675         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34676         of a more concise and more-often effective "(void) i" statement.
34677         (ignore_ptr): New function to suppress warnings from functions that
34678         return pointers, and to make it explicit that one function doesn't
34679         handle all cases.
34680
34681 2009-08-25  Bruno Haible  <bruno@clisp.org>
34682
34683         dup2: work around a Linux bug.
34684         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34685         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34686         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34687         Reported by Simon Josefsson.
34688
34689 2009-08-25  Jim Meyering  <meyering@redhat.com>
34690
34691         libguestfs uses gnulib
34692         * users.txt: Add libguestfs.
34693
34694 2009-08-24  Eric Blake  <ebb9@byu.net>
34695
34696         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34697         * lib/pipe2.c (includes): Add binary-io.h.
34698         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34699
34700 2009-08-24  Bruno Haible  <bruno@clisp.org>
34701
34702         Tolerate declared but missing accept4 syscall.
34703         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34704         available.
34705         * lib/sys_socket.in.h (accept4): If the function is already present,
34706         override it.
34707         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34708         * modules/accept4 (Makefile.am): Compile accept4.c always.
34709         Reported by Paolo Bonzini and Eric Blake.
34710
34711 2009-08-23  Bruno Haible  <bruno@clisp.org>
34712
34713         New module 'accept4'.
34714         * lib/sys_socket.in.h (accept4): New declaration.
34715         * lib/accept4.c: New file.
34716         * m4/accept4.m4: New file.
34717         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34718         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34719         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34720         HAVE_ACCEPT4.
34721         * modules/accept4: New file.
34722         * doc/glibc-functions/accept4.texi: Mention the new module.
34723
34724 2009-08-24  Jim Meyering  <meyering@redhat.com>
34725
34726         progname: also set global program_invocation_name, when possible
34727         Before this change, a libtool-enabled program that calls glibc's
34728         error function would report the program name as
34729         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34730         * modules/progname (configure.ac): Check for a declaration of
34731         program_invocation_name.
34732         * lib/progname.c:  Include <errno.h>.
34733         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34734         Set program_invocation_name.
34735
34736 2009-08-23  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/dup3.c: Include <string.h>.
34739
34740 2009-08-23  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34743         * lib/pipe2.c (pipe2): Likewise.
34744         Suggested by Eric Blake.
34745
34746 2009-08-23  Bruno Haible  <bruno@clisp.org>
34747
34748         Tolerate declared but missing dup3 syscall.
34749         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34750         * lib/unistd.in.h (dup3): If the function is already present,
34751         override it.
34752         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34753         * modules/dup3 (Makefile.am): Compile dup3.c always.
34754         Reported by Paolo Bonzini.
34755
34756 2009-08-23  Bruno Haible  <bruno@clisp.org>
34757
34758         Tolerate declared but missing pipe2 syscall.
34759         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34760         available.
34761         * lib/unistd.in.h (pipe2): If the function is already present,
34762         override it.
34763         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34764         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34765         Reported by Paolo Bonzini.
34766
34767 2009-08-23  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/pipe2.c (pipe2): Move #ifs inside function.
34770
34771 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34772
34773         quotearg: document limitations of quote_these_too
34774         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34775         those limitations are created.
34776         * lib/quotearg.h (set_char_quoting): Document that digits and
34777         letters that are special after backslash are not permitted.
34778         (quotearg_char): Cross-reference set_char_quoting documentation.
34779
34780 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34781
34782         quotearg: implement custom_quoting_style
34783         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34784         right_quote fields.
34785         (set_custom_quoting): New public function.
34786         (quotearg_buffer_restyled): Add left_quote and right_quote
34787         arguments, handle them very much like locale quoting, and update
34788         all uses.
34789         (quotearg_n_custom): New public function.
34790         (quotearg_n_custom_mem): New public function.
34791         (quotearg_custom): New public function.
34792         (quotearg_custom_mem): New public function.
34793         * lib/quotearg.h: Prototype and document new public functions.
34794         (enum quoting_style): For escape_quoting_style and
34795         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34796         ignored even though they're otherwise like c_quoting_style.
34797         Add custom_quoting_style member and document with comparison to
34798         clocale_quoting_style.
34799         * tests/test-quotearg.c (custom_quotes): New array.
34800         (custom_results): New array.
34801         (main): Extend to test custom quoting.
34802
34803 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34804
34805         quotearg: fix right quote escaping when it's in quote_these_too
34806         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34807         quote, be sure to prepend only one backslash.
34808         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34809         (main): Test it.
34810
34811 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34812
34813         quotearg-tests: test escaping of embedded locale quotes
34814         * tests/test-quotearg.c (struct result_strings): Add member for
34815         new input.
34816         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34817         (inputs): Add new input.
34818         (results_g): Add expected results.
34819         (flag_results): Likewise.
34820         (locale_results): Likewise.
34821         (compare_strings): Check those.
34822
34823 2009-08-23  Bruno Haible  <bruno@clisp.org>
34824
34825         Tests for module 'dup3'.
34826         * modules/dup3-tests: New file.
34827         * tests/test-dup3.c: New file.
34828
34829         New module 'dup3'.
34830         * lib/unistd.in.h (dup3): New declaration.
34831         * lib/dup3.c: New file.
34832         * m4/dup3.m4: New file.
34833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34834         HAVE_DUP3.
34835         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34836         * modules/dup3: New file.
34837         * doc/glibc-functions/dup3.texi: Mention the new module.
34838
34839 2009-08-23  Bruno Haible  <bruno@clisp.org>
34840
34841         Tweak the dup2 test.
34842         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34843         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34844         the test file is still empty. Fix argument order of lseek.
34845
34846 2009-08-23  Bruno Haible  <bruno@clisp.org>
34847
34848         Avoid test link errors when the modules getopt-gnu, gettext are used.
34849         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34851
34852 2009-08-23  Bruno Haible  <bruno@clisp.org>
34853
34854         Fix getdtablesize() on mingw.
34855         * lib/getdtablesize.c (getdtablesize): Implement differently.
34856         * lib/unistd.in.h (getdtablesize): Improve comment.
34857
34858 2009-08-23  Bruno Haible  <bruno@clisp.org>
34859
34860         New module 'mkostemp'.
34861         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34862         * lib/stdlib.in.h (mksotemp): New declaration.
34863         * lib/mkostemp.c: New file, from glibc with modifications.
34864         * lib/tempname.h (GT_FILE): Remove outdated comment.
34865         (gen_tempname): Add flags argument.
34866         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34867         (__GT_FILE): Map to 1.
34868         (small_open, large_open): Remove macros.
34869         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34870         * lib/mkstemp.c (mkstemp): Update.
34871         * lib/mkdtemp.c (mkdtemp): Likewise.
34872         * m4/mkostemp.m4: New file.
34873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34874         HAVE_MKOSTEMP.
34875         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34876         HAVE_MKOSTEMP.
34877         * modules/mkostemp: New file, based on modules/mkstemp.
34878         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34879         * NEWS: Mention the change.
34880
34881 2009-08-23  Bruno Haible  <bruno@clisp.org>
34882
34883         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34884         Reported by Eric Blake.
34885
34886 2009-08-23  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34889         Reported by Eric Blake.
34890
34891 2009-08-23  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34894         * modules/pipe2 (Depends-on): Likewise.
34895
34896 2009-08-23  Eric Blake  <ebb9@byu.net>
34897
34898         fcntl-h: add O_TTY_INIT support
34899         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34900         * tests/test-fcntl-h.c (o): Test it.
34901         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34902
34903         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34904         * modules/fcntl: Move <fcntl.h> header replacement...
34905         * modules/fcntl-h: ...to new name, so as not to collide with
34906         like-named function.
34907         * tests/test-fcntl.c: Rename...
34908         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34909         * modules/fcntl-tests: Rename...
34910         * modules/fcntl-h-tests: ...to this.  Update test file name.
34911         * modules/chdir-long (Depends-on): Update clients.
34912         * modules/chdir-safer (Depends-on): Likewise.
34913         * modules/fcntl-safer (Depends-on): Likewise.
34914         * modules/fts (Depends-on): Likewise.
34915         * modules/mkancesdirs (Depends-on): Likewise.
34916         * modules/mkdir-p (Depends-on): Likewise.
34917         * modules/open (Depends-on): Likewise.
34918         * modules/savewd (Depends-on): Likewise.
34919         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34920         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34921
34922 2009-08-22  Bruno Haible  <bruno@clisp.org>
34923
34924         * modules/binary-io (License): Relicense under LGPL.
34925         * modules/pipe2 (License): Likewise.
34926
34927 2009-08-22  Bruno Haible  <bruno@clisp.org>
34928
34929         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34930         return value.
34931         * lib/pipe-filter-gi.c (filter_init): Likewise.
34932         Reported by Eric Blake.
34933
34934 2009-08-22  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34937         * modules/pipe (Depends-on): Add pipe2.
34938
34939 2009-08-22  Bruno Haible  <bruno@clisp.org>
34940
34941         Tests for module 'pipe2'.
34942         * modules/pipe2-tests: New file.
34943         * tests/test-pipe2.c: New file.
34944
34945         New module 'pipe2'.
34946         * lib/unistd.in.h (pipe2): New declaration.
34947         * lib/pipe2.c: New file.
34948         * m4/pipe2.m4: New file.
34949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34950         HAVE_PIPE2.
34951         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34952         * modules/pipe2: New file.
34953         * doc/glibc-functions/pipe2.texi: Mention the new module.
34954
34955 2009-08-22  Bruno Haible  <bruno@clisp.org>
34956
34957         Reference some new glibc functions.
34958         * doc/glibc-functions/accept4.texi: New file.
34959         * doc/glibc-functions/dup3.texi: New file.
34960         * doc/glibc-functions/mkostemp.texi: New file.
34961         * doc/glibc-functions/pipe2.texi: New file.
34962         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34963         (Glibc sys/socket.h): Refer to accept4.
34964         (Glibc unistd.h): Refer to dup3, pipe2.
34965         Reported by Eric Blake.
34966
34967 2009-08-22  Jim Meyering  <meyering@redhat.com>
34968             Bruno Haible  <bruno@clisp.org>
34969
34970         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34971         This makes it so packages using automake-1.11's silent-rules option
34972         can print e.g., a single "GEN    configmake.h" line, rather than
34973         the 30+ statements that perform the job.  If you want to see the
34974         actual commands, you can still run "make V=1".
34975         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34976         so that make output is abbreviated when those variables are defined
34977         appropriately.
34978         * modules/argz: Likewise.
34979         * modules/arpa_inet: Likewise.
34980         * modules/byteswap: Likewise.
34981         * modules/configmake: Likewise.
34982         * modules/dirent: Likewise.
34983         * modules/errno: Likewise.
34984         * modules/fcntl: Likewise.
34985         * modules/float: Likewise.
34986         * modules/fnmatch: Likewise.
34987         * modules/getopt-posix: Likewise.
34988         * modules/glob: Likewise.
34989         * modules/iconv_open: Likewise.
34990         * modules/inttypes: Likewise.
34991         * modules/localcharset: Likewise.
34992         * modules/locale: Likewise.
34993         * modules/math: Likewise.
34994         * modules/netdb: Likewise.
34995         * modules/netinet_in: Likewise.
34996         * modules/poll: Likewise.
34997         * modules/posix_spawnp-tests: Likewise.
34998         * modules/sched: Likewise.
34999         * modules/search: Likewise.
35000         * modules/selinux-h: Likewise.
35001         * modules/signal: Likewise.
35002         * modules/spawn: Likewise.
35003         * modules/stdarg: Likewise.
35004         * modules/stdbool: Likewise.
35005         * modules/stddef: Likewise.
35006         * modules/stdint: Likewise.
35007         * modules/stdio: Likewise.
35008         * modules/stdlib: Likewise.
35009         * modules/string: Likewise.
35010         * modules/strings: Likewise.
35011         * modules/sys_file: Likewise.
35012         * modules/sys_ioctl: Likewise.
35013         * modules/sys_select: Likewise.
35014         * modules/sys_socket: Likewise.
35015         * modules/sys_stat: Likewise.
35016         * modules/sys_time: Likewise.
35017         * modules/sys_times: Likewise.
35018         * modules/sys_utsname: Likewise.
35019         * modules/sys_wait: Likewise.
35020         * modules/sysexits: Likewise.
35021         * modules/time: Likewise.
35022         * modules/unistd: Likewise.
35023         * modules/wchar: Likewise.
35024         * modules/wctype: Likewise.
35025
35026 2009-08-22  Jim Meyering  <meyering@redhat.com>
35027
35028         announce-gen: detect write failure
35029         * build-aux/announce-gen: Add Coda at end.
35030         Remove equivalent-but-more-verbose block at top.
35031
35032 2009-08-19  Akim Demaille  <demaille@gostai.com>
35033
35034         bootstrap: --help to stdout.
35035         * bootstrap (usage): Don't send --help to stderr.
35036         Use a here doc instead of a long string.
35037
35038 2009-08-21  Eric Blake  <ebb9@byu.net>
35039
35040         test-popen-safer: split from test-popen
35041         * tests/test-popen.c (main): Move...
35042         * tests/test-popen.h: ...into new file.
35043         * tests/test-popen-safer2.c: New file.
35044         * modules/popen-tests (Files): Add test-popen.h.
35045         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35046         Suggested by Bruno Haible.
35047
35048         test-fcntl-safer: split from test-open
35049         * tests/test-open.c (main): Move...
35050         * tests/test-open.h: ...into new file.
35051         * tests/test-fcntl-safer.c: New file.
35052         * modules/open-tests (Files): Add test-open.h.
35053         * modules/fcntl-safer-tests: New file.
35054         Suggested by Bruno Haible.
35055
35056         test-fopen-safer: split from test-fopen
35057         * tests/test-fopen.c (main): Move...
35058         * tests/test-fopen.h: ...into new file.
35059         * tests/test-fopen-safer.c: New file.
35060         * modules/fopen-tests (Files): Add test-fopen.h.
35061         * modules/fopen-safer-tests: New file.
35062         Suggested by Bruno Haible.
35063
35064 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35065
35066         popen-safer: test O_CLOEXEC at run-time.
35067         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35068
35069 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35070
35071         fcntl: move more flags to the header
35072         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35073         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35074         * lib/fcntl.in.h: Do both things here.
35075
35076 2009-08-21  Jim Meyering  <meyering@redhat.com>
35077
35078         consistently remove $@-t before redirecting to it
35079         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35080         * modules/alloca-opt: Likewise.
35081         * modules/byteswap: Likewise.
35082         * modules/fnmatch: Likewise.
35083         * modules/getopt-posix: Likewise.
35084         * modules/glob: Likewise.
35085         * modules/poll: Likewise.
35086         * modules/posix_spawnp-tests: Likewise.
35087         * modules/sys_socket: Likewise.
35088         * modules/sysexits: Likewise.
35089
35090 2009-08-21  Eric Blake  <ebb9@byu.net>
35091
35092         popen: simplify access to original popen
35093         * lib/popen.c (rpl_popen): No need to worry about popen being a
35094         macro.
35095         Reported by Bruno Haible.
35096
35097 2009-08-20  Eric Blake  <ebb9@byu.net>
35098
35099         build: avoid some compiler warnings
35100         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35101         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35102         type.
35103         (new_exclude_segment, excluded_file_pattern_p)
35104         (excluded_file_name_p): Reduce scope.
35105         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35106         old-style declaration.
35107
35108 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35109
35110         * tests/test-exclude1.sh: Handle Windows EOL.
35111         * tests/test-exclude2.sh: Likewise.
35112         * tests/test-exclude3.sh: Likewise.
35113         * tests/test-exclude4.sh: Likewise.
35114         * tests/test-exclude5.sh: Likewise.
35115         * tests/test-exclude6.sh: Likewise.
35116         * tests/test-exclude7.sh: Likewise.
35117
35118 2009-08-19  Akim Demaille  <demaille@gostai.com>
35119
35120         bootstrap: find sha1sum when named gsha1sum.
35121         * bootstrap (find_tool): New.
35122         ($SHA1SUM): New.
35123         Use it.
35124
35125 2009-08-20  Jim Meyering  <meyering@redhat.com>
35126
35127         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35128         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35129         expression that converts "." in a file name to "\." in the resulting
35130         regexp.  Start with a dummy statement, so that prior shell variable
35131         definitions are expanded portably.  Reported by Simon Josefsson.
35132
35133 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35134
35135         Fix polling for writeability of a screen buffer.
35136         * lib/poll.c: Distinguish input and screen buffers for the
35137         Win32 implementation.
35138         * lib/select.c: Likewise.
35139
35140 2009-08-19  Eric Blake  <ebb9@byu.net>
35141
35142         popen-safer: prevent popen from clobbering std descriptors
35143         * modules/popen-safer: New file.
35144         * lib/popen-safer.c: Likewise.
35145         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35146         * lib/stdio--.h (popen): Provide override.
35147         * lib/stdio-safer.h (popen_safer): Provide declaration.
35148         * tests/test-popen.c (includes): Partially test this.
35149         * modules/popen-safer-tests: New file, for more tests.
35150         * tests/test-popen-safer.c: Likewise.
35151         * MODULES.html.sh (file stream based Input/Output): Mention it.
35152
35153         tests: test some of the *-safer modules
35154         * modules/fopen-safer (Depends-on): Add fopen.
35155         * modules/fcntl-safer (Depends-on): Add fcntl.
35156         * modules/stdlib-safer (Depends-on): Add stdlib.
35157         (configure.ac): Set indicator.
35158         * modules/unistd-safer (configure.ac): Likewise.
35159         * modules/tmpfile-safer (configure.ac): Likewise.
35160         (Depends-on): Add tmpfile.
35161         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35162         active.
35163         * tests/test-fopen.c (includes): Test safer versions when they are
35164         in use.
35165         * tests/test-open.c (includes): Likewise.
35166
35167         popen: fix cygwin 1.5 bug when stdin closed
35168         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35169         * modules/popen: New file.
35170         * modules/popen-tests: Likewise.
35171         * tests/test-popen.c: Likewise.
35172         * m4/popen.m4: Likewise.
35173         * lib/popen.c: Likewise.
35174         * lib/stdio.in.h (popen): New declaration.
35175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35176         * modules/stdio (Makefile.am): Likewise.
35177         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35178
35179 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35180
35181         maint.mk: give full control over update-copyright exclusions
35182         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35183         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35184         (update-copyright): Don't force inclusion of top-level
35185         ChangeLog.  Don't force exclusion of all COPYING files, but make
35186         them the default exclusion instead.
35187
35188 2009-08-16  Bruno Haible  <bruno@clisp.org>
35189
35190         Fix test failures on Solaris 10.
35191         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35192         tests when Solaris iconv() is used.
35193         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35194         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35195         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35196         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35197         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35198
35199 2009-08-16  Bruno Haible  <bruno@clisp.org>
35200
35201         Fix test failures on Solaris 10.
35202         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35203         'tr' program and pass it as first argument.
35204         * tests/test-pipe-filter-gi1.sh: Likewise.
35205         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35206         program as first argument.
35207         * tests/test-pipe-filter-gi1.c (main): Likewise.
35208
35209 2009-08-16  Eric Blake  <ebb9@byu.net>
35210
35211         fpurge: fix previous commits
35212         * modules/fpurge (Makefile.am): Make replacement conditional,
35213         partially reverting 2007-04-29 change; missed in previous
35214         attempt.
35215         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35216         is missing.
35217
35218 2009-08-16  Bruno Haible  <bruno@clisp.org>
35219
35220         Clarify fpurge's effect on the file position.
35221         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35222         * tests/test-fpurge.c (main): Make a second pass for checking the file
35223         position.
35224
35225 2009-08-16  Bruno Haible  <bruno@clisp.org>
35226
35227         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35228         declaration of fpurge is missing.
35229         * tests/test-fpurge.c (main): Check that the file has not more contents
35230         than expected. Close the file before removing it.
35231
35232 2009-08-15  Eric Blake  <ebb9@byu.net>
35233
35234         fpurge: don't wrap working cygwin implementation
35235         * lib/fpurge.c (fpurge): Fix comment typo.
35236         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35237         1.7 to avoid replacement.
35238         * tests/test-fpurge.c (main): Enhance test.
35239
35240 2009-08-15  Eric Blake  <ebb9@byu.net>
35241         and Jim Meyering  <meyering@redhat.com>
35242
35243         test-update-copyright: skip if perl is insufficient
35244         * tests/test-update-copyright.sh: Failure to run maintainer tool
35245         should not cause testsuite failure on cygwin 1.5.
35246
35247 2009-08-14  Eric Blake  <ebb9@byu.net>
35248
35249         doc: mention more functions added in cygwin 1.7.0
35250         * doc/posix-headers/limits.texi (limits.h): Update for recent
35251         cygwin additions.
35252         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35253         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35254         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35255         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35256         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35257
35258 2009-08-14  Eric Blake  <ebb9@byu.net>
35259
35260         maint.mk: simplify update-copyright rule
35261         * top/maint.mk (update-copyright-local): Delete, and document how
35262         to do it in cfg.mk instead.
35263         (update-copyright-exclude-regexp): Delete, and document how to do
35264         it in .x-update-copyright instead.
35265         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35266         exclude ChangeLog.
35267
35268 2009-08-14  Bruno Haible  <bruno@clisp.org>
35269
35270         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35271
35272 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35273
35274         maint.mk: support update-copyright-env
35275         * top/maint.mk (update-copyright-env): Define place-holder.
35276         (update-copyright): Expand $(update-copyright-env) before
35277         invoking update-copyright.
35278
35279 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35280
35281         update-copyright: implement forced reformatting
35282         * build-aux/update-copyright: Implement and document
35283         UPDATE_COPYRIGHT_FORCE.
35284         * tests/test-update-copyright.sh: Test it.
35285
35286 2009-08-14  Eric Blake  <ebb9@byu.net>
35287         and Bruno Haible  <bruno@clisp.org>
35288
35289         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35290         * tests/test-locale.c: Revert previous patch related to NULL.
35291         * tests/test-stdio.c: Likewise.
35292         * tests/test-stdlib.c: Likewise.
35293         * tests/test-string.c: Likewise.
35294         * tests/test-unistd.c: Likewise.
35295         * modules/time-tests (Depends-on): Add verify.
35296         * modules/wchar-tests (Depends-on): Likewise.
35297         * tests/test-time.c: Test for NULL compliance.
35298         * tests/test-wchar.c: Likewise.
35299         * modules/locale (Depends-on): Add stddef.
35300         * modules/stdio (Depends-on): Likewise.
35301         * modules/stdlib (Depends-on): Likewise.
35302         * modules/string (Depends-on): Likewise.
35303         * modules/time (Depends-on): Likewise.
35304         * modules/unistd (Depends-on): Likewise.
35305         * modules/wchar (Depends-on): Likewise.
35306         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35307         * lib/stdlib.in.h (includes): Likewise.
35308         * lib/string.in.h (includes): Likewise.
35309         * lib/time.in.h (includes): Likewise.
35310         * lib/unistd.in.h (includes): Likewise.
35311         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35312         replaced.
35313         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35314         * m4/stddef_h.m4: New file.
35315         * modules/stddef: Likewise.
35316         * lib/stddef.in.h: Likewise.
35317         * modules/stddef-tests: Likewise.
35318         * tests/test-stddef.c: Likewise.
35319         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35320         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35321         * doc/posix-headers/locale.texi (locale.h): Likewise.
35322         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35323         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35324         * doc/posix-headers/string.texi (string.h): Likewise.
35325         * doc/posix-headers/time.texi (time.h): Likewise.
35326         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35327         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35328
35329 2009-08-14  Eric Blake  <ebb9@byu.net>
35330
35331         doc: improve git diff of texinfo files
35332         * .gitattributes: Add rule for *.texi files, with hint on how to
35333         use it.
35334         Copied from m4, and based on a report by Bruno Haible.
35335
35336 2009-08-14  Bruno Haible  <bruno@clisp.org>
35337
35338         Disable multithread support by default on Cygwin 1.5.x for real.
35339         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35340
35341 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35342
35343         update-copyright: much ado about intervals
35344         * build-aux/update-copyright: Implement and document
35345         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35346         of copyright year intervals.
35347         Also, document UPDATE_COPYRIGHT_YEAR.
35348         * tests/test-update-copyright.sh: Test it.
35349
35350         update-copyright: convert 2-digit to 4-digit years
35351         * build-aux/update-copyright: Implement and document.
35352         * tests/test-update-copyright.sh: Update.
35353
35354 2009-08-14  Jim Meyering  <meyering@redhat.com>
35355
35356         test-exclude: avoid coreutils "make check" failure
35357         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35358         just as in test-argmatch.c.
35359
35360 2009-08-13  Eric Blake  <ebb9@byu.net>
35361
35362         test-dup2: fix bad assumption
35363         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35364         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35365
35366         test-version-etc: fix CRLF portability issue
35367         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35368         recognize \r.
35369         * tests/test-argp-version-etc-1.sh: Likewise.
35370
35371         getopt: update client modules
35372         * modules/argp (Depends-on): Use getopt-gnu.
35373         * modules/git-merge-changelog (Depends-on): Likewise.
35374         * modules/long-options (Depends-on): Likewise.
35375         * modules/xstrtol (Depends-on): Likewise.
35376
35377 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35378
35379         * tests/test-version-etc.sh: Don't fail on different
35380         project/version.  Don't fail on CRLF differences.  Rewrite to use
35381         multiple -e instead of multiple sed forks, suggested by Eric Blake
35382         <ebb9@byu.net>.
35383         * tests/test-argp-version-etc-1.sh: Likewise.
35384
35385 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35386
35387         * tests/test-version-etc.sh: Don't fail on different
35388         project/version.
35389
35390 2009-08-12  Bruno Haible  <bruno@clisp.org>
35391
35392         Tests for modules 'getopt-posix', 'getopt-gnu'.
35393         * modules/getopt-posix-tests: New file.
35394         * tests/test-getopt.c: New file.
35395         * tests/test-getopt.h: New file.
35396         * tests/test-getopt_long.h: New file.
35397
35398         New modules 'getopt-posix', 'getopt-gnu'.
35399         * modules/getopt-gnu: New file, renamed from modules/getopt.
35400         * modules/getopt-posix: New file.
35401         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35402         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35403         (gl_GETOPT): Remove macro.
35404         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35405         Disable the test against BSD systems that declare optreset. Test
35406         against mingw bug. Test against lack of support of optional arguments
35407         on many platforms.
35408         * doc/glibc-headers/getopt.texi: Update module name and list of
35409         relevant platforms.
35410         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35411         'getopt-gnu' and more portability problems.
35412         * NEWS: Mention the changes.
35413
35414 2009-08-12  Bruno Haible  <bruno@clisp.org>
35415
35416         Ensure that optarg etc. get declared by <unistd.h>.
35417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35418         AC_USE_SYSTEM_EXTENSIONS.
35419         * modules/getopt (Depends-on): Add 'extensions'.
35420
35421 2009-08-12  Bruno Haible  <bruno@clisp.org>
35422
35423         Avoid test link errors.
35424         * modules/pipe-filter-ii-tests (Makefile.am): Define
35425         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35426         * modules/pipe-filter-gi-tests (Makefile.am): Define
35427         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35429
35430 2009-08-12  Bruno Haible  <bruno@clisp.org>
35431
35432         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35433         gl_GETOPT_SUBSTITUTE before.
35434         (gl_GETOPT): Use it.
35435         * m4/argp.m4 (gl_ARGP): Update.
35436         Reported by Sergey Poznyakoff.
35437
35438         * m4/getopt.m4: Reorder macros.
35439         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35440         (gl_GETOPT_SUBSTITUTE): Remove macro.
35441
35442 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35443
35444         Minor improvement in gitlog-to-changelog
35445
35446         * build-aux/gitlog-to-changelog: New option `--format' makes
35447         output format string configurable.
35448
35449 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35450
35451         Optimize exclude: use hash tables for non-wildcard patterns.
35452
35453         * lib/exclude.c: Include hash.h and mbuiter.h
35454         (struct exclude_pattern, exclude_segment): New data types.
35455         (struct exclude): Rewrite.
35456         (fnmatch_pattern_has_wildcards): New function.
35457         (new_exclude_segment, free_exclude_segment): New functions.
35458         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35459         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35460         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35461         * modules/exclude: Depend on hash and mbuiter.
35462
35463         * modules/exclude-tests: New file.
35464         * tests/test-exclude.c: New file.
35465         * tests/test-exclude1.sh: New file.
35466         * tests/test-exclude2.sh: New file.
35467         * tests/test-exclude3.sh: New file.
35468         * tests/test-exclude4.sh: New file.
35469         * tests/test-exclude5.sh: New file.
35470         * tests/test-exclude6.sh: New file.
35471         * tests/test-exclude7.sh: New file.
35472
35473 2009-08-12  Bruno Haible  <bruno@clisp.org>
35474
35475         Ensure that getopt() gets declared by <unistd.h>.
35476         * lib/unistd.in.h: Conditionally include getopt.h.
35477         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35478         Set GNULIB_UNISTD_H_GETOPT.
35479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35480         GNULIB_UNISTD_H_GETOPT.
35481         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35482
35483 2009-08-12  Bruno Haible  <bruno@clisp.org>
35484
35485         Clarify logic.
35486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35487         gl_replace_getopt instead of GETOPT_H.
35488
35489 2009-08-12  Bruno Haible  <bruno@clisp.org>
35490
35491         * m4/getopt.m4: Add comments.
35492
35493 2009-08-12  Bruno Haible  <bruno@clisp.org>
35494
35495         Disable multithread support by default on Cygwin 1.5.x.
35496         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35497         set gl_use_threads=no if not specified otherwise.
35498
35499 2009-08-11  Bruno Haible  <bruno@clisp.org>
35500
35501         Avoid compilation error on NetBSD 5.0.
35502         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35503         * tests/test-stdio.c: Likewise.
35504         * tests/test-stdlib.c: Likewise.
35505         * tests/test-string.c: Likewise.
35506         * tests/test-unistd.c: Likewise.
35507         Reported by Greg Troxel <gdt@ir.bbn.com>
35508         at <https://savannah.gnu.org/support/?106973>.
35509
35510 2009-08-11  Bruno Haible  <bruno@clisp.org>
35511
35512         * modules/dup2-tests (Depends-on): Remove close.
35513
35514         Undo 2009-07-19 commit.
35515         * modules/acl-tests (Depends-on): Remove close.
35516         * modules/binary-io-tests (Depends-on): Likewise.
35517         * modules/closein-tests (Depends-on): Likewise.
35518         * modules/flock-tests (Depends-on): Likewise.
35519         * modules/fsync-tests (Depends-on): Likewise.
35520         * modules/lseek-tests (Depends-on): Likewise.
35521         * modules/pipe-tests (Depends-on): Likewise.
35522         * modules/posix_spawn-tests (Depends-on): Likewise.
35523         * modules/posix_spawnp-tests (Depends-on): Likewise.
35524         * modules/stat-time-tests (Depends-on): Likewise.
35525         * modules/yesno-tests (Depends-on): Likewise.
35526
35527 2009-08-10  Bruno Haible  <bruno@clisp.org>
35528
35529         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35530
35531 2009-08-10  Bruno Haible  <bruno@clisp.org>
35532
35533         Fix a gcc warning.
35534         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35535
35536 2009-08-10  Bruno Haible  <bruno@clisp.org>
35537
35538         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35539         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35540         not only the first time.
35541         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35542         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35543         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35544         is 1, not only the the first time.
35545
35546 2009-08-10  Bruno Haible  <bruno@clisp.org>
35547
35548         Make it possible to use module 'gethostname' without module 'close'.
35549         * lib/unistd.in.h (close): Evoke a link error only if
35550         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35552         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35553         * modules/unistd (Makefile.am): Substitute
35554         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35555         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35556         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35558         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35559         * modules/sys_ioctl (Makefile.am): Substitute
35560         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35561         * modules/socket (configure.ac): On native Windows, set
35562         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35563         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35564         Reported by Sam Steingold <sds@gnu.org>.
35565
35566 2009-08-10  Bruno Haible  <bruno@clisp.org>
35567
35568         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35569         * modules/ioctl (configure.ac): Likewise.
35570
35571 2009-08-10  Bruno Haible  <bruno@clisp.org>
35572
35573         Avoid collision between gnulib wrapper and libintl wrapper.
35574         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35575         already defined in intl/printf.c.
35576         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35577         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35578
35579 2009-08-09  Bruno Haible  <bruno@clisp.org>
35580
35581         Make <sys/select.h> really self-contained, also on Solaris 10.
35582         * lib/sys_select.in.h: Include <string.h>.
35583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35584         Solaris 10 problem.
35585         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35586         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35587         Reported by Jim Meyering.
35588
35589 2009-08-09  Bruno Haible  <bruno@clisp.org>
35590
35591         Avoid warnings from 'aclocal' that are due to a use of macro name
35592         AM_XGETTEXT_OPTION that is not defined in automake.
35593         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35594         automake.
35595         * modules/error (configure.ac): Likewise.
35596         * modules/propername (configure.ac): Likewise.
35597         * modules/vasprintf (configure.ac): Likewise.
35598         * modules/verror (configure.ac): Likewise.
35599         * modules/xprintf (configure.ac): Likewise.
35600         * modules/xvasprintf (configure.ac): Likewise.
35601
35602 2009-08-08  Bruno Haible  <bruno@clisp.org>
35603
35604         Avoid compilation error in C++ mode.
35605         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35606         Reported by Sam Steingold <sds@gnu.org>.
35607
35608 2009-08-08  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35611         for the various Unix platforms.
35612         * doc/posix-headers/limits.texi: Update platforms list regarding
35613         HOST_NAME_MAX.
35614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35615
35616 2009-08-07  Jim Meyering  <meyering@redhat.com>
35617
35618         selinux-at: fix typo in a comment
35619         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35620         Spotted by Paolo Bonzini.
35621
35622         selinux-at: remove redundant m4 code, add documentation
35623         * modules/selinux-at (configure.ac): Remove redundant code.
35624         LIB_SELINUX is already set via the dependent module, selinux-h.
35625         (Include): Add quotes around selinux-at.h.
35626         * lib/selinux-at.h: Add documentation.
35627         Reported by Bruno Haible in
35628         http://marc.info/?l=gnulib-bug&m=124958988300749
35629
35630 2009-08-07  Bruno Haible  <bruno@clisp.org>
35631
35632         Avoid link error on MacOS X 10.3 and 10.4.
35633         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35634         on non-ELF systems.
35635         * lib/argp-pv.c (argp_program_version): Likewise.
35636         Reported by Simon Josefsson.
35637
35638 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35639
35640         * tests/test-version-etc.sh: Use $EXEEXT.
35641
35642 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35643
35644         update-copyright: update documentation to point to maint.mk
35645         * build-aux/update-copyright: Here.
35646
35647 2009-08-06  Jim Meyering  <meyering@redhat.com>
35648
35649         maint.mk: support update-copyright-local
35650         * top/maint.mk (update-copyright-local): Define place-holder.
35651         (update-copyright): Depend on $(update-copyright-local).
35652
35653 2009-08-06  Jim Meyering  <meyering@redhat.com>
35654
35655         selinux-at: new module
35656         Initially written for coreutils, this module will soon be
35657         used by findutils, too.
35658         * MODULES.html.sh [Misc]: Add selinux-at.
35659         * lib/selinux-at.h: New file, from coreutils.
35660         * lib/selinux-at.c: Likewise.
35661         * modules/selinux-at: Likewise.
35662         (License): Change from LGPL to GPL, since it depends
35663         on the GPL'd openat module.
35664
35665         doc: update README
35666         * README: Remove references to cogito.
35667         Remove cvs-repo-updating instructions from 2007.
35668         Don't imply that CVS is better if you have limited disk space.
35669
35670 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35671
35672         update-copyright: support C-style comments
35673         * build-aux/update-copyright: Implement and document.
35674         * tests/test-update-copyright.sh: Test.
35675
35676 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35677
35678         update-copyright: support omitted "(C)"
35679         * build-aux/update-copyright: Implement and document.  Also,
35680         allow variable whitespace before "(C)".
35681         * tests/test-update-copyright.sh: Test.
35682
35683 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35684
35685         update-copyright: don't trip on non-FSF copyright statements
35686         * build-aux/update-copyright: Fix so that the first correctly
35687         formatted FSF copyright statement is recognized no matter what
35688         appears before it.  Update documentation.
35689         * tests/test-update-copyright.sh: Test that.
35690
35691 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35692
35693         update-copyright: clean up code a little
35694         * build-aux/update-copyright: Append "_re" to the name of any
35695         variable holding a regular expression.
35696         Replace "old" and "new" with "stmt" in variable names.
35697         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35698         handled correctly.
35699         Format code more consistently.
35700
35701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35702
35703         update-copyright-tests: improve portability
35704         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35705         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35706
35707 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35708
35709         update-copyright: support @copyright{} and &copy;
35710         * build-aux/update-copyright: Implement and document.
35711         * tests/test-update-copyright.sh: Test.
35712
35713 2009-08-04  Jim Meyering  <meyering@redhat.com>
35714
35715         update-copyright-tests: correctly test EOL=\r\n handling
35716         * tests/test-update-copyright.sh: Put \r at the end of some lines
35717         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35718
35719         maint.mk: make update-copyright exclusion list more configurable
35720         * top/maint.mk (update-copyright): Default to excluding COPYING,
35721         but allow an override, in case someone does want to update that file.
35722
35723         maint.mk: don't update copyright date in COPYING
35724         * top/maint.mk (update-copyright): Exclude COPYING.
35725
35726         maint.mk: add a copyright-updating rule
35727         * top/maint.mk (update-copyright): New rule.
35728         Derived from coreutils/Makefile.am.
35729
35730         update-copyright: rename some variables
35731         * build-aux/update-copyright: Rename a few variables for clarity.
35732         Tweak syntax.  List Joel E. Denny as coauthor.
35733
35734 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35735
35736         update-copyright: fix bug for 2-digit last year and add tests
35737         * build-aux/update-copyright: Fix bug.
35738         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35739         specified.
35740         * modules/update-copyright-tests: New
35741         * tests/test-update-copyright.sh: New.
35742
35743 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35744
35745         update-copyright: handle leading tabs in line prefix
35746         * build-aux/update-copyright: Count leading tabs as 8 spaces
35747         when computing margin.  This helps with the formatting of
35748         ChangeLogs, for example.
35749         Fix documentation a little.
35750
35751 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35752
35753         update-copyright: support EOL=\r\n
35754         * build-aux/update-copyright: Implement that.
35755
35756 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35757
35758         update-copyright: automatically format copyright statements
35759         * build-aux/update-copyright: Implement that.
35760         Also, be a little more predictable and safer by always failing
35761         when the full copyright format is not perfectly recognized as an
35762         unbroken whole.  Discussed at
35763         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35764         Rewrite documentation.
35765
35766 2009-08-03  Bruno Haible  <bruno@clisp.org>
35767
35768         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35769
35770 2009-08-02  Bruno Haible  <bruno@clisp.org>
35771
35772         Tests for module 'uname'.
35773         * modules/uname-tests: New file.
35774         * tests/test-uname.c: New file.
35775
35776         New module 'uname'.
35777         * lib/uname.c: New file.
35778         * m4/uname.m4: New file.
35779         * modules/uname: New file.
35780         * doc/posix-functions/uname.texi: Mention the new module.
35781
35782 2009-08-02  Bruno Haible  <bruno@clisp.org>
35783
35784         Tests for module 'sys_utsname'.
35785         * modules/sys_utsname-tests: New file.
35786         * tests/test-sys_utsname.c: New file.
35787
35788         New module 'sys_utsname'.
35789         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35790         * m4/sys_utsname_h.m4: New file.
35791         * modules/sys_utsname: New file.
35792         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35793
35794 2009-08-02  Bruno Haible  <bruno@clisp.org>
35795
35796         Implicitly initialize the sockets library.
35797         * lib/gethostname.c: Include sockets.h.
35798         (rpl_gethostname): Invoke gl_sockets_startup.
35799         * lib/socket.c: Include sockets.h.
35800         (rpl_socket): Invoke gl_sockets_startup.
35801         * modules/gethostname (Depends-on): Add sockets.
35802         * modules/socket (Depends-on): Likewise.
35803         * tests/test-poll.c: Don't include sockets.h.
35804         (main): Don't invoke gl_sockets_startup.
35805         * tests/test-select.c: Don't include sockets.h.
35806         (main): Don't invoke gl_sockets_startup.
35807
35808 2009-08-02  Bruno Haible  <bruno@clisp.org>
35809
35810         Allow multiple calls to gl_sockets_startup.
35811         * lib/sockets.c (initialized_sockets_version): New variable.
35812         (gl_sockets_startup): Do nothing if already called for this or a higher
35813         version.
35814         (gl_sockets_cleanup): Reset initialized_sockets_version.
35815
35816 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35817
35818         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35819         different project/version.
35820
35821 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35822             Bruno Haible  <bruno@clisp.org>
35823
35824         Tests for module 'pipe-filter-gi'.
35825         * modules/pipe-filter-gi-tests: New file.
35826         * tests/test-pipe-filter-gi1.sh: New file.
35827         * tests/test-pipe-filter-gi1.c: New file.
35828         * tests/test-pipe-filter-gi2.sh: New file.
35829         * tests/test-pipe-filter-gi2-main.c: New file.
35830         * tests/test-pipe-filter-gi2-child.c: New file.
35831
35832         New module 'pipe-filter-gi'.
35833         * lib/pipe-filter-gi.c: New file.
35834         * modules/pipe-filter-gi: New file.
35835
35836 2009-08-02  Bruno Haible  <bruno@clisp.org>
35837             Paolo Bonzini  <bonzini@gnu.org>
35838
35839         Tests for module 'pipe-filter-ii'.
35840         * modules/pipe-filter-ii-tests: New file.
35841         * tests/test-pipe-filter-ii1.sh: New file.
35842         * tests/test-pipe-filter-ii1.c: New file.
35843         * tests/test-pipe-filter-ii2.sh: New file.
35844         * tests/test-pipe-filter-ii2-main.c: New file.
35845         * tests/test-pipe-filter-ii2-child.c: New file.
35846
35847         New module 'pipe-filter-ii'.
35848         * lib/pipe-filter.h: New file.
35849         * lib/pipe-filter-ii.c: New file.
35850         * lib/pipe-filter-aux.h: New file.
35851         * modules/pipe-filter-ii: New file.
35852
35853 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35854
35855         * lib/gc-libgcrypt.c: Change copyright to FSF.
35856         * lib/gc-gnulib.c: Likewise.
35857
35858 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35859
35860         * lib/gethostname.c: Include limits.h.
35861
35862 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35863             Bruno Haible  <bruno@clisp.org>
35864
35865         Ensure HOST_NAME_MAX as part of the gethostname module.
35866         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35867         define also HOST_NAME_MAX.
35868         * tests/test-gethostname.c: Include <limits.h>.
35869         (main): Check also HOST_NAME_MAX.
35870         * doc/posix-headers/limits.texi: Document the mingw problem.
35871
35872 2009-08-02  Bruno Haible  <bruno@clisp.org>
35873
35874         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35875         Add comments.
35876
35877 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35878
35879         * lib/gethostname.c: Add Windows wrapper.
35880         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35881         * modules/gethostname: Depend on sys_socket & errno, for also
35882         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35883         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35884
35885 2009-07-31  Jim Meyering  <meyering@redhat.com>
35886
35887         getloadavg: fix symbol name in comment
35888         * lib/getloadavg.c: Correct a typo I introduced when adding
35889         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35890         Matt Kraai spotted the problem.
35891
35892 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35893
35894         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35895         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35896         code also if ! defined N_NAME_POINTER.
35897         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35898         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35899         but the n_name member is a 12-byte array.
35900
35901 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35902
35903         update-copyright: generalize comment handling
35904         * build-aux/update-copyright: Handle copyright statements
35905         within more comment styles.
35906         Document usage.
35907         Report any file with an external copyright holder or parse failure.
35908
35909 2009-07-29  Jim Meyering  <meyering@redhat.com>
35910
35911         mktime: correct setting of REPLACE_MKTIME
35912         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35913
35914         update-copyright: new module
35915         * modules/update-copyright: New file.
35916         * build-aux/update-copyright: New file.
35917         * MODULES.html.sh (maint+release support): Add update-copyright.
35918
35919 2009-07-27  Bruno Haible  <bruno@clisp.org>
35920
35921         Fix compilation error when <ctime> is used and mktime is replaced.
35922         * lib/time.in.h (mktime): New declaration.
35923         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35924         REPLACE_MKTIME instead of defining mktime in config.h.
35925         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35926         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35927         Reported by Ross McFarland <rwmcfa1@neces.com>.
35928
35929 2009-07-27  Bruno Haible  <bruno@clisp.org>
35930
35931         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35932         Reported by Matt Kraai <mkraai@beckman.com>.
35933
35934 2009-07-25  Jim Meyering  <meyering@redhat.com>
35935
35936         maint.mk: avoid warnings about missing files
35937         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35938         diagnostic when .prev-version does not exist.
35939         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35940         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35941         nonexistent cfg.mk.
35942         Suggestions from Simon Josefsson.
35943
35944 2009-07-25  Bruno Haible  <bruno@clisp.org>
35945
35946         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35947         defined as macros. Needed on QNX 6.4.1.
35948         Reported by Matt Kraai <mkraai@beckman.com>.
35949
35950 2009-07-23  Jim Meyering  <meyering@redhat.com>
35951
35952         maint.mk: invoke "make dist" with a working value of XZ_OPT
35953         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35954
35955 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35956
35957         Make fseeko.c compile on QNX.
35958         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35959
35960 2009-07-22  Peter Simons  <simons@cryp.to>
35961
35962         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35963         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35964         * lib/md4.h: Likewise.
35965         * lib/md5.h: Likewise.
35966         * lib/sha1.h: Likewise.
35967         * lib/sha256.h: Likewise.
35968         * lib/sha512.h: Likewise.
35969
35970         tests-sha1: don't assign literal string to 'char *' variable
35971         * tests/test-sha1.c (main): Declare locals with "const" to match
35972         attributes of the right hand side.
35973
35974 2009-07-21  Eric Blake  <ebb9@byu.net>
35975
35976         dup2: fix more mingw problems
35977         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35978         fd to itself.
35979         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35980         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35981         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35982         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35983         care of mingw bugs.
35984
35985 2009-07-21  Jim Meyering  <meyering@redhat.com>
35986
35987         vc-list-files: avoid failure when /bin/sh is dash
35988         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35989         On some Debian based systems, /bin/sh is a symlink to dash, and running
35990         this command would omit the "/" following each 'tests' prefix:
35991           dash -x build-aux/vc-list-files -C . tests
35992         That is because bash and dash work differently:
35993           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35994           bash ok
35995           dash odd
35996
35997 2009-07-21  Eric Blake  <ebb9@byu.net>
35998
35999         dup2-tests: test previous patch
36000         * modules/dup2-tests: New file.
36001         * tests/test-dup2.c: Likewise.
36002         * tests/test-open.c (main): Avoid unspecified behavior.
36003         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36004         test.
36005
36006         dup2: work around mingw and cygwin 1.5 bug
36007         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36009         * modules/unistd (Makefile.am): Substitute it.
36010         * lib/unistd.in.h (dup2): Declare the replacement.
36011         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36012         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36013         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36014         * modules/execute (Depends-on): Add dup2.
36015         * modules/fseterr (Depends-on): Likewise.
36016         * modules/pipe (Depends-on): Likewise.
36017         * modules/posix_spawn-internal (Depends-on): Likewise.
36018
36019 2009-07-21  Bruno Haible  <bruno@clisp.org>
36020
36021         * modules/.gitattributes: New file.
36022
36023 2009-07-20  Bruno Haible  <bruno@clisp.org>
36024
36025         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36026         (main): Use it.
36027
36028 2009-07-20  Eric Blake  <ebb9@byu.net>
36029
36030         test-pipe: make a bit more robust.
36031         * tests/test-pipe.c (myerr): Allow error messages regardless of
36032         what we do to stderr.
36033         (test_pipe): Rearrange to avoid deadlock.
36034         (child_main): Try a larger read, to ensure we avoided deadlock.
36035         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36036         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36037         if misused.
36038
36039 2009-07-19  Jim Meyering  <meyering@redhat.com>
36040
36041         fts: avoid false-positive cycle-detection
36042         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36043         for each new command line argument.
36044
36045 2009-07-19  Bruno Haible  <bruno@clisp.org>
36046
36047         Fix build error on mingw with the modules sys_select and unistd.
36048         * modules/acl-tests (Depends-on): Add close.
36049         * modules/binary-io-tests (Depends-on): Likewise.
36050         * modules/closein-tests (Depends-on): Likewise.
36051         * modules/flock-tests (Depends-on): Likewise.
36052         * modules/fsync-tests (Depends-on): Likewise.
36053         * modules/lseek-tests (Depends-on): Likewise.
36054         * modules/pipe-tests (Depends-on): Likewise.
36055         * modules/posix_spawn-tests (Depends-on): Likewise.
36056         * modules/posix_spawnp-tests (Depends-on): Likewise.
36057         * modules/stat-time-tests (Depends-on): Likewise.
36058         * modules/yesno-tests (Depends-on): Likewise.
36059
36060 2009-07-19  Bruno Haible  <bruno@clisp.org>
36061
36062         Unify conditionals.
36063         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36064         macros, not at the compiler macros.
36065         * lib/pipe.c: Likewise.
36066         * lib/execute.c: Likewise.
36067         * lib/spawni.c: Likewise.
36068
36069 2009-07-19  Bruno Haible  <bruno@clisp.org>
36070
36071         Fix handling of closed stdin/stdout/stderr on mingw.
36072         * lib/w32spawn.h: Include unistd.h.
36073         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36074         file descriptor with O_NOINHERIT flag.
36075         (fd_safer_noinherit): New function, based on fd-safer.c.
36076         (dup_safer_noinherit): New function, based on dup-safer.c.
36077         (undup_safer_noinherit): New function.
36078         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36079         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36080         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36081         instead of fd_safer.
36082         * tests/test-pipe.c: Include <windows.h>.
36083         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36084         result.
36085
36086         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36087         from main.
36088         (test_pipe): Pass an extra argument for disambiguation.
36089         (main): Invoke parent_main or child_main.
36090
36091         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36092         consistently.
36093
36094 2009-07-18  Eric Blake  <ebb9@byu.net>
36095
36096         test-pipe: fix mingw build
36097         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36098
36099 2009-07-18  Bruno Haible  <bruno@clisp.org>
36100
36101         * modules/pipe-tests (Makefile.am): Fix typo.
36102
36103 2009-07-18  Eric Blake  <ebb9@byu.net>
36104
36105         error: fix mingw build
36106         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36107         Reported by Bruno Haible.
36108
36109         error: avoid undefined use of stdout
36110         * lib/error.c (error, error_at_line): Check that fd 1 is open
36111         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36112         is handling faults and the close_stdout module wants to report the
36113         detection of closed stdout as an error.
36114
36115 2009-07-17  Eric Blake  <ebb9@byu.net>
36116
36117         pipe: be robust in face of closed fds
36118         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36119         should cause child to misbehave.
36120         * modules/pipe-tests: New module.
36121         * tests/test-pipe.c: New file.
36122         * tests/test-pipe.sh: New file.
36123         Reported by Akim Demaille.
36124
36125 2009-07-14  Bruno Haible  <bruno@clisp.org>
36126
36127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36128         Reported by anonymous kc.
36129
36130 2009-07-07  Jim Meyering  <meyering@redhat.com>
36131
36132         maint.mk: don't look for translatable strings in *.m4 or *.mk
36133         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36134         when searching for translatable strings.
36135
36136 2009-07-05  Jim Meyering  <meyering@redhat.com>
36137
36138         remove superfluous parentheses in STREQ definition
36139         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36140         * lib/getugroups.c (STREQ): Likewise.
36141         * lib/fnmatch.c (STREQ): Likewise.
36142         Spotted by Bruno Haible.
36143
36144 2009-07-04  Jim Meyering  <meyering@redhat.com>
36145
36146         argv-iter: new module
36147         * MODULES.html.sh: Add argv-iter.
36148         * lib/argv-iter.c, lib/argv-iter.h: New files.
36149         * modules/argv-iter: New file.
36150         * modules/argv-iter-tests: New file.
36151         * tests/test-argv-iter.c: Test it.
36152
36153 2009-07-04  Bruno Haible  <bruno@clisp.org>
36154
36155         Fix assertion.
36156         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36157         contains more exact copies of a given entry than file2, leave the extra
36158         copies unpaired rather than aborting.
36159         Reported by Eric Blake.
36160
36161 2009-07-02  Bruno Haible  <bruno@clisp.org>
36162
36163         Speedup git-merge-changelog for git cherry-pick.
36164         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36165         (entries_mapping_get): New function, extracted from compute_mapping.
36166         (entries_mapping_reverse_get): New function.
36167         (compute_mapping): Add a 'full' argument. Return the result in a
36168         'struct entries_mapping'.
36169         (main): Update. Access the mappings through entries_mapping_get.
36170         Reported by Eric Blake.
36171
36172 2009-07-02  Bruno Haible  <bruno@clisp.org>
36173
36174         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36175         best_i.
36176
36177 2009-07-02  Bruno Haible  <bruno@clisp.org>
36178
36179         Speed up approximate search for matching ChangeLog entries.
36180         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36181         argument. Call fstrcmp_bounded instead of fstrcmp.
36182         (compute_mapping, try_split_merged_entry, main): Update callers.
36183
36184 2009-07-02  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36187
36188 2009-06-30  Bruno Haible  <bruno@clisp.org>
36189
36190         Reduce the number of uc_is_cased calls.
36191         * lib/unicase.h (casing_suffix_context_t): Add
36192         'first_char_except_ignorable' field.
36193         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36194         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36195         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36196         Update initializer.
36197         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36198         case-ignorable characters.
36199         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36200         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36201         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36202         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36203         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36204
36205 2009-06-30  Bruno Haible  <bruno@clisp.org>
36206
36207         Tests for module 'unicase/ignorable'.
36208         * modules/unicase/ignorable-tests: New file.
36209         * tests/unicase/test-ignorable.c: New file, generated by
36210         gen-uni-tables.
36211
36212         Tests for module 'unicase/cased'.
36213         * modules/unicase/cased-tests: New file.
36214         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36215         * tests/unicase/test-predicate-part1.h: New file, derived from
36216         tests/unictype/test-predicate-part1.h.
36217         * tests/unicase/test-predicate-part2.h: New file, same as
36218         tests/unictype/test-predicate-part2.h.
36219
36220         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36221         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36222         (output_casing_properties): New function.
36223         (main): Call it.
36224         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36225         * lib/unicase/cased.c: Include unictype/bitmap.h.
36226         (uc_is_cased): Define through a bitmap lookup.
36227         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36228         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36229         (uc_is_case_ignorable): Define through a bitmap lookup.
36230         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36231         lib/unictype/bitmap.h.
36232         (Depends-on): Add inline. Clean up.
36233         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36234         lib/unictype/bitmap.h.
36235         (Depends-on): Add inline. Clean up.
36236         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36237         recognition.
36238         * tests/unicase/test-u16-tolower.c (main): Likewise.
36239         * tests/unicase/test-u32-tolower.c (main): Likewise.
36240
36241 2009-06-30  Bruno Haible  <bruno@clisp.org>
36242
36243         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36244         * lib/unicase/u16-casemap.c: Likewise.
36245         * lib/unicase/u32-casemap.c: Likewise.
36246
36247 2009-06-29  Bruno Haible  <bruno@clisp.org>
36248
36249         Define u32_casefold as a wrapper around u32_ct_casefold.
36250         * lib/unicase/u32-casefold.c: Update.
36251         * modules/unicase/u32-casefold (Depends-on): Add
36252         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36253         unicase/empty-suffix-context. Clean up.
36254
36255         Define u16_casefold as a wrapper around u16_ct_casefold.
36256         * lib/unicase/u16-casefold.c: Update.
36257         * modules/unicase/u16-casefold (Depends-on): Add
36258         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36259         unicase/empty-suffix-context. Clean up.
36260
36261         Define u8_casefold as a wrapper around u8_ct_casefold.
36262         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36263         * lib/unicase/u8-casefold.c: Update.
36264         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36265         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36266
36267         Define u32_totitle as a wrapper around u32_ct_totitle.
36268         * lib/unicase/u32-totitle.c: Update.
36269         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36270         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36271
36272         Define u16_totitle as a wrapper around u16_ct_totitle.
36273         * lib/unicase/u16-totitle.c: Update.
36274         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36275         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36276
36277         Define u8_totitle as a wrapper around u8_ct_totitle.
36278         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36279         functions.
36280         (FUNC): Delegate to U_CT_TOTITLE.
36281         * lib/unicase/u8-totitle.c: Update.
36282         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36283         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36284
36285         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36286         invocation.
36287         * modules/unicase/u32-tolower (Depends-on): Add
36288         unicase/empty-prefix-context, unicase/empty-suffix-context.
36289
36290         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36291         invocation.
36292         * modules/unicase/u16-tolower (Depends-on): Add
36293         unicase/empty-prefix-context, unicase/empty-suffix-context.
36294
36295         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36296         * modules/unicase/u8-tolower (Depends-on): Add
36297         unicase/empty-prefix-context, unicase/empty-suffix-context.
36298
36299         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36300         invocation.
36301         * modules/unicase/u32-toupper (Depends-on): Add
36302         unicase/empty-prefix-context, unicase/empty-suffix-context.
36303
36304         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36305         invocation.
36306         * modules/unicase/u16-toupper (Depends-on): Add
36307         unicase/empty-prefix-context, unicase/empty-suffix-context.
36308
36309         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36310         * modules/unicase/u8-toupper (Depends-on): Add
36311         unicase/empty-prefix-context, unicase/empty-suffix-context.
36312
36313         New module 'unicase/u32-ct-casefold'.
36314         * lib/unicase/u32-ct-casefold.c: New file.
36315         * modules/unicase/u32-ct-casefold: New file.
36316
36317         New module 'unicase/u16-ct-casefold'.
36318         * lib/unicase/u16-ct-casefold.c: New file.
36319         * modules/unicase/u16-ct-casefold: New file.
36320
36321         New module 'unicase/u8-ct-casefold'.
36322         * lib/unicase/u8-ct-casefold.c: New file.
36323         * lib/unicase/u-ct-casefold.h: New file, derived from
36324         lib/unicase/u-casefold.h.
36325         * modules/unicase/u8-ct-casefold: New file.
36326
36327         New module 'unicase/u32-ct-totitle'.
36328         * lib/unicase/u32-ct-totitle.c: New file.
36329         * modules/unicase/u32-ct-totitle: New file.
36330
36331         New module 'unicase/u16-ct-totitle'.
36332         * lib/unicase/u16-ct-totitle.c: New file.
36333         * modules/unicase/u16-ct-totitle: New file.
36334
36335         New module 'unicase/u8-ct-totitle'.
36336         * lib/unicase/u8-ct-totitle.c: New file.
36337         * lib/unicase/u-ct-totitle.h: New file, derived from
36338         lib/unicase/u-totitle.h.
36339         * modules/unicase/u8-ct-totitle: New file.
36340
36341         New module 'unicase/u32-ct-tolower'.
36342         * lib/unicase/u32-ct-tolower.c: New file.
36343         * modules/unicase/u32-ct-tolower: New file.
36344
36345         New module 'unicase/u16-ct-tolower'.
36346         * lib/unicase/u16-ct-tolower.c: New file.
36347         * modules/unicase/u16-ct-tolower: New file.
36348
36349         New module 'unicase/u8-ct-tolower'.
36350         * lib/unicase/u8-ct-tolower.c: New file.
36351         * modules/unicase/u8-ct-tolower: New file.
36352
36353         New module 'unicase/u32-ct-toupper'.
36354         * lib/unicase/u32-ct-toupper.c: New file.
36355         * modules/unicase/u32-ct-toupper: New file.
36356
36357         New module 'unicase/u16-ct-toupper'.
36358         * lib/unicase/u16-ct-toupper.c: New file.
36359         * modules/unicase/u16-ct-toupper: New file.
36360
36361         New module 'unicase/u8-ct-toupper'.
36362         * lib/unicase/u8-ct-toupper.c: New file.
36363         * modules/unicase/u8-ct-toupper: New file.
36364
36365         Add context arguments to u*_casemap functions.
36366         * lib/unicase/unicasemap.h: Include unicase.h.
36367         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36368         suffix_context arguments.
36369         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36370         functions.
36371         (FUNC): Add prefix_context and suffix_context arguments. Use
36372         uc_is_cased and uc_is_case_ignorable.
36373         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36374         * lib/unicase/u16-casemap.c: Likewise.
36375         * lib/unicase/u32-casemap.c: Likewise.
36376         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36377         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36378         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36379         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36380         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36381         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36382
36383         New module 'unicase/u32-suffix-context'.
36384         * lib/unicase/u32-suffix-context.c: New file.
36385         * modules/unicase/u32-suffix-context: New file.
36386
36387         New module 'unicase/u16-suffix-context'.
36388         * lib/unicase/u16-suffix-context.c: New file.
36389         * modules/unicase/u16-suffix-context: New file.
36390
36391         New module 'unicase/u8-suffix-context'.
36392         * lib/unicase/u8-suffix-context.c: New file.
36393         * lib/unicase/u-suffix-context.h: New file.
36394         * modules/unicase/u8-suffix-context: New file.
36395
36396         New module 'unicase/empty-suffix-context'.
36397         * lib/unicase/empty-suffix-context.c: New file.
36398         * modules/unicase/empty-suffix-context: New file.
36399
36400         New module 'unicase/u32-prefix-context'.
36401         * lib/unicase/u32-prefix-context.c: New file.
36402         * modules/unicase/u32-prefix-context: New file.
36403
36404         New module 'unicase/u16-prefix-context'.
36405         * lib/unicase/u16-prefix-context.c: New file.
36406         * modules/unicase/u16-prefix-context: New file.
36407
36408         New module 'unicase/u8-prefix-context'.
36409         * lib/unicase/u8-prefix-context.c: New file.
36410         * lib/unicase/u-prefix-context.h: New file.
36411         * lib/unicase/context.h: New file.
36412         * modules/unicase/u8-prefix-context: New file.
36413
36414         New module 'unicase/empty-prefix-context'.
36415         * lib/unicase/empty-prefix-context.c: New file.
36416         * modules/unicase/empty-prefix-context: New file.
36417
36418         New module 'unicase/ignorable'.
36419         * lib/unicase/ignorable.c: New file.
36420         * modules/unicase/ignorable: New file.
36421
36422         New module 'unicase/cased'.
36423         * lib/unicase/caseprop.h: New file.
36424         * lib/unicase/cased.c: New file.
36425         * modules/unicase/cased: New file.
36426
36427         New functions for case mapping of substrings.
36428         * lib/unicase.h (casing_prefix_context_t): New type.
36429         (unicase_empty_prefix_context): New variable.
36430         (u8_casing_prefix_context, u16_casing_prefix_context,
36431         u32_casing_prefix_context, u8_casing_prefixes_context,
36432         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36433         declarations.
36434         (casing_suffix_context_t): New type.
36435         (unicase_empty_suffix_context): New variable.
36436         (u8_casing_suffix_context, u16_casing_suffix_context,
36437         u32_casing_suffix_context, u8_casing_suffixes_context,
36438         u16_casing_suffixes_context, u32_casing_suffixes_context,
36439         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36440         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36441         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36442         declarations.
36443
36444 2009-06-28  Jim Meyering  <meyering@redhat.com>
36445
36446         boostrap: indent only with spaces
36447         * build-aux/bootstrap: Indent only with spaces, never TABs.
36448
36449         bootstrap: split long lines
36450         * build-aux/bootstrap: Keep line length < 80.
36451
36452         bootstrap: sync from coreutils
36453         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36454         just as autoreconf does.  Verify a list of prerequisite
36455         package-name,version-number pairs if defined in bootstrap.conf.
36456         Refer to README-prereq, if prerequisites are not satisfied.
36457
36458 2009-06-27  Eric Blake  <ebb9@byu.net>
36459
36460         tests: add test for bogus NULL definition
36461         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36462         * tests/test-stdlib.c: Likewise.
36463         * tests/test-string.c: Likewise.
36464         * tests/test-locale.c: Likewise.
36465         * tests/test-unistd.c: Likewise.
36466         * modules/stdio-tests (Depends-on): Add verify.
36467         * modules/stdlib-tests (Depends-on): Likewise.
36468         * modules/string-tests (Depends-on): Likewise.
36469         * modules/locale-tests (Depends-on): Likewise.
36470         * modules/unistd-tests (Depends-on): Likewise.
36471
36472 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36473
36474         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36475         self-explaining comment.
36476         * m4/selinux-selinux-h: Update serial.
36477         (gl_LIBSELINUX): New macro, adding a warning for missing development
36478         packages to code extracted from...
36479         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36480         Add warning for missing development packages here, too.
36481
36482 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36483
36484         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36485
36486 2009-06-25  Eric Blake  <ebb9@byu.net>
36487
36488         version-etc: fix regression
36489         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36490         gcc.
36491         (version_etc): Use it, to catch bugs with trailing NULL.
36492         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36493         (version_etc_va): Fix logic bug.
36494         * modules/version-etc-tests: Add test.
36495         * tests/test-version-etc.c: New file.
36496         * tests/test-version-etc.sh: Likewise.
36497
36498 2009-06-25  Sam Steingold  <sds@gnu.org>
36499
36500         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36501         mbtowc declaration.
36502
36503 2009-06-25  Eric Blake  <ebb9@byu.net>
36504
36505         fpurge: migrate into <stdio.h>
36506         * lib/fpurge.h: Delete...
36507         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36508         * lib/fpurge.c (fpurge): Change declaring header.
36509         * modules/fpurge (Files): Drop deleted file.
36510         (Depends-on): Add stdio.
36511         (configure.ac): Set witness.
36512         * modules/stdio (Makefile.am): Support fpurge macros.
36513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36514         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36515         * lib/fflush.c: Update client.
36516         * tests/test-fpurge.c: Likewise.
36517         * NEWS: Mention the change.
36518
36519 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36520
36521         * lib/argp-version-etc.c (program_authors): Add const
36522         qualifier.
36523         * lib/version-etc.c: Fix typos in the comments.
36524         * modules/argp-version-etc: Depends on version-etc.
36525
36526 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36527
36528         argp-version-etc: new module.
36529
36530         * lib/argp-version-etc.c: New file.
36531         * lib/argp-version-etc.h: New file.
36532         * modules/argp-version-etc: New file.
36533         * modules/argp-version-etc-tests: New file.
36534         * tests/test-argp-version-etc.c: New test.
36535         * tests/test-argp-version-etc-1.sh: New test.
36536
36537 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36538
36539         Provide additional interfaces and documentation for version-etc
36540         module.
36541
36542         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36543         interfaces.
36544         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36545         prototypes.
36546
36547 2009-06-24  Bruno Haible  <bruno@clisp.org>
36548
36549         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36550         HAVE_LIB${NAME} macro.
36551         Reported by Sam Steingold <sds@gnu.org>.
36552
36553 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36554
36555         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36556         needed.
36557
36558 2009-06-21  Bruno Haible  <bruno@clisp.org>
36559
36560         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36561         work.
36562         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36563         together with LIB${NAME}, LTLIB${NAME}.
36564         Reported by Sam Steingold <sds@gnu.org>.
36565
36566 2009-06-20  Jim Meyering  <meyering@redhat.com>
36567
36568         tests: make sc_require_test_exit_idiom more generic
36569         * top/maint.mk (Exit_witness_file): New overridable variable.
36570         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36571         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36572
36573 2009-06-19  Jim Meyering  <meyering@redhat.com>
36574
36575         hash: reverse order of src/dst parameters in an internal interface
36576         * lib/hash.c (transfer_entries): Reverse order of parameters to
36577         put DST before SRC.  Adjust callers.
36578
36579         tests: test-hash: avoid wholesale duplication
36580         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36581         Instead, use a loop and add a single conditional.
36582
36583         tests: test-hash: allow seed selection via a command line argument
36584         * tests/test-hash.c (get_seed): New function.
36585         (main): Use it.
36586
36587 2009-06-19  Eric Blake  <ebb9@byu.net>
36588
36589         hash: avoid memory leak on allocation failure
36590         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36591         failure.  Factor repeated algorithm...
36592         (transfer_entries): ...into new helper routine.
36593         (hash_delete): React to hash_rehash return value.
36594
36595         hash: reduce memory pressure in hash_rehash no-op case
36596         * lib/hash.c (next_prime): Avoid overflow.
36597         (hash_initialize): Factor bucket size computation...
36598         (compute_bucket_size): ...into new helper function.
36599         (hash_rehash): Use new function and open coding to reduce memory
36600         pressure, and avoid a memory leak in USE_OBSTACK code.
36601         Reported by Jim Meyering.
36602
36603 2009-06-18  Eric Blake  <ebb9@byu.net>
36604
36605         hash: make rotation more obvious
36606         * modules/hash (Depends-on): Add bitrotate and stdint.
36607         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36608         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36609         (SIZE_MAX): Rely on headers for definition.
36610         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36611         (raw_hasher): Use rotr_sz.
36612         Suggested by Jim Meyering.
36613
36614         hash: fix memory leak in last patch
36615         * lib/hash.c (hash_rehash): Avoid memory leak.
36616
36617         hash: avoid no-op rehashing
36618         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36619
36620         hash: provide default callback functions
36621         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36622         (hash_initialize): Use them as defaults.
36623         * tests/test-hash.c (main): Test this.
36624
36625         hash: minor optimization
36626         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36627         when possible.
36628         (hash_initialize): Document this promise.
36629         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36630         * tests/test-hash.c (hash_compare_strings): Test this.
36631
36632 2009-06-18  Bruno Haible  <bruno@clisp.org>
36633
36634         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36635         going to be replaced anyway.
36636
36637 2009-06-18  Bruno Haible  <bruno@clisp.org>
36638
36639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36640         in one place.
36641         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36642         be replaced anyway.
36643
36644 2009-06-18  Eric Blake  <ebb9@byu.net>
36645
36646         hash: check for resize before insertion
36647         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36648         threshold before insertion, so that a pathological hash_rehash
36649         that fills every bucket can still trigger another rehash.
36650
36651 2009-06-18  Jim Meyering  <meyering@redhat.com>
36652
36653         hash-tests: add a loop around the small tests
36654         * tests/test-hash.c (main): Repeat small tests with selected
36655         small initial table sizes.
36656
36657 2009-06-17  Eric Blake  <ebb9@byu.net>
36658
36659         hash: minor cleanups
36660         * lib/hash.h (hash_entry): Make opaque, by moving...
36661         * lib/hash.c (hash_entry): ...here.
36662         (hash_insert): Clarify restrictions on what can be inserted.
36663         (hash_get_next): Clarify when it is safe to remove an element
36664         during traversal.
36665         (check_tuning): Skip verification when tuning is known safe.
36666         (hash_initialize): Clarify restrictions on tuning.
36667
36668 2009-06-17  Jim Meyering  <jim@meyering.net>
36669         and Eric Blake  <ebb9@byu.net>
36670
36671         hash-tests: new module
36672         * modules/hash-tests: New file.
36673         * tests/test-hash.c: New file.
36674
36675 2009-06-17  Eric Blake  <ebb9@byu.net>
36676
36677         strstr-simple: document new module
36678         * MODULES.html.sh: Document new module.
36679
36680         strstr, strcasestr: replace on platforms with broken memchr
36681         * modules/strstr: Split into...
36682         * modules/strstr-simple: ...new module that does not care about
36683         performance, but does care about glibc bug.
36684         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36685         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36686         if platform memchr is broken, per Debian bug 521737.
36687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36688         memchr.
36689         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36690         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36691         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36692         * modules/mountlist (Depends-on): Add strstr-simple.
36693         * modules/gen-uni-tables (Depends-on): Likewise.
36694         * modules/argz (Depends-on): Add strstr.
36695
36696 2009-06-17  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/posix_spawn-internal (Depends-on): Add errno.
36699
36700 2009-06-17  Bruno Haible  <bruno@clisp.org>
36701
36702         Define missing ESTALE on Interix 3.5.
36703         * lib/errno.in.h (ESTALE): Assign a value if missing.
36704         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36706         missing.
36707         * doc/posix-headers/errno.texi: Mention the Interix bug.
36708         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36709
36710 2009-06-15  Eric Blake  <ebb9@byu.net>
36711
36712         memchr, memchr2: add valgrind exception
36713         * lib/memchr.valgrind: New file.
36714         * lib/memchr2.valgrind: New file.
36715         * modules/memchr (Files): Distribute valgrind file.
36716         * modules/memchr2 (Files): Likewise.
36717
36718         docs: memchr is no longer obsolete
36719         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36720         * lib/string.in.h (memchr): Simplify logic.
36721
36722 2009-06-14  Jim Meyering  <meyering@redhat.com>
36723
36724         link-follow: fix the "checking..." message to not mention trailing slash
36725         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36726         never considered trailing slashes.
36727
36728 2009-06-14  Bruno Haible  <bruno@clisp.org>
36729
36730         * m4/memchr.m4: Mention also the bug on IA-64.
36731         * doc/posix-functions/memchr.texi: Likewise.
36732
36733 2009-06-12  Eric Blake  <ebb9@byu.net>
36734
36735         memchr: detect broken x86_64 and alpha implementations
36736         * modules/memchr-tests (Depends-on): Move mmap detection...
36737         * modules/memchr (Depends-on): ...here.
36738         (configure.ac): Set indicator.
36739         * lib/string.in.h (memchr): Declare replacement.
36740         * modules/string (Makefile.am): Trigger replacement.
36741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36742         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36743         bugs.
36744         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36745         * modules/getpagesize (License): Relax license.
36746
36747 2009-06-11  Bruno Haible  <bruno@clisp.org>
36748
36749         * lib/idpriv.h: Add more references.
36750
36751 2009-06-08  Bruno Haible  <bruno@clisp.org>
36752
36753         Tests for module 'idpriv-droptemp'.
36754         * modules/idpriv-droptemp-tests: New file.
36755         * tests/test-idpriv-droptemp.sh: New file.
36756         * tests/test-idpriv-droptemp.su.sh: New file.
36757         * tests/test-idpriv-droptemp.c: New file.
36758
36759         New module 'idpriv-droptemp'.
36760         * lib/idpriv-droptemp.c: New file.
36761         * modules/idpriv-droptemp: New file.
36762
36763 2009-06-08  Bruno Haible  <bruno@clisp.org>
36764
36765         Tests for module 'idpriv-drop'.
36766         * modules/idpriv-drop-tests: New file.
36767         * tests/test-idpriv-drop.sh: New file.
36768         * tests/test-idpriv-drop.su.sh: New file.
36769         * tests/test-idpriv-drop.c: New file.
36770
36771         New module 'idpriv-drop'.
36772         * lib/idpriv.h: New file.
36773         * lib-idpriv-drop.c: New file.
36774         * m4/idpriv.m4: New file.
36775         * modules/idpriv-drop: New file.
36776
36777 2009-06-08  Bruno Haible  <bruno@clisp.org>
36778
36779         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36780         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36781         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36782         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36783         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36784         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36785         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36786
36787 2009-06-08  Eric Blake  <ebb9@byu.net>
36788
36789         test-strstr: use memory fence, when possible
36790         * tests/test-strstr.c (main): Use memory fence, in order to be
36791         more likely to trigger Debian bug 521737.
36792         * modules/strstr-tests (Files): Pull in additional files.
36793
36794         memchr: no longer obsolete, for wider field testing
36795         * modules/memchr (Status, Notice): Delete, this module is no
36796         longer obsolete.
36797         * modules/vasnprintf (Depends-on): Add memchr.
36798
36799 2009-06-07  Jim Meyering  <meyering@redhat.com>
36800
36801         hash: declare some functions with the warn_unused_result attribute
36802         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36803
36804 2009-06-07  Bruno Haible  <bruno@clisp.org>
36805
36806         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36807         Reported by Eric Blake.
36808
36809 2009-06-06  Eric Blake  <ebb9@byu.net>
36810
36811         test-alignof: fix typo with long double
36812         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36813         compiler error.
36814
36815 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36816
36817         Escape non-texinfo { and }s.
36818         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36819         markup error.
36820
36821 2009-06-04  Jim Meyering  <meyering@redhat.com>
36822
36823         gitlog-to-changelog: don't infloop on an empty commit log
36824         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36825         Reported by Boris Petersen <transacid@centerim.org>.
36826
36827 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36828
36829         version-etc: extend for packagers
36830         Add three new configure options, intended for packagers:
36831           --with-packager="packager name"
36832           --with-packager-version="packager-specific version"
36833           --with-packager-bug-reports="packager bug reporting"
36834         An example with coreutils:
36835           $ ./configure \
36836             --with-packager=Gentoo \
36837             --with-packager-bug-report=http://bugs.gentoo.org/ \
36838             --with-packager-version="patchset 1.6"
36839           $ ./src/ls --version | head -n2
36840           ls (GNU coreutils) 7.1-dirty
36841           Packaged by Gentoo (patchset 1.6)
36842         Note that the bug reporting info via --help doesn't show up because
36843         coreutils uses its own custom emit_bug_reporting_address() implementation
36844         in src/system.h.  If it didn't, it'd look like:
36845           $ ./src/ls --help | tail -n4
36846           Report bugs to <bug-coreutils@gnu.org>.
36847           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36848           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36849           General help using GNU software: <http://www.gnu.org/gethelp/>.
36850         * lib/version-etc.c: Print new information, if provided.
36851         * m4/version-etc.m4: New file.
36852         * modules/version-etc (Files): Add m4/version-etc.m4.
36853         (configure.ac): Add gl_VERSION_ETC.
36854
36855 2009-05-31  Bruno Haible  <bruno@clisp.org>
36856
36857         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36858         and 'int64_t'.
36859         * modules/alignof-tests (Dependencies): Add stdint.
36860         Reported by Eric Blake.
36861
36862 2009-05-31  Bruno Haible  <bruno@clisp.org>
36863
36864         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36865         restriction due to compiler bugs.
36866         Reported by Eric Blake.
36867
36868 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36869             Bruno Haible  <bruno@clisp.org>
36870
36871         Fix test-alignof failure.
36872         * lib/alignof.h (alignof_slot): New macro.
36873         (alignof_type): New macro, with the same semantics as the previous
36874         'alignof'.
36875         (alignof): Alias to alignof_slot.
36876         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36877         check that the results are usable as constant expressions.
36878
36879 2009-05-31  Bruno Haible  <bruno@clisp.org>
36880
36881         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36882         * tests/test-memchr.c (main): Check that memchr does not read past the
36883         first occurrence of the byte.
36884         * tests/test-strstr.c (main): Update comment.
36885         Suggested by Eric Blake.
36886
36887 2009-05-30  Bruno Haible  <bruno@clisp.org>
36888
36889         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36890         detail how to use dumpbin.
36891         Reported by David Byron <dbyron@dbyron.com>.
36892
36893 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36894
36895         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36896
36897 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36898
36899         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36900
36901 2009-05-28  Bruno Haible  <bruno@clisp.org>
36902
36903         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36904         build-aux/ files.
36905
36906 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36907
36908         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36909
36910 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36911
36912         * gnulib-tool (sed_transform_main_lib_file)
36913         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36914         regexps.
36915
36916 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36917
36918         * tests/test-strstr.c: Add another self-test.
36919         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36920         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36921
36922 2009-05-23  Bruno Haible  <bruno@clisp.org>
36923
36924         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36925         change.
36926
36927 2009-05-21  Bruno Haible  <bruno@clisp.org>
36928
36929         Simplify use of mode_t varargs.
36930         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36931         uses 'mode_t' or 'int'.
36932         * lib/openat.c (openat): Likewise.
36933         * lib/open-safer.c (open_safer): Likewise.
36934         * m4/mode_t.m4: New file.
36935         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36936         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36937         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36938         * modules/open (Files): Add m4/mode_t.m4.
36939         * modules/openat (Files): Likewise.
36940         * modules/fcntl-safer (Files): Likewise.
36941         Suggested by Eric Blake.
36942
36943 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36944
36945         * doc/glibc-functions/fallocate.texi: New file.
36946         * doc/gnulib.texi: Include it.
36947
36948 2009-05-21  Eric Blake  <ebb9@byu.net>
36949             Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36952         invocations.
36953         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36954
36955 2009-05-21  Eric Blake  <ebb9@byu.net>
36956             Bruno Haible  <bruno@clisp.org>
36957
36958         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36959         include_next. Fix of 2008-11-20 commit.
36960         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36961         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36962         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36963         NEXT_MATH_H.
36964         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36965         instead of NEXT_MATH_H.
36966
36967 2009-05-21  Bruno Haible  <bruno@clisp.org>
36968
36969         Avoid redefinition warnings for SIZE_MAX.
36970         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36971         Reported by Simon Josefsson.
36972
36973 2009-05-21  Bruno Haible  <bruno@clisp.org>
36974
36975         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36976         AC_CACHE_VAL.
36977
36978 2009-05-20  Bruno Haible  <bruno@clisp.org>
36979
36980         Make zeroptr.h work on mingw.
36981         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36982         mprotect.
36983         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36984         * modules/memchr2-tests (configure.ac): Likewise.
36985         * modules/memcmp-tests (configure.ac): Likewise.
36986         * modules/memmem-tests (configure.ac): Likewise.
36987         * modules/memrchr-tests (configure.ac): Likewise.
36988         Reported by Simon Josefsson.
36989
36990 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36991
36992         * tests/test-glob.c: Include string.h for strcmp prototype.
36993
36994 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36995
36996         * modules/getdelim (Depends-on): Add explicit stdint, although it
36997         was implicitly already pulled in via realloc-posix.
36998         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36999
37000 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37001
37002         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37003         G. Christensen" <tgc@jupiterrise.com>.
37004         * m4/sys_socket_h.m4: Check for sa_family_t.
37005         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37006         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37007         * tests/test-sys_socket.c: Check that sa_family_t works.
37008
37009 2009-05-18  Eric Blake  <ebb9@byu.net>
37010
37011         maint.mk: allow gnulib_dir in VPATH build
37012         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37013
37014 2009-05-15  Jim Meyering  <meyering@redhat.com>
37015
37016         maint.mk: Give gnulib_dir a default definition.
37017         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37018         Thus, most packages no longer need to specify this variable in cfg.mk
37019
37020 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37021
37022         rename.m4: fix typos that would make non-mingw cross-configure fail
37023         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37024
37025 2009-05-13  Eric Blake  <ebb9@byu.net>
37026
37027         mmap-anon: avoid out-of-order autoconf expansion
37028         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37029         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37030         * modules/memchr-tests (Depends-on): Add extensions.
37031         * modules/memchr2-tests (Depends-on): Add extensions.
37032         * modules/memcmp-tests (Depends-on): Add extensions.
37033         * modules/memmem-tests (Depends-on): Add extensions.
37034         * modules/memrchr-tests (Depends-on): Add extensions.
37035
37036 2009-05-13  Bruno Haible  <bruno@clisp.org>
37037
37038         Make some tests ISO C 99 compliant.
37039         * tests/zerosize-ptr.h: New file.
37040         * tests/test-memchr.c: Include zerosize-ptr.h.
37041         (main): Use a zero-size object pointer instead of NULL.
37042         * tests/test-memchr2.c: Include zerosize-ptr.h.
37043         (main): Use a zero-size object pointer instead of NULL.
37044         * tests/test-memcmp.c: Include zerosize-ptr.h.
37045         (main): Use a zero-size object pointer instead of NULL.
37046         * tests/test-memmem.c: Include zerosize-ptr.h.
37047         (main): Use a zero-size object pointer instead of NULL.
37048         * tests/test-memrchr.c: Include zerosize-ptr.h.
37049         (main): Use a zero-size object pointer instead of NULL.
37050         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37051         m4/mmap-anon.m4.
37052         (Depends-on): Add getpagesize.
37053         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37054         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37055         m4/mmap-anon.m4.
37056         (Depends-on): Add getpagesize.
37057         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37058         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37059         m4/mmap-anon.m4.
37060         (Depends-on): Add getpagesize.
37061         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37062         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37063         m4/mmap-anon.m4.
37064         (Depends-on): Add getpagesize.
37065         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37066         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37067         m4/mmap-anon.m4.
37068         (Depends-on): Add getpagesize.
37069         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37070
37071 2009-05-12  Bruno Haible  <bruno@clisp.org>
37072
37073         Tests for module 'alignof'.
37074         * modules/alignof-tests: New file.
37075         * tests/test-alignof.c: New file.
37076
37077 2009-05-12  Bruno Haible  <bruno@clisp.org>
37078
37079         Fix alignof macro.
37080         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37081         vendor compilers that are always correct.
37082
37083 2009-05-12  Bruno Haible  <bruno@clisp.org>
37084
37085         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37086         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37087         not whether its fully works.
37088
37089 2009-05-12  Bruno Haible  <bruno@clisp.org>
37090
37091         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37092
37093 2009-05-12  Jim Meyering  <meyering@redhat.com>
37094
37095         * top/maint.mk: Adjust backslash alignment.
37096
37097 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37098
37099         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37100
37101 2009-05-11  Eric Blake  <ebb9@byu.net>
37102
37103         argp: avoid undefined behavior
37104         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37105         macros.
37106
37107 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37108
37109         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37110         user.name to prevent git commit from complaining.
37111
37112 2009-05-10  Bruno Haible  <bruno@clisp.org>
37113
37114         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37115         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37116         it rewrites every file name only once.
37117         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37118
37119 2009-05-08  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37122         instead of 'max'.
37123
37124 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37125
37126         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37127         sockaddr_storage test.
37128
37129 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37130
37131         * modules/sys_socket (Makefile.am): Substitute
37132         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37133         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37134         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37135         * tests/test-sys_socket.c: Check sockaddr_storage.
37136
37137 2009-05-08  Bruno Haible  <bruno@clisp.org>
37138
37139         New module 'alignof'.
37140         * lib/alignof.h: New file.
37141         * modules/alignof: New file.
37142
37143 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37144             Bruno Haible  <bruno@clisp.org>
37145
37146         Fix test-file-has-acl on FreeBSD.
37147         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37148         mask is implicitly added.
37149         * tests/test-file-has-acl.c: Include <signal.h>.
37150         (main): Terminate the test after 5 seconds.
37151         * modules/acl-tests (configure.ac): Check for alarm function.
37152
37153 2009-05-04  Bruno Haible  <bruno@clisp.org>
37154
37155         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37157         * modules/errno (configure.ac): Drop AC_REQUIRE.
37158         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37159         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37160
37161 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37162
37163         * modules/glob-tests: New module.
37164         * tests/test-glob.c: Add.
37165
37166 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37167
37168         * modules/fnmatch-tests: New module.
37169         * tests/test-fnmatch.c: Add.
37170
37171 2009-05-04  Eric Blake  <ebb9@byu.net>
37172
37173         maint: make the new no-submodule-changes rule VPATH-safe
37174         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37175
37176 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37177             Bruno Haible  <bruno@clisp.org>
37178
37179         acl: Fix infinite loop on FreeBSD.
37180         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37181         of return value from acl_get_entry.
37182         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37183         Likewise.
37184
37185 2009-05-03  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/acl-internal.h (acl_entries): Clarify return value.
37188         * lib/acl_entries.c (acl_entries): Likewise.
37189
37190 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37191
37192         Bug fix in acl module.
37193         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37194
37195 2009-05-03  Bruno Haible  <bruno@clisp.org>
37196
37197         Create gperf-generated file in the source dir, not in the build dir.
37198         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37199         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37200         * modules/unicase/locale-language (unicase/locale-languages.h):
37201         Likewise.
37202         * modules/unicase/special-casing (unicase/special-casing-table.h):
37203         Likewise.
37204         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37205         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37206         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37207         Reported by Ralf Wildenhues.
37208
37209 2009-05-03  Bruno Haible  <bruno@clisp.org>
37210
37211         * modules/fnmatch (Description, configure.ac): Taken from
37212         fnmatch-posix.
37213         * modules/fnmatch-posix: Turn into a symbolic reference to the
37214         'fnmatch' module, and deprecate.
37215         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37216
37217 2009-05-03  Bruno Haible  <bruno@clisp.org>
37218
37219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37220         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37221         Reported by Ralf Wildenhues.
37222
37223 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37224
37225         * m4/fnmatch.m4: Fix fnmatch re-define.
37226
37227 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37228
37229         priv-set: new module and tests; adapt write-any-file
37230         * lib/priv-set.c: New file.
37231         * lib/priv-set.h: New file.
37232         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37233         * lib/write-any-file.c: Simplify by using priv-set module.
37234         * m4/priv-set.m4: New file.
37235         * modules/priv-set: New file.
37236         * modules/unlinkdir: Add dependency on priv-set module.
37237         * modules/write-any-file: Likewise.
37238
37239         Tests for module 'priv-set'.
37240         * modules/priv-set-tests: New file.
37241         * tests/test-priv-set.c: New file.
37242
37243 2009-05-03  Jim Meyering  <meyering@redhat.com>
37244             Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37247         use the converted UTF-8 variant of the name instead.
37248
37249 2009-05-03  Jim Meyering  <meyering@redhat.com>
37250
37251         tests: tighten some getdate tests
37252         * tests/test-getdate.c (main): Tighten tests: require equality,
37253         not just greater than.  Set TZ envvar to UTC0.
37254
37255 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37256
37257         getdate: correctly interpret "next monday" when run on a Monday
37258         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37259         that e.g., "next tues" (when run on a tuesday) results in a date
37260         that is one week in the future, and not today's date.
37261         I.e., add a week when the wday is the same as the current one.
37262         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37263         and earlier by Martin Bernreuther and Jan Minář.
37264         * tests/test-getdate.c (main): Check that "next DAY" is always in
37265         the future and that "last DAY" is always in the past.
37266
37267 2009-05-02  Jim Meyering  <meyering@redhat.com>
37268
37269         build: ensure that a release build fails when a submodule is unclean
37270         * top/maint.mk (no-submodule-changes): New rule.
37271         (alpha beta major): Depend on it.
37272
37273 2009-05-02  Bruno Haible  <bruno@clisp.org>
37274
37275         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37277         shell variable gl_fnmatch_required to detect which variant is
37278         requested.
37279         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37280         gl_FUNC_FNMATCH_POSIX.
37281         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37282         exclude fnmatch-posix.
37283
37284 2009-05-02  Bruno Haible  <bruno@clisp.org>
37285
37286         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37287         * modules/mbsrtowcs (License): Change to LGPLv2+.
37288         * modules/strnlen1 (License): Likewise.
37289         Reported by Simon Josefsson.
37290
37291 2009-05-02  Bruno Haible  <bruno@clisp.org>
37292
37293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37294         "cross".
37295         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37296         gnulib-tool was called with option --source-base=lib.
37297
37298 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37299
37300         Use automake *-local hooks without commands, for extensibility.
37301         * modules/localcharset (Makefile.am): Rename install-exec-local
37302         rule to install-exec-localcharset, and make it a prerequisite of
37303         install-exec-local.  Likewise, rename the uninstall-local rule to
37304         uninstall-localcharset, and make it a prerequisite of the former.
37305
37306 2009-05-01  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37309         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37310         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37312         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37313         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37314         m4/locale-zh.m4, m4/codeset.m4.
37315
37316         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37317         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37318         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37319         m4/locale-zh.m4.
37320
37321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37322         REPLACE_WCRTOMB if mbstate_t must be replaced.
37323         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37324         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37325
37326 2009-05-01  Bruno Haible  <bruno@clisp.org>
37327
37328         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37329         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37330         dngettext, dcngettext, textdomain, bindtextdomain,
37331         bind_textdomain_codeset): Undefine before redefining.
37332
37333 2009-04-30  Bruno Haible  <bruno@clisp.org>
37334
37335         Fix bug introduced on 2009-04-25.
37336         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37337         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37338         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37339         is defined.
37340         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37341         is defined.
37342         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37343         is defined.
37344         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37345
37346 2009-04-28  Bruno Haible  <bruno@clisp.org>
37347
37348         Comment tweaks.
37349         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37350         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37351         * lib/unicase.h (u*_casexfrm): Likewise.
37352         Reported by Paolo Bonzini.
37353
37354 2009-04-28  Bruno Haible  <bruno@clisp.org>
37355
37356         Fix a compilation error.
37357         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37358         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37359         Reported by Jim Meyering.
37360
37361 2009-04-27  Bruno Haible  <bruno@clisp.org>
37362
37363         New module 'libunistring'.
37364         * modules/libunistring: New file.
37365         * m4/libunistring.m4: New file.
37366         * MODULES.html.sh (Unicode string functions): Add it.
37367
37368 2009-04-27  Eric Blake  <ebb9@byu.net>
37369
37370         maint.mk: allow package-specific header to provide <config.h>
37371         * top/maint.mk (sc_require_config_h): New variable.
37372         (sc_require_config_h, sc_require_config_h_first): Use it.
37373
37374 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37375
37376         * top/maint.mk (sc_avoid_if_before_free): Except
37377         useless-if-before-free script.
37378
37379 2009-04-27  Eric Blake  <ebb9@byu.net>
37380
37381         maintainer-makefile: depend on all required helper scripts
37382         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37383         useless-if-before-free.
37384         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37385         version, rather than assuming gnulib checkout is available.
37386         Reported by Simen Josefsson.
37387
37388 2009-04-26  Bruno Haible  <bruno@clisp.org>
37389
37390         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37391         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37392         "../" or "..".
37393
37394 2009-04-26  Bruno Haible  <bruno@clisp.org>
37395
37396         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37397         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37398         AC_LIB_HAVE_LINKFLAGS.
37399
37400 2009-04-26  Bruno Haible  <bruno@clisp.org>
37401
37402         Simplify calling convention of u*_conv_from_encoding.
37403         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37404         u32_conv_from_encoding): Expect a resultbuf argument and return the
37405         result directly as a pointer.
37406         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37407         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37408         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37409         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37410         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37411         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37412         Update.
37413         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37414         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37415         * lib/vasnprintf.c (VASNPRINTF): Update.
37416         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37417         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37418         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37419         * NEWS: Mention the change.
37420
37421 2009-04-26  Bruno Haible  <bruno@clisp.org>
37422
37423         Simplify calling convention of u*_conv_to_encoding.
37424         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37425         u32_conv_to_encoding): Expect a resultbuf argument and return the
37426         result directly as a pointer.
37427         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37428         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37429         freeing scaled_offsets if mem_iconveha failed.
37430         * lib/unicase/u-casexfrm.h (FUNC): Update.
37431         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37432         * lib/vasnprintf.c (VASNPRINTF): Update.
37433         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37434         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37435         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37436         * NEWS: Mention the change.
37437
37438 2009-04-26  Bruno Haible  <bruno@clisp.org>
37439
37440         Avoid test failures on AIX and OSF/1.
37441         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37442         malloc(0).
37443         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37444         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37445         Likewise.
37446         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37447         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37448         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37449         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37450         * doc/posix-functions/malloc.texi: Document the portability problem
37451         related to malloc(0).
37452
37453 2009-04-26  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37456         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37457         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37458
37459 2009-04-25  Bruno Haible  <bruno@clisp.org>
37460
37461         Avoid link error when creating a namespace clean library.
37462         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37463         as macro with arguments if already defined as an alias.
37464         * lib/signbitf.c (gl_signbitf): Don't undefine.
37465         * lib/signbitd.c (gl_signbitd): Don't undefine.
37466         * lib/signbitl.c (gl_signbitl): Don't undefine.
37467
37468 2009-04-25  Jim Meyering  <meyering@redhat.com>
37469
37470         vc-list-files: fix another quoting bug
37471         * build-aux/vc-list-files: Avoid sed backslash expansion
37472         of pathological directory names.
37473
37474 2009-04-25  Eric Blake  <ebb9@byu.net>
37475
37476         vc-list-files: fix shell quoting error
37477         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37478         timestamp.
37479
37480 2009-04-25  Jim Meyering  <meyering@redhat.com>
37481
37482         vc-list-files: restore lost functionality with subdir argument
37483         * build-aux/vc-list-files: When given a non-"." sub-directory
37484         argument, substitute the $dir/ prefix back onto each resulting name.
37485         Otherwise, coreutils' root_tests check would fail.
37486
37487 2009-04-24  Eric Blake  <ebb9@byu.net>
37488
37489         vc-list-files: ignore git symlinks
37490         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37491         than ls-files, to ignore git symlinks.
37492
37493         maint.mk: import improvements from m4
37494         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37495         (move_if_change): Delete unused macro.
37496         (news-date-check, vc-diff-check): Support VPATH builds.
37497         (announcement): Likewise.  Split --bootstrap-tools list...
37498         (boostrap-tools): ...into separate list, which can be overridden
37499         in cfg.mk.
37500         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37501         requiring dependency on useless-if-before-free module.
37502         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37503         Support VPATH builds.
37504
37505 2009-04-24  Jim Meyering  <meyering@redhat.com>
37506
37507         maint.mk: remove coreutils-specific rules and variables
37508         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37509         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37510         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37511
37512         maint.mk: remove obsolete rule
37513         * top/maint.mk (rel-check): Remove rule.
37514         (WGET, WGETFLAGS): Remove now-unused variables.
37515
37516 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37517
37518         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37519         consistency.
37520
37521         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37522         '$(PATH_SEPARATOR)' instead of ':'.
37523
37524 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37525
37526         * lib/getopt1.c (main): Use 'const' for static array.
37527
37528 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37529
37530         * top/maint.mk: Sync with coreutils.
37531         * NEWS: Explain incompatibilities.
37532
37533 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37534             Bruno Haible  <bruno@clisp.org>
37535
37536         Fix cross-compilation results.
37537         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37538         statement, as third argument of AC_TRY_RUN.
37539         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37540         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37541         Likewise.
37542         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37543         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37544         Likewise.
37545         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37547         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37548
37549 2009-04-20  Bruno Haible  <bruno@clisp.org>
37550
37551         Avoid test failure on mingw.
37552         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37553
37554 2009-04-20  Bruno Haible  <bruno@clisp.org>
37555
37556         Avoid compilation error on mingw.
37557         * modules/localename-tests (Depends-on): Add locale.
37558
37559 2009-04-19  Bruno Haible  <bruno@clisp.org>
37560
37561         Support for building a shared library on Windows platforms.
37562         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37563         (main): Test the presence of UNINORM_NFC here.
37564         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37565         (main): Test the presence of UNINORM_NFD here.
37566         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37567         (main): Test the presence of UNINORM_NFKC here.
37568         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37569         (main): Test the presence of UNINORM_NFKD here.
37570
37571 2009-04-19  Bruno Haible  <bruno@clisp.org>
37572
37573         Avoid a compiler warning.
37574         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37575         Change type of variable 'sequence'.
37576
37577 2009-04-19  Bruno Haible  <bruno@clisp.org>
37578
37579         * modules/configmake (Makefile.am): When the contents of configmake.h
37580         does not change, arrange to preserve its modification time.
37581
37582 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37583
37584         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37585         gettext domain.
37586
37587 2009-04-16  Jim Meyering  <meyering@redhat.com>
37588
37589         useless-if-before-free: improve conversion code
37590         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37591         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37592
37593 2009-04-14  Bruno Haible  <bruno@clisp.org>
37594
37595         * modules/fcntl (Depends-on): Add extensions.
37596         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37597
37598 2009-04-12  Ben Pfaff  <blp@gnu.org>
37599
37600         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37601         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37602
37603 2009-03-20  Ben Pfaff  <blp@gnu.org>
37604
37605         Make rename replace existing destinations on Windows.
37606         * m4/rename.m4: Add test for Mingw.
37607         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37608         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37609         * doc/posix-functions/rename.texi: Document.
37610
37611 2009-04-10  Bruno Haible  <bruno@clisp.org>
37612
37613         New include file "iconveh.h".
37614         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37615         * lib/striconveh.h: Include it.
37616         (enum iconv_ilseq_handler): Remove definition.
37617         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37618         striconveh.h.
37619         * lib/striconveha.c: Include striconveh.h.
37620         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37621         * modules/striconveh (Files): Add lib/iconveh.h.
37622         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37623         lib/striconveh.h.
37624
37625 2009-04-10  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/uniconv.h: Update comment.
37628
37629 2009-04-10  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37632         always.
37633         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37634         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37635         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37636         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37637         "unistring-notinline.h", so that the function gets defined always.
37638         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37639         * lib/unistr/u8-uctomb.c: Likewise.
37640         * lib/unistr/u16-mbtouc.c: Likewise.
37641         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37642         * lib/unistr/u16-uctomb.c: Likewise.
37643         * lib/unistr/u32-mbtouc.c: Likewise.
37644         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37645         * lib/unistr/u32-uctomb.c: Likewise.
37646
37647 2009-04-10  Bruno Haible  <bruno@clisp.org>
37648
37649         Mark 'utime' obsolete.
37650         * modules/utime (Status, Notice): New sections.
37651         Suggested by Jim Meyering.
37652
37653         Fix cross-compile guess for utime test.
37654         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37655         autoconf.
37656         * doc/posix-functions/utime.texi: Give more precisions.
37657         Reported by Jan <ipif@ymail.com>.
37658
37659 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37660
37661         filevercmp: correct today's change
37662         * lib/filevercmp.c: Also handle coreutils' test inputs.
37663         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37664
37665         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37666         for reporting it.
37667         * lib/filevercmp.c: Special handle for "", "." and "..".
37668         * tests/test-filevercmp.c: Enlarge the set suite.
37669
37670 2009-04-07  Jim Meyering  <meyering@redhat.com>
37671
37672         useless-if-before-free: show how to remove braced useless free, too
37673         * build-aux/useless-if-before-free: still only in a comment, though.
37674
37675 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37676
37677         maint.mk: import changes to syntax-check macros from coreutils
37678         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37679         Use them in the relevant macros.
37680
37681 2009-04-06  Bruno Haible  <bruno@clisp.org>
37682
37683         Fix unportable use of bit-fields.
37684         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37685         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37686         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37687
37688 2009-04-06  Bruno Haible  <bruno@clisp.org>
37689
37690         Avoid test failures on AIX and OSF/1.
37691         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37692         that malloc(0) = NULL.
37693         * tests/unicase/test-u8-tolower.c (check): Likewise.
37694         * tests/unicase/test-u8-totitle.c (check): Likewise.
37695         * tests/unicase/test-u8-toupper.c (check): Likewise.
37696         * tests/unicase/test-u16-casefold.c (check): Likewise.
37697         * tests/unicase/test-u16-tolower.c (check): Likewise.
37698         * tests/unicase/test-u16-totitle.c (check): Likewise.
37699         * tests/unicase/test-u16-toupper.c (check): Likewise.
37700         * tests/unicase/test-u32-casefold.c (check): Likewise.
37701         * tests/unicase/test-u32-tolower.c (check): Likewise.
37702         * tests/unicase/test-u32-totitle.c (check): Likewise.
37703         * tests/unicase/test-u32-toupper.c (check): Likewise.
37704         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37705         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37706         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37707         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37708         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37709         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37710         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37711         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37712         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37713         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37714         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37715         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37716
37717 2009-04-05  Bruno Haible  <bruno@clisp.org>
37718
37719         Work around an autoconf limitation.
37720         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37721         comment line if it would be longer than 3 KB.
37722
37723 2009-04-05  Bruno Haible  <bruno@clisp.org>
37724
37725         Avoid test failure with libiconv-1.13.
37726         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37727         of the expected test results.
37728
37729 2009-04-05  Bruno Haible  <bruno@clisp.org>
37730
37731         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37732         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37733         that it should be installed.
37734
37735 2009-04-05  Bruno Haible  <bruno@clisp.org>
37736
37737         * gnulib-tool: New option --copy-file.
37738         (func_usage): Document it.
37739         (func_dest_tmpfilename): Moved out of func_import.
37740         (func_add_file, func_update_file): New functions, extracted from
37741         func_import.
37742         (func_import): Update.
37743
37744 2009-04-05  Karl Berry  <karl@gnu.org>
37745
37746         * README: prominently mention gnulib-tool.
37747         Rearrange sections so getting the code is near the top.
37748
37749 2009-04-05  Bruno Haible  <bruno@clisp.org>
37750
37751         * lib/unicase.h: Mention u*_cmp2.
37752         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37753         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37754         * lib/unicase/ulc-casecmp.c: Likewise.
37755         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37756         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37757         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37758         unistr/u8-cmp.
37759         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37760         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37761         unistr/u16-cmp.
37762         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37763         unistr/u32-cmp.
37764
37765         * lib/uninorm.h: Mention u*_cmp2.
37766         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37767         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37768         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37769         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37770         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37771         unistr/u8-cmp.
37772         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37773         unistr/u16-cmp.
37774         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37775         unistr/u32-cmp.
37776
37777         New module 'unistr/u32-cmp2'.
37778         * lib/unistr/u32-cmp2.c: New file.
37779         * modules/unistr/u32-cmp2: New file.
37780
37781         New module 'unistr/u16-cmp2'.
37782         * lib/unistr/u16-cmp2.c: New file.
37783         * modules/unistr/u16-cmp2: New file.
37784
37785         New module 'unistr/u8-cmp2'.
37786         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37787         * lib/unistr/u8-cmp2.c: New file.
37788         * lib/unistr/u-cmp2.h: New file.
37789         * modules/unistr/u8-cmp2: New file.
37790
37791 2009-04-05  Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/unictype.h (uc_property_is_valid): New macro.
37794         * tests/unictype/test-pr_byname.c (main): Use it.
37795
37796         * lib/unistr.h: Doc fixes.
37797         * lib/uniconv.h: Doc fixes.
37798         * lib/unictype.h: Doc fixes.
37799
37800 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37801
37802         Port coreutils 7.2 to Solaris 8.
37803
37804         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37805         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37806         for Solaris 8.  This is a bit of a hack, as it means it's the
37807         caller's responsibility to add -lnsl if needed, but most likely it
37808         won't be needed since only getaddrinfo uses this and getaddrinfo
37809         isn't needed on Solaris 8.
37810
37811         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37812         problem to Solaris 8 encountered with coreutils 7.2, which
37813         resulted in a message "fnmatch.c:292: warning: passing argument 4
37814         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37815         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37816
37817 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37818
37819         * m4/ld-version-script.m4: Add FIXME comment.
37820
37821 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37822
37823         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37824         SOVERSION variable.
37825
37826 2009-04-02  Bruno Haible  <bruno@clisp.org>
37827
37828         * Makefile (info, html, dvi, pdf): Combine the rules.
37829         Suggested by Jim Meyering.
37830
37831 2009-04-01  Bruno Haible  <bruno@clisp.org>
37832
37833         * Makefile (info, html, dvi, pdf): New targets.
37834         Reported by Reuben Thomas <rrt@sc3d.org>.
37835
37836 2009-04-01  Bruno Haible  <bruno@clisp.org>
37837
37838         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37839         can be put into PATH.
37840         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37841
37842 2009-04-01  Bruno Haible  <bruno@clisp.org>
37843
37844         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37845
37846 2009-04-01  Bruno Haible  <bruno@clisp.org>
37847
37848         Rename module 'visibility'.
37849         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37850         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37851         * doc/gnulib.texi: Update.
37852         * MODULES.html.sh (Misc): Update.
37853         * NEWS: Mention the change.
37854
37855 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37856
37857         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37858         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37859         Eric Blake <ebb9@byu.net> for review.
37860         * MODULES.html.sh: Add lib-msvc-compat.
37861         * doc/gnulib.texi: Link to new section.
37862         * m4/ld-output-def.m4: New file.
37863         * doc/ld-output-def.texi: New file.
37864
37865 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37866
37867         Rename ld-version-script to lib-symbol-versions.  Suggested by
37868         Bruno Haible <bruno@clisp.org>.
37869         * modules/ld-version-script: Renamed to lib-symbol-versions.
37870         * doc/ld-version-script.texi: Fix module name.
37871         * MODULES.html.sh: Add lib-symbol-versions.
37872
37873 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37874
37875         * modules/u64-tests: New file.
37876         * tests/test-u64.c: New file.
37877
37878 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37879
37880         * MODULES.html.sh: Mention u64.
37881         * modules/u64: New module.
37882         * modules/crypto/sha512: Depend on u64 module instead of providing
37883         u64.h.
37884
37885 2009-03-27  Eric Blake  <ebb9@byu.net>
37886
37887         test-strerror: make debugging EAI_SYSTEM easier
37888         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37889         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37890         failure was EAI_SYSTEM.
37891
37892 2009-03-25  Bruno Haible  <bruno@clisp.org>
37893
37894         Fix a problem with --enable-relocatable on Solaris 7.
37895         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37896         since 2008-02-24.
37897
37898 2009-03-25  Eric Blake  <ebb9@byu.net>
37899
37900         test-sockets: avoid gcc warning
37901         * tests/test-sockets.c (main): Silence compiler warning.
37902
37903 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37904
37905         New modules nproc, pthread, contributed by Glen Lenker.
37906
37907         * MODULES.html.sh: Add pthread, nproc.
37908         * lib/nproc.c: New file.
37909         * lib/nproc.h: New file.
37910         * lib/pthread.in.h: New file.
37911         * m4/pthread.m4: New file.
37912         * modules/nproc: New file.
37913         * modules/pthread: New file.
37914
37915 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37916
37917         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37918         New variable.
37919
37920 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37921
37922         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37923         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37924         * tests/test-filevercmp.c: Add tests for backup suffixes.
37925
37926 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37927
37928         * modules/stdlib (Depends-on): Add stdint, needed when defining
37929         struct random_data on, for example, HP-UX 10.20.  Reported by
37930         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37931
37932 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37933
37934         * lib/readline.c (readline): Call fflush on stdout after printing
37935         prompt.
37936
37937 2009-03-20  Bruno Haible  <bruno@clisp.org>
37938
37939         Remove dependency from 'close' module to -lws2_32 on native Windows.
37940         * lib/close-hook.h: New file.
37941         * lib/close-hook.c: New file.
37942         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37943         w32sock.h.
37944         (_gl_close_fd_maybe_socket): Remove function.
37945         (rpl_close): Invoke execute_all_close_hooks instead of
37946         _gl_close_fd_maybe_socket.
37947         * lib/sockets.c: Include close-hook.h, w32sock.h.
37948         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37949         (close_sockets_hook): New variable.
37950         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37951         (gl_sockets_cleanup): Unregister it.
37952         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37953         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37954         * modules/close-hook: New file.
37955         * modules/close (Files): Remove lib/w32sock.h.
37956         (Depends-on): Add close-hook.
37957         (Link): Remove section.
37958         * modules/sockets (Files): Add lib/w32sock.h.
37959         (Depends-on): Add close-hook.
37960         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37961         invocation.
37962         * NEWS: Mention that LIB_CLOSE is gone.
37963
37964 2009-03-23  Eric Blake  <ebb9@byu.net>
37965
37966         signal-tests: test previous patch
37967         * tests/test-signal.c: New file.
37968         * modules/signal-tests: Likewise.
37969
37970         signal.h: always support 'volatile sig_atomic_t'
37971         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37972         (gl_SIGNAL_H_DEFAULTS): Add a default.
37973         * modules/signal (Makefile.am): Substitute if needed.
37974         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37975         users can blindly add volatile.
37976         * doc/posix-headers/signal.texi (signal.h): Document it.
37977         Reported by Matthew Woehlke.
37978
37979 2009-03-23  Jim Meyering  <meyering@redhat.com>
37980
37981         pathmax: PATH_MAX: use pathconf only when available
37982         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37983         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37984         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37985         This avoids a link failure in a PSP cross-compilation environment
37986         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37987
37988         * lib/vasnprintf.c (divide): Fix typo in comment.
37989
37990 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37991
37992         * gnulib-tool (func_filter_filelist): Fix comment.
37993
37994 2009-03-20  Bruno Haible  <bruno@clisp.org>
37995
37996         Make sockets.h self-contained.
37997         * lib/sockets.c: Include sockets.h first.
37998         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37999
38000 2009-03-19  Eric Blake  <ebb9@byu.net>
38001
38002         doc: mention more functions added in cygwin 1.7.0
38003         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38004         addition.
38005         * doc/posix-functions/log2f.texi: Likewise.
38006
38007 2009-03-19  Jim Meyering  <meyering@redhat.com>
38008
38009         fsusage: avoid syntax error due to statement-before-declaration
38010         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38011         after all declarations.  Reported by Matthew Woehlke in
38012         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38013
38014 2009-03-18  Eric Blake  <ebb9@byu.net>
38015
38016         build-aux/compile: sync from automake
38017         * build-aux/compile: New file, from automake.
38018         * config/srclist.txt: Mention build-aux/compile.
38019
38020 2009-03-17  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/git-merge-changelog.c: Fix typo in comment.
38023         Reported by Reuben Thomas <rrt@sc3d.org>.
38024
38025 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38026
38027         * m4/regex.m4: update and improve help for
38028         --without-included-regex.
38029
38030 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38031
38032         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38033         failure on missing include files.
38034
38035 2009-03-17  Eric Blake  <ebb9@byu.net>
38036
38037         doc: mention more functions added in cygwin 1.7.0
38038         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38039         addition.
38040         * doc/posix-functions/fwscanf.texi: Likewise.
38041         * doc/posix-functions/swprintf.texi: Likewise.
38042         * doc/posix-functions/swscanf.texi: Likewise.
38043         * doc/posix-functions/vfwprintf.texi: Likewise.
38044         * doc/posix-functions/vfwscanf.texi: Likewise.
38045         * doc/posix-functions/vswprintf.texi: Likewise.
38046         * doc/posix-functions/vswscanf.texi: Likewise.
38047         * doc/posix-functions/vwprintf.texi: Likewise.
38048         * doc/posix-functions/vwscanf.texi: Likewise.
38049         * doc/posix-functions/wcscasecmp.texi: Likewise.
38050         * doc/posix-functions/wcsdup.texi: Likewise.
38051         * doc/posix-functions/wcsftime.texi: Likewise.
38052         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38053         * doc/posix-functions/wprintf.texi: Likewise.
38054         * doc/posix-functions/wscanf.texi: Likewise.
38055         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38056
38057 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38058
38059         maint.mk: really add $(AM_MAKEFLAGS)
38060         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38061         was inadvertently omitted in the last commit.
38062         Spotted by Bruno Haible.
38063
38064         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38065         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38066         $(AM_MAKEFLAGS)' rather than plain `make'.
38067
38068         gnulib-tool: execute $MAKE not make
38069         * gnulib-tool: Default $MAKE to 'make'.
38070         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38071         than make.  Initialize $MAKE in the do-autobuild script.
38072
38073         gnulib-tool: use $MAKE not make in generated files
38074         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38075         make, in generated files.  Initialize $MAKE in the do-autobuild
38076         script.
38077
38078         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38079
38080         GNUmakefile: disable parallelism only for multiple, recursive targets
38081         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38082         additions in the Makefile.
38083         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38084         by Automake.
38085         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38086         are listed on the command line and at least one of them is
38087         listed in $(ALL_RECURSIVE_TARGETS).
38088
38089 2009-03-14  Bruno Haible  <bruno@clisp.org>
38090
38091         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38092         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38093         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38094         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38095         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38096         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38097         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38098         unistr/u8-uctomb.
38099         * modules/unistr/u8-strchr (Depends-on): Likewise.
38100         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38101         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38102         unistr/u16-uctomb.
38103         * modules/unistr/u16-strchr (Depends-on): Likewise.
38104         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38105
38106 2009-03-12  Bruno Haible  <bruno@clisp.org>
38107
38108         Work around select() bug on Interix 3.5.
38109         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38110         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38111         * m4/select.m4: New file.
38112         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38113         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38114         * modules/select (Files): Add m4/select.m4.
38115         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38116         * modules/nanosleep (Depends-on): Add select.
38117         * modules/poll (Depends-on): Likewise.
38118         * doc/posix-functions/select.texi: Mention the Interix bug.
38119         Reported by Markus Duft <mduft@gentoo.org>.
38120
38121         * lib/select.c: Renamed from lib/winsock-select.c.
38122         * modules/select (Files): Add lib/select.c, remove
38123         lib/winsock-select.c.
38124         (configure.ac): Update.
38125
38126 2009-03-12  Jim Meyering  <meyering@redhat.com>
38127
38128         avoid gcc warnings about unused macro definitions
38129         * lib/readtokens.c (STREQ): Remove unused definition.
38130         * lib/xmalloc.c (SIZE_MAX): Likewise.
38131         * lib/openat-die.c (N_): Likewise.
38132         * lib/mountlist.c (SIZE_MAX): Remove definition.
38133         Instead, include <stdint.h>.
38134         * lib/readutmp.c: Likewise.
38135         * modules/readutmp (Depends-on): Add stdint.
38136         * modules/mountlist (Depends-on): Add stdint.
38137         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38138
38139 2009-03-10  Bruno Haible  <bruno@clisp.org>
38140
38141         Tests for module 'mbmemcasecoll'.
38142         * modules/mbmemcasecoll-tests: New file.
38143         * tests/test-mbmemcasecoll1.sh: New file.
38144         * tests/test-mbmemcasecoll2.sh: New file.
38145         * tests/test-mbmemcasecoll3.sh: New file.
38146         * tests/test-mbmemcasecoll.c: New file.
38147
38148         New module 'mbmemcasecoll'.
38149         * lib/mbmemcasecoll.h: New file.
38150         * lib/mbmemcasecoll.c: New file.
38151         * modules/mbmemcasecoll: New file.
38152
38153         * tests/test-mbmemcasecmp.h: New file, extracted from
38154         tests/test-mbmemcasecmp.c.
38155         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38156         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38157         (main): Update.
38158         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38159
38160 2009-03-09  Bruno Haible  <bruno@clisp.org>
38161
38162         Tests for module 'mbmemcasecmp'.
38163         * modules/mbmemcasecmp-tests: New file.
38164         * tests/test-mbmemcasecmp1.sh: New file.
38165         * tests/test-mbmemcasecmp2.sh: New file.
38166         * tests/test-mbmemcasecmp3.sh: New file.
38167         * tests/test-mbmemcasecmp.c: New file.
38168
38169         New module 'mbmemcasecmp'.
38170         * lib/mbmemcasecmp.h: New file.
38171         * lib/mbmemcasecmp.c: New file.
38172         * modules/mbmemcasecmp: New file.
38173
38174 2009-03-09  Bruno Haible  <bruno@clisp.org>
38175
38176         Tests for module 'unicase/ulc-casecoll'.
38177         * modules/unicase/ulc-casecoll-tests: New file.
38178         * tests/unicase/test-ulc-casecoll1.sh: New file.
38179         * tests/unicase/test-ulc-casecoll2.sh: New file.
38180         * tests/unicase/test-ulc-casecoll.c: New file.
38181
38182         New module 'unicase/ulc-casecoll'.
38183         * lib/unicase.h (ulc_casecoll): New declaration.
38184         * lib/unicase/ulc-casecoll.c: New file.
38185         * modules/unicase/ulc-casecoll: New file.
38186
38187         New module 'unicase/ulc-casexfrm'.
38188         * lib/unicase.h (ulc_casexfrm): New declaration.
38189         * lib/unicase/ulc-casexfrm.c: New file.
38190         * modules/unicase/ulc-casexfrm: New file.
38191
38192 2009-03-09  Bruno Haible  <bruno@clisp.org>
38193
38194         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38195         invocations.
38196
38197         * m4/mbscasecmp.m4: Remove file.
38198         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38199         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38200
38201         * m4/mbscasestr.m4: Remove file.
38202         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38203         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38204
38205         * m4/mbschr.m4: Remove file.
38206         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38207         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38208
38209         * m4/mbscspn.m4: Remove file.
38210         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38211         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38212
38213         * m4/mbslen.m4: Remove file.
38214         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38215         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38216
38217         * m4/mbsncasecmp.m4: Remove file.
38218         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38219         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38220
38221         * m4/mbsnlen.m4: Remove file.
38222         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38223         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38224
38225         * m4/mbspbrk.m4: Remove file.
38226         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38227         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38228
38229         * m4/mbspcasecmp.m4: Remove file.
38230         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38231         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38232
38233         * m4/mbsrchr.m4: Remove file.
38234         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38235         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38236
38237         * m4/mbssep.m4: Remove file.
38238         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38239         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38240
38241         * m4/mbsspn.m4: Remove file.
38242         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38243         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38244
38245         * m4/mbsstr.m4: Remove file.
38246         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38247         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38248
38249         * m4/mbstok_r.m4: Remove file.
38250         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38251         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38252
38253         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38254
38255         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38256         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38257
38258         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38259
38260 2009-03-08  Bruno Haible  <bruno@clisp.org>
38261
38262         Tests for module 'unicase/ulc-casecmp'.
38263         * modules/unicase/ulc-casecmp-tests: New file.
38264         * tests/unicase/test-ulc-casecmp1.sh: New file.
38265         * tests/unicase/test-ulc-casecmp2.sh: New file.
38266         * tests/unicase/test-ulc-casecmp.c: New file.
38267
38268         New module 'unicase/ulc-casecmp'.
38269         * lib/unicase.h (ulc_casecmp): New declaration.
38270         * lib/unicase/ulc-casecmp.c: New file.
38271         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38272         'const SRC_UNIT *'.
38273         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38274         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38275         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38276         * modules/unicase/ulc-casecmp: New file.
38277
38278         Tests for module 'unicase/u32-is-cased'.
38279         * modules/unicase/u32-is-cased-tests: New file.
38280         * tests/unicase/test-u32-is-cased.c: New file.
38281
38282         Tests for module 'unicase/u16-is-cased'.
38283         * modules/unicase/u16-is-cased-tests: New file.
38284         * tests/unicase/test-u16-is-cased.c: New file.
38285
38286         Tests for module 'unicase/u8-is-cased'.
38287         * modules/unicase/u8-is-cased-tests: New file.
38288         * tests/unicase/test-u8-is-cased.c: New file.
38289         * tests/unicase/test-is-cased.h: New file.
38290
38291         New module 'unicase/u32-is-cased'.
38292         * lib/unicase/u32-is-cased.c: New file.
38293         * modules/unicase/u32-is-cased: New file.
38294
38295         New module 'unicase/u16-is-cased'.
38296         * lib/unicase/u16-is-cased.c: New file.
38297         * modules/unicase/u16-is-cased: New file.
38298
38299         New module 'unicase/u8-is-cased'.
38300         * lib/unicase/u8-is-cased.c: New file.
38301         * lib/unicase/u-is-cased.h: New file.
38302         * modules/unicase/u8-is-cased: New file.
38303
38304         Tests for module 'unicase/u32-is-casefolded'.
38305         * modules/unicase/u32-is-casefolded-tests: New file.
38306         * tests/unicase/test-u32-is-casefolded.c: New file.
38307
38308         Tests for module 'unicase/u16-is-casefolded'.
38309         * modules/unicase/u16-is-casefolded-tests: New file.
38310         * tests/unicase/test-u16-is-casefolded.c: New file.
38311
38312         Tests for module 'unicase/u8-is-casefolded'.
38313         * modules/unicase/u8-is-casefolded-tests: New file.
38314         * tests/unicase/test-u8-is-casefolded.c: New file.
38315         * tests/unicase/test-is-casefolded.h: New file.
38316
38317         New module 'unicase/u32-is-casefolded'.
38318         * lib/unicase/u32-is-casefolded.c: New file.
38319         * modules/unicase/u32-is-casefolded: New file.
38320
38321         New module 'unicase/u16-is-casefolded'.
38322         * lib/unicase/u16-is-casefolded.c: New file.
38323         * modules/unicase/u16-is-casefolded: New file.
38324
38325         New module 'unicase/u8-is-casefolded'.
38326         * lib/unicase/u8-is-casefolded.c: New file.
38327         * modules/unicase/u8-is-casefolded: New file.
38328
38329         Tests for module 'unicase/u32-is-titlecase'.
38330         * modules/unicase/u32-is-titlecase-tests: New file.
38331         * tests/unicase/test-u32-is-titlecase.c: New file.
38332
38333         Tests for module 'unicase/u16-is-titlecase'.
38334         * modules/unicase/u16-is-titlecase-tests: New file.
38335         * tests/unicase/test-u16-is-titlecase.c: New file.
38336
38337         Tests for module 'unicase/u8-is-titlecase'.
38338         * modules/unicase/u8-is-titlecase-tests: New file.
38339         * tests/unicase/test-u8-is-titlecase.c: New file.
38340         * tests/unicase/test-is-titlecase.h: New file.
38341
38342         New module 'unicase/u32-is-titlecase'.
38343         * lib/unicase/u32-is-titlecase.c: New file.
38344         * modules/unicase/u32-is-titlecase: New file.
38345
38346         New module 'unicase/u16-is-titlecase'.
38347         * lib/unicase/u16-is-titlecase.c: New file.
38348         * modules/unicase/u16-is-titlecase: New file.
38349
38350         New module 'unicase/u8-is-titlecase'.
38351         * lib/unicase/u8-is-titlecase.c: New file.
38352         * modules/unicase/u8-is-titlecase: New file.
38353
38354         Tests for module 'unicase/u32-is-lowercase'.
38355         * modules/unicase/u32-is-lowercase-tests: New file.
38356         * tests/unicase/test-u32-is-lowercase.c: New file.
38357
38358         Tests for module 'unicase/u16-is-lowercase'.
38359         * modules/unicase/u16-is-lowercase-tests: New file.
38360         * tests/unicase/test-u16-is-lowercase.c: New file.
38361
38362         Tests for module 'unicase/u8-is-lowercase'.
38363         * modules/unicase/u8-is-lowercase-tests: New file.
38364         * tests/unicase/test-u8-is-lowercase.c: New file.
38365         * tests/unicase/test-is-lowercase.h: New file.
38366
38367         New module 'unicase/u32-is-lowercase'.
38368         * lib/unicase/u32-is-lowercase.c: New file.
38369         * modules/unicase/u32-is-lowercase: New file.
38370
38371         New module 'unicase/u16-is-lowercase'.
38372         * lib/unicase/u16-is-lowercase.c: New file.
38373         * modules/unicase/u16-is-lowercase: New file.
38374
38375         New module 'unicase/u8-is-lowercase'.
38376         * lib/unicase/u8-is-lowercase.c: New file.
38377         * modules/unicase/u8-is-lowercase: New file.
38378
38379         Tests for module 'unicase/u32-is-uppercase'.
38380         * modules/unicase/u32-is-uppercase-tests: New file.
38381         * tests/unicase/test-u32-is-uppercase.c: New file.
38382
38383         Tests for module 'unicase/u16-is-uppercase'.
38384         * modules/unicase/u16-is-uppercase-tests: New file.
38385         * tests/unicase/test-u16-is-uppercase.c: New file.
38386
38387         Tests for module 'unicase/u8-is-uppercase'.
38388         * modules/unicase/u8-is-uppercase-tests: New file.
38389         * tests/unicase/test-u8-is-uppercase.c: New file.
38390         * tests/unicase/test-is-uppercase.h: New file.
38391
38392         New module 'unicase/u32-is-uppercase'.
38393         * lib/unicase/u32-is-uppercase.c: New file.
38394         * modules/unicase/u32-is-uppercase: New file.
38395
38396         New module 'unicase/u16-is-uppercase'.
38397         * lib/unicase/u16-is-uppercase.c: New file.
38398         * modules/unicase/u16-is-uppercase: New file.
38399
38400         New module 'unicase/u8-is-uppercase'.
38401         * lib/unicase/u8-is-uppercase.c: New file.
38402         * modules/unicase/u8-is-uppercase: New file.
38403
38404         New module 'unicase/u32-is-invariant'.
38405         * lib/unicase/u32-is-invariant.c: New file.
38406         * modules/unicase/u32-is-invariant: New file.
38407
38408         New module 'unicase/u16-is-invariant'.
38409         * lib/unicase/u16-is-invariant.c: New file.
38410         * modules/unicase/u16-is-invariant: New file.
38411
38412         New module 'unicase/u8-is-invariant'.
38413         * lib/unicase/u8-is-invariant.c: New file.
38414         * lib/unicase/invariant.h: New file.
38415         * lib/unicase/u-is-invariant.h: New file.
38416         * modules/unicase/u8-is-invariant: New file.
38417
38418         Tests for module 'unicase/u32-casecoll'.
38419         * modules/unicase/u32-casecoll-tests: New file.
38420         * tests/unicase/test-u32-casecoll.c: New file.
38421
38422         Tests for module 'unicase/u16-casecoll'.
38423         * modules/unicase/u16-casecoll-tests: New file.
38424         * tests/unicase/test-u16-casecoll.c: New file.
38425
38426         Tests for module 'unicase/u8-casecoll'.
38427         * modules/unicase/u8-casecoll-tests: New file.
38428         * tests/unicase/test-u8-casecoll.c: New file.
38429
38430         New module 'unicase/u32-casecoll'.
38431         * lib/unicase/u32-casecoll.c: New file.
38432         * modules/unicase/u32-casecoll: New file.
38433
38434         New module 'unicase/u16-casecoll'.
38435         * lib/unicase/u16-casecoll.c: New file.
38436         * modules/unicase/u16-casecoll: New file.
38437
38438         New module 'unicase/u8-casecoll'.
38439         * lib/unicase/u8-casecoll.c: New file.
38440         * lib/unicase/u-casecoll.h: New file.
38441         * modules/unicase/u8-casecoll: New file.
38442
38443         New module 'unicase/u32-casexfrm'.
38444         * lib/unicase/u32-casexfrm.c: New file.
38445         * modules/unicase/u32-casexfrm: New file.
38446
38447         New module 'unicase/u16-casexfrm'.
38448         * lib/unicase/u16-casexfrm.c: New file.
38449         * modules/unicase/u16-casexfrm: New file.
38450
38451         New module 'unicase/u8-casexfrm'.
38452         * lib/unicase/u8-casexfrm.c: New file.
38453         * lib/unicase/u-casexfrm.h: New file.
38454         * modules/unicase/u8-casexfrm: New file.
38455
38456         Tests for module 'unicase/u32-casecmp'.
38457         * modules/unicase/u32-casecmp-tests: New file.
38458         * tests/unicase/test-u32-casecmp.c: New file.
38459
38460         Tests for module 'unicase/u16-casecmp'.
38461         * modules/unicase/u16-casecmp-tests: New file.
38462         * tests/unicase/test-u16-casecmp.c: New file.
38463
38464         Tests for module 'unicase/u8-casecmp'.
38465         * modules/unicase/u8-casecmp-tests: New file.
38466         * tests/unicase/test-u8-casecmp.c: New file.
38467         * tests/unicase/test-casecmp.h: New file.
38468
38469         New module 'unicase/u32-casecmp'.
38470         * lib/unicase/u32-casecmp.c: New file.
38471         * modules/unicase/u32-casecmp: New file.
38472
38473         New module 'unicase/u16-casecmp'.
38474         * lib/unicase/u16-casecmp.c: New file.
38475         * modules/unicase/u16-casecmp: New file.
38476
38477         New module 'unicase/u8-casecmp'.
38478         * lib/unicase/u8-casecmp.c: New file.
38479         * lib/unicase/u-casecmp.h: New file.
38480         * modules/unicase/u8-casecmp: New file.
38481
38482         Tests for module 'unicase/u32-casefold'.
38483         * modules/unicase/u32-casefold-tests: New file.
38484         * tests/unicase/test-u32-casefold.c: New file.
38485
38486         Tests for module 'unicase/u16-casefold'.
38487         * modules/unicase/u16-casefold-tests: New file.
38488         * tests/unicase/test-u16-casefold.c: New file.
38489
38490         Tests for module 'unicase/u8-casefold'.
38491         * modules/unicase/u8-casefold-tests: New file.
38492         * tests/unicase/test-u8-casefold.c: New file.
38493
38494         New module 'unicase/u32-casefold'.
38495         * lib/unicase/u32-casefold.c: New file.
38496         * modules/unicase/u32-casefold: New file.
38497
38498         New module 'unicase/u16-casefold'.
38499         * lib/unicase/u16-casefold.c: New file.
38500         * modules/unicase/u16-casefold: New file.
38501
38502         New module 'unicase/u8-casefold'.
38503         * lib/unicase/u8-casefold.c: New file.
38504         * lib/unicase/u-casefold.h: New file.
38505         * modules/unicase/u8-casefold: New file.
38506
38507         New module 'unicase/tocasefold'.
38508         * lib/unicase/casefold.h: New file.
38509         * lib/unicase/tocasefold.c: New file.
38510         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38511         * modules/unicase/tocasefold: New file.
38512
38513         Tests for module 'unicase/u32-totitle'.
38514         * modules/unicase/u32-totitle-tests: New file.
38515         * tests/unicase/test-u32-totitle.c: New file.
38516
38517         Tests for module 'unicase/u16-totitle'.
38518         * modules/unicase/u16-totitle-tests: New file.
38519         * tests/unicase/test-u16-totitle.c: New file.
38520
38521         Tests for module 'unicase/u8-totitle'.
38522         * modules/unicase/u8-totitle-tests: New file.
38523         * tests/unicase/test-u8-totitle.c: New file.
38524
38525         New module 'unicase/u32-totitle'.
38526         * lib/unicase/u32-totitle.c: New file.
38527         * modules/unicase/u32-totitle: New file.
38528
38529         New module 'unicase/u16-totitle'.
38530         * lib/unicase/u16-totitle.c: New file.
38531         * modules/unicase/u16-totitle: New file.
38532
38533         New module 'unicase/u8-totitle'.
38534         * lib/unicase/u8-totitle.c: New file.
38535         * lib/unicase/u-totitle.h: New file.
38536         * modules/unicase/u8-totitle: New file.
38537
38538         Tests for module 'unicase/u32-tolower'.
38539         * modules/unicase/u32-tolower-tests: New file.
38540         * tests/unicase/test-u32-tolower.c: New file.
38541
38542         Tests for module 'unicase/u16-tolower'.
38543         * modules/unicase/u16-tolower-tests: New file.
38544         * tests/unicase/test-u16-tolower.c: New file.
38545
38546         Tests for module 'unicase/u8-tolower'.
38547         * modules/unicase/u8-tolower-tests: New file.
38548         * tests/unicase/test-u8-tolower.c: New file.
38549
38550         New module 'unicase/u32-tolower'.
38551         * lib/unicase/u32-tolower.c: New file.
38552         * modules/unicase/u32-tolower: New file.
38553
38554         New module 'unicase/u16-tolower'.
38555         * lib/unicase/u16-tolower.c: New file.
38556         * modules/unicase/u16-tolower: New file.
38557
38558         New module 'unicase/u8-tolower'.
38559         * lib/unicase/u8-tolower.c: New file.
38560         * modules/unicase/u8-tolower: New file.
38561
38562         Tests for module 'unicase/u32-toupper'.
38563         * modules/unicase/u32-toupper-tests: New file.
38564         * tests/unicase/test-u32-toupper.c: New file.
38565
38566         Tests for module 'unicase/u16-toupper'.
38567         * modules/unicase/u16-toupper-tests: New file.
38568         * tests/unicase/test-u16-toupper.c: New file.
38569
38570         Tests for module 'unicase/u8-toupper'.
38571         * modules/unicase/u8-toupper-tests: New file.
38572         * tests/unicase/test-u8-toupper.c: New file.
38573
38574         New module 'unicase/u32-toupper'.
38575         * lib/unicase/u32-toupper.c: New file.
38576         * modules/unicase/u32-toupper: New file.
38577
38578         New module 'unicase/u16-toupper'.
38579         * lib/unicase/u16-toupper.c: New file.
38580         * modules/unicase/u16-toupper: New file.
38581
38582         New module 'unicase/u8-toupper'.
38583         * lib/unicase/u8-toupper.c: New file.
38584         * modules/unicase/u8-toupper: New file.
38585
38586         New module 'unicase/u32-casemap'.
38587         * lib/unicase/u32-casemap.c: New file.
38588         * modules/unicase/u32-casemap: New file.
38589
38590         New module 'unicase/u16-casemap'.
38591         * lib/unicase/u16-casemap.c: New file.
38592         * modules/unicase/u16-casemap: New file.
38593
38594         New module 'unicase/u8-casemap'.
38595         * lib/unicase/unicasemap.h: New file.
38596         * lib/unicase/u8-casemap.c: New file.
38597         * lib/unicase/u-casemap.h: New file.
38598         * modules/unicase/u8-casemap: New file.
38599
38600         New module 'unicase/special-casing'.
38601         * lib/unicase/special-casing.h: New file.
38602         * lib/unicase/special-casing.c: New file.
38603         * lib/unicase/special-casing-table.gperf: New file, generated by
38604         gen-uni-tables.c.
38605         * modules/unicase/special-casing: New file.
38606
38607         Tests for module 'unicase/locale-language'.
38608         * modules/unicase/locale-language-tests: New file.
38609         * tests/unicase/test-locale-language.sh: New file.
38610         * tests/unicase/test-locale-language.c: New file.
38611
38612         New module 'unicase/locale-language'.
38613         * lib/unicase/locale-language.c: New file.
38614         * lib/unicase/locale-languages.gperf: New file.
38615         * modules/unicase/locale-language: New file.
38616
38617         Generate more tables for case conversion and case folding.
38618         * lib/gen-uni-tables.c (SCC_*): New enum items.
38619         (struct special_casing_rule): New type.
38620         (casing_rules, num_casing_rules, allocated_casing_rules): New
38621         variables.
38622         (add_casing_rule, fill_casing_rules): New functions.
38623         (struct casefold_rule): New type.
38624         (casefolding_rules, num_casefolding_rules,
38625         allocated_casefolding_rules): New variables.
38626         (fill_casefolding_rules): New function.
38627         (unicode_casefold): New variable.
38628         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38629         sort_casing_rules, output_casing_rules): New functions.
38630         (main): Accept to more arguments: SpecialCasing.txt and
38631         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38632         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38633         Output mapping for casefolding.
38634
38635         * lib/unicase.h: Include stdbool.h, uninorm.h.
38636         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38637         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38638         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38639         arguments.
38640         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38641         resultp arguments.
38642         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38643         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38644         resultp arguments.
38645         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38646         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38647         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38648         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38649         declarations.
38650         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38651
38652 2009-03-08  Bruno Haible  <bruno@clisp.org>
38653
38654         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38655         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38656         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38657         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38658
38659 2009-03-07  Bruno Haible  <bruno@clisp.org>
38660
38661         Adjust u*_normcmp, u*_normcoll API.
38662         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38663         u16_normcoll, u32_normcoll): Change failure conventions.
38664         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38665         errno and return -1.
38666         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38667
38668 2009-03-07  Bruno Haible  <bruno@clisp.org>
38669
38670         Tests for module 'uninorm/u32-normcoll'.
38671         * modules/uninorm/u32-normcoll-tests: New file.
38672         * tests/uninorm/test-u32-normcoll.c: New file.
38673
38674         Tests for module 'uninorm/u16-normcoll'.
38675         * modules/uninorm/u16-normcoll-tests: New file.
38676         * tests/uninorm/test-u16-normcoll.c: New file.
38677
38678         Tests for module 'uninorm/u8-normcoll'.
38679         * modules/uninorm/u8-normcoll-tests: New file.
38680         * tests/uninorm/test-u8-normcoll.c: New file.
38681
38682 2009-03-07  Bruno Haible  <bruno@clisp.org>
38683
38684         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38685         tests/uninorm/test-u32-normcmp.c.
38686         * tests/uninorm/test-u32-normcmp.c: Include it.
38687         (test_nonascii): New function, extracted from main. Add some more
38688         tests.
38689         (main): Invoke test_ascii and test_nonascii.
38690         * modules/uninorm/u32-normcmp-tests (Files): Add
38691         tests/uninorm/test-u32-normcmp.h.
38692         (Depends-on): Remove uninorm/u32-normcmp.
38693
38694         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38695         tests/uninorm/test-u16-normcmp.c.
38696         * tests/uninorm/test-u16-normcmp.c: Include it.
38697         (test_nonascii): New function, extracted from main. Add some more
38698         tests.
38699         (main): Invoke test_ascii and test_nonascii.
38700         * modules/uninorm/u16-normcmp-tests (Files): Add
38701         tests/uninorm/test-u16-normcmp.h.
38702         (Depends-on): Remove uninorm/u16-normcmp.
38703
38704         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38705         tests/uninorm/test-u8-normcmp.c.
38706         * tests/uninorm/test-u8-normcmp.c: Include it.
38707         (test_nonascii): New function, extracted from main. Add some more
38708         tests.
38709         (main): Invoke test_ascii and test_nonascii.
38710         * modules/uninorm/u8-normcmp-tests (Files): Add
38711         tests/uninorm/test-u8-normcmp.h.
38712         (Depends-on): Remove uninorm/u8-normcmp.
38713
38714 2009-03-07  Bruno Haible  <bruno@clisp.org>
38715
38716         New module 'uninorm/u32-normcoll'.
38717         * lib/uninorm/u32-normcoll.c: New file.
38718         * modules/uninorm/u32-normcoll: New file.
38719
38720         New module 'uninorm/u16-normcoll'.
38721         * lib/uninorm/u16-normcoll.c: New file.
38722         * modules/uninorm/u16-normcoll: New file.
38723
38724         New module 'uninorm/u8-normcoll'.
38725         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38726         declarations.
38727         * lib/uninorm/u8-normcoll.c: New file.
38728         * lib/uninorm/u-normcoll.h: New file.
38729         * modules/uninorm/u8-normcoll: New file.
38730
38731         New module 'uninorm/u32-normxfrm'.
38732         * lib/uninorm/u32-normxfrm.c: New file.
38733         * modules/uninorm/u32-normxfrm: New file.
38734
38735         New module 'uninorm/u16-normxfrm'.
38736         * lib/uninorm/u16-normxfrm.c: New file.
38737         * modules/uninorm/u16-normxfrm: New file.
38738
38739         New module 'uninorm/u8-normxfrm'.
38740         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38741         declarations.
38742         * lib/uninorm/u8-normxfrm.c: New file.
38743         * lib/uninorm/u-normxfrm.h: New file.
38744         * modules/uninorm/u8-normxfrm: New file.
38745
38746 2009-03-07  Bruno Haible  <bruno@clisp.org>
38747
38748         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38749         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38750         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38751
38752 2009-03-07  Bruno Haible  <bruno@clisp.org>
38753
38754         New module 'memxfrm'.
38755         * lib/memxfrm.h: New file.
38756         * lib/memxfrm.c: New file.
38757         * modules/memxfrm: New file.
38758
38759 2009-03-07  Bruno Haible  <bruno@clisp.org>
38760
38761         New module 'memcmp2'.
38762         * lib/memcmp2.h: New file.
38763         * lib/memcmp2.c: New file.
38764         * modules/memcmp2: New file.
38765
38766 2009-03-07  Bruno Haible  <bruno@clisp.org>
38767
38768         Tests for module 'uninorm/decomposing-form'.
38769         * modules/uninorm/decomposing-form-tests: New file.
38770         * tests/uninorm/test-decomposing-form.c: New file.
38771
38772         New module 'uninorm/decomposing-form'.
38773         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38774         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38775         Add 'decomposing_variant' field.
38776         * lib/uninorm/decomposing-form.c: New file.
38777         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38778         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38779         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38780         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38781         * modules/uninorm/decomposing-form: New file.
38782         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38783         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38784
38785 2009-03-07  Bruno Haible  <bruno@clisp.org>
38786
38787         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38788         strings.
38789
38790 2009-03-06  Bruno Haible  <bruno@clisp.org>
38791
38792         Tests for module 'uninorm/u32-normcmp'.
38793         * tests/uninorm/test-u32-normcmp.c: New file.
38794         * modules/uninorm/u32-normcmp-tests: New file.
38795
38796         Tests for module 'uninorm/u16-normcmp'.
38797         * tests/uninorm/test-u16-normcmp.c: New file.
38798         * modules/uninorm/u16-normcmp-tests: New file.
38799
38800         Tests for module 'uninorm/u8-normcmp'.
38801         * tests/uninorm/test-u8-normcmp.c: New file.
38802         * modules/uninorm/u8-normcmp-tests: New file.
38803
38804         New module 'uninorm/u32-normcmp'.
38805         * lib/uninorm/u32-normcmp.c: New file.
38806         * modules/uninorm/u32-normcmp: New file.
38807
38808         New module 'uninorm/u16-normcmp'.
38809         * lib/uninorm/u16-normcmp.c: New file.
38810         * modules/uninorm/u16-normcmp: New file.
38811
38812         New module 'uninorm/u8-normcmp'.
38813         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38814         declarations.
38815         * lib/uninorm/u8-normcmp.c: New file.
38816         * lib/uninorm/u-normcmp.h: New file.
38817         * modules/uninorm/u8-normcmp: New file.
38818
38819 2009-03-06  Bruno Haible  <bruno@clisp.org>
38820
38821         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38822         Reported by Eric Blake.
38823
38824 2009-03-06  Eric Blake  <ebb9@byu.net>
38825             Bruno Haible  <bruno@clisp.org>
38826
38827         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38828         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38829         condition.
38830         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38831         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38832         condition.
38833         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38834
38835 2009-03-06  Eric Blake  <ebb9@byu.net>
38836
38837         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38838         to avoid compiler warnings.
38839         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38840
38841 2009-03-05  Bruno Haible  <bruno@clisp.org>
38842
38843         * tests/test-ftell.c (main): Disable test beyond end of file on
38844         FreeMiNT.
38845         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38846
38847 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38848
38849         * lib/filevercmp.c: Move hidden files up in ordering.
38850         * tests/test-filevercmp.c: Add tests for hidden files.
38851
38852 2009-03-04  Bruno Haible  <bruno@clisp.org>
38853
38854         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38855         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38856         AM_CFLAGS.
38857         Reported by Simon Josefsson.
38858
38859 2009-03-03  Bruno Haible  <bruno@clisp.org>
38860
38861         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38862         Reported by Simon Josefsson.
38863
38864         * doc/ld-version-script.texi: Update node reference.
38865
38866 2009-03-03  Bruno Haible  <bruno@clisp.org>
38867
38868         * modules/visibility (License): Change to 'unlimited'.
38869         Suggested by Simon Josefsson.
38870
38871 2009-03-03  Jim Meyering  <meyering@redhat.com>
38872
38873         unlinkdir: cannot_unlink_dir may modify process state
38874         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38875         it's neither thread-safe nor appropriate for use in a library.
38876
38877 2009-03-03  Eric Blake  <ebb9@byu.net>
38878
38879         test-closein: silence test under Darwin
38880         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38881         care if it dies from EPIPE or EBADF.
38882
38883 2009-03-03  Bruno Haible  <bruno@clisp.org>
38884
38885         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38886         earlier.
38887         * doc/visibility.texi: Fix @node and @section.
38888
38889 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38890
38891         * doc/gnulib.texi: Link to sections for ld version script and
38892         visibility.
38893         * doc/visibility.texi: Add @node and @section.
38894         * modules/ld-version-script: New module.
38895         * m4/ld-version-script.m4: New file.
38896         * doc/ld-version-script.texi: New file.
38897
38898 2009-03-02  David Lutterkort  <lutter@redhat.com>
38899
38900         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38901         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38902
38903 2009-03-02  Bruno Haible  <bruno@clisp.org>
38904
38905         * doc/visibility.texi: Mention libtool's -export-symbols option.
38906
38907 2009-03-02  Jim Meyering  <meyering@redhat.com>
38908
38909         announce-gen: new option: --no-print-checksums
38910         * build-aux/announce-gen (usage): Describe it.
38911         (print_checksums): Print a newline here, not in the [*] footnote.
38912         (main): Honor it.
38913
38914 2009-03-01  Bruno Haible  <bruno@clisp.org>
38915
38916         Use socklen_t in the native Windows replacements prototypes.
38917         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38918         instead of 'int'.
38919         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38920         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38921         * modules/getsockopt (Depends-on): Add socklen.
38922         * modules/setsockopt (Depends-on): Add socklen.
38923
38924 2009-03-01  Bruno Haible  <bruno@clisp.org>
38925
38926         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38927         least 4.2.
38928
38929 2009-03-01  Eric Blake  <ebb9@byu.net>
38930             Bruno Haible  <bruno@clisp.org>
38931
38932         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38933         error messages.
38934         * lib/wait-process.c (wait_subprocess): Omit error message about
38935         deadly signal sent to the child of termsigp != NULL.
38936
38937 2009-03-01  Eric Blake  <ebb9@byu.net>
38938
38939         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38940
38941 2009-03-01  Bruno Haible  <bruno@clisp.org>
38942
38943         Avoid a gcc warning.
38944         * tests/test-sched.c (b): Make global.
38945         Reported by Eric Blake.
38946
38947 2009-01-19  Martin Lambers  <marlam@marlam.de>
38948
38949         Provide POSIX semantics for socket timeout options on W32.
38950         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38951         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38952         * modules/setsockopt: Depend on sys_time module for struct timeval.
38953         * modules/getsockopt: Depend on sys_time module for struct timeval.
38954
38955 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38956
38957         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38958         __USE_GNU, for consistency with netdb.in.h.
38959         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38960
38961 2009-03-01  Bruno Haible  <bruno@clisp.org>
38962
38963         More support for FreeMiNT.
38964         * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
38971         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38972
38973 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38974
38975         Fix unportable awk script in vc-list-files.
38976         * build-aux/vc-list-files: In the replacement awk script, use
38977         substr with a second argument of 1, not zero.
38978         Report by Simon Josefsson.
38979
38980 2009-02-28  Bruno Haible  <bruno@clisp.org>
38981
38982         More support for FreeMiNT.
38983         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38984         to FreeMiNT today.
38985         * lib/fwriting.c (fwriting): Likewise.
38986         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38987
38988 2009-02-28  Bruno Haible  <bruno@clisp.org>
38989
38990         * tests/test-freadseek.c (main): Disable test beyond end of file on
38991         FreeMiNT.
38992         * tests/test-ftello.c (main): Likewise.
38993         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38994
38995 2009-02-28  Bruno Haible  <bruno@clisp.org>
38996
38997         Add tentative support for FreeMiNT.
38998         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38999         * lib/fpurge.c (fpurge): Likewise.
39000         * lib/freadable.c (freadable): Likewise.
39001         * lib/freading.c (freading): Likewise.
39002         * lib/freadptr.c (freadptr): Likewise.
39003         * lib/freadseek.c (freadptrinc): Likewise.
39004         * lib/fseeko.c (rpl_fseeko): Likewise.
39005         * lib/fseterr.c (fseterr): Likewise.
39006         * lib/fwritable.c (fwritable): Likewise.
39007         * lib/fwriting.c (fwriting): Likewise.
39008         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39009         Hourihane.
39010         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39011
39012 2009-02-28  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39015         SIGCHLD.
39016         Reported by Jim Meyering.
39017
39018 2009-02-28  Bruno Haible  <bruno@clisp.org>
39019
39020         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39021         Mention the results of these tests on various platforms.
39022         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39023         order.
39024         * doc/posix-functions/printf.texi: Likewise.
39025         * doc/posix-functions/snprintf.texi: Likewise.
39026         * doc/posix-functions/sprintf.texi: Likewise.
39027         * doc/posix-functions/vfprintf.texi: Likewise.
39028         * doc/posix-functions/vprintf.texi: Likewise.
39029         * doc/posix-functions/vsnprintf.texi: Likewise.
39030         * doc/posix-functions/vsprintf.texi: Likewise.
39031         * doc/glibc-functions/obstack_printf.texi: Likewise.
39032         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39033
39034 2009-02-28  Bruno Haible  <bruno@clisp.org>
39035
39036         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39037         Reported by Loïc Minier <lool@dooz.org>.
39038
39039 2009-02-27  Bruno Haible  <bruno@clisp.org>
39040
39041         * gnulib-tool (func_import): Make the sed expression used to create the
39042         sed script for updating the .gitignore file POSIX compliant.
39043         Reported by Eric Blake.
39044
39045 2009-02-27  Bruno Haible  <bruno@clisp.org>
39046
39047         * gnulib-tool (sed): Don't alias as "sed --posix".
39048         Reported by Eric Blake.
39049
39050 2009-02-27  Bruno Haible  <bruno@clisp.org>
39051
39052         Avoid test link errors.
39053         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39054         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39055         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39056         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39058
39059 2009-02-27  Bruno Haible  <bruno@clisp.org>
39060
39061         Avoid spurious "(cached)" in configure output.
39062         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39063         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39064         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39065         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39066         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39067         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39068         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39069         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39070         Reported by Eric Blake.
39071
39072 2009-02-27  Eric Blake  <ebb9@byu.net>
39073
39074         printf: fix regression in previous patch
39075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39076
39077 2009-02-27  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39080         value.
39081         * lib/stdint.in.h: Likewise.
39082         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39083
39084 2009-02-27  Eric Blake  <ebb9@byu.net>
39085
39086         doc: mention more functions added in cygwin 1.7.0
39087         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39088         addition.
39089         * doc/posix-functions/open_wmemstream.texi: Likewise.
39090         * doc/posix-functions/wcsnlen.texi: Likewise.
39091         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39092         * doc/posix-functions/wcstod.texi: Likewise.
39093         * doc/posix-functions/wcstof.texi: Likewise.
39094         * doc/posix-functions/wcstoimax.texi: Likewise.
39095         * doc/posix-functions/wcstok.texi: Likewise.
39096         * doc/posix-functions/wcstoumax.texi: Likewise.
39097
39098         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39100         * doc/posix-functions/fprintf.texi: Update.
39101         * doc/posix-functions/printf.texi: Update.
39102         * doc/posix-functions/snprintf.texi: Update.
39103         * doc/posix-functions/sprintf.texi: Update.
39104         * doc/posix-functions/vfprintf.texi: Update.
39105         * doc/posix-functions/vprintf.texi: Update.
39106         * doc/posix-functions/vsnprintf.texi: Update.
39107         * doc/posix-functions/vsprintf.texi: Update.
39108         * doc/glibc-functions/obstack_printf.texi: Update.
39109         * doc/glibc-functions/obstack_vprintf.texi: Update.
39110
39111 2009-02-26  Eric Blake  <ebb9@byu.net>
39112
39113         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39114         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39115         compilation bug by using runtime conversion.
39116         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39117         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39118         * modules/ceill-tests (Files): Use nan.h.
39119         * modules/floorl-tests (Files): Likewise.
39120         * modules/frexpl-tests (Files): Likewise.
39121         * modules/isnanl-tests (Files): Likewise.
39122         * modules/ldexpl-tests (Files): Likewise.
39123         * modules/roundl-tests (Files): Likewise.
39124         * modules/truncl-tests (Files): Likewise.
39125         * tests/test-ceill.c (main): Use a working NaN.
39126         * tests/test-floorl.c (main): Likewise.
39127         * tests/test-frexpl.c (main): Likewise.
39128         * tests/test-isnan.c (test_long_double): Likewise.
39129         * tests/test-isnanl.h (main): Likewise.
39130         * tests/test-ldexpl.h (main): Likewise.
39131         * tests/test-roundl.h (main): Likewise.
39132         * tests/test-truncl.h (main): Likewise.
39133         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39134
39135 2009-02-26  Eric Blake  <ebb9@byu.net>
39136             Bruno Haible  <bruno@clisp.org>
39137
39138         Work around a *printf bug with %ls on Solaris.
39139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39140         precision is specified, sprintf stops converting the wide string
39141         argument when the number of bytes that have been produced by this
39142         conversion equals or exceeds the precision.
39143         * doc/posix-functions/fprintf.texi: Update.
39144         * doc/posix-functions/printf.texi: Update.
39145         * doc/posix-functions/snprintf.texi: Update.
39146         * doc/posix-functions/sprintf.texi: Update.
39147         * doc/posix-functions/vfprintf.texi: Update.
39148         * doc/posix-functions/vprintf.texi: Update.
39149         * doc/posix-functions/vsnprintf.texi: Update.
39150         * doc/posix-functions/vsprintf.texi: Update.
39151         * doc/glibc-functions/obstack_printf.texi: Update.
39152         * doc/glibc-functions/obstack_vprintf.texi: Update.
39153
39154 2009-02-26  Eric Blake  <ebb9@byu.net>
39155
39156         stdlib: favor compiler check of random.h
39157         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39158         to avoid an ObjC random.h installed by Swarm.
39159
39160 2009-02-26  Bruno Haible  <bruno@clisp.org>
39161
39162         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39163         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39164         Reported by Gary V. Vaughan <gary@gnu.org>.
39165
39166 2009-02-26  Bruno Haible  <bruno@clisp.org>
39167
39168         Fix *printf behaviour regarding the %ls directive.
39169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39170         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39171         NEED_PRINTF_DIRECTIVE_LS.
39172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39173         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39174         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39175         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39176         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39177         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39178         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39183         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39187         * doc/posix-functions/fprintf.texi: Update.
39188         * doc/posix-functions/printf.texi: Update.
39189         * doc/posix-functions/snprintf.texi: Update.
39190         * doc/posix-functions/sprintf.texi: Update.
39191         * doc/posix-functions/vfprintf.texi: Update.
39192         * doc/posix-functions/vprintf.texi: Update.
39193         * doc/posix-functions/vsnprintf.texi: Update.
39194         * doc/posix-functions/vsprintf.texi: Update.
39195         * doc/glibc-functions/obstack_printf.texi: Update.
39196         * doc/glibc-functions/obstack_vprintf.texi: Update.
39197         Reported by Eric Blake.
39198
39199 2009-02-25  Bruno Haible  <bruno@clisp.org>
39200
39201         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39202         with known value.
39203         Reported by Gary V. Vaughan <gary@gnu.org>.
39204
39205 2009-02-25  Bruno Haible  <bruno@clisp.org>
39206
39207         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39208         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39209         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39210         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39211         Reported by Gary V. Vaughan <gary@gnu.org>.
39212
39213 2009-02-25  Bruno Haible  <bruno@clisp.org>
39214
39215         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39216         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39217         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39218         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39219         Reported by Gary V. Vaughan <gary@gnu.org>.
39220
39221 2009-02-25  Eric Blake  <ebb9@byu.net>
39222
39223         tests: skip fseek/ftell tests if ungetc is broken
39224         * m4/ungetc.m4: New file.
39225         * modules/fseek-tests: Split test, so ungetc dependency is
39226         separate from rest of test.
39227         * modules/fseeko-tests: Likewise.
39228         * modules/ftell-tests: Likewise.
39229         * modules/ftello-tests: Likewise.
39230         * tests/test-fseek.c (main): Isolate ungetc dependency.
39231         * tests/test-fseeko.c (main): Likewise.
39232         * tests/test-ftell.c (main): Likewise.
39233         * tests/test-ftello.c (main): Likewise.
39234         * tests/test-fseek2.sh: New file.
39235         * tests/test-fseeko2.sh: Likewise.
39236         * tests/test-ftell2.sh: Likewise.
39237         * tests/test-ftello2.sh: Likewise.
39238
39239 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39240
39241         test-getaddrinfo: fix usage of skip return code 77
39242         * tests/test-gettaddrinfo.c: Return skip code 77 only
39243         for first occurance of skip (4x77 is not 77)
39244
39245 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39246
39247         strtod: avoid C99 decl-after-statement
39248         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39249
39250 2009-02-24  Eric Blake  <ebb9@byu.net>
39251
39252         strtod: detect HP-UX 11.31 bug
39253         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39254         Reported by Gary V. Vaughan.
39255
39256 2009-02-23  Bruno Haible  <bruno@clisp.org>
39257
39258         Fix invalid read past end of memory block.
39259         * lib/vasnprintf.c (DCHAR_SET): Define.
39260         (local_wcslen): Define only when needed.
39261         (local_strnlen, local_wcsnlen): New functions.
39262         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39263         directives that involve a conversion ourselves.
39264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39265         wcsnlen, mbrtowc, wcrtomb.
39266         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39267         * tests/test-vasprintf-posix.c (test_function): Likewise.
39268         * tests/test-snprintf-posix.h (test_function): Likewise.
39269         * tests/test-sprintf-posix.h (test_function): Likewise.
39270         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39271
39272 2009-02-22  Bruno Haible  <bruno@clisp.org>
39273
39274         Implement new clarified decomposition of Hangul syllables.
39275         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39276         of type LTV, return only a pairwise decomposition.
39277         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39278         Likewise.
39279         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39280         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39281         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39282
39283 2009-02-22  Bruno Haible  <bruno@clisp.org>
39284
39285         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39286         zero-length results and shrink excess allocated memory.
39287         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39288         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39289         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39290         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39291         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39292         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39293         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39294         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39295         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39296         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39297         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39298         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39299
39300 2009-02-21  Bruno Haible  <bruno@clisp.org>
39301
39302         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39303         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39304         spaces after a period. Put a space between a macro name and its
39305         argument list. Trivial rewordings.
39306         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39307         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39308         (main): Return 0 explicitly.
39309
39310 2009-02-21  Bruno Haible  <bruno@clisp.org>
39311
39312         Tests for module 'uninorm/filter'.
39313         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39314         * modules/uninorm/filter-tests: New file.
39315
39316         New module 'uninorm/filter'.
39317         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39318         uninorm_filter_flush, uninorm_filter_free): New declarations.
39319         * lib/uninorm/uninorm-filter.c: New file.
39320         * modules/uninorm/filter: New file.
39321
39322 2009-02-21  Bruno Haible  <bruno@clisp.org>
39323
39324         Tests for module 'uninorm/nfkc'.
39325         * tests/uninorm/test-nfkc.c: New file.
39326         * tests/uninorm/test-u8-nfkc.c: New file.
39327         * tests/uninorm/test-u16-nfkc.c: New file.
39328         * tests/uninorm/test-u32-nfkc.c: New file.
39329         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39330         * tests/uninorm/test-u32-nfkc-big.c: New file.
39331         * modules/uninorm/nfkc-tests: New file.
39332
39333         New module 'uninorm/nfkc'.
39334         * lib/uninorm/nfkc.c: New file.
39335         * modules/uninorm/nfkc: New file.
39336
39337         Tests for module 'uninorm/nfkd'.
39338         * tests/uninorm/test-nfkd.c: New file.
39339         * tests/uninorm/test-u8-nfkd.c: New file.
39340         * tests/uninorm/test-u16-nfkd.c: New file.
39341         * tests/uninorm/test-u32-nfkd.c: New file.
39342         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39343         * tests/uninorm/test-u32-nfkd-big.c: New file.
39344         * modules/uninorm/nfkd-tests: New file.
39345
39346         New module 'uninorm/nfkd'.
39347         * lib/uninorm/nfkd.c: New file.
39348         * modules/uninorm/nfkd: New file.
39349
39350         Tests for module 'uninorm/nfc'.
39351         * tests/uninorm/test-nfc.c: New file.
39352         * tests/uninorm/test-u8-nfc.c: New file.
39353         * tests/uninorm/test-u16-nfc.c: New file.
39354         * tests/uninorm/test-u32-nfc.c: New file.
39355         * tests/uninorm/test-u32-nfc-big.sh: New file.
39356         * tests/uninorm/test-u32-nfc-big.c: New file.
39357         * modules/uninorm/nfc-tests: New file.
39358
39359         New module 'uninorm/nfc'.
39360         * lib/uninorm/nfc.c: New file.
39361         * modules/uninorm/nfc: New file.
39362
39363         Tests for module 'uninorm/nfd'.
39364         * tests/uninorm/test-nfd.c: New file.
39365         * tests/uninorm/test-u8-nfd.c: New file.
39366         * tests/uninorm/test-u16-nfd.c: New file.
39367         * tests/uninorm/test-u32-nfd.c: New file.
39368         * tests/uninorm/test-u32-nfd-big.sh: New file.
39369         * tests/uninorm/test-u32-nfd-big.c: New file.
39370         * tests/uninorm/test-u32-normalize-big.h: New file.
39371         * tests/uninorm/test-u32-normalize-big.c: New file.
39372         * tests/uninorm/NormalizationTest.txt: New file, created from
39373         Unicode 5.1.0 NormalizationTest.txt.
39374         * modules/uninorm/nfd-tests: New file.
39375
39376         New module 'uninorm/nfd'.
39377         * lib/uninorm/nfd.c: New file.
39378         * modules/uninorm/nfd: New file.
39379
39380         New module 'uninorm/u32-normalize'.
39381         * lib/uninorm/u32-normalize.c: New file.
39382         * modules/uninorm/u32-normalize: New file.
39383
39384         New module 'uninorm/u16-normalize'.
39385         * lib/uninorm/u16-normalize.c: New file.
39386         * modules/uninorm/u16-normalize: New file.
39387
39388         New module 'uninorm/u8-normalize'.
39389         * lib/uninorm/u8-normalize.c: New file.
39390         * lib/uninorm/normalize-internal.h: New file.
39391         * lib/uninorm/u-normalize-internal.h: New file.
39392         * modules/uninorm/u8-normalize: New file.
39393
39394         New module 'uninorm/decompose-internal'.
39395         * lib/uninorm/decompose-internal.c: New file.
39396         * modules/uninorm/decompose-internal: New file.
39397
39398         Tests for module 'uninorm/composition'.
39399         * tests/uninorm/test-composition.c: New file.
39400         * modules/uninorm/composition-tests: New file.
39401
39402         New module 'uninorm/composition'.
39403         * lib/uninorm/composition.c: New file.
39404         * lib/uninorm/composition-table.gperf: New file, generated by
39405         gen-uni-tables.
39406         * modules/uninorm/composition: New file.
39407
39408         Tests for module 'uninorm/compat-decomposition'.
39409         * tests/uninorm/test-compat-decomposition.c: New file.
39410         * modules/uninorm/compat-decomposition-tests: New file.
39411
39412         New module 'uninorm/compat-decomposition'.
39413         * lib/uninorm/decompose-internal.h: New file.
39414         * lib/uninorm/compat-decomposition.c: New file.
39415         * modules/uninorm/compat-decomposition: New file.
39416
39417         Tests for module 'uninorm/canonical-decomposition'.
39418         * tests/uninorm/test-canonical-decomposition.c: New file.
39419         * modules/uninorm/canonical-decomposition-tests: New file.
39420
39421         New module 'uninorm/canonical-decomposition'.
39422         * lib/uninorm/canonical-decomposition.c: New file.
39423         * modules/uninorm/canonical-decomposition: New file.
39424
39425         Tests for module 'uninorm/decomposition'.
39426         * tests/uninorm/test-decomposition.c: New file.
39427         * modules/uninorm/decomposition-tests: New file.
39428
39429         New module 'uninorm/decomposition'.
39430         * lib/uninorm/decomposition.c: New file.
39431         * modules/uninorm/decomposition: New file.
39432
39433         New module 'uninorm/decomposition-table'.
39434         * lib/uninorm/decomposition-table.h: New file.
39435         * lib/uninorm/decomposition-table.c: New file.
39436         * lib/uninorm/decomposition-table1.h: New file, generated by
39437         gen-uni-tables.
39438         * lib/uninorm/decomposition-table2.h: New file, generated by
39439         gen-uni-tables.
39440         * modules/uninorm/decomposition-table: New file.
39441
39442         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39443         (UC_DECOMP_*): New enumeration items.
39444         (get_decomposition): New function.
39445         (struct decomp_table): New type.
39446         (output_decomposition, output_decomposition_tables): New functions.
39447         (unicode_composition_exclusions): New variable.
39448         (fill_composition_exclusions, debug_output_composition_tables): New
39449         functions.
39450         (main): Accept one more argument. Invoke fill_composition_exclusions.
39451         Output decomposition and composition tables.
39452
39453         New module 'uninorm/base'.
39454         * lib/uninorm.h: New file.
39455         * lib/unictype.h: Update comment.
39456         * modules/uninorm/base: New file.
39457
39458 2009-02-21  David Lutterkort  <lutter@redhat.com>
39459
39460         Tests for module 'safe-alloc'.
39461         * tests/test-safe-alloc.c: New file.
39462         * modules/safe-alloc-tests: New file.
39463
39464         New module 'safe-alloc'.
39465         * lib/safe-alloc.h: New file.
39466         * lib/safe-alloc.c: New file.
39467         * m4/safe-alloc.m4: New file.
39468         * modules/safe-alloc: New file.
39469         * doc/safe-alloc.texi: New file.
39470         * doc/gnulib.texi: Include it.
39471         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39472         safe-alloc.
39473
39474 2009-02-18  Bruno Haible  <bruno@clisp.org>
39475
39476         Fix link error on non-glibc systems.
39477         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39478         variable.
39479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39480
39481 2009-02-18  Jim Meyering  <meyering@redhat.com>
39482
39483         fts: avoid used-uninitialized error due to recent change
39484         * lib/fts.c (fts_read): Guard uses of the new member,
39485         parent->fts_n_dirs_remaining, since it's not relevant for
39486         the parent of a directory specified on the command-line.
39487
39488 2009-02-17  James Youngman  <jay@gnu.org>
39489             Bruno Haible  <bruno@clisp.org>
39490
39491         * m4/include_next.m4: Reformulate comment.
39492
39493 2009-02-16  Jim Meyering  <meyering@redhat.com>
39494
39495         fts: add #if guards so that the fts_lgpl module still builds
39496         * lib/fts.c: Guard just-added hash-table-using parts with
39497         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39498         Reported by Simon Josefsson.
39499
39500 2009-02-15  Bruno Haible  <bruno@clisp.org>
39501
39502         * modules/array-mergesort-tests: New file.
39503         * tests/test-array-mergesort.c: New file.
39504
39505         New module 'array-mergesort'.
39506         * modules/array-mergesort: New file.
39507         * lib/array-mergesort.h: New file.
39508
39509 2009-02-15  Bruno Haible  <bruno@clisp.org>
39510
39511         Fix 2009-02-07 commit.
39512         * lib/gen-uni-tables.c (output_predicate, output_category,
39513         output_combclass, output_bidi_category, output_decimal_digit,
39514         output_digit, output_numeric, output_mirror, output_scripts,
39515         output_ident_category, output_simple_mapping): Fix format directives.
39516         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39517
39518 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39519
39520         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39521         fixes are available from IBM.
39522
39523 2009-02-13  Jim Meyering  <meyering@redhat.com>
39524
39525         fts: arrange not to stat non-directories in more cases
39526         This makes GNU find (when it doesn't need to stat each file)
39527         *much* more efficient at traversing reiserfs file systems.
39528         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39529         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39530         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39531         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39532         (leaf_optimization_applies): New function.
39533         (LCO_hash, LCO_compare): New helper functions.
39534         (link_count_optimize_ok): New function.
39535         (fts_stat): Initialize new member (if dir).
39536         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39537         we've just stat'ed a directory.  Skip the stat call when possible.
39538         ---
39539         Note this AFS-related exchange:
39540         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39541         and note find's pioctl call in find/fstype.c.
39542         But that is necessary only if you want to enable the
39543         optimization for AFS, and for now, I don't.
39544
39545         fts: move a function definition "up" (no semantic change)
39546         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39547         "up" to precede upcoming use of a related function.
39548
39549 2009-02-11  Jim Meyering  <meyering@redhat.com>
39550
39551         fts: correct internal computation of nlinks (optimization-related)
39552         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39553         whether the current entry is a directory, so don't test it.
39554
39555 2009-02-10  Bruno Haible  <bruno@clisp.org>
39556
39557         Tests for module 'uniwbrk/ulc-wordbreaks'.
39558         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39559         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39560         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39561
39562         Tests for module 'uniwbrk/u32-wordbreaks'.
39563         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39564         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39565
39566         Tests for module 'uniwbrk/u16-wordbreaks'.
39567         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39568         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39569
39570         Tests for module 'uniwbrk/u8-wordbreaks'.
39571         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39572         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39573
39574 2009-02-10  Bruno Haible  <bruno@clisp.org>
39575
39576         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39577         property.
39578         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39579         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39580         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39581
39582 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39583
39584         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39585         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39586
39587 2009-02-10  Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39590         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39591         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39592         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39593         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39594         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39595
39596 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39597
39598         * lib/sockets.h (gl_fd_to_handle): New function.
39599
39600         * tests/test-sockets.c: Call gl_fd_to_handle.
39601
39602 2009-02-09  Bruno Haible  <bruno@clisp.org>
39603
39604         * doc/havelib.texi: Document the conventions on bi-arch systems.
39605
39606 2009-02-08  Bruno Haible  <bruno@clisp.org>
39607
39608         Document the AC_LIB_LINKFLAGS macro.
39609         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39610         * doc/gnulib.texi: Include it.
39611
39612 2009-02-08  Bruno Haible  <bruno@clisp.org>
39613
39614         Fix wrong order of sections, compared to TOC.
39615         * doc/gnulib.texi: Include relocatable-maint.texi after the
39616         "Regular expressions" node, not before.
39617
39618 2009-02-08  Bruno Haible  <bruno@clisp.org>
39619
39620         Tests for module 'unicase/totitle'.
39621         * modules/unicase/totitle-tests: New file.
39622
39623         Tests for module 'unicase/tolower'.
39624         * modules/unicase/tolower-tests: New file.
39625
39626         Tests for module 'unicase/toupper'.
39627         * modules/unicase/toupper-tests: New file.
39628         * tests/unicase/test-mapping-part1.h: New file.
39629         * tests/unicase/test-mapping-part2.h: New file.
39630
39631         New module 'unicase/totitle'.
39632         * modules/unicase/totitle: New file.
39633         * lib/unicase/totitle.c: New file.
39634
39635         New module 'unicase/tolower'.
39636         * modules/unicase/tolower: New file.
39637         * lib/unicase/tolower.c: New file.
39638
39639         New module 'unicase/toupper'.
39640         * modules/unicase/toupper: New file.
39641         * lib/unicase/toupper.c: New file.
39642         * lib/unicase/simple-mapping.h: New file.
39643
39644         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39645         (mapping_table): New structure.
39646         (output_simple_mapping): New function.
39647         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39648         * modules/gen-uni-tables (Description): Update.
39649         * lib/unicase/toupper.h: New file, automatically generated by
39650         gen-uni-tables.
39651         * lib/unicase/tolower.h: New file, automatically generated by
39652         gen-uni-tables.
39653         * lib/unicase/totitle.h: New file, automatically generated by
39654         gen-uni-tables.
39655         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39656         gen-uni-tables.
39657         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39658         gen-uni-tables.
39659         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39660         gen-uni-tables.
39661
39662         New module 'unicase/base'.
39663         * modules/unicase/base: New file.
39664         * lib/unicase.h: New file.
39665
39666 2009-02-08  Bruno Haible  <bruno@clisp.org>
39667
39668         New module 'uniwbrk/ulc-wordbreaks'.
39669         * modules/uniwbrk/ulc-wordbreaks: New file.
39670         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39671
39672         New module 'uniwbrk/u32-wordbreaks'.
39673         * modules/uniwbrk/u32-wordbreaks: New file.
39674         * lib/uniwbrk/u32-wordbreaks.c: New file.
39675
39676         New module 'uniwbrk/u16-wordbreaks'.
39677         * modules/uniwbrk/u16-wordbreaks: New file.
39678         * lib/uniwbrk/u16-wordbreaks.c: New file.
39679
39680         New module 'uniwbrk/u8-wordbreaks'.
39681         * modules/uniwbrk/u8-wordbreaks: New file.
39682         * lib/uniwbrk/u8-wordbreaks.c: New file.
39683         * lib/uniwbrk/u-wordbreaks.h: New file.
39684
39685         New module 'uniwbrk/table'.
39686         * modules/uniwbrk/table: New file.
39687         * lib/uniwbrk/wbrktable.h: New file.
39688         * lib/uniwbrk/wbrktable.c: New file.
39689
39690         New module 'uniwbrk/wordbreak-property'.
39691         * modules/uniwbrk/wordbreak-property: New file.
39692         * lib/uniwbrk/wordbreak-property.c: New file.
39693
39694         * lib/gen-uni-tables.c (WBP_*): New enum items.
39695         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39696         (unicode_org_wbp): New variable.
39697         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39698         New functions.
39699         (wbp_table): New structure.
39700         (output_wbp, output_wbrk_tables): New functions.
39701         (main): Accept additional argument. Invoke fill_org_wbp,
39702         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39703         output_wbrk_tables.
39704         * modules/gen-uni-tables (Description): Update.
39705         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39706         gen-uni-tables.
39707
39708         New module 'uniwbrk/base'.
39709         * modules/uniwbrk/base: New file.
39710         * lib/uniwbrk.h: New file.
39711
39712 2009-02-08  Bruno Haible  <bruno@clisp.org>
39713
39714         Update to Unicode 5.1.0.
39715         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39716         U+2185..U+2188.
39717         (is_property_default_ignorable_code_point): Don't include characters
39718         of category Cc or Cs and not-a-characters.
39719         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39720         U+0D79, U+109E, U+109F, U+A60C.
39721         * lib/unictype/bidi_of.h: Regenerated.
39722         * lib/unictype/blocks.h: Regenerated.
39723         * lib/unictype/categ_C.h: Regenerated.
39724         * lib/unictype/categ_Cf.h: Regenerated.
39725         * lib/unictype/categ_Cn.h: Regenerated.
39726         * lib/unictype/categ_L.h: Regenerated.
39727         * lib/unictype/categ_Ll.h: Regenerated.
39728         * lib/unictype/categ_Lm.h: Regenerated.
39729         * lib/unictype/categ_Lo.h: Regenerated.
39730         * lib/unictype/categ_Lu.h: Regenerated.
39731         * lib/unictype/categ_M.h: Regenerated.
39732         * lib/unictype/categ_Mc.h: Regenerated.
39733         * lib/unictype/categ_Me.h: Regenerated.
39734         * lib/unictype/categ_Mn.h: Regenerated.
39735         * lib/unictype/categ_N.h: Regenerated.
39736         * lib/unictype/categ_Nd.h: Regenerated.
39737         * lib/unictype/categ_Nl.h: Regenerated.
39738         * lib/unictype/categ_No.h: Regenerated.
39739         * lib/unictype/categ_P.h: Regenerated.
39740         * lib/unictype/categ_Pd.h: Regenerated.
39741         * lib/unictype/categ_Pe.h: Regenerated.
39742         * lib/unictype/categ_Pf.h: Regenerated.
39743         * lib/unictype/categ_Pi.h: Regenerated.
39744         * lib/unictype/categ_Po.h: Regenerated.
39745         * lib/unictype/categ_Ps.h: Regenerated.
39746         * lib/unictype/categ_S.h: Regenerated.
39747         * lib/unictype/categ_Sk.h: Regenerated.
39748         * lib/unictype/categ_Sm.h: Regenerated.
39749         * lib/unictype/categ_So.h: Regenerated.
39750         * lib/unictype/categ_of.h: Regenerated.
39751         * lib/unictype/combining.h: Regenerated.
39752         * lib/unictype/ctype_alnum.h: Regenerated.
39753         * lib/unictype/ctype_alpha.h: Regenerated.
39754         * lib/unictype/ctype_graph.h: Regenerated.
39755         * lib/unictype/ctype_lower.h: Regenerated.
39756         * lib/unictype/ctype_print.h: Regenerated.
39757         * lib/unictype/ctype_punct.h: Regenerated.
39758         * lib/unictype/ctype_upper.h: Regenerated.
39759         * lib/unictype/decdigit.h: Regenerated.
39760         * lib/unictype/digit.h: Regenerated.
39761         * lib/unictype/mirror.h: Regenerated.
39762         * lib/unictype/numeric.h: Regenerated.
39763         * lib/unictype/pr_alphabetic.h: Regenerated.
39764         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39765         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39766         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39767         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39768         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39769         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39770         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39771         * lib/unictype/pr_combining.h: Regenerated.
39772         * lib/unictype/pr_dash.h: Regenerated.
39773         * lib/unictype/pr_decimal_digit.h: Regenerated.
39774         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39775         * lib/unictype/pr_deprecated.h: Regenerated.
39776         * lib/unictype/pr_diacritic.h: Regenerated.
39777         * lib/unictype/pr_extender.h: Regenerated.
39778         * lib/unictype/pr_format_control.h: Regenerated.
39779         * lib/unictype/pr_grapheme_base.h: Regenerated.
39780         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39781         * lib/unictype/pr_grapheme_link.h: Regenerated.
39782         * lib/unictype/pr_id_continue.h: Regenerated.
39783         * lib/unictype/pr_id_start.h: Regenerated.
39784         * lib/unictype/pr_ideographic.h: Regenerated.
39785         * lib/unictype/pr_ignorable_control.h: Regenerated.
39786         * lib/unictype/pr_lowercase.h: Regenerated.
39787         * lib/unictype/pr_math.h: Regenerated.
39788         * lib/unictype/pr_numeric.h: Regenerated.
39789         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39790         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39791         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39792         * lib/unictype/pr_other_id_continue.h: Regenerated.
39793         * lib/unictype/pr_other_lowercase.h: Regenerated.
39794         * lib/unictype/pr_other_math.h: Regenerated.
39795         * lib/unictype/pr_punctuation.h: Regenerated.
39796         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39797         * lib/unictype/pr_soft_dotted.h: Regenerated.
39798         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39799         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39800         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39801         * lib/unictype/pr_uppercase.h: Regenerated.
39802         * lib/unictype/pr_xid_continue.h: Regenerated.
39803         * lib/unictype/pr_xid_start.h: Regenerated.
39804         * lib/unictype/pr_zero_width.h: Regenerated.
39805         * lib/unictype/scripts.h: Regenerated.
39806         * lib/unictype/scripts_byname.gperf: Regenerated.
39807         * lib/unictype/sy_java_ident.h: Regenerated.
39808         * lib/unilbrk/lbrkprop1.h: Regenerated.
39809         * lib/unilbrk/lbrkprop2.h: Regenerated.
39810         * tests/unictype/test-categ_C.c: Regenerated.
39811         * tests/unictype/test-categ_Cf.c: Regenerated.
39812         * tests/unictype/test-categ_Cn.c: Regenerated.
39813         * tests/unictype/test-categ_L.c: Regenerated.
39814         * tests/unictype/test-categ_Ll.c: Regenerated.
39815         * tests/unictype/test-categ_Lm.c: Regenerated.
39816         * tests/unictype/test-categ_Lo.c: Regenerated.
39817         * tests/unictype/test-categ_Lu.c: Regenerated.
39818         * tests/unictype/test-categ_M.c: Regenerated.
39819         * tests/unictype/test-categ_Mc.c: Regenerated.
39820         * tests/unictype/test-categ_Me.c: Regenerated.
39821         * tests/unictype/test-categ_Mn.c: Regenerated.
39822         * tests/unictype/test-categ_N.c: Regenerated.
39823         * tests/unictype/test-categ_Nd.c: Regenerated.
39824         * tests/unictype/test-categ_Nl.c: Regenerated.
39825         * tests/unictype/test-categ_No.c: Regenerated.
39826         * tests/unictype/test-categ_P.c: Regenerated.
39827         * tests/unictype/test-categ_Pd.c: Regenerated.
39828         * tests/unictype/test-categ_Pe.c: Regenerated.
39829         * tests/unictype/test-categ_Pf.c: Regenerated.
39830         * tests/unictype/test-categ_Pi.c: Regenerated.
39831         * tests/unictype/test-categ_Po.c: Regenerated.
39832         * tests/unictype/test-categ_Ps.c: Regenerated.
39833         * tests/unictype/test-categ_S.c: Regenerated.
39834         * tests/unictype/test-categ_Sk.c: Regenerated.
39835         * tests/unictype/test-categ_Sm.c: Regenerated.
39836         * tests/unictype/test-categ_So.c: Regenerated.
39837         * tests/unictype/test-ctype_alnum.c: Regenerated.
39838         * tests/unictype/test-ctype_alpha.c: Regenerated.
39839         * tests/unictype/test-ctype_graph.c: Regenerated.
39840         * tests/unictype/test-ctype_lower.c: Regenerated.
39841         * tests/unictype/test-ctype_print.c: Regenerated.
39842         * tests/unictype/test-ctype_punct.c: Regenerated.
39843         * tests/unictype/test-ctype_upper.c: Regenerated.
39844         * tests/unictype/test-decdigit.h: Regenerated.
39845         * tests/unictype/test-digit.h: Regenerated.
39846         * tests/unictype/test-numeric.h: Regenerated.
39847         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39848         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39849         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39850         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39851         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39852         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39853         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39854         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39855         * tests/unictype/test-pr_combining.c: Regenerated.
39856         * tests/unictype/test-pr_dash.c: Regenerated.
39857         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39858         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39859         * tests/unictype/test-pr_deprecated.c: Regenerated.
39860         * tests/unictype/test-pr_diacritic.c: Regenerated.
39861         * tests/unictype/test-pr_extender.c: Regenerated.
39862         * tests/unictype/test-pr_format_control.c: Regenerated.
39863         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39864         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39865         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39866         * tests/unictype/test-pr_id_continue.c: Regenerated.
39867         * tests/unictype/test-pr_id_start.c: Regenerated.
39868         * tests/unictype/test-pr_ideographic.c: Regenerated.
39869         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39870         * tests/unictype/test-pr_lowercase.c: Regenerated.
39871         * tests/unictype/test-pr_math.c: Regenerated.
39872         * tests/unictype/test-pr_numeric.c: Regenerated.
39873         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39874         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39875         Regenerated.
39876         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39877         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39878         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39879         * tests/unictype/test-pr_other_math.c: Regenerated.
39880         * tests/unictype/test-pr_punctuation.c: Regenerated.
39881         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39882         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39883         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39884         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39885         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39886         * tests/unictype/test-pr_uppercase.c: Regenerated.
39887         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39888         * tests/unictype/test-pr_xid_start.c: Regenerated.
39889         * tests/unictype/test-pr_zero_width.c: Regenerated.
39890
39891         Update to Unicode 5.1.0.
39892         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39893         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39894         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39895         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39896         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39897         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39898         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39899         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39900         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39901         (nonspacing_table_ind): Update.
39902         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39903
39904         Update to Unicode 5.1.0.
39905         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39906         code transform.
39907         * lib/uniname/uniname.c (unicode_character_name,
39908         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39909         * lib/uniname/uninames.h: Regenerated.
39910         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39911
39912 2009-02-07  Bruno Haible  <bruno@clisp.org>
39913
39914         Merge gen-ctype and gen-lbrk into a single program.
39915         * lib/gen-uni-tables.c: New file, incorporating
39916         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39917         Add directory prefixes to the names of the generated files.
39918         * lib/unictype/gen-ctype.c: Remove file.
39919         * lib/unilbrk/gen-lbrk.c: Remove file.
39920         * modules/gen-uni-tables: New file.
39921         * modules/unictype/gen-ctype: Remove file.
39922         * modules/unilbrk/gen-lbrk: Remove file.
39923
39924 2009-02-07  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39927
39928         New module 'unistr/u32-strcoll'.
39929         * modules/unistr/u32-strcoll: New file.
39930         * lib/unistr/u32-strcoll.c: New file.
39931
39932         New module 'unistr/u16-strcoll'.
39933         * modules/unistr/u16-strcoll: New file.
39934         * lib/unistr/u16-strcoll.c: New file.
39935
39936         New module 'unistr/u8-strcoll'.
39937         * modules/unistr/u8-strcoll: New file.
39938         * lib/unistr/u8-strcoll.c: New file.
39939         * lib/unistr/u-strcoll.h: New file.
39940
39941 2009-02-07  Bruno Haible  <bruno@clisp.org>
39942
39943         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39944         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39945         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39946         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39947         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39948         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39949
39950 2009-02-07  Bruno Haible  <bruno@clisp.org>
39951
39952         Make 64-bit clean.
39953         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39954         output_combclass, output_bidi_category, output_decimal_digit,
39955         output_digit, output_numeric, output_mirror, output_scripts,
39956         output_ident_category): Use proper width specifier in format strings.
39957
39958 2009-02-07  Bruno Haible  <bruno@clisp.org>
39959
39960         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39961         failure behaviour.
39962
39963 2009-02-07  Jim Meyering  <meyering@redhat.com>
39964
39965         regex: avoid compilation failure with upcoming gcc-4.4
39966         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39967         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39968         "... error: integer overflow in preprocessor expression".
39969
39970 2009-02-05  Ben Pfaff  <blp@gnu.org>
39971
39972         Fix link errors on Windows when close module is used.
39973         * modules/close: Add $(LIB_CLOSE) to Link section.
39974         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39975         $(LIB_CLOSE) on Windows.
39976
39977 2009-02-05  Jim Meyering  <meyering@redhat.com>
39978
39979         still avoid unused-parameter warnings, but do it cleanly
39980         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39981         (get_fs_usage): Cast to void instead.
39982         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39983         (dev_from_mount_options, read_file_system_list): Cast to void.
39984         Prompted by Bruno Haible.
39985
39986 2009-02-04  Jim Meyering  <meyering@redhat.com>
39987
39988         fsusage.c: correct copyright year
39989         * lib/fsusage.c: Reflect year in which the change is pushed into
39990
39991         avoid misc. warnings
39992         * lib/fsusage.c (UNUSED_PARAM): Define.
39993         (get_fs_usage): Mark parameter "disk" as unused.
39994         * lib/getugroups.c (getgrent): Use "void" in prototype.
39995         * lib/mountlist.c: Mark unused parameters.
39996         (read_file_system_list): Declare a local with "const".
39997         * lib/nanosleep.c (getnow): Declare static.
39998         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39999
40000         dirfd: set errno upon failure
40001         * lib/dirfd.c: Include <errno.h>.
40002         Set errno to ENOTSUP when returning -1.
40003         * modules/dirfd (Depends-on): Add errno.
40004         Suggested by John Kodis <kodis@comcast.net>.
40005
40006 2009-02-01  Bruno Haible  <bruno@clisp.org>
40007
40008         Don't assume sizeof (long) >= sizeof (void *).
40009         * lib/memcmp.c: Include stdint.h.
40010         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40011         srcp2 to 'const byte *'.
40012         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40013         types to uintptr_t.
40014         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40015         * modules/memcmp (Depends-on): Add stdint.
40016         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40017
40018 2009-01-30  Eric Blake  <ebb9@byu.net>
40019
40020         fix more require-before-expand issues
40021         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40022         expand, AC_PROG_AWK.
40023         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40024
40025 2009-01-28  Eric Blake  <ebb9@byu.net>
40026
40027         version-etc: use consistent URL formatting
40028         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40029         Improve formatting.  Use fputs for string without %.
40030
40031 2009-01-28  Jim Meyering  <meyering@redhat.com>
40032
40033         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40034         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40035         "underquoted definition of NAME" from autoconf-2.59.
40036
40037 2009-01-28  Bruno Haible  <bruno@clisp.org>
40038
40039         * doc/gnulib.texi: Add "Obsolete modules" to index.
40040
40041 2009-01-28  Jim Meyering  <meyering@redhat.com>
40042
40043         useless-if-before-free: recognize more variants
40044         * build-aux/useless-if-before-free: Also recognize e.g.,
40045         if (NULL != p) free (p);
40046
40047 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40048
40049         test-getaddrinfo: skip (don't fail) this test when there's no network
40050         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40051         on the presumption that it means you lack network access.
40052
40053 2009-01-26  Jim Meyering  <meyering@redhat.com>
40054
40055         fflush: avoid warnings on modern systems
40056         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40057         pos and result, into scopes where they're used.
40058
40059 2009-01-26  Eric Blake  <ebb9@byu.net>
40060
40061         Silence warning reintroduced by recent extensions patch.
40062         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40063         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40064         autoconf.
40065
40066         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40067         * m4/00gnulib.m4: New file.
40068         * gnulib-tool (func_get_filelist): Always use it.
40069         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40070         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40071
40072 2009-01-25  Bruno Haible  <bruno@clisp.org>
40073
40074         Make test-quotearg work on MacOS X and AIX.
40075         * tests/test-quotearg.sh: New file.
40076         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40077         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40078         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40079         include <libintl.h>.
40080         (fake_locale): Remove variable.
40081         (gettext, dgettext, dcgettext): Remove functions.
40082         (main): Instead of setting a fake locale, set a real locale. Call
40083         textdomain and bindtextdomain.
40084         * modules/quotearg-tests (Files): Add the new files.
40085         (Depends-on): Add gettext, setenv, unsetenv.
40086         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40087         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40088         Augment TESTS_ENVIRONMENT.
40089
40090 2009-01-25  Bruno Haible  <bruno@clisp.org>
40091
40092         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40093         fr_FR.ISO8859-1 locale on MacOS X.
40094         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40095         ja_JP.eucJP locale on MacOS X.
40096         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40097         zh_CN.GB18030 locale on MacOS X.
40098
40099 2009-01-25  Bruno Haible  <bruno@clisp.org>
40100
40101         Avoid link errors on MacOS X 10.3.
40102         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40103         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40104
40105 2009-01-25  Bruno Haible  <bruno@clisp.org>
40106
40107         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40108         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40109         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40110         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40111         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40112         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40113         posix_spawnattr_init, posix_spawnattr_setsigmask,
40114         posix_spawnattr_setflags, posix_spawnattr_destroy.
40115
40116         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40117         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40118         * modules/execute (Files): Remove m4/posix_spawn.m4.
40119         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40120         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40121         posix_spawnattr_init, posix_spawnattr_setsigmask,
40122         posix_spawnattr_setflags, posix_spawnattr_destroy.
40123
40124 2009-01-25  Bruno Haible  <bruno@clisp.org>
40125
40126         * lib/glthread/threadlib.c: Include <stdlib.h>.
40127
40128 2009-01-25  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/glthread/threadlib.c (dummy): New declaration.
40131
40132 2009-01-25  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40135         multibyte characters also for the GB18030 encoding. Don't crash when
40136         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40137
40138 2009-01-25  Bruno Haible  <bruno@clisp.org>
40139
40140         Avoid redefining 'struct random_data' on OSF/1 5.1.
40141         * lib/stdlib.in.h: Include <random.h> if it exists.
40142         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40143         HAVE_RANDOM_H. Include <random.h> when testing whether
40144         'struct random_data' exists.
40145         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40146
40147 2009-01-25  Bruno Haible  <bruno@clisp.org>
40148
40149         Don't install charset.alias on MacOS X >= 10.3.
40150         * lib/localcharset.c (DARWIN7): New macro.
40151         (get_charset_aliases): Hardcode the result for Darwin7.
40152         * modules/localcharset (install-exec-local): Don't install
40153         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40154
40155 2009-01-25  Bruno Haible  <bruno@clisp.org>
40156
40157         Don't install charset.alias on mingw and Cygwin.
40158         * modules/localcharset (install-exec-local): Don't install
40159         charset.alias on mingw and Cygwin, if the file does not yet exist.
40160         The result for these platforms is hardcoded in localcharset.c.
40161
40162 2009-01-25  Bruno Haible  <bruno@clisp.org>
40163
40164         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40166         before requiring AC_USE_SYSTEM_EXTENSIONS.
40167
40168 2009-01-25  Jim Meyering  <meyering@redhat.com>
40169
40170         c-strtod: avoid warnings
40171         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40172         "assignment discards qualifiers from pointer target type" warnings.
40173
40174 2009-01-24  Bruno Haible  <bruno@clisp.org>
40175
40176         Add support for non-UTF-8 locales on MacOS X.
40177         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40178         canonical encodings. For Darwin 7 and newer, don't map traditional
40179         encodings to UTF-8.
40180         Reported by Vincent Lefevre <vincent@vinc17.org>
40181         at <http://savannah.gnu.org/bugs/?25235>.
40182
40183 2009-01-24  Bruno Haible  <bruno@clisp.org>
40184
40185         * doc/gnulib.texi (Obsolete modules): New section.
40186         Reported by Mike Frysinger <vapier@gentoo.org>.
40187
40188 2009-01-24  Bruno Haible  <bruno@clisp.org>
40189
40190         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40191         (%.dvi): New rule.
40192
40193 2009-01-24  Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40196         Reported by Eric Blake.
40197
40198 2009-01-24  Bruno Haible  <bruno@clisp.org>
40199
40200         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40201         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40202         Reported by Gary V. Vaughan <gary@gnu.org>.
40203
40204 2009-01-24  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40207
40208 2009-01-23  Bruno Haible  <bruno@clisp.org>
40209
40210         Make c-strtod, c-strtold usable in libraries.
40211         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40212         (C_STRTOD): Call strdup instead of xstrdup.
40213         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40214         * modules/c-strtold (Depends-on): Likewise.
40215         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40216         * NEWS: Mention the change.
40217         Reported by Michael Gold <mgold@ncf.ca>.
40218
40219 2009-01-23  Jim Meyering  <meyering@redhat.com>
40220
40221         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40222         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40223         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40224
40225 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40226
40227         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40228         GNU CoreUtils.
40229         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40230         * modules/version-etc (Description): Update.
40231
40232 2009-01-22  Bruno Haible  <bruno@clisp.org>
40233
40234         Cache the C locale object.
40235         * lib/c-strtod.c (c_locale_cache): New variable.
40236         (c_locale): New function.
40237         (C_STRTOD): Use it, and don't call freelocale.
40238         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40239         Suggested by Paolo Bonzini.
40240
40241 2009-01-21  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40244         conditions other than overflow.
40245
40246 2009-01-21  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/c-strtod.c: Include errno.h.
40249         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40250         value from STRTOD_L and STRTOD.
40251
40252 2009-01-21  Bruno Haible  <bruno@clisp.org>
40253         and Jim Meyering  <meyering@redhat.com>
40254
40255         nanosleep: skip configure test (fail it) for apple universal builds
40256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40257         universal builds, assume that nanosleep does not work.
40258         * modules/nanosleep (Depends-on): Add multiarch.
40259
40260         mktime: skip configure test (fail it) for apple universal builds
40261         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40262         universal builds, assume that mktime does not work.
40263         * modules/mktime (Depends-on): Add multiarch.
40264
40265 2009-01-21  Eric Blake  <ebb9@byu.net>
40266
40267         multiarch: avoid expand-before-require warning
40268         * modules/multiarch (configure.ac): Require, rather than expand,
40269         gl_MULTIARCH.
40270         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40271         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40272         enforce that all clients require it.  Partial reversion of
40273         2008-12-29 patch.
40274
40275         error: avoid expand-before-require warning
40276         * modules/errno (configure.ac): Require, rather than expand,
40277         gl_HEADER_ERRNO_H.
40278         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40279         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40280         enforce that all clients require it.
40281
40282         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40283         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40284         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40285         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40286
40287 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40288
40289         Revert:
40290         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40291
40292         regex: do not depend on obsolete modules.
40293         * modules/regex: Remove memcmp and memmove.
40294
40295 2009-01-20  Bruno Haible  <bruno@clisp.org>
40296
40297         Make the 'link' module link on Windows NT 4.
40298         * lib/link.c (_WIN32_WINNT): Don't define.
40299         (CreateHardLinkFuncType): New type.
40300         (CreateHardLinkFunc, initialized): New variables.
40301         (initialize): New function.
40302         (link): Invoke CreateHardLink indirectly through the function pointer.
40303
40304 2009-01-20  Bruno Haible  <bruno@clisp.org>
40305
40306         Fix compilation failure on mingw.
40307         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40308
40309 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40310
40311         * doc/c-strtod.texi: Mention a couple of restrictions.
40312
40313 2009-01-20  Jim Meyering  <meyering@redhat.com>
40314
40315         gettimeofday: move more declarations out of functions
40316         * lib/gettimeofday.c: Move extern declarations of tzset and
40317         gmtime out of containing functions.  Prompted by Bruno Haible.
40318
40319 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40320
40321         regex: do not depend on obsolete modules.
40322         * modules/regex: Remove memcmp and memmove.
40323
40324 2009-01-19  Bruno Haible  <bruno@clisp.org>
40325
40326         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40327         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40328         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40329         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40330         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40331
40332 2009-01-19  Bruno Haible  <bruno@clisp.org>
40333
40334         * tests/test-link.c: Include <errno.h>.
40335         (main): Exit with code 77 when a hard link cannot be created due to
40336         the file system.
40337         * tests/test-link.sh: Skip test when a hard link cannot be created due
40338         to the file system.
40339         Suggested by Eric Blake.
40340
40341 2009-01-19  Martin Lambers  <marlam@marlam.de>
40342
40343         * modules/link-tests: New file.
40344         * tests/test-link.sh: New file.
40345         * tests/test-link.c: New file.
40346
40347 2009-01-19  Eric Blake  <ebb9@byu.net>
40348
40349         doc: mention another function added in cygwin 1.7.0
40350         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40351         Another new function in cygwin 1.7.
40352
40353 2009-01-19  Bruno Haible  <bruno@clisp.org>
40354
40355         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40356         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40357         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40358         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40359         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40360         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40361         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40362         * m4/md4.m4 (gl_MD4): Likewise.
40363         * m4/md5.m4 (gl_MD5): Likewise.
40364         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40365         * m4/sha1.m4 (gl_SHA1): Likewise.
40366         * m4/sha256.m4 (gl_SHA256): Likewise.
40367         * m4/sha512.m4 (gl_SHA512): Likewise.
40368
40369 2009-01-19  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/uniname/uniname-tests (Depends-on): Add progname.
40372         * tests/uniname/test-uninames.c: Include progname.h.
40373         (main): Call set_program_name.
40374
40375         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40376         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40377         (main): Call set_program_name.
40378
40379         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40380         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40381         (main): Call set_program_name.
40382
40383         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40384         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40385         (main): Call set_program_name.
40386
40387         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40388         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40389         (main): Call set_program_name.
40390
40391         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40392         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40393         (main): Call set_program_name.
40394
40395         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40396         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40397         (main): Call set_program_name.
40398
40399         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40400         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40401         (main): Call set_program_name.
40402
40403         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40404         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40405         (main): Call set_program_name.
40406
40407 2009-01-19  Eric Blake  <ebb9@byu.net>
40408
40409         test-unistd: test previous patch
40410         * tests/test-unistd.c: Test *_FILENO macros.
40411
40412         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40413         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40414         Guarantee a definition.
40415         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40416         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40417         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40418         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40419         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40420         Likewise.
40421         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40422         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40423         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40424         Likewise.
40425         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40426         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40427         (STDERR_FILENO): Likewise.
40428         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40429         (STDERR_FILENO): Likewise.
40430         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40431         (STDERR_FILENO): Likewise.
40432         Reported by Elbert Pol.
40433
40434 2009-01-19  Eric Blake  <ebb9@byu.net>
40435
40436         doc: mention more functions added in cygwin 1.7.0
40437         * doc/posix-functions/abort.texi (abort): Update wording related
40438         to cygwin.
40439         * doc/posix-functions/daylight.texi (daylight): Likewise.
40440         * doc/posix-functions/optarg.texi (optarg): Likewise.
40441         * doc/posix-functions/optarg.texi (opterr): Likewise.
40442         * doc/posix-functions/optarg.texi (optind): Likewise.
40443         * doc/posix-functions/optarg.texi (optopt): Likewise.
40444         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40445         worked in 1.5.x, and was withdrawn in 1.7.
40446         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40447         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40448         cygwin versions.
40449         * doc/posix-functions/perror.texi (perror): Likewise.
40450         * doc/posix-functions/printf.texi (printf): Likewise.
40451         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40452         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40453         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40454         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40455         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40456         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40457         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40458         Likewise.
40459         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40460         Likewise.
40461         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40462         this function.
40463         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40464         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40465         Likewise.
40466         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40467         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40468         * doc/posix-functions/confstr.texi (confstr): Likewise.
40469         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40470         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40471         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40472         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40473         * doc/posix-functions/fputws.texi (fputws): Likewise.
40474         * doc/posix-functions/fwide.texi (fwide): Likewise.
40475         * doc/posix-functions/getwc.texi (getwc): Likewise.
40476         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40477         * doc/posix-functions/putwc.texi (putwc): Likewise.
40478         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40479         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40480         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40481         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40482         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40483         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40484         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40485         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40486         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40487         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40488         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40489
40490 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40491
40492         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40493         * lib/ioctl.c: Include <sys/ioctl.h>.
40494
40495 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40496
40497         * modules/getdate-tests (Depends-on): Add progname.
40498         * tests/test-getdate.c: Use progname module, to avoid link errors
40499         on non-glibc systems.
40500
40501 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40502
40503         * modules/filenamecat-tests (Depends-on): Add progname.
40504         * modules/fstrcmp-tests (Depends-on): Likewise.
40505
40506         * tests/test-filenamecat.c: Use progname module, to avoid link
40507         errors on non-glibc systems.
40508         * tests/test-fstrcmp.c: Likewise.
40509
40510 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40511
40512         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40513         * lib/gettimeofday.c: Move extern declaration out of function.
40514
40515 2009-01-18  Bruno Haible  <bruno@clisp.org>
40516
40517         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40518         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40519         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40520
40521 2009-01-18  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/strftime.c (MEMPCPY): Remove unused macro.
40524         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40525
40526 2009-01-18  Martin Lambers  <marlam@marlam.de>
40527
40528         New module 'link'.
40529         * lib/unistd.in.h (link): New declaration.
40530         * lib/link.c: New file.
40531         * m4/link.m4: New file.
40532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40533         HAVE_LINK.
40534         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40535         * modules/link: New file.
40536         * doc/posix-functions/link.texi: Mention the new module.
40537
40538 2009-01-18  Bruno Haible  <bruno@clisp.org>
40539
40540         * tests/test-avltree_list.c (main): Call set_program_name.
40541         * tests/test-avltree_oset.c (main): Likewise.
40542         * tests/test-obstack-printf.c: Include progname.h.
40543         (main): Call set_program_name.
40544         * tests/test-quotearg.c: Include progname.h.
40545         (main): Call set_program_name.
40546         * tests/test-xmemdup0.c: Include progname.h.
40547         (main): Call set_program_name.
40548
40549 2009-01-18  Bruno Haible  <bruno@clisp.org>
40550
40551         New module 'alphasort'.
40552         * lib/dirent.in.h (alphasort): New declaration.
40553         * lib/alphasort.c: New file, from glibc with modifications.
40554         * m4/alphasort.m4: New file.
40555         * modules/alphasort: New file.
40556         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40557         HAVE_ALPHASORT.
40558         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40559         HAVE_ALPHASORT.
40560         * doc/posix-functions/alphasort.texi: Mention the new module and the
40561         portability problems.
40562
40563 2009-01-18  Bruno Haible  <bruno@clisp.org>
40564
40565         New module 'scandir'.
40566         * lib/dirent.in.h (scandir): New declaration.
40567         * lib/scandir.c: New file, from glibc with modifications.
40568         * m4/scandir.m4: New file.
40569         * modules/scandir: New file.
40570         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40571         HAVE_SCANDIR.
40572         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40573         HAVE_SCANDIR.
40574         * doc/posix-functions/scandir.texi: Mention the new module and the
40575         portability problems.
40576
40577 2009-01-17  Bruno Haible  <bruno@clisp.org>
40578
40579         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40580         Update documentation.
40581         (func_remove_suffix): Escape all dots in the suffix. Update
40582         documentation.
40583         (func_filter_filelist): Update documentation.
40584         Reported by Ralf Wildenhues.
40585
40586 2009-01-17  Bruno Haible  <bruno@clisp.org>
40587
40588         * modules/dprintf-posix-tests: New file.
40589         * tests/test-dprintf-posix.sh: New file.
40590         * tests/test-dprintf-posix.c: New file.
40591
40592         New modules 'dprintf', 'dprintf-posix'.
40593         * lib/stdio.in.h (dprintf): New declaration.
40594         * lib/dprintf.c: New file.
40595         * m4/dprintf.m4: New file.
40596         * m4/dprintf-posix.m4: New file.
40597         * modules/dprintf: New file.
40598         * modules/dprintf-posix: New file.
40599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40600         HAVE_DPRINTF, REPLACE_DPRINTF.
40601         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40602         HAVE_DPRINTF, REPLACE_DPRINTF.
40603         * doc/posix-functions/dprintf.texi: Mention the new modules.
40604
40605 2009-01-17  Bruno Haible  <bruno@clisp.org>
40606
40607         * modules/vdprintf-posix-tests: New file.
40608         * tests/test-vdprintf-posix.sh: New file.
40609         * tests/test-vdprintf-posix.c: New file.
40610
40611         New modules 'vdprintf', 'vdprintf-posix'.
40612         * lib/stdio.in.h (vdprintf): New declaration.
40613         * lib/vdprintf.c: New file.
40614         * m4/vdprintf.m4: New file.
40615         * m4/vdprintf-posix.m4: New file.
40616         * modules/vdprintf: New file.
40617         * modules/vdprintf-posix: New file.
40618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40619         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40620         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40621         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40622         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40623
40624 2009-01-17  Bruno Haible  <bruno@clisp.org>
40625
40626         Fix replacement of fopen on mingw.
40627         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40628         mingw.
40629
40630 2009-01-17  Bruno Haible  <bruno@clisp.org>
40631
40632         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40633         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40634
40635 2009-01-17  Bruno Haible  <bruno@clisp.org>
40636
40637         Avoid test-fflush2.sh failure on mingw.
40638         * tests/test-fflush2.c: Include binary-io.h.
40639         (main): Put standard input into binary mode.
40640         * modules/fflush-tests (Depends-on): Add binary-io.
40641
40642 2009-01-17  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/wchar.in.h: In another particular situation, include only the
40645         system's <wchar.h> file.
40646         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40647         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40648         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40649
40650 2009-01-17  Bruno Haible  <bruno@clisp.org>
40651
40652         Support for stripping executables in --enable-relocatable.
40653         * build-aux/install-reloc: Expect one more argument, or an environment
40654         variable RELOC_STRIP_PROG. If set, strip the destination program and
40655         its wrapper.
40656         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40657         RELOC_STRIP_PROG.
40658         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40659         to set RELOCATABLE_STRIP.
40660         * NEWS: Mention the new Makefile requirement.
40661
40662 2009-01-17  Bruno Haible  <bruno@clisp.org>
40663
40664         * build-aux/install-reloc: Remove debugging information left over by
40665         C compiler on MacOS X.
40666
40667 2009-01-17  Bruno Haible  <bruno@clisp.org>
40668
40669         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40670         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40671         _NSGetExecutablePath.
40672
40673 2009-01-16  Jim Meyering  <meyering@redhat.com>
40674
40675         strerror: avoid warnings about discarding "const"
40676         * lib/strerror.c (rpl_strerror): Instead of returning a const
40677         string from each and every "case", use a variable, and add a single
40678         cast after the switch.
40679
40680 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40681
40682         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40683
40684 2009-01-16  Bruno Haible  <bruno@clisp.org>
40685
40686         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40687         array initializer syntax that also works in C++ mode.
40688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40689
40690 2009-01-16  Jim Meyering  <meyering@redhat.com>
40691
40692         poll: suppress a warning
40693         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40694         to ignore "...unsigned expression < 0 is always false" warnings.
40695
40696 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40697
40698         poll: remove declarations of unused variables
40699         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40700         sockbuf and optlen.
40701
40702 2009-01-15  Bruno Haible  <bruno@clisp.org>
40703
40704         Make fflush-after-ungetc POSIX compliant on BSD systems.
40705         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40706         (clear_ungetc_buffer): Implement also for other systems.
40707         (rpl_fflush): On glibc systems, invoke
40708         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40709         clear_ungetc_buffer after fetching the stream's position, not before.
40710
40711 2009-01-15  Bruno Haible  <bruno@clisp.org>
40712
40713         Make fflush-after-ungetc POSIX compliant on glibc systems.
40714         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40715         after ungetc.
40716         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40717         (rpl_fflush): On glibc systems, simply call the system's fflush
40718         function after clearing the ungetc buffer.
40719         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40720         Instead, lseek only to the end of file, then use the system's fseeko
40721         for the rest. On glibc systems, reset the EOF indicator bit.
40722
40723 2009-01-15  Jim Meyering  <meyering@redhat.com>
40724
40725         openmp.m4: revert quote-adding change, for portability to older autoconf
40726         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40727         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40728         Simon Josefsson noticed the problem when using autoconf-2.61.
40729
40730 2009-01-15  Bruno Haible  <bruno@clisp.org>
40731
40732         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40733         * tests/test-fflush2.c (ASSERT): Always fail.
40734         (main): Add two tests for fflush() after ungetc(), taking into account
40735         the Austin Group's clarification.
40736         Suggested by Eric Blake.
40737
40738 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40739
40740         mktime.m4: remove K&R-style function prototypes
40741         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40742         for the Sun C++ compiler.
40743
40744 2009-01-14  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40747         while including <wchar.h>.
40748         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40749         the system's <wchar.h> file.
40750         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40751
40752 2009-01-14  Bruno Haible  <bruno@clisp.org>
40753
40754         * m4/csharp.m4: Don't mention gettext on the serial number line.
40755         * m4/csharpexec.m4: Likewise.
40756         * m4/eaccess.m4: Likewise.
40757         * m4/javaexec.m4: Likewise.
40758         * m4/sig_atomic_t.m4: Likewise.
40759         * m4/tmpdir.m4: Likewise.
40760         * m4/intldir.m4: Bump gettext version.
40761         * m4/lib-ld.m4: Likewise.
40762
40763 2009-01-14  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/progname.c (set_program_name): Add more comments.
40766         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40767
40768 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40769
40770         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40771         were sys/stat.h does not define it.
40772
40773 2009-01-14  Jim Meyering  <meyering@redhat.com>
40774
40775         many *.m4 files: improve m4 quoting
40776         99% of this change was performed by running the following commands:
40777         git ls-files | grep '\.m4$' | xargs perl -pi \
40778           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40779           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40780           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40781           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40782         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40783         The remainder were to add Copyright dates, increment serial numbers,
40784         undo some changes in comments, exclude m4/intl.m4, and add quotes
40785         around the "1" in ",1" where the unusual spacing prohibited the
40786         above regexps from doing the job.  For more details, see
40787         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40788         * m4/acl.m4: Modified.
40789         * m4/afs.m4: Likewise.
40790         * m4/alloca.m4: Likewise.
40791         * m4/argp.m4: Likewise.
40792         * m4/argz.m4: Likewise.
40793         * m4/atexit.m4: Likewise.
40794         * m4/bison-i18n.m4: Likewise.
40795         * m4/bison.m4: Likewise.
40796         * m4/byteswap.m4: Likewise.
40797         * m4/c-stack.m4: Likewise.
40798         * m4/c-strtod.m4: Likewise.
40799         * m4/calloc.m4: Likewise.
40800         * m4/canonicalize-lgpl.m4: Likewise.
40801         * m4/chown.m4: Likewise.
40802         * m4/clock_time.m4: Likewise.
40803         * m4/codeset.m4: Likewise.
40804         * m4/copy-file.m4: Likewise.
40805         * m4/csharp.m4: Likewise.
40806         * m4/csharpcomp.m4: Likewise.
40807         * m4/csharpexec.m4: Likewise.
40808         * m4/d-ino.m4: Likewise.
40809         * m4/d-type.m4: Likewise.
40810         * m4/dirfd.m4: Likewise.
40811         * m4/double-slash-root.m4: Likewise.
40812         * m4/eaccess.m4: Likewise.
40813         * m4/eealloc.m4: Likewise.
40814         * m4/environ.m4: Likewise.
40815         * m4/errno_h.m4: Likewise.
40816         * m4/euidaccess.m4: Likewise.
40817         * m4/execute.m4: Likewise.
40818         * m4/fatal-signal.m4: Likewise.
40819         * m4/fchdir.m4: Likewise.
40820         * m4/fcntl_h.m4: Likewise.
40821         * m4/fileblocks.m4: Likewise.
40822         * m4/filenamecat.m4: Likewise.
40823         * m4/findprog.m4: Likewise.
40824         * m4/flexmember.m4: Likewise.
40825         * m4/fnmatch.m4: Likewise.
40826         * m4/fopen.m4: Likewise.
40827         * m4/fpending.m4: Likewise.
40828         * m4/fprintf-posix.m4: Likewise.
40829         * m4/free.m4: Likewise.
40830         * m4/frexp.m4: Likewise.
40831         * m4/frexpl.m4: Likewise.
40832         * m4/fsusage.m4: Likewise.
40833         * m4/ftruncate.m4: Likewise.
40834         * m4/gc-camellia.m4: Likewise.
40835         * m4/gc-random.m4: Likewise.
40836         * m4/gc.m4: Likewise.
40837         * m4/getaddrinfo.m4: Likewise.
40838         * m4/getcwd-abort-bug.m4: Likewise.
40839         * m4/getcwd-path-max.m4: Likewise.
40840         * m4/getdate.m4: Likewise.
40841         * m4/getdomainname.m4: Likewise.
40842         * m4/getgroups.m4: Likewise.
40843         * m4/gethostname.m4: Likewise.
40844         * m4/gethrxtime.m4: Likewise.
40845         * m4/getline.m4: Likewise.
40846         * m4/getloadavg.m4: Likewise.
40847         * m4/getndelim2.m4: Likewise.
40848         * m4/getpass.m4: Likewise.
40849         * m4/gettext.m4: Likewise.
40850         * m4/gettime.m4: Likewise.
40851         * m4/gettimeofday.m4: Likewise.
40852         * m4/gnulib-common.m4: Likewise.
40853         * m4/group-member.m4: Likewise.
40854         * m4/host-os.m4: Likewise.
40855         * m4/iconv.m4: Likewise.
40856         * m4/iconv_open.m4: Likewise.
40857         * m4/inet_ntop.m4: Likewise.
40858         * m4/inet_pton.m4: Likewise.
40859         * m4/inline.m4: Likewise.
40860         * m4/intldir.m4: Likewise.
40861         * m4/intlmacosx.m4: Likewise.
40862         * m4/intmax.m4: Likewise.
40863         * m4/intmax_t.m4: Likewise.
40864         * m4/inttypes.m4: Likewise.
40865         * m4/inttypes_h.m4: Likewise.
40866         * m4/inttypes-pri.m4: Likewise.
40867         * m4/isapipe.m4: Likewise.
40868         * m4/isnand.m4: Likewise.
40869         * m4/isnanf.m4: Likewise.
40870         * m4/isnanl.m4: Likewise.
40871         * m4/javacomp.m4: Likewise.
40872         * m4/javaexec.m4: Likewise.
40873         * m4/jm-winsz1.m4: Likewise.
40874         * m4/jm-winsz2.m4: Likewise.
40875         * m4/lchown.m4: Likewise.
40876         * m4/lcmessage.m4: Likewise.
40877         * m4/ldexpl.m4: Likewise.
40878         * m4/lib-ld.m4: Likewise.
40879         * m4/lib-link.m4: Likewise.
40880         * m4/libsigsegv.m4: Likewise.
40881         * m4/link-follow.m4: Likewise.
40882         * m4/localcharset.m4: Likewise.
40883         * m4/locale-fr.m4: Likewise.
40884         * m4/locale-ja.m4: Likewise.
40885         * m4/locale-tr.m4: Likewise.
40886         * m4/locale-zh.m4: Likewise.
40887         * m4/lock.m4: Likewise.
40888         * m4/longlong.m4: Likewise.
40889         * m4/ls-mntd-fs.m4: Likewise.
40890         * m4/lstat.m4: Likewise.
40891         * m4/malloc.m4: Likewise.
40892         * m4/mathl.m4: Likewise.
40893         * m4/mbrtowc.m4: Likewise.
40894         * m4/mbstate_t.m4: Likewise.
40895         * m4/mbswidth.m4: Likewise.
40896         * m4/memchr.m4: Likewise.
40897         * m4/memcmp.m4: Likewise.
40898         * m4/memcpy.m4: Likewise.
40899         * m4/memmem.m4: Likewise.
40900         * m4/memmove.m4: Likewise.
40901         * m4/mempcpy.m4: Likewise.
40902         * m4/memrchr.m4: Likewise.
40903         * m4/memset.m4: Likewise.
40904         * m4/minmax.m4: Likewise.
40905         * m4/mkdir-slash.m4: Likewise.
40906         * m4/mkdtemp.m4: Likewise.
40907         * m4/mktime.m4: Likewise.
40908         * m4/mmap-anon.m4: Likewise.
40909         * m4/mountlist.m4: Likewise.
40910         * m4/nanosleep.m4: Likewise.
40911         * m4/nls.m4: Likewise.
40912         * m4/nocrash.m4: Likewise.
40913         * m4/open.m4: Likewise.
40914         * m4/openat.m4: Likewise.
40915         * m4/openmp.m4: Likewise.
40916         * m4/pathmax.m4: Likewise.
40917         * m4/perl.m4: Likewise.
40918         * m4/physmem.m4: Likewise.
40919         * m4/pipe.m4: Likewise.
40920         * m4/po.m4: Likewise.
40921         * m4/poll.m4: Likewise.
40922         * m4/posixtm.m4: Likewise.
40923         * m4/posixver.m4: Likewise.
40924         * m4/printf-frexp.m4: Likewise.
40925         * m4/printf-frexpl.m4: Likewise.
40926         * m4/printf-posix.m4: Likewise.
40927         * m4/printf-posix-rpl.m4: Likewise.
40928         * m4/printf.m4: Likewise.
40929         * m4/progtest.m4: Likewise.
40930         * m4/putenv.m4: Likewise.
40931         * m4/readline.m4: Likewise.
40932         * m4/readlink.m4: Likewise.
40933         * m4/readutmp.m4: Likewise.
40934         * m4/realloc.m4: Likewise.
40935         * m4/regex.m4: Likewise.
40936         * m4/relocatable.m4: Likewise.
40937         * m4/relocatable-lib.m4: Likewise.
40938         * m4/rename-dest-slash.m4: Likewise.
40939         * m4/rename.m4: Likewise.
40940         * m4/rmdir-errno.m4: Likewise.
40941         * m4/rmdir.m4: Likewise.
40942         * m4/roundf.m4: Likewise.
40943         * m4/roundl.m4: Likewise.
40944         * m4/rpmatch.m4: Likewise.
40945         * m4/save-cwd.m4: Likewise.
40946         * m4/selinux-selinux-h.m4: Likewise.
40947         * m4/setenv.m4: Likewise.
40948         * m4/settime.m4: Likewise.
40949         * m4/sig2str.m4: Likewise.
40950         * m4/sig_atomic_t.m4: Likewise.
40951         * m4/signalblocking.m4: Likewise.
40952         * m4/signbit.m4: Likewise.
40953         * m4/sigpipe.m4: Likewise.
40954         * m4/sockets.m4: Likewise.
40955         * m4/sockpfaf.m4: Likewise.
40956         * m4/st_dm_mode.m4: Likewise.
40957         * m4/stat-time.m4: Likewise.
40958         * m4/stdbool.m4: Likewise.
40959         * m4/stdint.m4: Likewise.
40960         * m4/stdint_h.m4: Likewise.
40961         * m4/stpcpy.m4: Likewise.
40962         * m4/stpncpy.m4: Likewise.
40963         * m4/strcase.m4: Likewise.
40964         * m4/strchrnul.m4: Likewise.
40965         * m4/strcspn.m4: Likewise.
40966         * m4/strdup.m4: Likewise.
40967         * m4/strftime.m4: Likewise.
40968         * m4/strndup.m4: Likewise.
40969         * m4/strnlen.m4: Likewise.
40970         * m4/strpbrk.m4: Likewise.
40971         * m4/strptime.m4: Likewise.
40972         * m4/strsep.m4: Likewise.
40973         * m4/strtod.m4: Likewise.
40974         * m4/strtoimax.m4: Likewise.
40975         * m4/strtok_r.m4: Likewise.
40976         * m4/strtol.m4: Likewise.
40977         * m4/strtoll.m4: Likewise.
40978         * m4/strtoul.m4: Likewise.
40979         * m4/strtoull.m4: Likewise.
40980         * m4/strtoumax.m4: Likewise.
40981         * m4/strverscmp.m4: Likewise.
40982         * m4/threadlib.m4: Likewise.
40983         * m4/timegm.m4: Likewise.
40984         * m4/tm_gmtoff.m4: Likewise.
40985         * m4/tmpdir.m4: Likewise.
40986         * m4/tmpfile.m4: Likewise.
40987         * m4/tzset.m4: Likewise.
40988         * m4/uintmax_t.m4: Likewise.
40989         * m4/unlinkdir.m4: Likewise.
40990         * m4/unlocked-io.m4: Likewise.
40991         * m4/uptime.m4: Likewise.
40992         * m4/userspec.m4: Likewise.
40993         * m4/utimbuf.m4: Likewise.
40994         * m4/utime.m4: Likewise.
40995         * m4/utimes-null.m4: Likewise.
40996         * m4/utimes.m4: Likewise.
40997         * m4/vararrays.m4: Likewise.
40998         * m4/vasnprintf.m4: Likewise.
40999         * m4/vfprintf-posix.m4: Likewise.
41000         * m4/vprintf-posix.m4: Likewise.
41001         * m4/wait-process.m4: Likewise.
41002         * m4/wchar_t.m4: Likewise.
41003         * m4/wint_t.m4: Likewise.
41004         * m4/write-any-file.m4: Likewise.
41005         * m4/yield.m4: Likewise.
41006
41007 2009-01-13  Bruno Haible  <bruno@clisp.org>
41008
41009         Avoid test-copy-file.sh failures when ACL support insufficient.
41010         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41011         TESTS_ENVIRONMENT.
41012         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41013         Reported by Jim Meyering.
41014
41015 2009-01-13  Bruno Haible  <bruno@clisp.org>
41016
41017         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41018         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41019         * modules/unistdio/u8-printf-parse (Files): Likewise.
41020         * modules/unistdio/u32-printf-parse (Files): Likewise.
41021         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41022
41023 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41024
41025         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41026         and m4/inttypes_h.m4 too.
41027
41028 2009-01-12  Eric Blake  <ebb9@byu.net>
41029
41030         tests: IRIX 6.2 cc can't compile -0.0 into .data
41031         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41032         rather than at compile-time.
41033         * tests/test-floorl.c (minus_zero): Likewise.
41034         * tests/test-frexpl.c (minus_zero): Likewise.
41035         * tests/test-isnan.c (minus_zerol): Likewise.
41036         * tests/test-isnanl.h (minus_zero): Likewise.
41037         * tests/test-ldexpl.c (minus_zero): Likewise.
41038         * tests/test-roundl.c (minus_zero): Likewise.
41039         * tests/test-signbit.c (minus_zerol): Likewise.
41040         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41041         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41042         * tests/test-truncl.c (minus_zero): Likewise.
41043         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41044         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41045         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41046
41047 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41048
41049         regex: fix glibc bug 9697
41050         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41051         handling.
41052
41053 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41054
41055         regex: fix glibc bug 697
41056         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41057         being NULL also if there are no backreferences.
41058
41059 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41060
41061         regex: merge glibc changes
41062         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41063         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41064         re_string_skip_chars, re_string_reconstruct): Likewise.
41065         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41066
41067 2009-01-07  Jim Meyering  <meyering@redhat.com>
41068
41069         poll: filter through cppi
41070         * lib/poll.c: Indent cpp directives to reflect nesting.
41071
41072 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41073
41074         poll: don't return uninitialized
41075         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41076
41077 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41078
41079         avoid compile failure on AIX 6.1
41080         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41081         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41082
41083 2009-01-04  Jim Meyering  <meyering@redhat.com>
41084
41085         remove duplicate inclusion of <stdio.h>
41086         * tests/test-fprintf-posix.c: Likewise.
41087         * tests/test-printf-posix.c: Likewise.
41088         * tests/test-snprintf-posix.c: Likewise.
41089         * tests/test-sprintf-posix.c: Likewise.
41090         * tests/test-vasprintf-posix.c: Likewise.
41091         * tests/test-vfprintf-posix.c: Likewise.
41092         * tests/test-vprintf-posix.c: Likewise.
41093         * tests/test-vsnprintf-posix.c: Likewise.
41094         * tests/test-vsprintf-posix.c: Likewise.
41095
41096 2009-01-03  Jim Meyering  <meyering@redhat.com>
41097
41098         gnulib-tool: fix sed-based filtering
41099         * gnulib-tool (func_filter_filelist): Remove extra backslash
41100         in sed_fff_filter definition.
41101
41102 2009-01-02  Jim Meyering  <meyering@redhat.com>
41103
41104         strftime: avoid compilation failure on Solaris 2.6
41105         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41106         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41107         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41108         be available.  Reported by Tom G. Christensen.  Details in
41109         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41110
41111 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41112             Bruno Haible  <bruno@clisp.org>
41113
41114         Speed up gnulib-tool by doing more string processing through shell
41115         built-ins.
41116         * gnulib-tool (fast_func_append): New variable.
41117         (func_remove_prefix, func_remove_suffix): New functions.
41118         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41119         (func_filter_filelist): New function.
41120         (func_get_dependencies): Use func_remove_suffix instead of sed.
41121         (func_get_automake_snippet): Use func_filter_filelist instead of a
41122         subshell and sed invocation.
41123
41124 2009-01-01  Bruno Haible  <bruno@clisp.org>
41125
41126         Fix a security bug.
41127         * gnulib-tool (func_import, import, update): Don't allow the characters
41128         '"', '$', '`', '\' in macro arguments that become part of commands that
41129         are evaluated.
41130
41131 2009-01-01  Bruno Haible  <bruno@clisp.org>
41132
41133         * gnulib-tool (func_reset_sigpipe): Add more comments.
41134
41135 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41136
41137         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41138         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41139         already know the answer.
41140
41141 2009-01-01  Jim Meyering  <meyering@redhat.com>
41142
41143         * lib/version-etc.c (version_etc_va): Update copyright year.
41144
41145 2008-12-30  Bruno Haible  <bruno@clisp.org>
41146
41147         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41148         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41149         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41150
41151 2008-12-29  Eric Blake  <ebb9@byu.net>
41152
41153         multiarch: avoid autoconf AC_REQUIRE bug
41154         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41155         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41156         2.63 and older.
41157         Reported by Bruno Haible, and analyzed in
41158         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41159
41160 2008-12-29  Bruno Haible  <bruno@clisp.org>
41161
41162         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41163         files in subdirectories correctly.
41164         Reported by Ralf Wildenhues.
41165
41166 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41167
41168         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41169         rather than 'join FILE -', for Solaris join.
41170
41171 2008-12-29  Bruno Haible  <bruno@clisp.org>
41172
41173         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41174         quoting.
41175         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41176         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41177         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41178         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41179         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41180         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41181         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41182         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41183         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41184         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41185         * m4/nls.m4 (AM_NLS): Likewise.
41186         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41187         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41188         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41189         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41190         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41191         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41192         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41193         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41194         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41195         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41196         * m4/xsize.m4 (gl_XSIZE): Likewise.
41197         Suggested by Jim Meyering.
41198
41199 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41200
41201         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41202         * lib/parse-duration.c: use a switch instead of cascading if's.
41203
41204 2008-12-29  Eric Blake  <ebb9@byu.net>
41205
41206         wchar.h: supply WEOF on Irix 5.3
41207         * lib/wchar.in.h (wint_t): Also supply WEOF.
41208         * lib/wctype.in.h (wint_t): Likewise.
41209         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41210         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41211         Reported by Tom G. Christensen.
41212
41213 2008-12-26  Bruno Haible  <bruno@clisp.org>
41214
41215         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41216         i486, i586, i686.
41217
41218 2008-12-26  Bruno Haible  <bruno@clisp.org>
41219
41220         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41221
41222 2008-12-26  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41225         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41226         not __STDC_CONSTANT_MACROS.
41227         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41228
41229 2008-12-25  Bruno Haible  <bruno@clisp.org>
41230
41231         Add support for universal builds to vasnprintf.
41232         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41233         universal builds, guess no.
41234         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41235         * modules/vasprintf-posix (Depends-on): Likewise.
41236         * modules/fprintf-posix (Depends-on): Likewise.
41237         * modules/vfprintf-posix (Depends-on): Likewise.
41238         * modules/snprintf-posix (Depends-on): Likewise.
41239         * modules/vsnprintf-posix (Depends-on): Likewise.
41240         * modules/sprintf-posix (Depends-on): Likewise.
41241         * modules/vsprintf-posix (Depends-on): Likewise.
41242         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41243         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41244         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41245         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41246         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41248         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41249
41250         Add support for universal builds to <inttypes.h>.
41251         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41252         _SCNu64_PREFIX): In Apple
41253         universal builds, define directly, using _LP64.
41254         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41255         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41256         * modules/inttypes (Depends-on): Add multiarch.
41257         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41258
41259         Add support for universal builds to <stdint.h>.
41260         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41261         universal builds, define directly, using _LP64.
41262         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41263         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41264         and size_t.
41265         * modules/stdint (Depends-on): Add multiarch.
41266         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41267
41268         New module 'multiarch'.
41269         * modules/multiarch: New file.
41270         * m4/multiarch.m4: New file.
41271
41272 2008-12-25  Bruno Haible  <bruno@clisp.org>
41273
41274         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41275
41276 2008-12-25  Bruno Haible  <bruno@clisp.org>
41277
41278         * modules/btowc (License): Relicense under LGPLv2+.
41279         * modules/mbsinit (License): Likewise.
41280         * modules/mbrtowc (License): Likewise.
41281         * modules/wcrtomb (License): Likewise.
41282         * modules/streq (License): Likewise.
41283         Reported by David Lutterkort <lutter@redhat.com>.
41284
41285 2008-12-23  Bruno Haible  <bruno@clisp.org>
41286
41287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41288
41289 2008-12-23  Bruno Haible  <bruno@clisp.org>
41290
41291         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41293         GETADDRINFO_LIB, not in LIBS.
41294         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41295         * modules/canon-host (Link): Likewise.
41296         * NEWS: Mention the change.
41297         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41298         GETADDRINFO_LIB.
41299
41300 2008-12-22  Bruno Haible  <bruno@clisp.org>
41301
41302         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41303         * doc/posix-functions/iswalpha_l.texi: Likewise.
41304         * doc/posix-functions/iswblank_l.texi: Likewise.
41305         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41306         * doc/posix-functions/iswctype_l.texi: Likewise.
41307         * doc/posix-functions/iswdigit_l.texi: Likewise.
41308         * doc/posix-functions/iswgraph_l.texi: Likewise.
41309         * doc/posix-functions/iswlower_l.texi: Likewise.
41310         * doc/posix-functions/iswprint_l.texi: Likewise.
41311         * doc/posix-functions/iswpunct_l.texi: Likewise.
41312         * doc/posix-functions/iswspace_l.texi: Likewise.
41313         * doc/posix-functions/iswupper_l.texi: Likewise.
41314         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41315         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41316         * doc/posix-functions/open_wmemstream.texi: Likewise.
41317         * doc/posix-functions/swscanf.texi: Likewise.
41318         * doc/posix-functions/towctrans_l.texi: Likewise.
41319         * doc/posix-functions/towlower.texi: Likewise.
41320         * doc/posix-functions/towlower_l.texi: Likewise.
41321         * doc/posix-functions/towupper.texi: Likewise.
41322         * doc/posix-functions/towupper_l.texi: Likewise.
41323         * doc/posix-functions/vfwprintf.texi: Likewise.
41324         * doc/posix-functions/vfwscanf.texi: Likewise.
41325         * doc/posix-functions/vswscanf.texi: Likewise.
41326         * doc/posix-functions/vwprintf.texi: Likewise.
41327         * doc/posix-functions/vwscanf.texi: Likewise.
41328         * doc/posix-functions/wcpcpy.texi: Likewise.
41329         * doc/posix-functions/wcpncpy.texi: Likewise.
41330         * doc/posix-functions/wcscasecmp.texi: Likewise.
41331         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41332         * doc/posix-functions/wcscoll_l.texi: Likewise.
41333         * doc/posix-functions/wcsdup.texi: Likewise.
41334         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41335         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41336         * doc/posix-functions/wcsnlen.texi: Likewise.
41337         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41338         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41339         * doc/posix-functions/wctrans_l.texi: Likewise.
41340         * doc/posix-functions/wctype_l.texi: Likewise.
41341         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41342         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41343         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41344         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41345         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41346         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41347         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41348         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41349         * doc/glibc-functions/wcschrnul.texi: Likewise.
41350         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41351         * doc/glibc-functions/wcstod_l.texi: Likewise.
41352         * doc/glibc-functions/wcstof_l.texi: Likewise.
41353         * doc/glibc-functions/wcstol_l.texi: Likewise.
41354         * doc/glibc-functions/wcstold_l.texi: Likewise.
41355         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41356         * doc/glibc-functions/wcstoq.texi: Likewise.
41357         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41358         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41359         * doc/glibc-functions/wcstouq.texi: Likewise.
41360         * doc/glibc-functions/wmempcpy.texi: Likewise.
41361
41362 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41363             Eric Blake  <ebb9@byu.net>
41364             Paolo Bonzini  <bonzini@gnu.org>
41365             Bruno Haible  <bruno@clisp.org>
41366
41367         Make c-stack work on Haiku.
41368         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41369         (c_stack_action): Use SA_ONSTACK flag.
41370
41371 2008-12-22  Bruno Haible  <bruno@clisp.org>
41372
41373         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41374
41375 2008-12-22  Bruno Haible  <bruno@clisp.org>
41376
41377         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41378         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41379         being overridden.
41380         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41381         New macros.
41382         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41384         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41385         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41386
41387 2008-12-22  Bruno Haible  <bruno@clisp.org>
41388
41389         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41390         from test code.
41391
41392 2008-12-22  Eric Blake  <ebb9@byu.net>
41393
41394         Avoid gcc warnings on cygwin.
41395         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41396         Avoid unused variable.
41397         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41398         Likewise.
41399
41400 2008-12-22  Bruno Haible  <bruno@clisp.org>
41401
41402         Remove HAVE_MBRTOWC conditionals.
41403         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41404         (mbscasecmp): Assume mbrtowc function.
41405         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41406         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41407         * lib/mbschr.c: Include mbuiter.h unconditionally.
41408         (mbschr): Assume mbrtowc function.
41409         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41410         (mbscspn): Assume mbrtowc function.
41411         * lib/mbslen.c: Include mbuiter.h unconditionally.
41412         (mbslen): Assume mbrtowc function.
41413         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41414         (mbsncasecmp): Assume mbrtowc function.
41415         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41416         (mbsnlen): Assume mbrtowc function.
41417         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41418         (mbspbrk): Assume mbrtowc function.
41419         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41420         (mbspcasecmp): Assume mbrtowc function.
41421         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41422         (mbsrchr): Assume mbrtowc function.
41423         * lib/mbssep.c: Include mbuiter.h unconditionally.
41424         (mbssep): Assume mbrtowc function.
41425         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41426         (mbsspn): Assume mbrtowc function.
41427         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41428         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41429         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41430         (mbstok_r): Assume mbrtowc function.
41431         * lib/propername.c: Include mbuiter.h unconditionally.
41432         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41433         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41434         (trim2): Assume mbrtowc function.
41435         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41436         (mbsnwidth): Assume mbrtowc function.
41437         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41438         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41439         fallback definitions.
41440         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41441
41442 2008-12-22  Bruno Haible  <bruno@clisp.org>
41443
41444         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41445
41446 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41447
41448         * modules/regex: Request emulations for the mb*/wc* functions we need.
41449         * m4/regex.m4: Don't look for those functions here.
41450         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41451
41452 2008-12-22  Bruno Haible  <bruno@clisp.org>
41453
41454         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41455
41456 2008-12-21  Bruno Haible  <bruno@clisp.org>
41457
41458         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41459         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41460         (Include): Remove conditionalization.
41461         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41462         (Include): Remove conditionalization.
41463         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41464         (Include): Remove conditionalization.
41465         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41466         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41467         * NEWS: Mention the change.
41468         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41469         via Sergey Poznyakoff <gray@gnu.org.ua>.
41470
41471 2008-12-21  Bruno Haible  <bruno@clisp.org>
41472
41473         * MODULES.html.sh (Extended multibyte and wide character utilities
41474         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41475         wcrtomb, wcsrtombs.
41476         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41477         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41478         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41479         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41480
41481 2008-12-21  Bruno Haible  <bruno@clisp.org>
41482
41483         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41484
41485 2008-12-21  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/wcsnrtombs-tests: New file.
41488         * tests/test-wcsnrtombs1.sh: New file.
41489         * tests/test-wcsnrtombs2.sh: New file.
41490         * tests/test-wcsnrtombs3.sh: New file.
41491         * tests/test-wcsnrtombs4.sh: New file.
41492         * tests/test-wcsnrtombs.c: New file.
41493
41494         New module 'wcsnrtombs'.
41495         * lib/wchar.in.h (wcsnrtombs): New declaration.
41496         * lib/wcsnrtombs.c: New file.
41497         * lib/wcsrtombs-state.c: New file.
41498         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41499         (internal_state): Remove variable.
41500         * m4/wcsnrtombs.m4: New file.
41501         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41502         compilation units.
41503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41504         HAVE_WCSNRTOMBS.
41505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41506         HAVE_WCSNRTOMBS.
41507         * modules/wcsnrtombs: New file.
41508         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41509         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41510
41511 2008-12-21  Bruno Haible  <bruno@clisp.org>
41512
41513         * modules/wcsrtombs-tests: New file.
41514         * tests/test-wcsrtombs1.sh: New file.
41515         * tests/test-wcsrtombs2.sh: New file.
41516         * tests/test-wcsrtombs3.sh: New file.
41517         * tests/test-wcsrtombs4.sh: New file.
41518         * tests/test-wcsrtombs.c: New file.
41519
41520         New module 'wcsrtombs'.
41521         * lib/wchar.in.h (wcsrtombs): New declaration.
41522         * lib/wcsrtombs.c: New file.
41523         * m4/wcsrtombs.m4: New file.
41524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41525         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41527         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41528         * modules/wcsrtombs: New file.
41529         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41530         bugs.
41531
41532 2008-12-21  Bruno Haible  <bruno@clisp.org>
41533
41534         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41535         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41536         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41537         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41538         if not correct.
41539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41540         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41541         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41542         m4/locale-zh.m4, m4/codeset.m4.
41543         * doc/posix-functions/wcrtomb.texi: Document the bug.
41544
41545 2008-12-21  Bruno Haible  <bruno@clisp.org>
41546
41547         Work around a btowc() bug on IRIX 6.5.
41548         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41549         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41550         REPLACE_WTOBC if not.
41551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41552         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41553         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41554
41555 2008-12-21  Bruno Haible  <bruno@clisp.org>
41556
41557         * modules/wcrtomb-tests: New file.
41558         * tests/test-wcrtomb.sh: New file.
41559         * tests/test-wcrtomb.c: New file.
41560
41561         New module 'wcrtomb'.
41562         * lib/wchar.in.h (wcrtomb): New declaration.
41563         * lib/wcrtomb.c: New file.
41564         * m4/wcrtomb.m4: New file.
41565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41566         HAVE_WCRTOMB.
41567         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41568         HAVE_WCRTOMB.
41569         * modules/wcrtomb: New file.
41570         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41571
41572 2008-12-21  Bruno Haible  <bruno@clisp.org>
41573
41574         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41575         * modules/mbsrtowcs (Files): Likewise.
41576         * modules/wctob (Files): Likewise.
41577         * modules/c-strcase-tests (Files): Likewise.
41578         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41579         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41580         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41581         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41582         * modules/vasnprintf-posix-tests (Files): Likewise.
41583
41584 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41585
41586         gitlog-to-changelog: pass all command-line arguments to git-log
41587         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41588         it is sometimes convenient to filter the commits in various ways.
41589         gitlog-to-changelog only allows --since to specify a start date,
41590         but git-log itself supports many other filtering mechanisms.
41591         At the moment, I want to filter by branch name.  Rather than
41592         adding a --branch option to gitlog-to-changelog, it seems more
41593         flexible to simply pass all options directly to git-log and let
41594         git do the work.  Notice that this effectively makes --since a
41595         redundant option for gitlog-to-changelog, but removing it would
41596         require current usage to change since calls would then require
41597         an additional '--'.
41598
41599 2008-12-21  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/mbsnrtowcs-tests: New file.
41602         * tests/test-mbsnrtowcs1.sh: New file.
41603         * tests/test-mbsnrtowcs2.sh: New file.
41604         * tests/test-mbsnrtowcs3.sh: New file.
41605         * tests/test-mbsnrtowcs4.sh: New file.
41606         * tests/test-mbsnrtowcs.c: New file.
41607
41608         New module 'mbsnrtowcs'.
41609         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41610         * lib/mbsnrtowcs.c: New file.
41611         * lib/mbsrtowcs-state.c: New file.
41612         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41613         (internal_state): Remove variable.
41614         * m4/mbsnrtowcs.m4: New file.
41615         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41616         compilation units.
41617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41618         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41619         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41620         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41621         * modules/mbsnrtowcs: New file.
41622         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41623         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41624         portability problem.
41625
41626 2008-12-21  Bruno Haible  <bruno@clisp.org>
41627
41628         Work around mbsrtowcs bug.
41629         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41630         (gl_FUNC_MBSRTOWCS): Invoke it.
41631         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41632         m4/locale-zh.m4.
41633         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41634
41635 2008-12-21  Bruno Haible  <bruno@clisp.org>
41636
41637         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41638
41639 2008-12-21  Bruno Haible  <bruno@clisp.org>
41640
41641         Update doc for AIX.
41642         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41643         16-bit wchar_t type.
41644         * doc/posix-functions/btowc.texi: Likewise.
41645         * doc/posix-functions/fgetwc.texi: Likewise.
41646         * doc/posix-functions/fgetws.texi: Likewise.
41647         * doc/posix-functions/fputwc.texi: Likewise.
41648         * doc/posix-functions/fputws.texi: Likewise.
41649         * doc/posix-functions/fwide.texi: Likewise.
41650         * doc/posix-functions/fwprintf.texi: Likewise.
41651         * doc/posix-functions/fwscanf.texi: Likewise.
41652         * doc/posix-functions/getwchar.texi: Likewise.
41653         * doc/posix-functions/getwc.texi: Likewise.
41654         * doc/posix-functions/iswalnum.texi: Likewise.
41655         * doc/posix-functions/iswalpha.texi: Likewise.
41656         * doc/posix-functions/iswblank.texi: Likewise.
41657         * doc/posix-functions/iswcntrl.texi: Likewise.
41658         * doc/posix-functions/iswctype.texi: Likewise.
41659         * doc/posix-functions/iswdigit.texi: Likewise.
41660         * doc/posix-functions/iswgraph.texi: Likewise.
41661         * doc/posix-functions/iswlower.texi: Likewise.
41662         * doc/posix-functions/iswprint.texi: Likewise.
41663         * doc/posix-functions/iswpunct.texi: Likewise.
41664         * doc/posix-functions/iswspace.texi: Likewise.
41665         * doc/posix-functions/iswupper.texi: Likewise.
41666         * doc/posix-functions/iswxdigit.texi: Likewise.
41667         * doc/posix-functions/mbrtowc.texi: Likewise.
41668         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41669         * doc/posix-functions/mbstowcs.texi: Likewise.
41670         * doc/posix-functions/mbtowc.texi: Likewise.
41671         * doc/posix-functions/putwchar.texi: Likewise.
41672         * doc/posix-functions/putwc.texi: Likewise.
41673         * doc/posix-functions/swprintf.texi: Likewise.
41674         * doc/posix-functions/tolower.texi: Likewise.
41675         * doc/posix-functions/toupper.texi: Likewise.
41676         * doc/posix-functions/towctrans.texi: Likewise.
41677         * doc/posix-functions/ungetwc.texi: Likewise.
41678         * doc/posix-functions/vswprintf.texi: Likewise.
41679         * doc/posix-functions/wcrtomb.texi: Likewise.
41680         * doc/posix-functions/wcscat.texi: Likewise.
41681         * doc/posix-functions/wcschr.texi: Likewise.
41682         * doc/posix-functions/wcscmp.texi: Likewise.
41683         * doc/posix-functions/wcscoll.texi: Likewise.
41684         * doc/posix-functions/wcscpy.texi: Likewise.
41685         * doc/posix-functions/wcscspn.texi: Likewise.
41686         * doc/posix-functions/wcsftime.texi: Likewise.
41687         * doc/posix-functions/wcslen.texi: Likewise.
41688         * doc/posix-functions/wcsncat.texi: Likewise.
41689         * doc/posix-functions/wcsncmp.texi: Likewise.
41690         * doc/posix-functions/wcsncpy.texi: Likewise.
41691         * doc/posix-functions/wcspbrk.texi: Likewise.
41692         * doc/posix-functions/wcsrchr.texi: Likewise.
41693         * doc/posix-functions/wcsrtombs.texi: Likewise.
41694         * doc/posix-functions/wcsspn.texi: Likewise.
41695         * doc/posix-functions/wcsstr.texi: Likewise.
41696         * doc/posix-functions/wcstod.texi: Likewise.
41697         * doc/posix-functions/wcstof.texi: Likewise.
41698         * doc/posix-functions/wcstoimax.texi: Likewise.
41699         * doc/posix-functions/wcstok.texi: Likewise.
41700         * doc/posix-functions/wcstold.texi: Likewise.
41701         * doc/posix-functions/wcstoll.texi: Likewise.
41702         * doc/posix-functions/wcstol.texi: Likewise.
41703         * doc/posix-functions/wcstombs.texi: Likewise.
41704         * doc/posix-functions/wcstoull.texi: Likewise.
41705         * doc/posix-functions/wcstoul.texi: Likewise.
41706         * doc/posix-functions/wcstoumax.texi: Likewise.
41707         * doc/posix-functions/wcswidth.texi: Likewise.
41708         * doc/posix-functions/wcsxfrm.texi: Likewise.
41709         * doc/posix-functions/wctob.texi: Likewise.
41710         * doc/posix-functions/wctomb.texi: Likewise.
41711         * doc/posix-functions/wctrans.texi: Likewise.
41712         * doc/posix-functions/wctype.texi: Likewise.
41713         * doc/posix-functions/wcwidth.texi: Likewise.
41714         * doc/posix-functions/wmemchr.texi: Likewise.
41715         * doc/posix-functions/wmemcmp.texi: Likewise.
41716         * doc/posix-functions/wmemcpy.texi: Likewise.
41717         * doc/posix-functions/wmemmove.texi: Likewise.
41718         * doc/posix-functions/wmemset.texi: Likewise.
41719         * doc/posix-functions/wprintf.texi: Likewise.
41720         * doc/posix-functions/wscanf.texi: Likewise.
41721
41722 2008-12-21  Bruno Haible  <bruno@clisp.org>
41723
41724         Update doc for HP-UX 11.11.
41725         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41726         in HP-UX version 11.00, not in all versions of HP-UX 11.
41727         * doc/posix-functions/fwide.texi: Likewise.
41728         * doc/posix-functions/fwprintf.texi: Likewise.
41729         * doc/posix-functions/fwscanf.texi: Likewise.
41730         * doc/posix-functions/inet_ntop.texi: Likewise.
41731         * doc/posix-functions/inet_pton.texi: Likewise.
41732         * doc/posix-functions/mbrlen.texi: Likewise.
41733         * doc/posix-functions/mbrtowc.texi: Likewise.
41734         * doc/posix-functions/mbsinit.texi: Likewise.
41735         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41736         * doc/posix-functions/swprintf.texi: Likewise.
41737         * doc/posix-functions/swscanf.texi: Likewise.
41738         * doc/posix-functions/towctrans.texi: Likewise.
41739         * doc/posix-functions/vfwprintf.texi: Likewise.
41740         * doc/posix-functions/vswprintf.texi: Likewise.
41741         * doc/posix-functions/vwprintf.texi: Likewise.
41742         * doc/posix-functions/wcrtomb.texi: Likewise.
41743         * doc/posix-functions/wcsrtombs.texi: Likewise.
41744         * doc/posix-functions/wcsstr.texi: Likewise.
41745         * doc/posix-functions/wctob.texi: Likewise.
41746         * doc/posix-functions/wctrans.texi: Likewise.
41747         * doc/posix-functions/wmemchr.texi: Likewise.
41748         * doc/posix-functions/wmemcmp.texi: Likewise.
41749         * doc/posix-functions/wmemcpy.texi: Likewise.
41750         * doc/posix-functions/wmemmove.texi: Likewise.
41751         * doc/posix-functions/wmemset.texi: Likewise.
41752         * doc/posix-functions/wprintf.texi: Likewise.
41753         * doc/posix-functions/wscanf.texi: Likewise.
41754
41755 2008-12-21  Bruno Haible  <bruno@clisp.org>
41756
41757         Work around a portability problem.
41758         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41759         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41760
41761 2008-12-20  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41764         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41765         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41767         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41768
41769         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41770         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41771         set.
41772         (GNULIB_defined_mbstate_t): New macro.
41773         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41774         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41775         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41776         reuses the system's mbrtowc function but works around the bugs.
41777         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41778         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41779         macros.
41780         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41781         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41782         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41783         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41784         REPLACE_MBSINIT if mbsinit needs to be overridden.
41785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41786         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41787         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41788         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41789         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41790         m4/locale-zh.m4.
41791         (Depends): Add mbsinit.
41792         * modules/mbsinit (Depends): Add mbrtowc.
41793         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41794
41795 2008-12-20  Bruno Haible  <bruno@clisp.org>
41796
41797         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41798         so that there are no conversion errors on AIX.
41799         * tests/test-mbsrtowcs.c (main): LIkewise.
41800
41801 2008-12-20  Bruno Haible  <bruno@clisp.org>
41802
41803         Work around wctob bug on Solaris <= 9.
41804         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41805         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41807         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41808         * modules/wctob (Files): Add m4/locale-fr.m4.
41809         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41810
41811 2008-12-20  Bruno Haible  <bruno@clisp.org>
41812
41813         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41814         /dev/null.
41815         * tests/test-select-in.sh: Likewise.
41816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41817
41818 2008-12-20  Bruno Haible  <bruno@clisp.org>
41819
41820         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41821         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41822         Cygwin 1.5.x.
41823
41824 2008-12-20  Bruno Haible  <bruno@clisp.org>
41825
41826         Ensure mbstate_t is defined on HP-UX 11.11.
41827         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41828         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41829         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41830         AC_USE_SYSTEM_EXTENSIONS.
41831         * modules/fnmatch (Depends-on): Add extensions.
41832         * modules/mbrlen (Depends-on): Likewise.
41833         * modules/mbrtowc (Depends-on): Likewise.
41834         * modules/mbsinit (Depends-on): Likewise.
41835         * modules/mbsrtowcs (Depends-on): Likewise.
41836         * modules/mbswidth (Depends-on): Likewise.
41837         * modules/quotearg (Depends-on): Likewise.
41838         * modules/strftime (Depends-on): Likewise.
41839
41840 2008-12-20  Bruno Haible  <bruno@clisp.org>
41841
41842         Ensure wctob is declared on IRIX 6.5.
41843         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41844         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41845         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41847         of HAVE_WCTOB.
41848         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41849         HAVE_WCTOB.
41850         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41851
41852 2008-12-19  Bruno Haible  <bruno@clisp.org>
41853
41854         * modules/mbsrtowcs-tests: New file.
41855         * tests/test-mbsrtowcs1.sh: New file.
41856         * tests/test-mbsrtowcs2.sh: New file.
41857         * tests/test-mbsrtowcs3.sh: New file.
41858         * tests/test-mbsrtowcs4.sh: New file.
41859         * tests/test-mbsrtowcs.c: New file.
41860
41861         New module 'mbsrtowcs'.
41862         * lib/wchar.in.h (mbsrtowcs): New declaration.
41863         * lib/mbsrtowcs.c: New file.
41864         * m4/mbsrtowcs.m4: New file.
41865         * modules/mbsrtowcs: New file.
41866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41867         HAVE_MBSRTOWCS.
41868         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41869         HAVE_MBSRTOWCS.
41870         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41871
41872 2008-12-19  Bruno Haible  <bruno@clisp.org>
41873
41874         New module 'mbrlen'.
41875         * lib/wchar.in.h (mbrlen): New declaration.
41876         * lib/mbrlen.c: New file.
41877         * m4/mbrlen.m4: New file.
41878         * modules/mbrlen: New file.
41879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41880         HAVE_MBRLEN.
41881         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41882         HAVE_MBRLEN.
41883         * doc/posix-functions/mbrlen.texi: Document the new module.
41884
41885 2008-12-19  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41888         * modules/mbrtowc (Depends-on): Add verify.
41889         Suggested by Paul Eggert.
41890
41891 2008-12-18  Bruno Haible  <bruno@clisp.org>
41892
41893         * modules/mbsinit-tests: New file.
41894         * tests/test-mbsinit.sh: New file.
41895         * tests/test-mbsinit.c: New file.
41896
41897 2008-12-18  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/mbrtowc-tests: New file.
41900         * tests/test-mbrtowc1.sh: New file.
41901         * tests/test-mbrtowc2.sh: New file.
41902         * tests/test-mbrtowc3.sh: New file.
41903         * tests/test-mbrtowc4.sh: New file.
41904         * tests/test-mbrtowc.c: New file.
41905
41906         New module 'mbrtowc'.
41907         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41908         mbsinit and mbrtowc.
41909         (mbrtowc): New declaration.
41910         * lib/mbrtowc.c: New file.
41911         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41912         * modules/mbrtowc: New file.
41913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41914         HAVE_MBRTOWC.
41915         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41916         HAVE_MBRTOWC.
41917         * doc/posix-functions/mbrtowc.texi: Document the new module.
41918
41919 2008-12-18  Bruno Haible  <bruno@clisp.org>
41920
41921         New module 'wctob'.
41922         * lib/wchar.in.h (wctob): New declaration.
41923         * lib/wctob.c: New file.
41924         * m4/wctob.m4: New file.
41925         * modules/wctob: New file.
41926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41927         HAVE_WCTOB.
41928         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41929         * doc/posix-functions/wctob.texi: Document the new module.
41930
41931 2008-12-18  Bruno Haible  <bruno@clisp.org>
41932
41933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41934         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41935
41936 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41937
41938         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41939         G. Christensen" <tgc@jupiterrise.com>.
41940
41941         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41942         G. Christensen" <tgc@jupiterrise.com>.
41943
41944         * lib/flock.c: Need to include string.h.  Reported by "Tom
41945         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41946         <ebb9@byu.net>.
41947
41948 2008-12-18  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/locale-ja.m4: New file, from GNU gettext.
41951
41952 2008-12-17  Bruno Haible  <bruno@clisp.org>
41953
41954         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41955         Suggested by Eric Blake.
41956
41957 2008-12-17  Bruno Haible  <bruno@clisp.org>
41958
41959         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41960
41961 2008-12-17  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41964         * modules/mbsinit (Depends-on): Add verify.
41965         Suggested by Paul Eggert.
41966
41967 2008-12-17  Bruno Haible  <bruno@clisp.org>
41968
41969         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41970         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41971         gl_FUNC_MBRTOWC.
41972         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41973         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41974         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41975         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41976         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41977         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41978         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41979         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41980         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41981         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41982         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41983         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41984         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41985         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41986         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41987         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41988         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41989         * modules/trim (configure.ac): Likewise.
41990
41991 2008-12-17  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/btowc-tests: New file.
41994         * tests/test-btowc1.sh: New file.
41995         * tests/test-btowc2.sh: New file.
41996         * tests/test-btowc.c: New file.
41997
41998         New module 'btowc'.
41999         * lib/wchar.in.h (btowc): New declaration.
42000         * lib/btowc.c: New file.
42001         * m4/btowc.m4: New file.
42002         * modules/btowc: New file.
42003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42004         HAVE_BTOWC.
42005         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42006         * doc/posix-functions/btowc.texi: Document the new module.
42007
42008 2008-12-17  Bruno Haible  <bruno@clisp.org>
42009
42010         New module 'mbsinit'.
42011         * lib/wchar.in.h (mbsinit): New declaration.
42012         * lib/mbsinit.c: New file.
42013         * m4/mbsinit.m4: New file.
42014         * modules/mbsinit: New file.
42015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42016         HAVE_MBSINIT.
42017         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42018         HAVE_MBSINIT.
42019         * doc/posix-functions/mbsinit.texi: Document the new module.
42020
42021 2008-12-16  Bruno Haible  <bruno@clisp.org>
42022
42023         * lib/unistd.in.h: Add comment.
42024         * tests/test-environ.c: Don't include <stdlib.h>.
42025
42026 2008-12-16  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/parse-duration.h (parse_duration): Document return value
42029         convention.
42030         * lib/parse-duration.c: Include specification header first. Add
42031         comments.
42032         (_): Remove macro.
42033         (parse_year_month_day, parse_hour_minute_second): Move side effects
42034         outside of strchr call.
42035         (parse_non_iso8601): Move side effects outside of isspace call.
42036         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42037         call.
42038
42039 2008-12-16  Bruno Haible  <bruno@clisp.org>
42040
42041         * tests/test-parse-duration.sh: Produce no output when the test
42042         succeeds.
42043
42044 2008-12-16  Bruno Haible  <bruno@clisp.org>
42045
42046         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42047         expressions.
42048
42049 2008-12-15  Bruno Haible  <bruno@clisp.org>
42050
42051         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42052         * doc/glibc-functions/flistxattr.texi: Likewise.
42053         * doc/glibc-functions/fopencookie.texi: Likewise.
42054         * doc/glibc-functions/fremovexattr.texi: Likewise.
42055         * doc/glibc-functions/fsetxattr.texi: Likewise.
42056         * doc/glibc-functions/getxattr.texi: Likewise.
42057         * doc/glibc-functions/lgetxattr.texi: Likewise.
42058         * doc/glibc-functions/listxattr.texi: Likewise.
42059         * doc/glibc-functions/llistxattr.texi: Likewise.
42060         * doc/glibc-functions/lremovexattr.texi: Likewise.
42061         * doc/glibc-functions/lsetxattr.texi: Likewise.
42062         * doc/glibc-functions/removexattr.texi: Likewise.
42063         * doc/glibc-functions/setxattr.texi: Likewise.
42064         * doc/posix-functions/open_memstream.texi: Likewise.
42065
42066 2008-12-15  Eric Blake  <ebb9@byu.net>
42067
42068         Update doc for cygwin 1.7.
42069         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42070         functions.
42071         * doc/posix-functions/fchmodat.texi: Likewise.
42072         * doc/posix-functions/fchownat.texi: Likewise.
42073         * doc/posix-functions/fdopendir.texi: Likewise.
42074         * doc/posix-functions/fmemopen.texi: Likewise.
42075         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42076         * doc/posix-functions/fstatat.texi: Likewise.
42077         * doc/posix-functions/futimens.texi: Likewise.
42078         * doc/posix-functions/gai_strerror.texi: Likewise.
42079         * doc/posix-functions/getaddrinfo.texi: Likewise.
42080         * doc/posix-functions/getnameinfo.texi: Likewise.
42081         * doc/posix-functions/if_freenameindex.texi: Likewise.
42082         * doc/posix-functions/if_indextoname.texi: Likewise.
42083         * doc/posix-functions/if_nameindex.texi: Likewise.
42084         * doc/posix-functions/if_nametoindex.texi: Likewise.
42085         * doc/posix-functions/insque.texi: Likewise.
42086         * doc/posix-functions/linkat.texi: Likewise.
42087         * doc/posix-functions/llrint.texi: Likewise.
42088         * doc/posix-functions/llrintf.texi: Likewise.
42089         * doc/posix-functions/llrintl.texi: Likewise.
42090         * doc/posix-functions/lockf.texi: Likewise.
42091         * doc/posix-functions/lrintl.texi: Likewise.
42092         * doc/posix-functions/mkdirat.texi: Likewise.
42093         * doc/posix-functions/mkfifoat.texi: Likewise.
42094         * doc/posix-functions/mknodat.texi: Likewise.
42095         * doc/posix-functions/mq_close.texi: Likewise.
42096         * doc/posix-functions/mq_getattr.texi: Likewise.
42097         * doc/posix-functions/mq_notify.texi: Likewise.
42098         * doc/posix-functions/mq_open.texi: Likewise.
42099         * doc/posix-functions/mq_receive.texi: Likewise.
42100         * doc/posix-functions/mq_send.texi: Likewise.
42101         * doc/posix-functions/mq_setattr.texi: Likewise.
42102         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42103         * doc/posix-functions/mq_timedsend.texi: Likewise.
42104         * doc/posix-functions/mq_unlink.texi: Likewise.
42105         * doc/posix-functions/open_memstream.texi: Likewise.
42106         * doc/posix-functions/openat.texi: Likewise.
42107         * doc/posix-functions/posix_fadvise.texi: Likewise.
42108         * doc/posix-functions/posix_fallocate.texi: Likewise.
42109         * doc/posix-functions/posix_madvise.texi: Likewise.
42110         * doc/posix-functions/posix_memalign.texi: Likewise.
42111         * doc/posix-functions/posix_openpt.texi: Likewise.
42112         * doc/posix-functions/readlinkat.texi: Likewise.
42113         * doc/posix-functions/remque.texi: Likewise.
42114         * doc/posix-functions/renameat.texi: Likewise.
42115         * doc/posix-functions/rintl.texi: Likewise.
42116         * doc/posix-functions/sem_unlink.texi: Likewise.
42117         * doc/posix-functions/shm_open.texi: Likewise.
42118         * doc/posix-functions/shm_unlink.texi: Likewise.
42119         * doc/posix-functions/signgam.texi: Likewise.
42120         * doc/posix-functions/sigset.texi: Likewise.
42121         * doc/posix-functions/stpcpy.texi: Likewise.
42122         * doc/posix-functions/stpncpy.texi: Likewise.
42123         * doc/posix-functions/strerror.texi: Likewise.
42124         * doc/posix-functions/strtod.texi: Likewise.
42125         * doc/posix-functions/symlinkat.texi: Likewise.
42126         * doc/posix-functions/unlinkat.texi: Likewise.
42127         * doc/posix-functions/utimensat.texi: Likewise.
42128         * doc/glibc-functions/bindresvport.texi: Likewise.
42129         * doc/glibc-functions/dn_expand.texi: Likewise.
42130         * doc/glibc-functions/exp10.texi: Likewise.
42131         * doc/glibc-functions/exp10f.texi: Likewise.
42132         * doc/glibc-functions/fgetxattr.texi: Likewise.
42133         * doc/glibc-functions/flistxattr.texi: Likewise.
42134         * doc/glibc-functions/fopencookie.texi: Likewise.
42135         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42136         * doc/glibc-functions/fremovexattr.texi: Likewise.
42137         * doc/glibc-functions/fsetxattr.texi: Likewise.
42138         * doc/glibc-functions/getifaddrs.texi: Likewise.
42139         * doc/glibc-functions/getxattr.texi: Likewise.
42140         * doc/glibc-functions/lgetxattr.texi: Likewise.
42141         * doc/glibc-functions/listxattr.texi: Likewise.
42142         * doc/glibc-functions/llistxattr.texi: Likewise.
42143         * doc/glibc-functions/lremovexattr.texi: Likewise.
42144         * doc/glibc-functions/lsetxattr.texi: Likewise.
42145         * doc/glibc-functions/pow10.texi: Likewise.
42146         * doc/glibc-functions/pow10f.texi: Likewise.
42147         * doc/glibc-functions/rcmd_af.texi: Likewise.
42148         * doc/glibc-functions/removexattr.texi: Likewise.
42149         * doc/glibc-functions/res_init.texi: Likewise.
42150         * doc/glibc-functions/res_mkquery.texi: Likewise.
42151         * doc/glibc-functions/res_query.texi: Likewise.
42152         * doc/glibc-functions/res_querydomain.texi: Likewise.
42153         * doc/glibc-functions/res_send.texi: Likewise.
42154         * doc/glibc-functions/rresvport_af.texi: Likewise.
42155         * doc/glibc-functions/setxattr.texi: Likewise.
42156         * doc/glibc-functions/strcasestr.texi: Likewise.
42157
42158 2008-12-15  Bruno Haible  <bruno@clisp.org>
42159
42160         Fix compilation error on OSF/1 4.0.
42161         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42162         <sys/time.h>, simply delegate to the system header.
42163         Reported by Daniel Richard G. <oss@teragram.com>.
42164
42165 2008-12-15  Bruno Haible  <bruno@clisp.org>
42166
42167         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42168         * doc/posix-functions/fchmodat.texi: Likewise.
42169         * doc/posix-functions/fchownat.texi: Likewise.
42170         * doc/posix-functions/fdopendir.texi: Likewise.
42171         * doc/posix-functions/fstatat.texi: Likewise.
42172         * doc/posix-functions/mkdirat.texi: Likewise.
42173         * doc/posix-functions/unlinkat.texi: Likewise.
42174
42175 2008-12-14  Bruno Haible  <bruno@clisp.org>
42176
42177         Update doc for POSIX:2008.
42178         * doc/posix-functions/faccessat.texi: New file.
42179         * doc/posix-functions/fchmodat.texi: New file.
42180         * doc/posix-functions/fchownat.texi: New file.
42181         * doc/posix-functions/fdopendir.texi: New file.
42182         * doc/posix-functions/fstatat.texi: New file.
42183         * doc/posix-functions/futimens.texi: New file.
42184         * doc/posix-functions/linkat.texi: New file.
42185         * doc/posix-functions/mkdirat.texi: New file.
42186         * doc/posix-functions/mkfifoat.texi: New file.
42187         * doc/posix-functions/mknodat.texi: New file.
42188         * doc/posix-functions/open_wmemstream.texi: New file.
42189         * doc/posix-functions/openat.texi: New file.
42190         * doc/posix-functions/psiginfo.texi: New file.
42191         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42192         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42193         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42194         * doc/posix-functions/readlinkat.texi: New file.
42195         * doc/posix-functions/renameat.texi: New file.
42196         * doc/posix-functions/strerror_l.texi: New file.
42197         * doc/posix-functions/symlinkat.texi: New file.
42198         * doc/posix-functions/unlinkat.texi: New file.
42199         * doc/posix-functions/utimensat.texi: New file.
42200         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42201
42202 2008-12-14  Bruno Haible  <bruno@clisp.org>
42203
42204         Update doc for POSIX:2008.
42205         * doc/posix-functions/alphasort.texi: Renamed from
42206         doc/glibc-functions/alphasort.texi.
42207         * doc/posix-functions/dirfd.texi: Renamed from
42208         doc/glibc-functions/dirfd.texi.
42209         * doc/posix-functions/dprintf.texi: Renamed from
42210         doc/glibc-functions/dprintf.texi.
42211         * doc/posix-functions/duplocale.texi: Renamed from
42212         doc/glibc-functions/duplocale.texi.
42213         * doc/posix-functions/fexecve.texi: Renamed from
42214         doc/glibc-functions/fexecve.texi.
42215         * doc/posix-functions/fmemopen.texi: Renamed from
42216         doc/glibc-functions/fmemopen.texi.
42217         * doc/posix-functions/freelocale.texi: Renamed from
42218         doc/glibc-functions/freelocale.texi.
42219         * doc/posix-functions/getdate_err.texi: Renamed from
42220         doc/glibc-functions/getdate_err.texi.
42221         * doc/posix-functions/isalnum_l.texi: Renamed from
42222         doc/glibc-functions/isalnum_l.texi.
42223         * doc/posix-functions/isalpha_l.texi: Renamed from
42224         doc/glibc-functions/isalpha_l.texi.
42225         * doc/posix-functions/isblank_l.texi: Renamed from
42226         doc/glibc-functions/isblank_l.texi.
42227         * doc/posix-functions/iscntrl_l.texi: Renamed from
42228         doc/glibc-functions/iscntrl_l.texi.
42229         * doc/posix-functions/isdigit_l.texi: Renamed from
42230         doc/glibc-functions/isdigit_l.texi.
42231         * doc/posix-functions/isgraph_l.texi: Renamed from
42232         doc/glibc-functions/isgraph_l.texi.
42233         * doc/posix-functions/islower_l.texi: Renamed from
42234         doc/glibc-functions/islower_l.texi.
42235         * doc/posix-functions/isprint_l.texi: Renamed from
42236         doc/glibc-functions/isprint_l.texi.
42237         * doc/posix-functions/ispunct_l.texi: Renamed from
42238         doc/glibc-functions/ispunct_l.texi.
42239         * doc/posix-functions/isspace_l.texi: Renamed from
42240         doc/glibc-functions/isspace_l.texi.
42241         * doc/posix-functions/isupper_l.texi: Renamed from
42242         doc/glibc-functions/isupper_l.texi.
42243         * doc/posix-functions/iswalnum_l.texi: Renamed from
42244         doc/glibc-functions/iswalnum_l.texi.
42245         * doc/posix-functions/iswalpha_l.texi: Renamed from
42246         doc/glibc-functions/iswalpha_l.texi.
42247         * doc/posix-functions/iswblank_l.texi: Renamed from
42248         doc/glibc-functions/iswblank_l.texi.
42249         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42250         doc/glibc-functions/iswcntrl_l.texi.
42251         * doc/posix-functions/iswctype_l.texi: Renamed from
42252         doc/glibc-functions/iswctype_l.texi.
42253         * doc/posix-functions/iswdigit_l.texi: Renamed from
42254         doc/glibc-functions/iswdigit_l.texi.
42255         * doc/posix-functions/iswgraph_l.texi: Renamed from
42256         doc/glibc-functions/iswgraph_l.texi.
42257         * doc/posix-functions/iswlower_l.texi: Renamed from
42258         doc/glibc-functions/iswlower_l.texi.
42259         * doc/posix-functions/iswprint_l.texi: Renamed from
42260         doc/glibc-functions/iswprint_l.texi.
42261         * doc/posix-functions/iswpunct_l.texi: Renamed from
42262         doc/glibc-functions/iswpunct_l.texi.
42263         * doc/posix-functions/iswspace_l.texi: Renamed from
42264         doc/glibc-functions/iswspace_l.texi.
42265         * doc/posix-functions/iswupper_l.texi: Renamed from
42266         doc/glibc-functions/iswupper_l.texi.
42267         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42268         doc/glibc-functions/iswxdigit_l.texi.
42269         * doc/posix-functions/isxdigit_l.texi: Renamed from
42270         doc/glibc-functions/isxdigit_l.texi.
42271         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42272         doc/glibc-functions/mbsnrtowcs.texi.
42273         * doc/posix-functions/mkdtemp.texi: Renamed from
42274         doc/glibc-functions/mkdtemp.texi.
42275         * doc/posix-functions/newlocale.texi: Renamed from
42276         doc/glibc-functions/newlocale.texi.
42277         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42278         doc/glibc-functions/nl_langinfo_l.texi.
42279         * doc/posix-functions/open_memstream.texi: Renamed from
42280         doc/glibc-functions/open_memstream.texi.
42281         * doc/posix-functions/opterr.texi: Renamed from
42282         doc/glibc-functions/opterr.texi.
42283         * doc/posix-functions/optind.texi: Renamed from
42284         doc/glibc-functions/optind.texi.
42285         * doc/posix-functions/optopt.texi: Renamed from
42286         doc/glibc-functions/optopt.texi.
42287         * doc/posix-functions/psignal.texi: Renamed from
42288         doc/glibc-functions/psignal.texi.
42289         * doc/posix-functions/scandir.texi: Renamed from
42290         doc/glibc-functions/scandir.texi.
42291         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42292         doc/glibc-functions/sched_get_priority_min.texi.
42293         * doc/posix-functions/signgam.texi: Renamed from
42294         doc/glibc-functions/signgam.texi.
42295         * doc/posix-functions/stpcpy.texi: Renamed from
42296         doc/glibc-functions/stpcpy.texi.
42297         * doc/posix-functions/stpncpy.texi: Renamed from
42298         doc/glibc-functions/stpncpy.texi.
42299         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42300         doc/glibc-functions/strcasecmp_l.texi.
42301         * doc/posix-functions/strcoll_l.texi: Renamed from
42302         doc/glibc-functions/strcoll_l.texi.
42303         * doc/posix-functions/strfmon_l.texi: Renamed from
42304         doc/glibc-functions/strfmon_l.texi.
42305         * doc/posix-functions/strftime_l.texi: Renamed from
42306         doc/glibc-functions/strftime_l.texi.
42307         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42308         doc/glibc-functions/strncasecmp_l.texi.
42309         * doc/posix-functions/strndup.texi: Renamed from
42310         doc/glibc-functions/strndup.texi.
42311         * doc/posix-functions/strnlen.texi: Renamed from
42312         doc/glibc-functions/strnlen.texi.
42313         * doc/posix-functions/strsignal.texi: Renamed from
42314         doc/glibc-functions/strsignal.texi.
42315         * doc/posix-functions/strxfrm_l.texi: Renamed from
42316         doc/glibc-functions/strxfrm_l.texi.
42317         * doc/posix-functions/timer_gettime.texi: Renamed from
42318         doc/glibc-functions/timer_gettime.texi.
42319         * doc/posix-functions/tolower_l.texi: Renamed from
42320         doc/glibc-functions/tolower_l.texi.
42321         * doc/posix-functions/toupper_l.texi: Renamed from
42322         doc/glibc-functions/toupper_l.texi.
42323         * doc/posix-functions/towctrans_l.texi: Renamed from
42324         doc/glibc-functions/towctrans_l.texi.
42325         * doc/posix-functions/towlower_l.texi: Renamed from
42326         doc/glibc-functions/towlower_l.texi.
42327         * doc/posix-functions/towupper_l.texi: Renamed from
42328         doc/glibc-functions/towupper_l.texi.
42329         * doc/posix-functions/uselocale.texi: Renamed from
42330         doc/glibc-functions/uselocale.texi.
42331         * doc/posix-functions/vdprintf.texi: Renamed from
42332         doc/glibc-functions/vdprintf.texi.
42333         * doc/posix-functions/wcpcpy.texi:
42334         Renamed from doc/glibc-functions/wcpcpy.texi.
42335         * doc/posix-functions/wcpncpy.texi: Renamed from
42336         doc/glibc-functions/wcpncpy.texi.
42337         * doc/posix-functions/wcscasecmp.texi: Renamed from
42338         doc/glibc-functions/wcscasecmp.texi.
42339         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42340         doc/glibc-functions/wcscasecmp_l.texi.
42341         * doc/posix-functions/wcscoll_l.texi: Renamed from
42342         doc/glibc-functions/wcscoll_l.texi.
42343         * doc/posix-functions/wcsdup.texi: Renamed from
42344         doc/glibc-functions/wcsdup.texi.
42345         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42346         doc/glibc-functions/wcsncasecmp.texi.
42347         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42348         doc/glibc-functions/wcsncasecmp_l.texi.
42349         * doc/posix-functions/wcsnlen.texi: Renamed from
42350         doc/glibc-functions/wcsnlen.texi.
42351         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42352         doc/glibc-functions/wcsnrtombs.texi.
42353         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42354         doc/glibc-functions/wcsxfrm_l.texi.
42355         * doc/posix-functions/wctrans_l.texi: Renamed from
42356         doc/glibc-functions/wctrans_l.texi.
42357         * doc/posix-functions/wctype_l.texi: Renamed from
42358         doc/glibc-functions/wctype_l.texi.
42359         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42360         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42361         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42362         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42363         these subsections.
42364         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42365         Remove sections.
42366
42367 2008-12-14  Bruno Haible  <bruno@clisp.org>
42368
42369         Update doc for POSIX:2008.
42370         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42371
42372 2008-12-14  Bruno Haible  <bruno@clisp.org>
42373
42374         Update doc for POSIX:2008.
42375         * doc/pastposix-functions/bcmp.texi: Renamed from
42376         doc/posix-functions/bcmp.texi.
42377         * doc/pastposix-functions/bcopy.texi: Renamed from
42378         doc/posix-functions/bcopy.texi.
42379         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42380         doc/posix-functions/bsd_signal.texi.
42381         * doc/pastposix-functions/bzero.texi: Renamed from
42382         doc/posix-functions/bzero.texi.
42383         * doc/pastposix-functions/ecvt.texi: Renamed from
42384         doc/posix-functions/ecvt.texi.
42385         * doc/pastposix-functions/fcvt.texi: Renamed from
42386         doc/posix-functions/fcvt.texi.
42387         * doc/pastposix-functions/ftime.texi: Renamed from
42388         doc/posix-functions/ftime.texi.
42389         * doc/pastposix-functions/gcvt.texi: Renamed from
42390         doc/posix-functions/gcvt.texi.
42391         * doc/pastposix-functions/getcontext.texi: Renamed from
42392         doc/posix-functions/getcontext.texi.
42393         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42394         doc/posix-functions/gethostbyaddr.texi.
42395         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42396         doc/posix-functions/gethostbyname.texi.
42397         * doc/pastposix-functions/getwd.texi: Renamed from
42398         doc/posix-functions/getwd.texi.
42399         * doc/pastposix-functions/h_errno.texi: Renamed from
42400         doc/posix-functions/h_errno.texi.
42401         * doc/pastposix-functions/index.texi: Renamed from
42402         doc/posix-functions/index.texi.
42403         * doc/pastposix-functions/makecontext.texi: Renamed from
42404         doc/posix-functions/makecontext.texi.
42405         * doc/pastposix-functions/mktemp.texi: Renamed from
42406         doc/posix-functions/mktemp.texi.
42407         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42408         doc/posix-functions/pthread_attr_getstackaddr.texi.
42409         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42410         doc/posix-functions/pthread_attr_setstackaddr.texi.
42411         * doc/pastposix-functions/rindex.texi: Renamed from
42412         doc/posix-functions/rindex.texi.
42413         * doc/pastposix-functions/scalb.texi: Renamed from
42414         doc/posix-functions/scalb.texi.
42415         * doc/pastposix-functions/setcontext.texi: Renamed from
42416         doc/posix-functions/setcontext.texi.
42417         * doc/pastposix-functions/swapcontext.texi: Renamed from
42418         doc/posix-functions/swapcontext.texi.
42419         * doc/pastposix-functions/ualarm.texi: Renamed from
42420         doc/posix-functions/ualarm.texi.
42421         * doc/pastposix-functions/usleep.texi: Renamed from
42422         doc/posix-functions/usleep.texi.
42423         * doc/pastposix-functions/vfork.texi: Renamed from
42424         doc/posix-functions/vfork.texi.
42425         * doc/pastposix-functions/wcswcs.texi: Renamed from
42426         doc/posix-functions/wcswcs.texi.
42427         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42428         (Function Substitutes): Update.
42429
42430 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42431
42432         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42433         m4/strerror.m4.
42434
42435 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42436             Bruno Haible  <bruno@clisp.org>
42437
42438         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42439
42440 2008-12-13  Bruno Haible  <bruno@clisp.org>
42441
42442         * modules/strtoull (Depends-on): Remove unistd.
42443
42444 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42445
42446         * modules/strtoull (Depends-on): Add stdlib.
42447
42448 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42449
42450         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42451
42452 2008-12-10  Jim Meyering  <meyering@redhat.com>
42453
42454         gl_ASSERT: don't say assertions are disabled when they're not
42455         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42456         "checking whether to enable assertions... no", when they are in
42457         fact enabled.  This is solely a bug in the output of configure.
42458         In spite of saying "no", NDEBUG was not defined in that case.
42459         Also, as noted by Eric Blake, leave assertions enabled upon
42460         --enable-assert=INVALID.
42461
42462 2008-12-10  Bruno Haible  <bruno@clisp.org>
42463
42464         Change MODULES.html to refer to POSIX:2008 where possible.
42465         * MODULES.html.sh (POSIX2008_URL): New variable.
42466         (posix_headers): Remove sys/timeb, ucontext.
42467         (posix2001_headers): New variable.
42468         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42469         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42470         index, makecontext, mktemp, pthread_attr_getstackaddr,
42471         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42472         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42473         (posix2001_functions): New variable.
42474         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42475         otherwise.
42476
42477 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42478
42479         add missing include to parse-duration.c
42480         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42481         * modules/parse-duration (Depends-on): Add xalloc.
42482
42483         fix sed script reading maint.mk
42484         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42485         (syntax-check-rules): Use it.
42486
42487 2008-12-09  Bruno Haible  <bruno@clisp.org>
42488
42489         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42490         MacOS X 10.4/PowerPC.
42491         Reported by Simon Josefsson.
42492
42493 2008-12-08  Jim Meyering  <meyering@redhat.com>
42494
42495         work around mingw's lack of some S_IF definitions
42496         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42497         Reported by Simon Josefsson.
42498
42499 2008-12-08  Bruno Haible  <bruno@clisp.org>
42500
42501         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42502         applied to variables. Needed on MacOS X 10.4/PowerPC.
42503         Reported by Simon Josefsson.
42504
42505 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42506         and Eric Blake  <ebb9@byu.net>
42507
42508         assert: honor --enable-assert
42509         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42510         order to honor --enable-assert, rather than treating it as a
42511         synonym for --disable-assert.
42512
42513 2008-12-08  Jim Meyering  <meyering@redhat.com>
42514
42515         * lib/posixtm.c: Remove now-useless declaration of mktime.
42516
42517         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42518
42519 2008-12-07  Bruno Haible  <bruno@clisp.org>
42520
42521         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42522         test_once): Mark functions as static.
42523         * tests/test-tls.c (test_tls): Likewise.
42524
42525 2008-12-07  Bruno Haible  <bruno@clisp.org>
42526
42527         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42528         iconv_register_autodetect.
42529
42530 2008-12-07  Jim Meyering  <meyering@redhat.com>
42531
42532         posixtm.c: avoid a warning
42533         * lib/posixtm.c (posixtime): Don't initialize tm0.
42534         It's no longer needed to placate gcc4's -Wuninitialized,
42535         and the attempt to placate would elicit a new warning.
42536
42537         unicodeio.c: mark unused parameters
42538         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42539         (fallback_failure_callback): Likewise.
42540
42541 2008-12-07  Bruno Haible  <bruno@clisp.org>
42542
42543         * gnulib-tool (func_create_testdir): When building the tests
42544         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42545         Reported by Simon Josefsson.
42546
42547 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42548
42549         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42550
42551 2008-12-06  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42554         Suggested by Eric Blake.
42555
42556 2008-12-06  Bruno Haible  <bruno@clisp.org>
42557
42558         Fix a c-stack test failure on MacOS X.
42559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42560         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42561         handler for SIGBUS as well.
42562         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42563         install a signal handler for SIGBUS as well.
42564         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42565
42566 2008-12-06  Bruno Haible  <bruno@clisp.org>
42567
42568         Advocacy documentation.
42569         * doc/gnulib-intro.texi (Benefits): New section.
42570         * doc/gnulib.texi: Update.
42571
42572 2008-12-06  Bruno Haible  <bruno@clisp.org>
42573
42574         Document the 'manywarnings' module.
42575         * doc/manywarnings.texi: New file.
42576         * doc/gnulib.texi: Include it.
42577
42578 2008-12-05  Eric Blake  <ebb9@byu.net>
42579
42580         tests: silence some gcc warnings
42581         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42582         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42583         type mismatches.
42584
42585 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42586             Bruno Haible  <bruno@clisp.org>
42587
42588         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42589
42590 2008-11-29  Jim Meyering  <meyering@redhat.com>
42591
42592         unicodeio.c: mark unused parameters
42593         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42594         (fallback_failure_callback): Likewise.
42595
42596         fts: fix a thinko
42597         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42598         (set_stat_type): Return S_IF*-valued "type" directly.
42599         Prompted by James Youngman's spotting a related bug.
42600         Confirmed by further testing through find.
42601
42602         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42603         * lib/fts.c (D_TYPE): Define.
42604         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42605         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42606         (s_ifmt_shift_bits): New function.
42607         (set_stat_type): New function.
42608         (fts_build): When not calling fts_stat, call set_stat_type
42609         to propagate dirent.d_type info to fts_read caller.
42610         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42611         fts_statp->st_mode type information may be valid.
42612
42613 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42614
42615         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42616         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42617         <sds@gnu.org>.
42618
42619 2008-11-20  Bruno Haible  <bruno@clisp.org>
42620
42621         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42622         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42623         INCLUDE_NEXT.
42624         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42625         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42626         * modules/math (Makefile.am): Substitute
42627         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42629
42630 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42631             Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/stdint.in.h: Define all type macros so that their expansion is
42634         a single typedef'ed token. Fixes a compilation failure in Boost which
42635         does "using ::int8_t;".
42636
42637 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42638
42639         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42640         gl_MANYWARN_ALL_GCC.
42641         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42642         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42643         * modules/manywarnings: New file.
42644         * MODULES.html.sh: Mention manywarnings module.
42645
42646 2008-11-18  Bruno Haible  <bruno@clisp.org>
42647
42648         * doc/gnulib-tool.texi (Unit tests): New section.
42649
42650 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42651
42652         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42653         paths like 'lib/po/foo.po'.
42654
42655 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42656
42657         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42658         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42659
42660 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42661
42662         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42663         parameter works.
42664
42665 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42666
42667         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42668
42669 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42670
42671         * modules/parse-duration-tests: New file.
42672         * tests/test-parse-duration.sh: New file.
42673         * tests/test-parse-duration.c: New file.
42674
42675         New module 'parse-duration'.
42676         * lib/parse-duration.h: New file.
42677         * lib/parse-duration.c: New file.
42678         * modules/parse-duration: New file.
42679
42680 2008-11-17  Bruno Haible  <bruno@clisp.org>
42681
42682         * tests/test-select-out.sh: Comment out the first pipe test.
42683         Reported by Simon Josefsson.
42684
42685 2008-11-17  Bruno Haible  <bruno@clisp.org>
42686
42687         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42688         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42689         gl_HOSTENT.
42690
42691 2008-11-17  Bruno Haible  <bruno@clisp.org>
42692
42693         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42694         -lnetwork and -lnet. Needed for Haiku and BeOS.
42695
42696 2008-11-16  Bruno Haible  <bruno@clisp.org>
42697
42698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42699
42700 2008-11-16  Bruno Haible  <bruno@clisp.org>
42701
42702         Avoid test failure on Haiku.
42703         * tests/test-fsync.c: Include <errno.h>.
42704         (main): Don't require that fsync (0) fails.
42705
42706 2008-11-15  Bruno Haible  <bruno@clisp.org>
42707
42708         New module 'hostent'.
42709         * modules/hostent: New file.
42710         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42711
42712 2008-11-15  Bruno Haible  <bruno@clisp.org>
42713
42714         New module 'servent'.
42715         * modules/servent: New file.
42716         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42717
42718 2008-11-15  Bruno Haible  <bruno@clisp.org>
42719
42720         Avoid generating same test program with two different rules.
42721         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42722         test-frexp to test-frexp-nolibm.
42723         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42724         test-frexpl to test-frexpl-nolibm.
42725
42726 2008-11-15  Bruno Haible  <bruno@clisp.org>
42727
42728         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42729         $(FREXPL_LIBM).
42730
42731 2008-11-15  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/netdb.in.h: Activate the definitions also when the system's
42734         <netdb.h> has 'struct addrinfo'.
42735         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42736         EAI_OVERFLOW or AI_NUMERICSERV.
42737         * doc/posix-headers/netdb.texi: Document the problem.
42738
42739 2008-11-15  Bruno Haible  <bruno@clisp.org>
42740
42741         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42742
42743         Make the 'sched' module work on platforms where <sched.h> exists but
42744         is incomplete (such as Haiku).
42745         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42746         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42747         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42748         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42749         HAVE_STRUCT_SCHED_PARAM.
42750         * modules/sched (Depends-on): Add include_next.
42751         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42752         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42753         * doc/posix-headers/sched.texi: Document the issue.
42754
42755 2008-11-13  Jim Meyering  <meyering@redhat.com>
42756
42757         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42758         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42759         test would fail due to the difference in the Report bugs to ...
42760         line.  The expected address is empty, "<>", while the actual
42761         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42762
42763 2008-11-12  Bruno Haible  <bruno@clisp.org>
42764
42765         lstat: don't compile lstat.c on systems lacking lstat
42766         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42767         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42768         Reported by Daniel P. Berrange via Jim Meyering.
42769
42770 2008-11-12  Jim Meyering  <meyering@redhat.com>
42771
42772         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42773
42774 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42775
42776         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42777         instead.
42778
42779 2008-11-12  Bruno Haible  <bruno@clisp.org>
42780
42781         * lib/unicodeio.c: Include unistr.h.
42782         (utf8_wctomb): Remove function.
42783         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42784
42785 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42786
42787         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42788         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42789         <bruno@clisp.org>.
42790         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42791
42792 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42793
42794         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42795         * doc/gnulib.texi: Add section for warnings.
42796
42797 2008-11-11  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/sockets.h: Add a comment.
42800
42801 2008-11-11  Karl Berry  <karl@gnu.org>
42802
42803         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42804
42805 2008-11-11  Eric Blake  <ebb9@byu.net>
42806
42807         fdl.texi: avoid git symlinks
42808         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42809
42810 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42811
42812         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42813
42814 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42815
42816         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42817         (gl_WARN_ADD): Substitute $2 if literal.
42818
42819 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42820
42821         * m4/warning.m4: Remove.
42822
42823 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42824
42825         * m4/warnings.m4: Almost complete rewrite. :-)
42826
42827 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42828
42829         * modules/warnings: New module.
42830         * m4/warnings.m4: New file.
42831         * MODULES.html.sh: Mention warnings module.
42832         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42833         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42834
42835 2008-11-10  Eric Blake  <ebb9@byu.net>
42836
42837         fdl.texi: make a symlink to the latest version
42838         * doc/standards.texi: Revert today's earlier change.
42839         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42840         * doc/fdl.texi: ...and replace this with a symlink to the newer
42841         fdl-1.3.texi.
42842
42843 2008-11-10  Bruno Haible  <bruno@clisp.org>
42844
42845         * tests/test-select-fd.c (main): Accept the result file name as fourth
42846         argument.
42847         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42848         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42849
42850 2008-11-10  Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42853         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42854         as autoconf-substituted macros.
42855         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42857         gl_NETDB_H_DEFAULTS. Set these variables.
42858         * modules/netdb (Makefile.am): Substitute these variables.
42859
42860 2008-11-10  Eric Blake  <ebb9@byu.net>
42861
42862         standards.texi: include correct file for FDL 1.3
42863         * doc/standards.texi (GNU Free Documentation License): Change
42864         include file to pull in FDL 1.3, not 1.2.
42865
42866         fdl.texi: revert accidental change to license
42867         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42868
42869 2008-11-10  Bruno Haible  <bruno@clisp.org>
42870
42871         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42872         cross-compiling guesses also when the native compile gives no result.
42873
42874 2008-11-10  Bruno Haible  <bruno@clisp.org>
42875
42876         * lib/spawni.c (__spawni): Force variable into the stack.
42877
42878 2008-11-10  Bruno Haible  <bruno@clisp.org>
42879
42880         Add support for Haiku.
42881         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42882         glibc and BeOS, but also on Haiku.
42883         * lib/fpurge.c (fpurge): Likewise.
42884         * lib/freadable.c (freadable): Likewise.
42885         * lib/freadahead.c (freadahead): Likewise.
42886         * lib/freading.c (freading): Likewise.
42887         * lib/freadptr.c (freadptr): Likewise.
42888         * lib/freadseek.c (freadptrinc): Likewise.
42889         * lib/fseeko.c (rpl_fseeko): Likewise.
42890         * lib/fseterr.c (fseterr): Likewise.
42891         * lib/fwritable.c (fwritable): Likewise.
42892         * lib/fwriting.c (fwriting): Likewise.
42893         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42894
42895 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42896
42897         * lib/config.charset: Treat Haiku like BeOS.
42898
42899 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42900
42901         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42902         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42903
42904 2008-11-08  Bruno Haible  <bruno@clisp.org>
42905
42906         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42907         AC_CACHE_CHECK.
42908
42909 2008-11-08  Bruno Haible  <bruno@clisp.org>
42910
42911         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42912
42913 2008-11-08  Bruno Haible  <bruno@clisp.org>
42914
42915         * tests/test-select-fd.c: New file.
42916         * tests/test-select-in.sh: New file.
42917         * tests/test-select-out.sh: New file.
42918         * tests/test-select-stdin.c: New file.
42919         * modules/select-tests (Files): Add the new files.
42920         (Depends-on): Add gettimeofday.
42921         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42922         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42923         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42924
42925 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42926             Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42929
42930 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42931
42932         * build-aux/pmccabe2html: Added support for C++ source files.
42933
42934 2008-11-05  Ben Pfaff  <blp@gnu.org>
42935
42936         Fix lib/close.c build on Windows.
42937         * modules/close (Files): Add lib/w32sock.h.
42938
42939 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42940
42941         Accept Bison's NEWS format.
42942         * build-aux/announce-gen (print_news_deltas): Tweak
42943         $re_prefix.
42944
42945 2008-11-04  Bruno Haible  <bruno@clisp.org>
42946
42947         * modules/random_r (Maintainer): Add glibc.
42948
42949 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42950
42951         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42952         by karl@freefriends.org (Karl Berry).
42953         * doc/alloca.texi: Likewise.
42954         * doc/c-ctype.texi: Likewise.
42955         * doc/c-strcase.texi: Likewise.
42956         * doc/c-strcaseeq.texi: Likewise.
42957         * doc/c-strcasestr.texi: Likewise.
42958         * doc/c-strstr.texi: Likewise.
42959         * doc/c-strtod.texi: Likewise.
42960         * doc/c-strtold.texi: Likewise.
42961         * doc/ctime.texi: Likewise.
42962         * doc/error.texi: Likewise.
42963         * doc/fdl.texi: Likewise.
42964         * doc/gcd.texi: Likewise.
42965         * doc/getdate.texi: Likewise.
42966         * doc/gnulib-intro.texi: Likewise.
42967         * doc/gnulib-tool.texi: Likewise.
42968         * doc/gnulib.texi: Likewise.
42969         * doc/inet_ntoa.texi: Likewise.
42970         * doc/maintain.texi: Likewise.
42971         * doc/make-stds.texi: Likewise.
42972         * doc/quote.texi: Likewise.
42973         * doc/regexprops-generic.texi: Likewise.
42974         * doc/standards.texi: Likewise.
42975         * doc/verify.texi: Likewise.
42976         * doc/visibility.texi: Likewise.
42977         * doc/gnulib.texi (GNU Free Documentation License): Include
42978         fdl-1.3.texi instead of fdl.texi.
42979
42980 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42981
42982         * doc/fdl-1.3.texi: New file, from
42983         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42984         * modules/fdl-1.3: Add.
42985         * MODULES.html.sh: Add fdl-1.3.
42986
42987 2008-11-03  Bruno Haible  <bruno@clisp.org>
42988
42989         Make determination of absolute name of header file work with AIX xlc.
42990         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42991         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42992         preprocessing.
42993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42994         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42995
42996 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42997
42998         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42999         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43000         <ludo@gnu.org>.
43001
43002 2008-11-02  Bruno Haible  <bruno@clisp.org>
43003
43004         Mark 'strpbrk' obsolete.
43005         * modules/strpbrk (Status, Notice): New sections.
43006         * modules/strtok_r (Depends-on): Add strpbrk.
43007
43008 2008-11-02  Bruno Haible  <bruno@clisp.org>
43009
43010         Mark 'strdup' obsolete.
43011         * modules/strdup (Status, Notice): New sections.
43012         * modules/findprog (Depends-on): Add strdup.
43013         * modules/getaddrinfo (Depends-on): Likewise.
43014         * modules/localename (Depends-on): Likewise.
43015         * modules/relocatable-lib (Depends-on): Likewise.
43016         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43017         * modules/relocatable-prog (Depends-on): Likewise.
43018         * modules/trim (Depends-on): Likewise.
43019         * modules/unictype/gen-ctype (Depends-on): Likewise.
43020         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43021
43022 2008-11-02  Bruno Haible  <bruno@clisp.org>
43023
43024         Mark 'strcspn' obsolete.
43025         * modules/strcspn (Status, Notice): New sections.
43026
43027 2008-11-02  Bruno Haible  <bruno@clisp.org>
43028
43029         Mark 'rmdir' obsolete.
43030         * modules/rmdir (Status, Notice): New sections.
43031         * modules/clean-temp (Depends-on): Add rmdir.
43032         * modules/openat (Depends-on): Likewise.
43033
43034 2008-11-02  Bruno Haible  <bruno@clisp.org>
43035
43036         Mark 'raise' obsolete.
43037         * modules/raise (Status, Notice): New sections.
43038         (Include): Specify <signal.h>.
43039         * modules/stdio (Depends-on): Add raise.
43040         * modules/write (Depends-on): Likewise.
43041
43042 2008-11-02  Bruno Haible  <bruno@clisp.org>
43043
43044         Mark 'memset' obsolete.
43045         * modules/memset (Status, Notice): New sections.
43046
43047 2008-11-02  Bruno Haible  <bruno@clisp.org>
43048
43049         Mark 'memmove' obsolete.
43050         * modules/memmove (Status, Notice): New sections.
43051         * modules/argp (Depends-on): Add memmove.
43052         * modules/argz (Depends-on): Likewise.
43053         * modules/canonicalize (Depends-on): Likewise.
43054         * modules/canonicalize-lgpl (Depends-on): Likewise.
43055         * modules/fts (Depends-on): Likewise.
43056         * modules/getcwd (Depends-on): Likewise.
43057         * modules/human (Depends-on): Likewise.
43058         * modules/regex (Depends-on): Likewise.
43059         * modules/striconveh (Depends-on): Likewise.
43060         * modules/trim (Depends-on): Likewise.
43061         * modules/unistr/u8-move (Depends-on): Likewise.
43062         * modules/unistr/u16-move (Depends-on): Likewise.
43063         * modules/unistr/u32-move (Depends-on): Likewise.
43064
43065 2008-11-02  Bruno Haible  <bruno@clisp.org>
43066
43067         Mark 'memcpy' obsolete.
43068         * modules/memcpy (Status, Notice): New sections.
43069
43070 2008-11-02  Bruno Haible  <bruno@clisp.org>
43071
43072         Mark 'memcmp' obsolete.
43073         * modules/memcmp (Status, Notice): New sections.
43074         * modules/argmatch (Depends-on): Add memchr.
43075         * modules/backupfile (Depends-on): Likewise.
43076         * modules/c-strcasestr (Depends-on): Likewise.
43077         * modules/crypto/des (Depends-on): Likewise.
43078         * modules/csharpcomp (Depends-on): Likewise.
43079         * modules/fnmatch (Depends-on): Likewise.
43080         * modules/git-merge-changelog (Depends-on): Likewise.
43081         * modules/isnand (Depends-on): Likewise.
43082         * modules/isnand-nolibm (Depends-on): Likewise.
43083         * modules/isnanf (Depends-on): Likewise.
43084         * modules/isnanf-nolibm (Depends-on): Likewise.
43085         * modules/isnanl (Depends-on): Likewise.
43086         * modules/isnanl-nolibm (Depends-on): Likewise.
43087         * modules/mbchar (Depends-on): Likewise.
43088         * modules/memcoll (Depends-on): Likewise.
43089         * modules/quotearg (Depends-on): Likewise.
43090         * modules/regex (Depends-on): Likewise.
43091         * modules/relocatable-prog (Depends-on): Likewise.
43092         * modules/same (Depends-on): Likewise.
43093         * modules/signbit (Depends-on): Likewise.
43094         * modules/strcasestr-simple (Depends-on): Likewise.
43095         * modules/unictype/gen-ctype (Depends-on): Likewise.
43096         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43097         * modules/uniname/uniname (Depends-on): Likewise.
43098         * modules/unistr/u8-cmp (Depends-on): Likewise.
43099
43100 2008-11-02  Bruno Haible  <bruno@clisp.org>
43101
43102         Mark 'memchr' obsolete.
43103         * modules/memchr (Status, Notice): New sections.
43104         * modules/argp (Depends-on): Add memchr.
43105         * modules/base64 (Depends-on): Likewise.
43106         * modules/c-strcasestr (Depends-on): Likewise.
43107         * modules/chdir-long (Depends-on): Likewise.
43108         * modules/fnmatch (Depends-on): Likewise.
43109         * modules/getsubopt (Depends-on): Likewise.
43110         * modules/git-merge-changelog (Depends-on): Likewise.
43111         * modules/glob (Depends-on): Likewise.
43112         * modules/strcasestr-simple (Depends-on): Likewise.
43113         * modules/strnlen (Depends-on): Likewise.
43114
43115 2008-11-02  Bruno Haible  <bruno@clisp.org>
43116
43117         Mark 'atexit' obsolete.
43118         * modules/atexit (Status, Notice): New sections.
43119         * modules/chdir-long (Depends-on): Add atexit.
43120         * modules/wait-process (Depends-on): Likewise.
43121
43122 2008-11-02  Bruno Haible  <bruno@clisp.org>
43123
43124         * gnulib-tool: New option --with-obsolete.
43125         (func_usage): Document it.
43126         (func_modules_transitive_closure): Drop obsolete dependencies if
43127         incobsolete is not true.
43128         (func_import): Read and save the incobsolete variable to the cache.
43129
43130 2008-11-02  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43133         * gnulib-tool: New option --extract-status.
43134         (func_usage): Document it.
43135         (sed_extract_prog): Recognize it.
43136         (func_get_status): New function.
43137
43138 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43139
43140         * modules/sockets (License): Change from LGPL to LGPLv2+.
43141
43142 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43143
43144         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43145
43146 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43147
43148         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43149         Mention times and sys_times.
43150         * modules/sys_times, modules/sys_times-tests: New modules.
43151         * modules/times, modules/times-tests: Likewise
43152         * m4/sys_times_h.m4: New file.
43153         * lib/sys_times.in.h: Likewise
43154         * lib/times.c: Likewise.
43155         * tests/test-sys_times.c: Likewise.
43156         * tests/test-times.c: Likewise.
43157         * doc/posix-headers/sys_times.texi: Update.
43158         * doc/posix-functions/times.texi: Update.
43159
43160 2008-10-28  Jim Meyering  <meyering@redhat.com>
43161
43162         * modules/tempname (Depends-on): Add lstat.
43163
43164         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43165
43166 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43167
43168         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43169         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43170         using idiom used elsewhere in gnulib.
43171
43172 2008-10-27  Jim Meyering  <meyering@redhat.com>
43173
43174         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43175
43176 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43177
43178         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43179         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43180         programs.
43181         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43182
43183 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43184
43185         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43186
43187 2008-10-27  Bruno Haible  <bruno@clisp.org>
43188
43189         * tests/test-lstat.c: Include <stdio.h>.
43190
43191 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43192
43193         * modules/lstat-tests: New module.
43194         * tests/test-lstat.c: New file.
43195
43196 2008-10-26  Jim Meyering  <meyering@redhat.com>
43197
43198         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43199
43200 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43201             Bruno Haible  <bruno@clisp.org>
43202
43203         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43204         * modules/configmake (Include): Add a note that the include must come
43205         after all system headers.
43206         * lib/javaversion.c: Include configmake.h after all other includes.
43207
43208 2008-10-26  Bruno Haible  <bruno@clisp.org>
43209
43210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43211         HAVE_STRUCT_RANDOM_DATA to 1.
43212         (gl_STDLIB_H): Simplify.
43213
43214 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43215
43216         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43217         substitute HAVE_STRUCT_RANDOM_DATA.
43218         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43219         random_data.
43220         * modules/stdlib (Makefile.am): Substitute
43221         HAVE_STRUCT_RANDOM_DATA.
43222
43223 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43224
43225         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43226         * doc/gnulib-intro.texi (Copyright): Likewise.
43227
43228 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43229
43230         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43231         findings.
43232
43233 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43234             Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/unistd.in.h: Include <winsock2.h>.
43237         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43238         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43239         Provide dummy declarations.
43240         (gethostname): Override.
43241         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43242         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43243         gl_PREREQ_SYS_H_WINSOCK2.
43244         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43245         * doc/posix-functions/gethostname.texi: More details.
43246
43247 2008-10-25  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43250         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43251         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43252
43253         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43254         here ...
43255         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43256         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43257         gl_UNISTD_H_DEFAULTS.
43258
43259 2008-10-25  Eric Blake  <ebb9@byu.net>
43260
43261         signbit: avoid spurious compiler failure
43262         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43263         declarations inside function.
43264
43265 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43266             Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43269         * modules/random_r (Depends-on): Add stdint.
43270
43271 2008-10-24  Bruno Haible  <bruno@clisp.org>
43272
43273         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43274         Eggert.
43275         * modules/strerror (License): Likewise.
43276
43277 2008-10-24  Jim Meyering  <meyering@redhat.com>
43278
43279         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43280         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43281
43282 2008-10-24  Eric Blake  <ebb9@byu.net>
43283
43284         getgroups: fix compilation when getgroups is available
43285         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43286         but with <config.h> override of getgroups disabled.
43287
43288 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43289
43290         * doc/gnulib.texi (Header files): Add note about C++ problems.
43291         Explained by Bruno Haible <bruno@clisp.org>.
43292
43293 2008-10-23  Bruno Haible  <bruno@clisp.org>
43294
43295         Define a dummy SA_NODEFER macro on Interix.
43296         * lib/signal.in.h (SA_NODEFER): Define fallback.
43297         Reported by Aleksey Cheusov <cheusov@tut.by> via
43298         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43299
43300 2008-10-23  Bruno Haible  <bruno@clisp.org>
43301
43302         * modules/freadahead (License): Change to LGPLv2+.
43303         Suggested by Simon Josefsson.
43304
43305 2008-10-23  Jim Meyering  <meyering@redhat.com>
43306
43307         random_r: new module
43308         * modules/random_r: New file.
43309         * m4/random_r.m4: New file.
43310         * lib/random_r.c: New file, from glibc.
43311         * modules/random_r-tests: New file.
43312         * tests/test-random_r.c: New file.
43313         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43314          Declare.
43315         (RAND_MAX): Define.
43316         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43317         * modules/stdlib: Substitute them, too.
43318         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43319         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43320         * doc/glibc-functions/random_r.texi: Likewise.
43321         * doc/glibc-functions/setstate_r.texi: Likewise.
43322         * doc/glibc-functions/srandom_r.texi: Likewise.
43323         * config/srclist.txt: Mention it.
43324
43325 2008-10-23  David Lutterkort  <lutter@redhat.com>
43326
43327         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43328         link requirement
43329
43330 2008-10-23  Jim Meyering  <meyering@redhat.com>
43331
43332         selinux-h: mark parameters of stub functions as intentionally unused
43333         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43334         * lib/se-context.in.h: Likewise.
43335
43336 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43337
43338         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43339
43340 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43341
43342         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43343
43344 2008-10-22  Eric Blake  <ebb9@byu.net>
43345
43346         glthread/thread: avoid compiler warning
43347         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43348         Add unreachable abort to silence compiler.
43349
43350 2008-10-22  Eric Blake  <ebb9@byu.net>
43351
43352         netdb: also supply struct addrinfo for cygwin 1.5.x
43353         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43354         older cygwin.
43355         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43356         cygwin.
43357         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43358
43359 2008-10-22  Bruno Haible  <bruno@clisp.org>
43360
43361         * users.txt: Update entry about pspp.
43362
43363 2008-10-21  Bruno Haible  <bruno@clisp.org>
43364
43365         Simplification.
43366         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43367         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43368
43369         Simplification.
43370         * lib/ioctl.c (ioctl): Don't undefine.
43371         * lib/socket.c (socket): Don't undefine.
43372
43373         Remove unused module indicator macros.
43374         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43375         GNULIB_$1 as a C macro.
43376
43377         * doc/posix-functions/close.texi: Undo last change.
43378         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43379         Windows platforms.
43380
43381 2008-10-21  Bruno Haible  <bruno@clisp.org>
43382
43383         Add gethostname() declaration to <unistd.h>.
43384         * lib/unistd.in.h (gethostname): New declaration.
43385         * lib/gethostname.c: Include <unistd.h>.
43386         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43387         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43389         and HAVE_GETHOSTNAME.
43390         * modules/gethostname (Depends-on): Add unistd.
43391         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43392         (Include): Specify <unistd.h>.
43393         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43394         HAVE_GETHOSTNAME.
43395         * tests/test-gethostname.c: Include <unistd.h> first.
43396
43397 2008-10-21  Bruno Haible  <bruno@clisp.org>
43398
43399         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43400         * modules/select-tests (Depends-on): Likewise.
43401         Reported by Simon Josefsson.
43402
43403 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43404
43405         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43406         * lib/accept.c: New file, based on winsock.c.
43407         * lib/bind.c: New file, based on winsock.c.
43408         * lib/connect.c: New file, based on winsock.c.
43409         * lib/getpeername.c: New file, based on winsock.c.
43410         * lib/getsockname.c: New file, based on winsock.c.
43411         * lib/getsockopt.c: New file, based on winsock.c.
43412         * lib/ioctl.c: New file, based on winsock.c.
43413         * lib/listen.c: New file, based on winsock.c.
43414         * lib/recv.c: New file, based on winsock.c.
43415         * lib/recvfrom.c: New file, based on winsock.c.
43416         * lib/send.c: New file, based on winsock.c.
43417         * lib/sendto.c: New file, based on winsock.c.
43418         * lib/setsockopt.c: New file, based on winsock.c.
43419         * lib/shutdown.c: New file, based on winsock.c.
43420         * lib/socket.c: New file, based on winsock.c.
43421         * lib/w32sock.h: New file, based on winsock.c.
43422         * lib/winsock.c: Remove file.
43423         * modules/accept: Likewise.
43424         * modules/bind: Likewise.
43425         * modules/connect: Likewise.
43426         * modules/getpeername: Likewise.
43427         * modules/getsockname: Likewise.
43428         * modules/getsockopt: Likewise.
43429         * modules/ioctl: Likewise.
43430         * modules/listen: Likewise.
43431         * modules/recv: Likewise.
43432         * modules/recvfrom: Likewise.
43433         * modules/send: Likewise.
43434         * modules/sendto: Likewise.
43435         * modules/setsockopt: Likewise.
43436         * modules/shutdown: Likewise.
43437         * modules/socket: Use socket.c instead of winsock.c.
43438         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43439         * doc/posix-functions/accept.texi: Doc fix.
43440         * doc/posix-functions/bind.texi: Doc fix.
43441         * doc/posix-functions/close.texi: Doc fix.
43442         * doc/posix-functions/connect.texi: Doc fix.
43443         * doc/posix-functions/getpeername.texi: Doc fix.
43444         * doc/posix-functions/getsockname.texi: Doc fix.
43445         * doc/posix-functions/getsockopt.texi: Doc fix.
43446         * doc/posix-functions/ioctl.texi: Doc fix.
43447         * doc/posix-functions/listen.texi: Doc fix.
43448         * doc/posix-functions/recv.texi: Doc fix.
43449         * doc/posix-functions/recvfrom.texi: Doc fix.
43450         * doc/posix-functions/send.texi: Doc fix.
43451         * doc/posix-functions/sendto.texi: Doc fix.
43452         * doc/posix-functions/setsockopt.texi: Doc fix.
43453         * doc/posix-functions/shutdown.texi: Doc fix.
43454         * doc/posix-functions/socket.texi: Doc fix.
43455
43456 2008-10-20  Bruno Haible  <bruno@clisp.org>
43457
43458         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43459         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43460         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43461         as an alias for SIGABRT.
43462         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43463         (sigaction): Map it to SIGABRT.
43464         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43465
43466 2008-10-20  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/fts.c: Don't include lstat.h.
43469         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43470
43471         Move the lstat() declaration to <sys/stat.h>.
43472         * lib/lstat.h: Remove file.
43473         * lib/sys_stat.in.h: Add special invocation convention.
43474         (lstat): New declaration.
43475         * lib/lstat.c (orig_lstat): New function.
43476         (rpl_lstat): Use orig_lstat instead of lstat.
43477         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43478         AC_C_INLINE. Set REPLACE_LSTAT.
43479         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43480         and REPLACE_LSTAT.
43481         * modules/lstat (Files): Remove lib/lstat.h.
43482         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43483         (Include): Specify <sys/stat.h> instead of lstat.h.
43484         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43485         REPLACE_LSTAT.
43486         * NEWS: Mention the change.
43487
43488 2008-10-20  Bruno Haible  <bruno@clisp.org>
43489
43490         * modules/posix_spawn-tests: New file.
43491         * tests/test-posix_spawn3.c: New file.
43492
43493 2008-10-20  Bruno Haible  <bruno@clisp.org>
43494
43495         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43496         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43497         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43498         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43499         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43500
43501 2008-10-20  Bruno Haible  <bruno@clisp.org>
43502
43503         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43504         of posix_spawn on AIX 5.3.
43505
43506 2008-10-20  Bruno Haible  <bruno@clisp.org>
43507
43508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43509
43510 2008-10-20  Bruno Haible  <bruno@clisp.org>
43511
43512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43513         of AC_LANG_PROGRAM.
43514
43515 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43516
43517         * lib/netdb.in.h: Don't define GNU specific constants until they
43518         are supported or needed.  Reported by Bruno Haible
43519         <bruno@clisp.org>.
43520
43521 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43522
43523         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43524
43525 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43526
43527         * lib/getaddrinfo.h: Remove file.
43528         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43529         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43530         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43531         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43532         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43533         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43534         * tests/test-getaddrinfo.c: Likewise.
43535         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43536         * NEWS: Mention change.
43537
43538 2008-10-19  Bruno Haible  <bruno@clisp.org>
43539
43540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43541
43542 2008-10-19  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/wait-process.c: Include simply <sys/wait.h>.
43545         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43546         WIFSTOPPED): Remove fallback definitions.
43547         * modules/wait-process (Depends-on): Add sys_wait.
43548
43549         New module 'sys_wait'.
43550         * modules/sys_wait: New file.
43551         * lib/sys_wait.in.h: New file, partially copied from
43552         lib/wait-process.c.
43553         * m4/sys_wait_h.m4: New file.
43554         * doc/posix-headers/sys_wait.texi: Mention the new module.
43555
43556 2008-10-19  Bruno Haible  <bruno@clisp.org>
43557
43558         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43559
43560 2008-10-19  Bruno Haible  <bruno@clisp.org>
43561
43562         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43563         * lib/wait-process.c (WAIT_T): Remove type.
43564         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43565         (wait_subprocess): Update.
43566
43567 2008-10-19  Bruno Haible  <bruno@clisp.org>
43568
43569         New module 'atoll'.
43570         * modules/atoll: New file.
43571         * lib/stdlib.in.h (atoll): New declaration.
43572         * lib/atoll.c: New file, from glibc with modifications.
43573         * m4/atoll.m4: New file.
43574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43575         HAVE_ATOLL.
43576         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43577         * doc/posix-functions/atoll.texi: Mention the new module.
43578
43579 2008-10-19  Bruno Haible  <bruno@clisp.org>
43580
43581         Add strtoull() declaration to <stdlib.h>.
43582         * lib/stdlib.in.h (strtoull): New declaration.
43583         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43584         Set HAVE_STRTOULL.
43585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43586         HAVE_STRTOULL.
43587         * modules/strtoull (Depends-on): Add stdlib.
43588         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43589         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43590         HAVE_STRTOULL.
43591
43592 2008-10-19  Bruno Haible  <bruno@clisp.org>
43593
43594         Add strtoll() declaration to <stdlib.h>.
43595         * lib/stdlib.in.h (strtoll): New declaration.
43596         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43597         Set HAVE_STRTOLL.
43598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43599         HAVE_STRTOLL.
43600         * modules/strtoll (Depends-on): Add stdlib.
43601         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43602         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43603
43604 2008-10-19  Bruno Haible  <bruno@clisp.org>
43605
43606         * modules/bcopy (Depends-on): Add strings.
43607         (Include): Specify <strings.h>.
43608
43609 2008-10-19  Bruno Haible  <bruno@clisp.org>
43610
43611         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43612
43613 2008-10-19  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43616         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43617         mingw.
43618
43619 2008-10-19  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/atanl.c: Don't include isnanl.h.
43622         * lib/cosl.c: Likewise.
43623         * lib/ldexpl.c: Likewise.
43624         * lib/logl.c: Likewise.
43625         * lib/sinl.c: Likewise.
43626         * lib/sqrtl.c: Likewise.
43627         * lib/tanl.c: Likewise.
43628
43629         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43630         * lib/isnanf.h: Remove file.
43631         * lib/isnand.h: Remove file.
43632         * lib/isnanl.h: Remove file.
43633         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43634         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43635         macros.
43636         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43637         HAVE_ISNANF, don't define it as a C macro.
43638         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43639         HAVE_ISNAND, don't define it as a C macro.
43640         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43641         HAVE_ISNANL, don't define it as a C macro.
43642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43643         HAVE_ISNAN[FDL].
43644         * modules/isnanf (Files): Remove lib/isnanf.h.
43645         (Depends-on): Add math.
43646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43647         (Include): Specify <math.h> instead of isnanf.h.
43648         * modules/isnand (Files): Remove lib/isnand.h.
43649         (Depends-on): Add math.
43650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43651         (Include): Specify <math.h> instead of isnand.h.
43652         * modules/isnanl (Files): Remove lib/isnanl.h.
43653         (Depends-on): Add math.
43654         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43655         (Include): Specify <math.h> instead of isnanl.h.
43656         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43657         HAVE_ISNAN[FDL].
43658         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43659         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43660         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43661         * NEWS: Mention the change.
43662
43663 2008-10-18  Bruno Haible  <bruno@clisp.org>
43664
43665         Add getusershell(), setusershell(), endusershell() declarations to
43666         <unistd.h>.
43667         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43668         declarations.
43669         * lib/getusershell.c: Include unistd.h.
43670         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43671         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43672         HAVE_GETUSERSHELL.
43673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43674         and HAVE_GETUSERSHELL.
43675         * modules/getusershell (Depends-on): Add unistd, extensions.
43676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43677         (Include): Specify <unistd.h>.
43678         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43679         HAVE_GETUSERSHELL.
43680
43681 2008-10-18  Bruno Haible  <bruno@clisp.org>
43682
43683         Add a getloadavg() declaration to <stdlib.h>.
43684         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43685         getloadavg declaration.
43686         (getloadavg): New declaration.
43687         * lib/getloadavg.c: Include <stdlib.h> first.
43688         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43689         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43690         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43692         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43693         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43694         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43695         (Include): Specify <stdlib.h>.
43696         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43697         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43698
43699 2008-10-18  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/dirchownmod.c: Don't include lchmod.h.
43702
43703         Move the lchmod() declaration to <sys/stat.h>.
43704         * lib/lchmod.h: Remove file.
43705         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43706         (lchmod): New declaration, moved here from lib/lchown.h.
43707         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43708         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43710         and HAVE_LCHMOD.
43711         * modules/lchmod (Files): Remove lib/lchmod.h.
43712         (Depends-on): Add sys_stat, extensions.
43713         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43714         (Include): Specify <sys/stat.h> instead of lchmod.h.
43715         * modules/sys_stat (Depends-on): Add link-warning.
43716         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43717         definition of GL_LINK_WARNING.
43718         * NEWS: Mention the change.
43719
43720 2008-10-18  Bruno Haible  <bruno@clisp.org>
43721
43722         * lib/fchdir.c: Don't include dirfd.h.
43723         * lib/fts.c: Likewise.
43724         * lib/getcwd.c: Likewise.
43725         * lib/glob.c: Likewise.
43726
43727         Move the dirfd() declaration to <dirent.h>.
43728         * lib/dirfd.h: Remove file.
43729         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43730         (dirfd): New declaration.
43731         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43732         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43733         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43734         HAVE_DECL_DIRFD.
43735         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43736         HAVE_DECL_DIRFD.
43737         * modules/dirfd (Files): Remove lib/dirfd.h.
43738         (Depends-on): Add dirent, extensions.
43739         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43740         (Include): Specify <dirent.h> instead of dirfd.h.
43741         * modules/dirent (Depends-on): Add link-warning.
43742         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43743         definition of GL_LINK_WARNING.
43744         * NEWS: Mention the change.
43745
43746 2008-10-18  Bruno Haible  <bruno@clisp.org>
43747
43748         Move the euidaccess() declaration to <unistd.h>.
43749         * lib/euidaccess.h: Remove file.
43750         * lib/unistd.in.h (euidaccess): New declaration.
43751         * lib/euidaccess.c: Don't include euidaccess.h.
43752         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43753         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43755         and HAVE_EUIDACCESS.
43756         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43757         (Depends-on): Add unistd.
43758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43759         (Include): Specify <unistd.h> instead of euidaccess.h.
43760         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43761         HAVE_EUIDACCESS.
43762         * NEWS: Mention the change.
43763
43764 2008-10-18  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43767
43768         Move the getdomainname() declaration to <unistd.h>.
43769         * lib/getdomainname.h: Remove file.
43770         * lib/unistd.in.h (getdomainname): New declaration.
43771         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43772         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43773         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43774         HAVE_GETDOMAINNAME.
43775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43776         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43777         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43778         (Depends-on): Add unistd, extensions.
43779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43780         (Includes): Specify <unistd.h> instead of getdomainname.h.
43781         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43782         HAVE_GETDOMAINNAME.
43783         * NEWS: Mention the change.
43784
43785 2008-10-18  Bruno Haible  <bruno@clisp.org>
43786
43787         * modules/dirent: New file.
43788         * m4/dirent_h.m4: New file.
43789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43790         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43791         * modules/fchdir (Files): Remove lib/dirent.in.h.
43792         (Depends-on): Add dirent.
43793         (Makefile.am): Move rules to modules/dirent.
43794         * doc/posix-headers/dirent.texi: Mention the new module.
43795
43796 2008-10-18  Bruno Haible  <bruno@clisp.org>
43797
43798         Avoid -Wunused-parameter warnings in public gnulib header files.
43799         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43800         macro.
43801         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43802
43803 2008-10-18  Bruno Haible  <bruno@clisp.org>
43804
43805         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43806         * doc/glibc-functions/error.texi: Mention the module 'error'.
43807         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43808         * doc/glibc-functions/getdomainname.texi: Mention the module
43809         'getdomainname'.
43810         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43811         * doc/glibc-functions/getpagesize.texi: Mention the module
43812         'getpagesize'.
43813         * doc/glibc-functions/getusershell.texi: Mention the module
43814         'getusershell'.
43815         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43816         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43817         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43818         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43819         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43820         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43821         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43822         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43823         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43824         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43825         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43826         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43827         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43828         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43829
43830 2008-10-17  Bruno Haible  <bruno@clisp.org>
43831
43832         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43833         HP-UX and IRIX, use -0.0L.
43834         * tests/test-ceill.c (minus_zero): Likewise.
43835         * tests/test-floorl.c (minus_zero): Likewise.
43836         * tests/test-frexpl.c (minus_zero): Likewise.
43837         * tests/test-isnan.c (minus_zerol): Likewise.
43838         * tests/test-isnanl.h (minus_zero): Likewise.
43839         * tests/test-ldexpl.c (minus_zero): Likewise.
43840         * tests/test-roundl.c (minus_zero): Likewise.
43841         * tests/test-signbit.c (minus_zerol): Likewise.
43842         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43843         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43844         * tests/test-truncl.c (minus_zero): Likewise.
43845         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43846         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43847         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43848         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43849
43850 2008-10-17  Bruno Haible  <bruno@clisp.org>
43851
43852         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43853         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43854         that it gets activated only for gcc >= 3.0.
43855         * lib/dirent.in.h: Likewise.
43856         * lib/errno.in.h: Likewise.
43857         * lib/fcntl.in.h: Likewise.
43858         * lib/float.in.h: Likewise.
43859         * lib/iconv.in.h: Likewise.
43860         * lib/inttypes.in.h: Likewise.
43861         * lib/locale.in.h: Likewise.
43862         * lib/math.in.h: Likewise.
43863         * lib/netdb.in.h: Likewise.
43864         * lib/netinet_in.in.h: Likewise.
43865         * lib/search.in.h: Likewise.
43866         * lib/signal.in.h: Likewise.
43867         * lib/spawn.in.h: Likewise.
43868         * lib/stdarg.in.h: Likewise.
43869         * lib/stdint.in.h: Likewise.
43870         * lib/stdio.in.h: Likewise.
43871         * lib/stdlib.in.h: Likewise.
43872         * lib/string.in.h: Likewise.
43873         * lib/strings.in.h: Likewise.
43874         * lib/sys_file.in.h: Likewise.
43875         * lib/sys_ioctl.in.h: Likewise.
43876         * lib/sys_select.in.h: Likewise.
43877         * lib/sys_socket.in.h: Likewise.
43878         * lib/sys_stat.in.h: Likewise.
43879         * lib/sys_time.in.h: Likewise.
43880         * lib/sysexits.in.h: Likewise.
43881         * lib/time.in.h: Likewise.
43882         * lib/unistd.in.h: Likewise.
43883         * lib/wchar.in.h: Likewise.
43884         * lib/wctype.in.h: Likewise.
43885         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43886
43887 2008-10-17  Jim Meyering  <meyering@redhat.com>
43888
43889         ignore-value: don't depend on inline module
43890         * modules/ignore-value (Depends-on): Remove 'inline'.
43891         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43892         Suggestion from Bruno Haible.
43893
43894 2008-10-17  Bruno Haible  <bruno@clisp.org>
43895
43896         New implementation of condition variables for Win32.
43897         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43898         (gl_linked_waitqueue_t): New type.
43899         (gl_cond_t): Use it.
43900         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43901         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43902         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43903         (glthread_cond_init_func, glthread_cond_wait_func,
43904         glthread_cond_timedwait_func, glthread_cond_signal_func,
43905         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43906         Reimplemented on the basis of gl_linked_waitqueue_t.
43907         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43908         gl_waitqueue_t.
43909         (gl_rwlock_t): Update.
43910         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43911
43912 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43913
43914         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43915         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43916
43917 2008-10-17  Jim Meyering  <meyering@redhat.com>
43918
43919         ignore-value: new module
43920         * modules/ignore-value: New file.
43921         * lib/ignore-value.h: New file.
43922         * MODULES.html.sh (Compiler warning management): New section,
43923         just for this module.  More to come.
43924
43925 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43928         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43929         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43930
43931 2008-10-16  Jim Meyering  <meyering@redhat.com>
43932
43933         openat-die.c: avoid 'no previous prototype' warning
43934         * lib/openat-die.c: Include "openat.h".
43935         Reported by Reuben Thomas <rrt@sc3d.org>.
43936
43937 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43938
43939         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43940         * lib/netdb.in.h: Fix typo.
43941         Reported by Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/netdb.in.h: Include sys/socket.h for platforms without
43944         netdb.h, to get structures like hostent on MinGW.
43945         * modules/netdb (Depends-on): Add sys_socket.
43946
43947 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43948
43949         * modules/netdb, modules/netdb-tests: New file.
43950         * m4/netdb_h.m4: New file.
43951         * lib/netdb.in.h: Add, currently just an empty file pending
43952         definitions.
43953         * tests/test-netdb.c: New file.
43954         * doc/posix-headers/netdb.texi: Mention that we replace it if
43955         needed.
43956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43957         netdb.
43958
43959 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43960
43961         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43962         with code.
43963
43964 2008-10-13  Bruno Haible  <bruno@clisp.org>
43965
43966         * lib/glthread/cond.c (glthread_cond_wait_func,
43967         glthread_cond_timedwait_func): Add a comment.
43968
43969 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43970
43971         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43972         * tests/test-select.c: Likewise,
43973
43974 2008-10-13  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/glthread/cond.c (glthread_cond_wait_func,
43977         glthread_cond_timedwait_func): Fix variable name.
43978         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43979
43980 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43981
43982         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43984         struct sockaddr.sa_len.
43985         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43986
43987 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43988
43989         * build-aux/pmccabe2html: Add css and css_url parameters.
43990
43991 2008-10-12  Bruno Haible  <bruno@clisp.org>
43992
43993         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43994         calling aclx_get.
43995         Reported by Rainer Tammer <tammer@tammer.net>.
43996
43997 2008-10-12  Bruno Haible  <bruno@clisp.org>
43998
43999         Use msvcrt aware primitives for creation/termination of Win32 threads.
44000         * lib/glthread/thread.c: Include <process.h>.
44001         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44002         (wrapper_func): Update signature.
44003         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44004
44005 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44006             Bruno Haible  <bruno@clisp.org>
44007
44008         Provide a Win32 implementation of the 'cond' module.
44009         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44010         * lib/glthread/cond.c (glthread_cond_init_func,
44011         glthread_cond_wait_func, glthread_cond_timedwait_func,
44012         glthread_cond_signal_func, glthread_cond_broadcast_func,
44013         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44014         * modules/cond (Dependencies): Add gettimeofday.
44015
44016 2008-10-11  Bruno Haible  <bruno@clisp.org>
44017
44018         Make sleep work on older versions of mingw.
44019         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44020         only whether it exists.
44021         * doc/posix-functions/sleep.texi: Mention the problem with older
44022         versions of mingw.
44023
44024 2008-10-11  Bruno Haible  <bruno@clisp.org>
44025
44026         New module 'shutdown'.
44027         * modules/shutdown: New file.
44028         * lib/sys_socket.in.h (shutdown): New declaration.
44029         * lib/winsock.c (shutdown): New function.
44030         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44031         GNULIB_SHUTDOWN.
44032         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44033         * doc/posix-functions/shutdown.texi: Document the new module.
44034
44035 2008-10-11  Jim Meyering  <meyering@redhat.com>
44036
44037         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44038
44039 2008-10-11  Bruno Haible  <bruno@clisp.org>
44040
44041         New module 'fclose'.
44042         * modules/fclose: New file.
44043         * lib/stdio.in.h (fclose): New declaration.
44044         * lib/fclose.c: New file.
44045         * m4/fclose.m4: New file.
44046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44047         REPLACE_FCLOSE.
44048         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44049         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44050         REPLACE_FCLOSE.
44051         * modules/close (Depends-on): fclose.
44052         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44053
44054 2008-10-11  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44057         set errno and don't call _close.
44058
44059 2008-10-10  Bruno Haible  <bruno@clisp.org>
44060
44061         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44062         ACL, not afterwards. Fixes test failure on Cygwin.
44063
44064 2008-10-09  Ben Pfaff  <blp@gnu.org>
44065
44066         * build-aux/announce-gen: Fix gnulib version related part of usage
44067         message.  Die with a useful error message if no tarballs are
44068         found.
44069
44070 2008-10-10  Jim Meyering  <meyering@redhat.com>
44071
44072         bootstrap: use git's --depth=N option only if it's supported
44073         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44074         recognize the --depth option.  Reported by Pádraig Brady.
44075
44076 2008-10-09  Bruno Haible  <bruno@clisp.org>
44077
44078         New module 'ioctl'.
44079         * modules/ioctl: New file.
44080         * lib/sys_socket.in.h (ioctl): Remove declaration.
44081         * lib/winsock.c: Include <sys/ioctl.h>.
44082         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44083         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44084         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44085         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44086         * doc/posix-functions/ioctl.texi: Mention the new module.
44087
44088 2008-10-09  Bruno Haible  <bruno@clisp.org>
44089
44090         New module 'sys_ioctl'.
44091         * lib/sys_ioctl.in.h: New file.
44092         * m4/sys_ioctl_h.m4: New file.
44093         * modules/sys_ioctl: New file.
44094         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44095
44096 2008-10-09  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44099         * lib/winsock.c: Include <stdarg.h>.
44100         (rpl_ioctl): Change to second argument 'int' and then varargs.
44101
44102 2008-10-09  Bruno Haible  <bruno@clisp.org>
44103
44104         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44105         when the sys_socket module is present and the system has <winsock2.h>.
44106
44107 2008-10-09  Bruno Haible  <bruno@clisp.org>
44108
44109         * doc/posix-functions/close.texi: Mention module 'close' instead of
44110         module 'sys_socket'.
44111
44112 2008-10-09  Bruno Haible  <bruno@clisp.org>
44113
44114         * doc/glibc-headers/sys_ioctl.texi: New file.
44115         * doc/gnulib.texi: Include it.
44116
44117 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44118             Bruno Haible  <bruno@clisp.org>
44119
44120         Combine the two replacements of 'close'.
44121         * lib/sys_socket.in.h (close): Define to a reminder to include
44122         <unistd.h>.
44123         (_gl_close_fd_maybe_socket): New declaration.
44124         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44125         * lib/winsock.c (close): Remove undefinition.
44126         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44127         needed for the gnulib module 'close'.
44128         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44129         define to an error symbol or to a warning, if suitable.
44130         * lib/close.c: Include <sys/socket.h>.
44131         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44133         UNISTD_H_HAVE_WINSOCK2_H.
44134         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44136         UNISTD_H_HAVE_WINSOCK2_H.
44137         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44138         (configure.ac): Set a module indicator.
44139         (Makefile.am): Substitute GNULIB_CLOSE.
44140         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44141         * modules/poll-tests (Depends-on): Add close.
44142         * modules/select-tests (Depends-on): Likewise.
44143
44144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44145             Bruno Haible  <bruno@clisp.org>
44146
44147         New module 'close'.
44148         * modules/close: New file.
44149         * lib/unistd.in.h (close): Move declaration out of the
44150         FCHDIR_REPLACEMENT scope.
44151         (_gl_unregister_fd): New declaration.
44152         * lib/close.c: New file.
44153         * lib/fchdir.c (rpl_close): Remove function.
44154         * m4/close.m4: New file.
44155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44156         close.
44157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44158         REPLACE_CLOSE.
44159         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44160         REPLACE_CLOSE.
44161         * modules/fchdir (Depends-on): Add close.
44162
44163 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44164             Bruno Haible  <bruno@clisp.org>
44165
44166         * lib/fcntl.in.h (open): Simplify conditionals.
44167         (_gl_register_fd): New declaration.
44168         * lib/fchdir.c (rpl_open): Remove function.
44169         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44170         also.
44171         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44173         open.
44174
44175 2008-10-09  Jim Meyering  <meyering@redhat.com>
44176
44177         GNUmakefile: use the more name-space-friendly "_version"
44178         * top/GNUmakefile (_dummy): Update.
44179         (_version): Rename from "version".
44180
44181 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44182             Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44185         rpl_close.
44186         (_gl_register_fd): New function, extracted from rpl_open.
44187         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44188         (rpl_open, rpl_opendir): Use _gl_register_fd.
44189
44190 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44191
44192         Fix organization of 'open' replacement.
44193         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44194         (gl_FUNC_OPEN): Use it.
44195         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44196
44197 2008-10-08  Bruno Haible  <bruno@clisp.org>
44198
44199         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44200
44201 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44202
44203         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44204         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44205         listen).
44206
44207 2008-10-08  Eric Blake  <ebb9@byu.net>
44208
44209         GNUmakefile: add 'make version' target
44210         * top/GNUmakefile (_curr-ver): Split version update rules...
44211         (version): ...into a target.
44212
44213 2008-10-07  Bruno Haible  <bruno@clisp.org>
44214
44215         Use a more portable replacement expression for -0.0L.
44216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44217         instead of -0.0L. Fix m4 quotation.
44218
44219         * tests/test-signbit.c: Include <float.h>.
44220         (minus_zero): New variable.
44221         (test_signbitl): Use minus_zero instead of -zero.
44222         * modules/signbit-tests (Depends-on): Add float.
44223
44224         * tests/test-ceill.c: Include <float.h>.
44225         (zero): Remove variable.
44226         (minus_zero): New variable.
44227         (main): Use minus_zero instead of -zero.
44228         * modules/ceill-tests (Depends-on): Add float.
44229
44230         * tests/test-floorl.c: Include <float.h>.
44231         (zero): Remove variable.
44232         (minus_zero): New variable.
44233         (main): Use minus_zero instead of -zero.
44234         * modules/floorl-tests (Depends-on): Add float.
44235
44236         * tests/test-roundl.c: Include <float.h>.
44237         (zero): Remove variable.
44238         (minus_zero): New variable.
44239         (main): Use minus_zero instead of -zero.
44240         * modules/roundl-tests (Depends-on): Add float.
44241
44242         * tests/test-truncl.c: Include <float.h>.
44243         (zero): Remove variable.
44244         (minus_zero): New variable.
44245         (main): Use minus_zero instead of -zero.
44246         * modules/truncl-tests (Depends-on): Add float.
44247
44248         * tests/test-frexpl.c (zero): Remove variable.
44249         (minus_zero): New variable.
44250         (main): Use minus_zero instead of -zero.
44251         * modules/frexpl-tests (Depends-on): Add float.
44252
44253         * tests/test-isnan.c (zerol): Remove variable.
44254         (minus_zerol): New variable.
44255         (test_long_double): Use minus_zerol instead of -zerol.
44256         * modules/isnan-tests (Depends-on): Add float.
44257
44258         * tests/test-isnanl.h (zero): Remove variable.
44259         (minus_zero): New variable.
44260         (main): Use minus_zero instead of -zero.
44261         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44262         * modules/isnanl-tests (Depends-on): Add float.
44263
44264         * tests/test-ldexpl.c (zero): Remove variable.
44265         (minus_zero): New variable.
44266         (main): Use minus_zero instead of -zero.
44267         * modules/ldexpl-tests (Depends-on): Add float.
44268
44269         * tests/test-snprintf-posix.h (zerol): Remove variable.
44270         (minus_zerol): New variable.
44271         (test_function): Use minus_zerol instead of -zerol.
44272         * modules/snprintf-posix-tests (Depends-on): Add float.
44273         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44274
44275         * tests/test-sprintf-posix.h (zerol): Remove variable.
44276         (minus_zerol): New variable.
44277         (test_function): Use minus_zerol instead of -zerol.
44278         * modules/sprintf-posix-tests (Depends-on): Add float.
44279         * modules/vsprintf-posix-tests (Depends-on): Add float.
44280
44281         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44282         (minus_zerol): New variable.
44283         (test_function): Use minus_zerol instead of -zerol.
44284         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44285
44286         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44287         (minus_zerol): New variable.
44288         (test_function): Use minus_zerol instead of -zerol.
44289         * modules/vasprintf-posix-tests (Depends-on): Add float.
44290
44291 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44292
44293         * MODULES.html.sh (Support for building documentation): Mention
44294         pmccabe2html.  Sort entries.
44295
44296         Add pmccabe2html module, from gnupdf.
44297         * build-aux/pmccabe.css: New file.
44298         * build-aux/pmccabe2html: New file.
44299         * m4/pmccabe2html.m4: New file.
44300         * modules/pmccabe2html: New file.
44301
44302 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44303
44304         flock: new module
44305         * MODULES.html.sh: Add to list of modules.
44306         * lib/flock.c: flock implementation for Windows and Unix systems
44307         which have fcntl.
44308         * doc/glibc-functions/flock.texi: Update documentation.
44309         * lib/sys_file.in.h: <sys/file.h> header file.
44310         * m4/flock.m4: M4 macros.
44311         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44312         * modules/flock: flock module.
44313         * modules/flock-tests: flock tests module.
44314         * modules/sys_file: sys/file.h module.
44315         * tests/test-flock.c: test suite for flock.
44316
44317 2008-10-06  Jim Meyering  <meyering@redhat.com>
44318
44319         bootstrap: check for LT_INIT more portably still ;-)
44320         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44321         Spotted by Bruno Haible.
44322
44323 2008-10-06  Eric Blake  <ebb9@byu.net>
44324
44325         test-signbit: avoid tripping Irix cc bug on -0.0L
44326         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44327         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44328         entire testsuite consistent and avoids an Irix 6.2 bug.
44329
44330 2008-10-05  Bruno Haible  <bruno@clisp.org>
44331             Jim Meyering  <jim@meyering.net>
44332
44333         Add an option for ignoring EPIPE during close_stdout.
44334         * lib/closeout.h: Include <stdbool.h>.
44335         (close_stdout_set_ignore_EPIPE): New declaration.
44336         * lib/closeout.c: Include <stdbool.h>.
44337         (ignore_EPIPE): New variable.
44338         (close_stdout_set_ignore_EPIPE): New function.
44339         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44340         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44341         failure.
44342         * modules/closeout (Depends-on): Add stdbool.
44343
44344 2008-10-05  Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/accept: New file.
44347         * modules/bind: New file.
44348         * modules/connect: New file.
44349         * modules/getpeername: New file.
44350         * modules/getsockname: New file.
44351         * modules/getsockopt: New file.
44352         * modules/listen: New file.
44353         * modules/recv: New file.
44354         * modules/recvfrom: New file.
44355         * modules/send: New file.
44356         * modules/sendto: New file.
44357         * modules/setsockopt: New file.
44358         * modules/socket: New file.
44359         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44360         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44361         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44362         the particular module is requested. Add a link warning when the
44363         particular module is not requested.
44364         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44365         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44366         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44367         the particular module is requested.
44368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44369         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44370         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44371         * modules/sys_socket (Depends-on): Add link-warning.
44372         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44373         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44374         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44375         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44376         GL_LINK_WARNING.
44377         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44378         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44379         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44380         * doc/posix-functions/getpeername.texi: Mention the new module
44381         'getpeername'.
44382         * doc/posix-functions/getsockname.texi: Mention the new module
44383         'getsockname'.
44384         * doc/posix-functions/getsockopt.texi: Mention the new module
44385         'getsockopt'.
44386         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44387         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44388         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44389         * doc/posix-functions/send.texi: Mention the new module 'send'.
44390         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44391         * doc/posix-functions/setsockopt.texi: Mention the new module
44392         'setsockopt'.
44393         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44394         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44395         listen, connect, accept.
44396         * modules/select-tests (Depends-on): Likewise.
44397
44398 2008-10-05  Bruno Haible  <bruno@clisp.org>
44399
44400         * lib/winsock.c (strerror): Remove unused #undef.
44401         (rpl_close): Remove unused local variable.
44402
44403         * modules/sys_socket (Depends-on); Add errno.
44404
44405 2008-10-05  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44408         (select): Add a link warning when the 'select' module is not used.
44409         * modules/sys_select (Depends-on): Add link-warning.
44410         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44411         Suggested by Paolo Bonzini.
44412
44413 2008-10-05  Jim Meyering  <meyering@redhat.com>
44414
44415         bootstrap: check for LT_INIT more portably
44416         * build-aux/bootstrap: Avoid using grep -E, since it's not
44417         portable enough.  Suggestion from Bruno Haible.
44418
44419 2008-10-05  Bruno Haible  <bruno@clisp.org>
44420
44421         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44422         as being fixed by gnulib.
44423
44424 2008-10-05  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/select-tests: New file, mostly copied from
44427         modules/sys_select-tests.
44428         * tests/test-select.c: New file, mostly copied from
44429         tests/test-sys_select.c.
44430         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44431         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44432         (Makefile.am): Remove test_sys_select_LDADD.
44433
44434         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44435         to an undefined symbol, for an error message.
44436         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44437         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44438         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44439         winsock-select.c here.
44440         * modules/sys_select (Files): Remove lib/winsock-select.c.
44441         (Depends-on): Remove alloca.
44442         (Makefile.am): Substitute GNULIB_SELECT.
44443         * modules/select: New file.
44444         * doc/posix-functions/select.texi: Update.
44445
44446 2008-10-05  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44449         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44450         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44451         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44452         getdtablesize.
44453         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44454         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44455
44456 2008-10-05  Bruno Haible  <bruno@clisp.org>
44457
44458         * modules/getdtablesize-tests: New file.
44459         * tests/test-getdtablesize.c: New file.
44460
44461         New module 'getdtablesize'.
44462         * lib/unistd.in.h (getdtablesize): New declaration.
44463         * lib/getdtablesize.c: New file.
44464         * m4/getdtablesize.m4: New file.
44465         * modules/getdtablesize: New file.
44466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44467         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44468         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44469         HAVE_GETDTABLESIZE.
44470         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44471
44472 2008-10-05  Bruno Haible  <bruno@clisp.org>
44473
44474         * modules/sched (Makefile.am): Fix typo.
44475         Reported by Simon Josefsson.
44476
44477 2008-10-05  Jim Meyering  <meyering@redhat.com>
44478
44479         bootstrap: check for LT_INIT, too
44480         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44481         are deprecated.  Suggestion from Ralf Wildenhues.
44482
44483 2008-10-05  Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44486         overriding them by ours.
44487         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44488
44489 2008-10-05  Jim Meyering  <meyering@redhat.com>
44490
44491         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44492         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44493         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44494
44495 2008-10-04  Bruno Haible  <bruno@clisp.org>
44496
44497         * modules/dup2 (License): Change to LGPLv2+.
44498         * modules/sleep (License): Likewise.
44499         * modules/perror (License): Likewise.
44500         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44501         Blake.
44502         * modules/signal (License): Likewise.
44503         * modules/sigprocmask (License): Likewise.
44504         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44505         Meyering.
44506
44507 2008-10-04  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44510         Reported by Rainer Tammer <tammer@tammer.net>.
44511
44512 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44513             Bruno Haible  <bruno@clisp.org>
44514
44515         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44516         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44517         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44518
44519 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44520
44521         filevercmp: new module
44522         * lib/filevercmp.h: New function filevercmp comparing version strings.
44523         * lib/filevercmp.c: Implementation of filevercmp function.
44524         * modules/filevercmp: Module metadata.
44525         * tests/test-filevercmp.c: Unit test for new module.
44526         * modules/filevercmp-tests: Unit test metadata.
44527         * MODULES.html.sh: Add filevercmp module.
44528
44529 2008-10-03  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/c-ctype.h: Add comment.
44532         Reported by Jim Meyering.
44533
44534 2008-10-02  Bruno Haible  <bruno@clisp.org>
44535
44536         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44537
44538 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44539
44540         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44541         name of bootstrap.conf accordingly.
44542
44543 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44544
44545         * build-aux/bootstrap: Install git-merge-changelog configuration
44546         items into .gitconfig if needed.
44547
44548 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44549
44550         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44551         git repository, and initialize/update it accordingly.
44552
44553 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44554
44555         * modules/fsync-tests: New file.
44556         * tests/test-fsync.c: New file.
44557
44558         New module 'fsync'.
44559         * lib/fsync.c: New file.
44560         * m4/fsync.m4: New file.
44561         * modules/fsync: New file.
44562         * lib/unistd.in.h (fsync): New declaration.
44563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44564         GNULIB_FSYNC and HAVE_FSYNC.
44565         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44566         * MODULES.html.sh (posix_functions): Add fsync.
44567         * doc/posix-functions/fsync.texi: Mention the new module.
44568
44569 2008-10-02  Jim Meyering  <meyering@redhat.com>
44570
44571         fts.c: sync with similar code from coreutils' remove.c
44572         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44573         Guard also with "#if defined __linux__", since for now at least,
44574         this code is Linux-kernel-specific.
44575
44576 2008-10-02  Jim Meyering  <meyering@redhat.com>
44577
44578         fts: bug fixes
44579         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44580         Include <sys/vfs.h>, not <sys/statfs.h>.
44581
44582         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44583         Include <sys/vfs.h>, not <sys/statfs.h>.
44584
44585 2008-10-01  Bruno Haible  <bruno@clisp.org>
44586
44587         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44588         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44589         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44590         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44591         * doc/posix-functions/posix_spawnp.texi: Likewise.
44592         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44593         whether posix_spawn actually works.
44594         * m4/pipe.m4 (gl_PIPE): Likewise.
44595         * modules/execute (Files): Add m4/posix_spawn.m4.
44596         * modules/pipe (Files): Add m4/posix_spawn.m4.
44597         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44598
44599 2008-10-01  Jim Meyering  <meyering@redhat.com>
44600
44601         remove trailing spaces
44602         * NEWS: Likewise.
44603         * lib/poll.c (poll): Likewise.
44604         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44605         * lib/winsock.c (rpl_close): Likewise.
44606         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44607         * modules/yield: Likewise.
44608         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44609         * tests/test-sys_select.c (connect_to_socket): Likewise.
44610
44611         fts.c: adjust a new interface to be more generally useful
44612         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44613         (fts_build): Adjust caller.
44614
44615 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44616
44617         * modules/cond-tests: New file.
44618         * tests/test-cond.c: New file.
44619
44620 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44621             Bruno Haible  <bruno@clisp.org>
44622
44623         * modules/cond (Dependencies): Add errno, time.
44624         * lib/glthread/cond.h: Include <time.h>.
44625         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44626         across platforms.
44627
44628 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44629             Bruno Haible  <bruno@clisp.org>
44630
44631         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44632
44633 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44634             Bruno Haible  <bruno@clisp.org>
44635
44636         * modules/tls-tests (Depends-on): Add thread, yield.
44637         (configure.ac): Remove all checks.
44638         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44639         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44640         gl_thread_self): Remove definitions. Include glthread/thread.h and
44641         glthread/yield.h instead.
44642         (test_tls): Pass an additional NULL argument to gl_thread_join.
44643
44644 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44645             Bruno Haible  <bruno@clisp.org>
44646
44647         * modules/lock-tests (Depends-on): Add thread, yield.
44648         (configure.ac): Remove all checks.
44649         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44650         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44651         gl_thread_self): Remove definitions. Include glthread/thread.h and
44652         glthread/yield.h instead.
44653         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44654         additional NULL argument to gl_thread_join.
44655
44656 2008-09-30  Bruno Haible  <bruno@clisp.org>
44657
44658         Fix the Win32 implementation of the 'thread' module.
44659         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44660         pointer type.
44661         (gl_thread_self): Invoke gl_thread_self_func.
44662         (gl_thread_self_func): New declaration.
44663         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44664         (do_init_self_key, init_self_key): New functions.
44665         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44666         Remove some fields.
44667         (running_threads, running_lock): Remove variables.
44668         (get_current_thread_handle): New function.
44669         (gl_thread_self_func, wrapper_func, glthread_create_func,
44670         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44671         simplified.
44672
44673 2008-09-30  Bruno Haible  <bruno@clisp.org>
44674
44675         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44676         files.
44677
44678 2008-09-30  Jim Meyering  <meyering@redhat.com>
44679
44680         fts.m4: correct the test for statfs.f_type
44681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44682         when checking for statfs.f_type.
44683
44684 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44685
44686         tests: avoid some compiler warnings
44687         * tests/test-memchr.c (main): Pass NULL indirectly.
44688         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44689
44690 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44691
44692         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44693         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44694         exactly specified dayshifts.
44695         (dayshift): New rule.
44696         (rel): Add dayshift.
44697         (relative_time_table) [tomorrow, yesterday, today, now]:
44698         Use tDAY_SHIFT in place of tDAY_UNIT.
44699         * tests/test-getdate.c: Add tests for now-disallowed countable
44700         dayshifts, e.g., "4 yesterday ago".
44701
44702 2008-09-29  Bruno Haible  <bruno@clisp.org>
44703
44704         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44705         * tests/test-posix_spawn1.in.sh: Renamed from
44706         tests/test-posix_spawn.in.sh.
44707         * tests/test-posix_spawn2.c: New file.
44708         * tests/test-posix_spawn2.in.sh: New file.
44709         * modules/posix_spawnp-tests (Files): Update.
44710         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44711
44712 2008-09-29  Bruno Haible  <bruno@clisp.org>
44713
44714         Propagate effects of putenv/setenv/unsetenv to child processes.
44715         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44716         * lib/pipe.c (create_pipe): Likewise.
44717
44718 2008-09-29  Bruno Haible  <bruno@clisp.org>
44719
44720         Enable use of shell scripts as executables in mingw.
44721         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44722         run the program as a shell script.
44723         * lib/pipe.c (create_pipe): Likewise.
44724         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44725         resulting array.
44726
44727 2008-09-29  Eric Blake  <ebb9@byu.net>
44728
44729         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44730
44731 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44732
44733         * doc/posix-functions/accept.texi: Update mingw problems.
44734         * doc/posix-functions/bind.texi: Update mingw problems.
44735         * doc/posix-functions/close.texi: Update mingw problems.
44736         * doc/posix-functions/connect.texi: Update mingw problems.
44737         * doc/posix-functions/getpeername.texi: Update mingw problems.
44738         * doc/posix-functions/getsockname.texi: Update mingw problems.
44739         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44740         * doc/posix-functions/ioctl.texi: Update mingw problems.
44741         * doc/posix-functions/listen.texi: Update mingw problems.
44742         * doc/posix-functions/recv.texi: Update mingw problems.
44743         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44744         * doc/posix-functions/select.texi: Update mingw problems.
44745         * doc/posix-functions/send.texi: Update mingw problems.
44746         * doc/posix-functions/sendto.texi: Update mingw problems.
44747         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44748         * doc/posix-functions/socket.texi: Update mingw problems.
44749
44750 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44751             Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/sys_select.in.h: Include sys/time.h.
44754         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44755         * modules/sys_select: Depend on sys_time.
44756         * tests/test-sys_select.c: Test that sys/select.h defines struct
44757         timeval fully.
44758
44759 2008-09-29  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44762         * lib/sys_select.in.h: Likewise.
44763
44764 2008-09-29  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44767
44768 2008-09-29  Bruno Haible  <bruno@clisp.org>
44769
44770         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44771         Set LIBSOCKET instead of augmenting LIBS.
44772         * modules/sockets (Link): New section.
44773         * modules/sockets-tests (test_sockets_LDADD): New variable.
44774         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44775         * modules/poll-tests (test_poll_LDADD): New variable.
44776         * NEWS: Document the change.
44777
44778 2008-09-29  Bruno Haible  <bruno@clisp.org>
44779
44780         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44781         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44782         ARPA_INET_H directly.
44783         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44784
44785 2008-09-28  Bruno Haible  <bruno@clisp.org>
44786
44787         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44788         from gl_HEADER_SYS_SOCKET.
44789         (gl_HEADER_SYS_SOCKET): Invoke it.
44790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44791
44792 2008-09-28  Bruno Haible  <bruno@clisp.org>
44793
44794         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44795         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44796         Needed on OSF/1 4.0.
44797
44798 2008-09-28  Bruno Haible  <bruno@clisp.org>
44799
44800         Override open more carefully.
44801         * lib/open.c (orig_open): New function.
44802         (rpl_open): Use orig_open instead of open.
44803         * lib/fcntl.in.h: Add special invocation convention.
44804         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44805         (gl_FUNC_OPEN): Invoke it.
44806
44807         Override freopen more carefully.
44808         * lib/freopen.c (orig_freopen): New function.
44809         (rpl_freopen): Use orig_freopen instead of freopen.
44810         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44811         (gl_FUNC_FREOPEN): Invoke it.
44812
44813         Override fopen more carefully.
44814         * lib/fopen.c (orig_fopen): New function.
44815         (rpl_fopen): Use orig_fopen instead of fopen.
44816         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44817         (gl_FUNC_FOPEN): Invoke it.
44818         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44819
44820 2008-09-28  Bruno Haible  <bruno@clisp.org>
44821
44822         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44823         SIGPIPE.
44824
44825 2008-09-28  Bruno Haible  <bruno@clisp.org>
44826
44827         * tests/test-sigaction.c (handler, main): Disable the check whether
44828         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44829         glibc systems with LinuxThreads.
44830
44831 2008-09-28  Bruno Haible  <bruno@clisp.org>
44832
44833         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44834
44835         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44836         with AIX xlc.
44837         * lib/fcntl.in.h (open): Likewise.
44838         Reported by Rainer Tammer <tammer@tammer.net>.
44839
44840 2008-09-28  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/posix_spawnp-tests: New file.
44843         * tests/test-posix_spawn.c: New file.
44844         * tests/test-posix_spawn.in.sh: New file.
44845
44846         New module 'posix_spawnp'.
44847         * modules/posix_spawnp: New file.
44848         * lib/spawnp.c: New file, from GNU libc with modifications.
44849         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44850
44851         New module 'posix_spawn'.
44852         * modules/posix_spawn: New file.
44853         * lib/spawn.c: New file, from GNU libc with modifications.
44854         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44855
44856         New module 'posix_spawnattr_destroy'.
44857         * modules/posix_spawnattr_destroy: New file.
44858         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44859         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44860         module.
44861
44862         New module 'posix_spawnattr_setsigmask'.
44863         * modules/posix_spawnattr_setsigmask: New file.
44864         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44865         modifications.
44866         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44867         new module.
44868
44869         New module 'posix_spawnattr_getsigmask'.
44870         * modules/posix_spawnattr_getsigmask: New file.
44871         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44872         modifications.
44873         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44874         new module.
44875
44876         New module 'posix_spawnattr_setsigdefault'.
44877         * modules/posix_spawnattr_setsigdefault: New file.
44878         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44879         modifications.
44880         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44881         new module.
44882
44883         New module 'posix_spawnattr_getsigdefault'.
44884         * modules/posix_spawnattr_getsigdefault: New file.
44885         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44886         modifications.
44887         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44888         new module.
44889
44890         New module 'posix_spawnattr_setschedpolicy'.
44891         * modules/posix_spawnattr_setschedpolicy: New file.
44892         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44893         modifications.
44894         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44895         new module.
44896
44897         New module 'posix_spawnattr_getschedpolicy'.
44898         * modules/posix_spawnattr_getschedpolicy: New file.
44899         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44900         modifications.
44901         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44902         new module.
44903
44904         New module 'posix_spawnattr_setschedparam'.
44905         * modules/posix_spawnattr_setschedparam: New file.
44906         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44907         modifications.
44908         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44909         new module.
44910
44911         New module 'posix_spawnattr_getschedparam'.
44912         * modules/posix_spawnattr_getschedparam: New file.
44913         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44914         modifications.
44915         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44916         new module.
44917
44918         New module 'posix_spawnattr_setpgroup'.
44919         * modules/posix_spawnattr_setpgroup: New file.
44920         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44921         modifications.
44922         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44923         module.
44924
44925         New module 'posix_spawnattr_getpgroup'.
44926         * modules/posix_spawnattr_getpgroup: New file.
44927         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44928         modifications.
44929         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44930         module.
44931
44932         New module 'posix_spawnattr_setflags'.
44933         * modules/posix_spawnattr_setflags: New file.
44934         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44935         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44936         module.
44937
44938         New module 'posix_spawnattr_getflags'.
44939         * modules/posix_spawnattr_getflags: New file.
44940         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44941         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44942         module.
44943
44944         New module 'posix_spawnattr_init'.
44945         * modules/posix_spawnattr_init: New file.
44946         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44947         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44948         module.
44949
44950         New module 'posix_spawn_file_actions_destroy'.
44951         * modules/posix_spawn_file_actions_destroy: New file.
44952         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44953         modifications.
44954         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44955         the new module.
44956
44957         New module 'posix_spawn_file_actions_addopen'.
44958         * modules/posix_spawn_file_actions_addopen: New file.
44959         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44960         modifications.
44961         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44962         the new module.
44963
44964         New module 'posix_spawn_file_actions_adddup2'.
44965         * modules/posix_spawn_file_actions_adddup2: New file.
44966         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44967         modifications.
44968         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44969         the new module.
44970
44971         New module 'posix_spawn_file_actions_addclose'.
44972         * modules/posix_spawn_file_actions_addclose: New file.
44973         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44974         modifications.
44975         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44976         the new module.
44977
44978         New module 'posix_spawn_file_actions_init'.
44979         * modules/posix_spawn_file_actions_init: New file.
44980         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44981         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44982         new module.
44983
44984         New module 'posix_spawn-internal'.
44985         * modules/posix_spawn-internal: New file.
44986         * lib/spawn_int.h: New file, from GNU libc with modifications.
44987         * lib/spawni.c: New file, from GNU libc with modifications.
44988         * m4/posix_spawn.m4: New file.
44989
44990         New module 'spawn'.
44991         * modules/spawn: New file.
44992         * lib/spawn.in.h: New file, from GNU libc with modifications.
44993         * m4/spawn_h.m4: New file.
44994         * doc/posix-headers/spawn.texi: Mention the new module.
44995
44996 2008-09-28  Bruno Haible  <bruno@clisp.org>
44997
44998         * modules/sched-tests: New file.
44999         * tests/test-sched.c: New file.
45000
45001         New module 'sched'.
45002         * modules/sched: New file.
45003         * lib/sched.in.h: New file.
45004         * m4/sched_h.m4: New file.
45005         * doc/posix-headers/sched.texi: Mention the new module.
45006
45007 2008-09-27  Eric Blake  <ebb9@byu.net>
45008
45009         Fix previous patch, and tweak references to $0.
45010         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45011         (func_version, func_gnulib_dir): Don't call this program
45012         gnulib-tool.
45013         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45014         with using $0 in function.
45015         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45016         (func_fatal_error): Reuse the name the user invoked us with.
45017
45018 2008-09-27  Bruno Haible  <bruno@clisp.org>
45019
45020         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45021         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45022         (gl_ICONV_H): Not here.
45023         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45024         instead of assigning ICONV_H directly.
45025
45026         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45028         WCHAR_H directly.
45029
45030 2008-09-27  Bruno Haible  <bruno@clisp.org>
45031
45032         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45033         * modules/arpa_inet (Depends-on): Add link-warning.
45034         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45035         * modules/unistd (Makefile.am): Likewise.
45036
45037 2008-09-26  Bruno Haible  <bruno@clisp.org>
45038
45039         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45040         variables.
45041         (func_version): Essentially copied from gnulib-tool.
45042         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45043         func_readlink): Copied from gnulib-tool.
45044
45045 2008-09-26  Bruno Haible  <bruno@clisp.org>
45046
45047         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45048         invoking git-version-gen.
45049
45050 2008-09-26  Bruno Haible  <bruno@clisp.org>
45051
45052         * posix-modules: Update to directory names changed on 2008-01-19.
45053         Remove commas in output before splitting into words. No more need to
45054         avoid 'ftruncate' since 2007-02-19.
45055
45056 2008-09-26  Bruno Haible  <bruno@clisp.org>
45057
45058         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45059
45060 2008-09-26  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45063         * modules/fwriteerror (Depends-on): Add errno.
45064
45065 2008-09-26  Bruno Haible  <bruno@clisp.org>
45066
45067         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45068         * tests/test-vc-list-files-cvs.sh: Likewise.
45069
45070 2008-09-26  Bruno Haible  <bruno@clisp.org>
45071
45072         * doc/posix-headers/sys_resource.texi: Reorder items.
45073
45074 2008-09-26  Jim Meyering  <meyering@redhat.com>
45075
45076         fts: tweak inode comparison function
45077         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45078         inode numbers, as documented.
45079
45080         fts: sort dirent entries on inode number before traversing
45081         This avoids a quadratic, seek-related performance penalty when
45082         operating on a directory containing many entries (measurable at 10k;
45083         3.5 hours at 2 million entries with a cold cache) on certain types
45084         of file systems, including ext3 and ext4, but not tmpfs.
45085         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45086         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45087         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45088         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45089         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45090         (fts_build): Set the stat.st_ino member from D_INO.
45091         If it is likely to be useful, sort dirent entries on inode number.
45092
45093         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45094         and the struct statfs.f_type member.
45095         * modules/fts (Depends-on): Add d-ino.
45096
45097 2008-09-26  Bruno Haible  <bruno@clisp.org>
45098
45099         * modules/sigpipe-die (Depends-on): Add sigpipe.
45100
45101         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45102         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45103         and GNULIB_STDIO_H_SIGPIPE are set.
45104         * lib/stdio-write.c: New file.
45105         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45106         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45107         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45108         REPLACE_STDIO_WRITE_FUNCS.
45109         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45110         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45111         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45112         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45113         * modules/stdio (Files): Add lib/stdio-write.c.
45114         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45115         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45116         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45117         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45118         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45119         REPLACE_FPRINTF_POSIX.
45120         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45121         REPLACE_PRINTF_POSIX.
45122         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45123         REPLACE_VFPRINTF_POSIX.
45124         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45125         REPLACE_VPRINTF_POSIX.
45126         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45127         SIGPIPE issue.
45128         * doc/posix-functions/fputc.texi: Likewise.
45129         * doc/posix-functions/fputs.texi: Likewise.
45130         * doc/posix-functions/fwrite.texi: Likewise.
45131         * doc/posix-functions/printf.texi: Likewise.
45132         * doc/posix-functions/putc.texi: Likewise.
45133         * doc/posix-functions/putchar.texi: Likewise.
45134         * doc/posix-functions/puts.texi: Likewise.
45135         * doc/posix-functions/vfprintf.texi: Likewise.
45136         * doc/posix-functions/vprintf.texi: Likewise.
45137
45138         * modules/safe-write (Depends-on): Add write.
45139
45140         * modules/sigpipe-tests: New file.
45141         * tests/test-sigpipe.c: New file.
45142         * tests/test-sigpipe.sh: New file.
45143
45144         * modules/write: New file.
45145         * lib/unistd.in.h: Include <sys/types.h>.
45146         (write): New declaration.
45147         * lib/write.c: New file.
45148         * m4/write.m4: New file.
45149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45150         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45151         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45152         GNULIB_WRITE, REPLACE_WRITE.
45153         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45154         and the SIGPIPE issue.
45155
45156         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45157         (raise): New declaration.
45158         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45159         (ext_signal): New function.
45160         (rpl_raise): New function.
45161         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45162         GNULIB_SIGNAL_H_SIGPIPE.
45163         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45164         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45165
45166         * modules/sigpipe: New file.
45167         * m4/sigpipe.m4: New file.
45168
45169 2008-09-25  Derek Price  <derek@ximbiot.com>
45170             Bruno Haible  <bruno@clisp.org>
45171
45172         * gnulib-tool (func_import): Report all license incompatibilities, not
45173         just the first one.
45174
45175 2008-09-25  Bruno Haible  <bruno@clisp.org>
45176
45177         * gnulib-tool (func_import): When computing the edits, consider not
45178         only the Makefile.ams that exist but also those that will be generated.
45179
45180 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45181
45182         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45183         fixes gnulib-tool --test warning about duplicate dependency.
45184
45185 2008-09-25  Bruno Haible  <bruno@clisp.org>
45186
45187         * gnulib-tool: Don't ask the user to perform edits in the generated
45188         Makefile.ams.
45189         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45190         apply to the Makefile.am being generated.
45191         (func_emit_tests_Makefile_am): Execute edits that apply to the
45192         Makefile.am being generated.
45193         (func_import): Setup list of Makefile.am edits before emitting the
45194         Makefile.ams, not at the end.
45195         (func_create_testdir): Update.
45196         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45197
45198 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45199
45200         * gnulib-tool (func_import): Store the --tests-base option in the
45201         comment in gnulib-cache.m4.
45202
45203 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45204
45205         * NEWS: Document increased portability that sys_select now provides.
45206
45207         * lib/sys_select.in.h: Install select wrapper.
45208         * lib/sys_socket.in.h: Use more descriptive name when there is no
45209         select wrapper.
45210         * lib/winsock-select.c: New.
45211         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45212         Require gl_HEADER_SYS_SOCKET.
45213         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45214         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45215         * tests/test-sys_select.c: Add functional tests.
45216
45217 2008-09-24  Eric Blake  <ebb9@byu.net>
45218
45219         open, fopen: close fd leak in last patch
45220         * lib/open.c (rpl_open): Close fd before returning error.
45221         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45222         * doc/posix-functions/open.texi (open): Document that Irix also
45223         has the bug.
45224         * doc/posix-functions/fopen.texi (fopen): Likewise.
45225         Reported by Paolo Bonzini.
45226
45227 2008-09-24  Bruno Haible  <bruno@clisp.org>
45228
45229         Ensure that a filename ending in a slash cannot be used to access a
45230         non-directory.
45231         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45232         to check whether it's really a directory.
45233         * lib/fopen.c: Include fcntl.h, unistd.h.
45234         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45235         and fdopen().
45236         * modules/fopen (Depends-on): Add unistd.
45237         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45238         * tests/test-fopen.c (main): Likewise.
45239         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45240         * doc/posix-functions/fopen.texi: Likewise.
45241         Reported by Eric Blake.
45242
45243 2008-09-23  Eric Blake  <ebb9@byu.net>
45244
45245         c-stack: avoid compiler optimizations when provoking overflow
45246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45247         recursion harder to optimize, to ensure a stack overflow occurs.
45248         * tests/test-c-stack.c (recurse): Likewise.
45249         Borrowed from libsigsegv.
45250
45251         c-stack: work around Irix sigaltstack bug
45252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45253         whether sigaltstack uses wrong end of stack_t (copied in part from
45254         libsigsegv).
45255         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45256         Irix bug, without requiring an over-allocation.
45257         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45258         bug.
45259
45260         fopen: document mingw bug on directories
45261         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45262         not allowing a stream visiting a directory, even though reading
45263         from such a stream is not portable.
45264
45265 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45266
45267         * lib/poll.c: Rewrite.
45268         * modules/poll: Depend on alloca.
45269
45270 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45271
45272         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45273         instead define prototypes for a full set of wrappers.  Ensure
45274         that Cygwin does not use the compatibility code, which is only
45275         for MinGW.
45276         * lib/winsock.c: New.
45277         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45278         * modules/sys_socket: Add lib/winsock.c.
45279
45280         * modules/poll-tests: Add errno and perror.
45281         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45282
45283 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45284
45285         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45286
45287 2008-09-23  Bruno Haible  <bruno@clisp.org>
45288
45289         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45290         * doc/glibc-functions/*: Likewise.
45291
45292 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45293
45294         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45295         success.
45296
45297 2008-09-22  Eric Blake  <ebb9@byu.net>
45298             Bruno Haible  <bruno@clisp.org>
45299
45300         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45301         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45302         supply %A but mishandle pseudo-NaN.
45303         Reported by Simon Josefsson.
45304
45305 2008-09-21  Bruno Haible  <bruno@clisp.org>
45306
45307         * tests/test-lock.c (main): Tweak skip message.
45308         * tests/test-tls.c (main): Likewise.
45309
45310 2008-09-21  Bruno Haible  <bruno@clisp.org>
45311
45312         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45313         whether 'struct sigaction' has sa_sigaction here...
45314         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45315         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45316
45317 2008-09-21  Bruno Haible  <bruno@clisp.org>
45318
45319         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45320         section.
45321         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45322         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45323         the new section.
45324         (Support for obsolete systems lacking POSIX:2001): New section.
45325         (String handling <string.h>): Move strdup to the new section.
45326         Suggested by Simon Josefsson and Paolo Bonzini.
45327
45328 2008-09-21  Bruno Haible  <bruno@clisp.org>
45329
45330         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45331         exponents in %e and %g results on 'long double'. Needed for mingw's
45332         improved *printf functions.
45333         * tests/test-vasprintf-posix.c (test_function): Likewise.
45334         * tests/test-snprintf-posix.h (test_function): Likewise.
45335         * tests/test-sprintf-posix.h (test_function): Likewise.
45336         Reported by Eric Blake.
45337
45338 2008-09-21  Bruno Haible  <bruno@clisp.org>
45339
45340         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45341         * tests/test-sprintf-posix.h (test_function): Likewise.
45342
45343 2008-09-21  Bruno Haible  <bruno@clisp.org>
45344
45345         * modules/getpass (Depends-on): Add strdup-posix.
45346
45347         New module 'strdup-posix'.
45348         * modules/strdup-posix: New file.
45349         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45350         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45352         REPLACE_STRDUP.
45353         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45354         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45356         strdup-posix.
45357
45358         * modules/strdup (Depends-on): Remove malloc-posix.
45359
45360 2008-09-20  Bruno Haible  <bruno@clisp.org>
45361
45362         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45363         Wildenhues.
45364
45365 2008-09-20  Bruno Haible  <bruno@clisp.org>
45366
45367         Ensure that wint_t gets defined on IRIX 5.3.
45368         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45369         * lib/wctype.in.h (wint_t): Likewise.
45370         (__wctype_wint_t): Remove type.
45371         (isw*): Use wint_t instead of __wctype_wint_t.
45372         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45373         * modules/wchar (Files): Add m4/wint_t.m4.
45374         (Makefile.am): Substitute HAVE_WINT_T.
45375         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45376         * tests/test-wctype.c: Check that wint_t is defined.
45377         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45378         * doc/posix-headers/wctype.texi: Likewise.
45379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45380
45381 2008-09-18  Bruno Haible  <bruno@clisp.org>
45382
45383         * gnulib-tool (func_exit): Update comment.
45384
45385 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45386
45387         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45388         assumes strdup exists and does not depend on strdup to return
45389         ENOMEM on out of memory conditions.
45390
45391 2008-09-18  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45394         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45395         digits for the exponent.
45396
45397 2008-09-18  Jim Meyering  <meyering@redhat.com>
45398             Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/vasnprintf.c (decimal_point_char): Define also if
45401         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45402
45403 2008-09-16  Bruno Haible  <bruno@clisp.org>
45404         and Eric Blake  <ebb9@byu.net>
45405
45406         vasnprintf: support Irix 5.3
45407         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45408         that mishandle long double infinity.
45409         Reported by Tom G. Christensen.
45410
45411 2008-09-16  Bruno Haible  <bruno@clisp.org>
45412
45413         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45414         Solaris 9.
45415         * doc/glibc-functions/alphasort.texi: Likewise.
45416         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45417
45418 2008-09-16  Jim Meyering  <meyering@redhat.com>
45419
45420         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45421         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45422         a umask modification leak out of a subshell.  Otherwise, the
45423         opensolaris /bin/sh would be accepted and thus cause unwarranted
45424         failures in the coreutils test suite.
45425
45426 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45427
45428         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45429         to succeed.
45430
45431 2008-09-16  Jim Meyering  <meyering@redhat.com>
45432
45433         avoid spurious test failure when library is built without ACL support
45434         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45435         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45436         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45437         * tests/test-copy-acl.sh: Likewise.
45438
45439 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45440
45441         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45442         based on character occurrence counts.
45443
45444 2008-09-15  Eric Blake  <ebb9@byu.net>
45445
45446         tests: avoid some compiler warnings
45447         * tests/test-memchr.c (main): Pass NULL indirectly.
45448         * tests/test-closein.c (main): Avoid unused variable.
45449
45450 2008-09-15  Bruno Haible  <bruno@clisp.org>
45451
45452         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45453         are missing on OpenBSD 4.0 individually.
45454         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45455
45456 2008-09-15  Bruno Haible  <bruno@clisp.org>
45457
45458         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45459         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45460         * doc/posix-functions/perror.texi: Likewise.
45461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45462         is missing.
45463         Reported by Eric Blake.
45464
45465         * lib/errno.in.h: Use replacement values >= 2000.
45466         Reported by Eric Blake.
45467
45468 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45469
45470         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45471         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45472         limit.
45473         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45474         compareseq was aborted.
45475
45476 2008-09-14  Bruno Haible  <bruno@clisp.org>
45477
45478         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45479         yvec_edit_count.
45480         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45481         (fstrcmp_bounded): Simplify result computation accordingly.
45482
45483 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45484
45485         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45486         (fstrcmp): Define in terms of fstrcmp_bounded.
45487         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45488         lower_bound argument.
45489         Return quickly if the result is certainly < lower_bound.
45490         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45491
45492 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45493
45494         * lib/diffseq.h (EARLY_ABORT): New macro.
45495         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45496         evaluates to true.
45497
45498 2008-09-14  Bruno Haible  <bruno@clisp.org>
45499
45500         * modules/perror-tests: New file.
45501         * tests/test-perror.sh: New file.
45502         * tests/test-perror.c: New file.
45503
45504         New module 'perror'.
45505         * lib/stdio.in.h (perror): New declaration.
45506         * lib/perror.c: New file.
45507         * m4/perror.m4: New file.
45508         * modules/perror: New file.
45509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45510         * doc/posix-functions/perror.texi: Mention the perror module.
45511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45512         REPLACE_PERROR.
45513         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45514         REPLACE_PERROR.
45515
45516 2008-09-14  Bruno Haible  <bruno@clisp.org>
45517
45518         * modules/stdio (Makefile.am): Reorder to match the order in
45519         lib/stdio.in.h.
45520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45521
45522 2008-09-13  Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45525
45526 2008-09-13  Bruno Haible  <bruno@clisp.org>
45527
45528         Extend strerror to cover the added errno values.
45529         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45530         (rpl_strerror): Provide error messages for the added errno values and
45531         for the WSA* values.
45532         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45533         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45534         strerror.
45535         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45536         * modules/strerror (Depends-on): Add errno.
45537         * doc/posix-functions/strerror.texi: Document the change.
45538         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45539         and EOVERFLOW.
45540
45541 2008-09-13  Bruno Haible  <bruno@clisp.org>
45542
45543         * modules/EOVERFLOW: Remove file.
45544         * m4/eoverflow.m4: Remove file.
45545         * modules/EOVERFLOW-tests: Remove file.
45546         * tests/test-EOVERFLOW.c: Remove file.
45547         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45548         * modules/ftell (Depends-on): Likewise.
45549         * modules/getdelim (Depends-on): Likewise.
45550         * modules/getugroups (Depends-on): Likewise.
45551         * modules/poll (Depends-on): Likewise.
45552         * modules/snprintf (Depends-on): Likewise.
45553         * modules/sprintf-posix (Depends-on): Likewise.
45554         * modules/vasnprintf (Depends-on): Likewise.
45555         * modules/vasprintf (Depends-on): Likewise.
45556         * modules/vfprintf-posix (Depends-on): Likewise.
45557         * modules/vsnprintf (Depends-on): Likewise.
45558         * modules/vsprintf-posix (Depends-on): Likewise.
45559         * modules/xvasprintf (Depends-on): Likewise.
45560         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45561         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45562         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45563         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45564         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45565         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45566         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45567         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45568         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45569         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45570         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45571         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45572         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45573         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45574         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45575         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45576         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45577         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45578         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45579         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45580         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45581         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45582         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45583         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45584         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45585         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45586         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45587         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45588         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45589         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45590         * MODULES.html.sh: Remove EOVERFLOW.
45591         * NEWS: Mention the change.
45592
45593 2008-09-13  Bruno Haible  <bruno@clisp.org>
45594
45595         * modules/errno-tests: New file.
45596         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45597
45598         * lib/errno.in.h: New file.
45599         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45600         * modules/errno: New file.
45601         * doc/posix-headers/errno.texi: Update documentation.
45602         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45603
45604 2008-09-13  Bruno Haible  <bruno@clisp.org>
45605
45606         * tests/test-poll.c: Use #if for native Windows, rather than testing
45607         __MSVCRT__.
45608
45609 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45610             Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/glob.c: Don't include <pwd.h> on native Windows.
45613         (WINDOWS32): New macro.
45614         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45615
45616 2008-09-13  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45619         (ETIMEDOUT): Remove macro.
45620         (glthread_cond_timedwait_multithreaded): New declaration.
45621         (glthread_cond_timedwait): Use it.
45622         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45623         (glthread_cond_timedwait_multithreaded): New function.
45624
45625 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45626
45627         * modules/poll-tests: Do not check for io.h.
45628         * tests/test-poll.c: Check for __MSVCRT__ instead.
45629
45630 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45631
45632         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45633         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45634         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45635
45636 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45637
45638         * modules/poll-tests: New.
45639         * tests/test-poll.c: New.
45640
45641 2008-09-12  Eric Blake  <ebb9@byu.net>
45642
45643         frexp: test for NetBSD failure on -0.0
45644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45645         not all, bugs from NetBSD 3.0 have been fixed.
45646         * doc/posix-functions/frexp.texi (frexp): Document bug.
45647         Reported by Thomas Klausner.
45648
45649         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45650         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45651         literal -0.0.
45652         Reported by Jonathan C. Patschke <jp@centtech.com>.
45653
45654 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45655
45656         * lib/glthread/cond.h: Use dummy implementation also if
45657         USE_WIN32_THREADS.
45658
45659 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45660
45661         * modules/fnmatch-posix (License): Change to LGPLv2+.
45662         * modules/fnmatch-gnu (License): Likewise.
45663
45664 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45665
45666         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45667
45668 2008-09-11  Jim Meyering  <meyering@redhat.com>
45669
45670         * users.txt: Add gtk-vnc.
45671
45672 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45673
45674         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45675         rotate amounts.
45676
45677         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45678         required for 16-bit and 8-bit rotates.
45679         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45680         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45681         UINT8_MAX instead of hard-coded constants.
45682         Suggested by Paul Eggert.
45683
45684 2008-09-07  Bruno Haible  <bruno@clisp.org>
45685
45686         * tests/test-striconveh.c (main): Check behaviour when converting from
45687         UTF-7.
45688
45689         Make striconveh work better with stateful encodings.
45690         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45691         that iconv does not increment the inptr when returning -1/EINVAL.
45692
45693 2008-09-07  Bruno Haible  <bruno@clisp.org>
45694
45695         * build-aux/config.rpath: Update according to libtool-2.2.6.
45696         * build-aux/config.libpath: Likewise.
45697
45698 2008-09-06  Bruno Haible  <bruno@clisp.org>
45699
45700         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45701         * lib/freadptr.c (freadptr): Likewise.
45702         * lib/freadseek.c (freadptrinc): Likewise.
45703         Reported by Simon Josefsson.
45704
45705 2008-09-06  Bruno Haible  <bruno@clisp.org>
45706
45707         * modules/freadptr (License): Change to LGPLv2+.
45708         * modules/freadseek (License): Likewise.
45709         Suggested by Eric Blake.
45710
45711         * modules/memchr2 (License): Change to LGPLv2+.
45712         Approved by Eric Blake.
45713
45714 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45715             Bruno Haible  <bruno@clisp.org>
45716
45717         Make gnulib-tool work with native 'sed' on AIX.
45718         * gnulib-tool (sed_noop): New variable.
45719         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45720         func_add_or_update, func_create_testdir): Use it to initialize sed
45721         script variables.
45722         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45723
45724 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45725             Bruno Haible  <bruno@clisp.org>
45726
45727         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45728         also works after #include directives.
45729
45730 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45731
45732         getdate.y: reject an out-of-range timezone value
45733         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45734         the range [-24...+24].  When specified with only one or two digits,
45735         * tests/test-getdate.c: Tests for the fix.
45736         * doc/getdate.texi: Document this change.
45737
45738 2008-09-03  Bruno Haible  <bruno@clisp.org>
45739
45740         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45741
45742 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45743
45744         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45745         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45746         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45747         Blake <ebb9@byu.net>.
45748
45749         * tests/test-bitrotate.c: Add more test vectors.
45750
45751 2008-09-02  Eric Blake  <ebb9@byu.net>
45752
45753         vasnprintf-posix: handle large precision via %.*d
45754         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45755         when handling it ourselves.
45756         * tests/test-vasnprintf-posix.c (test_function): Add test.
45757         * tests/test-snprintf-posix.h (test_function): Likewise.
45758         * tests/test-sprintf-posix.h (test_function): Likewise.
45759         * tests/test-vasprintf-posix.c (test_function): Likewise.
45760         Reported by Alain Guibert.
45761
45762 2008-09-01  Eric Blake  <ebb9@byu.net>
45763
45764         c-stack: make configure-time check more robust
45765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45766         successful sigaction call.
45767         Reported by Tom G. Christensen.
45768
45769 2008-09-01  Bruno Haible  <bruno@clisp.org>
45770
45771         New module 'findprog-lgpl'.
45772         * modules/findprog-lgpl: New file.
45773         * lib/findprog-lgpl.c: New file.
45774         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45775         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45776         to decide whether to use strdup or xstrdup, concatenated_filename or
45777         xconcatenated_filename.
45778
45779 2008-09-01  Bruno Haible  <bruno@clisp.org>
45780
45781         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45782         'xconcat-filename' (GPL).
45783         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45784         (License): Change to LGPLv2+.
45785         * modules/xconcat-filename: New file.
45786         * lib/concat-filename.h (concatenated_filename): Change specification.
45787         (xconcatenated_filename): New declaration.
45788         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45789         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45790         memory situations.
45791         * lib/xconcat-filename.c: New file.
45792         * NEWS: Mention the change.
45793         * lib/findprog.c: Include concat-filename.h, not filename.h.
45794         (find_in_path): Use xconcatenated_filename instead of
45795         concatenated_filename.
45796         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45797         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45798         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45799         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45800         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45801         instead of concatenated_filename.
45802         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45803         (execute_java_class): Use xconcatenated_filename instead of
45804         concatenated_filename.
45805         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45806         * modules/javacomp (Depends-on): Likewise.
45807         * modules/javaexec (Depends-on): Likewise.
45808
45809 2008-09-01  Bruno Haible  <bruno@clisp.org>
45810
45811         Split module 'filename' into 'filename' and 'concat-filename'.
45812         * modules/filename: Keep only lib/filename.h.
45813         (License): Change to LGPLv2+.
45814         * modules/concat-filename: New file, extracted from modules/filename.
45815         * lib/filename.h (concatenated_filename): Remove declaration.
45816         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45817         * lib/concat-filename.c: Include concat-filename.h.
45818         * NEWS: Mention the change.
45819
45820 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45821
45822         * lib/bitrotate.h (rotl8, rotr8): Add.
45823
45824         * modules/bitrotate (configure.ac): Need
45825         AC_REQUIRE([AC_C_INLINE]).
45826         (Description): Mention stdint.h.  Reported by Bruno Haible
45827         <bruno@clisp.org>.
45828
45829         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45830         Paolo Bonzini <bonzini@gnu.org>.
45831
45832 2008-08-31  Bruno Haible  <bruno@clisp.org>
45833
45834         Assume Solaris specific bi-arch conventions on Solaris systems.
45835         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45836         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45838         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45839         like acl_libdirstem.
45840         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45841         acl_libdirstem.
45842         * NEWS: Mention the change.
45843         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45844
45845 2008-08-31  Jim Meyering  <meyering@redhat.com>
45846
45847         * lib/strftime.h: Add comments describing the two added arguments.
45848
45849         remove duplicate #include directives
45850         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45851         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45852
45853 2008-08-31  Bruno Haible  <bruno@clisp.org>
45854
45855         New module 'sigpipe-die'.
45856         * modules/sigpipe-die: New file.
45857         * lib/sigpipe-die.h: New file.
45858         * lib/sigpipe-die.c: New file.
45859         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45860
45861 2008-08-31  Bruno Haible  <bruno@clisp.org>
45862
45863         Don't override previously installed signal handlers.
45864         * lib/fatal-signal.c (saved_sigactions): New variable.
45865         (uninstall_handlers): Reset the signal to the saved handler, not
45866         to SIG_DFL (except when ignored).
45867         (install_handlers): Save the previous handlers.
45868
45869 2008-08-30  Bruno Haible  <bruno@clisp.org>
45870
45871         * gnulib-tool (func_reset_sigpipe): New function.
45872         (func_get_automake_snippet, func_modules_transitive_closure,
45873         func_import): Invoke it before a join command that reads from stdin,
45874         to avoid "echo: write error: Broken pipe" error messages on stderr.
45875         Reported by Sam Steingold <sds@gnu.org>.
45876
45877 2008-08-30  Bruno Haible  <bruno@clisp.org>
45878
45879         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45880         Code copied from m4/open.m4.
45881         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45882         access and the filename ends in a slash. Code copied from lib/open.c.
45883         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45884         * tests/test-fopen.c (main): Check against bug with trailing slash.
45885
45886 2008-08-29  Bruno Haible  <bruno@clisp.org>
45887
45888         Avoid some "gcc -pedantic" warnings.
45889         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45890         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45891         * lib/dirent.in.h: Likewise.
45892         * lib/fcntl.in.h: Likewise.
45893         * lib/float.in.h: Likewise.
45894         * lib/iconv.in.h: Likewise.
45895         * lib/inttypes.in.h: Likewise.
45896         * lib/locale.in.h: Likewise.
45897         * lib/math.in.h: Likewise.
45898         * lib/netinet_in.in.h: Likewise.
45899         * lib/search.in.h: Likewise.
45900         * lib/signal.in.h: Likewise.
45901         * lib/stdarg.in.h: Likewise.
45902         * lib/stdint.in.h: Likewise.
45903         * lib/stdio.in.h: Likewise.
45904         * lib/stdlib.in.h: Likewise.
45905         * lib/string.in.h: Likewise.
45906         * lib/strings.in.h: Likewise.
45907         * lib/sys_select.in.h: Likewise.
45908         * lib/sys_socket.in.h: Likewise.
45909         * lib/sys_stat.in.h: Likewise.
45910         * lib/sys_time.in.h: Likewise.
45911         * lib/sysexits.in.h: Likewise.
45912         * lib/time.in.h: Likewise.
45913         * lib/unistd.in.h: Likewise.
45914         * lib/wchar.in.h: Likewise.
45915         * lib/wctype.in.h: Likewise.
45916         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45917         * modules/fchdir (Makefile.am): Likewise.
45918         * modules/fcntl (Makefile.am): Likewise.
45919         * modules/float (Makefile.am): Likewise.
45920         * modules/iconv_open (Makefile.am): Likewise.
45921         * modules/inttypes (Makefile.am): Likewise.
45922         * modules/locale (Makefile.am): Likewise.
45923         * modules/math (Makefile.am): Likewise.
45924         * modules/netinet_in (Makefile.am): Likewise.
45925         * modules/search (Makefile.am): Likewise.
45926         * modules/signal (Makefile.am): Likewise.
45927         * modules/stdarg (Makefile.am): Likewise.
45928         * modules/stdint (Makefile.am): Likewise.
45929         * modules/stdio (Makefile.am): Likewise.
45930         * modules/stdlib (Makefile.am): Likewise.
45931         * modules/string (Makefile.am): Likewise.
45932         * modules/strings (Makefile.am): Likewise.
45933         * modules/sys_select (Makefile.am): Likewise.
45934         * modules/sys_socket (Makefile.am): Likewise.
45935         * modules/sys_stat (Makefile.am): Likewise.
45936         * modules/sys_time (Makefile.am): Likewise.
45937         * modules/sysexits (Makefile.am): Likewise.
45938         * modules/time (Makefile.am): Likewise.
45939         * modules/unistd (Makefile.am): Likewise.
45940         * modules/wchar (Makefile.am): Likewise.
45941         * modules/wctype (Makefile.am): Likewise.
45942         Reported by Reuben Thomas <rrt@sc3d.org>.
45943
45944 2008-08-29  Bruno Haible  <bruno@clisp.org>
45945
45946         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45947         any more.
45948
45949 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45950
45951         * MODULES.html.sh (Misc): Add bitrotate.
45952
45953         * modules/bitrotate: New file.
45954
45955         * lib/bitrotate.h: New file.
45956
45957         * modules/bitrotate-tests: New file.
45958
45959         * tests/test-bitrotate.c: New file.
45960
45961         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45962         on the bitrotate module.
45963
45964         * lib/arctwo.c: Use new bitrotate module.
45965
45966 2008-08-29  Jim Meyering  <meyering@redhat.com>
45967
45968         bootstrap: merge changes from coreutils
45969         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45970         of copied files.  Remove a kludge, now that this is fixed.
45971         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45972         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45973         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45974
45975 2008-08-29  Bruno Haible  <bruno@clisp.org>
45976
45977         * MODULES.html.sh: Remove --cvs-urls option.
45978
45979 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45980
45981         maint.mk: adjust to file name change
45982         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45983
45984 2008-08-28  Jim Meyering  <meyering@redhat.com>
45985
45986         * modules/getndelim2 (License): Relicense to LGPLv2+.
45987         Approved by Richard Stallman for the version of 1995, and by
45988         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45989
45990 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45991
45992         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45993         dummy if one is not available.  Do not touch them if
45994         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45995         (getc_maybe_unlocked): New.
45996         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45997
45998 2008-08-26  Eric Blake  <ebb9@byu.net>
45999
46000         doc/INSTALL: resync from autoconf
46001         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46002         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46003         moving...
46004         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46005         * INSTALL: Regenerate.
46006         * INSTALL.ISO: New file.
46007         * INSTALL.UTF-8: Likewise.
46008
46009 2008-08-26  Jim Meyering  <meyering@redhat.com>
46010
46011         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46012         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46013         these definitions conditional, so that they may be overridden, too.
46014
46015 2008-08-26  Bruno Haible  <bruno@clisp.org>
46016
46017         Generate INSTALL file variants with prettier quotes.
46018         * doc/Makefile (INSTALL_PRELUDE): New macro.
46019         (INSTALL): Use it.
46020         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46021
46022 2008-08-26  Bruno Haible  <bruno@clisp.org>
46023
46024         Run makeinfo in an English locale.
46025         * doc/Makefile (MAKEINFO): New variable.
46026
46027 2008-08-26  Bruno Haible  <bruno@clisp.org>
46028
46029         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46030         Suggested by Eric Blake.
46031
46032 2008-08-25  Bruno Haible  <bruno@clisp.org>
46033
46034         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46035
46036 2008-08-25  Eric Blake  <ebb9@byu.net>
46037
46038         c-stack: test that stack overflow can be caught
46039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46040         that platform allows handling stack overflow; at least OS/2 EMX
46041         has sigaltstack, but crashes before transferring control to
46042         handler on stack overflow.
46043         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46044         check for HAVE_STACK_OVERFLOW_HANDLING.
46045         Reported by Elbert Pol.
46046
46047 2008-08-25  Bruno Haible  <bruno@clisp.org>
46048
46049         * doc/posix-functions/strftime.texi: Fix description of strftime
46050         module.
46051
46052 2008-08-24  Bruno Haible  <bruno@clisp.org>
46053
46054         * tests/uniwidth/test-uc_width2.c: New file.
46055         * tests/uniwidth/test-uc_width2.sh: New file.
46056         * modules/uniwidth/width-tests (Files): Add the new files.
46057         (TESTS): Add uniwidth/test-uc_width2.sh.
46058         (TESTS_ENVIRONMENT): New variable.
46059         (check_PROGRAMS): Add test-uc_width2.
46060         (test_uc_width2_SOURCES): New variable.
46061
46062         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46063         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46064         not 0x00AB.
46065         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46066
46067 2008-08-22  Eric Blake  <ebb9@byu.net>
46068
46069         test-lock, test-tls: mention why a test is skipped
46070         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46071         skipped.
46072         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46073
46074         count-one-bits: relax license
46075         * modules/count-one-bits (License): Relicense to LGPLv2+.
46076         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46077
46078 2008-08-22  Andreas Schwab  <schwab@suse.de>
46079
46080         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46081         Remove spurious space in assignment.
46082
46083 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46084
46085         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46086         Paul Eggert <eggert@CS.UCLA.EDU>.
46087
46088 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46089
46090         * modules/gettext: Add m4/threadlib.m4.
46091
46092 2008-08-19  Eric Blake  <ebb9@byu.net>
46093
46094         test-c-stack: fix compilation failure on FreeBSD 5.0
46095         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46096         headers before <sys/resource.h>.
46097         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46098         the bug.
46099         Reported by Nelson H. F. Beebe.
46100
46101         strverscmp: migrate from "strverscmp.h" to <string.h>
46102         * modules/string (Makefile.am): Add new hooks.
46103         * modules/strverscmp (Files): Remove strverscmp.h.
46104         (Depends-on): Add string.
46105         (configure.ac): Add indicator.
46106         (Include): Mention new header.
46107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46108         defaults.
46109         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46110         results.
46111         * lib/strverscmp.h: Delete.
46112         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46113         * tests/test-strverscmp.c (includes): Adjust client.
46114         * lib/check-version.c (includes): Likewise.
46115         * NEWS: Document the change.
46116
46117         strverscmp: add unit test
46118         * modules/strverscmp-tests: New file.
46119         * tests/test-strverscmp.c: Likewise.
46120
46121 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46122
46123         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46124         regarding Windows crypto stuff, from Mono.
46125
46126 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46127
46128         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46129         if present, for intel RND.  Return error on failures.
46130
46131 2008-08-18  Ben Pfaff  <blp@gnu.org>
46132
46133         gitlog-to-changelog: give better diagnostic for failed pipe-open
46134         * build-aux/gitlog-to-changelog: Improve error message: suggest
46135         that the version of Git may be too old.
46136
46137 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46138
46139         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46140         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46141
46142 2008-08-18  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46145         pthread_in_use().
46146
46147 2008-08-18  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/glthread/threadlib.c: Include <pthread.h>.
46150
46151 2008-08-18  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46154         glthread_recursive_lock_* macros.
46155         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46156         Fix syntax error.
46157
46158 2008-08-18  Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/glthread/thread.c: Avoid forcing a context switch right after
46161         thread creation.
46162
46163 2008-08-17  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46166         * lib/glthread/thread.h: Provide Win32 specific implementation.
46167         * modules/thread (Files): Add lib/glthread/thread.c.
46168         (Depends-on): Add lock.
46169         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46170
46171 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46172
46173         New module 'yield'.
46174         * modules/yield: New file.
46175         * lib/glthread/yield.h: New file.
46176         * m4/yield.m4: New file.
46177         * MODULES.html.sh (Multithreading): Add yield.
46178
46179 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46180
46181         New module 'thread'.
46182         * modules/thread: New file.
46183         * lib/glthread/thread.h: New file.
46184         * m4/thread.m4: New file.
46185         * MODULES.html.sh (Multithreading): Add thread.
46186
46187 2008-08-17  Bruno Haible  <bruno@clisp.org>
46188
46189         * lib/glthread/lock.h: Include <stdlib.h> always.
46190         * lib/glthread/tls.h: Likewise.
46191         * lib/glthread/cond.h: Likewise.
46192
46193 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46194
46195         New module 'cond'.
46196         * modules/cond: New file.
46197         * lib/glthread/cond.h: New file.
46198         * lib/glthread/cond.c: New file.
46199         * m4/cond.m4: New file.
46200         * MODULES.html.sh (Multithreading): Add cond.
46201
46202 2008-08-16  Eric Blake  <ebb9@byu.net>
46203
46204         c-stack: fix regression on Irix 5.3 from 2008-06-21
46205         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46206         sa_sigaction...
46207         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46208         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46210         * modules/signal (Makefile.am): Use the value.
46211         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46212         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46213         * doc/posix-headers/signal.texi (signal.h): Document this
46214         portability issue.
46215         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46216         Reported by Tom G. Christensen.
46217
46218 2008-08-17  Bruno Haible  <bruno@clisp.org>
46219
46220         New module 'threadlib'.
46221         * modules/threadlib: New file.
46222         * lib/glthread/threadlib.c: New file, extracted from
46223         lib/glthread/lock.c.
46224         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46225         functions.
46226         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46227         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46228         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46229         macros.
46230         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46231         (gl_DISABLE_THREADS): Remove macro.
46232         * modules/lock (Files): Remove build-aux/config.rpath.
46233         (Depends-on): Remove havelib. Add threadlib.
46234         (configure.ac-early): Remove section.
46235         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46236         * modules/tls (Depends-on): Remove lock. Add threadlib.
46237         (Link): New section, copied from threadlib.
46238         * MODULES.html.sh (Multithreading): Add threadlib.
46239
46240 2008-08-14  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46243         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46244         glthread_rwlock_unlock, glthread_rwlock_destroy,
46245         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46246         glthread_recursive_lock_destroy): Define as macros always.
46247         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46248         glthread_lock_lock.
46249         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46250         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46251         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46252         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46253         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46254         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46255         (glthread_recursive_lock_lock_func): Renamed from
46256         glthread_recursive_lock_lock.
46257         (glthread_recursive_lock_unlock_func): Renamed from
46258         glthread_recursive_lock_unlock.
46259         (glthread_recursive_lock_destroy_func): Renamed from
46260         glthread_recursive_lock_destroy.
46261
46262 2008-08-14  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/glthread/lock.h: Renamed from lib/lock.h.
46265         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46266         * lib/glthread/tls.h: Renamed from lib/tls.h.
46267         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46268         * lib/fstrcmp.c: Update includes.
46269         * lib/strsignal.c: Update includes.
46270         * modules/lock (Files, Makefile.am): Update.
46271         (Include): Change to "glthread/lock.h".
46272         * modules/tls (Files, Makefile.am): Update.
46273         (Include): Change to "glthread/tls.h".
46274         * tests/test-lock.c: Update includes.
46275         * tests/test-tls.c: Update includes.
46276         * NEWS: Mention the renamed header files.
46277
46278 2008-08-11  Jim Meyering  <meyering@redhat.com>
46279
46280         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46281
46282 2008-08-11  Eric Blake  <ebb9@byu.net>
46283
46284         test-c-stack: avoid C99-ism
46285         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46286         before statement.
46287         Reported by Alain Guibert.
46288
46289 2008-08-10  Jim Meyering  <meyering@redhat.com>
46290
46291         ensure that return value of uinttostr et al are not ignored
46292         * lib/inttostr.h (__GNUC_PREREQ): Define.
46293         (__attribute_warn_unused_result__): Define.
46294         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46295
46296 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46297
46298         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46299         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46300
46301 2008-08-07  Jim Meyering  <meyering@redhat.com>
46302
46303         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46304
46305         * modules/mkstemp (License): Relicense under LGPLv2+.
46306         * modules/tempname (License): Likewise.
46307
46308 2008-08-06  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/poll.c (poll): Further micro-optimization.
46311
46312 2008-08-06  Jim Meyering  <meyering@redhat.com>
46313
46314         inet_pton.c: use locale-independent tolower
46315         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46316         (inet_pton6): Use c_tolower rather than tolower.
46317         * modules/inet_pton (Depends-on): Add c-ctype.
46318
46319 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46320
46321         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46322         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46323
46324 2008-08-06  Jim Meyering  <meyering@redhat.com>
46325
46326         * modules/inet_pton (License): Relicense under LGPLv2+.
46327
46328 2008-08-03  Bruno Haible  <bruno@clisp.org>
46329
46330         Additional non-aborting API for lock and tls.
46331         * lib/lock.h: Include <errno.h>.
46332         (glthread_lock_init): New macro/function.
46333         (gl_lock_init): Define as wrapper around glthread_lock_init.
46334         (glthread_lock_lock): New macro/function.
46335         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46336         (glthread_lock_unlock): New macro/function.
46337         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46338         (glthread_lock_destroy): New macro/function.
46339         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46340         (glthread_rwlock_init): New macro/function.
46341         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46342         (glthread_rwlock_rdlock): New macro/function.
46343         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46344         (glthread_rwlock_wrlock): New macro/function.
46345         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46346         (glthread_rwlock_unlock): New macro/function.
46347         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46348         (glthread_rwlock_destroy): New macro/function.
46349         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46350         (glthread_recursive_lock_init): New macro/function.
46351         (gl_recursive_lock_init): Define as wrapper around
46352         glthread_recursive_lock_init.
46353         (glthread_recursive_lock_lock): New macro/function.
46354         (gl_recursive_lock_lock): Define as wrapper around
46355         glthread_recursive_lock_lock.
46356         (glthread_recursive_lock_unlock): New macro/function.
46357         (gl_recursive_lock_unlock): Define as wrapper around
46358         glthread_recursive_lock_unlock.
46359         (glthread_recursive_lock_destroy): New macro/function.
46360         (gl_recursive_lock_destroy): Define as wrapper around
46361         glthread_recursive_lock_destroy.
46362         (glthread_once): New macro/function.
46363         (gl_once): Define as wrapper around glthread_once.
46364         Update function declarations.
46365         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46366         glthread_rwlock_init. Return error code.
46367         (glthread_rwlock_rdlock_multithreaded): Renamed from
46368         glthread_rwlock_rdlock. Return error code.
46369         (glthread_rwlock_wrlock_multithreaded): Renamed from
46370         glthread_rwlock_wrlock. Return error code.
46371         (glthread_rwlock_unlock_multithreaded): Renamed from
46372         glthread_rwlock_unlock. Return error code.
46373         (glthread_rwlock_destroy_multithreaded): Renamed from
46374         glthread_rwlock_destroy. Return error code.
46375         (glthread_recursive_lock_init_multithreaded): Renamed from
46376         glthread_recursive_lock_init. Return error code.
46377         (glthread_recursive_lock_lock_multithreaded): Renamed from
46378         glthread_recursive_lock_lock. Return error code.
46379         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46380         glthread_recursive_lock_unlock. Return error code.
46381         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46382         glthread_recursive_lock_destroy. Return error code.
46383         (glthread_once_call): Make static.
46384         (glthread_once_multithreaded): Renamed from glthread_once.
46385         * lib/tls.h: Include <errno.h>.
46386         (glthread_tls_key_init): New macro/function.
46387         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46388         (glthread_tls_set): New macro/function.
46389         (gl_tls_set): Define as wrapper around glthread_tls_set.
46390         (glthread_tls_key_destroy): New macro/function.
46391         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46392         Update function declarations.
46393         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46394         glthread_tls_get.
46395         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46396
46397 2008-08-04  Eric Blake  <ebb9@byu.net>
46398
46399         gnumakefile: use space, not TAB, outside of targets
46400         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46401
46402 2008-08-02  Jim Meyering  <meyering@redhat.com>
46403
46404         getdate.y: avoid locale-dependent date parsing failure
46405         In Turkish locales, getdate would fail to recognize keywords
46406         containing a lowercase "i".  The solution is not to rely on
46407         locale-sensitive case-conversion.
46408         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46409         (lookup_word): Use c_toupper in place of toupper.
46410         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46411         Reported by Vefa Bicakci <bicave@superonline.com> in
46412         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46413         * modules/getdate (Depends-on): Add c-ctype.
46414
46415 2008-08-02  Bruno Haible  <bruno@clisp.org>
46416
46417         * gnulib-tool (func_import): When updating or creating a .gitignore
46418         file, prepend each added line with a slash, and ignore leading slashes
46419         from the existing lines.
46420         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46421
46422 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46423
46424         Portability fix for GNU make 3.79.1.
46425         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46426         versions do not understand.
46427
46428 2008-08-01  Bruno Haible  <bruno@clisp.org>
46429
46430         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46431         * tests/test-isnanf.h (zero): New variable.
46432         (main): Avoid literal -0.0f.
46433         * tests/test-isnand.h (zero): New variable.
46434         (main): Avoid literal -0.0.
46435         * tests/test-isnanl.h (zero): New variable.
46436         (main): Avoid literal -0.0L.
46437         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46438         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46439         -0.0, -0.0L.
46440         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46441         (test_signbitd): Avoid literal -0.0.
46442         (test_signbitl): Avoid literal -0.0L.
46443         * tests/test-ceilf1.c (zero): New variable.
46444         (main): Avoid literal -0.0f.
46445         * tests/test-ceill.c (zero): New variable.
46446         (main): Avoid literal -0.0L.
46447         * tests/test-floorf1.c (zero): New variable.
46448         (main): Avoid literal -0.0f.
46449         * tests/test-floorl.c (zero): New variable.
46450         (main): Avoid literal -0.0L.
46451         * tests/test-roundf1.c (zero): New variable.
46452         (main): Avoid literal -0.0f.
46453         * tests/test-round1.c (zero): New variable.
46454         (main): Avoid literal -0.0.
46455         * tests/test-roundl.c (zero): New variable.
46456         (main): Avoid literal -0.0L.
46457         * tests/test-truncf1.c (zero): New variable.
46458         (main): Avoid literal -0.0f.
46459         * tests/test-trunc1.c (zero): New variable.
46460         (main): Avoid literal -0.0.
46461         * tests/test-truncl.c (zero): New variable.
46462         (main): Avoid literal -0.0L.
46463         * tests/test-frexp.c (zero): New variable.
46464         (main): Avoid literal -0.0.
46465         * tests/test-frexpl.c (zero): New variable.
46466         (main): Avoid literal -0.0L.
46467         * tests/test-ldexpl.c (zero): New variable.
46468         (main): Avoid literal -0.0L.
46469         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46470         (zerod, zerol): New variables.
46471         (test_function): Avoid literals -0.0, -0.0L.
46472         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46473         (zerod, zerol): New variables.
46474         (test_function): Avoid literals -0.0, -0.0L.
46475         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46476         (zerod, zerol): New variables.
46477         (test_function): Avoid literals -0.0, -0.0L.
46478         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46479         (zerod, zerol): New variables.
46480         (test_function): Avoid literals -0.0, -0.0L.
46481         * tests/test-strtod.c (zero): New variable.
46482         (main): Avoid literal -0.0.
46483         Reported by Jonathan C. Patschke <jp@centtech.com>.
46484
46485 2008-07-31  Jim Meyering  <meyering@redhat.com>
46486
46487         sha256.h: correct definition of SHA224_DIGEST_SIZE
46488         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46489         Reported by Paulie Pena IV <paulie4@gmail.com>.
46490         Define as 224 / 8, rather than as a literal.
46491         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46492         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46493         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46494
46495 2008-07-31  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46498         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46499         Reported by Jonathan Patschke <jp@centtech.com>.
46500
46501 2008-07-31  Bruno Haible  <bruno@clisp.org>
46502
46503         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46504         Reported by Paolo Bonzini <bonzini@gnu.org>.
46505
46506 2008-07-30  Eric Blake  <ebb9@byu.net>
46507
46508         test-strtod: allow compilation without -lm
46509         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46510         Reported by Dennis Clarke <blastwave@gmail.com>.
46511
46512 2008-07-28  Jim Meyering  <meyering@redhat.com>
46513
46514         bootstrap: work also when there are no .po files in po/
46515         * build-aux/bootstrap (update_po_files): Complete the change
46516         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46517
46518 2008-07-27  Jim Meyering  <meyering@redhat.com>
46519
46520         * users.txt: Add zile.
46521
46522 2008-07-26  Ben Pfaff  <blp@gnu.org>
46523
46524         Add missing dependencies on new m4/exponent[fdl].m4 files.
46525         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46526         * modules/isnand-nolibm: Add m4/exponentd.m4.
46527         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46528         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46529         m4/isnan[fdl].m4, because the macros actually used moved.
46530         Reported by Jim Meyering.
46531
46532 2008-07-14  Ben Pfaff  <blp@gnu.org>
46533
46534         Add isinf module.
46535         * lib/isinf.c: New file.
46536         * lib/math.in.h: Define isinf macro if we have decided to replace
46537         it.
46538         * m4/isinf.m4: New file.
46539         * m4/math_h.m4: Initialize and substitute variables for isinf
46540         module.
46541         * modules/isinf: New file.
46542         * modules/isinf-tests: New file.
46543         * modules/math: Add substitutions for new module.
46544         * tests/test-isinf.c: New file.
46545         * doc/posix-functions/isinf.texi: Mention new module.
46546         * MODULES.html.sh: Mention new module.
46547
46548 2008-07-14  Ben Pfaff  <blp@gnu.org>
46549
46550         Factor out some macros for use by additional modules.
46551         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46552         exponentf.m4.
46553         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46554         exponentd.m4.
46555         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46556         file exponentl.m4.
46557         * m4/exponentf.m4: New file.
46558         * m4/exponentd.m4: New file.
46559         * m4/exponentl.m4: New file.
46560         * modules/isnanf: Use new file m4/exponentf.m4.
46561         * modules/isnand: Use new file m4/exponentd.m4.
46562         * modules/isnanl: Use new file m4/exponentl.m4.
46563
46564 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46565
46566         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46567         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46568         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46569         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46570
46571         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46572         readlink on platforms without PATH_MAX.
46573
46574 2008-07-21  Eric Blake  <ebb9@byu.net>
46575
46576         Warn, not fail, on stale version.
46577         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46578
46579         Don't allow installation with stale devel version number.
46580         * top/GNUmakefile (_is-install-target): New macro.
46581         (_curr-ver): Forbid installation with stale version number.
46582
46583 2008-07-20  Bruno Haible  <bruno@clisp.org>
46584
46585         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46586         TESTS_ENVIRONMENT.
46587         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46588
46589 2008-07-20  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/c-stack.h (c_stack_action): Add documentation.
46592         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46593
46594 2008-07-20  Bruno Haible  <bruno@clisp.org>
46595
46596         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46597         * modules/readlink (License): Likewise.
46598
46599 2008-07-17  Eric Blake  <ebb9@byu.net>
46600
46601         * modules/c-stack (Link): Fix typo.
46602
46603         Make c-stack use libsigsegv, when available.
46604         * modules/c-stack (Depends-on): Add libsigsegv.
46605         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46606         needed.
46607         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46608         (segv_handler, overflow_handler, c_stack_action)
46609         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46610         implementation when libsigsegv is available, but only when using
46611         the library is necessary.
46612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46613         comment, explaining why XSI check fails on Linux.
46614         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46615         * tests/test-c-stack2.sh: Tweak skip message.
46616         * NEWS: Document new link-time requirements.
46617
46618 2008-07-16  Eric Blake  <ebb9@byu.net>
46619
46620         c-stack: Expose false positives when not using libsigsegv.
46621         * modules/c-stack-tests (Files): Expand test.
46622         * tests/test-c-stack.c (main): Add means to conditionally trigger
46623         non-overflow SIGSEGV.
46624         * tests/test-c-stack2.sh: New file.
46625
46626 2008-07-14  Bruno Haible  <bruno@clisp.org>
46627
46628         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46629         Reported by Eric Blake.
46630
46631 2008-07-14  Sam Steingold  <sds@gnu.org>
46632             Bruno Haible  <bruno@clisp.org>
46633
46634         New module libsigsegv.
46635         * modules/libsigsegv: New file.
46636         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46637         modifications.
46638         * MODULES.html.sh (Signal handling): New section.
46639
46640 2008-07-14  Bruno Haible  <bruno@clisp.org>
46641
46642         * modules/unictype/ctype-* (Description): Add the word "function".
46643         Improves the resulting doc in MODULES.html.
46644
46645 2008-07-12  Ben Pfaff  <blp@gnu.org>
46646
46647         Add longlong module.
46648         * modules/longlong: New file.
46649
46650 2008-07-12  Bruno Haible  <bruno@clisp.org>
46651
46652         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46653         to empty.
46654
46655 2008-07-10  Ben Pfaff  <blp@gnu.org>
46656
46657         Add isnan module.
46658         * doc/posix-functions/isnan.texi: Mention new module.
46659         * lib/math.in.h: Define isnan macro if we have decided to replace
46660         it.
46661         * m4/isnan.m4: New file.
46662         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46663         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46664         also.
46665         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46666         redundancy.
46667         * m4/math_h.m4: Initialize and substitute variables for isnan
46668         module.
46669         * modules/isnan: New file.
46670         * modules/isnan-tests: New file.
46671         * modules/math: Add substitutions for new module.
46672         * tests/test-isnan.c: New file.
46673         * MODULES.html.sh: Mention new module.
46674
46675 2008-07-10  Ben Pfaff  <blp@gnu.org>
46676
46677         Add isnanf module.
46678         * lib/isnanf.m4: New file.
46679         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46680         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46681         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46682         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46683         * modules/isnanf: New file.
46684         * modules/isnanf-tests: New file.
46685         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46686         files.
46687         * tests/test-isnanf-nolibm.c: factored most of its contents into
46688         new file tests/test-isnanf.h.
46689         * tests/test-isnanf.h: New file.
46690         * tests/test-isnanf.c: New file.
46691         * MODULES.html.sh: Mention new module.
46692         * doc/glibc-functions/isnanf.texi: Mention new module.
46693
46694 2008-07-10  Ben Pfaff  <blp@gnu.org>
46695
46696         Add isnand module.
46697         * lib/isnand.h: New file.
46698         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46699         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46700         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46701         functionality also.
46702         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46703         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46704         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46705         * modules/isnand: New file.
46706         * modules/isnand-tests: New file.
46707         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46708         files.
46709         * tests/test-isnand-nolibm.c: factored most of its contents into
46710         new file tests/test-isnand.h.
46711         * tests/test-isnand.h: New file.
46712         * tests/test-isnand.c: New file.
46713         * MODULES.html.sh: Mention new module.
46714
46715 2008-07-10  Ben Pfaff  <blp@gnu.org>
46716
46717         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46718         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46719         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46720         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46721         * modules/isnanf-nolibm: Update references to renamed files.
46722         * modules/isnand-nolibm: Likewise.
46723         * modules/isnanf-nolibm-tests: Likewise.
46724         * modules/isnand-nolibm-tests: Likewise.
46725         * lib/frexp.c: Likewise.
46726         * lib/isfinite.c: Likewise.
46727         * lib/signbitd.c: Likewise.
46728         * lib/signbitf.c: Likewise.
46729         * lib/vasnprintf.c: Likewise.
46730         * tests/test-ceilf1.c: Likewise.
46731         * tests/test-ceilf2.c: Likewise.
46732         * tests/test-floorf1.c: Likewise.
46733         * tests/test-floorf2.c: Likewise.
46734         * tests/test-frexp.c: Likewise.
46735         * tests/test-round1.c: Likewise.
46736         * tests/test-round2.c: Likewise.
46737         * tests/test-roundf1.c: Likewise.
46738         * tests/test-strtod.c: Likewise.
46739         * tests/test-trunc1.c: Likewise.
46740         * tests/test-trunc2.c: Likewise.
46741         * tests/test-truncf1.c: Likewise.
46742         * tests/test-truncf2.c: Likewise.
46743         * NEWS: Mention the renamed header files.
46744
46745 2008-07-11  Jim Meyering  <meyering@redhat.com>
46746
46747         vc-list-files: make the last-resort awk code more portable
46748         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46749         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46750         does not support it.
46751
46752 2008-07-10  Eric Blake  <ebb9@byu.net>
46753
46754         Work with tar's bootstrap.
46755         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46756         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46757         an m4 comment.
46758
46759 2008-07-09  Jim Meyering  <meyering@redhat.com>
46760
46761         posix-shell.m4: fix typo that made this test malfunction
46762         * m4/posix-shell.m4: Remove capitalization in variable name.
46763
46764 2008-07-08  Bruno Haible  <bruno@clisp.org>
46765
46766         * m4/onceonly.m4: Update comments.
46767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46768
46769 2008-07-04  Jim Meyering  <meyering@redhat.com>
46770
46771         * users.txt: Add vc-dwim.
46772         (bison, coreutils): Use the gitweb URL.
46773
46774 2008-07-03  Jim Meyering  <meyering@redhat.com>
46775
46776         * users.txt: Add libffcall.  From Sam Steingold.
46777
46778 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46779
46780         getdate.y: do not ignore TZ with relative day, month or year offset
46781         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46782         relative-date-handling, since otherwise, the latter would clobber the
46783         sole output (an updated Start value) of the tz-handling block.
46784         * tests/test-getdate.c: Tests for the fix
46785
46786 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46787
46788         Recognize 'foo_LIBRARIES += libgnu.a'.
46789         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46790         makefile snippet has already specified an installation location,
46791         also using '+='.
46792
46793 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46794
46795         getdate.y: factor out common actions
46796         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46797         Use them in place of open-coded actions.
46798
46799 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46800
46801         Add self-test for getdate module.
46802         * modules/getdate-tests: New file.
46803         * tests/test-getdate.c: New file.
46804
46805 2008-06-29  Bruno Haible  <bruno@clisp.org>
46806
46807         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46808         .gitignore.
46809         Reported by Sylvain Beucler <beuc@beuc.net>.
46810
46811 2008-06-29  Bruno Haible  <bruno@clisp.org>
46812
46813         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46814         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46815
46816 2008-06-29  Bruno Haible  <bruno@clisp.org>
46817
46818         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46819         EXTRA_DIST.
46820         Reported by Sylvain Beucler <beuc@beuc.net>.
46821
46822 2008-06-26  Jim Meyering  <meyering@redhat.com>
46823
46824         make several modules depend on the "open" module
46825         This provides slightly increased consistency when opening-for-write
46826         the name of a non-directory spelled with a trailing slash.
46827         * modules/chdir-safer: Likewise.
46828         * modules/chown: Likewise.
46829         * modules/clean-temp: Likewise.
46830         * modules/copy-file: Likewise.
46831         * modules/fchdir: Likewise.
46832         * modules/fcntl-safer: Likewise.
46833         * modules/pipe: Likewise.
46834         * modules/utime: Likewise.
46835         Prompted by Eric Blake and Bruno Haible.
46836
46837 2008-06-24  Andreas Schwab  <schwab@suse.de>
46838
46839         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46840         literals can be used as initializers for global variables.
46841
46842 2008-06-23  Eric Blake  <ebb9@byu.net>
46843
46844         Make gnulib-cache.m4 easier to diff.
46845         * gnulib-tool (func_import): Allow newlines when reading cached
46846         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46847
46848 2008-06-23  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46851         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46852         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46853         m4/signalblocking.m4.
46854         (gl_PREREQ_SIGACTION): Don't invoke it.
46855         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46856         gl_PREREQ_SIG_HANDLER_H.
46857         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46858         Don't check for sigaction here.
46859
46860 2008-06-23  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46863         (install_handlers): Don't set the SA_RESETHAND flag.
46864
46865 2008-06-23  Bruno Haible  <bruno@clisp.org>
46866
46867         * m4/sigaction.m4: Comment fixes.
46868         * lib/signal.in.h: Likewise.
46869
46870 2008-06-23  Eric Blake  <ebb9@byu.net>
46871
46872         Fix typo.
46873         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46874
46875         Avoid SA_ namespace.
46876         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46877         Reported by Ralf Wildenhues.
46878
46879         Avoid test failure due to SA_RESTORER.
46880         * tests/test-sigaction.c (SA_MASK): New macro.
46881         (main): Avoid failing due to extension flags being set.
46882         Reported by Jim Meyering.
46883
46884         Revert use of sig-handler.h in sigprocmask.c.
46885         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46886         it requires the existence of struct sigaction.
46887         * lib/sigprocmask.c (handler_t): Restore typedef.
46888         (rpl_signal, old_handlers): Use local type.
46889
46890 2008-06-22  Bruno Haible  <bruno@clisp.org>
46891
46892         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46893         conditionally.
46894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46895
46896 2008-06-22  Bruno Haible  <bruno@clisp.org>
46897
46898         * doc/posix-functions/siginterrupt.texi: Move note.
46899
46900         * lib/signal.in.h (SA_RESTART): New macro.
46901         * lib/sigaction.c: Update comment.
46902
46903         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46904
46905         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46906         (gl_PREREQ_SIGPROCMASK): Invoke it.
46907         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46908
46909         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46910
46911         * lib/sigprocmask.c: Update a comment.
46912
46913 2008-06-21  Eric Blake  <ebb9@byu.net>
46914
46915         Use sigaction module rather than signal().
46916         * modules/c-stack (Depends-on): Add sigaction.
46917         * modules/fatal-signal (Depends-on): Likewise.
46918         * modules/nanosleep (Depends-on): Likewise.
46919         * modules/sigprocmask (Files): Add sig-handler.h.
46920         * modules/sigaction (Files): Likewise.
46921         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46922         Eggert.
46923         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46924         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46925         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46926         (init_fatal_signals): Likewise.
46927         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46928         (siginterrupt): Delete fallback.
46929         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46930         instead.
46931         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46932         siginterrupt.
46933
46934         New module sigaction, for mingw.
46935         * modules/sigaction: New module...
46936         * modules/sigaction-tests: ...and its test.
46937         * m4/sigaction.m4: New file.
46938         * lib/sigaction.c: Likewise.
46939         * tests/test-sigaction.c: Likewise.
46940         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46941         * modules/signal (Makefile.am): Likewise.
46942         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46943         needed.
46944         * doc/posix-headers/signal.texi (signal.h): Mention provided
46945         types.
46946         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46947         that sigaction is preferable.
46948         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46949         module.
46950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46951         sigaction.
46952
46953         Improve robustness of sigprocmask by overriding signal.
46954         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46955         is in use.
46956         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46957         (SIGKILL, SIGSTOP): Provide fallbacks.
46958         (rpl_signal): Implement.
46959         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46960         signal can be called inside handlers.
46961
46962         Fix nanosleep module on mingw.
46963         * modules/nanosleep (Depends-on): Add sys_select.
46964         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46965
46966         Fix licensing of sigprocmask.
46967         * modules/raise (License): Relicense as LGPL.
46968
46969 2008-06-21  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46972         result if it contains question marks.
46973         Reported by Michael Geng <linux@michaelgeng.de>.
46974
46975 2008-06-19  Bruno Haible  <bruno@clisp.org>
46976
46977         Fix CVS-ism.
46978         * doc/gnulib.texi: Include updated-stamp.texi.
46979         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46980         (updated-stamp.texi): New rule.
46981         (gnulib.info): Depend on it.
46982         * doc/.gitignore: Add updated-stamp.texi.
46983         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46984
46985 2008-06-19  Bruno Haible  <bruno@clisp.org>
46986
46987         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46988         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46989
46990 2008-06-19  Eric Blake  <ebb9@byu.net>
46991
46992         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46993         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46994         Reported by Stepan Kasal.
46995
46996 2008-06-18  Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46999         Reported by Eric Blake.
47000
47001 2008-06-18  Eric Blake  <ebb9@byu.net>
47002
47003         Work around cygwin 1.5.25 strsignal bug.
47004         * tests/test-strsignal.c: Allow for const char *.
47005         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47006
47007 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47008
47009         * users.txt: Update URL to article and add author/date
47010         information.
47011
47012 2008-06-17  Bruno Haible  <bruno@clisp.org>
47013
47014         New macro gl_DISABLE_THREADS.
47015         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47016         if the user did not pass --enable-threads or --disable-threads option.
47017         (gl_DISABLE_THREADS): New macro.
47018         Reported by Eric Blake <ebb9@byu.net>.
47019
47020 2008-06-17  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47023         when the macro ignores it.
47024         Based on a patch by Eric Blake <ebb9@byu.net>.
47025
47026 2008-06-17  Bruno Haible  <bruno@clisp.org>
47027
47028         * modules/tls (License): Change to LGPLv2+.
47029         Reported by Eric Blake.
47030
47031 2008-06-17  Eric Blake  <ebb9@byu.net>
47032
47033         Simplify c-stack prerequisites.
47034         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47036         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47037         check.
47038         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47039         <sys/resource.h>.
47040
47041         Move c-stack test into testsuite.
47042         * modules/c-stack-tests: New file.
47043         * lib/c-stack.c [DEBUG]: Move test program...
47044         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47045         fail test if sigaltstack is lacking.
47046         * tests/test-c-stack.sh: New driver file.
47047
47048 2008-06-16  Eric Blake  <ebb9@byu.net>
47049
47050         Use raise module consistently.
47051         * modules/fatal-signal (Depends-on): Add raise.
47052         * modules/sigprocmask (Depends-on): Likewise.
47053         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47054         * lib/sigprocmask.c (sigprocmask): Likewise.
47055         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47056         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47057
47058         Fix compliance bug in sigpending.
47059         * lib/sigprocmask.c (sigpending): Return pending array via
47060         parameter, not return value.
47061
47062 2008-06-14  Eric Blake  <ebb9@byu.net>
47063
47064         Improve obstack-printf test code.
47065         * tests/test-obstack-printf.c (test_function): Fix comment, and
47066         simplify usage of obstack_* in macros.  Add a test for coverage.
47067         Reported by Bruno Haible.
47068
47069 2008-06-14  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47072         array size as a constant, not as a const variable.
47073         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47074         AC_USE_SYSTEM_EXTENSIONS.
47075         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47076         Test whether the obstack_printf function actually exists.
47077         * modules/obstack-printf (Depends-on): Add extensions.
47078         (Include): Remove obstack.h.
47079         * modules/obstack-printf-posix (Depends-on): Add extensions.
47080         (Include): Remove obstack.h.
47081
47082 2008-06-13  Eric Blake  <ebb9@byu.net>
47083
47084         Add obstack-printf and obstack-printf-posix modules.
47085         * modules/obstack-printf: New file.
47086         * modules/obstack-printf-posix: Likewise.
47087         * MODULES.html.sh (Misc): Mention them.
47088         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47089         Likewise.
47090         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47091         Likewise.
47092         * modules/stdio (Makefile.am): Accomodate new modules.
47093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47094         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47095         Declare.
47096         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47097         functions.
47098         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47099         (gl_REPLACE_OBSTACK_PRINTF): New macros
47100         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47101         * tests/test-obstack-printf.c: New file.
47102         * modules/obstack-printf-tests: Likewise.
47103         * modules/obstack-printf-posix-tests: Likewise.
47104
47105 2008-06-11  Bruno Haible  <bruno@clisp.org>
47106
47107         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47108         * lib/open.c: Include errno.h.
47109         (open): Fail when attempting to write to a file that has a trailing
47110         slash.
47111         * tests/test-open.c (main): Test against trailing slash bug.
47112         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47113
47114 2008-06-10  Bruno Haible  <bruno@clisp.org>
47115
47116         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47117         for $? to work inside the trap command, with various /bin/sh-s.
47118         * tests/test-vc-list-files-cvs.sh: Likewise.
47119
47120 2008-06-10  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/acl-internal.h: Don't include gettext.h here.
47123         * lib/set-mode-acl.c: Include gettext.h here.
47124         * lib/copy-acl.c: Likewise.
47125
47126 2008-06-10  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47129         * lib/wait-process.c (wait_subprocess): Likewise.
47130         * lib/execute.h (execute): Add termsigp argument.
47131         * lib/execute.c (execute): Likewise.
47132         * lib/csharpcomp.c (compile_csharp_using_pnet,
47133         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47134         * lib/csharpexec.c (execute_csharp_using_pnet,
47135         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47136         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47137         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47138         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47139         is_jikes_present): Update.
47140         * lib/javaexec.c (execute_java_class): Update.
47141         * lib/javaversion.c (execute_and_read_line): Update.
47142         * NEWS: Document the changes.
47143         Reported by Eric Blake.
47144
47145 2008-06-10  Eric Blake  <ebb9@byu.net>
47146
47147         Add missing include.
47148         * tests/test-strstr.c (includes): Add <signal.h>.
47149         * tests/test-strcasestr.c (includes): Likewise.
47150         * tests/test-memmem.c (includes): Likewise.
47151
47152 2008-06-10  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/wait-process.c (wait_subprocess): Add an assertion.
47155
47156 2008-06-10  Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47159
47160 2008-06-10  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47163         using alarm().
47164         * tests/test-strcasestr.c (main): Likewise.
47165         * tests/test-strstr.c (main): Likewise.
47166
47167 2008-06-09  Bruno Haible  <bruno@clisp.org>
47168
47169         Work around the Solaris 10 ACE ACLs ABI change.
47170         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47171         declare if ACL_NO_TRIVIAL is present.
47172         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47173         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47174         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47175         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47176         define if ACL_NO_TRIVIAL is present.
47177         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47178         and use the current ABI.
47179         (file_has_acl): Use same #if condition as elsewhere.
47180         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47181         in use, and use the current ABI.
47182         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47183         Reported by Jim Meyering.
47184
47185 2008-06-09  Eric Blake  <ebb9@byu.net>
47186
47187         Work around environments that (stupidly) ignore SIGALRM.
47188         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47189         before using alarm().
47190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47192         Reported by Ian Beckwith <ianb@erislabs.net>.
47193
47194         Produce autobuild blurb earlier in log.
47195         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47196
47197 2008-06-09  Jim Meyering  <meyering@redhat.com>
47198         and OndÅ™ej Vašík  <ovasik@redhat.com>
47199
47200         utimens.c: correct kernel bug work-around
47201         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47202         failure, not success, and the kernel bug we're trying to work
47203         around affects not just the utimensat call, but also the fallback
47204         futimens call.
47205         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47206         not success.
47207         [HAVE_FUTIMENS]: Use the same work-around, here.
47208
47209 2008-06-09  Jim Meyering  <meyering@redhat.com>
47210
47211         add more guards around definition of ACE_-related code
47212         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47213         ALLOW and ACE_OWNER are also defined.
47214
47215 2008-06-08  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/acl-internal.h: Add me as co-author.
47218         * lib/file-has-acl.c: Likewise.
47219         * lib/set-mode-acl.c: Likewise.
47220         * lib/copy-acl.c: Likewise.
47221
47222 2008-06-08  Bruno Haible  <bruno@clisp.org>
47223
47224         Add support for AIX ACLs.
47225         * lib/acl-internal.h (acl_nontrivial): New declaration.
47226         * lib/file-has-acl.c (acl_nontrivial): New function.
47227         (file_has_acl): Add implementation using AIX 4 ACL API.
47228         * lib/set-mode-acl.c (qset_acl): Likewise.
47229         * lib/copy-acl.c (qcopy_acl): Likewise.
47230
47231 2008-06-08  Bruno Haible  <bruno@clisp.org>
47232
47233         Add support for HP-UX ACLs.
47234         * lib/acl-internal.h (acl_nontrivial): New declaration.
47235         * lib/file-has-acl.c (acl_nontrivial): New function.
47236         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47237         * lib/set-mode-acl.c (qset_acl): Likewise.
47238         * lib/copy-acl.c (qcopy_acl): Likewise.
47239
47240 2008-06-08  Bruno Haible  <bruno@clisp.org>
47241
47242         Add support for Cygwin ACLs.
47243         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47244         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47245         the chmod_or_fchmod call.
47246         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47247
47248 2008-06-08  Bruno Haible  <bruno@clisp.org>
47249
47250         Fix bug with setuid modes in Solaris 10+ code.
47251         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47252         succeeded, when the mode contains some special bits.
47253
47254 2008-06-08  Bruno Haible  <bruno@clisp.org>
47255
47256         Add support for Solaris 7..10 ACLs.
47257         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47258         declarations.
47259         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47260         functions.
47261         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47262         * lib/set-mode-acl.c (qset_acl): Likewise.
47263         * lib/copy-acl.c (qcopy_acl): Likewise.
47264
47265 2008-06-08  Bruno Haible  <bruno@clisp.org>
47266
47267         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47268         declaration.
47269         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47270         (acl_access_nontrivial): Remove MacOS X case.
47271         (file_has_acl): Use acl_extended_nontrivial.
47272         * lib/copy-acl.c (qcopy_acl): Likewise.
47273
47274 2008-06-08  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47277
47278 2008-06-08  Jim Meyering  <meyering@redhat.com>
47279
47280         * modules/acl (Maintainer): Add Bruno Haible.
47281
47282 2008-06-07  Bruno Haible  <bruno@clisp.org>
47283
47284         Improve support for Tru64 ACLs.
47285         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47286         ACL on OSF/1.
47287
47288 2008-06-07  Bruno Haible  <bruno@clisp.org>
47289
47290         Add support for MacOS X ACLs.
47291         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47292         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47293         * lib/set-mode-acl.c (qset_acl): Likewise.
47294         * lib/copy-acl.c (qcopy_acl): Likewise.
47295
47296 2008-06-07  Bruno Haible  <bruno@clisp.org>
47297
47298         Fix memory leak introduced on 2008-05-22.
47299         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47300         use.
47301
47302 2008-06-07  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47305         to construct an empty ACL.
47306
47307 2008-06-07  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47310         precisely.
47311         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47312
47313 2008-06-07  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47316         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47317
47318 2008-06-07  Bruno Haible  <bruno@clisp.org>
47319
47320         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47321         regardless of POSIX.
47322         * doc/posix-functions/_longjmp.texi: Likewise.
47323         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47324         SystemV platform in this case.
47325
47326 2008-06-06  Eric Blake  <ebb9@byu.net>
47327
47328         Document abort() bugs.
47329         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47330
47331         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47332         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47333         sigsetjmp.
47334         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47335         siglongjmp, but only as a macro.
47336         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47337         is obsolete.
47338         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47339
47340         Tweak documentation to cover cygwin argz bugs.
47341         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47342         argz bug fix; no code change needed since no cygwin releases
47343         occurred between the last fix and the bug being tested.
47344         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47345         module and recently fixed cygwin bugs.
47346         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47347         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47348         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47349         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47350         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47351         Likewise.
47352         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47353         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47354         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47355         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47356         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47357         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47358         Likewise.
47359
47360         Avoid gcc warning on cygwin.
47361         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47362         !ACL_NO_TRIVIAL]: Avoid unused variable.
47363
47364 2008-06-05  Eric Blake  <ebb9@byu.net>
47365
47366         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47367         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47368         git-version-gen fails to come up with a version.
47369         Reported by Simon Josefsson.
47370
47371 2008-06-05  Jim Meyering  <meyering@redhat.com>
47372             Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         utimens.c: work around a probable Linux kernel bug
47375         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47376         appears to be a kernel bug that causes utimensat to return 280
47377         instead of 0, indicating success.
47378
47379 2008-06-04  Bruno Haible  <bruno@clisp.org>
47380
47381         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47382         2008-06-01 commit.
47383
47384 2008-06-04  Bruno Haible  <bruno@clisp.org>
47385
47386         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47387         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47388         (file_has_acl): Use it. Save errno afterwards.
47389         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47390
47391 2008-06-03  Bruno Haible  <bruno@clisp.org>
47392
47393         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47394         draft code. Simplify #ifs.
47395         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47396         Put Solaris code after POSIX-draft code. Fix comments regarding
47397         Solaris 10, HP-UX. Mention Cygwin.
47398         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47399
47400 2008-06-03  Eric Blake  <ebb9@byu.net>
47401
47402         Provide fallback for older kernels.
47403         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47404         Provide runtime fallback if kernel lacks support.
47405         Reported by Mike Frysinger.
47406
47407 2008-06-02  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47410         it exists.
47411
47412 2008-06-02  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47415         * lib/copy-acl.c (qcopy_acl): Update comment.
47416
47417 2008-06-02  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47420         like ACL APIs.
47421
47422 2008-06-02  Bruno Haible  <bruno@clisp.org>
47423
47424         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47425         * tests/test-set-mode-acl.sh: Likewise.
47426         * tests/test-copy-acl.sh: Likewise.
47427         * tests/test-copy-file.sh: Likewise.
47428
47429 2008-06-02  Bruno Haible  <bruno@clisp.org>
47430
47431         * tests/test-file-has-acl.sh: Remove unused code.
47432
47433 2008-06-01  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47436         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47437         messages.
47438         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47439
47440 2008-06-01  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47443         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47444         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47445         APIs.
47446         * modules/acl-tests (configure.ac): Remove tests now contained in
47447         m4/acl.m4.
47448
47449 2008-06-02  Jim Meyering  <meyering@redhat.com>
47450
47451         announce-gen: use a better key-server host name
47452         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47453         it may be more consistently reliable.  Suggested by Werner Koch
47454         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47455
47456 2008-06-01  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47459         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47460
47461 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47462
47463         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47464
47465 2008-06-01  Bruno Haible  <bruno@clisp.org>
47466
47467         New ACL tests.
47468         * tests/test-file-has-acl.sh: New file.
47469         * tests/test-file-has-acl.c: New file.
47470         * tests/test-set-mode-acl.sh: New file.
47471         * tests/test-set-mode-acl.c: New file.
47472         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47473         * tests/test-copy-acl.c: New file.
47474         * modules/acl-tests: New file, based on modules/copy-file-tests.
47475         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47476         (Depends-on): Add acl-tests.
47477         (configure.ac): Remove checks.
47478         (Makefile.am): Don't create test-sameacls program here any more.
47479
47480 2008-06-01  Bruno Haible  <bruno@clisp.org>
47481
47482         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47483         * tests/test-sameacls.c: Include progname.h.
47484         (main): Invoke set_program_name. Portability fixes for MacOS X,
47485         Solaris, HP-UX.
47486
47487 2008-06-01  Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47490         function.
47491         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47492
47493 2008-06-01  Bruno Haible  <bruno@clisp.org>
47494
47495         * modules/rpmatch (Depends-on): Add strdup.
47496
47497 2008-06-01  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/pipe.c: Include unistd-safer.h.
47500         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47501         * modules/pipe (Depends-on): Add unistd-safer.
47502
47503 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47504
47505         * modules/autobuild (configure.ac): Call AB_INIT.
47506
47507 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47508
47509         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47510         Suggested by Bruno Haible <bruno@clisp.org>.
47511
47512 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47513
47514         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47515         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47516         <bruno@clisp.org>.
47517
47518 2008-05-29  Eric Blake  <ebb9@byu.net>
47519
47520         Prefer new POSIX 200x interfaces over futimesat.
47521         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47522         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47523         when available.
47524         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47525
47526 2008-05-28  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/stpcpy (License): Change to LGPLv2+.
47529         Requested by David Lutterkort <dlutter@redhat.com>.
47530
47531 2008-05-27  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47534         current mingw.
47535         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47536
47537 2008-05-27  Bruno Haible  <bruno@clisp.org>
47538
47539         * modules/iconv_open (Link): New section, from module 'iconv'.
47540         * modules/striconv (Link): Likewise.
47541         * modules/striconveh (Link): Likewise.
47542         * modules/xstriconv (Link): Likewise.
47543         * modules/unicodeio (Link): Likewise.
47544         * modules/propername (Link): Likewise.
47545         Reported by Jim Meyering.
47546
47547 2008-05-26  Jim Meyering  <meyering@redhat.com>
47548
47549         sha256: do not artificially restrict buffer length to be < 2^32
47550         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47551         uint32_t to size_t.
47552         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47553         to match.
47554
47555         avoid unaligned access errors, e.g., on sparc
47556         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47557         direct access through a possibly-unaligned uint64* pointer.
47558         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47559         direct access through a possibly-unaligned uint32* pointer.
47560         Prompted by this patch from Tom "spot" Callaway:
47561         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47562
47563         sha512.c: fix typo in comment
47564         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47565
47566 2008-05-25  Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47569         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47570         (Makefile.am): Update lib_SOURCES.
47571
47572 2008-05-25  Bruno Haible  <bruno@clisp.org>
47573
47574         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47575
47576 2008-05-25  Jim Meyering  <meyering@redhat.com>
47577
47578         useless-if-before-free: freed expr may have white-space differences
47579         * build-aux/useless-if-before-free: Recognize cases in which the
47580         freed expression differs from the tested one in embedded white
47581         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47582         $1 was used, so we can't make any regexp shy.  Improved tests now
47583         detect this.
47584
47585         useless-if-before-free: accept white space in the expression.
47586         * build-aux/useless-if-before-free: For now, any white space
47587         in the expression must be identical in the free argument.
47588
47589         useless-if-before-free: efficiency tweak
47590         * build-aux/useless-if-before-free: Make the expression-matching
47591         regexp "shy".
47592         Make the *outer* regexp shy, not the expr-matching one.
47593
47594         update code-in-comment to accept cast of free arg
47595         * build-aux/useless-if-before-free: Update regexp.
47596
47597 2008-05-25  Bruno Haible  <bruno@clisp.org>
47598
47599         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47600         * modules/copy-file-tests (Files, Makefile.am): Update.
47601         * tests/test-copy-file.c (func_test_copy): Update.
47602
47603 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47604
47605         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47606
47607 2008-05-23  Bruno Haible  <bruno@clisp.org>
47608
47609         Improve support for ACLs on OSF/1.
47610         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47611         Remove fallback for unknown flavors of ACLs.
47612
47613 2008-05-22  Bruno Haible  <bruno@clisp.org>
47614
47615         Add support for ACLs on OSF/1.
47616         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47617         replacements.
47618         (acl_free_text): New macro fallback.
47619         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47620         acl_free.
47621         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47622         acl_free_text function. Require AC_C_INLINE.
47623
47624 2008-05-22  Bruno Haible  <bruno@clisp.org>
47625
47626         Make copy_acl work on MacOS X 10.5.
47627         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47628         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47629         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47630         If MODE_INSIDE_ACL, don't assume that every system has the same text
47631         representation for ACLs as FreeBSD.
47632         * lib/copy-acl.c (copy_acl): Add support for platforms with
47633         !MODE_INSIDE_ACL.
47634         * lib/file-has-acl.c (file_has_acl): Likewise.
47635         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47636         FreeBSD, MacOS X, or IRIX, respectively.
47637
47638 2008-05-22  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/acl.h: Don't include <sys/acl.h>.
47641         (GETACLCNT): Move fallback to lib/acl-internal.h.
47642         * lib/acl-internal.h: Include <sys/acl.h> here.
47643         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47644
47645 2008-05-22  Bruno Haible  <bruno@clisp.org>
47646
47647         Split off copy_acl function to separate file.
47648         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47649         * lib/acl.c (copy_acl): Moved function to separate file.
47650         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47651         * modules/acl (Files): Add lib/copy-acl.c.
47652         (Makefiles.am): Augment lib_SOURCES.
47653
47654 2008-05-22  Bruno Haible  <bruno@clisp.org>
47655
47656         * modules/copy-file-tests: New file.
47657         * tests/test-copy-file.sh: New file.
47658         * tests/test-copy-file.c: New file.
47659         * tests/test-copy-file-sameacls.c: New file.
47660
47661 2008-05-22  Eric Blake  <ebb9@byu.net>
47662
47663         Avoid gcc warning.
47664         * tests/test-memcmp.c (main): Pass NULL indirectly.
47665
47666 2008-05-21  Bruno Haible  <bruno@clisp.org>
47667
47668         Add reference doc about ACLs.
47669         * doc/acl-resources.txt: New file.
47670         * doc/acl-cygwin.txt: New file.
47671
47672 2008-05-21  Bruno Haible  <bruno@clisp.org>
47673
47674         Avoid one more warning from gcc.
47675         * lib/vasnprintf.c (IF_LINT): Update comments.
47676         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47677
47678 2008-05-21  Jim Meyering  <meyering@redhat.com>
47679
47680         avoid a warning from gcc
47681         * lib/vasnprintf.c (IF_LINT): Define.
47682         (scale10_round_decimal_long_double):
47683         Use it to avoid a "may be used uninitialized" warning.
47684         (scale10_round_decimal_double): Likewise.
47685
47686 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47687
47688         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47689         declared.
47690
47691 2008-05-20  Bruno Haible  <bruno@clisp.org>
47692
47693         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47694         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47695
47696 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47697
47698         * modules/memcmp-tests: New file.
47699         * tests/test-memcmp.c: New file.
47700
47701 2008-05-19  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/propername (Notice, configure.ac): Put quoted "..." into
47704         --keyword option.
47705         * lib/propername.h: Update comments accordingly.
47706         Reported by Eric Blake.
47707
47708 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47709
47710         * modules/getpass-gnu (Depends-on): Add fseeko.
47711
47712 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47713
47714         * modules/base64-tests: New file.
47715
47716 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47717
47718         * lib/base64.c (base64_decode_ctx): If a decode context structure
47719         was passed in use it to ignore newlines.  If a context structure
47720         was _not_ passed in, continue to treat newlines as garbage (this
47721         is the historical behavior).  Formerly base64_decode.
47722         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47723         takes a decode context structure.
47724         * lib/base64.h (base64_decode): Macro for four-argument calls.
47725         (base64_decode_alloc): Likewise.
47726         * lib/base64.c (base64_decode_ctx): If a decode context structure
47727         was passed in use it to ignore newlines.  If a context structure
47728         was _not_ passed in, continue to treat newlines as garbage (this
47729         is the historical behavior).  Formerly base64_decode.
47730         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47731         takes a decode context structure.
47732         * lib/base64.h (base64_decode): Macro for four-argument calls.
47733         (base64_decode_alloc): Likewise.
47734
47735 2008-05-19  Jim Meyering  <meyering@redhat.com>
47736
47737         avoid a warning from gcc
47738         * lib/trim.c (IF_LINT): Define.
47739         (trim2): Use it to avoid a "may be used uninitialized" warning.
47740
47741         Fix doc typo.
47742         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47743
47744 2008-05-19  Bruno Haible  <bruno@clisp.org>
47745
47746         * doc/glibc-functions/getpass.texi: Document limits of other
47747         implementations.
47748
47749 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47750             Bruno Haible <bruno@clisp.org>
47751
47752         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47753
47754 2008-05-18  Bruno Haible  <bruno@clisp.org>
47755
47756         * modules/propername: New file, from GNU gettext.
47757         * lib/propername.h: New file, from GNU gettext.
47758         * lib/propername.c: New file, from GNU gettext.
47759         * MODULES.html.sh (Internationalization functions): Add propername.
47760
47761 2008-05-16  Jim Meyering  <meyering@redhat.com>
47762             Bruno Haible  <bruno@clisp.org>
47763
47764         Avoid some warnings from "gcc -Wshadow".
47765         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47766
47767 2008-05-15  Eric Blake  <ebb9@byu.net>
47768
47769         Extend previous patch to cygwin 1.7.0.
47770         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47771         fast implementation in cygwin >= 1.7.0.
47772         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47774
47775 2008-05-15  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47778         implementation in glibc >= 2.9.
47779         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47781
47782 2008-05-15  Bruno Haible  <bruno@clisp.org>
47783
47784         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47785         (Unicode string functions): Add unilbrk/*.
47786         Reported by Karl Berry.
47787
47788 2008-05-15  Eric Blake  <ebb9@byu.net>
47789
47790         Fix violation of <stdbool.h> replacement in regex.
47791         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47792         * lib/regexec.c (re_search_internal): Likewise.
47793         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47794
47795 2008-05-15  Jim Meyering  <meyering@redhat.com>
47796
47797         avoid distracting test output when git or cvs is not found
47798         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47799         * tests/test-vc-list-files-git.sh: Likewise.
47800
47801 2008-05-15  Eric Blake  <ebb9@byu.net>
47802
47803         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47804         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47805         glibc version.
47806         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47807         * doc/posix-functions/strstr.texi (strstr): Likewise.
47808         * lib/str-two-way.h (MAX): Sychronize with glibc.
47809
47810 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47811
47812         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47813         opr.ctx_type.
47814         (calc_first): Initialize constraint field.
47815         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47816         Fix grammar.
47817         (duplicate_node): Merge constraint field for all node types.
47818         (calc_eclosure_iter): Look at constraint field for all node types.
47819         * lib/regex_internal.c (create_cd_newstate): Don't look at
47820         opr.ctx_type.
47821
47822 2008-05-14  Bruno Haible  <bruno@clisp.org>
47823
47824         Help GCC to do better code generation.
47825         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47826         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47827         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47828         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47829         Declare with attribute 'malloc' if supported.
47830
47831 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47832
47833         use "echo STR|wc -c" rather than unportable "expr length STR"
47834         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47835         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47836
47837 2008-05-14  Jim Meyering  <meyering@redhat.com>
47838
47839         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47840         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47841         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47842         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47843         via Collin Lasse.
47844
47845 2008-05-14  Eric Blake  <ebb9@byu.net>
47846
47847         Avoid quadratic growth in gl_LIBSOURCES.
47848         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47849         Suggested by Bruno Haible.
47850
47851         Test xmemdup0.
47852         * modules/xmemdup0-tests: New file.
47853         * tests/test-xmemdup0.c: Likewise.
47854
47855 2008-05-13  Eric Blake  <ebb9@byu.net>
47856
47857         Split xmemdup0 into its own module.
47858         * modules/xmemdup0: New file.
47859         * lib/xmemdup0.h: Likewise.
47860         * lib/xmemdup0.c: Likewise.
47861         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47862         * lib/xalloc.h (xmemdup0): Remove.
47863         * lib/xmalloc.c (xmemdup0): Likewise.
47864
47865 2008-05-13  Eric Blake  <ebb9@byu.net>
47866             Bruno Haible  <bruno@clisp.org>
47867
47868         Reduce number of forks required during autoconf.
47869         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47870         and gl_LIBSOURCES_DIR.
47871         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47872         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47873         m4_syscmd per file.
47874         <m4_foreach_w>: Move...
47875         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47876
47877 2008-05-13  Eric Blake  <ebb9@byu.net>
47878
47879         * gnulib-tool: Fix various comment typos.
47880
47881 2008-05-12  Bruno Haible  <bruno@clisp.org>
47882
47883         Tailor the linebreaking algorithm.
47884         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47885
47886 2008-05-12  Bruno Haible  <bruno@clisp.org>
47887
47888         Update to Unicode 5.0.0.
47889         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47890         LBP_JV, LBP_JT. Redistribute values.
47891         (unilbrk_table): Change size.
47892         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47893         Unicode TR#14 rev. 22.
47894         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47895         LBP_JV, LBP_JT. Redistribute values.
47896         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47897         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47898         Update.
47899         * lib/unilbrk/lbrkprop1.h: Regenerated.
47900         * lib/unilbrk/lbrkprop2.h: Regenerated.
47901         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47902         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47903         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47904         Likewise.
47905         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47906         Likewise.
47907         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47908         result.
47909         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47910         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47911         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47912         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47913         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47914         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47915
47916 2008-05-11  Bruno Haible  <bruno@clisp.org>
47917
47918         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47919
47920 2008-05-11  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47923         * modules/unilbrk/gen-lbrk: New file.
47924
47925 2008-05-11  Bruno Haible  <bruno@clisp.org>
47926
47927         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47928         * m4/sha512.m4 (gl_SHA512): Likewise.
47929
47930 2008-05-11  Jim Meyering  <meyering@redhat.com>
47931
47932         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47933         * modules/crypto/sha256: New file.
47934         * modules/crypto/sha512: Likewise.
47935         * lib/sha256.c: Likewise.
47936         * lib/sha256.h: Likewise.
47937         * lib/sha512.c: Likewise.
47938         * lib/sha512.h: Likewise.
47939         * lib/u64.h: Likewise.
47940         * m4/sha256.m4: Likewise.
47941         * m4/sha512.m4: Likewise.
47942         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47943
47944 2008-05-10  Bruno Haible  <bruno@clisp.org>
47945
47946         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47947         (Input/Output <stdio.h>): Add xprintf.
47948         (Signal handling <signal.h>): Add strsignal.
47949         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47950         (Core language properties): Add func.
47951         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47952         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47953         strings.
47954         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47955         (Input/output): New section.
47956         (File system functions): Add openat-die, stat-macros.
47957         (Networking functions): Add sockets.
47958         (Unicode string functions): Add unictype/*.
47959         (Support for building libraries and executables): Add gperf.
47960         (Support for building documentation): Add agpl-3.0.
47961         (Misc): Add nocrash.
47962
47963 2008-05-10  Bruno Haible  <bruno@clisp.org>
47964
47965         * modules/unictype/gen-ctype: New file.
47966
47967 2008-05-10  Jim Meyering  <meyering@redhat.com>
47968
47969         Make chdir-safer.c more efficient on a system with no symlinks.
47970         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47971         also if ELOOP is zero.  Suggested by Bruno Haible.
47972
47973         Make chdir-safer.c slightly safer.
47974         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47975         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47976
47977         Avoid compile failure on systems without ELOOP (like mingw).
47978         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47979         Reported by Bruno Haible.
47980
47981 2008-05-10  Bruno Haible  <bruno@clisp.org>
47982
47983         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47984         (is_utf8_encoding): Use a case-insensitive comparison.
47985         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47986         streq.
47987
47988 2008-05-10  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47991         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47992         * lib/unilbrk/ulc-common.h (iconv_string_length,
47993         iconv_string_keeping_offsets): Remove declarations.
47994         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47995         Don't include <iconv.h>, streq.h, xsize.h.
47996         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47997         conversion.
47998         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47999         <iconv.h>, streq.h, xsize.h.
48000         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48001         conversion.
48002         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48003         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48004         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48005         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48006
48007 2008-05-10  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48010         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48011
48012         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48013         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48014
48015         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48016         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48017
48018         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48019         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48020
48021         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48022         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48023
48024         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48025         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48026
48027         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48028         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48029
48030         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48031         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48032
48033 2008-05-10  Bruno Haible  <bruno@clisp.org>
48034
48035         Split up 'linebreak' module.
48036         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48037         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48038         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48039         modifications.
48040         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48041         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48042         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48043         lib/linebreak.c.
48044         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48045         lib/linebreak.c.
48046         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48047         lib/linebreak.c.
48048         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48049         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48050         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48051         lib/linebreak.c.
48052         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48053         lib/linebreak.c.
48054         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48055         lib/linebreak.c.
48056         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48057         lib/linebreak.c.
48058         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48059         lib/linebreak.c.
48060         * modules/unilbrk/base: New file.
48061         * modules/unilbrk/tables: New file.
48062         * modules/unilbrk/u8-possible-linebreaks: New file.
48063         * modules/unilbrk/u16-possible-linebreaks: New file.
48064         * modules/unilbrk/u32-possible-linebreaks: New file.
48065         * modules/unilbrk/ulc-common: New file.
48066         * modules/unilbrk/ulc-possible-linebreaks: New file.
48067         * modules/unilbrk/u8-width-linebreaks: New file.
48068         * modules/unilbrk/u16-width-linebreaks: New file.
48069         * modules/unilbrk/u32-width-linebreaks: New file.
48070         * modules/unilbrk/ulc-width-linebreaks: New file.
48071         * lib/linebreak.h: Remove file.
48072         * lib/linebreak.c: Remove file.
48073         * m4/linebreak.m4: Remove file.
48074         * modules/linebreak: Remove file.
48075         * NEWS: Mention the changes.
48076
48077 2008-05-09  Eric Blake  <ebb9@byu.net>
48078
48079         Add xmemdup0.
48080         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48081         implementation.
48082         * lib/xmalloc.c (xmemdup0): New C implementation.
48083
48084 2008-05-08  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48087
48088 2008-05-07  Eric Blake  <ebb9@byu.net>
48089
48090         Support cross-compilation of <wctype.h>.
48091         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48092         AC_CACHE_CHECK.
48093
48094 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48095
48096         * build-aux/vc-list-files: Add support for bzr.
48097
48098 2008-05-03  Jim Meyering  <meyering@redhat.com>
48099
48100         avoid failed assertion with tight malloc
48101         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48102
48103 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48104
48105         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48106         are needed from arpa/inet.h.
48107         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48108         Reported by Bruno Haible.
48109
48110 2008-05-02  Jim Meyering  <meyering@redhat.com>
48111
48112         avoid compilation error on FreeBSD 6
48113         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48114
48115 2008-05-01  Jim Meyering  <meyering@redhat.com>
48116
48117         useless-if-before-free: correct --help's exit status description
48118         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48119         for one or more matches, etc.  Reported by Bruno Haible.
48120
48121         vc-list-files: make the stand-alone gnulib test work
48122         * modules/vc-list-files-tests (configure.ac):
48123         Define and AC_SUBST abs_aux_dir.
48124         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48125         $(abs_top_srcdir) to each script and having each of them
48126         duplicate the work of setting PATH, set PATH here, using
48127         the new variable, abs_aux_dir instead.
48128         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48129         * tests/test-vc-list-files-git.sh: Likewise.
48130         Reported by Bruno Haible.
48131
48132 2008-05-01  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48135         reallocation. Rename 'done' to 'found_delimiter'.
48136
48137 2008-05-01  Jim Meyering  <meyering@redhat.com>
48138
48139         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48140         * build-aux/vc-list-files: Use `...`, not $(...).
48141
48142 2008-04-30  Jim Meyering  <meyering@redhat.com>
48143
48144         add tests for vc-list-files
48145         * modules/vc-list-files-tests: New module.
48146         * tests/test-vc-list-files-cvs.sh: New file.
48147         * tests/test-vc-list-files-git.sh: New file.
48148
48149         avoid a warning from gcc
48150         * lib/getndelim2.c (IF_LINT): Define.
48151         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48152
48153         vc-list-files: work properly with build-aux/cvsu, too
48154         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48155         to all cvs-based clauses.
48156
48157         vc-list-files: work properly in the CVS+awk case, too
48158         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48159
48160         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48161         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48162         take more than one file argument, so .  Add quotes, just in case $dir
48163         ever contains a shell meta-character.  Prompted by Soren Hansen in
48164         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48165
48166 2008-04-29  Eric Blake  <ebb9@byu.net>
48167
48168         Optimize getndelim2 to use block operations when possible.
48169         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48170         freadseek, and memchr2.
48171         * lib/getndelim2.c (getndelim2): Use them for block reads.
48172
48173 2008-04-29  Bruno Haible  <bruno@clisp.org>
48174
48175         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48176         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48177         * modules/inet_ntop (Depends-on): Add extensions.
48178         * modules/inet_pton (Depends-on): Likewise.
48179         Reported by Simon Josefsson.
48180
48181 2008-04-29  Jim Meyering  <meyering@redhat.com>
48182
48183         When the is more than one match in a block, match all of them.
48184         * build-aux/useless-if-before-free: Iterate through each block
48185         until there are no more matches.
48186
48187         Fix broken useless-if-before-free script.
48188         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48189         the expression to match cast of argument to free-like function.
48190
48191 2008-04-29  Eric Blake  <ebb9@byu.net>
48192
48193         Use new header.
48194         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48195
48196 2008-04-29  Jim Meyering  <meyering@redhat.com>
48197
48198         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48199         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48200         by gnulib to exist and to declare e.g., inet_ntop.
48201         Don't include "inet_ntop.h", now removed.
48202
48203         * m4/arpa_inet_h.m4: Remove trailing blanks.
48204
48205 2008-04-29  Eric Blake  <ebb9@byu.net>
48206
48207         Silence valgrind on safe reads beyond potential array bounds.
48208         * lib/rawmemchr.valgrind: New file.
48209         * lib/strchrnul.valgrind: Likewise.
48210         * modules/rawmemchr (Files): Distribute new file.
48211         * modules/strchrnul (Files): Likewise.
48212         Suggested by Bruno Haible.
48213
48214 2008-04-29  Bruno Haible  <bruno@clisp.org>
48215
48216         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48217         (inet_ntop, inet_pton): Change portability warning's wording.
48218         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48219         Invoke gl_CHECK_NEXT_HEADERS.
48220         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48221         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48222         set ARPA_INET_H.
48223         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48224         * modules/arpa_inet (Description): No longer only for systems that
48225         lack it.
48226         (Depends-on): Add include_next.
48227         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48228         HAVE_ARPA_INET_H.
48229
48230 2008-04-29  Jim Meyering  <meyering@redhat.com>
48231
48232         * modules/mkdir (License): Re-license as LGPLv2+.
48233
48234 2008-04-29  Bruno Haible  <bruno@clisp.org>
48235
48236         * modules/rawmemchr (Maintainer): Set to Eric.
48237         * modules/strchrnul (Maintainer): Likewise.
48238
48239 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48240
48241         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48242         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48243
48244         * modules/arpa_inet (arpa/inet.h): Use them.
48245
48246 2008-04-28  Eric Blake  <ebb9@byu.net>
48247
48248         Test getndelim2.
48249         * modules/getndelim2-tests: New file.
48250         * tests/test-getndelim2.c: Likewise.
48251         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48252         stream.
48253         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48254
48255         * MODULES.html.sh: Document new module.
48256
48257 2008-04-20  Bruno Haible  <bruno@clisp.org>
48258
48259         * lib/c-stack.c (die): Use raise.
48260         * modules/c-stack (Depends-on): Add raise.
48261
48262 2008-04-28  Bruno Haible  <bruno@clisp.org>
48263
48264         Expect rpmatch to be declared.
48265         * lib/yesno.c (rpmatch): Remove declaration.
48266
48267         Declare rpmatch.
48268         * lib/stdlib.in.h (rpmatch): New declaration.
48269         * lib/rpmatch.c: Include <stdlib.h> first.
48270         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48271         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48273         HAVE_RPMATCH.
48274         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48275         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48276         (Include): Set to <stdlib.h>.
48277         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48278         HAVE_RPMATCH.
48279         * NEWS: Document the change.
48280
48281 2008-04-28  Bruno Haible  <bruno@clisp.org>
48282
48283         Change rpmatch to use nl_langinfo when appropriate.
48284         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48285         (N_): New macro.
48286         (localized_pattern): New function/macro.
48287         (try): Remove match, nomatch arguments. Copy the pattern into safe
48288         memory before caching it.
48289         (rpmatch): Use localized_pattern. Add translator comments.
48290         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48291         Suggested by Eric Blake.
48292         * modules/rpmatch (Depends-on): Add stdbool.
48293
48294 2008-04-28  Eric Blake  <ebb9@byu.net>
48295
48296         Add rawmemchr module, matching glibc.
48297         * modules/string (Makefile.am): New indicator.
48298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48299         * lib/string.in.h (rawmemchr): Declare when appropriate.
48300         * modules/rawmemchr: New file.
48301         * m4/rawmemchr.m4: Likewise.
48302         * lib/rawmemchr.c: Likewise.
48303         * modules/rawmemchr-tests: Likewise.
48304         * tests/test-rawmemchr.c: Likewise.
48305         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48306         module.
48307         * modules/strchrnul (Depends-on): Add rawmemchr.
48308         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48309
48310         Whitespace cleanup.
48311         * tests/test-strchrnul.c: Reindent.
48312         * lib/strchrnul.c: Likewise.
48313
48314         Optimize and test strchrnul.
48315         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48316         * modules/strchrnul-tests: New file.
48317         * tests/test-strchrnul.c: Likewise.
48318
48319         Remove intprops dependency.
48320         * modules/memchr (Depends-on): Remove intprops.
48321         * modules/memrchr (Depends-on): Likewise.
48322         * modules/memchr2 (Depends-on): Likewise.
48323         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48324         * lib/memrchr.c (__memrchr): Likewise.
48325         * lib/memrchr2.c (memchr2): Likewise.
48326         Reported by Simon Josefsson.
48327
48328 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48329
48330         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48331         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48332
48333 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48334
48335         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48336
48337         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48338
48339         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48340
48341         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48342         declarations.
48343         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48344
48345         * m4/inet_pton.m4: Don't check for header files.
48346
48347         * m4/inet_ntop.m4: Don't check for header files.
48348
48349 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48350
48351         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48352         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48353         trigger for cygwin).
48354         Reported by Bruno Haible  <bruno@clisp.org>.
48355
48356 2008-04-28  Bruno Haible  <bruno@clisp.org>
48357
48358         * doc/posix-functions/strdup.texi: Mention mingw problem.
48359
48360 2008-04-27  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/stat-time-tests (Depends-on): Add sleep.
48363         * tests/test-stat-time.c (force_unlink): New function.
48364         (cleanup): Use it.
48365         (test_mtime): Remove the ctime related tests.
48366         (test_ctime): New function, containing the ctime related tests.
48367         (main): Call test_ctime, except on native Windows platforms.
48368
48369 2008-04-27  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/rpmatch.c (rpmatch): Add some comments.
48372         Reported by James Youngman <jay@gnu.org>.
48373
48374 2008-04-27  Bruno Haible  <bruno@clisp.org>
48375
48376         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48377         quiet NaNs.
48378
48379 2008-04-27  Bruno Haible  <bruno@clisp.org>
48380
48381         Make test-yesno.sh work on mingw.
48382         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48383         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48384         (main): Set stdin to binary mode.
48385         * modules/yesno-tests (Depends-on): Add binary-io.
48386
48387 2008-04-27  Bruno Haible  <bruno@clisp.org>
48388
48389         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48390         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48391         argument that lie outside the IEEE 854 domain.
48392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48393         (gl_ISFINITE): Use it.
48394         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48395
48396 2008-04-27  Bruno Haible  <bruno@clisp.org>
48397
48398         Allow local renaming in config.h.
48399         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48400
48401 2008-04-27  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/memchr.c (__memchr): Change type of 'i'.
48404         * lib/memchr2.c (memchr2): Likewise.
48405
48406 2008-04-26  Eric Blake  <ebb9@byu.net>
48407         and Bruno Haible  <bruno@clisp.org>
48408
48409         Optimize and test memrchr.
48410         * modules/memrchr (Depends-on): Add intprops.
48411         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48412         * modules/memrchr-tests: New file.
48413         * tests/test-memrchr.c: New file.
48414
48415 2008-04-26  Bruno Haible  <bruno@clisp.org>
48416
48417         Add tentative support for DragonFly BSD.
48418         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48419         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48420         fp.
48421         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48422         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48423         * lib/fpurge.c (fpurge): Likewise.
48424         * lib/freadable.c (freaadable): Likewise.
48425         * lib/freadahead.c (freadahead): Likewise.
48426         * lib/freading.c (freading): Likewise.
48427         * lib/freadptr.c (freadptr): Likewise.
48428         * lib/freadseek.c (freadptrinc): Likewise.
48429         * lib/fseeko.c (fseeko): Likewise.
48430         * lib/fseterr.c (fseterr): Likewise.
48431         * lib/fwritable.c (fwritable): Likewise.
48432         * lib/fwriting.c (fwriting): Likewise.
48433
48434 2008-04-26  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/stdio-impl.h: New file.
48437         * lib/fbufmode.c: Include stdio-impl.h.
48438         (fbufmode): Use fp_, remove redundant #defines.
48439         * lib/fflush.c: Include stdio-impl.h.
48440         (clear_ungetc_buffer): Remove redundant #defines.
48441         * lib/fpurge.c: Include stdio-impl.h.
48442         (fpurge): Remove redundant #defines.
48443         * lib/freadable.c: Include stdio-impl.h.
48444         (freadable): Remove redundant #defines.
48445         * lib/freadahead.c: Include stdio-impl.h.
48446         (freadahead): Remove redundant #defines.
48447         * lib/freading.c: Include stdio-impl.h.
48448         (freading): Remove redundant #defines.
48449         * lib/freadptr.c: Include stdio-impl.h.
48450         (freadptr): Remove redundant #defines.
48451         * lib/freadseek.c: Include stdio-impl.h.
48452         (freadptrinc): Remove redundant #defines.
48453         * lib/fseeko.c: Include stdio-impl.h.
48454         (rpl_fseeko): Remove redundant #defines.
48455         * lib/fseterr.c: Include stdio-impl.h.
48456         (fseterr): Remove redundant #defines.
48457         * lib/fwritable.c: Include stdio-impl.h.
48458         (fwritable: Remove redundant #defines.
48459         * lib/fwriting.c: Include stdio-impl.h.
48460         (fwriting): Remove redundant #defines.
48461         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48462         * modules/fflush (Files): Likewise.
48463         * modules/fpurge (Files): Likewise.
48464         * modules/freadable (Files): Likewise.
48465         * modules/freadahead (Files): Likewise.
48466         * modules/freading (Files): Likewise.
48467         * modules/freadptr (Files): Likewise.
48468         * modules/freadseek (Files): Likewise.
48469         * modules/fseeko (Files): Likewise.
48470         * modules/fseterr (Files): Likewise.
48471         * modules/fwritable (Files): Likewise.
48472         * modules/fwriting (Files): Likewise.
48473
48474 2008-04-26  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48477         restore_seek_optimization, update_fpos_cache): New functions, extracted
48478         from rpl_fflush.
48479         (rpl_fflush): Use them.
48480         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48481         (gl_REPLACE_FFLUSH): Use it.
48482
48483 2008-04-26  Bruno Haible  <bruno@clisp.org>
48484
48485         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48486         on Solaris.
48487         * tests/test-xstrtoimax.sh: Likewise.
48488         * tests/test-xstrtoumax.sh: Likewise.
48489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48490
48491 2008-04-26  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/memchr-tests: New file.
48494         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48495
48496 2008-04-26  Eric Blake  <ebb9@byu.net>
48497             Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/memchr.c: Include intprops.h.
48500         (__memchr): Optimize parallel detection of matching bytes. Rename local
48501         variables. Add explanatory comments.
48502
48503 2008-04-26  Bruno Haible  <bruno@clisp.org>
48504
48505         Fix module 'memchr', broken since 2000-10-28.
48506         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48507
48508 2008-04-26  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48511         comments.
48512
48513 2008-04-25  Eric Blake  <ebb9@byu.net>
48514
48515         Use native fstatat on cygwin 1.7.0.
48516         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48517         first.
48518
48519 2008-04-23  Eric Blake  <ebb9@byu.net>
48520
48521         Improve memchr2 performance.
48522         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48523         NUL bytes.
48524         * modules/memchr2 (Depends-on): Use intprops.h.
48525
48526 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48527
48528         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48529         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48530         <blp@cs.stanford.edu>.
48531
48532 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48533
48534         * lib/arpa_inet.in.h: New file.
48535
48536         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48537         (Makefile.am): Sed in substitute header file.
48538
48539         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48540         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48541
48542         * modules/inet_ntop (configure.ac): Use
48543         gl_ARPA_INET_MODULE_INDICATOR.
48544
48545         * modules/inet_pton (configure.ac): Use
48546         gl_ARPA_INET_MODULE_INDICATOR.
48547
48548 2008-04-22  Jim Meyering  <meyering@redhat.com>
48549
48550         * modules/verify (License): Re-license as LGPLv2+.
48551
48552 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48553
48554         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48555         parameter to void* as per POSIX standard (MinGW uses char*).
48556
48557 2008-04-21  Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48560         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48561         Define to replacements if REPLACE_ISWCNTRL is 1.
48562         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48563         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48564         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48565         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48566         what it fixes.
48567         * doc/posix-functions/iswalpha.texi: Likewise.
48568         * doc/posix-functions/iswblank.texi: Likewise.
48569         * doc/posix-functions/iswcntrl.texi: Likewise.
48570         * doc/posix-functions/iswdigit.texi: Likewise.
48571         * doc/posix-functions/iswgraph.texi: Likewise.
48572         * doc/posix-functions/iswlower.texi: Likewise.
48573         * doc/posix-functions/iswprint.texi: Likewise.
48574         * doc/posix-functions/iswpunct.texi: Likewise.
48575         * doc/posix-functions/iswspace.texi: Likewise.
48576         * doc/posix-functions/iswupper.texi: Likewise.
48577         * doc/posix-functions/iswxdigit.texi: Likewise.
48578         Reported by Alain Guibert.
48579
48580 2008-04-21  Bruno Haible  <bruno@clisp.org>
48581
48582         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48583         Patch by Alain Guibert.
48584
48585 2008-04-21  Bruno Haible  <bruno@clisp.org>
48586
48587         Fix test failures on mingw.
48588         * tests/test-xstrtol.c (print_no_progname): New function.
48589         (main): Install it in error_print_progname hook.
48590         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48591         * tests/test-xstrtoimax.sh: Likewise.
48592         * tests/test-xstrtoumax.sh: Likewise.
48593
48594 2008-04-21  Bruno Haible  <bruno@clisp.org>
48595
48596         Fix test failure on mingw.
48597         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48598
48599 2008-04-21  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48602         Actually assign a value.
48603
48604 2008-04-20  Bruno Haible  <bruno@clisp.org>
48605
48606         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48607         take 2.
48608         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48609         'canonicalize-lgpl' module is also used.
48610         * lib/canonicalize-lgpl.c: Undo last change.
48611         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48612
48613 2008-04-20  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48616         config.h. Provide _mkdir based fallback for mingw.
48617         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48618         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48619         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48620         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48621         rather than defining mkdir in config.h.
48622         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48623         (gl_SYS_STAT_H_DEFAULTS): New macro.
48624         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48625         HAVE_IO_H any more.
48626         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48627         HAVE_DECL_MKDIR and HAVE_IO_H.
48628
48629 2008-04-20  Bruno Haible  <bruno@clisp.org>
48630
48631         * lib/isapipe.c: Port to native Windows platforms.
48632
48633 2008-04-20  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48636
48637 2008-04-21  Eric Blake  <ebb9@byu.net>
48638
48639         Work around preprocessors that don't handle UINTMAX_MAX.
48640         * lib/memchr2.c (memchr2): Avoid embedded #if.
48641         Reported by Alain Guibert, fix suggested by Bruno Haible.
48642
48643 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48644
48645         * doc/posix-functions/strftime.texi (strftime): Explain better
48646         Windows incompatibility.  Suggested by Micah Cowan
48647         <micah@cowan.name>.
48648
48649 2008-04-20  Bruno Haible  <bruno@clisp.org>
48650
48651         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48652         unistr/u8-mblen.
48653
48654 2008-04-20  Bruno Haible  <bruno@clisp.org>
48655
48656         Fix test failure on platforms with non-GNU iconv.
48657         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48658         (U_TO_U8): Use it, rather than u16_to_u8.
48659         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48660         units at the end of the input string.
48661         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48662
48663 2008-04-20  Bruno Haible  <bruno@clisp.org>
48664
48665         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48666         when the resulting length is 0.
48667         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48668
48669 2008-04-20  Bruno Haible  <bruno@clisp.org>
48670
48671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48672         works.
48673         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48674
48675 2008-04-20  Bruno Haible  <bruno@clisp.org>
48676
48677         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48678         * modules/tsearch-tests (configure.ac): Test for initstate function.
48679
48680 2008-04-20  Bruno Haible  <bruno@clisp.org>
48681
48682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48683         for nlink_t if missing.
48684         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48685
48686 2008-04-19  Bruno Haible  <bruno@clisp.org>
48687
48688         Work around snprintf bug on Linux libc5.
48689         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48690         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48691         gl_SNPRINTF_SIZE1.
48692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48693         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48694         that test failed.
48695         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48696         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48697         * modules/snprintf (Files): Add m4/printf.m4.
48698         * modules/vsnprintf (Files): Likewise.
48699         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48700         * doc/posix-functions/vsnprintf.texi: Likewise.
48701
48702 2008-04-19  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48705         from 0.0058 to less than 10^-7.
48706
48707 2008-04-19  Bruno Haible  <bruno@clisp.org>
48708
48709         Fix rounding when a precision is given.
48710         * lib/vasnprintf.c (is_borderline): New function.
48711         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48712         9...9x.
48713         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48714         %e, %g.
48715         * tests/test-vasprintf-posix.c (test_function): Likewise.
48716         * tests/test-snprintf-posix.h (test_function): Likewise.
48717         * tests/test-sprintf-posix.h (test_function): Likewise.
48718         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48719         * tests/test-printf-posix.h (test_function): Likewise.
48720         * tests/test-printf-posix.output: Update.
48721         Reported by John Darrington <john@darrington.wattle.id.au> via
48722         Ben Pfaff <blp@cs.stanford.edu>.
48723
48724 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48725
48726         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48727         Suggested by Bruno Haible <bruno@clisp.org>.
48728
48729 2008-04-17  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48732         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48733         implementation.
48734         Patch by Bruce Merry <bmerry@gmail.com>.
48735
48736 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48737
48738         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48739         doesn't work under Windows.
48740
48741 2008-04-16  Bruno Haible  <bruno@clisp.org>
48742
48743         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48744         New macros.
48745         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48746         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48747         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48748         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48749         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48750         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48751         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48752         macros.
48753         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48754         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48755         Northern Sotho, Uighur.
48756
48757 2008-04-16  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48760         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48761         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48762         Reported by Daniel Bergström <daniel@octocode.com>.
48763
48764 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48765             Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48768         function.
48769         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48770         New functions, mostly extracted from gl_locale_name_default.
48771         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48772
48773 2008-04-16  Eric Blake  <ebb9@byu.net>
48774
48775         Adjust strtod detection to catch glibc 2.7 bug.
48776         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48777         Reported by John Gatewood Ham.
48778
48779 2008-04-16  Bruno Haible  <bruno@clisp.org>
48780
48781         Add tentative support for Linux libc5.
48782         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48783         * lib/fpurge.c (fpurge): Likewise.
48784         * lib/freadable.c (freadable): Likewise.
48785         * lib/freadahead.c (freadahead): Likewise.
48786         * lib/freading.c (freading): Likewise.
48787         * lib/freadptr.c (freadptr): Likewise.
48788         * lib/freadseek.c (freadptrinc): Likewise.
48789         * lib/fseeko.c (rpl_fseeko): Likewise.
48790         * lib/fseterr.c (fseterr): Likewise.
48791         * lib/fwritable.c (fwritable): Likewise.
48792         * lib/fwriting.c (fwriting): Likewise.
48793         Reported by Alain Guibert <alguibert+bts@free.fr>.
48794
48795 2008-04-15  Bruno Haible  <bruno@clisp.org>
48796
48797         * modules/mathl (configure.ac): Define module indicator.
48798
48799 2008-04-15  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/logl.c (logl): Remove unused variables.
48802
48803 2008-04-15  Bruno Haible  <bruno@clisp.org>
48804
48805         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48806         fails.
48807
48808 2008-04-15  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/trim.c (trim2): Fix argument of isspace() macro.
48811
48812 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48813
48814         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48815         to 0.
48816         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48817
48818 2008-04-14  Bruno Haible  <bruno@clisp.org>
48819
48820         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48821         AC_LANG_PROGRAM argument.
48822         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48823         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48825         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48826         * m4/math_h.m4 (gl_MATH_H): Likewise.
48827         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48828         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48829         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48830         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48831         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48832         * m4/regex.m4 (gl_REGEX): Likewise.
48833         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48834         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48837         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48838         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48841
48842 2008-04-14  Jim Meyering  <meyering@redhat.com>
48843
48844         test-strtod: fix typos: s/abs/fabs/
48845         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48846
48847 2008-04-13  Bruno Haible  <bruno@clisp.org>
48848
48849         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48850         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48851         module is also used and while not building the reloc-wrapper.
48852
48853 2008-04-13  Bruno Haible  <bruno@clisp.org>
48854
48855         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48856
48857 2008-04-13  Bruno Haible  <bruno@clisp.org>
48858
48859         Fix AIX compilation failure introduced on 2008-04-02.
48860         * tests/test-frexp.c (exp): Undefine before redefining.
48861         * tests/test-frexpl.c (exp): Likewise.
48862
48863 2008-04-13  Bruno Haible  <bruno@clisp.org>
48864
48865         Work around a HP-UX stdio bug.
48866         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48867         * tests/test-ftello.c (main): Likewise.
48868         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48869         * doc/posix-functions/ftello.texi: Likewise.
48870
48871 2008-04-13  Bruno Haible  <bruno@clisp.org>
48872
48873         Make test-signbit pass on HP-UX/hppa.
48874         * tests/test-signbit.c (minus_zerol): New variable.
48875         (test_signbitl): Use it.
48876
48877 2008-04-13  Bruno Haible  <bruno@clisp.org>
48878
48879         Make truncl work on OSF/1 4.0.
48880         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48881         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48882         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48884         HAVE_DECL_TRUNCL.
48885         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48886         HAVE_DECL_TRUNCL.
48887         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48888
48889 2008-04-13  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48892
48893 2008-04-13  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48896         expression, so as to avoid HP-UX 11 cc compiler bug.
48897
48898 2008-04-13  Bruno Haible  <bruno@clisp.org>
48899
48900         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48901
48902 2008-04-13  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/git-merge-changelog.c: Remove empty declaration outside of
48905         functions.
48906
48907 2008-04-13  Bruno Haible  <bruno@clisp.org>
48908
48909         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48910
48911 2008-04-13  Bruno Haible  <bruno@clisp.org>
48912
48913         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48914         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48916         also if it exists but lacks definitions of the SHUT_* macros.
48917         * modules/sys_socket (Description): Update.
48918         Reported by Elbert Pol <e.pol@chello.nl>.
48919
48920 2008-04-13  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/localcharset.c (OS2): Don't redefine if already defined.
48923         Reported by Elbert Pol <e.pol@chello.nl>.
48924
48925 2008-04-13  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/binary-io.h [__EMX__]: Include <io.h>.
48928         Reported by Elbert Pol <e.pol@chello.nl>.
48929
48930 2008-04-12  Bruno Haible  <bruno@clisp.org>
48931
48932         * lib/fpucw.h: Enable the definitions also for x86_64.
48933         Needed for NetBSD/x86_64.
48934         Reported by Thomas Klausner <tk@giga.or.at>.
48935
48936 2008-04-12  Bruno Haible  <bruno@clisp.org>
48937
48938         * tests/test-strtod.c: Include isnand.h.
48939         (main): Use isnand instead of isnan.
48940         Reported by Jim Meyering.
48941
48942 2008-04-12  Bruno Haible  <bruno@clisp.org>
48943
48944         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48945         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48946
48947 2008-04-12  Jim Meyering  <meyering@redhat.com>
48948
48949         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48950
48951 2008-04-12  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48954         Reported by Elbert Pol <e.pol@chello.nl>.
48955
48956 2008-04-12  Eric Blake  <ebb9@byu.net>
48957
48958         Work around Solaris 10 math.h bug.
48959         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48960         (gl_MATH_H_DEFAULTS): Set up default.
48961         * modules/math (Makefile.am): Replace new indicators.
48962         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48963         * tests/test-math.c (main): Test this.
48964         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48965         * doc/posix-headers/math.texi (math.h): Mention bug.
48966         Reported by Nelson H. F. Beebe and Jim Meyering.
48967
48968 2008-04-11  Bruno Haible  <bruno@clisp.org>
48969
48970         Adapt to future versions of Apple GCC.
48971         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48972         Reported by Peter O'Gorman <peter@pogma.com>.
48973
48974 2008-04-11  Bruno Haible  <bruno@clisp.org>
48975
48976         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48977
48978 2008-04-11  Bruno Haible  <bruno@clisp.org>
48979
48980         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48981
48982         * modules/getaddrinfo-tests (Makefile.am): Define
48983         test_getaddrinfo_LDADD.
48984
48985 2008-04-11  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48988         (init): Fix syntax error.
48989         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48990         is declared.
48991
48992 2008-04-11  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48995         * modules/glob (Depends-on): Add stdbool.
48996
48997 2008-04-11  Bruno Haible  <bruno@clisp.org>
48998
48999         * lib/trim.c: Include <string.h>.
49000
49001 2008-04-11  Eric Blake  <ebb9@byu.net>
49002
49003         Avoid compile failure on OS/2.
49004         * lib/regex_internal.h (internal_function): Disable optimization
49005         on OS/2 (__EMX__), where it caused compiler error.
49006         Reported by Elbert Pol.
49007
49008 2008-04-11  Bruno Haible  <bruno@clisp.org>
49009
49010         Flush the standard error stream before aborting. Needed on mingw.
49011         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49012         * tests/test-array_list.c (ASSERT): Likewise.
49013         * tests/test-array_oset.c (ASSERT): Likewise.
49014         * tests/test-avltree_list.c (ASSERT): Likewise.
49015         * tests/test-avltree_oset.c (ASSERT): Likewise.
49016         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49017         * tests/test-binary-io.c (ASSERT): Likewise.
49018         * tests/test-byteswap.c (ASSERT): Likewise.
49019         * tests/test-c-ctype.c (ASSERT): Likewise.
49020         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49021         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49022         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49023         * tests/test-c-strstr.c (ASSERT): Likewise.
49024         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49025         * tests/test-canonicalize.c (ASSERT): Likewise.
49026         * tests/test-carray_list.c (ASSERT): Likewise.
49027         * tests/test-ceilf1.c (ASSERT): Likewise.
49028         * tests/test-ceilf2.c (ASSERT): Likewise.
49029         * tests/test-ceill.c (ASSERT): Likewise.
49030         * tests/test-count-one-bits.c (ASSERT): Likewise.
49031         * tests/test-fbufmode.c (ASSERT): Likewise.
49032         * tests/test-fflush2.c (ASSERT): Likewise.
49033         * tests/test-floorf1.c (ASSERT): Likewise.
49034         * tests/test-floorf2.c (ASSERT): Likewise.
49035         * tests/test-floorl.c (ASSERT): Likewise.
49036         * tests/test-fopen.c (ASSERT): Likewise.
49037         * tests/test-fpending.c (ASSERT): Likewise.
49038         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49039         * tests/test-fpurge.c (ASSERT): Likewise.
49040         * tests/test-freadable.c (ASSERT): Likewise.
49041         * tests/test-freadahead.c (ASSERT): Likewise.
49042         * tests/test-freading.c (ASSERT): Likewise.
49043         * tests/test-freadptr.c (ASSERT): Likewise.
49044         * tests/test-freadptr2.c (ASSERT): Likewise.
49045         * tests/test-freadseek.c (ASSERT): Likewise.
49046         * tests/test-freopen.c (ASSERT): Likewise.
49047         * tests/test-frexp.c (ASSERT): Likewise.
49048         * tests/test-frexpl.c (ASSERT): Likewise.
49049         * tests/test-fseek.c (ASSERT): Likewise.
49050         * tests/test-fseeko.c (ASSERT): Likewise.
49051         * tests/test-fstrcmp.c (ASSERT): Likewise.
49052         * tests/test-ftell.c (ASSERT): Likewise.
49053         * tests/test-ftello.c (ASSERT): Likewise.
49054         * tests/test-func.c (ASSERT): Likewise.
49055         * tests/test-fwritable.c (ASSERT): Likewise.
49056         * tests/test-fwriting.c (ASSERT): Likewise.
49057         * tests/test-getdelim.c (ASSERT): Likewise.
49058         * tests/test-getline.c (ASSERT): Likewise.
49059         * tests/test-i-ring.c (ASSERT): Likewise.
49060         * tests/test-iconv-utf.c (ASSERT): Likewise.
49061         * tests/test-iconv.c (ASSERT): Likewise.
49062         * tests/test-isfinite.c (ASSERT): Likewise.
49063         * tests/test-isnand.c (ASSERT): Likewise.
49064         * tests/test-isnanf.c (ASSERT): Likewise.
49065         * tests/test-isnanl.h (ASSERT): Likewise.
49066         * tests/test-ldexpl.c (ASSERT): Likewise.
49067         * tests/test-linked_list.c (ASSERT): Likewise.
49068         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49069         * tests/test-localename.c (ASSERT): Likewise.
49070         * tests/test-lseek.c (ASSERT): Likewise.
49071         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49072         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49073         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49074         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49075         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49076         * tests/test-mbschr.c (ASSERT): Likewise.
49077         * tests/test-mbscspn.c (ASSERT): Likewise.
49078         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49079         * tests/test-mbspbrk.c (ASSERT): Likewise.
49080         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49081         * tests/test-mbsrchr.c (ASSERT): Likewise.
49082         * tests/test-mbsspn.c (ASSERT): Likewise.
49083         * tests/test-mbsstr1.c (ASSERT): Likewise.
49084         * tests/test-mbsstr2.c (ASSERT): Likewise.
49085         * tests/test-mbsstr3.c (ASSERT): Likewise.
49086         * tests/test-memchr2.c (ASSERT): Likewise.
49087         * tests/test-memmem.c (ASSERT): Likewise.
49088         * tests/test-open.c (ASSERT): Likewise.
49089         * tests/test-printf-frexp.c (ASSERT): Likewise.
49090         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49091         * tests/test-printf-posix.c (ASSERT): Likewise.
49092         * tests/test-quotearg.c (ASSERT): Likewise.
49093         * tests/test-rbtree_list.c (ASSERT): Likewise.
49094         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49095         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49096         * tests/test-round1.c (ASSERT): Likewise.
49097         * tests/test-roundf1.c (ASSERT): Likewise.
49098         * tests/test-roundl.c (ASSERT): Likewise.
49099         * tests/test-signbit.c (ASSERT): Likewise.
49100         * tests/test-sleep.c (ASSERT): Likewise.
49101         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49102         * tests/test-snprintf.c (ASSERT): Likewise.
49103         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49104         * tests/test-stat-time.c (ASSERT): Likewise.
49105         * tests/test-strcasestr.c (ASSERT): Likewise.
49106         * tests/test-strerror.c (ASSERT): Likewise.
49107         * tests/test-striconv.c (ASSERT): Likewise.
49108         * tests/test-striconveh.c (ASSERT): Likewise.
49109         * tests/test-striconveha.c (ASSERT): Likewise.
49110         * tests/test-strsignal.c (ASSERT): Likewise.
49111         * tests/test-strstr.c (ASSERT): Likewise.
49112         * tests/test-strtod.c (ASSERT): Likewise.
49113         * tests/test-trunc1.c (ASSERT): Likewise.
49114         * tests/test-trunc2.c (ASSERT): Likewise.
49115         * tests/test-truncf1.c (ASSERT): Likewise.
49116         * tests/test-truncf2.c (ASSERT): Likewise.
49117         * tests/test-truncl.c (ASSERT): Likewise.
49118         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49119         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49120         * tests/test-vasnprintf.c (ASSERT): Likewise.
49121         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49122         * tests/test-vasprintf.c (ASSERT): Likewise.
49123         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49124         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49125         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49126         * tests/test-vsnprintf.c (ASSERT): Likewise.
49127         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49128         * tests/test-wcwidth.c (ASSERT): Likewise.
49129         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49130         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49131         * tests/test-xvasprintf.c (ASSERT): Likewise.
49132         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49133         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49134         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49135         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49136         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49137         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49138         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49139         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49140         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49141         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49142         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49143         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49144         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49145         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49146         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49147         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49148         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49149         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49150         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49151         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49152         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49153         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49154         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49155         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49156         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49157         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49158         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49159         * tests/unictype/test-combining.c (ASSERT): Likewise.
49160         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49161         * tests/unictype/test-digit.c (ASSERT): Likewise.
49162         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49163         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49164         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49165         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49166         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49167         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49168         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49169         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49170         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49171         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49172         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49173         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49174         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49175         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49176         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49177         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49178         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49179         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49180         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49181         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49182         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49183         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49184         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49185         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49186         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49187         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49188         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49189         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49190         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49191         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49192         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49193         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49194         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49195         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49196         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49197         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49198         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49199         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49200         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49201         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49202         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49203         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49204         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49205         Reported by Eric Blake.
49206
49207 2008-04-11  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/wchar.in.h: Tweak comment.
49210
49211 2008-04-11  Bruno Haible  <bruno@clisp.org>
49212
49213         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49214         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49215         gl_COMMON.
49216         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49217
49218 2008-04-11  Bruno Haible  <bruno@clisp.org>
49219
49220         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49221
49222 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49223
49224         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49225         of attempting to use non-existing /dev/*random.  Based on patch
49226         from Adam Strzelecki <ono@java.pl> in
49227         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49228
49229 2008-04-08  Bruno Haible  <bruno@clisp.org>
49230
49231         Add tentative support for emx+gcc.
49232         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49233         * lib/fpurge.c (fpurge): Likewise.
49234         * lib/freadable.c (freadable): Likewise.
49235         * lib/freadahead.c (freadahead): Likewise.
49236         * lib/freading.c (freading): Likewise.
49237         * lib/freadptr.c (freadptr): Likewise.
49238         * lib/freadseek.c (freadptrinc): Likewise.
49239         * lib/fseeko.c (rpl_fseeko): Likewise.
49240         * lib/fseterr.c (fseterr): Likewise.
49241         * lib/fwritable.c (fwritable): Likewise.
49242         * lib/fwriting.c (fwriting): Likewise.
49243         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49244
49245 2008-04-09  Eric Blake  <ebb9@byu.net>
49246
49247         Avoid some autoconf warnings.
49248         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49249         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49250         * m4/afs.m4 (gl_AFS): Likewise.
49251         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49252         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49253         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49254         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49255         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49256         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49257         (AC_CHECK_DECLS_ONCE): Likewise.
49258         Rename file...
49259         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49260         gnulib-tool requires autoconf 2.59 or better.
49261         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49262
49263 2008-04-08  Eric Blake  <ebb9@byu.net>
49264
49265         Use 'git describe --match' if present (added in git 1.5.5).
49266         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49267         if possible.
49268
49269 2008-04-08  Bruno Haible  <bruno@clisp.org>
49270
49271         Add tentative support for OpenServer.
49272         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49273         _ptr, _cnt.
49274         * lib/fpurge.c (fpurge): Likewise.
49275         * lib/freadable.c (freadable): Likewise.
49276         * lib/freadahead.c (freadahead): Likewise.
49277         * lib/freading.c (freading): Likewise.
49278         * lib/freadptr.c (freadptr): Likewise.
49279         * lib/freadseek.c (freadptrinc): Likewise.
49280         * lib/fseeko.c (rpl_fseeko): Likewise.
49281         * lib/fseterr.c (fseterr): Likewise.
49282         * lib/fwritable.c (fwritable): Likewise.
49283         * lib/fwriting.c (fwriting): Likewise.
49284         Reported by Roger Cornelius <rac@tenzing.org> and
49285         Brian K. White <brian@aljex.com>.
49286
49287 2008-04-06  Jim Meyering  <meyering@redhat.com>
49288
49289         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49290
49291 2008-04-06  Bruno Haible  <bruno@clisp.org>
49292
49293         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49294         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49295         * tests/test-printf-posix.sh: Likewise.
49296         * tests/test-vfprintf-posix.sh: Likewise.
49297         * tests/test-vprintf-posix.sh: Likewise.
49298         * tests/test-xprintf-posix.sh: Likewise.
49299
49300 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301
49302         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49303         hide error from 'ls', needed on OS/2.
49304         Report by Elbert Pol <elbert.pol@gmail.com>.
49305
49306 2008-04-04  Eric Blake  <ebb9@byu.net>
49307
49308         Make test-fseeko.c failures meaningful.
49309         * tests/test-fseeko.c: Print line number on failure.
49310         * tests/test-fseek.c: Likewise.
49311         Reported by Nelson H. F. Beebe.
49312
49313         Improve strtod bug detection check.
49314         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49315         required for Solaris 10.
49316         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49317
49318 2008-04-04  Bruno Haible  <bruno@clisp.org>
49319
49320         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49321         by m4/setenv.m4.
49322
49323 2008-04-03  Eric Blake  <ebb9@byu.net>
49324
49325         Ensure sane .version contents.
49326         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49327         version string.
49328         * build-aux/git-version-gen: Improve documentation.
49329
49330         Make GNU make output nicer.
49331         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49332         MAKECMDGOALS to enforce message for all command line targets.  Set
49333         srcdir for use in maint.mk.
49334
49335         Another maintainer tweak.
49336         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49337         a target that regenerates version.
49338
49339 2008-04-03  Jim Meyering  <meyering@redhat.com>
49340
49341         vc-list-files: don't cause coreutils "make po-check" failure
49342         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49343
49344 2008-04-03  Eric Blake  <ebb9@byu.net>
49345
49346         Allow VPATH usage of vc-list-files.
49347         * build-aux/vc-list-files (scriptversion): Add timestamp.
49348         (options): Add --help, --version, -C.
49349         (CVS): Support installed cvsu.
49350
49351 2008-04-02  Bruno Haible  <bruno@clisp.org>
49352
49353         Avoid some "statement with no effect" warnings from gcc.
49354         * tests/test-wctype.c (main): Explicitly ignore unused values.
49355         Reported by Jim Meyering.
49356
49357 2008-04-02  Jim Meyering  <meyering@redhat.com>
49358
49359         Avoid some warnings from "gcc -Wshadow".
49360         * tests/test-frexp.c (exp): Define to a different identifier.
49361         * tests/test-frexpl.c (exp): Likewise.
49362
49363 2008-04-03  Jim Meyering  <meyering@redhat.com>
49364
49365         bootstrap: remove dangling *.[ch] symlinks from lib
49366         * build-aux/bootstrap [dangling symlink removal]: Move find's
49367         -depth option to precede all others, to avoid a warning.
49368         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49369
49370 2008-04-02  Bruno Haible  <bruno@clisp.org>
49371
49372         Avoid some warnings from "gcc -Wshadow".
49373         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49374         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49375         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49376         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49377         Reported by Jim Meyering.
49378
49379 2008-04-01  Bruno Haible  <bruno@clisp.org>
49380
49381         Fix test to work on IRIX 6.5 with cc.
49382         * tests/test-math.c (numeric_equal): New function.
49383         (main): Use it.
49384
49385 2008-04-01  Bruno Haible  <bruno@clisp.org>
49386
49387         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49388
49389 2008-04-01  Bruno Haible  <bruno@clisp.org>
49390
49391         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49392         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49393         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49394         (Depends-on): Remove math.
49395
49396         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49397         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49398         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49399         (Depends-on): Remove math.
49400
49401         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49402         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49403         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49404         (Depends-on): Remove math.
49405         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49406         (Depends-on): Remove math.
49407
49408         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49409         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49410         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49411         (Depends-on): Remove math.
49412         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49413         (Depends-on): Remove math.
49414
49415         * tests/test-round1.c: Include nan.h.
49416         (main): Use NaNd instead of NAN.
49417         * modules/round-tests (Files): Add tests/nan.h.
49418
49419         * tests/test-trunc1.c: Include nan.h.
49420         (main): Use NaNd instead of NAN.
49421         * modules/trunc-tests (Files): Add tests/nan.h.
49422
49423         * tests/test-roundf1.c: Include nan.h.
49424         (main): Use NaNf instead of NAN.
49425         * modules/roundf-tests (Files): Add tests/nan.h.
49426
49427         * tests/test-truncf1.c: Include nan.h.
49428         (main): Use NaNf instead of NAN.
49429         * modules/truncf-tests (Files): Add tests/nan.h.
49430
49431         * tests/test-ceilf1.c: Include nan.h.
49432         (main): Use NaNf instead of NAN.
49433         * modules/ceilf-tests (Files): Add tests/nan.h.
49434
49435         * tests/test-floorf1.c: Include nan.h.
49436         (main): Use NaNf instead of NAN.
49437         * modules/floorf-tests (Files): Add tests/nan.h.
49438
49439         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49440         (main): Use NaNf instead of NAN.
49441         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49442
49443         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49444         (main): Use NaNd instead of NAN.
49445         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49446
49447         * tests/test-frexp.c: Include nan.h.
49448         (main): Use NaNd instead of NAN.
49449         * modules/frexp-tests (Files): Add tests/nan.h.
49450
49451         * lib/isnan.c: Don't include <math.h>.
49452         (FUNC): Don't use NAN macro.
49453         * modules/isnand-nolibm (Depends-on): Remove math.
49454         * modules/isnanf-nolibm (Depends-on): Remove math.
49455         * modules/isnanl (Depends-on): Remove math.
49456         * modules/isnanl-nolibm (Depends-on): Remove math.
49457
49458         * tests/nan.h: New file.
49459
49460 2008-04-01  Eric Blake  <ebb9@byu.net>
49461
49462         Fix typos.
49463         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49464         values to be the right type.
49465
49466         For now, cater to gnulib strtod inaccuracies.
49467         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49468         fractional results.  While not as nice from a QoI perspective, it
49469         is a quicker patch than correctly implementing decimal to binary
49470         rounding.
49471
49472 2008-03-31  Eric Blake  <ebb9@byu.net>
49473
49474         Guarantee a definition of NAN.
49475         * lib/math.in.h (NAN): Define if missing.
49476         * tests/test-math.c (main): Test it.
49477         * doc/posix-headers/math.texi (math.h): Document this.
49478         * lib/isnan.c (rpl_isnand): Use it.
49479         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49480         * tests/test-floorf1.c (NaN): Likewise.
49481         * tests/test-frexp.c (NaN): Likewise.
49482         * tests/test-isnand.c (NaN): Likewise.
49483         * tests/test-isnanf.c (NaN): Likewise.
49484         * tests/test-round1.c (NaN): Likewise.
49485         * tests/test-roundf1.c (NaN): Likewise.
49486         * tests/test-snprintf-posix.h (NaN): Likewise.
49487         * tests/test-sprintf-posix.h (NaN): Likewise.
49488         * tests/test-trunc1.c (NaN): Likewise.
49489         * tests/test-truncf1.c (NaN): Likewise.
49490         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49491         * tests/test-vasprintf-posix.c (NaN): Likewise.
49492         * modules/isnand-nolibm (Depends-on): Add math.
49493         * modules/isnanf-nolibm (Depends-on): Likewise.
49494         * modules/isnanl (Depends-on): Likewise.
49495         * modules/isnanl-nolibm (Depends-on): Likewise.
49496         * modules/snprintf-posix-tests (Depends-on): Likewise.
49497         * modules/sprintf-posix-tests (Depends-on): Likewise.
49498         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49499         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49500         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49501         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49502
49503 2008-03-31  Bruno Haible  <bruno@clisp.org>
49504
49505         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49506         * doc/posix-functions/strtod.texi: Likewise.
49507
49508 2008-03-31  Bruno Haible  <bruno@clisp.org>
49509
49510         * tests/test-strtod.c (main): Don't use C99 syntax.
49511
49512 2008-03-31  Bruno Haible  <bruno@clisp.org>
49513
49514         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49515         Reported by Eric Blake.
49516
49517 2008-03-31  Jim Meyering  <meyering@redhat.com>
49518
49519         Don't compare actual signbit return values.
49520         * tests/test-strtod.c (main): Rather, compare only their
49521         zero/non-zero nature.
49522
49523 2008-03-31  Eric Blake  <ebb9@byu.net>
49524
49525         More strtod documentation.
49526         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49527         failures as distinct bugs.
49528
49529 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49532         Problem reported by Erik Benada in
49533         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49534
49535 2008-03-30  Bruno Haible  <bruno@clisp.org>
49536
49537         * tests/test-strtod.c: Add comments about which assertion fails on which
49538         platform.
49539         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49540
49541 2008-03-30  Eric Blake  <ebb9@byu.net>
49542
49543         Test signbit behavior on zeros.
49544         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49545         (test_signbitd, test_signbitl): Likewise.
49546
49547         More strtod touchups.
49548         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49549         sign of negative underflow, for now.  Use .5, not .1.
49550         * doc/posix-functions/strtod.texi (strtod): Mention these
49551         limitations.
49552         Reported by Jim Meyering.
49553
49554 2008-03-30  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49557         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49558
49559 2008-03-30  Bruno Haible  <bruno@clisp.org>
49560
49561         Avoid failure when attempting to return empty iconv results on some
49562         platforms.
49563         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49564         allocation, don't report ENOMEM when the resulting string is empty.
49565
49566 2008-03-30  Bruno Haible  <bruno@clisp.org>
49567
49568         Fix buffer overrun.
49569         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49570         Don't consider the width for tmp_length. Check count against tmp_length
49571         before doing the padding. Ensure enough allocation during padding.
49572
49573 2008-03-30  Eric Blake  <ebb9@byu.net>
49574
49575         strtod touchups.
49576         * lib/strtod.c (strtod): Avoid compiler warnings.
49577         Reported by Jim Meyering.
49578
49579 2008-03-30  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49582         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49583         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49584         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49585         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49586         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49587         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49588         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49589
49590         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49591         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49592         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49593         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49594         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49595         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49596         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49597         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49598
49599         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49600         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49601         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49602         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49603         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49604         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49605         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49606         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49607
49608         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49609         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49610
49611         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49612         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49613
49614         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49615         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49616
49617         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49619         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49620
49621         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49623         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49624
49625         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49627         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49628
49629         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49631         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49632
49633         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49634         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49635         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49636         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49637         (Depends-on): Add EOVERFLOW.
49638         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49639         (Depends-on): Add EOVERFLOW.
49640         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49641         (Depends-on): Add EOVERFLOW.
49642         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49643         (Depends-on): Add EOVERFLOW.
49644         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49645         (Depends-on): Add EOVERFLOW.
49646         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49647         (Depends-on): Add EOVERFLOW.
49648         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49649         (Depends-on): Add EOVERFLOW.
49650         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49651         (Depends-on): Add EOVERFLOW.
49652
49653         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49655         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49656
49657         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49659         * modules/snprintf (Depends-on): Add EOVERFLOW.
49660
49661         * lib/poll.c (EOVERFLOW): Remove fallback.
49662         * modules/poll (Depends-on): Add EOVERFLOW.
49663
49664         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49665         * modules/getugroups (Depends-on): Add EOVERFLOW.
49666
49667         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49668         * modules/getdelim (Depends-on): Add EOVERFLOW.
49669
49670         * lib/ftell.c (EOVERFLOW): Remove fallback.
49671         * modules/ftell (Depends-on): Add EOVERFLOW.
49672
49673         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49675         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49676
49677         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49678
49679         * modules/EOVERFLOW-tests: New file.
49680         * tests/test-EOVERFLOW.c: New file.
49681
49682         * modules/EOVERFLOW: New file.
49683         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49684
49685 2008-03-30  Bruno Haible  <bruno@clisp.org>
49686
49687         Fix bug introduced on 2007-06-10.
49688         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49689         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49690
49691 2008-03-30  Bruno Haible  <bruno@clisp.org>
49692
49693         Improve freadseek's efficiency after ungetc.
49694         * lib/freadseek.c: Include freadahead.h.
49695         (freadptrinc): New function, extracted from freadseek.
49696         (freadseek): Use it in a loop. Use freadahead to determine the number
49697         of loop iterations.
49698         * modules/freadseek (Depends-on): Add freadahead.
49699         (configure.ac): Require AC_C_INLINE.
49700
49701 2008-03-30  Bruno Haible  <bruno@clisp.org>
49702
49703         * lib/freadseek.c (freadseek): Don't ignore the return value of
49704         freadptr.
49705
49706 2008-03-29  Eric Blake  <ebb9@byu.net>
49707
49708         Add hex float support.
49709         * modules/strtod (Depends-on): Add c-ctype.
49710         (Link): Mention POW_LIB.
49711         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49712         whitespace between 'e' and exponent.
49713         * tests/test-strtod.c (main): Enable hex float tests.
49714         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49715         now provides.
49716
49717         Document various strtod bugs, with some fixes.
49718         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49719         "-0x", "inf", "nan", and hex constants.
49720         * doc/posix-functions/atof.texi (atof): Likewise.
49721         * modules/stdlib (Makefile.am): Support strtod.
49722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49723         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49724         detect additional strtod bugs.
49725         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49726         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49727         bool where appropriate.  Parse 'inf' and 'nan'.
49728         * tests/test-strtod.c: New file.
49729         * modules/strtod (Depends-on): Add stdbool, stdlib.
49730         (configure.ac): Turn on module indicator.
49731         * modules/strtod-tests: New module.
49732
49733 2008-03-29  Eric Blake  <ebb9@byu.net>
49734
49735         Fix ftell on mingw.
49736         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49737         * modules/ftell-tests (Depends-on): Add binary-io.
49738         * modules/ftello-tests (Depends-on): Likewise.
49739         * tests/test-ftell.c (main): Enhance test to cover behavior after
49740         ungetc.  Enforce binary mode.
49741         * tests/test-ftello.c (main): Likewise.
49742
49743         Pass test-freadseek on cygwin.
49744         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49745         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49746         ungetc buffer.
49747
49748         * tests/test-fflush2.c (main): Fix typo.
49749
49750 2008-03-29  Bruno Haible  <bruno@clisp.org>
49751
49752         * tests/test-fflush2.c (main): Temporarily disable the contents of
49753         this test.
49754         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49755         Reported by Eric Blake.
49756
49757 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49758
49759         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49760         (GC_SHA224_DIGEST_SIZE): Add.
49761
49762         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49763         (gc_hash_digest_length): Likewise.
49764         (gc_hash_buffer): Likewise.
49765
49766 2008-03-25  Bruno Haible  <bruno@clisp.org>
49767
49768         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49769         detail which gettext release to use.
49770         Reported by Simon Josefsson.
49771
49772 2008-03-26  Jim Meyering  <meyering@redhat.com>
49773
49774         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49775         * modules/gnumakefile (clean-GNUmakefile): Also, use
49776         test ... && ... || : syntax rather than if-then ... fi.
49777
49778         gnumakefile: Don't double-quote-expand $(VPATH) value.
49779         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49780
49781 2008-03-24  Eric Blake  <ebb9@byu.net>
49782
49783         Alter GNUmakefile to install into top directory.
49784         * modules/maintainer-makefile: Split, and add dependency...
49785         * modules/gnumakefile: to this new module.
49786         * build-aux/GNUmakefile: Move...
49787         * top/GNUmakefile: ...here.
49788         * build-aux/maint.mk: Move...
49789         * top/maint.mk: ...here.
49790         * MODULES.html.sh (Support for maintaining...): Document new
49791         module.
49792
49793 2008-03-23  Bruno Haible  <bruno@clisp.org>
49794
49795         * gnulib-tool: New options --vc-files, --no-vc-files.
49796         (func_usage): Document them.
49797         (vc_files): New variable.
49798         (func_import): Consider vc_files.
49799         (func_create_testdir): Set vc_files to empty.
49800         Suggested by Jim Meyering and Karl Berry.
49801
49802 2008-03-23  Bruno Haible  <bruno@clisp.org>
49803
49804         Fix regex compilation error on HP-UX 11.
49805         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49806         * modules/regex (Files): Add m4/mbstate_t.m4.
49807         Reported by Ton Voon <ton.voon@altinity.com>.
49808
49809 2008-03-23  Bruno Haible  <bruno@clisp.org>
49810
49811         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49812
49813 2008-03-23  Eric Blake  <ebb9@byu.net>
49814             Bruno Haible  <bruno@clisp.org>
49815
49816         Install files from top/ in the destination directory.
49817         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49818         augmentation also for the files from top/.
49819         (func_import, func_create_testdir): Rewrite file names:
49820         top/filename -> filename.
49821
49822 2008-03-23  Bruno Haible  <bruno@clisp.org>
49823
49824         Tweak "gnulib --version" output.
49825         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49826
49827 2008-03-23  Bruno Haible  <bruno@clisp.org>
49828
49829         Tweak "gnulib --version" output.
49830         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49831         rather than contents of ChangeLog, when possible.
49832
49833 2008-03-21  Eric Blake  <ebb9@byu.net>
49834
49835         More --version tweaks.
49836         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49837         date of last ChangeLog entry.
49838
49839 2008-03-21  Jim Meyering  <meyering@redhat.com>
49840
49841         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49842
49843 2008-03-20  Eric Blake  <ebb9@byu.net>
49844
49845         VPATH fix.
49846         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49847
49848 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49849
49850         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49851         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49852
49853 2008-03-20  Eric Blake  <ebb9@byu.net>
49854
49855         Sync GNUmakefile with coreutils.
49856         * build-aux/GNUmakefile (have-Makefile): Rename...
49857         (_have-Makefile): ...to this, for namespace consideration.
49858         (GNUmakefile.cfg): Include, if present.
49859         (_autoreconf): Define a default.
49860         (_is-dist-target): New rule for rebuilds to pick up intra-release
49861         version.
49862         (maint-cfg.mk): Rename...
49863         (cfg.mk): ...to this.
49864
49865 2008-03-18  Jim Meyering  <meyering@redhat.com>
49866
49867         New script and module: mktempd
49868         * MODULES.html.sh (maint+release support): Add mktempd.
49869         * build-aux/mktempd: New file.
49870         * modules/mktempd: New file.
49871
49872 2008-03-15  Jim Meyering  <meyering@redhat.com>
49873
49874         Undo last change.
49875         * lib/sha1.c, lib/md5.c: 63 != ~63.
49876         Reported by Andreas Schwab.
49877
49878         sha1.c, md5.c: Hoist a redundant expression.
49879         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49880         "ctx->buflen" only once, before calling *_process_block.
49881         * lib/md5.c (md5_process_bytes): Likewise.
49882
49883 2008-03-14  Eric Blake  <ebb9@byu.net>
49884
49885         Bump copyright year in files generated by gnulib-tool.
49886         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49887         gnulib-tool, rather than hard-coding it.
49888
49889         Fix 'gnulib-tool --version' output to work with git.
49890         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49891         (startup): ...here.
49892         (func_version): Use it to invoke git-version-gen, rather than
49893         relying on CVS keyword expansion.  Modernize wording.
49894         (cvsdatestamp, last_checkin_date, version): Kill unused
49895         variables.
49896
49897 2008-03-12  Jim Meyering  <meyering@redhat.com>
49898
49899         Recognize optional cast of the argument to free.
49900         * build-aux/useless-if-before-free: Update regexps.
49901
49902         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49903
49904 2008-03-11  Bruno Haible  <bruno@clisp.org>
49905
49906         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49907         by a single package.
49908         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49909         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49910         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49911         Reported by Sam Steingold <sds@gnu.org>.
49912
49913 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49914
49915         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49916         repositories.
49917
49918 2008-03-11  Bruno Haible  <bruno@clisp.org>
49919
49920         Avoid conflicts between local macro definitions.
49921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49922         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49923
49924 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49925             Bruno Haible  <bruno@clisp.org>
49926
49927         Make va_copy work with some version of xlc on AIX 5.1.
49928         * lib/stdarg.in.h: New file.
49929         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49930         On AIX, use a <stdarg.h> file substitute.
49931         * modules/stdarg (Files): Add lib/stdarg.in.h.
49932         (Depends-on): Add include_next.
49933         (Makefile.am): Build a stdarg.h substitute if requested.
49934         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49935
49936 2008-03-10  Bruno Haible  <bruno@clisp.org>
49937
49938         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49940         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49941
49942 2008-03-10  Bruno Haible  <bruno@clisp.org>
49943
49944         * modules/stdlib (Depends-on): Add include_next, remove
49945         absolute-header.
49946
49947 2008-03-09  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/freadahead.h (freadahead): Document more precisely.
49950         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49951         the sum of both buffer sizes.
49952         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49953         * NEWS: Document the change.
49954
49955 2008-03-09  Bruno Haible  <bruno@clisp.org>
49956
49957         Extend freadptr to return also the buffer size.
49958         * lib/freadptr.h (freadptr): Add sizep argument.
49959         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49960         (freadptr): Add sizep argument. Determine buffer size like freadahead
49961         does.
49962         * tests/test-freadptr.c: Don't include freadahead.h.
49963         (main): Adapt for new calling convention of freadptr.
49964         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49965         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49966         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49967         tests/test-freadptr2.sh.
49968         (Depends): Remove freadahead.
49969         (TESTS): Add test-freadptr2.sh.
49970         (check_PROGRAMS): Add test-freadptr2.
49971
49972 2008-03-09  Bruno Haible  <bruno@clisp.org>
49973
49974         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49975         Report and solution by Simon Josefsson.
49976
49977 2008-03-06  Bruno Haible  <bruno@clisp.org>
49978
49979         Make fflush after ungetc work on BSD platforms.
49980         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49981         * tests/test-fflush2.c: New file.
49982         * tests/test-fflush2.sh: New file.
49983         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49984         tests/test-fflush2.c.
49985         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49986         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49987
49988 2008-03-06  Eric Blake  <ebb9@byu.net>
49989
49990         Likewise for ftello.
49991         * modules/ftello (Dependencies): Add extensions.
49992         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49993
49994 2008-03-06  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/fseeko (Dependencies): Add extensions.
49997         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49998         Needed on glibc systems.
49999
50000 2008-03-06  Bruno Haible  <bruno@clisp.org>
50001
50002         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50003         email address.
50004         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50005
50006 2008-03-06  Bruno Haible  <bruno@clisp.org>
50007
50008         * users.txt: Add libgnupdf.
50009
50010 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50011
50012         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50013         (Header File Substitutes, Function Substitutes,
50014         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50015         (Build robot for gnulib): Fix typo.
50016
50017 2008-03-06  Bruno Haible  <bruno@clisp.org>
50018
50019         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50020         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50021
50022 2008-03-06  Bruno Haible  <bruno@clisp.org>
50023
50024         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50025         * doc/gnulib.texi: Include it.
50026
50027 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50028
50029         * modules/func (License): Change license to unlimited; there was
50030         no LGPL parts in the module anyway.
50031
50032 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50033
50034         * modules/__func__: Renamed to modules/func.
50035         * modules/__func__-tests: Renamed to modules/func-tests.
50036         * tests/test-__func__.c: Renamed to tests/test-func.c.
50037         * m4/__func__.m4: Renamed to m4/func.m4.
50038         * doc/gnulib.texi (__func__): Section renamed to func.
50039         Suggested by Eric Blake <ebb9@byu.net>.
50040
50041 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50042
50043         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50044         about __func__.  Make example self-contained.  Suggested by Eric
50045         Blake <ebb9@byu.net>.
50046
50047         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50048         Suggested by Eric Blake <ebb9@byu.net>.
50049
50050 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50051
50052         * modules/__func__: New file.
50053         * modules/__func__-tests: New file.
50054         * tests/test-__func__.c: New file.
50055         * m4/__func__.m4: New file.
50056         * doc/gnulib.texi (__func__): Document __func__ module.
50057
50058 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50059
50060         * modules/byteswap (License): Re-license as LGPLv2+.
50061
50062 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50063
50064         * doc/Makefile: Add pdf target.
50065
50066 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50067
50068         * modules/inline (License): Use 'unlimited', since there are only
50069         *.m4 files in this module.
50070
50071 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50072             Bruno Haible  <bruno@clisp.org>
50073
50074         Add support for HP C 7.1 on OpenVMS 8.3.
50075         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50076
50077 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50078
50079         Update VMS specifics.
50080         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50081
50082 2008-03-02  Jim Meyering  <meyering@redhat.com>
50083
50084         Remove the last dependency on the "free" module.
50085         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50086         Reported by Bob Proulx.
50087
50088         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50089
50090         Remove useless "if" tests before free.  Deprecate "free" module.
50091         * doc/posix-functions/free.texi: Mention that this
50092         module is no longer useful.
50093         * modules/free (Notice): Say this module is obsolete.
50094         * modules/readutmp (Depends-on): Remove free.
50095         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50096         * lib/putenv.c (putenv): Likewise.
50097         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50098         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50099         * tests/test-c-strcasestr.c (main): Likewise.
50100         * tests/test-c-strstr.c (main): Likewise.
50101         * tests/test-mbscasestr1.c (main): Likewise.
50102         * tests/test-mbscasestr2.c (main): Likewise.
50103         * tests/test-mbsstr1.c (main): Likewise.
50104         * tests/test-mbsstr2.c (main): Likewise.
50105         * tests/test-memmem.c (main): Likewise.
50106         * tests/test-strcasestr.c (main): Likewise.
50107         * tests/test-striconv.c (main): Likewise.
50108         * tests/test-striconveh.c (main): Likewise.
50109         * tests/test-striconveha.c (main): Likewise.
50110         * tests/test-strstr.c (main): Likewise.
50111
50112         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50113
50114         bootstrap: sync from coreutils again
50115         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50116
50117 2008-03-01  Jim Meyering  <meyering@redhat.com>
50118
50119         bootstrap: sync from coreutils
50120         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50121         also when the target doesn't exist.
50122
50123 2008-03-01  Eric Blake  <ebb9@byu.net>
50124
50125         Fix bugs in last patch.
50126         * lib/memchr2.c (memchr2): Fix typo.
50127         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50128         extension.
50129         Reported by Bruce Korb.
50130
50131         New module 'memchr2'.
50132         * modules/memchr2: New file.
50133         * modules/memchr2-tests: Likewise.
50134         * lib/memchr2.h: Likewise.
50135         * lib/memchr2.c: Likewise, based on memchr.c.
50136         * tests/test-memchr2.c: New test.
50137         * MODULES.html.sh (String handling): Add memchr2.
50138
50139 2008-02-29  Bruno Haible  <bruno@clisp.org>
50140
50141         * modules/freadseek-tests: New file.
50142         * tests/test-freadseek.sh: New file.
50143         * tests/test-freadseek.c: New file.
50144
50145         New module 'freadseek'.
50146         * modules/freadseek: New file.
50147         * lib/freadseek.h: New file.
50148         * lib/freadseek.c: New file.
50149         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50150
50151 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50152
50153         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50154         wydawca.
50155
50156         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50157         program_invocation_name and program_invocation_short_name are
50158         present.
50159
50160 2008-02-28  Bruno Haible  <bruno@clisp.org>
50161
50162         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50163         * tests/test-freadptr.sh: Also test non-seekable stdin.
50164
50165 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50166
50167         * build-aux/bootstrap (source_base, m4_base)
50168         (doc_base, tests_base): New variables.
50169         (gnulib_tool_options): Do not hardcode base directories, use
50170         the above variables instead.
50171
50172 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50173
50174         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50175
50176 2008-02-28  Bruno Haible  <bruno@clisp.org>
50177
50178         * modules/freadptr-tests: New file.
50179         * tests/test-freadptr.sh: New file.
50180         * tests/test-freadptr.c: New file.
50181
50182         New module 'freadptr'.
50183         * modules/freadptr: New file.
50184         * lib/freadptr.h: New file.
50185         * lib/freadptr.c: New file.
50186         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50187
50188 2008-02-26  Karl Berry  <karl@freefriends.org>
50189
50190         Sync from Libtool:
50191         * libltdl/argz.c (argz_add, argz_count): New functions.
50192         * libltdl/argz.in.h: Declare them.
50193         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50194
50195 2008-02-22  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50198         is a pointer type.  Needed for HP-UX 10.
50199         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50200         * doc/posix-functions/gmtime_r.texi: Likewise.
50201         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50202
50203 2008-02-24  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/environ-tests: New file.
50206         * tests/test-environ.c: New file.
50207
50208         New module 'environ'.
50209         * modules/environ: New file.
50210         * lib/unistd.in.h (environ): New declaration.
50211         * m4/environ.m4: New file.
50212         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50213         after use.
50214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50215         HAVE_DECL_ENVIRON.
50216         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50217         HAVE_DECL_ENVIRON.
50218         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50219         wrong claim that 'environ' is missing on some systems.
50220         * modules/execute (Depends-on): Add environ.
50221         * lib/execute.c (environ): Remove fallback declaration.
50222         * modules/pipe (Depends-on): Add environ.
50223         * lib/pipe.c (environ): Remove fallback declaration.
50224         * modules/setenv (Depends-on): Add environ.
50225         * lib/setenv.c (environ): Remove fallback declaration.
50226         * modules/unsetenv (Depends-on): Add environ.
50227         * lib/unsetenv.c (environ): Remove fallback declaration.
50228         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50229         m4/environ.m4.
50230         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50231         (gl_PREREQ_UNSETENV): Likewise.
50232
50233 2008-02-24  Bruno Haible  <bruno@clisp.org>
50234
50235         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50236
50237 2008-02-20  Bob Proulx  <bob@proulx.com>
50238
50239         Enable use of older two part flavor 'git describe'.
50240         * build-aux/git-version-gen: If using the older two part flavor of
50241         git version then recreate the third part now present in the
50242         newer three part flavor of git describe.
50243
50244 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50245
50246         * lib/fts.c (fts_build): Typo correction to comment.
50247
50248 2008-02-17  Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50251         generating no-op conflicts.
50252
50253 2008-02-17  Bruno Haible  <bruno@clisp.org>
50254
50255         Speed up by 10%.
50256         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50257         result_entries, rather than an index-based loop.
50258
50259 2008-02-17  Bruno Haible  <bruno@clisp.org>
50260
50261         Speed up by 25%.
50262         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50263         'hashcode_cached'.
50264         (entry_create): New function.
50265         (entry_hashcode): Use the cached hashcode if possible.
50266         (read_changelog_file, try_split_merged_entry): Use entry_create.
50267
50268 2008-02-17  Bruno Haible  <bruno@clisp.org>
50269
50270         Speed up from O(n^2) to O(n) for long ChangeLog files.
50271         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50272         (read_changelog_file): Change implementation of entries_reversed list
50273         to rbtreehash.
50274         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50275
50276 2008-02-17  Bruno Haible  <bruno@clisp.org>
50277
50278         New option --split-merged-entry.
50279         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50280         (find_paragraph_end, try_split_merged_entry): New functions.
50281         (long_options): Add option --split-merged-entry.
50282         (usage): Document option --split-merged-entry.
50283         (main): Implement option --split-merged-entry.
50284         Reported by Eric Blake.
50285
50286 2008-02-17  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/git-merge-changelog.c: Include c-strstr.h.
50289         (main): Support the "git pull --rebase" situation.
50290         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50291         Reported by Eric Blake.
50292
50293 2008-02-16  Eric Blake  <ebb9@byu.net>
50294
50295         Avoid doubling \ in common case of "c-maybe" quoting style.
50296         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50297         eliding outer quotes.
50298         * lib/quotearg.h: Document this.
50299         * tests/test-quotearg.c (result_strings, inputs, results_g)
50300         (flag_results, locale_results): Test it by adding a new string to
50301         each test group.
50302         (compare_strings): Test new string.
50303
50304 2008-02-13  Eric Blake  <ebb9@byu.net>
50305
50306         Avoid trigraph quoting in default output.
50307         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50308         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50309         unless explicitly requested.
50310         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50311
50312 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50313
50314         Don't rely on signed integer overflowing to negative value.
50315         * lib/getugroups.c (getugroups): Include <limits.h>.
50316         Instead, compare against INT_MAX, and increment only if the test passes.
50317
50318 2008-02-13  Jim Meyering  <meyering@redhat.com>
50319         and Eric Blake  <ebb9@byu.net>
50320
50321         Avoid shadowing warning and compile errors on Linux.
50322         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50323         forwarding macros on Linux.
50324         (dcgettext): Define a stub, for Linux.
50325         (results_g, main): Avoid warnings.
50326
50327 2008-02-12  Eric Blake  <ebb9@byu.net>
50328
50329         Silence warning in last patch.
50330         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50331
50332         Quotearg part 4: add tests, fix c-maybe colon quoting.
50333         * lib/quotearg.h: Improve documentation.
50334         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50335         escapes when adding outer quotes.  When quoting trigraphs, use
50336         valid C notation.  When quoting NUL, omit extra characters if next
50337         character is not digit.  Alter prototype.
50338         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50339         callers.
50340         * modules/quotearg-tests: New module.
50341         * tests/test-quotearg.c: New test.
50342
50343 2008-02-07  Eric Blake  <ebb9@byu.net>
50344
50345         Quotearg part 3: add flag to control outer quote elision.
50346         * lib/quotearg.h (c_maybe_quoting_style): New style.
50347         (enum quoting_flags): Better documentation of flags.
50348         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50349         c-maybe style.
50350         (quotearg_buffer_restyled): Handle new flag to elide outer
50351         quotes.
50352
50353         Quotearg part 2: add flag that can control NUL elision.
50354         * lib/quotearg.h (set_quoting_flags): New prototype.
50355         * lib/quotearg.c (struct quoting_options): Add flag field.
50356         (set_quoting_flags): New function.
50357         (quotearg_buffer_restyled): Add flags parameter.
50358         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50359         (quotearg_n_options): Set the flag, since length cannot be
50360         returned.
50361         (quoting_options_from_style): Default flags correctly.
50362
50363         Quotearg part 1: more wrappers, restore quotearg_char state.
50364         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50365         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50366         (quotearg_colon_mem): New wrappers.
50367         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50368         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50369         functions.
50370         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50371         (quotearg_colon_mem): New functions.
50372
50373 2008-02-11  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50376         library in the current directory: it does not work with parallel make.
50377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50378
50379 2008-02-11  Bruno Haible  <bruno@clisp.org>
50380
50381         * .gitattributes: New file.
50382
50383 2008-02-11  Jim Meyering  <meyering@redhat.com>
50384
50385         useless-if-before-free: Fix reversed exit values.
50386         * build-aux/useless-if-before-free: Use correct values
50387         for EXIT_MATCH and EXIT_NO_MATCH.
50388
50389         * build-aux/useless-if-before-free: Close stdout carefully.
50390
50391 2008-02-10  Bruno Haible  <bruno@clisp.org>
50392
50393         New module 'git-merge-changelog'.
50394         * modules/git-merge-changelog: New file.
50395         * lib/git-merge-changelog.c: New file.
50396
50397 2008-02-10  Jim Meyering  <meyering@redhat.com>
50398
50399         useless-if-before-free: New option: --list (-l).
50400
50401         useless-if-before-free: Don't exit immediately upon open failure.
50402         * build-aux/useless-if-before-free: Exit 2 for errors.
50403         Upon failure to open a file, don't exit immediately.
50404         Rather, just warn and continue with any remaining files.
50405
50406 2008-02-10  Bruno Haible  <bruno@clisp.org>
50407
50408         New abstract list operation 'node_set_value'.
50409         * lib/gl_list.h (gl_list_node_set_value): New function.
50410         (struct gl_list_implementation): New field node_set_value.
50411         * lib/gl_list.c (gl_list_node_set_value): New function.
50412         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50413         (gl_array_list_implementation): Update.
50414         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50415         (gl_carray_list_implementation): Update.
50416         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50417         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50418         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50419         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50420         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50421         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50422         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50423         Update.
50424         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50425         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50426         (gl_sublist_list_implementation): Update.
50427
50428 2008-02-10  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50431         Needed when ELEMENT is #defined to 'some_type *'.
50432
50433 2008-02-10  Jim Meyering  <meyering@redhat.com>
50434
50435         New script and module: useless-if-before-free
50436         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50437         * build-aux/useless-if-before-free: New file.
50438         * modules/useless-if-before-free: New file.
50439
50440         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50441
50442         xstrtol_error: Fix typo.
50443         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50444         s/exit_failure/exit_status/.
50445
50446 2008-02-09  Jim Meyering  <meyering@redhat.com>
50447
50448         New script and module: gitlog-to-changelog
50449         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50450         * modules/gitlog-to-changelog: New file.
50451         * build-aux/gitlog-to-changelog: New file.
50452
50453 2008-02-08  Jim Meyering  <meyering@redhat.com>
50454
50455         Avoid two "parameter unused" warnings.
50456         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50457         Mark "st" as used.
50458
50459         Use "git COMMAND", not "git-COMMAND".
50460         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50461         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50462         * build-aux/git-version-gen: Use "git status", not "git-status".
50463
50464 2008-02-07  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50467         Avoids a crash on Windows Vista.
50468         Reported by Adam Strzelecki <ono@java.pl> via
50469         Simon Josefsson <simon@josefsson.org>.
50470
50471 2008-02-06  Bruno Haible  <bruno@clisp.org>
50472
50473         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50474         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50475         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50477         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50478         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50479         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50480         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50488         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50489         left-adjust flag.
50490         * tests/test-snprintf-posix.h (test_function): Likewise.
50491         * tests/test-sprintf-posix.h (test_function): Likewise.
50492         * tests/test-vasprintf-posix.c (test_function): Likewise.
50493         * doc/posix-functions/fprintf.texi: Update.
50494         * doc/posix-functions/printf.texi: Update.
50495         * doc/posix-functions/snprintf.texi: Update.
50496         * doc/posix-functions/sprintf.texi: Update.
50497         * doc/posix-functions/vfprintf.texi: Update.
50498         * doc/posix-functions/vprintf.texi: Update.
50499         * doc/posix-functions/vsnprintf.texi: Update.
50500         * doc/posix-functions/vsprintf.texi: Update.
50501         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50502
50503 2008-02-06  Bruno Haible  <bruno@clisp.org>
50504
50505         Fix bug introduced on 2008-01-26.
50506         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50507
50508 2008-02-06  Bruno Haible  <bruno@clisp.org>
50509
50510         Fix bug introduced on 2007-06-10.
50511         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50512         !NEED_PRINTF_FLAG_ZERO.
50513
50514 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50515
50516         getloadavg: use libperfstat on AIX5
50517         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50518
50519 2008-02-03  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/diffseq.h: Add comments about required #includes.
50522         Reported by Michael Biggs <gnulib@doubleplum.net>.
50523
50524 2008-02-01  Bruno Haible  <bruno@clisp.org>
50525
50526         * users.txt: Add gnuit.
50527
50528 2008-01-31  Bruno Haible  <bruno@clisp.org>
50529
50530         * lib/md4.c (set_uint32): Mark as inline.
50531         * lib/md5.c (set_uint32): Likewise.
50532         * lib/sha1.c (set_uint32): Likewise.
50533         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50534         * m4/md5.m4 (gl_MD5): Likewise.
50535         * m4/sha1.m4 (gl_SHA1): Likewise.
50536
50537 2008-01-31  Jim Meyering  <meyering@redhat.com>
50538
50539         Use "sizeof VAR", rather than a literal "4".
50540         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50541         * lib/md4.c (md4_read_ctx): Likewise.
50542         * lib/sha1.c (sha1_read_ctx): Likewise.
50543
50544 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50545
50546         * tests/test-sha1.c: New file, based on test-md5.c.
50547
50548         * modules/crypto/sha1-tests: New file.
50549
50550 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50551
50552         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50553
50554 2008-01-31  Jim Meyering  <meyering@redhat.com>
50555
50556         Prefer "sizeof v" over the equivalent "4".
50557         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50558         * lib/md5.c (set_uint32): Likewise.
50559         * lib/sha1.c (set_uint32): Likewise.
50560
50561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50562
50563         * lib/sha1.c (set_uint32): Mark function as static.
50564
50565 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50566
50567         md2: clarify comments to say that alignment is not required.
50568         * lib/md2.h: Remove warning about alignment in comment.
50569         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50570         never been required.
50571
50572 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50573
50574         md4: adapt alignment constraint fix from sha1.
50575         * lib/md4.c (set_uint32): New function, from sha1.c
50576         (md4_read_ctx): Use it.
50577         (md4_finish_ctx): Doc fix.
50578         * lib/md4.h: Doc fix.
50579
50580 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50581
50582         md5: adapt alignment constraint fix from sha1.
50583         * lib/md5.c (set_uint32): New function, from sha1.c
50584         (md5_read_ctx): Use it.
50585         (md5_finish_ctx): Doc fix.
50586         * lib/md5.h: Doc fix.
50587
50588 2008-01-30  Peter Palfrader  <weasel@debian.org>
50589
50590         sha1: remove the result buffer alignment constraint
50591         * lib/sha1.c (set_uint32): New function.
50592         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50593         constraint.
50594         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50595         * lib/sha1.h: Likewise.
50596
50597 2008-01-30  Andreas Schwab  <schwab@suse.de>
50598             Bruno Haible  <bruno@clisp.org>
50599
50600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50601         correct definition of LDBL_MIN_EXP.
50602
50603 2008-01-30  Karl Berry  <karl@gnu.org>
50604
50605         * config/srclist-update: try to preserve x bit on updates.
50606         * config/srclistvars.sh: update for karl.
50607
50608 2008-01-29  Jim Meyering  <meyering@redhat.com>
50609
50610         vasnprintf.c: Avoid warning about unused label
50611         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50612         "overflow" label definition and associated code with the
50613         same cpp condition that guards the sole use of that label.
50614
50615 2008-01-26  Bruno Haible  <bruno@clisp.org>
50616
50617         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50618         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50619         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50620         * lib/isnanl-nolibm.h (isnanl): Likewise.
50621         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50622
50623 2008-01-26  Bruno Haible  <bruno@clisp.org>
50624
50625         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50626         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50627
50628 2008-01-26  Bruno Haible  <bruno@clisp.org>
50629
50630         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50631         GCC >= 4.0 built-in.
50632         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50633
50634 2008-01-26  Bruno Haible  <bruno@clisp.org>
50635
50636         Rename isnan, applicable to 'double' only, to isnand.
50637         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50638         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50639         (configure.ac): Update.
50640         (Include): Replace "isnan.h" with "isnand.h".
50641         * m4/isnand.m4: Renamed from m4/isnan.m4.
50642         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50643         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50644         instead of isnan.c.
50645         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50646         instead of HAVE_ISNAN_IN_LIBC.
50647         (isnand): Renamed from isnan.
50648         * lib/isnand.c: New file.
50649         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50650         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50651         (Makefile.am): Update.
50652         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50653         Include isnand.h instead of isnan.h.
50654         (main): Test isnand instead of isnan.
50655         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50656         isnan-nolibm.
50657         * modules/frexp (Depends-on): Likewise.
50658         * modules/frexp-tests (Depends-on): Likewise.
50659         * modules/frexp-nolibm (Depends-on): Likewise.
50660         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50661         * modules/isfinite (Depends-on): Likewise.
50662         * modules/round-tests (Depends-on): Likewise.
50663         * modules/signbit (Depends-on): Likewise.
50664         * modules/signbit-tests (Depends-on): Likewise.
50665         * modules/snprintf-posix (Depends-on): Likewise.
50666         * modules/sprintf-posix (Depends-on): Likewise.
50667         * modules/trunc-tests (Depends-on): Likewise.
50668         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50669         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50670         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50671         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50672         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50673         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50674         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50675         * modules/vasnprintf-posix (Depends-on): Likewise.
50676         * modules/vasprintf-posix (Depends-on): Likewise.
50677         * modules/vfprintf-posix (Depends-on): Likewise.
50678         * modules/vsnprintf-posix (Depends-on): Likewise.
50679         * modules/vsprintf-posix (Depends-on): Likewise.
50680         * lib/frexp.c: Include isnand.h instead of isnan.h.
50681         (ISNAN): Set to isnand instead of isnan.
50682         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50683         (gl_isfinited): Use isnand instead of isnan.
50684         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50685         (gl_signbitd): Use isnand instead of isnan.
50686         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50687         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50688         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50689         (main): Use isnand instead of isnan.
50690         * tests/test-round1.c: Include isnand.h.
50691         (main): Use isnand instead of isnan.
50692         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50693         (ISNAN): Set to isnand instead of isnan.
50694         * tests/test-trunc1.c: Include isnand.h.
50695         (main): Use isnand instead of isnan.
50696         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50697         (equal): Use isnand instead of isnan.
50698         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50699         isnand-nolibm.
50700         * NEWS: Mention the change.
50701
50702 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50703             Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50706         the GCC builtins for signbits are present and set
50707         REPLACE_SIGNBIT_USING_GCC if so.
50708         * lib/math.in.h (signbit): Define using GCC builtins if
50709         REPLACE_SIGNBIT_USING_GCC is set.
50710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50711         REPLACE_SIGNBIT_USING_GCC.
50712         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50713
50714 2008-01-25  Jim Meyering  <meyering@redhat.com>
50715
50716         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50717         * lib/poll.c: Include <config.h>, not "config.h".
50718         * tests/test-getaddrinfo.c: Likewise.
50719
50720 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50721
50722         * modules/sockets-tests: New file.
50723
50724 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50725
50726         * modules/sockets: New module, can be used to call WSA_Startup and
50727         WSA_Cleanup when needed.
50728
50729         * lib/sockets.h, lib/sockets.c: New files.
50730
50731         * m4/sockets.m4: New file.
50732
50733         * tests/test-sockets.c: New file.
50734
50735 2008-01-19  Bruno Haible  <bruno@clisp.org>
50736
50737         * doc/posix-headers: Renamed from doc/headers.
50738         * doc/posix-functions: Renamed from doc/functions.
50739         * doc/gnulib.texi: Update.
50740
50741 2008-01-19  Bruno Haible  <bruno@clisp.org>
50742
50743         * doc/glibc-functions/strcasestr.texi: Include contents of
50744         doc/functions/strcasestr.texi, fixing the list of platforms.
50745         * doc/functions/strcasestr.texi: Remove file.
50746
50747 2008-01-19  Bruno Haible  <bruno@clisp.org>
50748
50749         * doc/glibc-functions/memmem.texi: Include contents of
50750         doc/functions/memmem.texi.
50751         * doc/functions/memmem.texi: Remove file.
50752
50753 2008-01-18  Bruno Haible  <bruno@clisp.org>
50754
50755         * doc/glibc-functions/*.texi: New files.
50756         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50757         to use the new files.
50758
50759 2008-01-17  Bruno Haible  <bruno@clisp.org>
50760
50761         * tests/test-gethostname.c (main): Fix printf statement.
50762
50763 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50764
50765         * modules/gethostname-tests: New file.
50766
50767         * tests/test-gethostname.c: New file.
50768
50769 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50770
50771         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50772         used by the UNAME case.  Reported by Bruno Haible
50773         <bruno@clisp.org>.
50774
50775 2008-01-17  Eric Blake  <ebb9@byu.net>
50776
50777         Convert c-strcasestr to be more efficient.
50778         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50779         (Depends-on): Add c-strcase, remove malloca, strnlen.
50780         * tests/test-c-strcasestr.c (main): Enhance test.
50781         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50782
50783 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50784
50785         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50786         Use it in creating po/Makevars.
50787
50788 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50789
50790         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50791         Applications that requires it should initialize libgcrypt
50792         manually.
50793
50794 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50795
50796         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50797
50798 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         Fix problem with getdate on mingw32 reported by Simon Josefsson
50801         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50802         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50803         tzname", when deciding whether to declare tzname.
50804         * lib/strftime.c (tzname): Likewise.
50805
50806 2008-01-15  Bruno Haible  <bruno@clisp.org>
50807
50808         Work around a MacOS X 10.5 bug in frexpl().
50809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50810         * doc/functions/frexpl.texi: Document the bug.
50811         Reported by Elias Pipping <pipping@gentoo.org>.
50812
50813 2008-01-14  Eric Blake  <ebb9@byu.net>
50814
50815         Touch up previous patch.
50816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50817         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50818
50819         Convert strcasestr module to use Two-Way algorithm.
50820         * modules/strcasestr-simple: New module, based on the old
50821         strcasestr, but with Two-Way rather than KMP.
50822         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50823         * lib/string.in.h (rpl_strcasestr): Declare.
50824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50825         performance.
50826         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50827         * modules/string (Makefile.am): Support strcasestr.
50828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50829         * modules/strcasestr-tests (Depends-on): Check for alarm.
50830         * tests/test-strcasestr.c: Augment test.
50831         * lib/str-two-way.h: Clean up stray macro.
50832         * NEWS: Document new module.
50833         * MODULES.html.sh (string handling): Likewise.
50834         * doc/functions/strcasestr.texi: New file.
50835         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50836         here, since it is not a POSIX function.
50837
50838 2008-01-14  Colin Watson  <cjwatson@debian.org>
50839             Bruno Haible  <bruno@clisp.org>
50840
50841         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50842         works fine; if not, set REPLACE_STRSIGNAL.
50843         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50845         REPLACE_STRSIGNAL.
50846         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50847         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50848         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50849
50850 2008-01-14  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/strsignal (Include): Change to <string.h>.
50853
50854 2008-01-14  Colin Watson  <cjwatson@debian.org>
50855
50856         * modules/argp (Notice): Add a notice recommending to change
50857         XGETTEXT_OPTIONS.
50858         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50859
50860 2008-01-13  Colin Watson  <cjwatson@debian.org>
50861
50862         * modules/strsignal-tests: New file.
50863         * tests/test-strsignal.c: New file.
50864
50865         * lib/strsignal.c: New file, from glibc with modifications.
50866         * lib/siglist.h: New file, from glibc with modifications.
50867         * lib/string.in.h (strsignal): New declaration.
50868         * m4/strsignal.m4: New file.
50869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50870         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50871         * modules/strsignal: New file.
50872         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50873         HAVE_DECL_STRSIGNAL.
50874
50875 2008-01-13  Bruno Haible  <bruno@clisp.org>
50876
50877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50878         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50879         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50881
50882 2008-01-13  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50885         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50886         * lib/argp.h (__attribute__): Likewise.
50887         * lib/c-stack.c (__attribute__): Likewise.
50888         * lib/error.h (__attribute__): Likewise.
50889         * lib/fts.c (__attribute__): Likewise.
50890         * lib/openat.h (__attribute__): Likewise.
50891         * lib/stdio.in.h (__attribute__): Likewise.
50892         * lib/string.in.h (__attribute__): Likewise.
50893         * lib/utimens.c (__attribute__): Likewise.
50894         * lib/vasnprintf.h (__attribute__): Likewise.
50895         * lib/xalloc.h (__attribute__): Likewise.
50896         * lib/xprintf.h (__attribute__): Likewise.
50897         * lib/xstrtol.h (__attribute__): Likewise.
50898         * lib/xvasprintf.h (__attribute__): Likewise.
50899
50900 2008-01-12  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50903         * doc/glibc-headers/a.out.texi: New file.
50904         * doc/glibc-headers/aliases.texi: New file.
50905         * doc/glibc-headers/alloca.texi: New file.
50906         * doc/glibc-headers/ar.texi: New file.
50907         * doc/glibc-headers/argp.texi: New file.
50908         * doc/glibc-headers/argz.texi: New file.
50909         * doc/glibc-headers/byteswap.texi: New file.
50910         * doc/glibc-headers/crypt.texi: New file.
50911         * doc/glibc-headers/endian.texi: New file.
50912         * doc/glibc-headers/envz.texi: New file.
50913         * doc/glibc-headers/err.texi: New file.
50914         * doc/glibc-headers/error.texi: New file.
50915         * doc/glibc-headers/execinfo.texi: New file.
50916         * doc/glibc-headers/fpu_control.texi: New file.
50917         * doc/glibc-headers/fstab.texi: New file.
50918         * doc/glibc-headers/fts.texi: New file.
50919         * doc/glibc-headers/getopt.texi: New file.
50920         * doc/glibc-headers/ieee754.texi: New file.
50921         * doc/glibc-headers/ifaddrs.texi: New file.
50922         * doc/glibc-headers/libintl.texi: New file.
50923         * doc/glibc-headers/mcheck.texi: New file.
50924         * doc/glibc-headers/mntent.texi: New file.
50925         * doc/glibc-headers/obstack.texi: New file.
50926         * doc/glibc-headers/paths.texi: New file.
50927         * doc/glibc-headers/printf.texi: New file.
50928         * doc/glibc-headers/pty.texi: New file.
50929         * doc/glibc-headers/resolv.texi: New file.
50930         * doc/glibc-headers/shadow.texi: New file.
50931         * doc/glibc-headers/sysexits.texi: New file.
50932         * doc/glibc-headers/ttyent.texi: New file.
50933
50934 2008-01-12  Jim Meyering  <meyering@redhat.com>
50935
50936         announce-gen: emit Gnulib's git-based version string.
50937         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50938         New option --gnulib-version=V, where V is expected to be
50939         the output of running git describe in the gnulib directory.
50940         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50941         not useful, and plan to stop publishing an xdelta file with each
50942         coreutils release.
50943
50944         * build-aux/announce-gen: Also check for lzma-compressed files.
50945
50946 2008-01-11  Bruno Haible  <bruno@clisp.org>
50947
50948         * tests/test-memmem.c (main): Increase maximum allowed time.
50949         * tests/test-strstr.c (main): Likewise.
50950
50951 2008-01-11  Bruno Haible  <bruno@clisp.org>
50952
50953         * doc/functions/memmem.texi: Add more precisions about platforms.
50954         * doc/functions/strstr.texi: Likewise.
50955
50956 2008-01-10  Eric Blake  <ebb9@byu.net>
50957
50958         * m4/strstr.m4: Delete cruft from copy-n-paste.
50959         Reported by Bruno Haible.
50960
50961 2008-01-10  Bruno Haible  <bruno@clisp.org>
50962
50963         Make c-strstr rely on strstr.
50964         * lib/c-strstr.c: Don't include str-kmp.h.
50965         (c_strstr): Define in terms of strstr.
50966         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50967         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50968
50969 2008-01-10  Bruno Haible  <bruno@clisp.org>
50970
50971         * doc/gnulib.texi (String Functions in C Locale): New section.
50972         * doc/c-ctype.texi: New file.
50973         * doc/c-strcase.texi: New file.
50974         * doc/c-strcaseeq.texi: New file.
50975         * doc/c-strcasestr.texi: New file.
50976         * doc/c-strstr.texi: New file.
50977         * doc/c-strtod.texi: New file.
50978         * doc/c-strtold.texi: New file.
50979
50980 2008-01-10  Eric Blake  <ebb9@byu.net>
50981
50982         * lib/relocatable.h: Fix a comment.
50983
50984 2008-01-10  Eric Blake  <ebb9@byu.net>
50985
50986         Share two-way algorithm.
50987         * lib/str-two-way.h: New file, merged from...
50988         * lib/memmem.c: ...here...
50989         * lib/strstr.c: ...and here.
50990         * modules/memmem (Files): Use it.
50991         * modules/strstr (Files): Likewise.
50992
50993         Avoid quadratic strstr implementations.
50994         * lib/strstr.c: New file.
50995         * m4/strstr.m4: Likewise.
50996         * modules/strstr: Likewise.
50997         * modules/strstr-tests: Likewise.
50998         * tests/test-strstr.c: Likewise.
50999         * lib/string.in.h (rpl_strstr): Declare.
51000         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51002         * modules/string (Makefile.am): Likewise.
51003         * MODULES.html.sh (string handling): Mention new module.
51004         * doc/functions/strstr.texi (strstr): Document the bug.
51005
51006 2008-01-10  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/relocatable.h (relocate): State whether result is freshly
51009         allocated or not.
51010         * lib/relocatable.c (relocate): Return a freshly allocated string
51011         instead of a pointer to a privately held string.
51012         Reported by Sylvain Beucler <beuc@gnu.org>.
51013
51014 2008-01-10  Colin Watson  <cjwatson@debian.org>
51015
51016         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51017         s/S_ISNLK/S_ISLNK/.
51018
51019 2008-01-09  Bruno Haible  <bruno@clisp.org>
51020
51021         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51022         and other files.
51023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51024         if it's only a guess.
51025         * modules/memmem: Simplify by depending on memmem-simple.
51026
51027 2008-01-09  Bruno Haible  <bruno@clisp.org>
51028
51029         Work around OpenBSD 4.0 tdelete() bug.
51030         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51031         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51032         macros and don't redefine the enum values.
51033         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51034         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51035         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51036
51037 2008-01-09  Bruno Haible  <bruno@clisp.org>
51038
51039         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51040         (main): Don't perform the tests if setlocale did not install a UTF-8
51041         locale. Needed on OpenBSD 4.0.
51042         * modules/wcwidth-tests (Depends-on): Add localcharset.
51043
51044 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51047         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51048         * NEWS: announce this.
51049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51050
51051 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51052         and Eric Blake  <ebb9@byu.net>
51053
51054         Add memmem-simple module.
51055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51056         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51057         * modules/memmem-simple: New file.
51058         * modules/memmem (Description): Tweak.
51059         * MODULES.html.sh (string handling): Mention new module.
51060         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51061         addressed by memmem-simple.
51062         * NEWS: Document the difference.
51063
51064 2008-01-09  Eric Blake  <ebb9@byu.net>
51065
51066         Give gcc some memmem optimization hints.
51067         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51068         (strcasestr): Declare as pure.
51069         * modules/memmem (Maintainer): Claim my implementation.
51070
51071 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51072
51073         Support AIX 6.1 and higher.
51074         * build-aux/config.libpath: Likewise.
51075         * build-aux/config.rpath: Likewise.
51076
51077 2008-01-08  Jim Meyering  <meyering@redhat.com>
51078             Bruno Haible  <bruno@clisp.org>
51079
51080         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51081         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51082         Reported by Peter Fales in
51083         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51084
51085 2008-01-08  Bruno Haible  <bruno@clisp.org>
51086
51087         * modules/unictype/category-of (Depends-on): Add
51088         unictype/category-none.
51089         * modules/unictype/category-and-tests (Depends-on): Add
51090         unictype/category-{L,N,Lu,Nd}.
51091         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51092         * modules/unictype/category-or-tests (Depends-on): Add
51093         unictype/category-{L,N}.
51094         * modules/unictype/category-name-tests (Depends-on): Add
51095         unictype/category-{Z,Nl}.
51096         Reported by Simon Josefsson.
51097
51098 2008-01-08  Bruno Haible  <bruno@clisp.org>
51099
51100         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51101         convention better.
51102         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51103         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51104         Reported by Peter Miller <millerp@canb.auug.org.au>.
51105
51106 2008-01-08  Eric Blake  <ebb9@byu.net>
51107
51108         Rewrite memmem to guarantee linear complexity without malloc.
51109         * lib/memmem.c (memmem): Use Two-Way rather than
51110         Knuth-Morris-Pratt, to allow O(1) space usage.
51111         (critical_factorization, two_way_short_needle)
51112         (two_way_long_needle): New functions.
51113         (knuth_morris_pratt): Delete.
51114         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51115         Add stdint.
51116         * tests/test-memmem.c (main): Add tests for periodic needle and
51117         sublinear performance.
51118         * doc/functions/memmem.texi (memmem): Document other deficiencies
51119         in cygwin and older glibc.
51120
51121 2008-01-08  Bruno Haible  <bruno@clisp.org>
51122
51123         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51124         augmentation.
51125
51126 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51127
51128         Add a configure time option: --disable-acl.
51129         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51130         AC_ARG_ENABLE(acl).
51131
51132 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51133
51134         * tests/test-localename.c: Don't include obsolete "setenv.h".
51135
51136         * modules/localename-tests (Depends-on): Need unsetenv.
51137
51138 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51139
51140         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51141
51142 2008-01-06  Colin Watson  <cjwatson@debian.org>
51143
51144         * users.txt: Add man-db.
51145
51146 2008-01-07  Bruno Haible  <bruno@clisp.org>
51147
51148         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51149         previous section name.
51150
51151 2008-01-07  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/progname.c (set_program_name): Don't strip off a leading
51154         "lt-" prefix outside a .libs directory.
51155         Suggested by Paul Eggert.
51156
51157 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51158             Bruno Haible  <bruno@clisp.org>
51159
51160         Improve memory cleanup in 'relocatable' module.
51161         * lib/relocatable.h (compute_curr_prefix): Change return type to
51162         'char *'.
51163         * lib/relocatable.c (compute_curr_prefix): Change return type to
51164         'char *'. Free curr_installdir after use.
51165         (relocate): Free curr_prefix_better after use.
51166         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51167
51168 2008-01-01  Bruno Haible  <bruno@clisp.org>
51169
51170         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51171         failure on older glibc systems.
51172         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51173
51174 2008-01-05  Eric Blake  <ebb9@byu.net>
51175
51176         Avoid quadratic system memmem.
51177         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51178         Reported by Ralf Wildenhues.
51179
51180         Fix memmem test for mingw.
51181         * modules/memmem-tests (configure.ac): Check for alarm.
51182         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51183         it.
51184         * doc/functions/memmem.texi: New file.
51185         * doc/gnulib.texi (Function Substitutes): Add memmem.
51186         Reported by Bruno Haible.
51187
51188 2008-01-04  Bruno Haible  <bruno@clisp.org>
51189
51190         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51191         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51192         gl_HEADER_STRING_H_DEFAULTS.
51193
51194 2008-01-04  Eric Blake  <ebb9@byu.net>
51195
51196         Shorten duration of memmem test.
51197         * tests/test-memmem.c (main): Use alarm to declare failure if test
51198         is taking too long.
51199         Reported by Ralf Wildenhues.
51200
51201 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51202
51203         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51204         string, needed by strerror.
51205
51206 2008-01-03  Colin Watson  <cjwatson@debian.org>
51207             Bruno Haible  <bruno@clisp.org>
51208
51209         * doc/gnulib-tool.texi (Localization): New section.
51210
51211 2008-01-02  Bruno Haible  <bruno@clisp.org>
51212
51213         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51214         variables to 'unsigned char *' type.
51215         Reported by Paul Eggert.
51216
51217 2008-01-02  Jim Meyering  <jim@meyering.net>
51218
51219         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51220
51221 2007-12-31  Jim Meyering  <jim@meyering.net>
51222
51223         Avoid use of private FTS type name.
51224         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51225
51226 2007-12-30  Karl Berry  <karl@gnu.org>
51227
51228         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51229         work around defect in Texinfo and/or the standalone Info browser.
51230
51231 2007-12-30  Bruno Haible  <bruno@clisp.org>
51232
51233         Unify 5 copies of the KMP code.
51234         * lib/str-kmp.h: New file.
51235         * lib/c-strcasestr.c: Include str-kmp.h.
51236         (knuth_morris_pratt): Remove function.
51237         (c_strcasestr): Update.
51238         * lib/c-strstr.c: Include str-kmp.h.
51239         (knuth_morris_pratt): Remove function.
51240         (c_strcasestr): Update.
51241         * lib/mbscasestr.c: Include str-kmp.h.
51242         (knuth_morris_pratt_unibyte): Remove function.
51243         * lib/mbsstr.c: Include str-kmp.h.
51244         (knuth_morris_pratt_unibyte): Remove function.
51245         * lib/strcasestr.c: Include str-kmp.h.
51246         (knuth_morris_pratt): Remove function.
51247         (strcasestr): Update.
51248         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51249         * modules/c-strstr (Files): Likewise.
51250         * modules/mbscasestr (Files): Likewise.
51251         * modules/mbsstr (Files): Likewise.
51252         * modules/strcasestr (Files): Likewise.
51253         Suggested by Paul Eggert.
51254
51255 2007-12-30  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51258         defined.
51259
51260 2007-12-30  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/xmalloca.h: Include xalloc.h.
51263         (xnmalloca): New macro.
51264
51265 2007-12-30  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/malloca.h (nmalloca): New macro.
51268         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51269         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51270         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51271         knuth_morris_pratt_multibyte): Likewise.
51272         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51273         knuth_morris_pratt_multibyte): Likewise.
51274         * lib/memmem.c (knuth_morris_pratt): Likewise.
51275         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51276
51277 2007-12-25  Bruno Haible  <bruno@clisp.org>
51278
51279         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51280         * lib/glob.c: Don't include openat.h.
51281         (link_exists2_p): Add back the code that deals with the
51282         !GLOB_ALTDIRFUNC case.
51283         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51284         let it do the filename concatenation.
51285         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51286         * modules/glob (Depends-on): Remove openat.
51287
51288 2007-12-31  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/dirfd (License): Change to LGPLv2+.
51291         Approved by Jim Meyering.
51292
51293 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51296         when multiplying M by sizeof (size_t).
51297
51298 2007-12-10  Martin Lambers  <marlam@marlam.de>
51299
51300         Override getpagesize on mingw.
51301         * lib/getpagesize.c: New file.
51302         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51303         * modules/getpagesize (Files): Add lib/getpagesize.c.
51304         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51306         REPLACE_GETPAGESIZE.
51307         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51308
51309 2007-12-25  Bruno Haible  <bruno@clisp.org>
51310
51311         * modules/localcharset (Notice): New field.
51312         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51313         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51314
51315 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51316             Bruno Haible  <bruno@clisp.org>
51317
51318         Avoid using the syntax symbol() in formatted documentation.
51319         * MODULES.html.sh (func_module): When replacing symbol() with a
51320         hyperlink, remove the parentheses. Show an error if some remain.
51321         Recognize and render the '...' syntax.
51322         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51323         Rework. Add paragraph about GCC's inlining.
51324         * doc/alloca.texi: Likewise.
51325         * doc/error.texi: Remove parentheses from symbol reference.
51326         * doc/gnulib-intro.texi: Likewise.
51327         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51328         * modules/fnmatch (Description): Reword to say "the ... function".
51329         * modules/full-read (Description): Likewise.
51330         * modules/full-write (Description): Likewise.
51331         * modules/safe-read (Description): Likewise.
51332         * modules/safe-write (Description): Likewise.
51333         * modules/strchrnul (Description): Likewise.
51334         * modules/trim (Description): Likewise.
51335         * modules/error (Description): Remove parentheses from symbol
51336         references.
51337         * modules/verror (Description): Likewise.
51338         Reported by Karl Berry.
51339
51340 2007-12-25  Bruno Haible  <bruno@clisp.org>
51341
51342         Fixup after 2007-10-16 commit.
51343         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51344
51345 2007-12-24  Bruno Haible  <bruno@clisp.org>
51346
51347         Make --enable-relocatable work with DESTDIR.
51348         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51349         to compute installdir from destprog.
51350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51351         also set the RELOC_DESTDIR variable.
51352         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51353
51354 2007-12-24  Bruno Haible  <bruno@clisp.org>
51355
51356         Fix link error due to xalloc_die().
51357         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51358         of xreadlink.
51359         * lib/relocwrapper.c: Update comments.
51360         * build-aux/install-reloc: Remove xreadlink.c from file list.
51361         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51362         xreadlink.c.
51363         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51364
51365 2007-12-24  Bruno Haible  <bruno@clisp.org>
51366
51367         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51368         * lib/setenv.h: Remove file.
51369         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51370         lib/setenv.h.
51371         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51372         (Depends-on): Add stdlib.
51373         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51374         gl_FUNC_UNSETENV.
51375         (Include): Replace setenv.h with <stdlib.h>.
51376         * modules/unsetenv: New file.
51377         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51378         * lib/unsetenv.c: Include <stdlib.h> first.
51379         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51380         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51381         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51382         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51383         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51384         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51386         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51387         * doc/functions/unsetenv.texi: Update.
51388         * modules/xsetenv (Depends-on): Add unsetenv.
51389         * modules/getdate (Depends-on): Likewise.
51390         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51391         * lib/xsetenv.c: Don't include setenv.h.
51392         * lib/getdate.y: Likewise.
51393         * lib/relocwrapper.c: Likewise.
51394         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51395         (Depends-on): Add stdlib.
51396         * NEWS: Mention the changes.
51397         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51398
51399 2007-12-23  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51402         indentation.
51403
51404 2007-12-23  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/c-strcasestr.c: Add more comments.
51407         * lib/c-strstr.c: Likewise.
51408         * lib/mbscasestr.c: Likewise.
51409         * lib/mbsstr.c: Likewise.
51410         * lib/strcasestr.c: Likewise.
51411         * lib/memmem.c: Likewise.
51412
51413 2007-12-23  Bruno Haible  <bruno@clisp.org>
51414
51415         * tests/test-memmem.c: Include <string.h> first.
51416
51417 2007-12-22  Bruno Haible  <bruno@clisp.org>
51418
51419         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51420         the contents of $testsbase.
51421         Reported by Ralf Wildenhues.
51422
51423 2007-12-22  Bruno Haible  <bruno@clisp.org>
51424
51425         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51426         two variables local_ldadd_before, local_ldadd_last.
51427
51428 2007-12-20  Eric Blake  <ebb9@byu.net>
51429
51430         Work around circular library issue when cross-compiling.
51431         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51432         that progname.o does not need to pull in rpl_memcmp.
51433
51434 2007-12-19  Eric Blake  <ebb9@byu.net>
51435
51436         Fix memmem to avoid O(n^2) worst-case complexity.
51437         * lib/memmem.c (knuth_morris_pratt): New function.
51438         (memmem): Use it if first few naive iterations fail.
51439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51440         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51441         * modules/memchr (License): Likewise.
51442         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51443         malloca.
51444         * tests/test-memmem.c: Rewrite, borrowing ideas from
51445         test-mbsstr1.c; the old version wouldn't even compile!
51446         * modules/memmem-tests: New file.
51447         * lib/string.in.h (rpl_memmem): Add declaration.
51448         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51450         REPLACE_MEMMEM.
51451
51452 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51455         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51456         before any system include files, and undef after them all.  This
51457         should fix a problem on VMS reported by John E. Malmberg in
51458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51459
51460 2007-12-17  Eric Blake  <ebb9@byu.net>
51461
51462         Revert addition of verify, for BSD/OS.
51463         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51464         can't handle large files, for the sake of obsolete platforms.
51465         * modules/fseeko (Depends-on): Remove verify.
51466         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51467         * doc/functions/ftello.texi (ftello): Likewise.
51468         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51469         Reported by Larry Jones.
51470
51471 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51472
51473         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51474         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51475
51476 2007-12-17  Jim Meyering  <meyering@redhat.com>
51477
51478         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51479         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51480         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51481         * modules/getcwd (Depends-on): Add openat.
51482         Reported by Petr Salinger.
51483
51484 2007-12-17  Bruno Haible  <bruno@clisp.org>
51485
51486         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51487         avoid a segmentation fault of the configure test on x86_64 systems.
51488
51489 2007-12-15  Jim Meyering  <meyering@redhat.com>
51490
51491         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51492
51493 2007-12-13  Eric Blake  <ebb9@byu.net>
51494
51495         Another fseek test.
51496         * tests/test-fseek.c (main): Also test ungetc handling.
51497         * tests/test-fseeko.c (main): Likewise.
51498         * modules/fseeko (Depends-on): Add verify.
51499         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51500         large.
51501         Reported by Larry Jones.
51502
51503         Fix fseeko on mingw.
51504         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51505         seek.
51506
51507         Beef up fseek tests.
51508         * tests/test-fseek.c (main): Also test eof handling.
51509         * tests/test-fseeko.c (main): Likewise.
51510         Reported by Larry Jones.
51511
51512 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51513
51514         Fix fseeko on BSD-based platforms.
51515         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51516         successful seek.
51517
51518 2007-12-12  Eric Blake  <ebb9@byu.net>
51519
51520         Allow circular dependency of separate libtests.a
51521         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51522         when use_libtests.
51523
51524 2007-12-11  Eric Blake  <ebb9@byu.net>
51525
51526         Fix bug with -0.0L in previous patch.
51527         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51528         * tests/test-isnan.c (main): Also test on zeroes.
51529         * tests/test-isnanf.c (main): Likewise.
51530         * tests/test-isnanl.h (main): Likewise.
51531
51532         Detect pseudo-denormals on x86 even when cross-compiling.
51533         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51534         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51535         invalid bit patterns that happen to satisfy ==.
51536
51537         Avoid link failures with separate libtests.a.
51538         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51539         last, to satisfy circular dependencies.
51540
51541 2007-12-11  Eric Blake  <ebb9@byu.net>
51542         and Bruno Haible  <bruno@clisp.org>
51543
51544         Fix OpenBSD 4.0 <float.h> handling of long double.
51545         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51546         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51547         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51548
51549 2007-12-11  Jim Meyering  <meyering@redhat.com>
51550
51551         * users.txt: Add libvirt.
51552
51553         Support versions of autoconf prior to 2.59c.
51554         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51555         if it is not already defined.
51556
51557 2007-12-09  Bruno Haible  <bruno@clisp.org>
51558
51559         Let 'gnulib-tool --import' collect sources needed for the tests in
51560         tests/ rather than in lib/.
51561         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51562         argument. If true, add rules to generate libtests.a, and put libtests.a
51563         into $(LDADD). Consider source files in subdirectories and set
51564         uses_subdirs.
51565         (func_emit_initmacro_start, func_emit_initmacro_end,
51566         func_emit_initmacro_done): Pass all arguments explicitly.
51567         (func_import): Determine two module lists main_modules,
51568         testsrelated_modules. Determine use_libtests. Determine two variables
51569         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51570         instead of just sed_transform_lib_file. Determine two variables
51571         main_files and testsrelated_files. Compute 'files' as the union of
51572         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51573         func_add_or_update. In the generated gnulib-comp.m4, collect the
51574         object files for tests/ in different variables than those for lib/.
51575         Substitute LIBTESTS_LIBDEPS.
51576         (func_create_testdir): Combine the uses_subdirs results from
51577         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51578
51579 2007-12-09  Bruno Haible  <bruno@clisp.org>
51580
51581         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51582         the build-aux directory.
51583
51584 2007-12-09  Bruno Haible  <bruno@clisp.org>
51585
51586         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51587         introduced on 2006-09-09.
51588
51589 2007-12-07  Jim Meyering  <meyering@redhat.com>
51590
51591         Let these macros work also with autoconf-2.59.
51592         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51593         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51594         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51595
51596 2007-12-06  Jim Meyering  <meyering@redhat.com>
51597
51598         Avoid a configure-time syntax error in gl_FUNC_ACL.
51599         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51600         function in each branch, before testing the cache variable.
51601
51602 2007-12-04  Eric Blake  <ebb9@byu.net>
51603
51604         Make scripts executable.
51605         * build-aux/config.guess: Add execute permissions.
51606         * build-aux/config.sub: Likewise.
51607         * build-aux/gendocs.sh: Likewise.
51608
51609         Fix frexp on mingw.
51610         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51611         cross-compiling.
51612         * doc/functions/frexp.texi (frexp): Document the bug.
51613
51614         Make cygwin fseeko check more reliable.
51615         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51616         version numbers, rather than unrelated feature check.
51617         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51618         * doc/functions/ftello.texi (ftello): Likewise.
51619         Reported by Bruno Haible.
51620
51621         * m4/strerror.m4: Bump version number.
51622
51623 2007-12-03  Bruno Haible  <bruno@clisp.org>
51624
51625         * doc/functions/mprotect.texi: Mention the mingw problem.
51626
51627 2007-12-03  Eric Blake  <ebb9@byu.net>
51628
51629         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51630         REPLACE_STRERROR is initialized before this macro.
51631
51632 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51633
51634         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51635         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51636         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51637         put -lsec in even for programs other than 'ls'.  This fixes a problem
51638         for gettext reported by Bruno Haible in
51639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51640         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51641         Add support for Solaris 10.  This isn't efficient, but should get the
51642         job done for now.
51643
51644 2007-12-03  James Youngman  <jay@gnu.org>
51645
51646         * doc/regexprops-generic.texi: change "an close-group" to "a
51647         close-group" and "illegal" to "not allowed".
51648
51649 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51650
51651         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51652         pr_byname.h. Needed for the rare case when the maintainer has done
51653         "make maintainer-clean" in the source directory and then attempts a
51654         build outside the source directory.
51655         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51656         scripts_byname.h.
51657
51658 2007-12-02  Martin Lambers <marlam@marlam.de>
51659             Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/getpagesize.h: Remove file.
51662         * lib/unistd.in.h: Include declaration of getpagesize here.
51663         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51664         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51665         HAVE_SYS_PARAM_H.
51666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51667         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51668         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51669         (Depends-on): Add unistd.
51670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51671         (Include): Use <unistd.h> instead of getpagesize.h.
51672         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51673         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51674         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51675         gl_GETPAGESIZE invocation, already handled by module dependency.
51676         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51677
51678 2007-12-02  Bruno Haible  <bruno@clisp.org>
51679
51680         * modules/strings-tests: New file.
51681         * tests/test-strings.c: New file.
51682
51683         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51684         * lib/strings.in.h: New file.
51685         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51686         * m4/strings_h.m4: New file.
51687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51688         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51689         * modules/strings: New file.
51690         * modules/string (Makefile.am): Update.
51691         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51692         Reported by Karl Berry.
51693
51694 2007-12-01  Eric Blake  <ebb9@byu.net>
51695
51696         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51697         accomodate fix in cygwin 1.5.25.
51698
51699 2007-12-01  Jim Meyering  <meyering@redhat.com>
51700
51701         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51702         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51703         that would inhibit utf8-optimization of a regexp containing line-
51704         or buffer-anchors, e.g., `^', `$'.
51705
51706 2007-11-30  Bruno Haible  <bruno@clisp.org>
51707
51708         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51709         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51710         glthread_recursive_lock_init.
51711         * lib/lock.c (glthread_recursive_lock_init)
51712         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51713         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51714
51715 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         New function qset_acl, like set_acl but with syscall semantics.
51718         * lib/acl.h (qset_acl): New decl.
51719         * lib/acl.c (qset_acl): New function.
51720         (set_acl): Use new function.  Use more-consistent diagnostics.
51721
51722 2007-11-28  Jim Meyering  <meyering@redhat.com>
51723
51724         * modules/physmem (License): Change from GPL to LGPLv2+.
51725
51726 2007-11-26  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51729         'long double' type has excess precision.
51730         Reported by Jim Meyering in
51731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51732
51733 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51734
51735         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51736         Sync from <http://gnu.org/licenses>.
51737         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51738         with license text from same location.
51739         * doc/maintain.texi, doc/standards.texi:  Sync from
51740         <http://savannah.gnu.org/projects/gnustandards>.
51741
51742 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51743         and Jim Meyering  <meyering@redhat.com>
51744
51745         Adjust getdate' grammar to accept a slightly more regular language.
51746         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51747         Before, the former was rejected.
51748         * lib/getdate.y (digits_to_date_time): New function, factored
51749         out of ...
51750         (number): ...here.  Just call digits_to_date_time.
51751         (hybrid): New non-terminal to handle an <unsigned number,
51752         signed relative offset> sequence consistently.
51753
51754 2007-11-18  Jim Meyering  <meyering@redhat.com>
51755
51756         Pull my changes from coreutils:
51757         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51758         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51759         use of $gnulib_tool_option_extras, so that it's separated from the
51760         preceding argument.
51761
51762         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51763         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51764         parent destination directories before copying a file into place.
51765
51766 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51767
51768         bootstrap: work also with 4-argument variant of AC_INIT
51769         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51770
51771 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         Port test-getaddrinfo to Solaris.
51774         Problem reported by Bruno Haible in
51775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51776         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51777         explanation of setting 'hints'.
51778         Don't reject an implementation merely because it returns EAI_SERVICE.
51779         (EAI_SERVICE): Define to 0 if not defined.
51780
51781 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         The license of gnu-make and posix-shell is now "GPLed build tool".
51784         * modules/gnu-make (License): Likewise.
51785         * modules/posix-shell (License): Likewise.
51786
51787         New module posix-shell, for determining a POSIX shell
51788         or perhaps something that is close enough to a POSIX shell.
51789         * m4/posix-shell.m4: New file.
51790         * modules/posix-shell: New file.
51791
51792         * MODULES.html.sh: Mention new module.
51793
51794         New module gnu-make, for determining whether we're using GNU Make.
51795         * m4/gnu-make.m4: New file.
51796         * modules/gnu-make: New file.
51797         * MODULES.html.sh: Mention new module.
51798
51799 2007-11-14  Jim Meyering  <meyering@redhat.com>
51800
51801         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51802         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51803         use this macro to create a function _definition_.
51804         Remove useless "#undef ARGMATCH_DIE".
51805
51806 2007-11-14  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/config.charset: Update for OpenBSD 4.1.
51809         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51810
51811 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         Document 64-bit #if problems in stdint.texi.
51814         * doc/headers/stdint.texi (stdint.h): Mention problems with
51815         64-bit-#if, and how to work around them.
51816
51817         Don't insist on 'long long int' support in the preprocessor.  It
51818         breaks too many things.  For example, PRIdMAX still uses a 'long
51819         long int' format with the latest Sun compiler, even though
51820         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51821         preprocessor problem.  This causes the latest coreutils to dump
51822         core on Solaris 10 sparc with the Sun C compiler.
51823         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51824         the troublesome expressions at configure-time, not at #if-time.
51825         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51826         preprocessor.
51827         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51828         compile-time C checks, done at 'configure'-time.
51829         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51830         * modules/inttypes (Makefile): Substitute the new symbols that
51831         gl_INTTYPES_H now generates.
51832         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51833
51834 2007-11-12  Bruno Haible  <bruno@clisp.org>
51835
51836         Tests for Unicode character classification functions.
51837
51838         * modules/unictype/bidicategory-byname-tests: New file.
51839         * modules/unictype/bidicategory-name-tests: New file.
51840         * modules/unictype/bidicategory-of-tests: New file.
51841         * modules/unictype/bidicategory-test-tests: New file.
51842         * modules/unictype/block-list-tests: New file.
51843         * modules/unictype/block-of-tests: New file.
51844         * modules/unictype/block-test-tests: New file.
51845         * modules/unictype/category-C-tests: New file.
51846         * modules/unictype/category-Cc-tests: New file.
51847         * modules/unictype/category-Cf-tests: New file.
51848         * modules/unictype/category-Cn-tests: New file.
51849         * modules/unictype/category-Co-tests: New file.
51850         * modules/unictype/category-Cs-tests: New file.
51851         * modules/unictype/category-L-tests: New file.
51852         * modules/unictype/category-Ll-tests: New file.
51853         * modules/unictype/category-Lm-tests: New file.
51854         * modules/unictype/category-Lo-tests: New file.
51855         * modules/unictype/category-Lt-tests: New file.
51856         * modules/unictype/category-Lu-tests: New file.
51857         * modules/unictype/category-M-tests: New file.
51858         * modules/unictype/category-Mc-tests: New file.
51859         * modules/unictype/category-Me-tests: New file.
51860         * modules/unictype/category-Mn-tests: New file.
51861         * modules/unictype/category-N-tests: New file.
51862         * modules/unictype/category-Nd-tests: New file.
51863         * modules/unictype/category-Nl-tests: New file.
51864         * modules/unictype/category-No-tests: New file.
51865         * modules/unictype/category-P-tests: New file.
51866         * modules/unictype/category-Pc-tests: New file.
51867         * modules/unictype/category-Pd-tests: New file.
51868         * modules/unictype/category-Pe-tests: New file.
51869         * modules/unictype/category-Pf-tests: New file.
51870         * modules/unictype/category-Pi-tests: New file.
51871         * modules/unictype/category-Po-tests: New file.
51872         * modules/unictype/category-Ps-tests: New file.
51873         * modules/unictype/category-S-tests: New file.
51874         * modules/unictype/category-Sc-tests: New file.
51875         * modules/unictype/category-Sk-tests: New file.
51876         * modules/unictype/category-Sm-tests: New file.
51877         * modules/unictype/category-So-tests: New file.
51878         * modules/unictype/category-Z-tests: New file.
51879         * modules/unictype/category-Zl-tests: New file.
51880         * modules/unictype/category-Zp-tests: New file.
51881         * modules/unictype/category-Zs-tests: New file.
51882         * modules/unictype/category-and-not-tests: New file.
51883         * modules/unictype/category-and-tests: New file.
51884         * modules/unictype/category-byname-tests: New file.
51885         * modules/unictype/category-name-tests: New file.
51886         * modules/unictype/category-none-tests: New file.
51887         * modules/unictype/category-of-tests: New file.
51888         * modules/unictype/category-or-tests: New file.
51889         * modules/unictype/category-test-withtable-tests: New file.
51890         * modules/unictype/combining-class-tests: New file.
51891         * modules/unictype/ctype-alnum-tests: New file.
51892         * modules/unictype/ctype-alpha-tests: New file.
51893         * modules/unictype/ctype-blank-tests: New file.
51894         * modules/unictype/ctype-cntrl-tests: New file.
51895         * modules/unictype/ctype-digit-tests: New file.
51896         * modules/unictype/ctype-graph-tests: New file.
51897         * modules/unictype/ctype-lower-tests: New file.
51898         * modules/unictype/ctype-print-tests: New file.
51899         * modules/unictype/ctype-punct-tests: New file.
51900         * modules/unictype/ctype-space-tests: New file.
51901         * modules/unictype/ctype-upper-tests: New file.
51902         * modules/unictype/ctype-xdigit-tests: New file.
51903         * modules/unictype/decimal-digit-tests: New file.
51904         * modules/unictype/digit-tests: New file.
51905         * modules/unictype/mirror-tests: New file.
51906         * modules/unictype/numeric-tests: New file.
51907         * modules/unictype/property-alphabetic-tests: New file.
51908         * modules/unictype/property-ascii-hex-digit-tests: New file.
51909         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51910         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51911         * modules/unictype/property-bidi-block-separator-tests: New file.
51912         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51913         * modules/unictype/property-bidi-common-separator-tests: New file.
51914         * modules/unictype/property-bidi-control-tests: New file.
51915         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51916         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51917         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51918         * modules/unictype/property-bidi-european-digit-tests: New file.
51919         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51920         * modules/unictype/property-bidi-left-to-right-tests: New file.
51921         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51922         * modules/unictype/property-bidi-other-neutral-tests: New file.
51923         * modules/unictype/property-bidi-pdf-tests: New file.
51924         * modules/unictype/property-bidi-segment-separator-tests: New file.
51925         * modules/unictype/property-bidi-whitespace-tests: New file.
51926         * modules/unictype/property-byname-tests: New file.
51927         * modules/unictype/property-combining-tests: New file.
51928         * modules/unictype/property-composite-tests: New file.
51929         * modules/unictype/property-currency-symbol-tests: New file.
51930         * modules/unictype/property-dash-tests: New file.
51931         * modules/unictype/property-decimal-digit-tests: New file.
51932         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51933         * modules/unictype/property-deprecated-tests: New file.
51934         * modules/unictype/property-diacritic-tests: New file.
51935         * modules/unictype/property-extender-tests: New file.
51936         * modules/unictype/property-format-control-tests: New file.
51937         * modules/unictype/property-grapheme-base-tests: New file.
51938         * modules/unictype/property-grapheme-extend-tests: New file.
51939         * modules/unictype/property-grapheme-link-tests: New file.
51940         * modules/unictype/property-hex-digit-tests: New file.
51941         * modules/unictype/property-hyphen-tests: New file.
51942         * modules/unictype/property-id-continue-tests: New file.
51943         * modules/unictype/property-id-start-tests: New file.
51944         * modules/unictype/property-ideographic-tests: New file.
51945         * modules/unictype/property-ids-binary-operator-tests: New file.
51946         * modules/unictype/property-ids-trinary-operator-tests: New file.
51947         * modules/unictype/property-ignorable-control-tests: New file.
51948         * modules/unictype/property-iso-control-tests: New file.
51949         * modules/unictype/property-join-control-tests: New file.
51950         * modules/unictype/property-left-of-pair-tests: New file.
51951         * modules/unictype/property-line-separator-tests: New file.
51952         * modules/unictype/property-logical-order-exception-tests: New file.
51953         * modules/unictype/property-lowercase-tests: New file.
51954         * modules/unictype/property-math-tests: New file.
51955         * modules/unictype/property-non-break-tests: New file.
51956         * modules/unictype/property-not-a-character-tests: New file.
51957         * modules/unictype/property-numeric-tests: New file.
51958         * modules/unictype/property-other-alphabetic-tests: New file.
51959         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51960         * modules/unictype/property-other-grapheme-extend-tests: New file.
51961         * modules/unictype/property-other-id-continue-tests: New file.
51962         * modules/unictype/property-other-id-start-tests: New file.
51963         * modules/unictype/property-other-lowercase-tests: New file.
51964         * modules/unictype/property-other-math-tests: New file.
51965         * modules/unictype/property-other-uppercase-tests: New file.
51966         * modules/unictype/property-paired-punctuation-tests: New file.
51967         * modules/unictype/property-paragraph-separator-tests: New file.
51968         * modules/unictype/property-pattern-syntax-tests: New file.
51969         * modules/unictype/property-pattern-white-space-tests: New file.
51970         * modules/unictype/property-private-use-tests: New file.
51971         * modules/unictype/property-punctuation-tests: New file.
51972         * modules/unictype/property-quotation-mark-tests: New file.
51973         * modules/unictype/property-radical-tests: New file.
51974         * modules/unictype/property-sentence-terminal-tests: New file.
51975         * modules/unictype/property-soft-dotted-tests: New file.
51976         * modules/unictype/property-space-tests: New file.
51977         * modules/unictype/property-terminal-punctuation-tests: New file.
51978         * modules/unictype/property-test-tests: New file.
51979         * modules/unictype/property-titlecase-tests: New file.
51980         * modules/unictype/property-unassigned-code-value-tests: New file.
51981         * modules/unictype/property-unified-ideograph-tests: New file.
51982         * modules/unictype/property-uppercase-tests: New file.
51983         * modules/unictype/property-variation-selector-tests: New file.
51984         * modules/unictype/property-white-space-tests: New file.
51985         * modules/unictype/property-xid-continue-tests: New file.
51986         * modules/unictype/property-xid-start-tests: New file.
51987         * modules/unictype/property-zero-width-tests: New file.
51988         * modules/unictype/scripts-tests: New file.
51989         * modules/unictype/syntax-c-ident-tests: New file.
51990         * modules/unictype/syntax-c-whitespace-tests: New file.
51991         * modules/unictype/syntax-java-ident-tests: New file.
51992         * modules/unictype/syntax-java-whitespace-tests: New file.
51993         * tests/unictype/test-bidi_byname.c: New file.
51994         * tests/unictype/test-bidi_name.c: New file.
51995         * tests/unictype/test-bidi_of.c: New file.
51996         * tests/unictype/test-bidi_test.c: New file.
51997         * tests/unictype/test-block_list.c: New file.
51998         * tests/unictype/test-block_of.c: New file.
51999         * tests/unictype/test-block_test.c: New file.
52000         * tests/unictype/test-categ_and.c: New file.
52001         * tests/unictype/test-categ_and_not.c: New file.
52002         * tests/unictype/test-categ_byname.c: New file.
52003         * tests/unictype/test-categ_name.c: New file.
52004         * tests/unictype/test-categ_none.c: New file.
52005         * tests/unictype/test-categ_of.c: New file.
52006         * tests/unictype/test-categ_or.c: New file.
52007         * tests/unictype/test-categ_test_withtable.c: New file.
52008         * tests/unictype/test-combining.c: New file.
52009         * tests/unictype/test-decdigit.c: New file.
52010         * tests/unictype/test-digit.c: New file.
52011         * tests/unictype/test-mirror.c: New file.
52012         * tests/unictype/test-numeric.c: New file.
52013         * tests/unictype/test-pr_byname.c: New file.
52014         * tests/unictype/test-pr_test.c: New file.
52015         * tests/unictype/test-predicate-part1.h: New file.
52016         * tests/unictype/test-predicate-part2.h: New file.
52017         * tests/unictype/test-scripts.c: New file.
52018         * tests/unictype/test-sy_c_ident.c: New file.
52019         * tests/unictype/test-sy_java_ident.c: New file.
52020
52021         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52022         for Unicode 5.0.0.
52023         * tests/unictype/test-categ_Cc.c: Likewise.
52024         * tests/unictype/test-categ_Cf.c: Likewise.
52025         * tests/unictype/test-categ_Cn.c: Likewise.
52026         * tests/unictype/test-categ_Co.c: Likewise.
52027         * tests/unictype/test-categ_Cs.c: Likewise.
52028         * tests/unictype/test-categ_L.c: Likewise.
52029         * tests/unictype/test-categ_Ll.c: Likewise.
52030         * tests/unictype/test-categ_Lm.c: Likewise.
52031         * tests/unictype/test-categ_Lo.c: Likewise.
52032         * tests/unictype/test-categ_Lt.c: Likewise.
52033         * tests/unictype/test-categ_Lu.c: Likewise.
52034         * tests/unictype/test-categ_M.c: Likewise.
52035         * tests/unictype/test-categ_Mc.c: Likewise.
52036         * tests/unictype/test-categ_Me.c: Likewise.
52037         * tests/unictype/test-categ_Mn.c: Likewise.
52038         * tests/unictype/test-categ_N.c: Likewise.
52039         * tests/unictype/test-categ_Nd.c: Likewise.
52040         * tests/unictype/test-categ_Nl.c: Likewise.
52041         * tests/unictype/test-categ_No.c: Likewise.
52042         * tests/unictype/test-categ_P.c: Likewise.
52043         * tests/unictype/test-categ_Pc.c: Likewise.
52044         * tests/unictype/test-categ_Pd.c: Likewise.
52045         * tests/unictype/test-categ_Pe.c: Likewise.
52046         * tests/unictype/test-categ_Pf.c: Likewise.
52047         * tests/unictype/test-categ_Pi.c: Likewise.
52048         * tests/unictype/test-categ_Po.c: Likewise.
52049         * tests/unictype/test-categ_Ps.c: Likewise.
52050         * tests/unictype/test-categ_S.c: Likewise.
52051         * tests/unictype/test-categ_Sc.c: Likewise.
52052         * tests/unictype/test-categ_Sk.c: Likewise.
52053         * tests/unictype/test-categ_Sm.c: Likewise.
52054         * tests/unictype/test-categ_So.c: Likewise.
52055         * tests/unictype/test-categ_Z.c: Likewise.
52056         * tests/unictype/test-categ_Zl.c: Likewise.
52057         * tests/unictype/test-categ_Zp.c: Likewise.
52058         * tests/unictype/test-categ_Zs.c: Likewise.
52059         * tests/unictype/test-ctype_alnum.c: Likewise.
52060         * tests/unictype/test-ctype_alpha.c: Likewise.
52061         * tests/unictype/test-ctype_blank.c: Likewise.
52062         * tests/unictype/test-ctype_cntrl.c: Likewise.
52063         * tests/unictype/test-ctype_digit.c: Likewise.
52064         * tests/unictype/test-ctype_graph.c: Likewise.
52065         * tests/unictype/test-ctype_lower.c: Likewise.
52066         * tests/unictype/test-ctype_print.c: Likewise.
52067         * tests/unictype/test-ctype_punct.c: Likewise.
52068         * tests/unictype/test-ctype_space.c: Likewise.
52069         * tests/unictype/test-ctype_upper.c: Likewise.
52070         * tests/unictype/test-ctype_xdigit.c: Likewise.
52071         * tests/unictype/test-decdigit.h: Likewise.
52072         * tests/unictype/test-digit.h: Likewise.
52073         * tests/unictype/test-numeric.h: Likewise.
52074         * tests/unictype/test-pr_alphabetic.c: Likewise.
52075         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52076         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52077         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52078         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52079         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52080         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52081         * tests/unictype/test-pr_bidi_control.c: Likewise.
52082         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52083         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52084         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52085         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52086         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52087         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52088         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52089         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52090         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52091         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52092         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52093         * tests/unictype/test-pr_combining.c: Likewise.
52094         * tests/unictype/test-pr_composite.c: Likewise.
52095         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52096         * tests/unictype/test-pr_dash.c: Likewise.
52097         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52098         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52099         * tests/unictype/test-pr_deprecated.c: Likewise.
52100         * tests/unictype/test-pr_diacritic.c: Likewise.
52101         * tests/unictype/test-pr_extender.c: Likewise.
52102         * tests/unictype/test-pr_format_control.c: Likewise.
52103         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52104         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52105         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52106         * tests/unictype/test-pr_hex_digit.c: Likewise.
52107         * tests/unictype/test-pr_hyphen.c: Likewise.
52108         * tests/unictype/test-pr_id_continue.c: Likewise.
52109         * tests/unictype/test-pr_id_start.c: Likewise.
52110         * tests/unictype/test-pr_ideographic.c: Likewise.
52111         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52112         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52113         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52114         * tests/unictype/test-pr_iso_control.c: Likewise.
52115         * tests/unictype/test-pr_join_control.c: Likewise.
52116         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52117         * tests/unictype/test-pr_line_separator.c: Likewise.
52118         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52119         * tests/unictype/test-pr_lowercase.c: Likewise.
52120         * tests/unictype/test-pr_math.c: Likewise.
52121         * tests/unictype/test-pr_non_break.c: Likewise.
52122         * tests/unictype/test-pr_not_a_character.c: Likewise.
52123         * tests/unictype/test-pr_numeric.c: Likewise.
52124         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52125         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52126         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52127         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52128         * tests/unictype/test-pr_other_id_start.c: Likewise.
52129         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52130         * tests/unictype/test-pr_other_math.c: Likewise.
52131         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52132         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52133         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52134         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52135         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52136         * tests/unictype/test-pr_private_use.c: Likewise.
52137         * tests/unictype/test-pr_punctuation.c: Likewise.
52138         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52139         * tests/unictype/test-pr_radical.c: Likewise.
52140         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52141         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52142         * tests/unictype/test-pr_space.c: Likewise.
52143         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52144         * tests/unictype/test-pr_titlecase.c: Likewise.
52145         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52146         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52147         * tests/unictype/test-pr_uppercase.c: Likewise.
52148         * tests/unictype/test-pr_variation_selector.c: Likewise.
52149         * tests/unictype/test-pr_white_space.c: Likewise.
52150         * tests/unictype/test-pr_xid_continue.c: Likewise.
52151         * tests/unictype/test-pr_xid_start.c: Likewise.
52152         * tests/unictype/test-pr_zero_width.c: Likewise.
52153         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52154         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52155
52156 2007-11-12  Bruno Haible  <bruno@clisp.org>
52157
52158         Unicode character classification functions.
52159         * lib/unictype.h: New file.
52160         * modules/unictype/base: New file.
52161         * modules/unictype/category-L: New file.
52162         * modules/unictype/category-Lu: New file.
52163         * modules/unictype/category-Ll: New file.
52164         * modules/unictype/category-Lt: New file.
52165         * modules/unictype/category-Lm: New file.
52166         * modules/unictype/category-Lo: New file.
52167         * modules/unictype/category-M: New file.
52168         * modules/unictype/category-Mn: New file.
52169         * modules/unictype/category-Mc: New file.
52170         * modules/unictype/category-Me: New file.
52171         * modules/unictype/category-N: New file.
52172         * modules/unictype/category-Nd: New file.
52173         * modules/unictype/category-Nl: New file.
52174         * modules/unictype/category-No: New file.
52175         * modules/unictype/category-P: New file.
52176         * modules/unictype/category-Pc: New file.
52177         * modules/unictype/category-Pd: New file.
52178         * modules/unictype/category-Ps: New file.
52179         * modules/unictype/category-Pe: New file.
52180         * modules/unictype/category-Pi: New file.
52181         * modules/unictype/category-Pf: New file.
52182         * modules/unictype/category-Po: New file.
52183         * modules/unictype/category-S: New file.
52184         * modules/unictype/category-Sm: New file.
52185         * modules/unictype/category-Sc: New file.
52186         * modules/unictype/category-Sk: New file.
52187         * modules/unictype/category-So: New file.
52188         * modules/unictype/category-Z: New file.
52189         * modules/unictype/category-Zs: New file.
52190         * modules/unictype/category-Zl: New file.
52191         * modules/unictype/category-Zp: New file.
52192         * modules/unictype/category-C: New file.
52193         * modules/unictype/category-Cc: New file.
52194         * modules/unictype/category-Cf: New file.
52195         * modules/unictype/category-Cs: New file.
52196         * modules/unictype/category-Co: New file.
52197         * modules/unictype/category-Cn: New file.
52198         * modules/unictype/category-or: New file.
52199         * modules/unictype/category-of: New file.
52200         * modules/unictype/category-test: New file.
52201         * modules/unictype/category-test-withtable: New file.
52202         * modules/unictype/category-byname: New file.
52203         * modules/unictype/category-none: New file.
52204         * modules/unictype/category-and: New file.
52205         * modules/unictype/category-and-not: New file.
52206         * modules/unictype/category-name: New file.
52207         * modules/unictype/combining-class: New file.
52208         * modules/unictype/category-all: New file.
52209         * modules/unictype/bidicategory-all: New file.
52210         * modules/unictype/bidicategory-byname: New file.
52211         * modules/unictype/bidicategory-name: New file.
52212         * modules/unictype/bidicategory-of: New file.
52213         * modules/unictype/bidicategory-test: New file.
52214         * modules/unictype/decimal-digit: New file.
52215         * modules/unictype/digit: New file.
52216         * modules/unictype/numeric: New file.
52217         * modules/unictype/mirror: New file.
52218         * modules/unictype/property-white-space: New file.
52219         * modules/unictype/property-alphabetic: New file.
52220         * modules/unictype/property-other-alphabetic: New file.
52221         * modules/unictype/property-not-a-character: New file.
52222         * modules/unictype/property-default-ignorable-code-point: New file.
52223         * modules/unictype/property-other-default-ignorable-code-point: New
52224         file.
52225         * modules/unictype/property-deprecated: New file.
52226         * modules/unictype/property-logical-order-exception: New file.
52227         * modules/unictype/property-variation-selector: New file.
52228         * modules/unictype/property-private-use: New file.
52229         * modules/unictype/property-unassigned-code-value: New file.
52230         * modules/unictype/property-uppercase: New file.
52231         * modules/unictype/property-other-uppercase: New file.
52232         * modules/unictype/property-lowercase: New file.
52233         * modules/unictype/property-other-lowercase: New file.
52234         * modules/unictype/property-titlecase: New file.
52235         * modules/unictype/property-soft-dotted: New file.
52236         * modules/unictype/property-id-start: New file.
52237         * modules/unictype/property-other-id-start: New file.
52238         * modules/unictype/property-id-continue: New file.
52239         * modules/unictype/property-other-id-continue: New file.
52240         * modules/unictype/property-xid-start: New file.
52241         * modules/unictype/property-xid-continue: New file.
52242         * modules/unictype/property-pattern-white-space: New file.
52243         * modules/unictype/property-pattern-syntax: New file.
52244         * modules/unictype/property-join-control: New file.
52245         * modules/unictype/property-grapheme-base: New file.
52246         * modules/unictype/property-grapheme-extend: New file.
52247         * modules/unictype/property-other-grapheme-extend: New file.
52248         * modules/unictype/property-grapheme-link: New file.
52249         * modules/unictype/property-bidi-control: New file.
52250         * modules/unictype/property-bidi-left-to-right: New file.
52251         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52252         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52253         * modules/unictype/property-bidi-european-digit: New file.
52254         * modules/unictype/property-bidi-eur-num-separator: New file.
52255         * modules/unictype/property-bidi-eur-num-terminator: New file.
52256         * modules/unictype/property-bidi-arabic-digit: New file.
52257         * modules/unictype/property-bidi-common-separator: New file.
52258         * modules/unictype/property-bidi-block-separator: New file.
52259         * modules/unictype/property-bidi-segment-separator: New file.
52260         * modules/unictype/property-bidi-whitespace: New file.
52261         * modules/unictype/property-bidi-non-spacing-mark: New file.
52262         * modules/unictype/property-bidi-boundary-neutral: New file.
52263         * modules/unictype/property-bidi-pdf: New file.
52264         * modules/unictype/property-bidi-embedding-or-override: New file.
52265         * modules/unictype/property-bidi-other-neutral: New file.
52266         * modules/unictype/property-hex-digit: New file.
52267         * modules/unictype/property-ascii-hex-digit: New file.
52268         * modules/unictype/property-ideographic: New file.
52269         * modules/unictype/property-unified-ideograph: New file.
52270         * modules/unictype/property-radical: New file.
52271         * modules/unictype/property-ids-binary-operator: New file.
52272         * modules/unictype/property-ids-trinary-operator: New file.
52273         * modules/unictype/property-zero-width: New file.
52274         * modules/unictype/property-space: New file.
52275         * modules/unictype/property-non-break: New file.
52276         * modules/unictype/property-iso-control: New file.
52277         * modules/unictype/property-format-control: New file.
52278         * modules/unictype/property-dash: New file.
52279         * modules/unictype/property-hyphen: New file.
52280         * modules/unictype/property-punctuation: New file.
52281         * modules/unictype/property-line-separator: New file.
52282         * modules/unictype/property-paragraph-separator: New file.
52283         * modules/unictype/property-quotation-mark: New file.
52284         * modules/unictype/property-sentence-terminal: New file.
52285         * modules/unictype/property-terminal-punctuation: New file.
52286         * modules/unictype/property-currency-symbol: New file.
52287         * modules/unictype/property-math: New file.
52288         * modules/unictype/property-other-math: New file.
52289         * modules/unictype/property-paired-punctuation: New file.
52290         * modules/unictype/property-left-of-pair: New file.
52291         * modules/unictype/property-combining: New file.
52292         * modules/unictype/property-composite: New file.
52293         * modules/unictype/property-decimal-digit: New file.
52294         * modules/unictype/property-numeric: New file.
52295         * modules/unictype/property-diacritic: New file.
52296         * modules/unictype/property-extender: New file.
52297         * modules/unictype/property-ignorable-control: New file.
52298         * modules/unictype/property-test: New file.
52299         * modules/unictype/property-byname: New file.
52300         * modules/unictype/property-all: New file.
52301         * modules/unictype/scripts: New file.
52302         * modules/unictype/scripts-all: New file.
52303         * modules/unictype/block-of: New file.
52304         * modules/unictype/block-test: New file.
52305         * modules/unictype/block-list: New file.
52306         * modules/unictype/block-all: New file.
52307         * modules/unictype/syntax-c-whitespace: New file.
52308         * modules/unictype/syntax-java-whitespace: New file.
52309         * modules/unictype/syntax-c-ident: New file.
52310         * modules/unictype/syntax-java-ident: New file.
52311         * modules/unictype/ctype-alnum: New file.
52312         * modules/unictype/ctype-alpha: New file.
52313         * modules/unictype/ctype-cntrl: New file.
52314         * modules/unictype/ctype-digit: New file.
52315         * modules/unictype/ctype-graph: New file.
52316         * modules/unictype/ctype-lower: New file.
52317         * modules/unictype/ctype-print: New file.
52318         * modules/unictype/ctype-punct: New file.
52319         * modules/unictype/ctype-space: New file.
52320         * modules/unictype/ctype-upper: New file.
52321         * modules/unictype/ctype-xdigit: New file.
52322         * modules/unictype/ctype-blank: New file.
52323         * lib/unictype/bidi_byname.c: New file.
52324         * lib/unictype/bidi_name.c: New file.
52325         * lib/unictype/bidi_of.c: New file.
52326         * lib/unictype/bidi_test.c: New file.
52327         * lib/unictype/bitmap.h: New file.
52328         * lib/unictype/block_test.c: New file.
52329         * lib/unictype/blocks.c: New file.
52330         * lib/unictype/categ_C.c: New file.
52331         * lib/unictype/categ_Cc.c: New file.
52332         * lib/unictype/categ_Cf.c: New file.
52333         * lib/unictype/categ_Cn.c: New file.
52334         * lib/unictype/categ_Co.c: New file.
52335         * lib/unictype/categ_Cs.c: New file.
52336         * lib/unictype/categ_L.c: New file.
52337         * lib/unictype/categ_Ll.c: New file.
52338         * lib/unictype/categ_Lm.c: New file.
52339         * lib/unictype/categ_Lo.c: New file.
52340         * lib/unictype/categ_Lt.c: New file.
52341         * lib/unictype/categ_Lu.c: New file.
52342         * lib/unictype/categ_M.c: New file.
52343         * lib/unictype/categ_Mc.c: New file.
52344         * lib/unictype/categ_Me.c: New file.
52345         * lib/unictype/categ_Mn.c: New file.
52346         * lib/unictype/categ_N.c: New file.
52347         * lib/unictype/categ_Nd.c: New file.
52348         * lib/unictype/categ_Nl.c: New file.
52349         * lib/unictype/categ_No.c: New file.
52350         * lib/unictype/categ_P.c: New file.
52351         * lib/unictype/categ_Pc.c: New file.
52352         * lib/unictype/categ_Pd.c: New file.
52353         * lib/unictype/categ_Pe.c: New file.
52354         * lib/unictype/categ_Pf.c: New file.
52355         * lib/unictype/categ_Pi.c: New file.
52356         * lib/unictype/categ_Po.c: New file.
52357         * lib/unictype/categ_Ps.c: New file.
52358         * lib/unictype/categ_S.c: New file.
52359         * lib/unictype/categ_Sc.c: New file.
52360         * lib/unictype/categ_Sk.c: New file.
52361         * lib/unictype/categ_Sm.c: New file.
52362         * lib/unictype/categ_So.c: New file.
52363         * lib/unictype/categ_Z.c: New file.
52364         * lib/unictype/categ_Zl.c: New file.
52365         * lib/unictype/categ_Zp.c: New file.
52366         * lib/unictype/categ_Zs.c: New file.
52367         * lib/unictype/categ_and.c: New file.
52368         * lib/unictype/categ_and_not.c: New file.
52369         * lib/unictype/categ_byname.c: New file.
52370         * lib/unictype/categ_name.c: New file.
52371         * lib/unictype/categ_none.c: New file.
52372         * lib/unictype/categ_of.c: New file.
52373         * lib/unictype/categ_or.c: New file.
52374         * lib/unictype/categ_test.c: New file.
52375         * lib/unictype/combining.c: New file.
52376         * lib/unictype/ctype_alnum.c: New file.
52377         * lib/unictype/ctype_alpha.c: New file.
52378         * lib/unictype/ctype_blank.c: New file.
52379         * lib/unictype/ctype_cntrl.c: New file.
52380         * lib/unictype/ctype_digit.c: New file.
52381         * lib/unictype/ctype_graph.c: New file.
52382         * lib/unictype/ctype_lower.c: New file.
52383         * lib/unictype/ctype_print.c: New file.
52384         * lib/unictype/ctype_punct.c: New file.
52385         * lib/unictype/ctype_space.c: New file.
52386         * lib/unictype/ctype_upper.c: New file.
52387         * lib/unictype/ctype_xdigit.c: New file.
52388         * lib/unictype/decdigit.c: New file.
52389         * lib/unictype/digit.c: New file.
52390         * lib/unictype/identsyntaxmap.h: New file.
52391         * lib/unictype/mirror.c: New file.
52392         * lib/unictype/numeric.c: New file.
52393         * lib/unictype/pr_alphabetic.c: New file.
52394         * lib/unictype/pr_ascii_hex_digit.c: New file.
52395         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52396         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52397         * lib/unictype/pr_bidi_block_separator.c: New file.
52398         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52399         * lib/unictype/pr_bidi_common_separator.c: New file.
52400         * lib/unictype/pr_bidi_control.c: New file.
52401         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52402         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52403         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52404         * lib/unictype/pr_bidi_european_digit.c: New file.
52405         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52406         * lib/unictype/pr_bidi_left_to_right.c: New file.
52407         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52408         * lib/unictype/pr_bidi_other_neutral.c: New file.
52409         * lib/unictype/pr_bidi_pdf.c: New file.
52410         * lib/unictype/pr_bidi_segment_separator.c: New file.
52411         * lib/unictype/pr_bidi_whitespace.c: New file.
52412         * lib/unictype/pr_byname.c: New file.
52413         * lib/unictype/pr_byname.gperf: New file.
52414         * lib/unictype/pr_combining.c: New file.
52415         * lib/unictype/pr_composite.c: New file.
52416         * lib/unictype/pr_currency_symbol.c: New file.
52417         * lib/unictype/pr_dash.c: New file.
52418         * lib/unictype/pr_decimal_digit.c: New file.
52419         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52420         * lib/unictype/pr_deprecated.c: New file.
52421         * lib/unictype/pr_diacritic.c: New file.
52422         * lib/unictype/pr_extender.c: New file.
52423         * lib/unictype/pr_format_control.c: New file.
52424         * lib/unictype/pr_grapheme_base.c: New file.
52425         * lib/unictype/pr_grapheme_extend.c: New file.
52426         * lib/unictype/pr_grapheme_link.c: New file.
52427         * lib/unictype/pr_hex_digit.c: New file.
52428         * lib/unictype/pr_hyphen.c: New file.
52429         * lib/unictype/pr_id_continue.c: New file.
52430         * lib/unictype/pr_id_start.c: New file.
52431         * lib/unictype/pr_ideographic.c: New file.
52432         * lib/unictype/pr_ids_binary_operator.c: New file.
52433         * lib/unictype/pr_ids_trinary_operator.c: New file.
52434         * lib/unictype/pr_ignorable_control.c: New file.
52435         * lib/unictype/pr_iso_control.c: New file.
52436         * lib/unictype/pr_join_control.c: New file.
52437         * lib/unictype/pr_left_of_pair.c: New file.
52438         * lib/unictype/pr_line_separator.c: New file.
52439         * lib/unictype/pr_logical_order_exception.c: New file.
52440         * lib/unictype/pr_lowercase.c: New file.
52441         * lib/unictype/pr_math.c: New file.
52442         * lib/unictype/pr_non_break.c: New file.
52443         * lib/unictype/pr_not_a_character.c: New file.
52444         * lib/unictype/pr_numeric.c: New file.
52445         * lib/unictype/pr_other_alphabetic.c: New file.
52446         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52447         * lib/unictype/pr_other_grapheme_extend.c: New file.
52448         * lib/unictype/pr_other_id_continue.c: New file.
52449         * lib/unictype/pr_other_id_start.c: New file.
52450         * lib/unictype/pr_other_lowercase.c: New file.
52451         * lib/unictype/pr_other_math.c: New file.
52452         * lib/unictype/pr_other_uppercase.c: New file.
52453         * lib/unictype/pr_paired_punctuation.c: New file.
52454         * lib/unictype/pr_paragraph_separator.c: New file.
52455         * lib/unictype/pr_pattern_syntax.c: New file.
52456         * lib/unictype/pr_pattern_white_space.c: New file.
52457         * lib/unictype/pr_private_use.c: New file.
52458         * lib/unictype/pr_punctuation.c: New file.
52459         * lib/unictype/pr_quotation_mark.c: New file.
52460         * lib/unictype/pr_radical.c: New file.
52461         * lib/unictype/pr_sentence_terminal.c: New file.
52462         * lib/unictype/pr_soft_dotted.c: New file.
52463         * lib/unictype/pr_space.c: New file.
52464         * lib/unictype/pr_terminal_punctuation.c: New file.
52465         * lib/unictype/pr_test.c: New file.
52466         * lib/unictype/pr_titlecase.c: New file.
52467         * lib/unictype/pr_unassigned_code_value.c: New file.
52468         * lib/unictype/pr_unified_ideograph.c: New file.
52469         * lib/unictype/pr_uppercase.c: New file.
52470         * lib/unictype/pr_variation_selector.c: New file.
52471         * lib/unictype/pr_white_space.c: New file.
52472         * lib/unictype/pr_xid_continue.c: New file.
52473         * lib/unictype/pr_xid_start.c: New file.
52474         * lib/unictype/pr_zero_width.c: New file.
52475         * lib/unictype/scripts.c: New file.
52476         * lib/unictype/sy_c_ident.c: New file.
52477         * lib/unictype/sy_c_whitespace.c: New file.
52478         * lib/unictype/sy_java_ident.c: New file.
52479         * lib/unictype/sy_java_whitespace.c: New file.
52480
52481         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52482         Unicode 5.0.0.
52483         * lib/unictype/blocks.h: Likewise.
52484         * lib/unictype/categ_C.h: Likewise.
52485         * lib/unictype/categ_Cc.h: Likewise.
52486         * lib/unictype/categ_Cf.h: Likewise.
52487         * lib/unictype/categ_Cn.h: Likewise.
52488         * lib/unictype/categ_Co.h: Likewise.
52489         * lib/unictype/categ_Cs.h: Likewise.
52490         * lib/unictype/categ_L.h: Likewise.
52491         * lib/unictype/categ_Ll.h: Likewise.
52492         * lib/unictype/categ_Lm.h: Likewise.
52493         * lib/unictype/categ_Lo.h: Likewise.
52494         * lib/unictype/categ_Lt.h: Likewise.
52495         * lib/unictype/categ_Lu.h: Likewise.
52496         * lib/unictype/categ_M.h: Likewise.
52497         * lib/unictype/categ_Mc.h: Likewise.
52498         * lib/unictype/categ_Me.h: Likewise.
52499         * lib/unictype/categ_Mn.h: Likewise.
52500         * lib/unictype/categ_N.h: Likewise.
52501         * lib/unictype/categ_Nd.h: Likewise.
52502         * lib/unictype/categ_Nl.h: Likewise.
52503         * lib/unictype/categ_No.h: Likewise.
52504         * lib/unictype/categ_P.h: Likewise.
52505         * lib/unictype/categ_Pc.h: Likewise.
52506         * lib/unictype/categ_Pd.h: Likewise.
52507         * lib/unictype/categ_Pe.h: Likewise.
52508         * lib/unictype/categ_Pf.h: Likewise.
52509         * lib/unictype/categ_Pi.h: Likewise.
52510         * lib/unictype/categ_Po.h: Likewise.
52511         * lib/unictype/categ_Ps.h: Likewise.
52512         * lib/unictype/categ_S.h: Likewise.
52513         * lib/unictype/categ_Sc.h: Likewise.
52514         * lib/unictype/categ_Sk.h: Likewise.
52515         * lib/unictype/categ_Sm.h: Likewise.
52516         * lib/unictype/categ_So.h: Likewise.
52517         * lib/unictype/categ_Z.h: Likewise.
52518         * lib/unictype/categ_Zl.h: Likewise.
52519         * lib/unictype/categ_Zp.h: Likewise.
52520         * lib/unictype/categ_Zs.h: Likewise.
52521         * lib/unictype/categ_of.h: Likewise.
52522         * lib/unictype/combining.h: Likewise.
52523         * lib/unictype/ctype_alnum.h: Likewise.
52524         * lib/unictype/ctype_alpha.h: Likewise.
52525         * lib/unictype/ctype_blank.h: Likewise.
52526         * lib/unictype/ctype_cntrl.h: Likewise.
52527         * lib/unictype/ctype_digit.h: Likewise.
52528         * lib/unictype/ctype_graph.h: Likewise.
52529         * lib/unictype/ctype_lower.h: Likewise.
52530         * lib/unictype/ctype_print.h: Likewise.
52531         * lib/unictype/ctype_punct.h: Likewise.
52532         * lib/unictype/ctype_space.h: Likewise.
52533         * lib/unictype/ctype_upper.h: Likewise.
52534         * lib/unictype/ctype_xdigit.h: Likewise.
52535         * lib/unictype/decdigit.h: Likewise.
52536         * lib/unictype/digit.h: Likewise.
52537         * lib/unictype/mirror.h: Likewise.
52538         * lib/unictype/numeric.h: Likewise.
52539         * lib/unictype/pr_alphabetic.h: Likewise.
52540         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52541         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52542         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52543         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52544         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52545         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52546         * lib/unictype/pr_bidi_control.h: Likewise.
52547         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52548         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52549         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52550         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52551         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52552         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52553         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52554         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52555         * lib/unictype/pr_bidi_pdf.h: Likewise.
52556         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52557         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52558         * lib/unictype/pr_combining.h: Likewise.
52559         * lib/unictype/pr_composite.h: Likewise.
52560         * lib/unictype/pr_currency_symbol.h: Likewise.
52561         * lib/unictype/pr_dash.h: Likewise.
52562         * lib/unictype/pr_decimal_digit.h: Likewise.
52563         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52564         * lib/unictype/pr_deprecated.h: Likewise.
52565         * lib/unictype/pr_diacritic.h: Likewise.
52566         * lib/unictype/pr_extender.h: Likewise.
52567         * lib/unictype/pr_format_control.h: Likewise.
52568         * lib/unictype/pr_grapheme_base.h: Likewise.
52569         * lib/unictype/pr_grapheme_extend.h: Likewise.
52570         * lib/unictype/pr_grapheme_link.h: Likewise.
52571         * lib/unictype/pr_hex_digit.h: Likewise.
52572         * lib/unictype/pr_hyphen.h: Likewise.
52573         * lib/unictype/pr_id_continue.h: Likewise.
52574         * lib/unictype/pr_id_start.h: Likewise.
52575         * lib/unictype/pr_ideographic.h: Likewise.
52576         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52577         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52578         * lib/unictype/pr_ignorable_control.h: Likewise.
52579         * lib/unictype/pr_iso_control.h: Likewise.
52580         * lib/unictype/pr_join_control.h: Likewise.
52581         * lib/unictype/pr_left_of_pair.h: Likewise.
52582         * lib/unictype/pr_line_separator.h: Likewise.
52583         * lib/unictype/pr_logical_order_exception.h: Likewise.
52584         * lib/unictype/pr_lowercase.h: Likewise.
52585         * lib/unictype/pr_math.h: Likewise.
52586         * lib/unictype/pr_non_break.h: Likewise.
52587         * lib/unictype/pr_not_a_character.h: Likewise.
52588         * lib/unictype/pr_numeric.h: Likewise.
52589         * lib/unictype/pr_other_alphabetic.h: Likewise.
52590         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52591         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52592         * lib/unictype/pr_other_id_continue.h: Likewise.
52593         * lib/unictype/pr_other_id_start.h: Likewise.
52594         * lib/unictype/pr_other_lowercase.h: Likewise.
52595         * lib/unictype/pr_other_math.h: Likewise.
52596         * lib/unictype/pr_other_uppercase.h: Likewise.
52597         * lib/unictype/pr_paired_punctuation.h: Likewise.
52598         * lib/unictype/pr_paragraph_separator.h: Likewise.
52599         * lib/unictype/pr_pattern_syntax.h: Likewise.
52600         * lib/unictype/pr_pattern_white_space.h: Likewise.
52601         * lib/unictype/pr_private_use.h: Likewise.
52602         * lib/unictype/pr_punctuation.h: Likewise.
52603         * lib/unictype/pr_quotation_mark.h: Likewise.
52604         * lib/unictype/pr_radical.h: Likewise.
52605         * lib/unictype/pr_sentence_terminal.h: Likewise.
52606         * lib/unictype/pr_soft_dotted.h: Likewise.
52607         * lib/unictype/pr_space.h: Likewise.
52608         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52609         * lib/unictype/pr_titlecase.h: Likewise.
52610         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52611         * lib/unictype/pr_unified_ideograph.h: Likewise.
52612         * lib/unictype/pr_uppercase.h: Likewise.
52613         * lib/unictype/pr_variation_selector.h: Likewise.
52614         * lib/unictype/pr_white_space.h: Likewise.
52615         * lib/unictype/pr_xid_continue.h: Likewise.
52616         * lib/unictype/pr_xid_start.h: Likewise.
52617         * lib/unictype/pr_zero_width.h: Likewise.
52618         * lib/unictype/scripts.h: Likewise.
52619         * lib/unictype/scripts_byname.gperf: Likewise.
52620         * lib/unictype/sy_c_ident.h: Likewise.
52621         * lib/unictype/sy_c_whitespace.h: Likewise.
52622         * lib/unictype/sy_java_ident.h: Likewise.
52623         * lib/unictype/sy_java_whitespace.h: Likewise.
52624
52625         * lib/unictype/Makefile: New file.
52626         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52627         glibc.
52628         * lib/unictype/3level.h: New file, copied from glibc.
52629         * lib/unictype/3levelbit.h: New file.
52630
52631 2007-11-11  Bruno Haible  <bruno@clisp.org>
52632
52633         * modules/gperf: New file.
52634         * modules/iconv_open (Depends-on): Add it.
52635         (Makefile.am): Remove the GPERF definition.
52636
52637 2007-11-11  Bruno Haible  <bruno@clisp.org>
52638
52639         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52640         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52641
52642 2007-11-11  Bruno Haible  <bruno@clisp.org>
52643
52644         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52645         (usage): Remove function.
52646
52647 2007-11-11  Bruno Haible  <bruno@clisp.org>
52648
52649         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52650         gl_FUNC_CEILF_LIBS.
52651         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52652         gl_FUNC_CEIL_LIBS.
52653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52654         gl_FUNC_CEILL_LIBS.
52655         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52656         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52657         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52658
52659 2007-11-11  Bruno Haible  <bruno@clisp.org>
52660
52661         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52662         roundf were declared but do not exist on functions.
52663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52664         roundl were declared but do not exist on functions.
52665         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52666         HAVE_FLOORL_AND_CEILL, respectively.
52667         Needed for Sun C on Solaris 10.
52668
52669 2007-11-11  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52672         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52673         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52674         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52675         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52676         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52677         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52678         HAVE_DECL_ROUNDF.
52679         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52680         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52682         of HAVE_DECL_ROUND*.
52683         * modules/math (Makefile.am): Update.
52684
52685 2007-11-10  Bruno Haible  <bruno@clisp.org>
52686
52687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52688         ptrdiff_t as m4/intl.m4.
52689
52690 2007-11-10  Jim Meyering  <meyering@redhat.com>
52691
52692         Avoid link failure for the argmatch test.
52693         * tests/test-argmatch.c (usage): Define function to avoid a link
52694         failure: argmatch_die requires a usage function.
52695
52696 2007-11-09  Bruno Haible  <bruno@clisp.org>
52697
52698         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52699         * doc/functions/vsnprintf.texi: Likewise.
52700         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52701         with a size argument < 2.
52702
52703 2007-11-09  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52706         buffer. Fixes an inefficiency introduced on 2007-11-03.
52707
52708 2007-11-09  Bruno Haible  <bruno@clisp.org>
52709
52710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52711         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52712
52713 2007-11-08  Jim Meyering  <meyering@redhat.com>
52714
52715         Change cache variable name prefix "jm_" to "gl_" everywhere.
52716         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52717         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52718         * m4/uptime.m4: s/gl_/jm_/
52719
52720 2007-11-07  Bruno Haible  <bruno@clisp.org>
52721
52722         Update to GNU gettext 0.17.
52723         * m4/intl.m4: Update to GNU gettext 0.17.
52724         * m4/po.m4: Likewise.
52725         * modules/gettext (Files): Remove m4/ulonglong.m4.
52726         (configure.ac): Require gettext infrastructure from version 0.17.
52727
52728 2007-11-06  Bruno Haible  <bruno@clisp.org>
52729
52730         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52731         symbolic values are not defined in a public header.
52732         * lib/freadable.c (freadable) [QNX]: Likewise.
52733         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52734         * lib/freading.c (freading) [QNX]: Likewise.
52735         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52736         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52737         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52738         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52739         Reported by Alain Magloire.
52740
52741         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52742
52743 2007-11-05  Bruno Haible  <bruno@clisp.org>
52744
52745         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52746         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52747         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52748         Reported by Eric Blake.
52749
52750 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52751             Bruno Haible  <bruno@clisp.org>
52752
52753         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52754         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52755         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52756         (malloc): Undefine also before including <stdlib.h>.
52757         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52758         Needed on OSF/1 4.0.
52759
52760 2007-11-05  Jim Meyering  <meyering@redhat.com>
52761
52762         git-version-gen: sync from coreutils.
52763         * build-aux/git-version-gen: Add comments.
52764         Change the first '-' to '.' in the snapshot version string,
52765         e.g., 6.9-377-08144 -> 6.9.377-08144
52766         Remove first parameter.
52767         Don't declare a version "-dirty" merely because a time
52768         stamp has changed.
52769
52770 2007-11-04  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/lock.h: Protect all macro definitions containing an 'if'
52773         statement through a "do { ... } while (0)".
52774         * lib/tls.h: Likewise.
52775
52776 2007-11-04  Bruno Haible  <bruno@clisp.org>
52777
52778         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52779
52780 2007-11-04  Bruno Haible  <bruno@clisp.org>
52781
52782         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52783         * modules/fprintf-posix (Depends-on): Add nocrash.
52784         * modules/snprintf-posix (Depends-on): Likewise.
52785         * modules/sprintf-posix (Depends-on): Likewise.
52786         * modules/vasnprintf-posix (Depends-on): Likewise.
52787         * modules/vasprintf-posix (Depends-on): Likewise.
52788         * modules/vfprintf-posix (Depends-on): Likewise.
52789         * modules/vsnprintf-posix (Depends-on): Likewise.
52790         * modules/vsprintf-posix (Depends-on): Likewise.
52791         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52798
52799 2007-11-04  Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/nocrash: New file.
52802         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52803         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52804
52805 2007-11-04  Bruno Haible  <bruno@clisp.org>
52806
52807         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52808         precision handling.
52809         * tests/test-vasprintf-posix.c (test_function): Likewise.
52810         * tests/test-snprintf-posix.h (test_function): Likewise.
52811         * tests/test-sprintf-posix.h (test_function): Likewise.
52812
52813         Fix *printf behaviour for large precisions on mingw and BeOS.
52814         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52815         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52817         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52819         gl_PRINTF_PRECISION and test its result. Invoke
52820         gl_PREREQ_VASNPRINTF_PRECISION.
52821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52828         * doc/functions/fprintf.texi: Update.
52829         * doc/functions/printf.texi: Update.
52830         * doc/functions/snprintf.texi: Update.
52831         * doc/functions/sprintf.texi: Update.
52832         * doc/functions/vfprintf.texi: Update.
52833         * doc/functions/vprintf.texi: Update.
52834         * doc/functions/vsnprintf.texi: Update.
52835         * doc/functions/vsprintf.texi: Update.
52836
52837 2007-11-04  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52840
52841 2007-11-04  Bruno Haible  <bruno@clisp.org>
52842
52843         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52844         Reported by Sylvain Beucler <beuc@gnu.org>.
52845
52846 2007-11-03  Bruno Haible  <bruno@clisp.org>
52847
52848         * tests/test-fprintf-posix2.sh: New file.
52849         * tests/test-fprintf-posix2.c: New file.
52850         * modules/fprintf-posix-tests (Files): Add them.
52851         (TESTS): Add test-fprintf-posix2.sh.
52852         (configure.ac): Check for getrlimit and setrlimit.
52853         (check_PROGRAMS): Add test-fprintf-posix2.
52854
52855         * tests/test-printf-posix2.sh: New file.
52856         * tests/test-printf-posix2.c: New file.
52857         * modules/printf-posix-tests (Files): Add them.
52858         (TESTS): Add test-printf-posix2.sh.
52859         (configure.ac): Check for getrlimit and setrlimit.
52860         (check_PROGRAMS): Add test-printf-posix2.
52861
52862         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52863         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52864         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52865         (decode_double): New function, copied from decode_long_double.
52866         (scale10_round_decimal_decoded): New function, extracted from
52867         scale10_round_decimal_long_double.
52868         (scale10_round_decimal_long_double): Use it.
52869         (scale10_round_decimal_double): New function.
52870         (floorlog10): New function.
52871         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52873         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52874         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52875         gl_PRINTF_ENOMEM and test its result. Invoke
52876         gl_PREREQ_VASNPRINTF_ENOMEM.
52877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52884         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52885         * modules/snprintf-posix (Depends-on): Likewise.
52886         * modules/sprintf-posix (Depends-on): Likewise.
52887         * modules/vasnprintf-posix (Depends-on): Likewise.
52888         * modules/vasprintf-posix (Depends-on): Likewise.
52889         * modules/vfprintf-posix (Depends-on): Likewise.
52890         * modules/vsnprintf-posix (Depends-on): Likewise.
52891         * modules/vsprintf-posix (Depends-on): Likewise.
52892         * doc/functions/fprintf.texi: Update.
52893         * doc/functions/printf.texi: Update.
52894         * doc/functions/snprintf.texi: Update.
52895         * doc/functions/sprintf.texi: Update.
52896         * doc/functions/vfprintf.texi: Update.
52897         * doc/functions/vprintf.texi: Update.
52898         * doc/functions/vsnprintf.texi: Update.
52899         * doc/functions/vsprintf.texi: Update.
52900
52901 2007-11-03  Bruno Haible  <bruno@clisp.org>
52902
52903         * modules/frexp-nolibm-tests: New file.
52904
52905         * modules/frexp-nolibm: New file.
52906         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52907
52908 2007-11-03  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52911         value is C99 compliant.
52912         Needed for OSF/1 5.1.
52913
52914 2007-11-03  Bruno Haible  <bruno@clisp.org>
52915
52916         Fix out-of-memory handling of vasnprintf.
52917         * lib/printf-parse.c: Include <errno.h>.
52918         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52919         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52920         is already set.
52921
52922 2007-11-02  Eric Blake  <ebb9@byu.net>
52923
52924         Fix tests on cygwin.
52925         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52926
52927 2007-11-01  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52930         warning.
52931         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52932         needed for POSIX compatibility.
52933
52934 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52935
52936         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52937         for compatibility with GNU.
52938
52939 2007-11-01  Bruno Haible  <bruno@clisp.org>
52940
52941         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52942         (putenv): Renamed from rpl_putenv. Change argument type from
52943         'const char *' to 'char *'.
52944         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52945         of defining putenv in config.h, just set REPLACE_PUTENV.
52946         * modules/putenv (Depends-on): Add stdlib.
52947         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52948         (Include): Use <stdlib.h>.
52949         * lib/stdlib.in.h (putenv): New declaration.
52950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52951         REPLACE_PUTENV.
52952         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52953         REPLACE_PUTENV.
52954         Needed for MacOS X 10.5.0.
52955         Reported by Peter O'Gorman <peter@pogma.com>.
52956
52957 2007-11-01  Jim Meyering  <meyering@redhat.com>
52958
52959         Treat an empty date string exactly like "0".
52960         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52961         if the remaining date string (to be parsed) is empty, use "0".
52962         Reported by Mischa Molhoek and discussed in this thread:
52963         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52964
52965 2007-10-31  Bruno Haible  <bruno@clisp.org>
52966
52967         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52968         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52969         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52970         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52971         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52972         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52973
52974 2007-10-31  Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52977         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52978         (AC_TYPE_LONG_LONG_INT): Use it.
52979         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52980         it as well.
52981         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52982         to m4/longlong.m4.
52983         * modules/stdint (Files): Remove m4/ulonglong.m4.
52984         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52985         m4/ulonglong.m4.
52986         * modules/strtoumax (Files): Likewise.
52987
52988 2007-10-30  Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/xvasprintf-posix: New file.
52991         Suggested by Eric Blake.
52992
52993 2007-10-30  Bruno Haible  <bruno@clisp.org>
52994
52995         * modules/xprintf-posix-tests: New file.
52996         * tests/test-xprintf-posix.sh: New file.
52997         * tests/test-xprintf-posix.c: New file.
52998         * tests/test-xfprintf-posix.c: New file.
52999
53000         * modules/xprintf-posix: New file.
53001
53002 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53003
53004         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53005         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53006         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53007
53008 2007-10-29  Bruno Haible  <bruno@clisp.org>
53009
53010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53011         contain the special marker '_cv_'.
53012         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53013         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53014         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53015         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53016         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53017         Reported by Ralf Wildenhues.
53018
53019 2007-10-29  Bruno Haible  <bruno@clisp.org>
53020
53021         * gnulib-tool (func_import): When --lgpl is not specified, set
53022         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53023         GPLv3.
53024         Reported by Simon Josefsson.
53025
53026 2007-10-28  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53029         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53030         HAVE_DECL_ISFINITE.
53031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53032         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53033         HAVE_DECL_ISFINITE.
53034
53035 2007-10-28  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53038         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53039
53040 2007-10-28  Bruno Haible  <bruno@clisp.org>
53041
53042         Fix link errors with Sun C 5.0 on Solaris 10.
53043         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53044         function is declared but not present in the compiler's libm.
53045         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53046         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53047         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53048         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53049         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53050         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53051         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53053         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53054         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53055         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53056         HAVE_DECL_FLOORL.
53057
53058 2007-10-28  Bruno Haible  <bruno@clisp.org>
53059
53060         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53061         gl_FUNC_FLOORL. Cache the result.
53062         (gl_FUNC_FLOORL): Use it.
53063         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53064         gl_FUNC_CEILL. Cache the result.
53065         (gl_FUNC_CEILL): Use it.
53066
53067         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53068         gl_FUNC_FLOOR. Cache the result.
53069         (gl_FUNC_FLOOR): Use it.
53070         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53071         gl_FUNC_CEIL. Cache the result.
53072         (gl_FUNC_CEIL): Use it.
53073
53074         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53075         gl_FUNC_FLOORF. Cache the result.
53076         (gl_FUNC_FLOORF): Use it.
53077         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53078         gl_FUNC_CEILF. Cache the result.
53079         (gl_FUNC_CEILF): Use it.
53080
53081 2007-10-28  Bruno Haible  <bruno@clisp.org>
53082
53083         * gnulib-tool: Allow specifying the LGPL version number through
53084         --lgpl=2 or --lgpl=3.
53085         (func_usage): Document --lgpl with argument.
53086         Handle --lgpl=... arguments.
53087         (func_import): Recognize also gl_LGPL calls with an argument. When
53088         --lgpl=2 is used and the module's license is just LGPL, report an
53089         error. Set sed_transform_lib_file according to the lgpl variable. In
53090         the generated files, use --lgpl or gl_LGPL invocations with argument,
53091         if necessary.
53092         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53093         an LGPv2+ license.
53094         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53095         gl_LGPL macro.
53096
53097 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53098             Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53101         (u16_uctomb_aux): Likewise.
53102         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53103         !HAVE_INLINE.
53104         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53105
53106 2007-10-28  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53109         Invoke AM_GETTEXT_OPTION if it exists.
53110         * modules/vasprintf: Likewise.
53111         * modules/verror: Likewise.
53112         * modules/xprintf: Likewise.
53113         * modules/xvasprintf: Likewise.
53114
53115 2007-10-27  Ben Pfaff  <blp@gnu.org>
53116
53117         * lib/math.in.h: Define isfinite macro and prototypes for
53118         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53119         implementations.
53120         * m4/math_h.m4: New substitutions for isfinite module.
53121         * lib/isfinite.c: New file.
53122         * m4/isfinite.m4: New file.
53123         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53124         * modules/isfinite: New file.
53125         * modules/isfinite-tests: New file.
53126         * tests/tests-isfinite.c: New file.
53127         * doc/functions/isfinite.texi: Mention isfinite module.
53128         * MODULES.html.sh: Mention new module.
53129
53130 2007-10-27  Ben Pfaff  <blp@gnu.org>
53131
53132         Ralf Wildenhues reported that Tru64 4.0D declares the round
53133         functions but does not have definitions.
53134         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53135         cannot be found in any library, set the output variable to
53136         "missing" instead of "".
53137         * m4/round.m4: Also use our substitute if we cannot find round in
53138         any library, even if it is declared.
53139         * m4/roundf.m4: Likewise for roundf.
53140         * m4/roundl.m4: Likewise for roundl.
53141         * lib/math.in.h: Undefine roundf, round, roundl before defining
53142         their replacements, to allow for hypothetical systems where these
53143         may be defined as macros but not available in libraries.
53144
53145 2007-10-27  Bruno Haible  <bruno@clisp.org>
53146
53147         * doc/gnulib.texi: Invoke @firstparagraphindent.
53148         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53149         changes in gnulib.
53150         (Source changes): New section.
53151
53152 2007-10-26  Bruno Haible  <bruno@clisp.org>
53153
53154         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53155         borrowed from autoconf.
53156
53157 2007-10-26  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53160         strerror returned the empty string. Needed on HP-UX 11.00.
53161
53162 2007-10-24  Micah Cowan  <micah@cowan.name>
53163
53164         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53165         * build-aux/bootstrap: Remove support for now-unnecessary option,
53166         --cvs-user, and envvars CVS_USER, CVS_RSH.
53167
53168 2007-10-24  Jim Meyering  <meyering@redhat.com>
53169
53170         Avoid diagnostics from sha1sum when there is no cached checksum.
53171         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53172         if the po.s1 file hasn't been created yet.
53173
53174         * build-aux/bootstrap: Sync from coreutils:
53175         2007-10-24  Jim Meyering  <meyering@redhat.com>
53176         Get gnulib from the git repository, not from an obsolete cvs one.
53177         * build-aux/bootstrap: Suggestion from Micah Cowan.
53178         2007-10-04  Jim Meyering  <jim@meyering.net>
53179         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53180         (update_po_files): Work also when there are no .po files in po/.
53181
53182 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         * README: Append ".git" to git and cg examples.
53185         Problem reported by Benoit Sigoure.
53186
53187 2007-10-23  Micah Cowan  <micah@cowan.name>
53188
53189         * users.txt: Add wget.
53190
53191 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53192
53193         Fix linking of some unistdio tests on FreeBSD.
53194         * modules/unistdio/u16-vsnprintf-tests
53195         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53196         * modules/unistdio/u16-vsprintf-tests
53197         (test_u16_vsnprintf1_LDADD): Likewise.
53198         * modules/unistdio/u32-vsnprintf-tests
53199         (test_u32_vsnprintf1_LDADD): Likewise.
53200         * modules/unistdio/u32-vsprintf-tests
53201         (test_u32_vsprintf1_LDADD): Likewise.
53202         * modules/unistdio/u8-vsnprintf-tests
53203         (test_u8_vsnprintf1_LDADD): Likewise.
53204         * modules/unistdio/u8-vsprintf-tests
53205         (test_u8_vsprintf1_LDADD): Likewise.
53206         * modules/unistdio/ulc-vsnprintf-tests
53207         (test_ulc_vsnprintf1_LDADD): Likewise.
53208         * modules/unistdio/ulc-vsprintf-tests
53209         (test_ulc_vsprintf1_LDADD): Likewise.
53210
53211         Fix linking of some uniconv tests on FreeBSD.
53212         * modules/uniconv/u16-conv-from-enc-tests
53213         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53214         * modules/uniconv/u16-conv-to-enc-tests
53215         (test_u16_conv_to_enc_LDADD): Likewise.
53216         * modules/uniconv/u16-strconv-from-enc-tests
53217         (test_u16_strconv_from_enc_LDADD): Likewise.
53218         * modules/uniconv/u16-strconv-to-enc-tests
53219         (test_u16_strconv_to_enc_LDADD): Likewise.
53220         * modules/uniconv/u32-conv-from-enc-tests
53221         (test_u32_conv_from_enc_LDADD): Likewise.
53222         * modules/uniconv/u32-conv-to-enc-tests
53223         (test_u32_conv_to_enc_LDADD): Likewise.
53224         * modules/uniconv/u32-strconv-from-enc-tests
53225         (test_u32_strconv_from_enc_LDADD): Likewise.
53226         * modules/uniconv/u32-strconv-to-enc-tests
53227         (test_u32_strconv_to_enc_LDADD): Likewise.
53228         * modules/uniconv/u8-conv-from-enc-tests
53229         (test_u8_conv_from_enc_LDADD): Likewise.
53230         * modules/uniconv/u8-conv-to-enc-tests
53231         (test_u8_conv_to_enc_LDADD): Likewise.
53232         * modules/uniconv/u8-strconv-from-enc-tests
53233         (test_u8_strconv_from_enc_LDADD): Likewise.
53234         * modules/uniconv/u8-strconv-to-enc-tests
53235         (test_u8_strconv_to_enc_LDADD): Likewise.
53236
53237 2007-10-22  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53240         size.
53241
53242 2007-10-22  Eric Blake  <ebb9@byu.net>
53243
53244         Tweak x*printf documentation.
53245         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53246         variable name and comments.
53247         Suggested by Bruno Haible.
53248
53249 2007-10-22  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/acl.c (copy_acl): Fix file name in comment.
53252
53253 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         Fix Tru64 problem with stdbool.h.
53256         * lib/stdbool.in.h (false, true):
53257         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53258         Don't declare as an enum in this situation; it runs afoul of Tru64.
53259         Problem reported by Steven M. Schweda in
53260         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53261
53262 2007-10-22  Eric Blake  <ebb9@byu.net>
53263
53264         Also wrap vf?printf.
53265         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53266         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53267         (xvprintf, xvfprintf): New functions.
53268
53269 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53270
53271         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53272         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53273
53274         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53275         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53276
53277 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53280         by Bruno Haible.
53281
53282 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53283
53284         * lib/getloadavg.c
53285         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53286         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53287
53288         * tests/test-i-ring.c: Work for C89.
53289
53290 2007-10-22  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53293         -1u, in preprocessor expression, so that we don't test for the bug
53294         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53296
53297 2007-10-22  Eric Blake  <ebb9@byu.net>
53298
53299         * tests/test-yesno.sh: Silence stderr during test.
53300
53301 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53302
53303         * modules/crypto/gc-camellia: New file.
53304
53305         * m4/gc-camellia.m4: New file.
53306
53307         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53308
53309         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53310
53311 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53312
53313         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53314         --help to stdout.  Reported by sms@antinode.org (Steven
53315         M. Schweda).
53316
53317 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53318
53319         * users.txt: Fix link to libksba.
53320
53321 2007-10-21  Ben Pfaff  <blp@gnu.org>
53322
53323         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53324         round.c roundf implementation that depends on floorf and ceilf to
53325         be tested unconditionally.
53326
53327 2007-10-21  Ben Pfaff  <blp@gnu.org>
53328
53329         * m4/check-libm-func.m4: Removed.
53330         * m4/check-math-lib.m4: New file.
53331         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53332         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53333         definition and lack of AC_LIBOBJ([roundf]).
53334         * m4/roundl.m4: Ditto, and similarly for roundl.
53335         * modules/round: Reference new m4 file.
53336         * modules/roundf: Ditto.
53337         * modules/roundl: Ditto.
53338         * tests/test-round2.c (main): Use ROUND instead of round.
53339         Bug report from Bruno Haible.
53340
53341 2007-10-21  Bruno Haible  <bruno@clisp.org>
53342
53343         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53344         context.
53345
53346 2007-10-21  Bruno Haible  <bruno@clisp.org>
53347
53348         * tests/test-wcwidth.c (main): Allow negative result for some control
53349         characters.
53350
53351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53352         Needed on OSF/1 5.1.
53353
53354 2007-10-21  Bruno Haible  <bruno@clisp.org>
53355
53356         * tests/test-floorf1.c: Include isnanf.h.
53357         (main): Use isnanf() instead of isnan().
53358         * tests/test-ceilf1.c: Include isnanf.h.
53359         (main): Use isnanf() instead of isnan().
53360         * tests/test-truncf1.c: Include isnanf.h.
53361         (main): Use isnanf() instead of isnan().
53362         * tests/test-roundf1.c: Include isnanf.h.
53363         (main): Use isnanf() instead of isnan().
53364
53365 2007-10-21  Eric Blake  <ebb9@byu.net>
53366
53367         * users.txt: Update URL for m4.
53368
53369 2007-10-21  Bruno Haible  <bruno@clisp.org>
53370
53371         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53372
53373 2007-10-21  Bruno Haible  <bruno@clisp.org>
53374
53375         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53376         Git's management files if the CVS files are not present.
53377
53378 2007-10-20  Bruno Haible  <bruno@clisp.org>
53379
53380         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53381         gcc-3.4.x.
53382
53383 2007-10-20  Ben Pfaff  <blp@gnu.org>
53384
53385         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53386         implementations.
53387         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53388         * lib/round.c: New file.
53389         * lib/roundf.c: New file.
53390         * lib/roundl.c: New file.
53391         * m4/round.m4: New file.
53392         * m4/roundf.m4: New file.
53393         * m4/roundl.m4: New file.
53394         * m4/check-libm-func-m4: New file.
53395         * modules/math: Replace round, roundf, roundl related @VARS@ in
53396         math.in.h.
53397         * modules/round: New file.
53398         * modules/round-tests: New file.
53399         * modules/roundf: New file.
53400         * modules/roundf-tests: New file.
53401         * modules/roundl: New file.
53402         * modules/roundl-tests: New file.
53403         * tests/test-round1.c: New file.
53404         * tests/test-round2.c: New file.
53405         * tests/test-roundf1.c: New file.
53406         * tests/test-roundf2.c: New file.
53407         * tests/test-roundl.c: New file.
53408         * doc/functions/round.texi: Mention round module.
53409         * doc/functions/roundf.texi: Mention roundf module.
53410         * doc/functions/roundl.texi: Mention roundl module.
53411         * MODULES.html.sh: Mention new modules.
53412         Thanks to Bruno Haible for suggestions.
53413
53414 2007-10-20  Jim Meyering  <meyering@redhat.com>
53415
53416         * lib/xprintf.c: Include <config.h> unconditionally.
53417
53418         Change xprintf's license to GPL.
53419         * modules/xprintf (License): s/LGPL/GPL/, since this module
53420         depends on modules (exit and exitfail) which are GPL.
53421         Suggestion from Bruno Haible.
53422
53423         xprintf fixes.
53424         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53425         Use a clearer diagnostic.
53426         Patch from Bruno Haible.
53427
53428 2007-10-20  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53431         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53433
53434 2007-10-20  Bruno Haible  <bruno@clisp.org>
53435
53436         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53437         precision in the comparison result > x - 1 or similar.
53438         * tests/test-ceilf2.c (correct_result_p): Likewise.
53439         * tests/test-truncf2.c (correct_result_p): Likewise.
53440         * tests/test-trunc2.c (correct_result_p): Likewise.
53441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53442
53443 2007-10-20  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/ceil: New file.
53446         * m4/ceil.m4: New file.
53447         * doc/functions/ceil.texi: Mention the 'ceil' module.
53448
53449 2007-10-20  Bruno Haible  <bruno@clisp.org>
53450
53451         * modules/floor: New file.
53452         * m4/floor.m4: New file.
53453         * doc/functions/floor.texi: Mention the 'floor' module.
53454
53455 2007-10-20  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53458         of %a.
53459         * modules/floorf-tests (Depends-on): Likewise.
53460         * modules/truncf-tests (Depends-on): Likewise.
53461         * modules/trunc-tests (Depends-on): Likewise.
53462         Reported by Ben Pfaff.
53463
53464 2007-10-19  Jim Meyering  <meyering@redhat.com>
53465
53466         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53467         Don't bother testing specific errno values.  Just test ferror.
53468
53469         New module: xprintf
53470         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53471
53472 2007-10-19  Bruno Haible  <bruno@clisp.org>
53473
53474         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53475         syntax.
53476         * modules/javaexec (Makefile.am): Likewise.
53477         * modules/relocatable-prog (Makefile.am): Likewise.
53478         Suggested by Jim Meyering.
53479
53480 2007-10-18  Bruno Haible  <bruno@clisp.org>
53481
53482         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53483         Reported by Jim Meyering.
53484
53485 2007-10-18  Eric Blake  <ebb9@byu.net>
53486
53487         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53488
53489 2007-10-18  Bruno Haible  <bruno@clisp.org>
53490
53491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53492         the format string into writable memory. Needed in Fortify conditions.
53493
53494 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53495             Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53498         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53499         * modules/trim (Depends-on): Add mbchar.
53500         (configure.ac): Add gl_FUNC_MBRTOWC.
53501         (Makefile.am): Augment lib_SOURCES.
53502
53503 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         Modify glob.c to use fstatat and dirfd, to simplify it.
53506         Suggested by Eric Blake.
53507         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53508         Don't include <stdbool.h>; not used.
53509         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53510         (link_exists_p): Simplify implementation, since we can now assume
53511         dirfd and fstatat.
53512         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53513
53514 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53515
53516         * gnulib-tool (func_get_dependencies): Fix sed script to
53517         match only tests.
53518
53519 2007-10-17  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53522         allow locale names without encoding suffix.
53523         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53524         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53525
53526 2007-10-16  Bruno Haible  <bruno@clisp.org>
53527
53528         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53529         * lib/getgroups.c (getgroups): Likewise.
53530         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53531
53532 2007-10-16  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53535         * modules/malloc-posix (License): Likewise.
53536         * modules/realloc-posix (License): Likewise.
53537         * modules/calloc-posix (License): Likewise.
53538         * modules/intprops (License): Change from GPL to LGPL, with
53539         Paul Eggert's approval.
53540
53541 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         Merge glibc changes into lib/glob.c.
53544
53545         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53546         2007-10-15 04:59:03 UTC.  Here are the changes:
53547
53548         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53549
53550         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53551
53552         * lib/glob.c: Add some branch prediction throughout.
53553
53554         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53555
53556         [BZ #5103]
53557         * lib/glob.c (glob): Recognize patterns starting \/.
53558
53559         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53560
53561         [BZ #3996]
53562         * lib/glob.c (attribute_hidden): Define if not defined.
53563         (glob): Unescape dirname, filename or username when needed and not
53564         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53565         is NULL.  Handle unescaped [ in pattern without closing ].
53566         Don't pass GLOB_CHECK down to recursive glob for directories.
53567         (__glob_pattern_type): New function.
53568         (__glob_pattern_p): Implement using __glob_pattern_type.
53569         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53570         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53571         Remove unreachable code.
53572
53573         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53574
53575         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53576         explain why there are no leaks.
53577
53578         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53579
53580         [BZ #3253]
53581         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53582         time, rather allocate increasingly bigger arrays of pointers, if
53583         possible with alloca, if too large with malloc.
53584
53585 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53586
53587         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53588         Problem reported by H.Merijn Brand in
53589         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53590         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53591         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53592
53593 2007-10-15  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53596         with explicit rpl_ prefix.
53597         * lib/fopen.c (fopen): Likewise.
53598         * lib/freopen.c (freopen): Likewise.
53599         * lib/iconv.c (iconv): Likewise.
53600         * lib/iconv_close.c (iconv_close): Likewise.
53601
53602 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53603
53604         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53605
53606 2007-10-15  Bruno Haible  <bruno@clisp.org>
53607
53608         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53609         <stddef.h> instead of <stdlib.h> since we only need NULL.
53610         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53611
53612 2007-10-15  Bruno Haible  <bruno@clisp.org>
53613
53614         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53615         Replace paragraph talking about LIBOBJS.
53616         Reported by Colin Watson <cjwatson@debian.org>.
53617
53618 2007-10-15  Bruno Haible  <bruno@clisp.org>
53619
53620         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53621         <stdlib.h> before using NULL.
53622
53623 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53624
53625         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53626         Reported by Albert Chin <china@thewrittenword.com>.
53627
53628 2007-10-14  Bruno Haible  <bruno@clisp.org>
53629
53630         * modules/iconv_open-utf-tests: New file.
53631         * tests/test-iconv-utf.c: New file.
53632
53633         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53634         * modules/iconv_open-utf: New file.
53635         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53636         (iconv, iconv_close): New declarations.
53637         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53638         be defined.
53639         (iconv_open): Add special handling of conversion between UTF-8 and
53640         UTF-{16,32}{BE,LE}.
53641         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53642         * lib/iconv_close.c: New file.
53643         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53644         gl_FUNC_ICONV_OPEN.
53645         (gl_FUNC_ICONV_OPEN): Use it.
53646         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53647         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53648         and REPLACE_ICONV_UTF.
53649         * modules/iconv_open (Depends-on): Add c-strcase.
53650         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53651         ICONV_CONST.
53652         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53653
53654 2007-10-13  Albert Chin  <china@thewrittenword.com>
53655             Bruno Haible  <bruno@clisp.org>
53656
53657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53658         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53659
53660 2007-10-13  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53663         defined, use the ISO C99 inline semantics.
53664         * lib/argp.h (ARGP_EI): Likewise.
53665
53666 2007-10-13  Bruno Haible  <bruno@clisp.org>
53667
53668         Handle 'inline' change in gcc 4.3.0.
53669         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53670         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53671         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53672         argp_fmtstream_point): Disable 'extern' declaration if the function
53673         definition is going to be provided inline.
53674         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53675         semantics, not the ISO C99 inline semantics.
53676         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53677         'extern' declaration if the function definition is going to be provided
53678         inline.
53679         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53680         the GNU C inline semantics, not the ISO C99 inline semantics. With
53681         GCC 4.2, avoid a warning.
53682
53683 2007-10-13  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/freading.h (freading): Enable the use of __freading for
53686         glibc >= 2.7.
53687         * lib/freading.c (freading): Likewise.
53688
53689 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53692         "warning: C99 inline functions are not supported; using GNU89".
53693
53694 2007-10-12  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53697         of 2.
53698         * tests/test-ceilf2.c: New file.
53699         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53700
53701         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53702         * modules/ceilf-tests: Update.
53703
53704 2007-10-12  Bruno Haible  <bruno@clisp.org>
53705
53706         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53707         of 2.
53708         * tests/test-floorf2.c: New file.
53709         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53710
53711         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53712         * modules/floorf-tests: Update.
53713
53714 2007-10-12  Bruno Haible  <bruno@clisp.org>
53715
53716         * tests/test-trunc2.c: New file.
53717         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53718
53719         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53720         * modules/trunc-tests: Update.
53721
53722 2007-10-12  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53725         of 2.
53726         * tests/test-truncf2.c: New file.
53727         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53728
53729         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53730         * modules/truncf-tests: Update.
53731
53732 2007-10-11  Eric Blake  <ebb9@byu.net>
53733
53734         Don't claim strerror is broken on Interix.
53735         * doc/functions/strerror.texi (strerror): Known broken systems are
53736         now Solaris 8, and not Interix.
53737         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53738         Interix on cross-compile.
53739         Reported by Martin Koeppe in
53740         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53741
53742 2007-10-11  Bruno Haible  <bruno@clisp.org>
53743
53744         * modules/i-ring-tests: New file.
53745         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53746         instead of assert.
53747
53748 2007-10-11  Bruno Haible  <bruno@clisp.org>
53749
53750         * modules/filenamecat-tests: New file.
53751         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53752         * lib/filenamecat.c: Remove test code.
53753
53754 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53757
53758         * lib/strerror.c: Include <string.h> always, to test interface,
53759         and to remove the need for the dummy.
53760         Include intprops.h to compute width instead of doing it ourselves
53761         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53762         (strerror): Define it to return NULL if there's no system strerror.
53763         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53764         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53765         ancient pre-strerror Unix systems well any more.  Saying "unknown
53766         system error" is enough.
53767         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53768         simpler strerror.c implementation.
53769         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53770         Simplify the tests to reflect the simpler strerror implementation.
53771         * modules/strerror (Depends-on): Add intprops.
53772
53773 2007-10-09  Eric Blake  <ebb9@byu.net>
53774
53775         Silence test-fpending.
53776         * modules/fpending-tests (Files): Add wrapper script.
53777         * tests/test-fpending.sh: New file.
53778
53779 2007-10-09  Bruno Haible  <bruno@clisp.org>
53780
53781         * MODULES.html.sh (func_module): Don't create a hyperlink for
53782         function names like 'printf_frexp'.
53783         (Misc): Add crc, memxor.
53784         (Characteristics of floating types): New section.
53785         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53786         isnanf-nolibm, signbit, trunc, truncf, truncl.
53787         (Enhancements for ISO C 99 functions): New subsection Input/output.
53788         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53789         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53790         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53791         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53792         (Enhancements for POSIX:2001 functions): Add chdir-long.
53793         (File system functions): Add areadlink, chdir-safer, read-file.
53794         Remove cycle-check.
53795         (File system as inode set): New section.
53796         (Date and time): Add gethrxtime.
53797         (Multithreading): Add openmp.
53798         (Internationalization functions): Add localename.
53799         (Unicode string functions): Add unistr/u*-mbsnlen.
53800         (Support for maintaining and releasing projects): Add git-version-gen.
53801         (Lone files): Remove directories.
53802
53803 2007-10-08  Ben Pfaff  <blp@gnu.org>
53804
53805         * lib/xmalloca.h: Fix typo in comment.
53806
53807 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53810         when avoiding problems with integer overflow.  Use a portable test
53811         instead.
53812
53813 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53814
53815         * modules/dummy (License): Change to LGPLv2+.
53816         * modules/float (License): Likewise
53817         * modules/realloc (License): Likewise
53818         * modules/stdlib (License): Likewise
53819
53820 2007-10-07  Bruno Haible  <bruno@clisp.org>
53821
53822         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53823         * floor.c (TWO_MANT_DIG): Likewise.
53824         * ceil.c (TWO_MANT_DIG): Likewise.
53825         Reported by Ben Pfaff.
53826
53827 2007-10-07  Bruno Haible  <bruno@clisp.org>
53828
53829         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53830         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53831         * lib/frexp.c (FUNC): Likewise.
53832         * lib/printf-frexp.h (printf_frexp): Likewise.
53833         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53834         * lib/printf-frexp.c (FUNC): Likewise.
53835         Suggested by Jim Meyering.
53836
53837 2007-10-07  Jim Meyering  <meyering@redhat.com>
53838
53839         Make xnanosleep's integer overflow test more robust.
53840         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53841         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53842
53843 2007-10-07  Bruno Haible  <bruno@clisp.org>
53844
53845         * NEWS: Mention the license change.
53846
53847         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53848         abbreviations in the modules files.
53849
53850         Change copyright notice from GPLv2+ to GPLv3+.
53851         * README: Change copyright notice.
53852         * MODULES.html.sh: Likewise.
53853         * build-aux/bootstrap.conf: Likewise.
53854         * build-aux/config.libpath: Likewise.
53855         * build-aux/csharpcomp.sh.in: Likewise.
53856         * build-aux/csharpexec.sh.in: Likewise.
53857         * build-aux/install-reloc: Likewise.
53858         * build-aux/javacomp.sh.in: Likewise.
53859         * build-aux/javaexec.sh.in: Likewise.
53860         * build-aux/ldd.sh.in: Likewise.
53861         * build-aux/reloc-ldflags: Likewise.
53862         * build-aux/relocatable.sh.in: Likewise.
53863         * build-aux/x-to-1.in: Likewise.
53864         * check-module: Likewise.
53865         * config/srclistvars.sh: Likewise.
53866         * gnulib-tool: Likewise.
53867         * lib/acl-internal.h: Likewise.
53868         * lib/acl.c: Likewise.
53869         * lib/acl.h: Likewise.
53870         * lib/acl_entries.c: Likewise.
53871         * lib/areadlink-with-size.c: Likewise.
53872         * lib/areadlink.c: Likewise.
53873         * lib/areadlink.h: Likewise.
53874         * lib/argmatch.c: Likewise.
53875         * lib/argmatch.h: Likewise.
53876         * lib/argp-ba.c: Likewise.
53877         * lib/argp-eexst.c: Likewise.
53878         * lib/argp-fmtstream.c: Likewise.
53879         * lib/argp-fmtstream.h: Likewise.
53880         * lib/argp-fs-xinl.c: Likewise.
53881         * lib/argp-help.c: Likewise.
53882         * lib/argp-namefrob.h: Likewise.
53883         * lib/argp-parse.c: Likewise.
53884         * lib/argp-pin.c: Likewise.
53885         * lib/argp-pv.c: Likewise.
53886         * lib/argp-pvh.c: Likewise.
53887         * lib/argp-xinl.c: Likewise.
53888         * lib/argp.h: Likewise.
53889         * lib/at-func.c: Likewise.
53890         * lib/atanl.c: Likewise.
53891         * lib/backupfile.c: Likewise.
53892         * lib/backupfile.h: Likewise.
53893         * lib/basename.c: Likewise.
53894         * lib/binary-io.h: Likewise.
53895         * lib/byteswap.in.h: Likewise.
53896         * lib/c-stack.c: Likewise.
53897         * lib/c-stack.h: Likewise.
53898         * lib/c-strcasestr.c: Likewise.
53899         * lib/c-strcasestr.h: Likewise.
53900         * lib/c-strstr.c: Likewise.
53901         * lib/c-strstr.h: Likewise.
53902         * lib/c-strtod.c: Likewise.
53903         * lib/calloc.c: Likewise.
53904         * lib/canon-host.c: Likewise.
53905         * lib/canon-host.h: Likewise.
53906         * lib/canonicalize-lgpl.c: Likewise.
53907         * lib/canonicalize.c: Likewise.
53908         * lib/canonicalize.h: Likewise.
53909         * lib/ceil.c: Likewise.
53910         * lib/ceilf.c: Likewise.
53911         * lib/ceill.c: Likewise.
53912         * lib/chdir-long.c: Likewise.
53913         * lib/chdir-long.h: Likewise.
53914         * lib/chdir-safer.c: Likewise.
53915         * lib/chdir-safer.h: Likewise.
53916         * lib/chown.c: Likewise.
53917         * lib/classpath.c: Likewise.
53918         * lib/classpath.h: Likewise.
53919         * lib/clean-temp.c: Likewise.
53920         * lib/clean-temp.h: Likewise.
53921         * lib/cloexec.c: Likewise.
53922         * lib/close-stream.c: Likewise.
53923         * lib/closein.c: Likewise.
53924         * lib/closein.h: Likewise.
53925         * lib/closeout.c: Likewise.
53926         * lib/closeout.h: Likewise.
53927         * lib/concat-filename.c: Likewise.
53928         * lib/copy-file.c: Likewise.
53929         * lib/copy-file.h: Likewise.
53930         * lib/count-one-bits.h: Likewise.
53931         * lib/crc.c: Likewise.
53932         * lib/crc.h: Likewise.
53933         * lib/creat-safer.c: Likewise.
53934         * lib/csharpcomp.c: Likewise.
53935         * lib/csharpcomp.h: Likewise.
53936         * lib/csharpexec.c: Likewise.
53937         * lib/csharpexec.h: Likewise.
53938         * lib/cycle-check.c: Likewise.
53939         * lib/cycle-check.h: Likewise.
53940         * lib/diacrit.c: Likewise.
53941         * lib/diacrit.h: Likewise.
53942         * lib/diffseq.h: Likewise.
53943         * lib/dirchownmod.c: Likewise.
53944         * lib/dirent.in.h: Likewise.
53945         * lib/dirfd.c: Likewise.
53946         * lib/dirfd.h: Likewise.
53947         * lib/dirname.c: Likewise.
53948         * lib/dirname.h: Likewise.
53949         * lib/dummy.c: Likewise.
53950         * lib/dup-safer.c: Likewise.
53951         * lib/dup2.c: Likewise.
53952         * lib/eealloc.h: Likewise.
53953         * lib/error.c: Likewise.
53954         * lib/error.h: Likewise.
53955         * lib/euidaccess.c: Likewise.
53956         * lib/exclude.c: Likewise.
53957         * lib/exclude.h: Likewise.
53958         * lib/execute.c: Likewise.
53959         * lib/execute.h: Likewise.
53960         * lib/exitfail.c: Likewise.
53961         * lib/exitfail.h: Likewise.
53962         * lib/expl.c: Likewise.
53963         * lib/fatal-signal.c: Likewise.
53964         * lib/fatal-signal.h: Likewise.
53965         * lib/fbufmode.c: Likewise.
53966         * lib/fbufmode.h: Likewise.
53967         * lib/fchdir.c: Likewise.
53968         * lib/fchmodat.c: Likewise.
53969         * lib/fchownat.c: Likewise.
53970         * lib/fcntl--.h: Likewise.
53971         * lib/fcntl-safer.h: Likewise.
53972         * lib/fcntl.in.h: Likewise.
53973         * lib/fd-safer.c: Likewise.
53974         * lib/fflush.c: Likewise.
53975         * lib/file-has-acl.c: Likewise.
53976         * lib/file-set.c: Likewise.
53977         * lib/file-type.c: Likewise.
53978         * lib/file-type.h: Likewise.
53979         * lib/fileblocks.c: Likewise.
53980         * lib/filemode.c: Likewise.
53981         * lib/filemode.h: Likewise.
53982         * lib/filename.h: Likewise.
53983         * lib/filenamecat.c: Likewise.
53984         * lib/filenamecat.h: Likewise.
53985         * lib/findprog.c: Likewise.
53986         * lib/findprog.h: Likewise.
53987         * lib/float.in.h: Likewise.
53988         * lib/floor.c: Likewise.
53989         * lib/floorf.c: Likewise.
53990         * lib/floorl.c: Likewise.
53991         * lib/fopen-safer.c: Likewise.
53992         * lib/fopen.c: Likewise.
53993         * lib/fpending.c: Likewise.
53994         * lib/fpending.h: Likewise.
53995         * lib/fprintf.c: Likewise.
53996         * lib/fprintftime.h: Likewise.
53997         * lib/fpucw.h: Likewise.
53998         * lib/fpurge.c: Likewise.
53999         * lib/fpurge.h: Likewise.
54000         * lib/freadable.c: Likewise.
54001         * lib/freadable.h: Likewise.
54002         * lib/freadahead.c: Likewise.
54003         * lib/freadahead.h: Likewise.
54004         * lib/freading.c: Likewise.
54005         * lib/freading.h: Likewise.
54006         * lib/free.c: Likewise.
54007         * lib/freopen.c: Likewise.
54008         * lib/frexp.c: Likewise.
54009         * lib/frexpl.c: Likewise.
54010         * lib/fseek.c: Likewise.
54011         * lib/fseterr.c: Likewise.
54012         * lib/fseterr.h: Likewise.
54013         * lib/fstatat.c: Likewise.
54014         * lib/fstrcmp.c: Likewise.
54015         * lib/fstrcmp.h: Likewise.
54016         * lib/fsusage.c: Likewise.
54017         * lib/fsusage.h: Likewise.
54018         * lib/ftell.c: Likewise.
54019         * lib/ftello.c: Likewise.
54020         * lib/fts-cycle.c: Likewise.
54021         * lib/fts.c: Likewise.
54022         * lib/fts_.h: Likewise.
54023         * lib/full-read.c: Likewise.
54024         * lib/full-read.h: Likewise.
54025         * lib/full-write.c: Likewise.
54026         * lib/full-write.h: Likewise.
54027         * lib/fwritable.c: Likewise.
54028         * lib/fwritable.h: Likewise.
54029         * lib/fwriteerror.c: Likewise.
54030         * lib/fwriteerror.h: Likewise.
54031         * lib/fwriting.c: Likewise.
54032         * lib/fwriting.h: Likewise.
54033         * lib/gcd.c: Likewise.
54034         * lib/gcd.h: Likewise.
54035         * lib/getcwd.c: Likewise.
54036         * lib/getdate.h: Likewise.
54037         * lib/getdate.y: Likewise.
54038         * lib/getdomainname.c: Likewise.
54039         * lib/getdomainname.h: Likewise.
54040         * lib/getgroups.c: Likewise.
54041         * lib/gethostname.c: Likewise.
54042         * lib/gethrxtime.c: Likewise.
54043         * lib/gethrxtime.h: Likewise.
54044         * lib/getloadavg.c: Likewise.
54045         * lib/getndelim2.c: Likewise.
54046         * lib/getndelim2.h: Likewise.
54047         * lib/getnline.c: Likewise.
54048         * lib/getnline.h: Likewise.
54049         * lib/getopt.c: Likewise.
54050         * lib/getopt.in.h: Likewise.
54051         * lib/getopt1.c: Likewise.
54052         * lib/getopt_int.h: Likewise.
54053         * lib/getpagesize.h: Likewise.
54054         * lib/getsubopt.c: Likewise.
54055         * lib/gettime.c: Likewise.
54056         * lib/getugroups.c: Likewise.
54057         * lib/getugroups.h: Likewise.
54058         * lib/getusershell.c: Likewise.
54059         * lib/gl_anyavltree_list1.h: Likewise.
54060         * lib/gl_anyavltree_list2.h: Likewise.
54061         * lib/gl_anyhash_list1.h: Likewise.
54062         * lib/gl_anyhash_list2.h: Likewise.
54063         * lib/gl_anylinked_list1.h: Likewise.
54064         * lib/gl_anylinked_list2.h: Likewise.
54065         * lib/gl_anyrbtree_list1.h: Likewise.
54066         * lib/gl_anyrbtree_list2.h: Likewise.
54067         * lib/gl_anytree_list1.h: Likewise.
54068         * lib/gl_anytree_list2.h: Likewise.
54069         * lib/gl_anytree_oset.h: Likewise.
54070         * lib/gl_anytreehash_list1.h: Likewise.
54071         * lib/gl_anytreehash_list2.h: Likewise.
54072         * lib/gl_array_list.c: Likewise.
54073         * lib/gl_array_list.h: Likewise.
54074         * lib/gl_array_oset.c: Likewise.
54075         * lib/gl_array_oset.h: Likewise.
54076         * lib/gl_avltree_list.c: Likewise.
54077         * lib/gl_avltree_list.h: Likewise.
54078         * lib/gl_avltree_oset.c: Likewise.
54079         * lib/gl_avltree_oset.h: Likewise.
54080         * lib/gl_avltreehash_list.c: Likewise.
54081         * lib/gl_avltreehash_list.h: Likewise.
54082         * lib/gl_carray_list.c: Likewise.
54083         * lib/gl_carray_list.h: Likewise.
54084         * lib/gl_linked_list.c: Likewise.
54085         * lib/gl_linked_list.h: Likewise.
54086         * lib/gl_linkedhash_list.c: Likewise.
54087         * lib/gl_linkedhash_list.h: Likewise.
54088         * lib/gl_list.c: Likewise.
54089         * lib/gl_list.h: Likewise.
54090         * lib/gl_oset.c: Likewise.
54091         * lib/gl_oset.h: Likewise.
54092         * lib/gl_rbtree_list.c: Likewise.
54093         * lib/gl_rbtree_list.h: Likewise.
54094         * lib/gl_rbtree_oset.c: Likewise.
54095         * lib/gl_rbtree_oset.h: Likewise.
54096         * lib/gl_rbtreehash_list.c: Likewise.
54097         * lib/gl_rbtreehash_list.h: Likewise.
54098         * lib/gl_sublist.c: Likewise.
54099         * lib/gl_sublist.h: Likewise.
54100         * lib/group-member.c: Likewise.
54101         * lib/group-member.h: Likewise.
54102         * lib/hard-locale.c: Likewise.
54103         * lib/hard-locale.h: Likewise.
54104         * lib/hash-pjw.c: Likewise.
54105         * lib/hash-pjw.h: Likewise.
54106         * lib/hash-triple.c: Likewise.
54107         * lib/hash.c: Likewise.
54108         * lib/hash.h: Likewise.
54109         * lib/human.c: Likewise.
54110         * lib/human.h: Likewise.
54111         * lib/i-ring.c: Likewise.
54112         * lib/i-ring.h: Likewise.
54113         * lib/idcache.c: Likewise.
54114         * lib/imaxabs.c: Likewise.
54115         * lib/imaxdiv.c: Likewise.
54116         * lib/inet_pton.c: Likewise.
54117         * lib/inet_pton.h: Likewise.
54118         * lib/intprops.h: Likewise.
54119         * lib/inttostr.c: Likewise.
54120         * lib/inttostr.h: Likewise.
54121         * lib/inttypes.in.h: Likewise.
54122         * lib/isapipe.c: Likewise.
54123         * lib/isdir.c: Likewise.
54124         * lib/isnan.c: Likewise.
54125         * lib/isnan.h: Likewise.
54126         * lib/isnanf.c: Likewise.
54127         * lib/isnanf.h: Likewise.
54128         * lib/isnanl-nolibm.h: Likewise.
54129         * lib/isnanl.c: Likewise.
54130         * lib/isnanl.h: Likewise.
54131         * lib/javacomp.c: Likewise.
54132         * lib/javacomp.h: Likewise.
54133         * lib/javaexec.c: Likewise.
54134         * lib/javaexec.h: Likewise.
54135         * lib/javaversion.c: Likewise.
54136         * lib/javaversion.h: Likewise.
54137         * lib/javaversion.java: Likewise.
54138         * lib/lbrkprop.h: Likewise.
54139         * lib/lchmod.h: Likewise.
54140         * lib/lchown.c: Likewise.
54141         * lib/ldexpl.c: Likewise.
54142         * lib/linebreak.c: Likewise.
54143         * lib/linebreak.h: Likewise.
54144         * lib/linebuffer.c: Likewise.
54145         * lib/linebuffer.h: Likewise.
54146         * lib/locale.in.h: Likewise.
54147         * lib/logl.c: Likewise.
54148         * lib/long-options.c: Likewise.
54149         * lib/long-options.h: Likewise.
54150         * lib/lstat.c: Likewise.
54151         * lib/lstat.h: Likewise.
54152         * lib/math.in.h: Likewise.
54153         * lib/mbchar.c: Likewise.
54154         * lib/mbchar.h: Likewise.
54155         * lib/mbfile.h: Likewise.
54156         * lib/mbiter.h: Likewise.
54157         * lib/mbscasecmp.c: Likewise.
54158         * lib/mbscasestr.c: Likewise.
54159         * lib/mbschr.c: Likewise.
54160         * lib/mbscspn.c: Likewise.
54161         * lib/mbslen.c: Likewise.
54162         * lib/mbsncasecmp.c: Likewise.
54163         * lib/mbsnlen.c: Likewise.
54164         * lib/mbspbrk.c: Likewise.
54165         * lib/mbspcasecmp.c: Likewise.
54166         * lib/mbsrchr.c: Likewise.
54167         * lib/mbssep.c: Likewise.
54168         * lib/mbsspn.c: Likewise.
54169         * lib/mbsstr.c: Likewise.
54170         * lib/mbstok_r.c: Likewise.
54171         * lib/mbswidth.c: Likewise.
54172         * lib/mbswidth.h: Likewise.
54173         * lib/mbuiter.h: Likewise.
54174         * lib/memcasecmp.c: Likewise.
54175         * lib/memcasecmp.h: Likewise.
54176         * lib/memchr.c: Likewise.
54177         * lib/memcmp.c: Likewise.
54178         * lib/memcoll.c: Likewise.
54179         * lib/memcoll.h: Likewise.
54180         * lib/memcpy.c: Likewise.
54181         * lib/memrchr.c: Likewise.
54182         * lib/mkancesdirs.c: Likewise.
54183         * lib/mkdir-p.c: Likewise.
54184         * lib/mkdir-p.h: Likewise.
54185         * lib/mkdir.c: Likewise.
54186         * lib/mkdirat.c: Likewise.
54187         * lib/mkdtemp.c: Likewise.
54188         * lib/mkstemp-safer.c: Likewise.
54189         * lib/mkstemp.c: Likewise.
54190         * lib/modechange.c: Likewise.
54191         * lib/modechange.h: Likewise.
54192         * lib/mountlist.c: Likewise.
54193         * lib/mountlist.h: Likewise.
54194         * lib/mpsort.c: Likewise.
54195         * lib/nanosleep.c: Likewise.
54196         * lib/obstack.c: Likewise.
54197         * lib/obstack.h: Likewise.
54198         * lib/open-safer.c: Likewise.
54199         * lib/open.c: Likewise.
54200         * lib/openat-die.c: Likewise.
54201         * lib/openat-priv.h: Likewise.
54202         * lib/openat-proc.c: Likewise.
54203         * lib/openat.c: Likewise.
54204         * lib/openat.h: Likewise.
54205         * lib/pagealign_alloc.c: Likewise.
54206         * lib/pagealign_alloc.h: Likewise.
54207         * lib/physmem.c: Likewise.
54208         * lib/physmem.h: Likewise.
54209         * lib/pipe-safer.c: Likewise.
54210         * lib/pipe.c: Likewise.
54211         * lib/pipe.h: Likewise.
54212         * lib/posixtm.c: Likewise.
54213         * lib/posixtm.h: Likewise.
54214         * lib/posixver.c: Likewise.
54215         * lib/printf-frexp.c: Likewise.
54216         * lib/printf-frexp.h: Likewise.
54217         * lib/printf-frexpl.c: Likewise.
54218         * lib/printf-frexpl.h: Likewise.
54219         * lib/printf.c: Likewise.
54220         * lib/progname.c: Likewise.
54221         * lib/progname.h: Likewise.
54222         * lib/progreloc.c: Likewise.
54223         * lib/putenv.c: Likewise.
54224         * lib/quote.c: Likewise.
54225         * lib/quote.h: Likewise.
54226         * lib/quotearg.c: Likewise.
54227         * lib/quotearg.h: Likewise.
54228         * lib/raise.c: Likewise.
54229         * lib/readline.c: Likewise.
54230         * lib/readline.h: Likewise.
54231         * lib/readlink.c: Likewise.
54232         * lib/readtokens.c: Likewise.
54233         * lib/readtokens.h: Likewise.
54234         * lib/readtokens0.c: Likewise.
54235         * lib/readtokens0.h: Likewise.
54236         * lib/readutmp.c: Likewise.
54237         * lib/readutmp.h: Likewise.
54238         * lib/realloc.c: Likewise.
54239         * lib/relocwrapper.c: Likewise.
54240         * lib/rename-dest-slash.c: Likewise.
54241         * lib/rename.c: Likewise.
54242         * lib/rmdir.c: Likewise.
54243         * lib/rpmatch.c: Likewise.
54244         * lib/safe-read.c: Likewise.
54245         * lib/safe-read.h: Likewise.
54246         * lib/safe-write.c: Likewise.
54247         * lib/safe-write.h: Likewise.
54248         * lib/same-inode.h: Likewise.
54249         * lib/same.c: Likewise.
54250         * lib/same.h: Likewise.
54251         * lib/save-cwd.c: Likewise.
54252         * lib/save-cwd.h: Likewise.
54253         * lib/savedir.c: Likewise.
54254         * lib/savedir.h: Likewise.
54255         * lib/savewd.c: Likewise.
54256         * lib/savewd.h: Likewise.
54257         * lib/search.in.h: Likewise.
54258         * lib/setenv.c: Likewise.
54259         * lib/setenv.h: Likewise.
54260         * lib/settime.c: Likewise.
54261         * lib/sh-quote.c: Likewise.
54262         * lib/sh-quote.h: Likewise.
54263         * lib/sig2str.c: Likewise.
54264         * lib/sig2str.h: Likewise.
54265         * lib/signal.in.h: Likewise.
54266         * lib/signbitd.c: Likewise.
54267         * lib/signbitf.c: Likewise.
54268         * lib/signbitl.c: Likewise.
54269         * lib/sigprocmask.c: Likewise.
54270         * lib/sincosl.c: Likewise.
54271         * lib/sleep.c: Likewise.
54272         * lib/sprintf.c: Likewise.
54273         * lib/sqrtl.c: Likewise.
54274         * lib/stat-time.h: Likewise.
54275         * lib/stdio--.h: Likewise.
54276         * lib/stdio-safer.h: Likewise.
54277         * lib/stdlib--.h: Likewise.
54278         * lib/stdlib-safer.h: Likewise.
54279         * lib/stdlib.in.h: Likewise.
54280         * lib/stpcpy.c: Likewise.
54281         * lib/stpncpy.c: Likewise.
54282         * lib/strchrnul.c: Likewise.
54283         * lib/strcspn.c: Likewise.
54284         * lib/strerror.c: Likewise.
54285         * lib/strftime.c: Likewise.
54286         * lib/strftime.h: Likewise.
54287         * lib/striconveh.c: Likewise.
54288         * lib/striconveh.h: Likewise.
54289         * lib/striconveha.c: Likewise.
54290         * lib/striconveha.h: Likewise.
54291         * lib/stripslash.c: Likewise.
54292         * lib/strnlen1.c: Likewise.
54293         * lib/strnlen1.h: Likewise.
54294         * lib/strtod.c: Likewise.
54295         * lib/strtoimax.c: Likewise.
54296         * lib/strtok_r.c: Likewise.
54297         * lib/strtol.c: Likewise.
54298         * lib/strtoll.c: Likewise.
54299         * lib/strtoul.c: Likewise.
54300         * lib/strtoull.c: Likewise.
54301         * lib/sysexits.in.h: Likewise.
54302         * lib/tempname.c: Likewise.
54303         * lib/tempname.h: Likewise.
54304         * lib/timespec.h: Likewise.
54305         * lib/tls.c: Likewise.
54306         * lib/tls.h: Likewise.
54307         * lib/tmpdir.c: Likewise.
54308         * lib/tmpdir.h: Likewise.
54309         * lib/tmpfile-safer.c: Likewise.
54310         * lib/tmpfile.c: Likewise.
54311         * lib/trigl.c: Likewise.
54312         * lib/trigl.h: Likewise.
54313         * lib/trim.c: Likewise.
54314         * lib/trim.h: Likewise.
54315         * lib/trunc.c: Likewise.
54316         * lib/truncf.c: Likewise.
54317         * lib/truncl.c: Likewise.
54318         * lib/tsearch.c: Likewise.
54319         * lib/unicodeio.c: Likewise.
54320         * lib/unicodeio.h: Likewise.
54321         * lib/unistd--.h: Likewise.
54322         * lib/unistd-safer.h: Likewise.
54323         * lib/unistdio/ulc-fprintf.c: Likewise.
54324         * lib/unistdio/ulc-vfprintf.c: Likewise.
54325         * lib/unlinkdir.c: Likewise.
54326         * lib/unlinkdir.h: Likewise.
54327         * lib/unlocked-io.h: Likewise.
54328         * lib/unsetenv.c: Likewise.
54329         * lib/userspec.c: Likewise.
54330         * lib/utime.c: Likewise.
54331         * lib/utimecmp.c: Likewise.
54332         * lib/utimecmp.h: Likewise.
54333         * lib/utimens.c: Likewise.
54334         * lib/verify.h: Likewise.
54335         * lib/verror.c: Likewise.
54336         * lib/verror.h: Likewise.
54337         * lib/version-etc-fsf.c: Likewise.
54338         * lib/version-etc.c: Likewise.
54339         * lib/version-etc.h: Likewise.
54340         * lib/vfprintf.c: Likewise.
54341         * lib/vprintf.c: Likewise.
54342         * lib/vsprintf.c: Likewise.
54343         * lib/w32spawn.h: Likewise.
54344         * lib/wait-process.c: Likewise.
54345         * lib/wait-process.h: Likewise.
54346         * lib/wcwidth.c: Likewise.
54347         * lib/write-any-file.c: Likewise.
54348         * lib/xalloc-die.c: Likewise.
54349         * lib/xalloc.h: Likewise.
54350         * lib/xasprintf.c: Likewise.
54351         * lib/xgetcwd.c: Likewise.
54352         * lib/xgetcwd.h: Likewise.
54353         * lib/xgetdomainname.c: Likewise.
54354         * lib/xgetdomainname.h: Likewise.
54355         * lib/xgethostname.c: Likewise.
54356         * lib/xmalloc.c: Likewise.
54357         * lib/xmalloca.c: Likewise.
54358         * lib/xmalloca.h: Likewise.
54359         * lib/xmemcoll.c: Likewise.
54360         * lib/xnanosleep.c: Likewise.
54361         * lib/xreadlink.c: Likewise.
54362         * lib/xreadlink.h: Likewise.
54363         * lib/xsetenv.c: Likewise.
54364         * lib/xsetenv.h: Likewise.
54365         * lib/xstriconv.c: Likewise.
54366         * lib/xstriconv.h: Likewise.
54367         * lib/xstrndup.c: Likewise.
54368         * lib/xstrndup.h: Likewise.
54369         * lib/xstrtod.c: Likewise.
54370         * lib/xstrtod.h: Likewise.
54371         * lib/xstrtol-error.c: Likewise.
54372         * lib/xstrtol.c: Likewise.
54373         * lib/xstrtol.h: Likewise.
54374         * lib/xtime.h: Likewise.
54375         * lib/xvasprintf.c: Likewise.
54376         * lib/xvasprintf.h: Likewise.
54377         * lib/yesno.c: Likewise.
54378         * lib/yesno.h: Likewise.
54379         * posix-modules: Likewise.
54380         * tests/test-alloca-opt.c: Likewise.
54381         * tests/test-arcfour.c: Likewise.
54382         * tests/test-arctwo.c: Likewise.
54383         * tests/test-argmatch.c: Likewise.
54384         * tests/test-argp-2.sh: Likewise.
54385         * tests/test-argp.c: Likewise.
54386         * tests/test-arpa_inet.c: Likewise.
54387         * tests/test-array_list.c: Likewise.
54388         * tests/test-array_oset.c: Likewise.
54389         * tests/test-atexit.c: Likewise.
54390         * tests/test-avltree_list.c: Likewise.
54391         * tests/test-avltree_oset.c: Likewise.
54392         * tests/test-avltreehash_list.c: Likewise.
54393         * tests/test-base64.c: Likewise.
54394         * tests/test-binary-io.c: Likewise.
54395         * tests/test-byteswap.c: Likewise.
54396         * tests/test-c-ctype.c: Likewise.
54397         * tests/test-c-strcasecmp.c: Likewise.
54398         * tests/test-c-strcasestr.c: Likewise.
54399         * tests/test-c-strncasecmp.c: Likewise.
54400         * tests/test-c-strstr.c: Likewise.
54401         * tests/test-canonicalize-lgpl.c: Likewise.
54402         * tests/test-canonicalize.c: Likewise.
54403         * tests/test-carray_list.c: Likewise.
54404         * tests/test-ceilf.c: Likewise.
54405         * tests/test-ceill.c: Likewise.
54406         * tests/test-count-one-bits.c: Likewise.
54407         * tests/test-crc.c: Likewise.
54408         * tests/test-dirname.c: Likewise.
54409         * tests/test-fbufmode.c: Likewise.
54410         * tests/test-fcntl.c: Likewise.
54411         * tests/test-fflush.c: Likewise.
54412         * tests/test-floorf.c: Likewise.
54413         * tests/test-floorl.c: Likewise.
54414         * tests/test-fopen.c: Likewise.
54415         * tests/test-fprintf-posix.c: Likewise.
54416         * tests/test-fprintf-posix.h: Likewise.
54417         * tests/test-fpurge.c: Likewise.
54418         * tests/test-freadable.c: Likewise.
54419         * tests/test-freadahead.c: Likewise.
54420         * tests/test-freading.c: Likewise.
54421         * tests/test-freopen.c: Likewise.
54422         * tests/test-frexp.c: Likewise.
54423         * tests/test-frexpl.c: Likewise.
54424         * tests/test-fseek.c: Likewise.
54425         * tests/test-fseeko.c: Likewise.
54426         * tests/test-fseterr.c: Likewise.
54427         * tests/test-fstrcmp.c: Likewise.
54428         * tests/test-ftell.c: Likewise.
54429         * tests/test-ftello.c: Likewise.
54430         * tests/test-fwritable.c: Likewise.
54431         * tests/test-fwriting.c: Likewise.
54432         * tests/test-getaddrinfo.c: Likewise.
54433         * tests/test-getpass.c: Likewise.
54434         * tests/test-gettimeofday.c: Likewise.
54435         * tests/test-hmac-md5.c: Likewise.
54436         * tests/test-hmac-sha1.c: Likewise.
54437         * tests/test-iconv.c: Likewise.
54438         * tests/test-iconvme.c: Likewise.
54439         * tests/test-inttypes.c: Likewise.
54440         * tests/test-isnan.c: Likewise.
54441         * tests/test-isnanf.c: Likewise.
54442         * tests/test-isnanl-nolibm.c: Likewise.
54443         * tests/test-isnanl.c: Likewise.
54444         * tests/test-isnanl.h: Likewise.
54445         * tests/test-ldexpl.c: Likewise.
54446         * tests/test-linked_list.c: Likewise.
54447         * tests/test-linkedhash_list.c: Likewise.
54448         * tests/test-locale.c: Likewise.
54449         * tests/test-localename.c: Likewise.
54450         * tests/test-lock.c: Likewise.
54451         * tests/test-lseek.c: Likewise.
54452         * tests/test-malloca.c: Likewise.
54453         * tests/test-math.c: Likewise.
54454         * tests/test-mbscasecmp.c: Likewise.
54455         * tests/test-mbscasestr1.c: Likewise.
54456         * tests/test-mbscasestr2.c: Likewise.
54457         * tests/test-mbscasestr3.c: Likewise.
54458         * tests/test-mbscasestr4.c: Likewise.
54459         * tests/test-mbschr.c: Likewise.
54460         * tests/test-mbscspn.c: Likewise.
54461         * tests/test-mbsncasecmp.c: Likewise.
54462         * tests/test-mbspbrk.c: Likewise.
54463         * tests/test-mbspcasecmp.c: Likewise.
54464         * tests/test-mbsrchr.c: Likewise.
54465         * tests/test-mbsspn.c: Likewise.
54466         * tests/test-mbsstr1.c: Likewise.
54467         * tests/test-mbsstr2.c: Likewise.
54468         * tests/test-mbsstr3.c: Likewise.
54469         * tests/test-md5.c: Likewise.
54470         * tests/test-memmem.c: Likewise.
54471         * tests/test-netinet_in.c: Likewise.
54472         * tests/test-open.c: Likewise.
54473         * tests/test-printf-frexp.c: Likewise.
54474         * tests/test-printf-frexpl.c: Likewise.
54475         * tests/test-printf-posix.c: Likewise.
54476         * tests/test-printf-posix.h: Likewise.
54477         * tests/test-rbtree_list.c: Likewise.
54478         * tests/test-rbtree_oset.c: Likewise.
54479         * tests/test-rbtreehash_list.c: Likewise.
54480         * tests/test-read-file.c: Likewise.
54481         * tests/test-rijndael.c: Likewise.
54482         * tests/test-search.c: Likewise.
54483         * tests/test-signbit.c: Likewise.
54484         * tests/test-sleep.c: Likewise.
54485         * tests/test-snprintf-posix.c: Likewise.
54486         * tests/test-snprintf-posix.h: Likewise.
54487         * tests/test-snprintf.c: Likewise.
54488         * tests/test-sprintf-posix.c: Likewise.
54489         * tests/test-sprintf-posix.h: Likewise.
54490         * tests/test-stat-time.c: Likewise.
54491         * tests/test-stdbool.c: Likewise.
54492         * tests/test-stdint.c: Likewise.
54493         * tests/test-stdio.c: Likewise.
54494         * tests/test-stdlib.c: Likewise.
54495         * tests/test-stpncpy.c: Likewise.
54496         * tests/test-strcasestr.c: Likewise.
54497         * tests/test-striconv.c: Likewise.
54498         * tests/test-striconveh.c: Likewise.
54499         * tests/test-striconveha.c: Likewise.
54500         * tests/test-string.c: Likewise.
54501         * tests/test-sys_select.c: Likewise.
54502         * tests/test-sys_socket.c: Likewise.
54503         * tests/test-sys_stat.c: Likewise.
54504         * tests/test-sys_time.c: Likewise.
54505         * tests/test-sysexits.c: Likewise.
54506         * tests/test-time.c: Likewise.
54507         * tests/test-tls.c: Likewise.
54508         * tests/test-trunc.c: Likewise.
54509         * tests/test-truncf.c: Likewise.
54510         * tests/test-truncl.c: Likewise.
54511         * tests/test-unistd.c: Likewise.
54512         * tests/test-vasnprintf-posix.c: Likewise.
54513         * tests/test-vasnprintf-posix2.c: Likewise.
54514         * tests/test-vasnprintf.c: Likewise.
54515         * tests/test-vasprintf-posix.c: Likewise.
54516         * tests/test-vasprintf.c: Likewise.
54517         * tests/test-verify.c: Likewise.
54518         * tests/test-vfprintf-posix.c: Likewise.
54519         * tests/test-vprintf-posix.c: Likewise.
54520         * tests/test-vsnprintf-posix.c: Likewise.
54521         * tests/test-vsnprintf.c: Likewise.
54522         * tests/test-vsprintf-posix.c: Likewise.
54523         * tests/test-wchar.c: Likewise.
54524         * tests/test-wctype.c: Likewise.
54525         * tests/test-wcwidth.c: Likewise.
54526         * tests/test-xstrtol.c: Likewise.
54527         * tests/test-xvasprintf.c: Likewise.
54528         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54529         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54530         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54531         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54532         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54533         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54534         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54535         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54536         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54537         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54538         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54539         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54540         * tests/uniname/test-uninames.c: Likewise.
54541         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54542         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54543         * tests/unistdio/test-u16-printf1.h: Likewise.
54544         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54545         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54546         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54547         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54548         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54549         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54550         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54551         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54552         * tests/unistdio/test-u32-printf1.h: Likewise.
54553         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54554         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54555         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54556         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54557         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54558         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54559         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54560         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54561         * tests/unistdio/test-u8-printf1.h: Likewise.
54562         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54563         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54564         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54565         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54566         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54567         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54568         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54569         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54570         * tests/unistdio/test-ulc-printf1.h: Likewise.
54571         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54572         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54573         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54574         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54575         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54576         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54577         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54578         * tests/uniwidth/test-u16-width.c: Likewise.
54579         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54580         * tests/uniwidth/test-u32-width.c: Likewise.
54581         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54582         * tests/uniwidth/test-u8-width.c: Likewise.
54583         * tests/uniwidth/test-uc_width.c: Likewise.
54584         * config/srclist-update: Likewise.
54585         (fixlicense): Update to GPLv3+.
54586
54587         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54588         * tests/test-tsearch.c: Change copyright notice.
54589
54590         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54591         * lib/c-strcaseeq.h: Change copyright notice.
54592         * lib/streq.h: Likewise.
54593         * lib/uniconv.h: Likewise.
54594         * lib/uniconv/u-conv-from-enc.h: Likewise.
54595         * lib/uniconv/u-conv-to-enc.h: Likewise.
54596         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54597         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54598         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54599         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54600         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54601         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54602         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54603         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54604         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54605         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54606         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54607         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54608         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54609         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54610         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54611         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54612         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54613         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54614         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54615         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54616         * lib/uniname.h: Likewise.
54617         * lib/uniname/uniname.c: Likewise.
54618         * lib/unistdio.h: Likewise.
54619         * lib/unistdio/u-asnprintf.h: Likewise.
54620         * lib/unistdio/u-asprintf.h: Likewise.
54621         * lib/unistdio/u-printf-args.c: Likewise.
54622         * lib/unistdio/u-printf-args.h: Likewise.
54623         * lib/unistdio/u-printf-parse.h: Likewise.
54624         * lib/unistdio/u-snprintf.h: Likewise.
54625         * lib/unistdio/u-sprintf.h: Likewise.
54626         * lib/unistdio/u-vasprintf.h: Likewise.
54627         * lib/unistdio/u-vsnprintf.h: Likewise.
54628         * lib/unistdio/u-vsprintf.h: Likewise.
54629         * lib/unistdio/u16-asnprintf.c: Likewise.
54630         * lib/unistdio/u16-asprintf.c: Likewise.
54631         * lib/unistdio/u16-printf-parse.c: Likewise.
54632         * lib/unistdio/u16-snprintf.c: Likewise.
54633         * lib/unistdio/u16-sprintf.c: Likewise.
54634         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54635         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54636         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54637         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54638         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54639         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54640         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54641         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54642         * lib/unistdio/u16-vasnprintf.c: Likewise.
54643         * lib/unistdio/u16-vasprintf.c: Likewise.
54644         * lib/unistdio/u16-vsnprintf.c: Likewise.
54645         * lib/unistdio/u16-vsprintf.c: Likewise.
54646         * lib/unistdio/u32-asnprintf.c: Likewise.
54647         * lib/unistdio/u32-asprintf.c: Likewise.
54648         * lib/unistdio/u32-printf-parse.c: Likewise.
54649         * lib/unistdio/u32-snprintf.c: Likewise.
54650         * lib/unistdio/u32-sprintf.c: Likewise.
54651         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54652         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54653         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54654         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54655         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54656         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54657         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54658         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54659         * lib/unistdio/u32-vasnprintf.c: Likewise.
54660         * lib/unistdio/u32-vasprintf.c: Likewise.
54661         * lib/unistdio/u32-vsnprintf.c: Likewise.
54662         * lib/unistdio/u32-vsprintf.c: Likewise.
54663         * lib/unistdio/u8-asnprintf.c: Likewise.
54664         * lib/unistdio/u8-asprintf.c: Likewise.
54665         * lib/unistdio/u8-printf-parse.c: Likewise.
54666         * lib/unistdio/u8-snprintf.c: Likewise.
54667         * lib/unistdio/u8-sprintf.c: Likewise.
54668         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54669         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54670         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54671         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54672         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54673         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54674         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54675         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54676         * lib/unistdio/u8-vasnprintf.c: Likewise.
54677         * lib/unistdio/u8-vasprintf.c: Likewise.
54678         * lib/unistdio/u8-vsnprintf.c: Likewise.
54679         * lib/unistdio/u8-vsprintf.c: Likewise.
54680         * lib/unistdio/ulc-asnprintf.c: Likewise.
54681         * lib/unistdio/ulc-asprintf.c: Likewise.
54682         * lib/unistdio/ulc-printf-parse.c: Likewise.
54683         * lib/unistdio/ulc-snprintf.c: Likewise.
54684         * lib/unistdio/ulc-sprintf.c: Likewise.
54685         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54686         * lib/unistdio/ulc-vasprintf.c: Likewise.
54687         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54688         * lib/unistdio/ulc-vsprintf.c: Likewise.
54689         * lib/unistr.h: Likewise.
54690         * lib/unistr/u-cpy-alloc.h: Likewise.
54691         * lib/unistr/u-cpy.h: Likewise.
54692         * lib/unistr/u-endswith.h: Likewise.
54693         * lib/unistr/u-move.h: Likewise.
54694         * lib/unistr/u-set.h: Likewise.
54695         * lib/unistr/u-startswith.h: Likewise.
54696         * lib/unistr/u-stpcpy.h: Likewise.
54697         * lib/unistr/u-stpncpy.h: Likewise.
54698         * lib/unistr/u-strcat.h: Likewise.
54699         * lib/unistr/u-strcpy.h: Likewise.
54700         * lib/unistr/u-strcspn.h: Likewise.
54701         * lib/unistr/u-strdup.h: Likewise.
54702         * lib/unistr/u-strlen.h: Likewise.
54703         * lib/unistr/u-strncat.h: Likewise.
54704         * lib/unistr/u-strncpy.h: Likewise.
54705         * lib/unistr/u-strnlen.h: Likewise.
54706         * lib/unistr/u-strpbrk.h: Likewise.
54707         * lib/unistr/u-strspn.h: Likewise.
54708         * lib/unistr/u-strstr.h: Likewise.
54709         * lib/unistr/u-strtok.h: Likewise.
54710         * lib/unistr/u16-check.c: Likewise.
54711         * lib/unistr/u16-chr.c: Likewise.
54712         * lib/unistr/u16-cmp.c: Likewise.
54713         * lib/unistr/u16-cpy-alloc.c: Likewise.
54714         * lib/unistr/u16-cpy.c: Likewise.
54715         * lib/unistr/u16-endswith.c: Likewise.
54716         * lib/unistr/u16-mblen.c: Likewise.
54717         * lib/unistr/u16-mbsnlen.c: Likewise.
54718         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54719         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54720         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54721         * lib/unistr/u16-mbtouc.c: Likewise.
54722         * lib/unistr/u16-mbtoucr.c: Likewise.
54723         * lib/unistr/u16-move.c: Likewise.
54724         * lib/unistr/u16-next.c: Likewise.
54725         * lib/unistr/u16-prev.c: Likewise.
54726         * lib/unistr/u16-set.c: Likewise.
54727         * lib/unistr/u16-startswith.c: Likewise.
54728         * lib/unistr/u16-stpcpy.c: Likewise.
54729         * lib/unistr/u16-stpncpy.c: Likewise.
54730         * lib/unistr/u16-strcat.c: Likewise.
54731         * lib/unistr/u16-strchr.c: Likewise.
54732         * lib/unistr/u16-strcmp.c: Likewise.
54733         * lib/unistr/u16-strcpy.c: Likewise.
54734         * lib/unistr/u16-strcspn.c: Likewise.
54735         * lib/unistr/u16-strdup.c: Likewise.
54736         * lib/unistr/u16-strlen.c: Likewise.
54737         * lib/unistr/u16-strmblen.c: Likewise.
54738         * lib/unistr/u16-strmbtouc.c: Likewise.
54739         * lib/unistr/u16-strncat.c: Likewise.
54740         * lib/unistr/u16-strncmp.c: Likewise.
54741         * lib/unistr/u16-strncpy.c: Likewise.
54742         * lib/unistr/u16-strnlen.c: Likewise.
54743         * lib/unistr/u16-strpbrk.c: Likewise.
54744         * lib/unistr/u16-strrchr.c: Likewise.
54745         * lib/unistr/u16-strspn.c: Likewise.
54746         * lib/unistr/u16-strstr.c: Likewise.
54747         * lib/unistr/u16-strtok.c: Likewise.
54748         * lib/unistr/u16-to-u32.c: Likewise.
54749         * lib/unistr/u16-to-u8.c: Likewise.
54750         * lib/unistr/u16-uctomb-aux.c: Likewise.
54751         * lib/unistr/u16-uctomb.c: Likewise.
54752         * lib/unistr/u32-check.c: Likewise.
54753         * lib/unistr/u32-chr.c: Likewise.
54754         * lib/unistr/u32-cmp.c: Likewise.
54755         * lib/unistr/u32-cpy-alloc.c: Likewise.
54756         * lib/unistr/u32-cpy.c: Likewise.
54757         * lib/unistr/u32-endswith.c: Likewise.
54758         * lib/unistr/u32-mblen.c: Likewise.
54759         * lib/unistr/u32-mbsnlen.c: Likewise.
54760         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54761         * lib/unistr/u32-mbtouc.c: Likewise.
54762         * lib/unistr/u32-mbtoucr.c: Likewise.
54763         * lib/unistr/u32-move.c: Likewise.
54764         * lib/unistr/u32-next.c: Likewise.
54765         * lib/unistr/u32-prev.c: Likewise.
54766         * lib/unistr/u32-set.c: Likewise.
54767         * lib/unistr/u32-startswith.c: Likewise.
54768         * lib/unistr/u32-stpcpy.c: Likewise.
54769         * lib/unistr/u32-stpncpy.c: Likewise.
54770         * lib/unistr/u32-strcat.c: Likewise.
54771         * lib/unistr/u32-strchr.c: Likewise.
54772         * lib/unistr/u32-strcmp.c: Likewise.
54773         * lib/unistr/u32-strcpy.c: Likewise.
54774         * lib/unistr/u32-strcspn.c: Likewise.
54775         * lib/unistr/u32-strdup.c: Likewise.
54776         * lib/unistr/u32-strlen.c: Likewise.
54777         * lib/unistr/u32-strmblen.c: Likewise.
54778         * lib/unistr/u32-strmbtouc.c: Likewise.
54779         * lib/unistr/u32-strncat.c: Likewise.
54780         * lib/unistr/u32-strncmp.c: Likewise.
54781         * lib/unistr/u32-strncpy.c: Likewise.
54782         * lib/unistr/u32-strnlen.c: Likewise.
54783         * lib/unistr/u32-strpbrk.c: Likewise.
54784         * lib/unistr/u32-strrchr.c: Likewise.
54785         * lib/unistr/u32-strspn.c: Likewise.
54786         * lib/unistr/u32-strstr.c: Likewise.
54787         * lib/unistr/u32-strtok.c: Likewise.
54788         * lib/unistr/u32-to-u16.c: Likewise.
54789         * lib/unistr/u32-to-u8.c: Likewise.
54790         * lib/unistr/u32-uctomb.c: Likewise.
54791         * lib/unistr/u8-check.c: Likewise.
54792         * lib/unistr/u8-chr.c: Likewise.
54793         * lib/unistr/u8-cmp.c: Likewise.
54794         * lib/unistr/u8-cpy-alloc.c: Likewise.
54795         * lib/unistr/u8-cpy.c: Likewise.
54796         * lib/unistr/u8-endswith.c: Likewise.
54797         * lib/unistr/u8-mblen.c: Likewise.
54798         * lib/unistr/u8-mbsnlen.c: Likewise.
54799         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54800         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54801         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54802         * lib/unistr/u8-mbtouc.c: Likewise.
54803         * lib/unistr/u8-mbtoucr.c: Likewise.
54804         * lib/unistr/u8-move.c: Likewise.
54805         * lib/unistr/u8-next.c: Likewise.
54806         * lib/unistr/u8-prev.c: Likewise.
54807         * lib/unistr/u8-set.c: Likewise.
54808         * lib/unistr/u8-startswith.c: Likewise.
54809         * lib/unistr/u8-stpcpy.c: Likewise.
54810         * lib/unistr/u8-stpncpy.c: Likewise.
54811         * lib/unistr/u8-strcat.c: Likewise.
54812         * lib/unistr/u8-strchr.c: Likewise.
54813         * lib/unistr/u8-strcmp.c: Likewise.
54814         * lib/unistr/u8-strcpy.c: Likewise.
54815         * lib/unistr/u8-strcspn.c: Likewise.
54816         * lib/unistr/u8-strdup.c: Likewise.
54817         * lib/unistr/u8-strlen.c: Likewise.
54818         * lib/unistr/u8-strmblen.c: Likewise.
54819         * lib/unistr/u8-strmbtouc.c: Likewise.
54820         * lib/unistr/u8-strncat.c: Likewise.
54821         * lib/unistr/u8-strncmp.c: Likewise.
54822         * lib/unistr/u8-strncpy.c: Likewise.
54823         * lib/unistr/u8-strnlen.c: Likewise.
54824         * lib/unistr/u8-strpbrk.c: Likewise.
54825         * lib/unistr/u8-strrchr.c: Likewise.
54826         * lib/unistr/u8-strspn.c: Likewise.
54827         * lib/unistr/u8-strstr.c: Likewise.
54828         * lib/unistr/u8-strtok.c: Likewise.
54829         * lib/unistr/u8-to-u16.c: Likewise.
54830         * lib/unistr/u8-to-u32.c: Likewise.
54831         * lib/unistr/u8-uctomb-aux.c: Likewise.
54832         * lib/unistr/u8-uctomb.c: Likewise.
54833         * lib/unitypes.h: Likewise.
54834         * lib/uniwidth.h: Likewise.
54835         * lib/uniwidth/cjk.h: Likewise.
54836         * lib/uniwidth/u16-strwidth.c: Likewise.
54837         * lib/uniwidth/u16-width.c: Likewise.
54838         * lib/uniwidth/u32-strwidth.c: Likewise.
54839         * lib/uniwidth/u32-width.c: Likewise.
54840         * lib/uniwidth/u8-strwidth.c: Likewise.
54841         * lib/uniwidth/u8-width.c: Likewise.
54842         * lib/uniwidth/width.c: Likewise.
54843
54844 2007-10-07  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54847         The file is still under LGPL (see modules/inttypes).
54848
54849 2007-10-06  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/trunc (Dependencies): Add 'extensions'.
54852         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54853         Reported by Ben Pfaff <blp@gnu.org>.
54854
54855 2007-10-06  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/freopen-tests: New file.
54858         * tests/test-freopen.c: New file.
54859
54860         * modules/fopen-tests: New file.
54861         * tests/test-fopen.c: New file.
54862
54863         * modules/fopen: New file.
54864         * lib/fopen.c: New file.
54865         * m4/fopen.m4: New file.
54866         * modules/freopen: New file.
54867         * lib/freopen.c: New file.
54868         * m4/freopen.m4: New file.
54869         * lib/stdio.in.h (fopen, freopen): New declarations.
54870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54871         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54872         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54873         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54874         * doc/functions/fopen.texi: Mention the 'fopen' module.
54875         * doc/functions/freopen.texi: Mention the 'freopen' module.
54876
54877 2007-10-06  Bruno Haible  <bruno@clisp.org>
54878
54879         * modules/open-tests: New file.
54880         * tests/test-open.c: New file.
54881
54882         * modules/open: New file.
54883         * lib/open.c: New file.
54884         * m4/open.m4: New file.
54885         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54886         lib/open.c does.
54887         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54888         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54889         macros.
54890         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54891         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54892         REPLACE_OPEN.
54893         * doc/functions/open.texi: Mention the 'open' module.
54894
54895 2007-10-04  Bruno Haible  <bruno@clisp.org>
54896
54897         * modules/ceill-tests: New file.
54898         * tests/test-ceill.c: New file.
54899
54900         * modules/ceill: New file.
54901         * lib/ceill.c: Replace entire file.
54902         * m4/ceill.m4: New file.
54903         * lib/math.in.h (ceill): Replace declaration.
54904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54905         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54906         * doc/functions/ceill.texi: Mention the 'ceill' module.
54907         * modules/mathl (Files): Remove lib/ceill.c.
54908         (Depends-on): Add ceill.
54909
54910 2007-10-04  Bruno Haible  <bruno@clisp.org>
54911
54912         * modules/ceilf-tests: New file.
54913         * tests/test-ceilf.c: New file.
54914
54915         * modules/ceilf: New file.
54916         * lib/ceil.c: New file.
54917         * lib/ceilf.c: New file.
54918         * m4/ceilf.m4: New file.
54919         * lib/math.in.h (ceilf): New declaration.
54920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54921         HAVE_DECL_CEILF.
54922         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54923         HAVE_DECL_CEILF.
54924         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54925
54926 2007-10-04  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/floorl-tests: New file.
54929         * tests/test-floorl.c: New file.
54930
54931         * modules/floorl: New file.
54932         * lib/floorl.c: Replace entire file.
54933         * m4/floorl.m4: New file.
54934         * lib/math.in.h (floorl): Replace declaration.
54935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54936         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54937         * doc/functions/floorl.texi: Mention the 'floorl' module.
54938         * modules/mathl (Files): Remove lib/floorl.c.
54939         (Depends-on): Add floorl.
54940
54941 2007-10-04  Bruno Haible  <bruno@clisp.org>
54942
54943         * modules/floorf-tests: New file.
54944         * tests/test-floorf.c: New file.
54945
54946         * modules/floorf: New file.
54947         * lib/floor.c: New file.
54948         * lib/floorf.c: New file.
54949         * m4/floorf.m4: New file.
54950         * lib/math.in.h (floorf): New declaration.
54951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54952         HAVE_DECL_FLOORF.
54953         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54954         HAVE_DECL_FLOORF.
54955         * doc/functions/floorf.texi: Mention the 'floorf' module.
54956
54957 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54958             Bruno Haible  <bruno@clisp.org>
54959
54960         Advertise for the Git server instead of the CVS server.
54961         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54962         repository instead of the CVS one.
54963         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54964         about all VCS systems generically.
54965         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54966
54967 2007-10-04  Bruno Haible  <bruno@clisp.org>
54968
54969         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54970         means.
54971         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54972
54973 2007-10-04  Bruno Haible  <bruno@clisp.org>
54974
54975         * modules/truncl-tests: New file.
54976         * tests/test-truncl.c: New file.
54977
54978         * modules/truncl: New file.
54979         * lib/truncl.c: New file.
54980         * m4/truncl.m4: New file.
54981         * lib/math.in.h (truncl): New declaration.
54982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54983         HAVE_DECL_TRUNCL.
54984         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54985         HAVE_DECL_TRUNCL.
54986         * doc/functions/truncl.texi: Mention the 'truncl' module.
54987
54988 2007-10-04  Bruno Haible  <bruno@clisp.org>
54989
54990         * modules/truncf-tests: New file.
54991         * tests/test-truncf.c: New file.
54992
54993         * modules/truncf: New file.
54994         * lib/trunc.c: Make paramerizable through USE_* macros.
54995         * lib/truncf.c: New file.
54996         * m4/truncf.m4: New file.
54997         * lib/math.in.h (truncf): New declaration.
54998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54999         HAVE_DECL_TRUNCF.
55000         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55001         HAVE_DECL_TRUNCF.
55002         * doc/functions/truncf.texi: Mention the 'truncf' module.
55003
55004 2007-10-03  Bruno Haible  <bruno@clisp.org>
55005
55006         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55007         augmentation also for tests modules.
55008         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55009         * modules/atexit-tests (Makefile.am): Likewise.
55010         * modules/binary-io-tests (Makefile.am): Likewise.
55011         * modules/c-strcase-tests (Makefile.am): Likewise.
55012         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55013         * modules/canonicalize-tests (Makefile.am): Likewise.
55014         * modules/closein-tests (Makefile.am): Likewise.
55015         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55016         * modules/freadahead-tests (Makefile.am): Likewise.
55017         * modules/fseek-tests (Makefile.am): Likewise.
55018         * modules/fseeko-tests (Makefile.am): Likewise.
55019         * modules/ftell-tests (Makefile.am): Likewise.
55020         * modules/ftello-tests (Makefile.am): Likewise.
55021         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55022         * modules/isnanl-tests (Makefile.am): Likewise.
55023         * modules/lseek-tests (Makefile.am): Likewise.
55024         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55025         * modules/mbscasestr-tests (Makefile.am): Likewise.
55026         * modules/mbschr-tests (Makefile.am): Likewise.
55027         * modules/mbscspn-tests (Makefile.am): Likewise.
55028         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55029         * modules/mbspbrk-tests (Makefile.am): Likewise.
55030         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55031         * modules/mbsrchr-tests (Makefile.am): Likewise.
55032         * modules/mbsspn-tests (Makefile.am): Likewise.
55033         * modules/mbsstr-tests (Makefile.am): Likewise.
55034         * modules/printf-posix-tests (Makefile.am): Likewise.
55035         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55036         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55037         * modules/tsearch-tests (Makefile.am): Likewise.
55038         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55039         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55040         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55041         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55042         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55043         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55044         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55045         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55046         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55047         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55048         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55049         * modules/xstrtol-tests (Makefile.am): Likewise.
55050         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55051         * modules/yesno-tests (Makefile.am): Likewise.
55052
55053 2007-10-03  Bruno Haible  <bruno@clisp.org>
55054
55055         * modules/trunc-tests: New file.
55056         * tests/test-trunc.c: New file.
55057
55058         * modules/trunc: New file.
55059         * lib/trunc.c: New file.
55060         * m4/trunc.m4: New file.
55061         * lib/math.in.h (trunc): New declaration.
55062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55063         HAVE_DECL_TRUNC.
55064         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55065         HAVE_DECL_TRUNC.
55066         * doc/functions/trunc.texi: Mention the 'trunc' module.
55067
55068 2007-10-03  Bruno Haible  <bruno@clisp.org>
55069
55070         * tests/test-fpending.c: New file, mostly copied
55071         from coreutils/lib/t-fpending.c.
55072         * modules/fpending-tests: New file.
55073
55074 2007-10-03  Bruno Haible  <bruno@clisp.org>
55075
55076         Port the stdio extensions to QNX (untested).
55077         * lib/fseterr.c (fseterr): Add support for QNX.
55078         * lib/fbufmode.c (fbufmode): Likewise.
55079         * lib/freadable.c (freadable): Likewise.
55080         * lib/fwritable.c (fwritable): Likewise.
55081         * lib/freading.c (freading): Likewise.
55082         * lib/fwriting.c (fwriting): Likewise.
55083         * lib/freadahead.c (freadahed): Likewise.
55084         * lib/fpurge.c (fpurge): Likewise.
55085         * lib/fseeko.c (rpl_fseeko): Likewise.
55086
55087 2007-10-03  Bruno Haible  <bruno@clisp.org>
55088             Jim Meyering  <jim@meyering.net>
55089             Eric Blake  <ebb9@byu.net>
55090
55091         * doc/relocatable.texi: Use @command instead of @program.
55092
55093 2007-10-02  Jim Meyering  <jim@meyering.net>
55094
55095         Perform one more "_.h" -> ".in.h" substitution.
55096         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55097         instead of unistd_.h here, too.
55098
55099 2007-10-01  Bruno Haible  <bruno@clisp.org>
55100
55101         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55102         Needed for the alloca-opt module.
55103
55104 2007-09-30  Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55107         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55108         alloca_.h.
55109         * lib/argz.in.h: Renamed from lib/argz_.h.
55110         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55111         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55112         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55113         byteswap_.h.
55114         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55115         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55116         dirent_.h.
55117         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55118         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55119         fcntl_.h.
55120         * lib/float.in.h: Renamed from lib/float_.h.
55121         * modules/float (Files, Makefile.am): Use float.in.h instead of
55122         float_.h.
55123         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55124         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55125         fnmatch_.h.
55126         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55127         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55128         getopt_.h.
55129         * lib/glob.in.h: Renamed from lib/glob_.h.
55130         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55131         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55132         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55133         iconv_.h.
55134         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55135         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55136         inttypes_.h.
55137         * lib/locale.in.h: Renamed from lib/locale_.h.
55138         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55139         locale_.h.
55140         * lib/math.in.h: Renamed from lib/math_.h.
55141         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55142         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55143         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55144         of netinet_in_.h. Add dependency.
55145         * lib/poll.in.h: Renamed from lib/poll_.h.
55146         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55147         * lib/search.in.h: Renamed from lib/search_.h.
55148         * modules/search (Files, Makefile.am): Use search.in.h instead of
55149         search_.h.
55150         * lib/signal.in.h: Renamed from lib/signal_.h.
55151         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55152         _signal.h.
55153         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55154         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55155         stdbool_.h.
55156         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55157         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55158         stdint_.h.
55159         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55160         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55161         stdio_.h.
55162         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55163         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55164         stdlib_.h.
55165         * lib/string.in.h: Renamed from lib/string_.h.
55166         * modules/string (Files, Makefile.am): Use string.in.h instead of
55167         string_.h.
55168         * doc/gnulib-tool.texi (Initial import): Update.
55169         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55170         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55171         of sys_select_.h. Add dependency.
55172         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55173         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55174         of sys_socket_.h.
55175         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55176         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55177         sys_stat_.h.
55178         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55179         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55180         sys_time_.h.
55181         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55182         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55183         sysexits_.h.
55184         * lib/time.in.h: Renamed from lib/time_.h.
55185         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55186         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55187         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55188         unistd_.h.
55189         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55190         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55191         wchar_.h.
55192         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55193         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55194         wctype_.h.
55195         * build-aux/bootstrap (slurp): Update.
55196         * lib/.cppi-disable: Update.
55197
55198 2007-09-30  Bruno Haible  <bruno@clisp.org>
55199
55200         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55201         Needed on BeOS.
55202
55203 2007-09-30  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55206
55207 2007-09-29  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55210
55211 2007-09-29  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55214         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55215         * build-aux/install-reloc: Compile also areadlink.c.
55216         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55217
55218 2007-09-29  Bruno Haible  <bruno@clisp.org>
55219
55220         * gnulib-tool (func_emit_initmacro_done): Indentation.
55221
55222 2007-09-29  Bruno Haible  <bruno@clisp.org>
55223
55224         * README: Add CVS checkout update instructions.
55225         Info from Bob Proulx <bob@proulx.com>.
55226
55227 2007-09-28  Eric Blake  <ebb9@byu.net>
55228
55229         Provide move-if-change.
55230         * build-aux/move-if-change: New file, based on best practice
55231         rather than any canonical upstream location.
55232
55233 2007-09-28  Jim Meyering  <jim@meyering.net>
55234
55235         Fix canonicalize loop-detection corner case.
55236         Do not attempt to stat the symlink values stored via seen_triple.
55237         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55238         on linux-2.6.18, (but not 2.6.22).
55239         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55240         triple_compare.  The former compares dev,ino,filename, while the latter
55241         would actually stat dirname(filename) when dev and ino were equal.
55242         * lib/hash-triple.c: Install <string.h>.
55243         (STREQ): Define.
55244         (triple_compare_ino_str): New function.
55245         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55246
55247 2007-09-28  Eric Blake  <ebb9@byu.net>
55248
55249         Enforce that AC_REPLACE_FUNCS files exist.
55250         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55251         override check for typos.
55252
55253         Fix test-closein on Solaris 10.
55254         * tests/test-closein.c (main): Don't assume stdin can be inherited
55255         closed on all systems.
55256         * tests/test-closein.sh: Likewise.
55257         Reported by Piotr Tarnowski.
55258
55259 2007-09-28  Jim Meyering  <jim@meyering.net>
55260
55261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55262
55263 2007-09-27  Jim Meyering  <jim@meyering.net>
55264
55265         canonicalize: Avoid a false-positive cycle failure.
55266         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55267         Sort.  Remove cycle-check.
55268         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55269         not cycle-check.h.
55270         (seen_triple): New function.
55271         (canonicalize_filename_mode): Use it instead of cycle-check.
55272         * tests/test-canonicalize.c: Add a test for this bug.
55273         * tests/test-canonicalize.sh: Set up and run the test.
55274
55275         New module, file-set, from coreutils.
55276         * modules/file-set: Define it.
55277         * lib/file-set.c, lib/file-set.h: Implement.
55278
55279         New module, hash-triple, from coreutils.
55280         * modules/hash-triple: Define it.
55281         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55282
55283 2007-09-25  Eric Blake  <ebb9@byu.net>
55284
55285         Fix strerror on Interix.
55286         * lib/string_.h (strerror): Declare replacement.
55287         * doc/functions/strerror.texi (strerror): Document the Interix
55288         shortcoming.
55289         * modules/string (Makefile.am): Support new hooks.
55290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55291         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55292         gl_FUNC_STRERROR_SEPARATE.
55293         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55294         * lib/strerror.c (rpl_strerror): Provide replacement.
55295         * modules/strerror (Depends-on): Add string.
55296         (configure.ac): Detect use of module.
55297         * tests/test-strerror.c: New file.
55298         * modules/strerror-tests: New test module.
55299         * modules/argp (Depends-on): Add strerror.
55300         * modules/error (Depends-on): Likewise.
55301         Reported by Martin Koeppe.
55302
55303 2007-09-24  Bruno Haible  <bruno@clisp.org>
55304
55305         * README: Update git instructions.
55306
55307 2007-09-24  Eric Blake  <ebb9@byu.net>
55308
55309         Revert fpending breakage from 2007-09-08.
55310         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55311         __fpending.c.
55312
55313 2007-09-24  Jim Meyering  <jim@meyering.net>
55314
55315         filenamecat.c: Add a test.
55316         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55317         showing how the function works when DIR is the empty string.
55318
55319 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55320
55321         * tests/test-canonicalize.sh: Turn on executable bit.
55322
55323 2007-09-19  Eric Blake  <ebb9@byu.net>
55324
55325         * README: Update CVS instructions.
55326
55327 2007-09-18  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/areadlink: New file.
55330         * lib/areadlink.h (areadlink): New declaration.
55331         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55332
55333 2007-09-17  Jim Meyering  <jim@meyering.net>
55334
55335         * lib/savewd.c (ESTALE) [!defined]: Define.
55336         Reported to be required on Interix by Martin Koeppe.
55337
55338 2007-09-17  Bruno Haible  <bruno@clisp.org>
55339
55340         * gnulib-tool (func_version): Use $version.
55341
55342 2007-09-16  Bruno Haible  <bruno@clisp.org>
55343
55344         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55345         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55346         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55347         Reported by Greg Schafer <gschafer@zip.com.au>.
55348
55349 2007-09-15  Bruno Haible  <bruno@clisp.org>
55350
55351         * gnulib-tool (sed): Try a little harder to make bash understand the
55352         alias.
55353         Reported by Bruce Korb <bruce.korb@gmail.com>.
55354
55355 2007-09-13  Eric Blake  <ebb9@byu.net>
55356
55357         * ChangeLog: Remove conflict markers.
55358
55359 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55360
55361         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55362         Reported by Bruno Haible <bruno@clisp.org>.
55363
55364 2007-09-12  Bruno Haible  <bruno@clisp.org>
55365
55366         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55367         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55368         is not defined.
55369
55370 2007-09-12  Eric Blake  <ebb9@byu.net>
55371
55372         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55374         Autoconf definition.
55375         * modules/euidaccess (Depends-on): Add extensions, for
55376         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55377         * modules/fnmatch (Depends-on): Likewise.
55378         * modules/getaddrinfo (Depends-on): Likewise.
55379         * modules/getdelim (Depends-on): Likewise.
55380         * modules/getline (Depends-on): Likewise.
55381         * modules/getsubopt (Depends-on): Likewise.
55382         * modules/gettext (Depends-on): Likewise.
55383         * modules/group-member (Depends-on): Likewise.
55384         * modules/mbchar (Depends-on): Likewise.
55385         * modules/memmem (Depends-on): Likewise.
55386         * modules/mempcpy (Depends-on): Likewise.
55387         * modules/memrchr (Depends-on): Likewise.
55388         * modules/pagealign_alloc (Depends-on): Likewise.
55389         * modules/readutmp (Depends-on): Likewise.
55390         * modules/stpcpy (Depends-on): Likewise.
55391         * modules/stpncpy (Depends-on): Likewise.
55392         * modules/strchrnul (Depends-on): Likewise.
55393         * modules/strndup (Depends-on): Likewise.
55394         * modules/strsep (Depends-on): Likewise.
55395         * modules/strverscmp (Depends-on): Likewise.
55396         * modules/vasprintf (Depends-on): Likewise.
55397         * modules/wcwidth (Depends-on): Likewise.
55398         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55399         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55402         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55403         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55404         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55405         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55406         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55407         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55409         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55410         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55411         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55412         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55413         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55414         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55415         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55417         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55418         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55419         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55420         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55421         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55422         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55424         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55425         so that lock.m4 can be used in gettext without extensions module.
55426
55427 2007-09-11  Bruno Haible  <bruno@clisp.org>
55428
55429         * m4/isc-posix.m4: Remove file.
55430         Suggested by Eric Blake.
55431
55432 2007-09-11  Eric Blake  <ebb9@byu.net>
55433
55434         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55435
55436 2007-09-10  Bruno Haible  <bruno@clisp.org>
55437
55438         * posix-modules: Fix typo in error message.
55439         Reported by Matt <mkraai@beckman.com>.
55440
55441 2007-09-09  Bruno Haible  <bruno@clisp.org>
55442
55443         * doc/functions/getdelim.texi: Update list of platforms lacking the
55444         function.
55445         * doc/functions/getline.texi: Likewise.
55446
55447 2007-09-09  Jim Meyering  <jim@meyering.net>
55448
55449         * lib/hash.c (hash_initialize): Detect calloc failure.
55450         Reported by Bruno Haible.
55451
55452 2007-09-09  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55455         malloc or realloc fails.
55456
55457 2007-09-09  Bruno Haible  <bruno@clisp.org>
55458
55459         * modules/getcwd (Depends-on): Add malloc-posix.
55460         * modules/glob (Depends-on): Likewise.
55461         * modules/putenv (Depends-on): Likewise.
55462         * modules/strdup (Depends-on): Likewise.
55463         * modules/getdelim (Depends-on): Add realloc-posix.
55464         * modules/read-file (Depends-on): Likewise.
55465
55466 2007-09-09  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55469         (gl_FUNC_MALLOC_POSIX): Require it.
55470         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55471         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55472         * modules/realloc (Files): Add m4/malloc.m4.
55473         * modules/calloc (Files): Likewise.
55474
55475 2007-09-09  Bruno Haible  <bruno@clisp.org>
55476
55477         * modules/malloc-posix: New file.
55478         * modules/malloc (Depends-on): Add malloc-posix.
55479         * lib/malloc.c: Include errno.h.
55480         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55481         and a POSIX-compatible malloc into a single function. Set ENOMEM
55482         when returning NULL.
55483         * m4/malloc.m4: New file.
55484         * doc/functions/malloc.texi: Mention the malloc-posix module.
55485         * lib/stdlib_.h (malloc): New declaration.
55486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55487         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55488         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55489         and HAVE_MALLOC_POSIX.
55490
55491 2007-09-09  Bruno Haible  <bruno@clisp.org>
55492
55493         * modules/realloc-posix: New file.
55494         * modules/realloc (Depends-on): Add realloc-posix.
55495         * lib/realloc.c: Include errno.h.
55496         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55497         and a POSIX-compatible realloc into a single function. Set ENOMEM
55498         when returning NULL.
55499         * m4/realloc.m4: New file.
55500         * doc/functions/realloc.texi: Mention the realloc-posix module.
55501         * lib/stdlib_.h (realloc): New declaration.
55502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55503         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55504         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55505         and HAVE_REALLOC_POSIX.
55506
55507 2007-09-09  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/calloc-posix: New file.
55510         * modules/calloc (Depends-on): Add calloc-posix.
55511         * lib/calloc.c: Include errno.h.
55512         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55513         and a POSIX-compatible calloc into a single function. Set ENOMEM
55514         when returning NULL.
55515         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55516         * doc/functions/calloc.texi: Mention the calloc-posix module.
55517         * lib/stdlib_.h (calloc): New declaration.
55518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55519         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55520         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55521         and HAVE_CALLOC_POSIX.
55522
55523 2007-09-09  Bruno Haible  <bruno@clisp.org>
55524
55525         Allow for modules to show an arbitrary notice.
55526         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55527         * gnulib-tool: New option --extract-notice.
55528         (func_usage): Document it.
55529         (sed_extract_prog): Update.
55530         (func_get_notice): New function.
55531         (func_modules_notice): New function.
55532         (func_import, func_create_testdir): Invoke it.
55533         Suggested by Jim Meyering.
55534
55535 2007-09-09  Bruno Haible  <bruno@clisp.org>
55536
55537         * gnulib-tool: New options --verbose, --quiet.
55538         (func_usage): Document them.
55539         (verbose): New variable.
55540         (func_execute_command): New function.
55541         (func_import): Don't show the module list and the file list if
55542         $verbose < 0.
55543         (func_create_testdir): Likewise. Use func_execute_command.
55544         (func_create_megatestdir): Use func_execute_command.
55545
55546 2007-09-08  Bruno Haible  <bruno@clisp.org>
55547
55548         * gnulib-tool (func_import): Prefer rsync over wget when available,
55549         for fetching the PO files.
55550
55551 2007-09-08  Bruno Haible  <bruno@clisp.org>
55552
55553         * posix-modules: New file. Portions copied from gnulib-tool.
55554         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55555
55556 2007-09-08  Jim Meyering  <jim@meyering.net>
55557
55558         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55559         * lib/fpending.h: Rename from __fpending.h.
55560         * lib/fpending.c: Rename from __fpending.c.
55561         Include "fpending.h", not "__fpending.h".
55562         * lib/__fpending.h, lib/__fpending.c: Remove files.
55563         * modules/fpending (Files): Reflect new file names.
55564         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55565
55566 2007-09-08  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/inttypes-h.m4: Remove stub file.
55569
55570 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55571
55572         * doc/headers/stdint.texi: Discuss #include_next issue.
55573
55574 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55575
55576         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55577
55578 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55579
55580         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55581         in variable name.
55582
55583 2007-09-03  Jim Meyering  <jim@meyering.net>
55584
55585         New module: git-version-gen.
55586         * modules/git-version-gen: New file.
55587
55588         Import changes from coreutils for bootstrap script.
55589
55590         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55591
55592         bootstrap: uses rsync to download the .po files
55593         * build-aux/bootstrap (po_download_command_format): New global.
55594         (download_po_files): Use rsync.
55595         (update_po_files): Don't remove .po files after download,
55596         so future rsync runs can take advantage of the copies.
55597
55598         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55599
55600         Solve the unnecessary-.po-file-regeneration problem once and for all.
55601         * build-aux/bootstrap (download_po_files): New function, renamed from
55602         get_translations.  Now, downloads, but doesn't update LINGUAS.
55603         (update_po_files): New function.
55604
55605         bootstrap: Ignore more.
55606         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55607         uniwidth to e.g., lib/.gitignore.
55608         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55609
55610         * build-aux/bootstrap: New setting: vc_ignore.
55611         (insert_sorted_if_absent): Create $file if absent.
55612         Adapt to new, possibly empty, list: $vc_ignore.
55613
55614         bootstrap: generate more ignorable names
55615         * build-aux/bootstrap (slurp): When generating ignorable names,
55616         also map .sin to .sed, .gperf to .c, and .y to .c.
55617
55618 2007-09-03  Jim Meyering  <jim@meyering.net>
55619
55620         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55621         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55622
55623 2007-09-02  Bruno Haible  <bruno@clisp.org>
55624
55625         Fix mis-recognition of 'mcs' on QNX 6.
55626         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55627         output contains the string "Mono".
55628         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55629         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55630
55631 2007-09-01  Bruno Haible  <bruno@clisp.org>
55632
55633         Fix collision between uniwidth/* and linebreak modules.
55634         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55635         u32_width): Remove declarations.
55636         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55637         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55638         streq3, streq2, streq1, streq0): Remove functions.
55639         (STREQ): Remove macro.
55640         (is_cjk_encoding): Remove function.
55641         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55642         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55643         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55644         * NEWS: Document the change.
55645
55646 2007-09-01  Bruno Haible  <bruno@clisp.org>
55647
55648         * lib/streq.h: Add double-inclusion guard.
55649
55650 2007-09-01  Karl Berry  <karl@gnu.org>
55651
55652         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55653
55654 2007-08-28  Jim Meyering  <jim@meyering.net>
55655
55656         Rename mreadlink_with_size to areadlink_with_size.
55657         * NEWS: Document the change.
55658         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55659         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55660         * lib/mreadlink.h: Rename this to...
55661         * lib/areadlink.h: ...this.
55662         * modules/mreadlink-with-size: Rename this to...
55663         * modules/areadlink-with-size: ...this.
55664         * lib/canonicalize.c: Reflect the renaming.
55665         * modules/canonicalize: Likewise.
55666
55667 2007-08-26  Bruno Haible  <bruno@clisp.org>
55668
55669         * gnulib-tool (func_import): When deciding which files to remove,
55670         consider also dangling symbolic links.
55671         Reported by Eric Blake.
55672
55673 2007-08-26  Bruno Haible  <bruno@clisp.org>
55674
55675         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55676
55677 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55678
55679         * lib/readline.c: Don't include getline.h, the prototype is now
55680         found in stdio.h.
55681
55682 2007-08-23  Jim Meyering  <jim@meyering.net>
55683
55684         Getdelim touchup.
55685         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55686         around the funlockfile call, since funlockfile never sets errno.
55687         Don't set errno upon failed realloc.
55688
55689 2007-08-22  Eric Blake  <ebb9@byu.net>
55690
55691         Getline touchups.
55692         * lib/getdelim.c (getdelim): Revert regression that required *n to
55693         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55694         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55695         getdelim, rather than whether implementation is missing.
55696         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55697         * lib/stdio_.h (getline): Also declare if replacement is
55698         required.
55699         * doc/functions/getdelim.texi: New file.
55700         * doc/functions/getline.texi: Likewise.
55701         * doc/gnulib.texi (Function Substitutes): Add new files.
55702         Reported by Bruno Haible.
55703
55704 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55705
55706         * users.txt: Add Guile.
55707
55708 2007-08-22  Eric Blake  <ebb9@byu.net>
55709
55710         * tests/test-getdelim.c (main): Use remove, not unlink.
55711         * tests/test-getline.c (main): Likewise.
55712
55713         Move getline and getdelim into stdio.h, per POSIX 200x.
55714         * modules/getline (Files): Remove getline.h.
55715         (Depends-on): Add stdio.
55716         (configure.ac): Add module indicator.
55717         * modules/getdelim (Files): Remove getdelim.h.
55718         (Depends-on): Add stdio.
55719         (configure.ac): Add module indicator.
55720         * modules/stdio (Makefile.am): Work with new indicators.
55721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55722         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55723         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55724         * lib/getdelim.h: Delete.
55725         * lib/getline.h: Delete.
55726         * lib/stdio_.h (getdelim, getline): Declare.
55727         * modules/getdelim-tests: New module.
55728         * modules/getline-tests: Likewise.
55729         * tests/test-getdelim.c: New file.
55730         * tests/test-getline.c: Likewise.
55731         * NEWS: Document the change.
55732         * lib/getline.c: Update choice of header.
55733         * lib/csharpcomp.c: Likewise.
55734         * lib/getpass.c: Likewise.
55735         * lib/javacomp.c: Likewise.
55736         * lib/javaversion.c: Likewise.
55737         * lib/yesno.c: Likewise.
55738         * lib/getdelim.c: Likewise.
55739         (getdelim): Set errno on failure, and avoid memory leak.
55740
55741 2007-08-19  Bruno Haible  <bruno@clisp.org>
55742
55743         * modules/closein (Depends-on): Add freadahead.
55744         * lib/closein.c: Include freadahead.h.
55745         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55746         is zero.
55747
55748 2007-08-19  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/freadahead-tests: New file.
55751         * tests/test-freadahead.sh: New file.
55752         * tests/test-freadahead.c: New file.
55753
55754         * modules/freadahead: New file.
55755         * lib/freadahead.h: New file.
55756         * lib/freadahead.c: New file.
55757         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55758         fbufmode, fpurge, freadable, fwritable.
55759
55760 2007-08-19  Eric Blake  <ebb9@byu.net>
55761
55762         Test yesno in combination with closein.
55763         * lib/yesno.c (yesno): Document use of stdin.
55764         * modules/yesno-tests (Files): New module.
55765         * tests/test-yesno.c (main): New file.
55766         * tests/test-yesno.sh: Likewise.
55767
55768 2007-08-19  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55771         * lib/fseeko.c (rpl_fseeko): Likewise.
55772         * lib/fseterr.c (fseterr): Likewise.
55773
55774 2007-08-19  Bruno Haible  <bruno@clisp.org>
55775
55776         * tests/test-lseek.c (main): Disable a test for BeOS.
55777         * doc/functions/lseek.texi: Document the BeOS bug.
55778
55779 2007-08-19  Bruno Haible  <bruno@clisp.org>
55780             Eric Blake  <ebb9@byu.net>
55781
55782         * lib/lseek.c: Include <sys/stat.h>.
55783         (rpl_lseek): Add workaround code also for Unix platforms.
55784         Needed for BeOS.
55785         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55786         * doc/functions/lseek.texi: Document BeOS definiency.
55787
55788 2007-08-18  Bruno Haible  <bruno@clisp.org>
55789
55790         * modules/fstrcmp-tests: New file.
55791         * tests/test-fstrcmp.c: New file.
55792
55793 2007-08-18  Bruno Haible  <bruno@clisp.org>
55794
55795         * modules/fstrcmp: New file, from GNU gettext with modifications.
55796         * lib/fstrcmp.h: New file, from GNU gettext.
55797         * lib/fstrcmp.c: New file, from GNU gettext.
55798         * MODULES.html.sh (String handling): Add fstrcmp.
55799
55800 2007-08-18  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55803         'bool'.
55804         (diag, compareseq): Remove const from the ctxt argument.
55805         (USE_HEURISTIC): Undefine at the end.
55806
55807 2007-08-18  Jim Meyering  <jim@meyering.net>
55808
55809         New file: lib/idcache.h
55810         * NEWS: Mention the addition.
55811         * modules/idcache (Files): Add lib/idcache.h
55812         * lib/idcache.c: Include "idcache.h".
55813         Don't include <sys/types.h>.
55814         Add a FIXME comment.
55815         Move file-scoped "static" declarations to the top.
55816         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55817
55818 2007-08-17  Bruno Haible  <bruno@clisp.org>
55819         and Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         * MODULES.html.sh: Add diffseq.
55822         * modules/diffseq: New file.
55823         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55824         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55825
55826 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         Import changes from coreutils for bootstrap script.
55829
55830         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * build-aux/bootstrap (slurp): Work even in environments where
55833         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55834         current code does not slurp files whose names start with ".", and
55835         this looks like it might be a troublesome area.
55836
55837         2007-07-11  Jim Meyering  <jim@meyering.net>
55838
55839         If there's a GPL vN copyright comment, require that N == 3.
55840
55841         2007-07-08  Jim Meyering  <jim@meyering.net>
55842
55843         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55844         * build-aux/bootstrap (mam_template): Move definition out of loop.
55845
55846         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55847
55848         * build-aux/bootstrap (symlink_to_dir): Rename function from
55849         symlink_to_gnulib.  Add a directory parameter.  Update all
55850         callers.
55851         (cp_mark_as_generated): Also check for -- and link to -- files in
55852         gl/.
55853
55854         2007-07-08  Jim Meyering  <jim@meyering.net>
55855
55856         Adapt to deeper hierarchy in gnulib.
55857         * build-aux/bootstrap (symlink_to_dir): If the destination
55858         directory doesn't exist, create it. This is required at least for
55859         "lib/uniwidth/cjk.h".
55860
55861         2007-05-15  Jim Meyering  <jim@meyering.net>
55862
55863         * build-aux/bootstrap: Now that generated Makefile.am files
55864         are no longer under version control, they must be created at
55865         bootstrap time.
55866
55867 2007-08-14  Ben Pfaff  <blp@gnu.org>
55868
55869         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55870
55871 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55874         given the changes below.
55875         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55876         even on hosts that have padding bits beyond the supported 64.
55877
55878 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55881         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55882         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55883         depends on it.
55884         (xstrtol_error): Remove.
55885         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55886         but with a different signature.
55887         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55888         * lib/xstrtol-error.c: Include exitfail.h.
55889         (xstrtol_fatal): New function, with a different signature from the
55890         old xstrtol_error, so that the caller need not worry about passing
55891         in an exit status, or about storage management of the option argument.
55892         (xstrtol_error): Now a static function.  Redo signature to
55893         implement xstrtol_fatal.  Output the correct number of hyphens in
55894         front of the option so that the caller need not worry about
55895         storage management.
55896         (N_): New macro.
55897         (_): Remove; not used now.
55898         * modules/xstrtol: Depend on getopt.
55899         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55900         of old STRTOL_FATAL_ERROR macro.
55901         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55902         of test program.
55903         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55904         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55905
55906 2007-08-08  Eric Blake  <ebb9@byu.net>
55907
55908         * lib/xstrtol-error.c: Add missing include.
55909
55910         Move xstrtol messages into gnulib domain, when --pobase is used.
55911         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55912         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55913         * modules/xstrtol (Files): Distribute new file.
55914         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55915         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55916         * tests/test-xstrtol.c: ...into new file.
55917         * tests/test-xstrtoul.c: Also test xstrtoul.
55918         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55919         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55920         * tests/test-xstrtol.sh: Drive the tests.
55921         * tests/test-xstrtoimax.sh: Likewise.
55922         * tests/test-xstrtoumax.sh: Likewise.
55923         * modules/xstrtol-tests: New module.
55924         * modules/xstrtoimax-tests: Likewise.
55925         * modules/xstrtoumax-tests: Likewise.
55926
55927 2007-08-08  Jim Meyering  <jim@meyering.net>
55928
55929         New function: mfile_name_concat.
55930         * lib/filenamecat.c (mfile_name_concat): New function, just like
55931         file_name_concat, but return NULL upon failure rather than exiting
55932         with a diagnostic.
55933         * lib/filenamecat.h: Declare it.
55934
55935 2007-08-07  Bruno Haible  <bruno@clisp.org>
55936
55937         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55938         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55939         warning from gcc.
55940         Reported by Eric Blake.
55941
55942 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55943
55944         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55945         * modules/crypto/arcfour (License): Likewise.
55946         * modules/crypto/des-tests (License): Likewise.
55947         * modules/crypto/gc-arctwo-tests (License): Likewise.
55948         * modules/crypto/gc-des-tests (License): Likewise.
55949         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55950         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55951         * modules/crypto/gc-md2-tests (License): Likewise.
55952         * modules/crypto/gc-md4-tests (License): Likewise.
55953         * modules/crypto/gc-md5-tests (License): Likewise.
55954         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55955         * modules/crypto/gc-rijndael-tests (License): Likewise.
55956         * modules/crypto/gc-sha1-tests (License): Likewise.
55957         * modules/crypto/gc-tests (License): Likewise.
55958         * modules/crypto/hmac-md5 (License): Likewise.
55959         * modules/crypto/hmac-sha1 (License): Likewise.
55960         * modules/crypto/md2-tests (License): Likewise.
55961         * modules/crypto/md4-tests (License): Likewise.
55962         * modules/crypto/md5 (License): Likewise.
55963         * modules/crypto/rijndael (License): Likewise.
55964         * modules/crypto/sha1 (License): Likewise.
55965         * modules/memxor (License): Likewise.
55966
55967 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55968         and Bruno Haible  <bruno@clisp.org>
55969
55970         * NEWS: Describe interface changes to human, xstrtol.
55971         * lib/human.h: Include <xstrtol.h>.
55972         (human_options): Return enum strtol_error, not int.  Remove
55973         bool arg; take int * instead.
55974         * lib/human.c: Don't include "gettext.h".
55975         (_): Remove; no longer used.
55976         Don't include <xstrtol.h>, since human.h does it.
55977         (human_options): Adjust to abovementioned interface changes.
55978         Do not report error to stderr; that's now the caller's
55979         responsibility.
55980         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55981         interface change.
55982         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55983         Str, Argument_type_string.  All uses changed.  Put " argument"
55984         in diagnostics to make them clearer.  Change wording of suffix
55985         message for clarity.
55986         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55987         Argument_type_string.
55988         (STRTOL_FATAL_WARN): Remove; no longer used.
55989         * modules/human (Depends-on): Remove gettext-h.
55990
55991 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55992
55993         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55994
55995 2007-07-31  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55998         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55999         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56000
56001 2007-07-31  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56004         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56005
56006 2007-07-30  Bruno Haible  <bruno@clisp.org>
56007
56008         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56009         * modules/c-ctype (License): Likewise.
56010         * modules/c-strcase (License): Likewise.
56011         * modules/check-version (License): Likewise.
56012         * modules/iconv (License): Likewise.
56013         * modules/iconv_open (License): Likewise.
56014         * modules/read-file (License): Likewise.
56015         * modules/striconv (License): Likewise.
56016         * modules/strverscmp (License): Likewise.
56017         * modules/vasprintf (License): Likewise.
56018         * modules/crypto/des (License): Likewise.
56019         * modules/crypto/gc (License): Likewise.
56020         * modules/crypto/gc-arcfour (License): Likewise.
56021         * modules/crypto/gc-arctwo (License): Likewise.
56022         * modules/crypto/gc-des (License): Likewise.
56023         * modules/crypto/gc-hmac-md5 (License): Likewise.
56024         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56025         * modules/crypto/gc-md2 (License): Likewise.
56026         * modules/crypto/gc-md4 (License): Likewise.
56027         * modules/crypto/gc-md5 (License): Likewise.
56028         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56029         * modules/crypto/gc-random (License): Likewise.
56030         * modules/crypto/gc-rijndael (License): Likewise.
56031         * modules/crypto/gc-sha1 (License): Likewise.
56032         * modules/crypto/md2 (License): Likewise.
56033         * modules/crypto/md4 (License): Likewise.
56034
56035 2007-07-30  Jim Meyering  <jim@meyering.net>
56036
56037         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56038         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56039         it has valid stat data.  This bug would cause du not to count the
56040         sizes of inaccessible directories.
56041         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56042         in <http://bugzilla.redhat.com/250077>.
56043
56044 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56045             Bruno Haible  <bruno@clisp.org>
56046
56047         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56048         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56049         #include_next, gives a diagnostic about it, but reports no error in
56050         the exit code.
56051         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56052
56053 2007-07-24  Ben Pfaff  <blp@gnu.org>
56054
56055         Improve name: "count-one-bits" is better than "popcount".
56056         * MODULES.html.sh: Update name.
56057         * lib/popcount.h: Renamed lib/count-one-bits.h.
56058         (popcount): Renamed count_one_bits.
56059         (popcountl): Renamed count_one_bits_l.
56060         (popcountll): Renamed count_one_bits_ll.
56061         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56062         * modules/popcount: Renamed module/count-one-bits.
56063         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56064         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56065
56066 2007-07-23  Ben Pfaff  <blp@gnu.org>
56067
56068         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56069         better code generation, and add U to large constants to avoid
56070         warnings, in non-GCC case.
56071         Suggested by Bruno Haible.
56072
56073 2007-07-23  Ben Pfaff  <blp@gnu.org>
56074
56075         * lib/popcount.h: Use verify_true instead of if...abort.
56076         * modules/popcount: Depend on verify module.
56077         Suggested by Jim Meyering.
56078
56079 2007-07-23  Bruno Haible  <bruno@clisp.org>
56080
56081         * gnulib-tool (func_import): Create a .cvsignore file also when the
56082         directory is not yet in CVS but the toplevel directory is. When
56083         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56084         Reported by Karl Berry.
56085
56086 2007-07-22  Ben Pfaff  <blp@gnu.org>
56087
56088         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56089         case.
56090         Suggested by Eric Blake.
56091
56092 2007-07-22  Ben Pfaff  <blp@gnu.org>
56093
56094         New module: popcount.
56095         * MODULES.html.sh: Add popcount.
56096         * modules/popcount: New file.
56097         * modules/popcount-tests: New file.
56098         * tests/test-popcount.c: New file.
56099         * lib/popcount.h: New file.
56100         * m4/popcount.m4: New file.
56101
56102 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56103
56104         * build-aux/announce-gen: Update to GPLv3.
56105
56106         * build-aux/config.guess: Update from config.
56107
56108 2007-07-21  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56111         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56112
56113 2007-07-20  Jim Meyering  <jim@meyering.net>
56114
56115         * check-module: Diagnose a self-dependency.
56116
56117 2007-07-19  Bruno Haible  <bruno@clisp.org>
56118
56119         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56120         empty.
56121         Reported by Eric Blake.
56122
56123 2007-07-18  Bruno Haible  <bruno@clisp.org>
56124
56125         * gnulib-tool: New options --po-base, --po-domain.
56126         (func_usage): Document them.
56127         (pobase, po_domain): New variables.
56128         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56129         DEFAULT_TEXT_DOMAIN.
56130         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56131         (func_import): Consider pobase and po_domain. Create a po/ directory.
56132         (func_create_testdir): Set pobase and po_domain to empty.
56133         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56134         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56135
56136 2007-07-18  Bruno Haible  <bruno@clisp.org>
56137
56138         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56139         EXTRA_DIST augmentation for files in build-aux/.
56140
56141 2007-07-16  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56144         * modules/getdelim (License): Likewise.
56145
56146 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56147
56148         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56149         * modules/d-type (License): Likewise.
56150         * modules/extensions (License): Likewise.
56151         * modules/fnmatch (License): Likewise.
56152         * modules/fseeko (License): Likewise.
56153         * modules/getaddrinfo (License): Likewise.
56154         * modules/getline (License): Likewise.
56155         * modules/getlogin_r (License): Likewise.
56156         * modules/getpass (License): Likewise.
56157         * modules/gettimeofday (License): Likewise.
56158         * modules/glob (License): Likewise.
56159         * modules/inet_ntop (License): Likewise.
56160         * modules/malloc (License): Likewise.
56161         * modules/malloca (License): Likewise.
56162         * modules/memmem (License): Likewise.
56163         * modules/mempcpy (License): Likewise.
56164         * modules/memset (License): Likewise.
56165         * modules/minmax (License): Likewise.
56166         * modules/mktime (License): Likewise.
56167         * modules/netinet_in (License): Likewise.
56168         * modules/pathmax (License): Likewise.
56169         * modules/poll (License): Likewise.
56170         * modules/regex (License): Likewise.
56171         * modules/snprintf (License): Likewise.
56172         * modules/stdbool (License): Likewise.
56173         * modules/stdint (License): Likewise.
56174         * modules/stdio (License): Likewise.
56175         * modules/strcase (License): Likewise.
56176         * modules/strcasestr (License): Likewise.
56177         * modules/strdup (License): Likewise.
56178         * modules/string (License): Likewise.
56179         * modules/strndup (License): Likewise.
56180         * modules/strnlen (License): Likewise.
56181         * modules/strpbrk (License): Likewise.
56182         * modules/strptime (License): Likewise.
56183         * modules/strsep (License): Likewise.
56184         * modules/sys_select (License): Likewise.
56185         * modules/sys_socket (License): Likewise.
56186         * modules/sys_stat (License): Likewise.
56187         * modules/sys_time (License): Likewise.
56188         * modules/time (License): Likewise.
56189         * modules/time_r (License): Likewise.
56190         * modules/timegm (License): Likewise.
56191         * modules/unistd (License): Likewise.
56192         * modules/vsnprintf (License): Likewise.
56193         * modules/wctype (License): Likewise.
56194
56195 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56196
56197         * modules/argz (License): LGPLv2+.
56198
56199 2007-07-15  Karl Berry  <karl@gnu.org>
56200
56201         * doc/gnulib.texi: revise node structure per new fdl.texi.
56202
56203 2007-07-14  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56206         the output file.
56207         * lib/uniname/uninames.h: Regenerated.
56208
56209 2007-07-14  Karl Berry  <karl@gnu.org>
56210
56211         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56212         omitting sectioning and index commands.
56213
56214 2007-07-13  Bruno Haible  <bruno@clisp.org>
56215
56216         New gnulib-tool option --more-symlinks.
56217         * gnulib-tool (func_usage): Document --more-symlinks.
56218         (do_copyrights): New variable.
56219         Recognize option --more-symlinks.
56220         (func_import): Don't add a copyright notice transform to
56221         sed_transform_lib_file if do_copyrights is empty.
56222
56223 2007-07-13  Bruno Haible  <bruno@clisp.org>
56224
56225         * lib/vasnprintf.c (decimal_point_char): Define also if
56226         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56227         && !NEED_PRINTF_DIRECTIVE_A.
56228         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56229         Gary V. Vaughan <gary@gnu.org>.
56230
56231 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56232
56233         * lib/inttypes_.h: Undo previous change, since it was fixed
56234         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56235
56236 2007-07-13  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56239         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56240
56241 2007-07-13  Jim Meyering  <jim@meyering.net>
56242
56243         df: Don't fail for Tru64's "file-on-file mount".
56244         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56245         so we fall through and use statfs instead.  Details here:
56246         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56247         Reported by Albert Chin.
56248
56249 2007-07-13  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56252         * modules/configmake (License): Likewise.
56253         * modules/gettext (License): Likewise.
56254         * modules/gettext-h (License): Likewise.
56255         * modules/include_next (License): Likewise.
56256         * modules/link-warning (License): Likewise.
56257         * modules/localcharset (License): Likewise.
56258         * modules/localename (License): Likewise.
56259         * modules/lock (License): Likewise.
56260         * modules/relocatable-lib-lgpl (License): Likewise.
56261         * modules/size_max (License): Likewise.
56262         * modules/vasnprintf (License): Likewise.
56263         * modules/wchar (License): Likewise.
56264         * modules/xsize (License): Likewise.
56265
56266 2007-07-13  Bruno Haible  <bruno@clisp.org>
56267
56268         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56269         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56270
56271 2007-07-12  Bruno Haible  <bruno@clisp.org>
56272
56273         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56274         in the modules files.
56275
56276 2007-07-11  Karl Berry  <karl@gnu.org>
56277
56278         * MODULES.html.sh (func_module): use
56279          sed -e '\|^'"${includefile}"'$|d'
56280          instead of /.../d, to avoid errors on $includefile's containing /.
56281
56282 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56283
56284         * gnulib-tool (func_import): Avoid duplication of --avoid
56285         statements
56286         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56287         names to `_' in variable names.
56288
56289 2007-07-10  Eric Blake  <ebb9@byu.net>
56290
56291         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56292         * NEWS: Document this change.
56293
56294 2007-07-08  Bruno Haible  <bruno@clisp.org>
56295
56296         Update to Unicode 5.0.
56297         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56298         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56299         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56300         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56301         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56302         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56303         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56304         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56305         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56306         U+10A3F, U+1D242..U+1D244.
56307         (nonspacing_table_ind): Update.
56308         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56309         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56310
56311 2007-07-08  Bruno Haible  <bruno@clisp.org>
56312
56313         Update to Unicode 5.0.
56314         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56315         code transform. Extend the name index field of unicode_name_to_code and
56316         unicode_code_to_name from 16 to 24 bits.
56317         * lib/uniname/uniname.c (unicode_character_name,
56318         unicode_name_character): Add the range 0x12xxx to the code transform.
56319         * lib/uniname/uninames.h: Regenerated.
56320         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56321
56322 2007-07-07  Bruno Haible  <bruno@clisp.org>
56323
56324         * modules/wcwidth-tests: New file.
56325         * tests/test-wcwidth.c: New file.
56326
56327         Work around MacOS X wcwidth() bug.
56328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56329         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56330         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56331         original wcwidth in non-UTF-8 locales.
56332         * modules/wcwidth (Depends-on): Add localcharset, streq,
56333         uniwidth/width.
56334         * doc/functions/wcwidth.texi: Update.
56335
56336 2007-07-07  Bruno Haible  <bruno@clisp.org>
56337
56338         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56339         (wcwidth): New declaration.
56340         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56341         macros.
56342         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56343         here. Prepare for creating <wchar.h> unconditionally.
56344         * modules/wchar (Depends-on): Add link-warning.
56345         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56346         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56347         * lib/wcwidth.h: Remove file.
56348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56349         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56350         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56351         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56352         (Include): Replace wcwidth.h with <wchar.h>.
56353         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56354         * lib/mbchar.h: Don't include wcwidth.h.
56355         * lib/mbswidth.c: Likewise.
56356         * NEWS: Mention the change.
56357
56358 2007-07-07  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56361         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56362         definition with an external declaration.
56363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56364         defined as a function. Remove AC_C_INLINE requirement.
56365         * modules/wcwidth (Files): Add lib/wcwidth.c.
56366         (Makefile.am): Remove redundant statement.
56367
56368 2007-07-07  Bruno Haible  <bruno@clisp.org>
56369
56370         * MODULES.html.sh (Unicode string functions): Add the new modules.
56371
56372         * tests/uniwidth/test-u32-strwidth.c: New file.
56373         * modules/uniwidth/u32-strwidth-tests: New file.
56374
56375         * lib/uniwidth/u32-strwidth.c: New file.
56376         * modules/uniwidth/u32-strwidth: New file.
56377
56378         * tests/uniwidth/test-u16-strwidth.c: New file.
56379         * modules/uniwidth/u16-strwidth-tests: New file.
56380
56381         * lib/uniwidth/u16-strwidth.c: New file.
56382         * modules/uniwidth/u16-strwidth: New file.
56383
56384         * tests/uniwidth/test-u8-strwidth.c: New file.
56385         * modules/uniwidth/u8-strwidth-tests: New file.
56386
56387         * lib/uniwidth/u8-strwidth.c: New file.
56388         * modules/uniwidth/u8-strwidth: New file.
56389
56390         * tests/uniwidth/test-u32-width.c: New file.
56391         * modules/uniwidth/u32-width-tests: New file.
56392
56393         * lib/uniwidth/u32-width.c: New file.
56394         * modules/uniwidth/u32-width: New file.
56395
56396         * tests/uniwidth/test-u16-width.c: New file.
56397         * modules/uniwidth/u16-width-tests: New file.
56398
56399         * lib/uniwidth/u16-width.c: New file.
56400         * modules/uniwidth/u16-width: New file.
56401
56402         * tests/uniwidth/test-u8-width.c: New file.
56403         * modules/uniwidth/u8-width-tests: New file.
56404
56405         * lib/uniwidth/u8-width.c: New file.
56406         * modules/uniwidth/u8-width: New file.
56407
56408         * tests/uniwidth/test-uc_width.c: New file.
56409         * modules/uniwidth/width-tests: New file.
56410
56411         * lib/uniwidth/width.c: New file, from GNU libiconv.
56412         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56413         * modules/uniwidth/width: New file.
56414
56415         * lib/uniwidth.h: New file, from GNU libiconv.
56416         * modules/uniwidth/base: New file.
56417
56418 2007-07-07  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/uniname.h: New file, from GNU gettext.
56421         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56422         * lib/uniname/uninames.h: New file, from GNU gettext.
56423         * lib/uniname/uniname.c: New file, from GNU gettext.
56424         * tests/uniname/test-uninames.sh: New file.
56425         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56426         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56427         * modules/uniname/base: New file.
56428         * modules/uniname/uniname: New file.
56429         * modules/uniname/uniname-tests: New file.
56430         * MODULES.html.sh (Unicode string functions): Add the new modules.
56431
56432 2007-07-06  Bruno Haible  <bruno@clisp.org>
56433
56434         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56435
56436 2007-07-06  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56439         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56440         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56441         include <sys/time.h>.
56442         Reported by Eric Blake.
56443
56444 2007-07-06  Eric Blake  <ebb9@byu.net>
56445
56446         Fix testing canonicalize on cygwin.
56447         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56448         Revert patch from 2007-06-19.
56449         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56450         canonicalize module is also in use.
56451         * tests/test-canonicalize.c: New file.
56452         * tests/test-canonicalize.sh: Likewise.
56453         * modules/canonicalize-tests: Likewise.
56454
56455 2007-07-06  Jim Meyering  <jim@meyering.net>
56456
56457         * lib/getugroups.c (getugroups): Detect getgrent failure.
56458         Adjust comment to reflect reality: this function may return -1.
56459
56460 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56461
56462         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56463         the new TP address.
56464         (usage): Fix typo
56465         (gnulib_mk): New variable.
56466
56467 2007-07-05  Jim Meyering  <jim@meyering.net>
56468
56469         Don't let endgrent clobber errno, no matter how improbable.
56470         * lib/getugroups.c (getugroups): Save and restore errno around
56471         endgrent call.
56472
56473         Close the group DB even when failing with 2^31 or more members.
56474         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56475
56476 2007-07-04  Jim Meyering  <jim@meyering.net>
56477
56478         * lib/getugroups.h: New file.
56479         * lib/getugroups.c: Include "getugroups.h".
56480         Remove uses of "register" keyword.
56481         Move local variable, "cp", down into scope where used.
56482         Give "username" parameter the "const" attribute.
56483         * modules/getugroups (Files): Add lib/getugroups.h
56484
56485 2007-07-04  Karl Berry  <karl@gnu.org>
56486
56487         * MODULES.html.sh (func_all_modules): Complete rename of
56488         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56489
56490 2007-07-02  Bruno Haible  <bruno@clisp.org>
56491
56492         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56493         mode, when inttypes.h comes from gnulib.
56494         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56495
56496 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56497
56498         * NEWS: Mention lgpl module name change.
56499
56500         * modules/lgpl-2.1: Renamed from lgpl.
56501
56502         * NEWS: Mention gpl module name change.
56503
56504         * modules/gpl-3.0: New file, based on gpl-2.0.
56505
56506         * modules/gpl-2.0: Renamed from gpl.
56507
56508         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56509         doc/gpl-2.0.texi.
56510
56511 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56512
56513         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56514         #define __STDC_LIMIT_MACROS temporarily while including
56515         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56516         Problem reported by Joel E. Denny in
56517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56518
56519 2007-07-01  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/unistdio.h: New file.
56522         * lib/unistdio/u-asnprintf.h: New file.
56523         * lib/unistdio/u-asprintf.h: New file.
56524         * lib/unistdio/u-printf-args.c: New file.
56525         * lib/unistdio/u-printf-args.h: New file.
56526         * lib/unistdio/u-printf-parse.h: New file.
56527         * lib/unistdio/u-snprintf.h: New file.
56528         * lib/unistdio/u-sprintf.h: New file.
56529         * lib/unistdio/u-vasprintf.h: New file.
56530         * lib/unistdio/u-vsnprintf.h: New file.
56531         * lib/unistdio/u-vsprintf.h: New file.
56532         * lib/unistdio/ulc-asnprintf.c: New file.
56533         * lib/unistdio/ulc-asprintf.c: New file.
56534         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56535         * lib/unistdio/ulc-printf-parse.c: New file.
56536         * lib/unistdio/ulc-snprintf.c: New file.
56537         * lib/unistdio/ulc-sprintf.c: New file.
56538         * lib/unistdio/ulc-vasnprintf.c: New file.
56539         * lib/unistdio/ulc-vasprintf.c: New file.
56540         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56541         * lib/unistdio/ulc-vsnprintf.c: New file.
56542         * lib/unistdio/ulc-vsprintf.c: New file.
56543         * lib/unistdio/u8-asnprintf.c: New file.
56544         * lib/unistdio/u8-asprintf.c: New file.
56545         * lib/unistdio/u8-printf-parse.c: New file.
56546         * lib/unistdio/u8-snprintf.c: New file.
56547         * lib/unistdio/u8-sprintf.c: New file.
56548         * lib/unistdio/u8-vasnprintf.c: New file.
56549         * lib/unistdio/u8-vasprintf.c: New file.
56550         * lib/unistdio/u8-vsnprintf.c: New file.
56551         * lib/unistdio/u8-vsprintf.c: New file.
56552         * lib/unistdio/u8-u8-asnprintf.c: New file.
56553         * lib/unistdio/u8-u8-asprintf.c: New file.
56554         * lib/unistdio/u8-u8-snprintf.c: New file.
56555         * lib/unistdio/u8-u8-sprintf.c: New file.
56556         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56557         * lib/unistdio/u8-u8-vasprintf.c: New file.
56558         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56559         * lib/unistdio/u8-u8-vsprintf.c: New file.
56560         * lib/unistdio/u16-asnprintf.c: New file.
56561         * lib/unistdio/u16-asprintf.c: New file.
56562         * lib/unistdio/u16-printf-parse.c: New file.
56563         * lib/unistdio/u16-snprintf.c: New file.
56564         * lib/unistdio/u16-sprintf.c: New file.
56565         * lib/unistdio/u16-vasnprintf.c: New file.
56566         * lib/unistdio/u16-vasprintf.c: New file.
56567         * lib/unistdio/u16-vsnprintf.c: New file.
56568         * lib/unistdio/u16-vsprintf.c: New file.
56569         * lib/unistdio/u16-u16-asnprintf.c: New file.
56570         * lib/unistdio/u16-u16-asprintf.c: New file.
56571         * lib/unistdio/u16-u16-snprintf.c: New file.
56572         * lib/unistdio/u16-u16-sprintf.c: New file.
56573         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56574         * lib/unistdio/u16-u16-vasprintf.c: New file.
56575         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56576         * lib/unistdio/u16-u16-vsprintf.c: New file.
56577         * lib/unistdio/u32-asnprintf.c: New file.
56578         * lib/unistdio/u32-asprintf.c: New file.
56579         * lib/unistdio/u32-printf-parse.c: New file.
56580         * lib/unistdio/u32-snprintf.c: New file.
56581         * lib/unistdio/u32-sprintf.c: New file.
56582         * lib/unistdio/u32-vasnprintf.c: New file.
56583         * lib/unistdio/u32-vasprintf.c: New file.
56584         * lib/unistdio/u32-vsnprintf.c: New file.
56585         * lib/unistdio/u32-vsprintf.c: New file.
56586         * lib/unistdio/u32-u32-asnprintf.c: New file.
56587         * lib/unistdio/u32-u32-asprintf.c: New file.
56588         * lib/unistdio/u32-u32-snprintf.c: New file.
56589         * lib/unistdio/u32-u32-sprintf.c: New file.
56590         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56591         * lib/unistdio/u32-u32-vasprintf.c: New file.
56592         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56593         * lib/unistdio/u32-u32-vsprintf.c: New file.
56594         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56595         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56596         * tests/unistdio/test-ulc-printf1.h: New file.
56597         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56598         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56599         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56600         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56601         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56602         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56603         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56604         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56605         * tests/unistdio/test-u8-asnprintf1.c: New file.
56606         * tests/unistdio/test-u8-asnprintf1.h: New file.
56607         * tests/unistdio/test-u8-printf1.h: New file.
56608         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56609         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56610         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56611         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56612         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56613         * tests/unistdio/test-u8-vasprintf1.c: New file.
56614         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56615         * tests/unistdio/test-u8-vsprintf1.c: New file.
56616         * tests/unistdio/test-u16-asnprintf1.c: New file.
56617         * tests/unistdio/test-u16-asnprintf1.h: New file.
56618         * tests/unistdio/test-u16-printf1.h: New file.
56619         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56620         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56621         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56622         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56623         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56624         * tests/unistdio/test-u16-vasprintf1.c: New file.
56625         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56626         * tests/unistdio/test-u16-vsprintf1.c: New file.
56627         * tests/unistdio/test-u32-asnprintf1.c: New file.
56628         * tests/unistdio/test-u32-asnprintf1.h: New file.
56629         * tests/unistdio/test-u32-printf1.h: New file.
56630         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56631         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56632         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56633         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56634         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56635         * tests/unistdio/test-u32-vasprintf1.c: New file.
56636         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56637         * tests/unistdio/test-u32-vsprintf1.c: New file.
56638         * modules/unistdio/base: New file.
56639         * modules/unistdio/u-printf-args: New file.
56640         * modules/unistdio/ulc-asnprintf: New file.
56641         * modules/unistdio/ulc-asprintf: New file.
56642         * modules/unistdio/ulc-fprintf: New file.
56643         * modules/unistdio/ulc-printf-parse: New file.
56644         * modules/unistdio/ulc-snprintf: New file.
56645         * modules/unistdio/ulc-sprintf: New file.
56646         * modules/unistdio/ulc-vasnprintf: New file.
56647         * modules/unistdio/ulc-vasprintf: New file.
56648         * modules/unistdio/ulc-vfprintf: New file.
56649         * modules/unistdio/ulc-vsnprintf: New file.
56650         * modules/unistdio/ulc-vsprintf: New file.
56651         * modules/unistdio/u8-asnprintf: New file.
56652         * modules/unistdio/u8-asprintf: New file.
56653         * modules/unistdio/u8-printf-parse: New file.
56654         * modules/unistdio/u8-snprintf: New file.
56655         * modules/unistdio/u8-sprintf: New file.
56656         * modules/unistdio/u8-vasnprintf: New file.
56657         * modules/unistdio/u8-vasprintf: New file.
56658         * modules/unistdio/u8-vsnprintf: New file.
56659         * modules/unistdio/u8-vsprintf: New file.
56660         * modules/unistdio/u8-u8-asnprintf: New file.
56661         * modules/unistdio/u8-u8-asprintf: New file.
56662         * modules/unistdio/u8-u8-snprintf: New file.
56663         * modules/unistdio/u8-u8-sprintf: New file.
56664         * modules/unistdio/u8-u8-vasnprintf: New file.
56665         * modules/unistdio/u8-u8-vasprintf: New file.
56666         * modules/unistdio/u8-u8-vsnprintf: New file.
56667         * modules/unistdio/u8-u8-vsprintf: New file.
56668         * modules/unistdio/u16-asnprintf: New file.
56669         * modules/unistdio/u16-asprintf: New file.
56670         * modules/unistdio/u16-printf-parse: New file.
56671         * modules/unistdio/u16-snprintf: New file.
56672         * modules/unistdio/u16-sprintf: New file.
56673         * modules/unistdio/u16-vasnprintf: New file.
56674         * modules/unistdio/u16-vasprintf: New file.
56675         * modules/unistdio/u16-vsnprintf: New file.
56676         * modules/unistdio/u16-vsprintf: New file.
56677         * modules/unistdio/u16-u16-asnprintf: New file.
56678         * modules/unistdio/u16-u16-asprintf: New file.
56679         * modules/unistdio/u16-u16-snprintf: New file.
56680         * modules/unistdio/u16-u16-sprintf: New file.
56681         * modules/unistdio/u16-u16-vasnprintf: New file.
56682         * modules/unistdio/u16-u16-vasprintf: New file.
56683         * modules/unistdio/u16-u16-vsnprintf: New file.
56684         * modules/unistdio/u16-u16-vsprintf: New file.
56685         * modules/unistdio/u32-asnprintf: New file.
56686         * modules/unistdio/u32-asprintf: New file.
56687         * modules/unistdio/u32-printf-parse: New file.
56688         * modules/unistdio/u32-snprintf: New file.
56689         * modules/unistdio/u32-sprintf: New file.
56690         * modules/unistdio/u32-vasnprintf: New file.
56691         * modules/unistdio/u32-vasprintf: New file.
56692         * modules/unistdio/u32-vsnprintf: New file.
56693         * modules/unistdio/u32-vsprintf: New file.
56694         * modules/unistdio/u32-u32-asnprintf: New file.
56695         * modules/unistdio/u32-u32-asprintf: New file.
56696         * modules/unistdio/u32-u32-snprintf: New file.
56697         * modules/unistdio/u32-u32-sprintf: New file.
56698         * modules/unistdio/u32-u32-vasnprintf: New file.
56699         * modules/unistdio/u32-u32-vasprintf: New file.
56700         * modules/unistdio/u32-u32-vsnprintf: New file.
56701         * modules/unistdio/u32-u32-vsprintf: New file.
56702         * modules/unistdio/ulc-asnprintf-tests: New file.
56703         * modules/unistdio/ulc-vasnprintf-tests: New file.
56704         * modules/unistdio/ulc-vasprintf-tests: New file.
56705         * modules/unistdio/ulc-vsnprintf-tests: New file.
56706         * modules/unistdio/ulc-vsprintf-tests: New file.
56707         * modules/unistdio/u8-asnprintf-tests: New file.
56708         * modules/unistdio/u8-vasnprintf-tests: New file.
56709         * modules/unistdio/u8-vasprintf-tests: New file.
56710         * modules/unistdio/u8-vsnprintf-tests: New file.
56711         * modules/unistdio/u8-vsprintf-tests: New file.
56712         * modules/unistdio/u16-asnprintf-tests: New file.
56713         * modules/unistdio/u16-vasnprintf-tests: New file.
56714         * modules/unistdio/u16-vasprintf-tests: New file.
56715         * modules/unistdio/u16-vsnprintf-tests: New file.
56716         * modules/unistdio/u16-vsprintf-tests: New file.
56717         * modules/unistdio/u32-asnprintf-tests: New file.
56718         * modules/unistdio/u32-vasnprintf-tests: New file.
56719         * modules/unistdio/u32-vasprintf-tests: New file.
56720         * modules/unistdio/u32-vsnprintf-tests: New file.
56721         * modules/unistdio/u32-vsprintf-tests: New file.
56722         * MODULES.html.sh (Unicode string functions): Add the new modules.
56723
56724 2007-07-01  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/sprintf.c (sprintf): Limit the available length estimation,
56727         to avoid address wraparound.
56728         * lib/vsprintf.c (vsprintf): Likewise.
56729         * modules/sprintf-posix (Dependencies): Add stdint.
56730         * modules/vsprintf-posix (Dependencies): Likewise.
56731
56732 2007-07-01  Bruno Haible  <bruno@clisp.org>
56733
56734         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56735         Windows PATH as well. Conservative double-quoting. Comments.
56736
56737 2007-07-01  Bruno Haible  <bruno@clisp.org>
56738             Eric Blake  <ebb9@byu.net>
56739             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56740
56741         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56742         empty components in $PATH, denoting '.'.
56743
56744 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56745
56746         * gnulib-tool: Fix indentation.
56747         (func_create_megatestdir): Likewise.
56748         Report by Bruno Haible.
56749
56750 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56751
56752         Sync from Automake.
56753         * build-aux/gnupload: Fix shell portability issues with for loops.
56754         Report by Karl Berry.
56755
56756 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56757
56758         * build-aux/maint.mk (POURL): Use translationproject.org.
56759
56760 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56761             Bruno Haible  <bruno@clisp.org>
56762
56763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56764         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56765         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56766         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56767         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56768
56769 2007-06-27  Bruno Haible  <bruno@clisp.org>
56770
56771         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56772         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56773
56774 2007-06-26  Karl Berry  <karl@gnu.org>
56775
56776         * MODULES.html.sh: remove xreadlink-with-size.
56777
56778 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56781         method that I hope also handles the double-include problem noted
56782         by Bruno Haible in
56783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56784
56785 2007-06-23  Bruno Haible  <bruno@clisp.org>
56786
56787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56788         Don't let the 'mostlyclean' target fail if the last subdirectory could
56789         not be removed.
56790         Reported by Karl Berry.
56791
56792 2007-06-23  Bruno Haible  <bruno@clisp.org>
56793
56794         * gnulib-tool (echo): Add a speedier workaround for ksh.
56795         * tests/test-echo.sh: Likewise.
56796
56797 2007-06-23  Bruno Haible  <bruno@clisp.org>
56798
56799         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56800         * tests/test-echo.sh: Likewise.
56801
56802 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56803
56804         * gnulib-tool (IFS): Initialize early, so we don't set it to
56805         empty later.
56806         (self_abspathname): Rewrite algorithm to set it, reindent.
56807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56808         (func_create_megatestdir): Merge some sed scripts.
56809
56810 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56813         exposed by Sun Studio 11 cc on Solaris 8.
56814
56815 2007-06-22  Bruno Haible  <bruno@clisp.org>
56816
56817         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56818         backslashes.
56819         * tests/test-echo.sh: New file.
56820
56821 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56822
56823         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56824         simplify `sed_replace_build_aux' scripts, they are portable but
56825         echoing them with `echo' is not.
56826         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56827
56828 2007-06-21  Karl Berry  <karl@gnu.org>
56829
56830         * config/srclist.txt: guess we can't handle the licenses via
56831         srclist at the moment.
56832
56833 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56834
56835         * MODULES.html.sh: Add include_next.
56836         * modules/include_next: New file.
56837
56838 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56839
56840         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56841         INCLUDE_NEXT.
56842         (gl_CHECK_NEXT_HEADERS): New macro.
56843         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56844         the obsolescent gl_ABSOLUTE_HEADER.
56845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56846         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56847         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56848         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56849         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56850         * m4/math_h.m4 (gl_MATH_H): Likewise.
56851         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56852         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56853         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56854         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56855         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56856         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56857         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56860         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56862         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56863         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56864         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56865         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56866         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56867         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56868         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56869         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56870         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56871         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56872         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56873         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56874         * lib/float_.h: Likewise.
56875         * lib/inttypes_.h: Likewise.
56876         * lib/math_.h: Likewise.
56877         * lib/search_.h: Likewise.
56878         * lib/signal_.h: Likewise.
56879         * lib/stdint_.h: Likewise.
56880         * lib/stdio_.h: Likewise.
56881         * lib/stdlib_.h: Likewise.
56882         * lib/string_.h: Likewise.
56883         * lib/sys_stat_.h: Likewise.
56884         * lib/sys_time_.h: Likewise.
56885         * lib/time_.h: Likewise.
56886         * lib/unistd_.h: Likewise.
56887         * lib/wchar_.h: Likewise.
56888         * lib/wctype_.h: Likewise.
56889         * lib/dirent_.h: Likewise.
56890         * lib/iconv_.h: Likewise.
56891         * lib/locale_.h: Likewise.
56892         * lib/netinet_in_.h: Likewise.
56893         * lib/sys_select_.h: Likewise.
56894         * lib/sys_socket_.h: Likewise.
56895         * lib/sysexits_.h: Likewise.
56896         * modules/fcntl (Depends-on): Depend on include_next, not
56897         absolute_header.
56898         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56899         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56900         * modules/fchdir: Likewise.
56901         * modules/float: Likewise.
56902         * modules/iconv_open: Likewise.
56903         * modules/inttypes: Likewise.
56904         * modules/locale: Likewise.
56905         * modules/math: Likewise.
56906         * modules/netinet_in: Likewise.
56907         * modules/search: Likewise.
56908         * modules/signal: Likewise.
56909         * modules/stdint: Likewise.
56910         * modules/stdio: Likewise.
56911         * modules/stdlib: Likewise.
56912         * modules/string: Likewise.
56913         * modules/sys_select: Likewise.
56914         * modules/sys_socket: Likewise.
56915         * modules/sys_stat: Likewise.
56916         * modules/sys_time: Likewise.
56917         * modules/sysexits: Likewise.
56918         * modules/time: Likewise.
56919         * modules/unistd: Likewise.
56920         * modules/wchar: Likewise.
56921         * modules/wctype: Likewise.
56922         * modules/sys_stat: Change maintainer to "all".
56923         * modules/unistd: Likewise.
56924
56925 2007-06-20  Karl Berry  <karl@gnu.org>
56926
56927         * config/srclist.txt: track www changes in license files.
56928
56929 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56930
56931         * build-aux/bootstrap: Remove stray dot.
56932         Make sure build_aux settings are honored when linking
56933         gnulib_extra_files.
56934
56935 2007-06-19  Eric Blake  <ebb9@byu.net>
56936
56937         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56938         Allow compilation on cygwin.
56939
56940 2007-06-19  Jim Meyering  <jim@meyering.net>
56941
56942         xreadlink-with-size: Remove module.  No longer used.
56943         Ex-callers now use xreadlink or mreadlink-with-size.
56944         * modules/xreadlink-with-size: Remove module.
56945         * lib/xreadlink-with-size.c: Remove file.
56946         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56947         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56948         just before the function definition *is* accurate.
56949
56950         Eliminate one way canonicalize_filename_mode could exit.
56951         * lib/canonicalize.c (canonicalize_filename_mode):
56952         Use mreadlink_with_size, not xreadlink_with_size.
56953
56954 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56955
56956         Detect porting problems to FreeBSD/arm, which has time_t wider than
56957         long int.  Original problem reported for GNU diff by Xin Li in
56958         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56959         * modules/getdate (Depends-on): Add intprops, verify.
56960         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56961         is an integer type no wider than long int.
56962
56963 2007-06-18  Jim Meyering  <jim@meyering.net>
56964
56965         New module: mreadlink-with-size.
56966         * MODULES.html.sh: Add mreadlink-with-size.
56967         * modules/mreadlink-with-size: New module
56968         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56969         not xreadlink-with-size.
56970         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56971
56972 2007-06-16  Bruno Haible  <bruno@clisp.org>
56973
56974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56975         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56976         Reported by Gary V. Vaughan <gary@gnu.org>.
56977
56978 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         Revamp lchown so that it lives in unistd.h where it belongs.
56981         * lib/lchown.h: Remove.
56982         * lib/dirchownmod.c: Don't include lib/lchown.h.
56983         * lib/fchownat.c: Likewise.
56984         * lib/openat.c: Likewise.
56985         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56986         does not follow symlinks.
56987         (EOPNOTSUPP): Define if not defined.
56988         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56989         is defined to 0.
56990         (lchown): New decl.
56991         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56992         Do not check for lchown decl.
56993         Set REPLACE_LCHOWN.
56994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56995         REPLACE_LCHOWN.
56996         * modules/chown: Make it clear it follows symlinks.
56997         * modules/lchown: Make it clear it doesn't follow symlinks.
56998         (Files): Remove lib/lchown.h
56999         (Depends-on): Add unistd.
57000         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57001         (Include): Include <unistd.h>, not "lchown.h".
57002         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57003         REPLACE_LCHOWN.
57004
57005 2007-06-15  Jim Meyering  <jim@meyering.net>
57006
57007         Change license (GPL to LGPL) of fsusage and dependents.
57008         * modules/fsusage (License): Change to LGPL.
57009         * modules/full-read (License): Likewise.
57010         * modules/full-write (License): Likewise.
57011         * modules/safe-read (License): Likewise.
57012         * modules/safe-write (License): Likewise.
57013
57014 2007-06-14  Ben Pfaff  <blp@gnu.org>
57015
57016         Missing part of allocsa -> malloca transition.
57017         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57018         gl_MALLOCA.
57019
57020 2007-06-12  Bruno Haible  <bruno@clisp.org>
57021
57022         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57023         to ia64, x86_64, i386.
57024         Reported by Eric Blake.
57025
57026 2007-06-12  Bruno Haible  <bruno@clisp.org>
57027
57028         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57029         cross-compiling to x86_64.
57030
57031 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57034         glitch reported by Ralf Wildenhues in
57035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57036
57037         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57038         Vin Shelton.
57039
57040 2007-06-11  Bruno Haible  <bruno@clisp.org>
57041
57042         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57043         replacement string.
57044         Reported by Eric Blake.
57045
57046 2007-06-10  Bruno Haible  <bruno@clisp.org>
57047
57048         Prepare vasnprintf code for use with Unicode strings.
57049         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57050         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57051         TYPE_U32_STRING.
57052         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57053         a_u32_string variants.
57054         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57055         * lib/printf-args.c: Don't include config.h and the specification
57056         header if PRINTF_FETCHARGS is already defined.
57057         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57058         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57059         TYPE_U16_STRING, TYPE_U32_STRING.
57060         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57061         u16_directive, u16_directives, u32_directive, u32_directives): New
57062         types.
57063         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57064         New declarations.
57065         * lib/printf-parse.c: Don't include config.h and the specification
57066         header if PRINTF_PARSE is already defined. Eliminate the set of
57067         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57068         them now. Include c-ctype.h.
57069         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57070         directive and CHAR_T_ONLY_ASCII.
57071         * lib/vasnprintf.c: Don't include config.h and the specification header
57072         if VASNPRINTF is already defined.
57073         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57074         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57075         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57076         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57077         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57078         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57079         code accordingly.
57080         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57081         pad_ourselves also in this case, with the 'c' and 's' directives, and
57082         with a different notion of "width".
57083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57084
57085 2007-06-10  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/unistr/u32-mbsnlen: New file.
57088         * lib/unistr/u32-mbsnlen.c: New file.
57089
57090         * modules/unistr/u16-mbsnlen: New file.
57091         * lib/unistr/u16-mbsnlen.c: New file.
57092
57093         * modules/unistr/u8-mbsnlen: New file.
57094         * lib/unistr/u8-mbsnlen.c: New file.
57095
57096         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57097         declarations.
57098
57099 2007-06-10  Bruno Haible  <bruno@clisp.org>
57100
57101         * lib/string_.h (mbsnlen): New declaration.
57102         * lib/mbsnlen.c: New file.
57103         * m4/mbsnlen.m4: New file.
57104         * modules/mbsnlen: New file.
57105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57106         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57107         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57108
57109 2007-06-10  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57112
57113 2007-06-10  Bruno Haible  <bruno@clisp.org>
57114
57115         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57116         * lib/mbuiter.h: Likewise.
57117
57118 2007-06-10  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57121         declaration.
57122
57123 2007-06-10  Karl Berry  <karl@gnu.org>
57124
57125         * config/srclist.txt: remove gettext entries, Bruno prefers
57126         to update individually.
57127
57128 2007-06-10  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57131         'maxlen'. Ensure only length + width bytes are allocated, not
57132         length + 1 + width.
57133
57134 2007-06-09  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57137         (CHAR_T): Remove macro.
57138         (VASNPRINTF): Update.
57139
57140 2007-06-09  Bruno Haible  <bruno@clisp.org>
57141
57142         * MODULES.html.sh (Unicode string functions): Add the new modules.
57143
57144         * modules/uniconv/u32-conv-to-enc: New file.
57145         * lib/uniconv/u32-conv-to-enc.c: New file.
57146         * modules/uniconv/u32-conv-to-enc-tests: New file.
57147         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57148
57149         * modules/uniconv/u16-conv-to-enc: New file.
57150         * lib/uniconv/u16-conv-to-enc.c: New file.
57151         * lib/uniconv/u-conv-to-enc.h: New file.
57152         * modules/uniconv/u16-conv-to-enc-tests: New file.
57153         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57154
57155         * modules/uniconv/u8-conv-to-enc: New file.
57156         * lib/uniconv/u8-conv-to-enc.c: New file.
57157         * modules/uniconv/u8-conv-to-enc-tests: New file.
57158         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57159
57160         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57161         u32_conv_to_encoding): New declarations.
57162
57163 2007-06-09  Bruno Haible  <bruno@clisp.org>
57164
57165         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57166
57167 2007-06-09  Bruno Haible  <bruno@clisp.org>
57168
57169         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57170         * modules/malloca: Renamed from modules/allocsa, updated.
57171         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57172         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57173         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57174         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57175         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57176         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57177         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57178         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57179         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57180         * modules/c-strcasestr (Depends-on): Update.
57181         * lib/c-strcasestr.c: Update.
57182         * modules/c-strstr (Depends-on): Update.
57183         * lib/c-strstr.c: Update.
57184         * modules/canonicalize-lgpl (Depends-on): Update.
57185         * lib/canonicalize-lgpl.c: Update.
57186         * modules/clean-temp (Depends-on): Update.
57187         * lib/clean-temp.c: Update.
57188         * modules/csharpcomp (Depends-on): Update.
57189         * lib/csharpcomp.c: Update.
57190         * modules/csharpexec (Depends-on): Update.
57191         * lib/csharpexec.c: Update.
57192         * modules/javacomp (Depends-on): Update.
57193         * lib/javacomp.c: Update.
57194         * modules/javaexec (Depends-on): Update.
57195         * lib/javaexec.c: Update.
57196         * modules/mbscasestr (Depends-on): Update.
57197         * lib/mbscasestr.c: Update.
57198         * modules/mbsstr (Depends-on): Update.
57199         * lib/mbsstr.c: Update.
57200         * modules/setenv (Depends-on): Update.
57201         * lib/setenv.c: Update.
57202         * modules/strcasestr (Depends-on): Update.
57203         * lib/strcasestr.c: Update.
57204         * modules/striconveha (Depends-on): Update.
57205         * lib/striconveha.c: Update.
57206         * modules/relocatable-prog-wrapper (Files): Update.
57207         * lib/relocwrapper.c: Update.
57208         * build-aux/install-reloc: Update.
57209         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57210
57211 2007-06-08  Bruno Haible  <bruno@clisp.org>
57212
57213         Port to uClibc.
57214         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57215         * lib/fpurge.c (fpurge): Likewise.
57216         * lib/freading.c (freading): Likewise.
57217         * lib/fseeko.c (rpl_fseeko): Likewise.
57218         * lib/fseterr.c (fseterr): Likewise.
57219         * lib/fwriting.c (fwriting): Likewise.
57220         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57221
57222 2007-06-08  Bruno Haible  <bruno@clisp.org>
57223
57224         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57225         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57226         * modules/gettext (Files): Add m4/intlmacosx.m4.
57227
57228 2007-06-07  Bruno Haible  <bruno@clisp.org>
57229
57230         * modules/localename-tests: New file.
57231         * tests/test-localename.c: New file.
57232
57233         New module 'localename'.
57234         * lib/localename.h: New file.
57235         * lib/localename.c: New file, from GNU gettext.
57236         * m4/localename.m4: New file.
57237         * modules/localename: New file.
57238
57239 2007-06-07  Bruno Haible  <bruno@clisp.org>
57240
57241         Work around the lack of <wchar.h> on some builds of uClibc.
57242         * doc/headers/wchar.texi: Update.
57243         * lib/wchar_.h: Include <wchar.h> only if it exists.
57244         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57245         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57246         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57247         doesn't exist.
57248         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57249         * modules/mbfile (Depends-on): Add wchar.
57250         * modules/mbiter (Depends-on): Likewise.
57251         * modules/mbuiter (Depends-on): Likewise.
57252         Reported by Simon Josefsson.
57253
57254 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         Work around problem reported by Steven M. Schweda in
57257         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57258         Tru64 5.1B with the Compaq compiler environment installed declares
57259         an 'isblank' function but does not define it in the C library.
57260         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57261         * lib/regex_internal.h (isblank): Likewise.
57262         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57263         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57264
57265 2007-06-05  Bruno Haible  <bruno@clisp.org>
57266
57267         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57268         ia64.
57269         * modules/printf-safe: New file.
57270         * modules/fprintf-posix (Depends-on): Add printf-safe.
57271         * modules/printf-posix (Depends-on): Likewise.
57272         * modules/snprintf-posix (Depends-on): Likewise.
57273         * modules/sprintf-posix (Depends-on): Likewise.
57274         * modules/vasnprintf-posix (Depends-on): Likewise.
57275         * modules/vasprintf-posix (Depends-on): Likewise.
57276         * modules/vfprintf-posix (Depends-on): Likewise.
57277         * modules/vprintf-posix (Depends-on): Likewise.
57278         * modules/vsnprintf-posix (Depends-on): Likewise.
57279         * modules/vsprintf-posix (Depends-on): Likewise.
57280         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57281         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57282         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57283         "no" on i386, x86_64, ia64.
57284         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57285         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57286         on i386, x86_64, ia64.
57287         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57288         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57289         on i386, x86_64, ia64.
57290         * tests/test-vasnprintf-posix.c: Include float.h.
57291         (LDBL80_WORDS): New macro.
57292         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57293         on i386, x86_64, ia64.
57294         * tests/test-vasprintf-posix.c: Include float.h.
57295         (LDBL80_WORDS): New macro.
57296         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57297         on i386, x86_64, ia64.
57298         * tests/test-snprintf-posix.c: Include float.h.
57299         * tests/test-sprintf-posix.c: Likewise.
57300         * tests/test-vsnprintf-posix.c: Likewise.
57301         * tests/test-vsprintf-posix.c: Likewise.
57302
57303 2007-06-05  Bruno Haible  <bruno@clisp.org>
57304
57305         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57307         non-IEEE numbers on i386, x86_64, ia64.
57308         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57309         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57310         * tests/test-isnanl.h: Include float.h.
57311         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57312
57313 2007-06-05  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57316         also the %a / %A. Handle the %a / %A code before this extra handling.
57317
57318 2007-06-05  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57321         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57322
57323 2007-06-05  Bruno Haible  <bruno@clisp.org>
57324
57325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57326         typo in variable name.
57327
57328 2007-06-05  Eric Blake  <ebb9@byu.net>
57329
57330         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57331         Reported by Simon Josefsson.
57332
57333 2007-06-04  Bruno Haible  <bruno@clisp.org>
57334
57335         Avoid test failures on some PowerPC platforms.
57336         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57337         Define differently for PowerPC.
57338         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57339         Reported by Gary V. Vaughan <gary@gnu.org>.
57340
57341 2007-06-02  Bruno Haible  <bruno@clisp.org>
57342
57343         Fix test-stdint failure on FreeBSD/ia64.
57344         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57345         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57346         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57347         * doc/headers/stdint.texi: Update.
57348
57349 2007-06-01  Bruno Haible  <bruno@clisp.org>
57350
57351         * tests/test-binary-io.c (main): Pass a third argument to open().
57352         Reported by Gary V. Vaughan <gary@gnu.org>.
57353
57354 2007-06-01  Bruno Haible  <bruno@clisp.org>
57355
57356         * doc/functions/frexpl.texi: Update for mingw.
57357
57358 2007-06-01  Bruno Haible  <bruno@clisp.org>
57359
57360         * tests/test-lseek.c (main): Disable test of errno for invalid third
57361         argument.
57362         * doc/functions/lseek.texi: Update.
57363         Reported by Gary V. Vaughan <gary@gnu.org>.
57364
57365 2007-05-28  Bruno Haible  <bruno@clisp.org>
57366
57367         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57368
57369 2007-05-31  Eric Blake  <ebb9@byu.net>
57370
57371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57372         cross compiling.
57373
57374 2007-05-30  Eric Blake  <ebb9@byu.net>
57375         and Bruno Haible  <bruno@clisp.org>
57376
57377         Work around mingw test failures exposed by m4-1.4.9b.
57378         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57379         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57380         moment.
57381
57382 2007-05-30  Bruno Haible  <bruno@clisp.org>
57383
57384         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57385         assuming that they are closed. Needed on HP-UX 11.
57386
57387 2007-05-29  Bruno Haible  <bruno@clisp.org>
57388
57389         Fix a problem with #include_next.
57390         * lib/dirent_.h: Split the double-inclusion guard.
57391         * lib/fcntl_.h: Likewise.
57392         * lib/float_.h: Likewise.
57393         * lib/iconv_.h: Likewise.
57394         * lib/inttypes_.h: Likewise.
57395         * lib/locale_.h: Likewise.
57396         * lib/math_.h: Likewise.
57397         * lib/netinet_in_.h: Likewise.
57398         * lib/search_.h: Likewise.
57399         * lib/signal_.h: Likewise.
57400         * lib/stdint_.h: Likewise.
57401         * lib/stdio_.h: Likewise.
57402         * lib/stdlib_.h: Likewise.
57403         * lib/string_.h: Likewise.
57404         * lib/sys_select_.h: Likewise.
57405         * lib/sys_socket_.h: Likewise.
57406         * lib/sys_stat_.h: Likewise.
57407         * lib/sys_time_.h: Likewise.
57408         * lib/sysexits_.h: Likewise.
57409         * lib/time_.h: Likewise.
57410         * lib/unistd_.h: Likewise.
57411         * lib/wchar_.h: Likewise.
57412         * lib/wctype_.h: Likewise.
57413
57414 2007-05-29  Bruno Haible  <bruno@clisp.org>
57415
57416         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57417         for the moment.
57418
57419 2007-05-29  Bruno Haible  <bruno@clisp.org>
57420
57421         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57422         invocation.
57423         Reported by Eric Blake.
57424
57425 2007-05-29  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57428         compiling case.
57429
57430 2007-05-29  Eric Blake  <ebb9@byu.net>
57431             Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57434         cross compiles.
57435
57436 2007-05-28  Eric Blake  <ebb9@byu.net>
57437
57438         * modules/closein-tests (test_closein_LDADD): Support test on
57439         cygwin with libtool.
57440
57441 2007-05-28  Bruno Haible  <bruno@clisp.org>
57442
57443         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57447         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57448         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57449         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57450         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57451         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57452
57453 2007-05-28  Eric Blake  <ebb9@byu.net>
57454
57455         Unconditionally include <config.h> in unit tests.
57456         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57457         * tests/test-allocsa.c, tests/test-arcfour.c,
57458         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57459         tests/test-array_list.c, tests/test-array_oset.c,
57460         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57461         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57462         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57463         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57464         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57465         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57466         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57467         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57468         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57469         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57470         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57471         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57472         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57473         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57474         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57475         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57476         test-md5.c, test-memmem.c, test-printf-posix.c,
57477         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57478         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57479         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57480         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57481         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57482         test-vasnprintf-posix2.c, test-vasnprintf.c,
57483         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57484         test-vfprintf-posix.c, test-vprintf-posix.c,
57485         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57486         test-xvasprintf.c: Likewise.
57487
57488 2007-05-28  Bruno Haible  <bruno@clisp.org>
57489
57490         * gnulib-tool (func_import): Remember the --with-tests command-line
57491         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57492         Reported by Eric Blake.
57493
57494 2007-05-28  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/ftell-tests: New file.
57497         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57498         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57499
57500         * lib/ftell.c: New file.
57501         * modules/ftell: New file.
57502         * m4/ftell.m4: New file.
57503         * doc/functions/ftell.texi: Update.
57504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57505         REPLACE_FTELL.
57506         * lib/stdio_.h (rpl_ftell): New declaration.
57507         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57508         REPLACE_FTELL.
57509
57510 2007-05-28  Eric Blake  <ebb9@byu.net>
57511
57512         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57513
57514 2007-05-28  Bruno Haible  <bruno@clisp.org>
57515
57516         * modules/fseek-tests: New file.
57517         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57518         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57519
57520         * lib/fseek.c: New file.
57521         * modules/fseek: New file.
57522         * m4/fseek.m4: New file.
57523         * doc/functions/fseek.texi: Update.
57524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57525         REPLACE_FSEEK.
57526         * lib/stdio_.h (rpl_fseek): New declaration.
57527         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57528         REPLACE_FSEEK.
57529
57530 2007-05-28  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/stdio_.h (fflush): More comments.
57533
57534 2007-05-28  Bruno Haible  <bruno@clisp.org>
57535
57536         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57537         runtime test.
57538
57539 2007-05-28  Eric Blake  <ebb9@byu.net>
57540
57541         Improve lseek module.
57542         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57543         * lib/unistd_.h (lseek): Scale back link warning message.
57544         * tests/test-lseek.c: Beef up test.
57545         * tests/test-lseek.sh: Exercise more facets of lseek.
57546         Reported by Bruno Haible.
57547
57548 2007-05-28  Bruno Haible  <bruno@clisp.org>
57549
57550         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57551         to define.
57552
57553 2007-05-27  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57556
57557 2007-05-27  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/openmp: New file.
57560         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57561         Noah Misch.
57562
57563 2007-05-26  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/chdir-long (Depends-on): Add fchdir.
57566         * modules/chdir-safer (Depends-on): Likewise.
57567         * modules/fts (Depends-on): Likewise.
57568         * modules/fts-lgpl (Depends-on): Likewise.
57569         * modules/openat (Depends-on): Likewise.
57570         * modules/savewd (Depends-on): Likewise.
57571
57572 2007-05-24  Eric Blake  <ebb9@byu.net>
57573
57574         Fix lseek on mingw.
57575         * modules/lseek: New module.
57576         * m4/lseek.m4: New file.
57577         * lib/lseek.c: New file.
57578         * modules/lseek-tests: New file.
57579         * tests/test-lseek.c: New file.
57580         * tests/test-lseek.sh: New file.
57581         * MODULES.html.sh: Document lseek module.
57582         * modules/fflush (Depends-on): Add lseek, fseeko.
57583         * modules/fseeko (Depends-on): Likewise.
57584         * modules/ftello (Depends-on): Likewise.
57585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57586         broken.
57587         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57588         broken.
57589         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57590         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57591         * lib/ftello.c (rpl_ftello): Likewise.
57592         * tests/test-fseeko.c (main): Test this.
57593         * tests/test-fseeko.sh: Likewise.
57594         * tests/test-ftello.c (main): Likewise.
57595         * tests/test-ftello.sh: Likewise.
57596         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57597         implies replacing fseek.
57598         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57599         HAVE_FTELLO.
57600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57601         * modules/unistd (Makefile.am): Likewise.
57602         * lib/unistd_.h (lseek): Declare a replacement.
57603         * doc/functions/lseek.texi (lseek): Document this fix.
57604         * doc/functions/fseek.texi (fseek): Likewise.
57605         * doc/functions/ftell.texi (ftell): Likewise.
57606
57607 2007-05-24  Bruno Haible  <bruno@clisp.org>
57608
57609         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57610         in the printed representation of a NaN.
57611         * tests/test-vasprintf-posix.c (test_function): Likewise.
57612         * tests/test-snprintf-posix.h (test_function): Likewise.
57613         * tests/test-sprintf-posix.h (test_function): Likewise.
57614         Reported by Eric Blake.
57615
57616 2007-05-23  Eric Blake  <ebb9@byu.net>
57617
57618         Fix fseeko/ftello on cygwin 1.5.24.
57619         * doc/functions/fseeko.texi (fseeko): Document the fix.
57620         * doc/functions/ftello.texi (ftello): Document the fix.
57621         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57622         * doc/functions/stdout.text (stdout): New file.
57623         * doc/functions/stderr.text (stderr): New file.
57624         * doc/gnulib.texi (Function Substitutes): Use new files.
57625         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57626         prior to 1.7.0.
57627         * tests/test-ftello.c (main): Likewise for ftello.
57628         * tests/test-fseeko.sh: New file.
57629         * tests/test-ftello.sh: New file.
57630         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57631         with seekable stdin.
57632         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57633         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57634         (gl_REPLACE_FSEEKO): New macro.
57635         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57636         * modules/fseeko (Files): Distribute fseeko.c.
57637         * modules/ftello (Files): Distribute ftello.c.
57638         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57639         mode.
57640         * lib/ftello.c (rpl_ftello): New file.
57641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57642         fseeko, ftello.
57643         (gl_STDIN_LARGE_OFFSET): New macro.
57644         * modules/stdio (Makefile.am): Perform the replacement.
57645         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57646
57647 2007-05-23  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57650         GNULIB_POSIXCHECK is defined.
57651
57652 2007-05-21  Bruno Haible  <bruno@clisp.org>
57653
57654         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57655         Check also the output for NaN arguments. When cross-compiling, guess
57656         no on IRIX.
57657         * lib/vasnprintf.c: Update comments.
57658         * tests/test-vasnprintf-posix.c (strisnan): New function.
57659         (test_function): Use it.
57660         * tests/test-vasprintf-posix.c (strisnan): New function.
57661         (test_function): Use it.
57662         * tests/test-snprintf-posix.h (strisnan): New function.
57663         (test_function): Use it.
57664         * tests/test-sprintf-posix.h (strisnan): New function.
57665         (test_function): Use it.
57666         Reported by Eric Blake.
57667
57668 2007-05-20  Bruno Haible  <bruno@clisp.org>
57669
57670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57671         numbers that fails on BeOS.
57672         * doc/functions/frexpl.texi: Update.
57673
57674 2007-05-20  Jim Meyering  <jim@meyering.net>
57675
57676         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57677         forced upon us by glibc-2.6.
57678
57679 2007-05-20  Bruno Haible  <bruno@clisp.org>
57680
57681         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57682         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57683         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57684         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57685         NEED_PRINTF_INFINITE.
57686         (is_infinitel): New function.
57687         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57689         gl_PREREQ_VASNPRINTF_INFINITE.
57690         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57692         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57693         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57694         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57695         gl_PREREQ_VASNPRINTF_INFINITE.
57696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57703         * doc/functions/fprintf.texi: Update.
57704         * doc/functions/printf.texi: Update.
57705         * doc/functions/snprintf.texi: Update.
57706         * doc/functions/sprintf.texi: Update.
57707         * doc/functions/vfprintf.texi: Update.
57708         * doc/functions/vprintf.texi: Update.
57709         * doc/functions/vsnprintf.texi: Update.
57710         * doc/functions/vsprintf.texi: Update.
57711
57712 2007-05-20  Bruno Haible  <bruno@clisp.org>
57713
57714         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57715         was not found in libc.
57716         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57717
57718 2007-05-20  Bruno Haible  <bruno@clisp.org>
57719
57720         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57721         printed as "-nan" instead of "nan".
57722         * tests/test-vasprintf-posix.c (test_function): Likewise.
57723         * tests/test-snprintf-posix.h (test_function): Likewise.
57724         * tests/test-sprintf-posix.h (test_function): Likewise.
57725         Needed for HP-UX 11.
57726
57727 2007-05-20  Jim Meyering  <jim@meyering.net>
57728
57729         Fix buggy test for the fchownat-deref bug.
57730         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57731         symlink required for the run-test.  Without it, this test would
57732         always declare that fchownat doesn't work, and client code would
57733         unnecessarily use the replacement function with fixed libc.
57734         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57735         Reported by Greg Schafer.
57736
57737 2007-05-19  Bruno Haible  <bruno@clisp.org>
57738
57739         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57740         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57741         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57742         Needed for IRIX 6.5 and Solaris 2.5.1.
57743
57744 2007-05-19  Bruno Haible  <bruno@clisp.org>
57745
57746         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57747         (test_function): Skip tests involving -0.0 on platforms where
57748         -0.0 = 0.0.
57749         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57750         (test_function): Skip tests involving -0.0 on platforms where
57751         -0.0 = 0.0.
57752         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57753         (test_function): Skip tests involving -0.0 on platforms where
57754         -0.0 = 0.0.
57755         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57756         (test_function): Skip tests involving -0.0 on platforms where
57757         -0.0 = 0.0.
57758         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57759         tests.
57760         * tests/test-printf-posix.h (test_function): Likewise.
57761         * tests/test-printf-posix.output: Remove all -0.0 related results.
57762         Needed for IRIX 6.5.
57763
57764 2007-05-19  Bruno Haible  <bruno@clisp.org>
57765
57766         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57767         printed as "nan0x7fffffff" instead of "nan".
57768         * tests/test-vasprintf-posix.c (test_function): Likewise.
57769         * tests/test-snprintf-posix.h (test_function): Likewise.
57770         * tests/test-sprintf-posix.h (test_function): Likewise.
57771         * tests/test-fprintf-posix.h (NaN): Remove macro.
57772         (test_function): Remove all NaN related tests.
57773         * tests/test-printf-posix.h (NaN): Remove macro.
57774         (test_function): Remove all NaN related tests.
57775         * tests/test-printf-posix.output: Remove all NaN related results.
57776         Needed for IRIX 6.5.
57777
57778 2007-05-19  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57782
57783 2007-05-19  Bruno Haible  <bruno@clisp.org>
57784
57785         * lib/float_.h: New file.
57786         * m4/float_h.m4: New file.
57787         * modules/float: New file.
57788         * modules/isnanl (Dependencies): Add float.
57789         * modules/isnanl-nolibm (Dependencies): Likewise.
57790         * modules/mathl (Dependencies): Likewise.
57791         * modules/printf-frexpl (Dependencies): Likewise.
57792         * modules/signbit (Dependencies): Likewise.
57793         * modules/vasnprintf (Dependencies): Likewise.
57794         * doc/headers/float.texi: Update.
57795
57796 2007-05-19  Jim Meyering  <jim@meyering.net>
57797
57798         * lib/utimens.c (gl_futimens): Rename from futimens,
57799         now that glibc-2.6 declares futimens.
57800         * lib/utimens.h: Likewise.
57801
57802 2007-05-19  Bruno Haible  <bruno@clisp.org>
57803
57804         Avoid test failures on mingw.
57805         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57806         * tests/test-printf-posix.sh: Likewise.
57807         * tests/test-vfprintf-posix.sh: Likewise.
57808         * tests/test-vprintf-posix.sh: Likewise.
57809
57810 2007-05-19  Bruno Haible  <bruno@clisp.org>
57811
57812         Fix *printf result for NaN, Inf, -0.0 on mingw.
57813         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57814         * lib/vasnprintf.c: Include math.h and isnan.h.
57815         (is_infinite_or_zero): New function.
57816         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57817         values in the %f, %F, %e, %E, %g, %G directives.
57818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57820         gl_PRINTF_INFINITE and test its result. Invoke
57821         gl_PREREQ_VASNPRINTF_INFINITE.
57822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57824         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57825         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57829         * doc/functions/fprintf.texi: Update.
57830         * doc/functions/printf.texi: Update.
57831         * doc/functions/snprintf.texi: Update.
57832         * doc/functions/sprintf.texi: Update.
57833         * doc/functions/vfprintf.texi: Update.
57834         * doc/functions/vprintf.texi: Update.
57835         * doc/functions/vsnprintf.texi: Update.
57836         * doc/functions/vsprintf.texi: Update.
57837
57838 2007-05-19  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57841         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57842         Instead of multiplying with 10^k, set extra_zeroes to k.
57843         (scale10_round_long_double): Remove function.
57844
57845 2007-05-18  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57848         introduced on 2007-05-06.
57849
57850 2007-05-18  Bruno Haible  <bruno@clisp.org>
57851
57852         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57853         %g directives.
57854         * tests/test-vasprintf-posix.c (test_function): Likewise.
57855         * tests/test-snprintf-posix.h (test_function): Likewise.
57856         * tests/test-sprintf-posix.h (test_function): Likewise.
57857
57858 2007-05-18  Bruno Haible  <bruno@clisp.org>
57859
57860         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57861         (strmatch): New function.
57862         (test_function): Test the %f directive on numbers of various exponents.
57863         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57864         (strmatch): New function.
57865         (test_function): Test the %f directive on numbers of various exponents.
57866         * tests/test-snprintf-posix.h (strmatch): New function.
57867         (test_function): Test the %f directive on numbers of various exponents.
57868         * tests/test-sprintf-posix.h (strmatch): New function.
57869         (test_function): Test the %f directive on numbers of various exponents.
57870         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57871         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57872         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57873         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57874
57875 2007-05-18  Bruno Haible  <bruno@clisp.org>
57876
57877         Add support for 'long double' number output.
57878         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57879         * lib/vasnprintf.c: Include math.h and float+.h.
57880         (mp_limb_t): New type.
57881         (GMP_LIMB_BITS): New macro.
57882         (mp_twolimb_t): New type.
57883         (GMP_TWOLIMB_BITS): New macro.
57884         (mpn_t): New type.
57885         (multiply, divide, convert_to_decimal, decode_long_double,
57886         scale10_round_long_double, scale10_round_decimal_long_double,
57887         floorlog10l): New functions.
57888         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57889         for the %f, %F, %e, %E, %g, %G directives.
57890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57892         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57893         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57901         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57902         * modules/snprintf-posix (Depends-on): Likewise.
57903         * modules/sprintf-posix (Depends-on): Likewise.
57904         * modules/vasnprintf-posix (Depends-on): Likewise.
57905         * modules/vasprintf-posix (Depends-on): Likewise.
57906         * modules/vfprintf-posix (Depends-on): Likewise.
57907         * modules/vsnprintf-posix (Depends-on): Likewise.
57908         * modules/vsprintf-posix (Depends-on): Likewise.
57909         * modules/vasnprintf (Files): Add lib/float+.h.
57910         * doc/functions/fprintf.texi: Update.
57911         * doc/functions/printf.texi: Update.
57912         * doc/functions/snprintf.texi: Update.
57913         * doc/functions/sprintf.texi: Update.
57914         * doc/functions/vfprintf.texi: Update.
57915         * doc/functions/vprintf.texi: Update.
57916         * doc/functions/vsnprintf.texi: Update.
57917         * doc/functions/vsprintf.texi: Update.
57918
57919 2007-05-18  Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57922
57923 2007-05-18  Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57926         for printing 64-bit integers. Needed for mingw.
57927
57928 2007-05-18  Bruno Haible  <bruno@clisp.org>
57929
57930         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57931         gl_FUNC_FREXPL_WORKS.
57932         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57933
57934 2007-05-18  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/frexpl-nolibm-tests: New file.
57937
57938         * modules/frexpl-nolibm: New file.
57939         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57940
57941 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57944         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57945         GCC 4.2, which otherwise issues a lot of warnings.
57946         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57947         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57948         Likewise.
57949         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57950         * modules/iconv_open (iconv.h): Likewise.
57951         * modules/locale (locale.h): Likewise.
57952         * modules/netinet_in (netinet/in.h): Likewise.
57953         * modules/sys_select (sys_select.h): Likewise.
57954         * modules/sys_socket (sys/socket.h): Likewise.
57955         * modules/sys_stat (sys/stat.h): Likewise.
57956         * modules/sysexits (sysexits.h): Likewise.
57957         * modules/unistd (unistd.h): Likewise.
57958
57959 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57960
57961         * modules/closein-tests (Makefile.am): Distribute
57962         `test-closein.sh'.
57963
57964 2007-05-17  Bruno Haible  <bruno@clisp.org>
57965
57966         * tests/test-printf-posix.output: Renamed from
57967         tests/test-fprintf-posix.out.
57968         * modules/fprintf-posix-tests: Update.
57969         * modules/printf-posix-tests: Update.
57970         * modules/vfprintf-posix-tests: Update.
57971         * modules/vprintf-posix-tests: Update.
57972         * tests/test-fprintf-posix.sh: Update.
57973         * tests/test-printf-posix.sh: Update.
57974         * tests/test-vfprintf-posix.sh: Update.
57975         * tests/test-vprintf-posix.sh: Update.
57976         Reported by Ralf Wildenhues.
57977
57978 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57979
57980         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57981         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57982         GCC 4.2, which otherwise issues a lot of warnings.
57983         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57984         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57985         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57986         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57987         it should no longer be needed.
57988         * lib/string_.h: Likewise.
57989         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57990         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57991         * modules/inttypes (inttypes.h): Likewise.
57992         * modules/math (math.h): Likewise.
57993         * modules/search (search.h): Likewise.
57994         * modules/signal (signal.h): Likewise.
57995         * modules/stdint (stdint.h): Likewise.
57996         * modules/stdio (stdio.h): Likewise.
57997         * modules/stdlib (stdlib.h): Likewise.
57998         * modules/string (string.h): Likewise.
57999         * modules/sys_time (sys/time.h): Likewise.
58000         * modules/time (time.h): Likewise.
58001         * modules/wchar (wchar.h): Likewise.
58002         * modules/wctype (wtype.h): Likewise.
58003
58004 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58005
58006         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58007
58008 2007-05-13  Bruno Haible  <bruno@clisp.org>
58009
58010         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58011         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58012         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58013         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58014         (gl_PREREQ_STRTOK_R): Don't require it here.
58015
58016 2007-05-13  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58019         when used in C++ mode.
58020
58021 2007-05-12  Bruno Haible  <bruno@clisp.org>
58022
58023         * lib/linebuffer.h: Tweak doc.
58024         * lib/linebuffer.c: Likewise.
58025
58026 2007-05-12  James Youngman  <jay@gnu.org>
58027
58028         * lib/linebuffer.c (readlinebuffer_delim): New function,
58029         like readlinebuffer, but use a caller-specified delimiter.
58030         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58031         as the delimiter.
58032         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58033
58034 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58035
58036         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58037         * modules/openat (Files): Remove openat-die.c.
58038         (Depends-on): Add openat-die.
58039         * modules/openat-die: New module.
58040
58041 2007-05-06  Bruno Haible  <bruno@clisp.org>
58042
58043         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58044         Update with info about Cygwin.
58045         * doc/functions/fprintf.texi: Update.
58046         * doc/functions/printf.texi: Update.
58047         * doc/functions/snprintf.texi: Update.
58048         * doc/functions/sprintf.texi: Update.
58049         * doc/functions/vfprintf.texi: Update.
58050         * doc/functions/vprintf.texi: Update.
58051         * doc/functions/vsnprintf.texi: Update.
58052         * doc/functions/vsprintf.texi: Update.
58053         Reported by Eric Blake.
58054
58055 2007-05-06  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58058         padding ourselves for the floating-point directives.
58059         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58062         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58063         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58071         * tests/test-snprintf-posix.h (test_function): Also check the width
58072         and some flags in the %f directive.
58073         * tests/test-sprintf-posix.h (test_function): Likewise.
58074         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58075         * tests/test-vasprintf-posix.c (test_function): Likewise.
58076         * doc/functions/fprintf.texi: Update.
58077         * doc/functions/printf.texi: Update.
58078         * doc/functions/snprintf.texi: Update.
58079         * doc/functions/sprintf.texi: Update.
58080         * doc/functions/vfprintf.texi: Update.
58081         * doc/functions/vprintf.texi: Update.
58082         * doc/functions/vsnprintf.texi: Update.
58083         * doc/functions/vsprintf.texi: Update.
58084
58085 2007-05-06  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58088         pass the ' flag character to sprintf or snprintf.
58089         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58092         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58093         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58096         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58101         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58102         flag.
58103         * tests/test-sprintf-posix.h (test_function): Likewise.
58104         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58105         * tests/test-vasprintf-posix.c (test_function): Likewise.
58106         * doc/functions/fprintf.texi: Update.
58107         * doc/functions/printf.texi: Update.
58108         * doc/functions/snprintf.texi: Update.
58109         * doc/functions/sprintf.texi: Update.
58110         * doc/functions/vfprintf.texi: Update.
58111         * doc/functions/vprintf.texi: Update.
58112         * doc/functions/vsnprintf.texi: Update.
58113         * doc/functions/vsprintf.texi: Update.
58114
58115 2007-05-01  Bruno Haible  <bruno@clisp.org>
58116
58117         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58118
58119 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58122         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58123
58124 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58127         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58128         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58129
58130 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58131
58132         * lib/argp-help.c (struct hol_entry): New member `ord'.
58133         (HOL_ENTRY_PTRCMP): Use ord for comparison
58134         (hol_sort): Initialize ord.
58135
58136 2007-05-01  Bruno Haible  <bruno@clisp.org>
58137
58138         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58139         Reported by Eric Blake.
58140         * doc/gnulib.texi (Function Substitutes): Update.
58141
58142 2007-05-01  Bruno Haible  <bruno@clisp.org>
58143
58144         * doc/functions.texi: Remove file, now redundant through
58145         doc/functions/*.texi.
58146
58147 2007-05-01  Bruno Haible  <bruno@clisp.org>
58148
58149         * modules/argp (Depends-on): Add sleep.
58150
58151 2007-05-01  Bruno Haible  <bruno@clisp.org>
58152
58153         * modules/sleep-tests: New file.
58154         * tests/test-sleep.c: New file.
58155
58156         * modules/sleep: New file.
58157         * lib/sleep.c: New file.
58158         * m4/sleep.m4: New file.
58159         * lib/unistd_.h (sleep): New declaration.
58160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58161         HAVE_SLEEP.
58162         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58163         * doc/functions/sleep.texi: Document the sleep module.
58164
58165 2007-05-01  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/sigprocmask.h: Remove file.
58168         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58169         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58170         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58171         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58172         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58173         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58174         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58175         HAVE_SIGSET_T as a shell variable.
58176         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58177         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58178         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58179         (Depends-on): Add signal. Remove verify.
58180         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58181         (Include): Mention <signal.h> instead of sigprocmask.h.
58182         * NEWS: Mention the change.
58183         * lib/fatal-signal.c: Don't include sigprocmask.h.
58184
58185 2007-05-01  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/signal: New file.
58188         * lib/signal_.h: New file.
58189         * m4/signal_h.m4: New file.
58190
58191 2007-05-01  Bruno Haible  <bruno@clisp.org>
58192
58193         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58194         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58195         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58196         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58197
58198 2007-05-01  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58201         configure time.
58202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58203         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58204         * modules/sys_stat (Makefile.am): Substitute their values into
58205         sys/stat.h.
58206
58207 2007-05-01  Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58210         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58211         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58212
58213 2007-05-01  Bruno Haible  <bruno@clisp.org>
58214
58215         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58216         'assert' module here.
58217
58218 2007-05-01  Bruno Haible  <bruno@clisp.org>
58219
58220         * doc/functions/*.texi: New files.
58221         * doc/functions/google-ranking.txt: New file.
58222         * doc/gnulib.texi (Function Substitutes): New chapter.
58223         (ctime, inet_ntoa): Remove sections.
58224         * doc/ctime.texi: Remove file.
58225         * doc/inet_ntoa.texi: Remove file.
58226         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58227         dependencies.
58228         (%.info): New rule, specifying a --reference-limit.
58229
58230 2007-05-01  Bruno Haible  <bruno@clisp.org>
58231
58232         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58233
58234 2007-05-01  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58237         the portability of 'mkdir' to mingw systems.
58238
58239 2007-05-01  Bruno Haible  <bruno@clisp.org>
58240
58241         * doc/headers/google-ranking.txt: New file.
58242
58243 2007-04-30  Eric Blake  <ebb9@byu.net>
58244
58245         Prefer fseeko to fseek.
58246         * modules/getpass (Depends-on): Add fseeko.
58247         * lib/getpass.c (getpass): Use fseeko, not fseek.
58248
58249 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58250
58251         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58252         assumes the sorting is stable, while most qsort implementations
58253         are not.  Use argument addresses to ensure they never compare as
58254         equal.
58255
58256         * tests/test-argp-2.sh (usage-indent test): Fix output
58257         (func_compare): Restore diff options
58258         * tests/test-argp.c: Restore #include "progname.h"
58259
58260 2007-04-29  Bruno Haible  <bruno@clisp.org>
58261
58262         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58264         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58265         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58266         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58267         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58268         (TESTS, check_PROGRAMS): Add test-snprintf.
58269         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58270         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58271         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58272         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58273         assertions that fail on HP-UX, OSF/1, or IRIX.
58274         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58275
58276 2007-04-29  Bruno Haible  <bruno@clisp.org>
58277
58278         * MODULES.html.sh (posix_functions): Remove 'contents'.
58279
58280 2007-04-29  Karl Berry  <karl@gnu.org>
58281
58282         * config/srclist.txt (gendocs_template_min): new entry.
58283
58284 2007-04-29  Bruno Haible  <bruno@clisp.org>
58285
58286         Work around fpurge bug on BSD systems.
58287         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58288         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58289         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58290         fpurge to rpl_fpurge if the system already has this function.
58291         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58292         the case where the system already has this function. Correct invariants
58293         on BSD systems.
58294         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58295         BSD systems.
58296
58297 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58298
58299         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58300         proposed by Sven Verdoolaege.
58301
58302         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58303         options.
58304         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58305         (usage and help tests): Update
58306
58307 2007-04-29  Bruno Haible  <bruno@clisp.org>
58308
58309         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58310         Print more information in case of failure. Disable a test on BeOS.
58311
58312 2007-04-29  Bruno Haible  <bruno@clisp.org>
58313
58314         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58315         This helps debugging on systems on which no gdb is available.
58316
58317 2007-04-29  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/freading.h: Improve comments.
58320         * lib/fwriting.h: Likewise.
58321         * tests/test-freading.c (main): Don't check freading immediately after
58322         repositioning. Needed for glibc.
58323
58324 2007-04-29  Bruno Haible  <bruno@clisp.org>
58325
58326         * lib/freading.c (freading): Trivial simplification.
58327
58328 2007-04-28  Bruno Haible  <bruno@clisp.org>
58329
58330         * tests/test-fwriting.c (main): Also test the interaction between
58331         fflush and fwriting.
58332         * modules/fwriting-tests (Depends-on): Add fflush.
58333
58334         * tests/test-freading.c (main): Also test the interaction between
58335         fflush and freading.
58336         * modules/freading-tests (Depends-on): Add fflush.
58337
58338 2007-04-28  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58341         fseeko and ftello.
58342         Suggested by Eric Blake.
58343
58344 2007-04-28  Jim Meyering  <jim@meyering.net>
58345
58346         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58347         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58348         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58349
58350 2007-04-27  Eric Blake  <ebb9@byu.net>
58351
58352         * doc/headers/assert.texi (assert.h): Document assert module use.
58353
58354 2007-04-27  Bruno Haible  <bruno@clisp.org>
58355
58356         * doc/headers/*.texi: New files.
58357         * doc/gnulib.texi (Header File Substitutes): New chapter.
58358         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58359         dependencies.
58360         (standards.info ,standards.html, standards.dvi): Update dependencies.
58361         (mostlyclean, clean): New targets.
58362
58363 2007-04-27  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58366         * modules/sysexits (Files, Makefile.am): Update.
58367
58368         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58369         * modules/sys_socket (Files, Makefile.am): Update.
58370
58371         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58372         * modules/sys_stat (Files, Makefile.am): Update.
58373
58374 2007-04-27  Eric Blake  <ebb9@byu.net>
58375
58376         * lib/freading.h: Improve comments.
58377         * lib/fwriting.h: Likewise.
58378         * lib/fflush.c: Likewise.
58379
58380         Fix closein for mingw.
58381         * modules/closein-tests: Add tests for closein.
58382         * tests/test-closein.c: New file.
58383         * tests/test-closein.sh: Likewise.
58384         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58385         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58386
58387 2007-04-27  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58390         version is < 6.
58391         * lib/math_.h [__DECC]: Likewise.
58392         * lib/stdio_.h [__DECC]: Likewise.
58393         * lib/stdlib_.h [__DECC]: Likewise.
58394         * lib/string_.h [__DECC]: Likewise.
58395         * lib/time_.h [__DECC]: Likewise.
58396         * lib/wchar_.h [__DECC]: Likewise.
58397         * lib/wctype_.h [__DECC]: Likewise.
58398
58399 2007-04-27  Bruno Haible  <bruno@clisp.org>
58400
58401         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58402
58403 2007-04-27  Bruno Haible  <bruno@clisp.org>
58404
58405         * lib/fflush.c: Add comments.
58406         * modules/fpurge-tests (Depends-on): Add fflush.
58407         * modules/freadable-tests (Depends-on): Likewise.
58408         * modules/fwritable-tests (Depends-on): Likewise.
58409
58410 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58411
58412         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58413         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58414         Report by Bruno Haible <bruno@clisp.org>.
58415
58416 2007-04-26  Eric Blake  <ebb9@byu.net>
58417
58418         Fix fflush on mingw.
58419         * modules/fflush (Depends-on): Add freading.
58420         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58421         but unread data.
58422
58423 2007-04-26  Eric Blake  <ebb9@byu.net>
58424         and Bruno Haible  <bruno@clisp.org>
58425
58426         Implement freading and fwriting.
58427         * lib/freading.c: New file.
58428         * lib/freading.h: Likewise.
58429         * m4/freading.m4: Likewise.
58430         * modules/freading: Likewise.
58431         * modules/freading-tests: Likewise.
58432         * tests/test-freading.c: Likewise.
58433         * lib/fwriting.c: New file.
58434         * lib/fwriting.h: Likewise.
58435         * m4/fwriting.m4: Likewise.
58436         * modules/fwriting: Likewise.
58437         * modules/fwriting-tests: Likewise.
58438         * tests/test-fwriting.c: Likewise.
58439         * MODULES.html.sh (File stream based Input/Output): Mention them.
58440
58441 2007-04-26  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58444         'long' when we assume it.
58445         Suggested by Eric Blake.
58446
58447 2007-04-26  Bruno Haible  <bruno@clisp.org>
58448
58449         Ensure fseeko, ftello are declared on glibc systems.
58450         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58451         * modules/fseeko (configure.ac-early): Likewise.
58452         * modules/ftello (configure.ac-early): Likewise.
58453         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58454         AC_FUNC_FSEEKO for this.
58455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58456         (gl_CHECK_FSEEKO): Remove macro.
58457
58458 2007-04-26  Bruno Haible  <bruno@clisp.org>
58459
58460         * tests/test-fflush.c (main): Also check the ftell result after
58461         fflush and fseek/fseeko.
58462         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58463         file descriptor position cache in the stream.
58464         * lib/fseeko.c (rpl_fseeko): Likewise.
58465
58466 2007-04-26  Bruno Haible  <bruno@clisp.org>
58467
58468         * modules/fflush-tests (Depends-on): Add fseeko.
58469
58470 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58472
58473         * lib/argz_.h: ensure error_t definition is obtained in same
58474         mechanism system argz.h would have.
58475         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58476         argz facilities are known bad.  Err on the side of caution if
58477         cross-compiling.
58478
58479 2007-04-25  Eric Blake  <ebb9@byu.net>
58480
58481         * lib/fpurge.c (includes): Use stdlib.h for free.
58482         * tests/test-fflush.c (main): Also test fflush-fseeko.
58483
58484 2007-04-25  Bruno Haible  <bruno@clisp.org>
58485
58486         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58487         * lib/fseeko.c: New file.
58488         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58489         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58490         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58491         gl_FUNC_FSEEKO.
58492         (gl_FUNC_FSEEKO): Invoke it.
58493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58494         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58495         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58496
58497 2007-04-25  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/fflush (Depends-on): Add ftello.
58500
58501 2007-04-25  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/ftello-tests: New file.
58504         * tests/test-ftello.c: New file.
58505
58506         * modules/ftello: New file.
58507         * m4/ftello.m4: New file.
58508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58509         HAVE_FTELLO.
58510         * lib/stdio_.h (ftello): New declaration.
58511         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58512         HAVE_FTELLO.
58513
58514 2007-04-25  Bruno Haible  <bruno@clisp.org>
58515
58516         * modules/fseeko-tests: New file.
58517         * tests/test-fseeko.c: New file.
58518
58519         * modules/fseeko: New file.
58520         * m4/fseeko.m4: New file.
58521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58522         HAVE_FSEEKO.
58523         * lib/stdio_.h (fseeko): New declaration.
58524         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58525         HAVE_FSEEKO.
58526
58527 2007-04-25  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58530
58531 2007-04-25  Bruno Haible  <bruno@clisp.org>
58532
58533         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58534         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58535         * tests/test-unistd.c: Likewise.
58536         * tests/test-fcntl.c: Likewise.
58537
58538 2007-04-23  Eric Blake  <ebb9@byu.net>
58539
58540         * lib/fflush.c: Fix missing include.
58541         Reported by Bruno Haible.
58542
58543 2007-04-23  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58546         Reported by Eric Blake.
58547
58548 2007-04-23  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58551
58552 2007-04-23  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58555
58556 2007-04-23  Bruno Haible  <bruno@clisp.org>
58557
58558         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58559         Needed on HP-UX 11.
58560
58561 2007-04-16  Eric Blake  <ebb9@byu.net>
58562
58563         Make fflush rely on fpurge.
58564         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58565         open coding all variants.
58566         * modules/fflush (Depends-on): Add fpurge and unistd.
58567         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58568         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58569
58570         Fix --with-tests compilation on cygwin.
58571         * modules/argmatch-tests (Makefile.am): List gnulib library first
58572         in LDADD.
58573         * modules/argp-tests (Makefile.am): Likewise.
58574         * modules/array-list-tests (Makefile.am): Likewise.
58575         * modules/array-oset-tests (Makefile.am): Likewise.
58576         * modules/avltree-list-tests (Makefile.am): Likewise.
58577         * modules/avltree-oset-tests (Makefile.am): Likewise.
58578         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58579         * modules/carray-list-tests (Makefile.am): Likewise.
58580         * modules/dirname-tests (Makefile.am): Likewise.
58581         * modules/frexp-tests (Makefile.am): Likewise.
58582         * modules/isnanl-tests (Makefile.am): Likewise.
58583         * modules/linked-list-tests (Makefile.am): Likewise.
58584         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58585         * modules/lock-tests (Makefile.am): Likewise.
58586         * modules/rbtree-list-tests (Makefile.am): Likewise.
58587         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58588         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58589         * modules/tls-tests (Makefile.am): Likewise.
58590         * modules/tsearch-tests (Makefile.am): Likewise.
58591         * modules/xvasprintf-tests (Makefile.am): Likewise.
58592
58593         Fix fpurge for cygwin.
58594         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58595         value.
58596         * modules/fpurge-tests (Depends-on): Clean up trash.
58597
58598 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58599
58600         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58601
58602         * m4/autobuild.m4: Re-indent.
58603
58604 2007-04-13  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/fpurge-tests: New file.
58607         * tests/test-fpurge.c: New file.
58608
58609         * modules/fpurge: New file.
58610         * lib/fpurge.h: New file.
58611         * lib/fpurge.c: New file.
58612         * m4/fpurge.m4: New file.
58613
58614 2007-04-13  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/fbufmode-tests: New file.
58617         * tests/test-fbufmode.c: New file.
58618
58619         * modules/fbufmode: New file.
58620         * lib/fbufmode.h: New file.
58621         * lib/fbufmode.c: New file.
58622         * m4/fbufmode.m4: New file.
58623
58624 2007-04-13  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/fwritable-tests: New file.
58627         * tests/test-fwritable.c: New file.
58628
58629         * modules/fwritable: New file.
58630         * lib/fwritable.h: New file.
58631         * lib/fwritable.c: New file.
58632         * m4/fwritable.m4: New file.
58633
58634 2007-04-13  Bruno Haible  <bruno@clisp.org>
58635
58636         * modules/freadable-tests: New file.
58637         * tests/test-freadable.c: New file.
58638
58639         * modules/freadable: New file.
58640         * lib/freadable.h: New file.
58641         * lib/freadable.c: New file.
58642         * m4/freadable.m4: New file.
58643
58644 2007-04-13  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58647         MOSTLYCLEANFILES.
58648
58649 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58650
58651         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58652         gzip bootstrap.conf to avoid dragging in i18n machinery.
58653         (gnulib_tool_option): Use it.
58654
58655 2007-04-13  Bruno Haible  <bruno@clisp.org>
58656
58657         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58658         %F directives.
58659         * tests/test-vasprintf-posix.c (test_function): Likewise.
58660         * tests/test-snprintf-posix.h (test_function): Likewise.
58661         * tests/test-sprintf-posix.h (test_function): Likewise.
58662         * tests/test-fprintf-posix.h (test_function): Likewise.
58663         * tests/test-printf-posix.h (test_function): Likewise.
58664         * tests/test-fprintf-posix.out: Likewise.
58665
58666 2007-04-13  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58669         * modules/tls-tests (configure.ac): Likewise.
58670         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58671
58672 2007-04-13  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/tls.c (glthread_tls_get): Fix return type.
58675         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58676
58677 2007-04-12  Eric Blake  <ebb9@byu.net>
58678
58679         * modules/gettime (Depends-on): Remove gettime.
58680         Reported by Dmitry V. Levin.
58681
58682 2007-04-12  Bruno Haible  <bruno@clisp.org>
58683
58684         * modules/fflush (Include): Mention <stdio.h>.
58685         * modules/strtoimax (Include): Mention <inttypes.h>.
58686         * modules/strtoumax (Include): Likewise.
58687
58688 2007-04-12  Eric Blake  <ebb9@byu.net>
58689
58690         * .cvsignore: New file.
58691         * .gitignore: Likewise.
58692
58693 2007-04-12  Bruno Haible  <bruno@clisp.org>
58694
58695         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58696         not before, since $(LDADD) often contains libgnu.a.
58697         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58698         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58699         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58700         Needed on Cygwin.
58701
58702 2007-04-12  Eric Blake  <ebb9@byu.net>
58703
58704         Work around glibc's failure to flush stdin on fclose.
58705         * lib/closein.c (close_stdin): Flush stdin before closing.
58706
58707         Work around glibc's failure to reset seekable stdin on exit.
58708         * modules/closein: New module.
58709         * lib/closein.c: New file.
58710         * lib/closein.h: Likewise.
58711         * m4/closein.m4: Likewise.
58712         * MODULES.html.sh (File stream based Input/Output): Document it.
58713
58714 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58715
58716         * gnulib-tool: Rename generated 'autobuild' script to
58717         'do-autobuild' in --create-megatestdir output.
58718
58719         * doc/gnulib.texi (Build robot for gnulib): Fix.
58720
58721 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58722
58723         * modules/sysexits (Depends-on): Add absolute-header.
58724
58725 2007-04-12  Eric Blake  <ebb9@byu.net>
58726
58727         No need to preserve errno on success.
58728         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58729         Reported by Bruno Haible.
58730
58731 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58732
58733         * MODULES.html.sh (Support for maintaining and releasing
58734         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58735
58736 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58737
58738         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58739
58740 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58741
58742         * modules/autobuild: New module.
58743
58744         * m4/autobuild.m4: New file.
58745
58746 2007-04-11  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58749         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58752         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58753         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58754         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58756         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58757         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58758         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
58777
58778 2007-04-11  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58781
58782 2007-04-10  Bruno Haible  <bruno@clisp.org>
58783
58784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58785         for NaN and Infinity. Needed on FreeBSD 6.1.
58786         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58787         regarding results for "%010a" of Infinity and NaN.
58788         * tests/test-vasprintf-posix.c (test_function): Likewise.
58789         * tests/test-snprintf-posix.h (test_function): Likewise.
58790         * tests/test-sprintf-posix.h (test_function): Likewise.
58791         * tests/test-fprintf-posix.h (test_function): Likewise.
58792         * tests/test-printf-posix.h (test_function): Likewise.
58793         * tests/test-fprintf-posix.out: Likewise.
58794
58795 2007-04-10  Bruno Haible  <bruno@clisp.org>
58796
58797         * modules/locale-tests: New file.
58798         * tests/test-locale.c: New file.
58799
58800         * modules/locale: New file.
58801         * lib/locale_.h: New file.
58802         * m4/locale_h.m4: New file.
58803
58804 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58805             Bruno Haible  <bruno@clisp.org>
58806
58807         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58808         be determined, test for availability of the copysignf, copysign,
58809         copysignl functions.
58810         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58811         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58812         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58813
58814 2007-04-09  Eric Blake  <ebb9@byu.net>
58815
58816         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58817         * modules/stdio (Makefile.am): Support fflush.
58818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58819         * modules/fflush: New file.
58820         * lib/fflush.c: Likewise.
58821         * m4/fflush.m4: Likewise.
58822         * modules/fflush-tests: New test.
58823         * tests/test-fflush.c: Likewise.
58824         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58825
58826 2007-04-06  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58829         (VASNPRINTF): Use signbit for faster determination whether to print a
58830         minus sign.
58831         * modules/vasnprintf (Files): Remove lib/float+.h.
58832         * modules/fprintf-posix (Depends-on): Add signbit.
58833         * modules/snprintf-posix (Depends-on): Likewise.
58834         * modules/sprintf-posix (Depends-on): Likewise.
58835         * modules/vasnprintf-posix (Depends-on): Likewise.
58836         * modules/vasprintf-posix (Depends-on): Likewise.
58837         * modules/vfprintf-posix (Depends-on): Likewise.
58838         * modules/vsnprintf-posix (Depends-on): Likewise.
58839         * modules/vsprintf-posix (Depends-on): Likewise.
58840
58841 2007-04-06  Bruno Haible  <bruno@clisp.org>
58842
58843         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58844         * tests/test-frexpl.c (main): Likewise.
58845         * tests/test-ldexpl.c (main): Likewise.
58846         * modules/frexp-tests (Depends-on): Add signbit.
58847         * modules/frexpl-tests (Depdends-on): Likewise.
58848         * modules/ldexpl-tests (Depdends-on): Likewise.
58849
58850 2007-04-06  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/signbit-tests: New file.
58853         * tests/test-signbit.c: New file.
58854
58855         * modules/signbit: New file.
58856         * lib/signbitf.c: New file.
58857         * lib/signbitd.c: New file.
58858         * lib/signbitl.c: New file.
58859         * m4/signbit.m4: New file.
58860         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58861         (signbit): New macro.
58862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58863         REPLACE_SIGNBIT.
58864         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58865         REPLACE_FREXPL into math.h.
58866
58867 2007-04-06  Bruno Haible  <bruno@clisp.org>
58868
58869         * modules/isnanf-nolibm-tests: New file.
58870         * tests/test-isnanf.c: New file.
58871
58872         * modules/isnanf-nolibm: New file.
58873         * lib/isnanf.h: New file.
58874         * lib/isnanf.c: New file.
58875         * lib/isnan.c: Consider the USE_FLOAT macro.
58876         * m4/isnanf.m4: New file.
58877
58878 2007-04-06  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58881         (Link): New section.
58882
58883         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58884
58885 2007-04-06  Bruno Haible  <bruno@clisp.org>
58886
58887         Assume the 'long double' type.
58888         * m4/longdouble.m4: Remove file.
58889         * config/srclist.txt: Don't mention longdouble.m4.
58890         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58891         * lib/float+.h: Likewise.
58892         * lib/frexp.c: Likewise.
58893         * lib/printf-args.h: Likewise.
58894         * lib/printf-args.c: Likewise.
58895         * lib/printf-frexp.c: Likewise.
58896         * lib/printf-parse.c: Likewise.
58897         * lib/vasnprintf.c: Likewise.
58898         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58899         * m4/intl.m4: Likewise.
58900         * m4/isnanl.m4: Likewise.
58901         * m4/printf.m4: Likewise.
58902         * m4/printf-frexpl.m4: Likewise.
58903         * m4/vasnprintf.m4: Likewise.
58904         * modules/allocsa (Files): Remove m4/longdouble.m4.
58905         * modules/gettext (Files): Likewise.
58906         * modules/relocatable-prog-wrapper (Files): Likewise.
58907         * modules/vasnprintf (Files): Likewise.
58908         * modules/isnanl (Files): Likewise.
58909         (Include): Simplify.
58910         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58911         (Include): Simplify.
58912         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58913         (Include): Simplify.
58914         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58915         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58916         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58918         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58920         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58922         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58923         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58924         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58925         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58926         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58927         * tests/test-isnanl.c: Likewise.
58928         * tests/test-snprintf-posix.h: Likewise.
58929         * tests/test-sprintf-posix.h: Likewise.
58930         * tests/test-vasnprintf-posix.c: Likewise.
58931         * tests/test-vasnprintf-posix2.c: Likewise.
58932         * tests/test-vasprintf-posix.c: Likewise.
58933
58934 2007-04-06  Bruno Haible  <bruno@clisp.org>
58935
58936         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58937         * lib/math_.h [__DECC]: Include the overridden include file through
58938         #include_next, outside the double-inclusion guard.
58939         * lib/stdio_.h [__DECC]: Likewise.
58940         * lib/stdlib_.h [__DECC]: Likewise.
58941         * lib/string_.h [__DECC]: Likewise.
58942         * lib/time_.h [__DECC]: Likewise.
58943         * lib/wchar_.h [__DECC]: Likewise.
58944         * lib/wctype_.h [__DECC]: Likewise.
58945         * lib/inttypes_.h [__DECC]: Likewise.
58946         Reported by Albert Chin <china@thewrittenword.com> in
58947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58948
58949 2007-04-04  Eric Blake  <ebb9@byu.net>
58950
58951         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58952         1.5.x.
58953
58954 2007-04-04  Bruno Haible  <bruno@clisp.org>
58955
58956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58957         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58958
58959 2007-04-04  Bruno Haible  <bruno@clisp.org>
58960
58961         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58962         results for "%010a" of Infinity and NaN.
58963         * tests/test-vasprintf-posix.c (test_function): Likewise.
58964         * tests/test-snprintf-posix.h (test_function): Likewise.
58965         * tests/test-sprintf-posix.h (test_function): Likewise.
58966         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58967         * tests/test-printf-posix.h (test_function): Likewise.
58968         * tests/test-fprintf-posix.out: Update.
58969         Needed for FreeBSD 6.1.
58970
58971 2007-04-04  Bruno Haible  <bruno@clisp.org>
58972
58973         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58974         directly used by the gnulib modules nor by gnulib-tool.
58975
58976 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58977
58978         * DEPENDENCIES: Give overall description of version dependency
58979         desirability.  Use more-typical names for apps.
58980         Add shell, coreutils, diffutils, grep, tar, gzip.
58981
58982 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58983
58984         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58985
58986 2007-04-04  Karl Berry  <karl@gnu.org>
58987
58988         * MODULES.html.sh (func_module): missing '.
58989
58990 2007-04-03  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/argmatch-tests (Makefile.am): New variable
58993         test_argmatch_LDADD.
58994         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58995         * modules/array-list-tests (Makefile.am): New variable
58996         test_array_list_LDADD.
58997         * modules/array-oset-tests (Makefile.am): New variable
58998         test_array_oset_LDADD.
58999         * modules/avltree-list-tests (Makefile.am): New variable
59000         test_avltree_list_LDADD.
59001         * modules/avltree-oset-tests (Makefile.am): New variable
59002         test_avltree_oset_LDADD.
59003         * modules/avltreehash-list-tests (Makefile.am): New variable
59004         test_avltreehash_list_LDADD.
59005         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59006         test_canonicalize_lgpl_LDADD.
59007         * modules/carray-list-tests (Makefile.am): New variable
59008         test_carray_list_LDADD.
59009         * modules/dirname-tests (Makefile.am): New variable
59010         test_dirname_LDADD.
59011         * modules/linked-list-tests (Makefile.am): New variable
59012         test_linked_list_LDADD.
59013         * modules/linkedhash-list-tests (Makefile.am): New variable
59014         test_linkedhash_list_LDADD.
59015         * modules/rbtree-list-tests (Makefile.am): New variable
59016         test_rbtree_list_LDADD.
59017         * modules/rbtree-oset-tests (Makefile.am): New variable
59018         test_rbtree_oset_LDADD.
59019         * modules/rbtreehash-list-tests (Makefile.am): New variable
59020         test_rbtreehash_list_LDADD.
59021         * modules/xvasprintf-tests (Makefile.am): New variable
59022         test_xvasprintf_LDADD.
59023         Reported by Eric Blake.
59024
59025 2007-04-03  Eric Blake  <ebb9@byu.net>
59026
59027         * DEPENDENCIES: Weaken m4 requirements.
59028
59029 2007-04-03  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59032         * modules/isnanl-tests (configure.ac): Likewise.
59033
59034 2007-04-03  Ben Pfaff  <blp@gnu.org>
59035
59036         * modules/iconv_open: Add $(srcdir)/ to source directory
59037         references in Makefile fragments that call gperf, to fix VPATH
59038         builds.
59039
59040 2007-04-03  Bruno Haible  <bruno@clisp.org>
59041
59042         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59043         * lib/ldexpl.c: Undo last change.
59044
59045 2007-04-03  Bruno Haible  <bruno@clisp.org>
59046
59047         * modules/printf-frexpl (Depends-on): Undo last change.
59048         (Files): Add m4/ldexpl.m4.
59049
59050 2007-04-03  Bruno Haible  <bruno@clisp.org>
59051
59052         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59053         * modules/isnanl (Link): New section.
59054
59055         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59056         * modules/frexp (Link): New section.
59057
59058         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59059         * modules/frexpl (Link): New section.
59060
59061         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59062         * modules/ldexpl (Link): New section.
59063
59064 2007-04-03  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/TEMPLATE-EXTENDED: New file.
59067         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59068
59069 2007-04-03  Bruno Haible  <bruno@clisp.org>
59070
59071         * DEPENDENCIES: New file.
59072         Suggested by Simon Josefsson.
59073
59074 2007-04-03  Bruno Haible  <bruno@clisp.org>
59075
59076         * doc/gnulib.texi: Escape @.
59077
59078 2007-04-03  James Youngman  <jay@gnu.org>
59079         and Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59082         birthtime on all systems that have birthtime, not just those which
59083         use st_birthtimensec rather than st_birthtim.  Putting zero in
59084         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59085         that the birth time is not available for files on an NFS mount.
59086
59087 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59088
59089         * modules/memxor: Move back from crypto/, suggested by Bruno.
59090         * modules/crypto/hmac-sha1: Fix memxor dependency.
59091
59092         * modules/crypto/gc: Moved from ../.
59093
59094 2007-04-02  Eric Blake  <ebb9@byu.net>
59095
59096         * lib/ldexpl.c (includes): Avoid libm.
59097
59098         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59099
59100 2007-04-02  Bruno Haible  <bruno@clisp.org>
59101
59102         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59103         on IRIX.
59104
59105 2007-04-02  Bruno Haible  <bruno@clisp.org>
59106
59107         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59108         x86 or x86_64 platforms running MacOS X.
59109         Reported by Ryan Schmidt <@ryandesign.com>.
59110
59111 2007-04-02  Bruno Haible  <bruno@clisp.org>
59112
59113         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59114         i386.
59115
59116 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59117
59118         * modules/crypto/arcfour: Moved from ../.
59119         * modules/crypto/arcfour-tests: Moved from ../.
59120         * modules/crypto/arctwo: Moved from ../.
59121         * modules/crypto/arctwo-tests: Moved from ../.
59122         * modules/crypto/des: Moved from ../.
59123         * modules/crypto/des-tests: Moved from ../.
59124         * modules/crypto/gc-arcfour: Moved from ../.
59125         * modules/crypto/gc-arcfour-tests: Moved from ../.
59126         * modules/crypto/gc-arctwo: Moved from ../.
59127         * modules/crypto/gc-arctwo-tests: Moved from ../.
59128         * modules/crypto/gc-des: Moved from ../.
59129         * modules/crypto/gc-des-tests: Moved from ../.
59130         * modules/crypto/gc-hmac-md5: Moved from ../.
59131         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59132         * modules/crypto/gc-hmac-sha1: Moved from ../.
59133         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59134         * modules/crypto/gc-md2: Moved from ../.
59135         * modules/crypto/gc-md2-tests: Moved from ../.
59136         * modules/crypto/gc-md4: Moved from ../.
59137         * modules/crypto/gc-md4-tests: Moved from ../.
59138         * modules/crypto/gc-md5: Moved from ../.
59139         * modules/crypto/gc-md5-tests: Moved from ../.
59140         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59141         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59142         * modules/crypto/gc-random: Moved from ../.
59143         * modules/crypto/gc-rijndael: Moved from ../.
59144         * modules/crypto/gc-rijndael-tests: Moved from ../.
59145         * modules/crypto/gc-sha1: Moved from ../.
59146         * modules/crypto/gc-sha1-tests: Moved from ../.
59147         * modules/crypto/gc-tests: Moved from ../.
59148         * modules/crypto/hmac-md5: Moved from ../.
59149         * modules/crypto/hmac-md5-tests: Moved from ../.
59150         * modules/crypto/hmac-sha1: Moved from ../.
59151         * modules/crypto/hmac-sha1-tests: Moved from ../.
59152         * modules/crypto/md2: Moved from ../.
59153         * modules/crypto/md2-tests: Moved from ../.
59154         * modules/crypto/md4: Moved from ../.
59155         * modules/crypto/md4-tests: Moved from ../.
59156         * modules/crypto/md5: Moved from ../.
59157         * modules/crypto/md5-tests: Moved from ../.
59158         * modules/crypto/memxor: Moved from ../.
59159         * modules/crypto/rijndael: Moved from ../.
59160         * modules/crypto/rijndael-tests: Moved from ../.
59161         * modules/crypto/sha1: Moved from ../.
59162
59163 2007-03-30  James Youngman  <jay@gnu.org>
59164
59165         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59166         rename() to change the ctime of a file (because ctime is unaffected
59167         by rename on jfs2 on AIX 5.1).
59168         (main): Start by doing cleanup, in case a previous run failed leaving
59169         test files behind.
59170
59171 2007-03-31  Bruno Haible  <bruno@clisp.org>
59172
59173         Support old proprietary implementations of iconv.
59174         * modules/iconv_open: New file.
59175         * lib/iconv_.h: New file.
59176         * m4/iconv_h.m4: New file.
59177         * lib/iconv_open.c: New file.
59178         * lib/iconv_open-aix.gperf: New file.
59179         * lib/iconv_open-hpux.gperf: New file.
59180         * lib/iconv_open-irix.gperf: New file.
59181         * lib/iconv_open-osf.gperf: New file.
59182         * m4/iconv_open.m4: New file.
59183         * modules/linebreak (Depends-on): Add iconv_open.
59184         * modules/striconv (Depends-on): Likewise.
59185         * modules/striconveh (Depends-on): Likewise.
59186         * modules/unicodeio (Depends-on): Likewise.
59187         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59188         (iconv_t)(-1).
59189         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59190         conversion if cd is (iconv_t)(-1).
59191         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59192         is not possible.
59193
59194 2007-03-31  Bruno Haible  <bruno@clisp.org>
59195
59196         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59197         work on Solaris either. Protect also second use of "autodetect_jp".
59198
59199 2007-03-31  Bruno Haible  <bruno@clisp.org>
59200
59201         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59202         the function is not present.
59203
59204 2007-03-31  Bruno Haible  <bruno@clisp.org>
59205
59206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59207         the function is not present.
59208
59209 2007-03-31  Bruno Haible  <bruno@clisp.org>
59210
59211         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59212         a bug in HP-UX iconv_open().
59213
59214 2007-03-31  Bruno Haible  <bruno@clisp.org>
59215
59216         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59217         (Mathematics <math.h>): New section, add fpieee.
59218         (Input/output <stdio.h>): Add fseterr.
59219         (Mathematics <math.h>): New section, add printf-frexp.
59220         (Container data structures): Add sublist.
59221         (Core language properties): Add fpucw, inline.
59222         (Functions for greatest-width integer types <inttypes.h>): Add
59223         imaxabs, imaxdiv, inttypes.
59224         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59225         isnanl-nolibm, ldexp.
59226         (Mathematics <math.h>): New section, add printf-frexpl.
59227         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59228         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59229         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59230         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59231         (Unicode string functions): Add unistr/u*-mbtoucr.
59232         (Java): Add javacomp-script, javaexec-script.
59233         (C#): Add csharpcomp-script, csharpexec-script.
59234         (Support for building libraries and executables): Add havelib,
59235         relocatable-*.
59236         (Support for maintaining and releasing projects): Renamed from
59237         'Support for maintaining and release projects'. Add announce-gen.
59238
59239 2007-03-31  Bruno Haible  <bruno@clisp.org>
59240
59241         * README: Talk primarily about git.
59242         (git and CVS): Renamed from CVS.
59243         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59244         gnulib is available through git.
59245         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59246
59247 2007-03-30  Bruno Haible  <bruno@clisp.org>
59248
59249         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59250         * lib/poll_.h: Likewise.
59251         * lib/stat_.h: Likewise.
59252         * lib/sys_time_.h: Likewise.
59253         * lib/sysexit_.h: Likewise.
59254         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59255         * lib/stdbool_.h: Likewise.
59256         * lib/byteswap_.h: Add double-inclusion guard.
59257
59258 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59259
59260         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59261
59262 2007-03-30  Karl Berry  <karl@gnu.org>
59263
59264         * config/srclist-update: double space after USA in the license
59265         substitution, since that's how it's usually (?) written.
59266
59267 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59270         reported by Bruno Haible.
59271
59272 2007-03-29  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59275         a bug in AIX iconv().
59276
59277 2007-03-29  Bruno Haible  <bruno@clisp.org>
59278
59279         * modules/ldexpl-tests: New file.
59280         * tests/test-ldexpl.c: New file.
59281
59282 2007-03-29  Bruno Haible  <bruno@clisp.org>
59283
59284         * lib/ldexpl.c: Include fpucw.h.
59285         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59286         multiplication.
59287         * modules/ldexpl (Depends-on): Add fpucw.
59288
59289 2007-03-29  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/ldexpl: New file.
59292         * m4/ldexpl.m4: New file.
59293         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59294         set.
59295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59296         REPLACE_LDEXPL.
59297         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59298         REPLACE_LDEXPL.
59299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59300         gl_FUNC_LDEXPL_WORKS.
59301         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59302         * modules/mathl (Files): Remove lib/ldexpl.c.
59303         (Depends-on): Add ldexpl.
59304
59305 2007-03-29  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59308
59309 2007-03-29  Bruno Haible  <bruno@clisp.org>
59310
59311         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59312         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59313         and possibly also HP-UX.
59314         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59315         work on AIX, IRIX, HP-UX, OSF/1.
59316         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59317         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59318         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59319         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59320         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59321         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59322
59323 2007-03-29  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59326
59327 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59328
59329         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59330         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59331
59332 2007-03-29  Eric Blake  <ebb9@byu.net>
59333
59334         * lib/acl-internal.h: Remove redundant include.
59335         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59336         Cygwin when a file is locked.
59337
59338 2007-03-29  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59341         file.
59342         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59343
59344 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59347         try to remove a parent directory if the child couldn't be removed
59348         (except for the first rmdir, which could fail because the child
59349         doesn't exist).  Problem reported by Jeff Blaine in
59350         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59351
59352 2007-03-28  Bruno Haible  <bruno@clisp.org>
59353
59354         * lib/striconveh.c (utf8conv_carefully): New function.
59355         (mem_cd_iconveh_internal): Invoke it.
59356
59357 2007-03-28  Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59360         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59361         input.
59362         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59363         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59364         unistr/u8-uctomb.
59365
59366 2007-03-28  Bruno Haible  <bruno@clisp.org>
59367
59368         * modules/unistr/u8-mbtoucr: New file.
59369         * lib/unistr/u8-mbtoucr.c: New file.
59370         * modules/unistr/u16-mbtoucr: New file.
59371         * lib/unistr/u16-mbtoucr.c: New file.
59372         * modules/unistr/u16-mbtoucr: New file.
59373         * lib/unistr/u16-mbtoucr.c: New file.
59374         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59375
59376 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59377             Bruno Haible  <bruno@clisp.org>
59378
59379         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59380         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59381         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59382
59383         * m4/stdio_h.m4: Add stubs for vasprintf too.
59384
59385         * modules/stdio: Support vasprintf in sed command.
59386
59387         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59388         vasprintf.h.  Add stdio module indicator.
59389
59390         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59391         vasprintf.h.
59392
59393         * lib/vasprintf.h: File removed.
59394
59395         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59396         * lib/vasprintf.c: Ditto.
59397         * lib/xvasprintf.c: Ditto.
59398         * tests/test-vasprintf-posix.c: Ditto.
59399         * tests/test-vasprintf.c: Ditto.
59400
59401 2007-03-27  Bruno Haible  <bruno@clisp.org>
59402
59403         Make vasnprintf multithread-safe.
59404         * lib/vasnprintf.c (decimal_point_char): New function.
59405         (VASNPRINTF): Use it.
59406         Suggested by Simon Josefsson.
59407
59408 2007-03-27  Eric Blake  <ebb9@byu.net>
59409
59410         Support sub-second birthtime on cygwin.
59411         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59412         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59413         (get_stat_birthtime): Also work with st_birthtim.
59414
59415 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59416
59417         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59418         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59419         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59420         (get_stat_birthtime_ns): Simplify compile-time tests.
59421         (get_stat_birthtime): Change the API to look like
59422         get_stat_mtime etc., except return a negative tv_nsec on error.
59423         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59424         Don't check for "spare" fields.
59425         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59426         or for struct stat.st_birthtime, as these tests aren't used.
59427         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59428
59429 2007-03-27  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/stat-time.h: Include <sys/stat.h>.
59432
59433 2007-03-27  James Youngman  <jay@gnu.org>
59434
59435         * lib/stat-time.h (get_stat_birthtime): New function for
59436           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59437         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59438           and its variants.
59439         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59440         * modules/stat-time-test: New file.
59441         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59442
59443 2007-03-26  Bruno Haible  <bruno@clisp.org>
59444
59445         Better support of signalling NaNs.
59446         * lib/atanl.c: Include isnanl.h.
59447         (atanl): Perform test for NaN at the beginning of the function and
59448         through a call to isnanl.
59449         * lib/cosl.c: Include isnanl.h.
59450         (cosl): Perform test for NaN at the beginning of the function and
59451         through a call to isnanl.
59452         * lib/ldexpl.c: Include isnanl.h.
59453         (ldexpl): Perform test for NaN through a call to isnanl.
59454         * lib/logl.c: Include isnanl.h.
59455         (logl): Perform test for NaN at the beginning of the function and
59456         through a call to isnanl.
59457         * lib/sinl.c: Include isnanl.h.
59458         (sinl): Perform test for NaN at the beginning of the function and
59459         through a call to isnanl.
59460         * lib/sqrtl.c: Include isnanl.h.
59461         (sqrtl): Perform test for NaN at the beginning of the function and
59462         through a call to isnanl.
59463         * lib/tanl.c: Include isnanl.h.
59464         (tanl): Perform test for NaN at the beginning of the function and
59465         through a call to isnanl.
59466         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59467         * modules/mathl (Depends-on): Add isnanl.
59468
59469 2007-03-26  Eric Blake  <ebb9@byu.net>
59470
59471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59472         regression in logic sense of previous patch.
59473
59474 2007-03-26  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59477         unportable shell command "if ! ...".
59478         Reported by Ralf Wildenhues.
59479
59480 2007-03-25  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59483         <sysexits.h> file, and only add EX_CONFIG.
59484         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59485         absolute file name and whether it is sufficient. Substitute also
59486         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59487         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59488         ABSOLUTE_SYSEXITS_H into sysexits.h.
59489
59490 2007-03-25  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59493         hints is NULL.
59494
59495 2007-03-25  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59498         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59499
59500 2007-03-25  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/vasnprintf.c: Include langinfo.h.
59503         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59504         multithread-safe.
59505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59514         Reported by Simon Josefsson.
59515
59516 2007-03-25  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59519         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59520         * modules/vasnprintf (Depends-on): Add stdint.
59521
59522 2007-03-25  Bruno Haible  <bruno@clisp.org>
59523
59524         * modules/fpieee: New file.
59525         * m4/fpieee.m4: New file.
59526         * modules/isnan-nolibm (Depends-on): Add fpieee.
59527         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59528         * modules/isnanl (Depends-on): Add fpieee.
59529
59530 2007-03-25  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59533
59534 2007-03-25  Bruno Haible  <bruno@clisp.org>
59535
59536         Avoid test failures on IRIX 6.5.
59537         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59538         (main): Use it.
59539         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59540         macros.
59541         (main): Use them.
59542
59543 2007-03-25  Bruno Haible  <bruno@clisp.org>
59544
59545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59546         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59547         exists but doesn't work.
59548         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59549         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59551         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59552         math.h.
59553
59554 2007-03-25  Bruno Haible  <bruno@clisp.org>
59555
59556         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59557         returns inf. Needed on IRIX 6.5.
59558
59559 2007-03-25  Bruno Haible  <bruno@clisp.org>
59560
59561         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59562         (main): Use isnanl instead of x != x idiom.
59563         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59564
59565         * tests/test-frexp.c: Include isnan.h.
59566         (main): Use isnan instead of x != x idiom.
59567         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59568
59569 2007-03-25  Bruno Haible  <bruno@clisp.org>
59570
59571         * tests/test-frexp.c (NaN): New function/macro.
59572         (main): Use it instead of 0.0 / 0.0.
59573         * tests/test-isnan.c (NaN): New function/macro.
59574         (main): Use it instead of 0.0 / 0.0.
59575         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59576         (test_function): Use it instead of 0.0 / 0.0.
59577         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59578         (test_function): Use it instead of 0.0 / 0.0.
59579         * tests/test-snprintf-posix.h (NaN): New function/macro.
59580         (test_function): Use it instead of 0.0 / 0.0.
59581         * tests/test-sprintf-posix.h (NaN): New function/macro.
59582         (test_function): Use it instead of 0.0 / 0.0.
59583         * tests/test-fprintf-posix.h (NaN): New function/macro.
59584         (test_function): Use it instead of 0.0 / 0.0.
59585         * tests/test-printf-posix.h (NaN): New function/macro.
59586         (test_function): Use it instead of 0.0 / 0.0.
59587
59588         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59589
59590 2007-03-25  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59593
59594 2007-03-25  Bruno Haible  <bruno@clisp.org>
59595
59596         * lib/regexec.c (merge_state_with_log): Make static.
59597
59598 2007-03-25  Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/trigl.c (kernel_rem_pio2): Make static.
59601
59602 2007-03-25  Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/sincosl.c (sincosl_table): Make static.
59605
59606 2007-03-25  Bruno Haible  <bruno@clisp.org>
59607
59608         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59609         if the compiler does not support C99.
59610
59611 2007-03-25  Bruno Haible  <bruno@clisp.org>
59612
59613         * modules/time (Makefile.am): Ensure all rule action lines start with a
59614         tab.
59615
59616 2007-03-24  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/tsearch-tests: New file.
59619         * tests/test-tsearch.sh: New file.
59620         * tests/test-tsearch.c: New file, mostly copied from glibc.
59621
59622         * modules/search-tests: New file.
59623         * tests/test-search.c: New file.
59624
59625         * modules/search: New file.
59626         * lib/search_.h: New file, incorporating lib/tsearch.h.
59627         * m4/search_h.m4: New file.
59628         * lib/tsearch.h: Remove file.
59629         * lib/tsearch.c: Include search.h instead of tsearch.h.
59630         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59631         HAVE_TSEARCH.
59632         * modules/tsearch (Files): Remove lib/tsearch.h.
59633         (Depends-on): Add search.
59634         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59635         (Include): Change tsearch.h into search.h.
59636
59637 2007-03-24  Bruno Haible  <bruno@clisp.org>
59638
59639         * modules/fpucw: New file.
59640         * lib/fpucw.h: New file.
59641         * lib/frexp.c: Include fpucw.h.
59642         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59643         (FUNC): Use them.
59644         * lib/printf-frexp.c: Include fpucw.h.
59645         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59646         (FUNC): Use them.
59647         * lib/vasnprintf.c: Include fpucw.h.
59648         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59649         'long double' calculations.
59650         * tests/test-frexpl.c: Include fpucw.h.
59651         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59652         * tests/test-printf-frexpl.c: Include fpucw.h.
59653         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59654         * modules/frexpl (Depends-on): Add fpucw.
59655         * modules/printf-frexpl (Depends-on): Likewise.
59656         * modules/fprintf-posix (Depends-on): Likewise.
59657         * modules/snprintf-posix (Depends-on): Likewise.
59658         * modules/sprintf-posix (Depends-on): Likewise.
59659         * modules/vasnprintf-posix (Depends-on): Likewise.
59660         * modules/vasprintf-posix (Depends-on): Likewise.
59661         * modules/vfprintf-posix (Depends-on): Likewise.
59662         * modules/vsnprintf-posix (Depends-on): Likewise.
59663         * modules/vsprintf-posix (Depends-on): Likewise.
59664         * modules/frexpl-tests (Depends-on): Likewise.
59665         * modules/printf-frexpl-tests (Depends-on): Likewise.
59666
59667 2007-03-24  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/float+.h: New file.
59670         * lib/isnan.c: Include float+.h.
59671         (SIZE): New macro.
59672         (FUNC): Compare only SIZE bytes of the value.
59673         * lib/vasnprintf.c: Include float+.h.
59674         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59675         SIZEOF_LDBL or SIZEOF_DBL bytes.
59676         * modules/isnan-nolibm (Files): Add lib/float+.h.
59677         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59678         * modules/isnanl (Files): Add lib/float+.h.
59679         * modules/vasnprintf (Files): Add lib/float+.h.
59680
59681 2007-03-24  Bruno Haible  <bruno@clisp.org>
59682
59683         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59684         include isnanl-nolibm.h.
59685
59686 2007-03-24  Bruno Haible  <bruno@clisp.org>
59687
59688         * tests/test-read-file.c (main): Don't produce spurious output for
59689         expected situations. Make the test fail if it encountered unexpected
59690         results.
59691
59692 2007-03-24  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59695         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59696
59697 2007-03-24  Bruno Haible  <bruno@clisp.org>
59698
59699         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59700
59701 2007-03-24  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59704         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59705
59706         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59707         * modules/utf8-ucs4: Turn into a symbolic link to module
59708         unistr/u8-mbtouc.
59709
59710         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59711         utf8-ucs4-unsafe.
59712         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59713         unistr/u8-mbtouc-unsafe.
59714
59715         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59716         * modules/utf16-ucs4: Turn into a symbolic link to module
59717         unistr/u16-mbtouc.
59718
59719         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59720         utf16-ucs4-unsafe.
59721         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59722         unistr/u16-mbtouc-unsafe.
59723
59724         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59725         * modules/ucs4-utf8: Turn into a symbolic link to module
59726         unistr/u8-ubtomb.
59727
59728         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59729         * modules/ucs4-utf16: Turn into a symbolic link to module
59730         unistr/u16-ubtomb.
59731
59732 2007-03-24  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59735         Enable the function only if HAVE_INLINE.
59736         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59737         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59738         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59739         Enable the function only if HAVE_INLINE.
59740         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59741         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59742         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59743         Enable the function only if HAVE_INLINE.
59744         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59745         Enable the function only if HAVE_INLINE.
59746         * modules/utf8-ucs4: Update.
59747         * modules/utf8-ucs4-unsafe: Update.
59748         * modules/utf16-ucs4: Update.
59749         * modules/utf16-ucs4-unsafe: Update.
59750         * modules/ucs4-utf8: Update.
59751         * modules/ucs4-utf16: Update.
59752
59753 2007-03-24  Bruno Haible  <bruno@clisp.org>
59754
59755         * lib/utf8-ucs4.h: Remove file.
59756         * lib/utf8-ucs4-unsafe.h: Remove file.
59757         * lib/utf16-ucs4.h: Remove file.
59758         * lib/utf16-ucs4-unsafe.h: Remove file.
59759         * lib/ucs4-utf8.h: Remove file.
59760         * lib/ucs4-utf16.h: Remove file.
59761         * lib/unistr.h: Include their previous contents.
59762         * m4/utf-ucs4.m4: Remove file.
59763         * m4/ucs4-utf.m4: Remove file.
59764         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59765         (Depends-on): Add unistr/base.
59766         (configure.ac): Remove gl_UTF_UCS4.
59767         (Makefile.am): Update.
59768         (Include): Change to unistr.h.
59769         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59770         (Depends-on): Add unistr/base.
59771         (configure.ac): Remove gl_UTF_UCS4.
59772         (Makefile.am): Update.
59773         (Include): Change to unistr.h.
59774         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59775         (Depends-on): Add unistr/base.
59776         (configure.ac): Remove gl_UTF_UCS4.
59777         (Makefile.am): Update.
59778         (Include): Change to unistr.h.
59779         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59780         (Depends-on): Add unistr/base.
59781         (configure.ac): Remove gl_UTF_UCS4.
59782         (Makefile.am): Update.
59783         (Include): Change to unistr.h.
59784         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59785         (Depends-on): Add unistr/base.
59786         (configure.ac): Remove gl_UCS4_UTF.
59787         (Makefile.am): Update.
59788         (Include): Change to unistr.h.
59789         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59790         (Depends-on): Add unistr/base.
59791         (configure.ac): Remove gl_UCS4_UTF.
59792         (Makefile.am): Update.
59793         (Include): Change to unistr.h.
59794         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59795         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59796         utf8-ucs4-unsafe.h.
59797         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59798         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59799         utf16-ucs4-unsafe.h.
59800         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59801         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59802         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59803         * lib/unistr/u8-strchr.c: Likewise.
59804         * lib/unistr/u8-strrchr.c: Likewise.
59805         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59806         * lib/unistr/u16-strchr.c: Likewise.
59807         * lib/unistr/u16-strrchr.c: Likewise.
59808         * lib/striconveh.c: Update.
59809         * lib/linebreak.c: Update.
59810
59811 2007-03-24  Bruno Haible  <bruno@clisp.org>
59812
59813         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59814         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59815
59816 2007-03-22  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59819
59820 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * MODULES.html.sh (File system functions): New module write-any-file.
59823         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59824         * m4/write-any-file.m4: New files.
59825
59826 2007-03-23  Eric Blake  <ebb9@byu.net>
59827
59828         * gnulib-tool: Rearrange space-tab sequences, since some editors
59829         like to eat them.
59830
59831 2007-03-23  Eric Blake  <ebb9@byu.net>
59832
59833         * lib/version-etc.c (version_etc_va): Update license wording to
59834         be more concise.  Recommended by Richard Stallman.
59835
59836 2007-03-22  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/poll.c (MSG_PEEK): New fallback definition.
59839
59840 2007-03-22  Bruno Haible  <bruno@clisp.org>
59841
59842         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59843         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59844         (main): Update.
59845         Fixes a compilation error on BeOS.
59846
59847 2007-03-22  Bruno Haible  <bruno@clisp.org>
59848
59849         * modules/frexpl-tests: New file.
59850         * tests/test-frexpl.c: New file.
59851
59852         * modules/frexpl: New file.
59853         * m4/frexpl.m4: New file.
59854         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59855         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59857         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59858         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59859         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59860
59861 2007-03-22  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/frexpl.c: Share code with lib/frexp.c.
59864         * modules/mathl (Files): Add lib/frexp.c.
59865         (Depends-on): Add isnanl-nolibm.
59866
59867 2007-03-22  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/printf-frexp (Files): Add m4/frexp.m4.
59870         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59871         only if the found frexp function actually works.
59872
59873 2007-03-22  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/frexp.c: Remove older implementation that uses divisions.
59876
59877 2007-03-21  Bruno Haible  <bruno@clisp.org>
59878
59879         * modules/frexp-tests: New file.
59880         * tests/test-frexp.c: New file.
59881
59882         * modules/frexp: New file.
59883         * lib/frexp.c: New file.
59884         * m4/frexp.m4: New file.
59885         * lib/math_.h (frexp): New declaration.
59886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59887         REPLACE_FREXP.
59888         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59889
59890 2007-03-21  Bruno Haible  <bruno@clisp.org>
59891
59892         * modules/isnanl-tests: New file.
59893         * tests/test-isnanl.c: New file.
59894
59895         * modules/isnanl: New file.
59896         * lib/isnanl.h: New file.
59897         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59898         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59899         gl_FUNC_ISNANL_WORKS.
59900         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59901         New macros.
59902
59903 2007-03-21  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59906         lib/isnanl.h.
59907         (Include): Update.
59908         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59909         * lib/vasnprintf.c: Update.
59910         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59911         tests/test-isnanl.h, remove tests/test-isnanl.c.
59912         (Makefile.am): Update.
59913         * tests/test-isnanl-nolibm.c: New file.
59914         * tests/test-isnanl.h: New file.
59915         * tests/test-isnanl.c: Remove file.
59916
59917 2007-03-21  Jim Meyering  <jim@meyering.net>
59918
59919         When trying to open ".", treat ESTALE like EACCES.
59920         * lib/savewd.c (savewd_save): Resort to forking not just upon
59921         failure with EACCES, but also when errno is ESTALE.
59922
59923 2007-03-20  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59926         Needed on AIX 5.1. Reported by Matthew Woehlke.
59927
59928 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         Suggestions by Bruno Haible:
59931         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59932         our own.
59933         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59934         * modules/acl (Depends-on): Add gettext.
59935
59936 2007-03-19  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/iconvme: Remove file.
59939         * lib/iconvme.h: Remove file.
59940         * lib/iconvme.c: Remove file.
59941         * m4/iconvme.m4: Remove file.
59942
59943 2007-03-19  Bruno Haible  <bruno@clisp.org>
59944
59945         * doc/relocatable-maint.texi: Break long shell script line.
59946         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59947
59948 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59949
59950         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59951         handle file_has_acl.
59952         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59953         * lib/acl.c: Move header inclusions and related macro defns into
59954         lib/acl-internal.h.
59955         (S_ISLNK): Remove defn, since that's now done for us.
59956         (file_has_acl): Move to lib/file-has-acl.c.
59957         Call acl_trivial if available.  This is the crucial part of the fix.
59958         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59959         shared within the library.  Rewrite a bit, partly to make it compatible
59960         with the GNU coding style.
59961         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59962         Remove unnecessary double-quotes.
59963         Don't test for acl_to_text; the build will catch that.
59964         Replace acl_entries if it doesn't exist and it is needed.
59965         Check for -lsec and acl_trivial (as used on Solaris 10).
59966         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59967         lib/file-has-acl.c.
59968         (Depends-on): Add sys_stat, for S_ISLNK.
59969
59970 2007-03-19  Ben Pfaff  <blp@gnu.org>
59971
59972         * doc/gnulib.texi: Fix typos.
59973         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59974
59975 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59976
59977         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59978         If size is zero here, buf must be zero.
59979
59980 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59981
59982         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59983         <bruno@clisp.org>.
59984
59985 2007-03-18  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59988         Suggested by Eric Blake.
59989
59990 2007-03-18  Ben Pfaff  <blp@gnu.org>
59991
59992         * doc/relocatable.texi: Recommend using as prefix a directory
59993         that does not exist and will never be created.  Based on
59994         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59995         and others.
59996
59997 2007-03-17  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/fchownat.c: Include lchown.h.
60000
60001 2007-03-17  Bruno Haible  <bruno@clisp.org>
60002
60003         Fix endless loop when the given allocated size was > INT_MAX.
60004         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60005         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60006         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60007         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60008         * lib/sprintf.c (sprintf): Likewise.
60009
60010 2007-03-17  Bruno Haible  <bruno@clisp.org>
60011
60012         * tests/test-argp-2.sh (func_compare): Output a context diff.
60013
60014 2007-03-17  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60017         locale's decimal-point character.
60018
60019 2007-03-17  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60022         before comparing it. Needed because on some platforms (e.g. x86) a
60023         'long double' occupies less bytes than sizeof (long double).
60024
60025 2007-03-17  Bruno Haible  <bruno@clisp.org>
60026
60027         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60028         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60029         * tests/test-getaddrinfo.c (simple): Likewise.
60030         * tests/test-read-file.c (main): Likewise.
60031
60032 2007-03-17  Bruno Haible  <bruno@clisp.org>
60033
60034         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60035
60036 2007-03-17  Bruno Haible  <bruno@clisp.org>
60037
60038         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60039         unused variable.
60040
60041 2007-03-17  Bruno Haible  <bruno@clisp.org>
60042
60043         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60044         * tests/test-c-strncasecmp.c: Likewise.
60045
60046 2007-03-17  Bruno Haible  <bruno@clisp.org>
60047
60048         * modules/stdlib (Depends-on): Add unistd.
60049         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60050         Needed for MacOS X 10.3.
60051
60052 2007-03-17  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60055
60056 2007-03-17  Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60059
60060 2007-03-17  Bruno Haible  <bruno@clisp.org>
60061
60062         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60063         to reflect files copied from gnulib (with or without modifications).
60064         Suggested by Jim Meyering.
60065
60066 2007-03-17  Eric Blake  <ebb9@byu.net>
60067
60068         * NEWS: Document stdlib change from 2007-02-18.
60069
60070 2007-03-17  Jim Meyering  <jim@meyering.net>
60071
60072         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60073         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60074         someone uses a name containing shell meta-characters.
60075         Reported by Alfred M. Szmidt.
60076
60077         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60078
60079 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60080
60081         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60082         and copy gettext configuration files only if configure.ac contains
60083         a use of AM_GNU_GETTEXT_VERSION.
60084
60085 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60086
60087         * build-aux/bootstrap (gnulib_name): New variable.
60088         (gnulib_tool_options): Use it.
60089
60090 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60091
60092         * tests/test-des.c: Use new namespace.
60093
60094 2007-03-15  Bruno Haible  <bruno@clisp.org>
60095
60096         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60097         Reported by James Youngman <jay@gnu.org>.
60098
60099 2007-03-15  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60102         declared prototype. Needed with cc on OSF/1 5.1.
60103
60104 2007-03-15  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60107         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60108         (struct gl_list_implementation): Add dispose_fn argument to the
60109         'create_empty', 'create' methods.
60110         (struct gl_list_impl_base): Add field 'dispose_fn'.
60111         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60112         argument.
60113         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60114         dispose_fn argument.
60115         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60116         dispose_fn on the dropped values.
60117         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60118         dispose_fn argument.
60119         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60120         dropped values.
60121         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60122         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60123         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60124         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60125         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60126         argument.
60127         (gl_tree_list_free): Call dispose_fn on the dropped values.
60128         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60129         the dropped values.
60130         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60131         Add dispose_fn argument.
60132         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60133         Call dispose_fn on the dropped values.
60134         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60135         Add dispose_fn argument.
60136         (gl_sublist_create): Initialize the 'dispose_fn' field.
60137         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60138         * tests/test-array_list.c (main): Update.
60139         * tests/test-carray_list.c (main): Update.
60140         * tests/test-avltree_list.c (main): Update.
60141         * tests/test-rbtree_list.c (main): Update.
60142         * tests/test-avltreehash_list.c (main): Update.
60143         * tests/test-rbtreehash_list.c (main): Update.
60144         * tests/test-linked_list.c (main): Update.
60145         * tests/test-linkedhash_list.c (main): Update.
60146         * tests/test-array_oset.c (main): Update.
60147
60148 2007-03-15  Bruno Haible  <bruno@clisp.org>
60149
60150         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60151         (gl_oset_create_empty): Add dispose_fn argument.
60152         (struct gl_oset_implementation): Add dispose_fn argument to
60153         'create_empty' method.
60154         (struct gl_oset_impl_base): Add dispose_fn field.
60155         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60156         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60157         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60158         values.
60159         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60160         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60161         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60162         dropped value.
60163         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60164         dropped value.
60165         * tests/test-array_oset.c (main): Update.
60166         * tests/test-avltree_oset.c (main): Update.
60167         * tests/test-rbtree_oset.c (main): Update.
60168         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60169
60170 2007-03-13  Bruno Haible  <bruno@clisp.org>
60171
60172         * tests/test-stdbool.c (i): Update after last patch.
60173
60174 2007-03-12  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60177         the iswprint macro. Needed on Solaris 2.5.1.
60178
60179 2007-03-12  Bruno Haible  <bruno@clisp.org>
60180
60181         * tests/test-printf-frexp.c (main): Declare x as volatile.
60182
60183 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60184
60185         * doc/gnulib.texi (Build robot for gnulib): New section.
60186
60187 2007-03-12  Jim Meyering  <jim@meyering.net>
60188
60189         * build-aux/bootstrap: New file.
60190         * build-aux/bootstrap.conf: New file, from coreutils.
60191
60192 2007-03-11  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60195
60196 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60197
60198         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60199         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60200         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60201
60202 2007-03-11  Bruno Haible  <bruno@clisp.org>
60203
60204         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60205         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60206
60207 2007-03-11  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60210         formula. Needed for SunPRO C 5.0.
60211
60212 2007-03-11  Bruno Haible  <bruno@clisp.org>
60213
60214         * modules/long-options (Depends-on): Add getopt.
60215
60216 2007-03-11  Bruno Haible  <bruno@clisp.org>
60217
60218         * modules/modechange (Depends-on): Add stdbool.
60219
60220 2007-03-11  Bruno Haible  <bruno@clisp.org>
60221
60222         * modules/i-ring (Depends-on): Add stdbool.
60223
60224 2007-03-11  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/gc-des (Depends-on): Add stdbool.
60227
60228 2007-03-11  Bruno Haible  <bruno@clisp.org>
60229
60230         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60231
60232 2007-03-11  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60235
60236 2007-03-11  Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60239
60240 2007-03-11  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/vasnprintf.c (sprintf): Undefine.
60243
60244 2007-03-11  Bruno Haible  <bruno@clisp.org>
60245
60246         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60247         initializers in SunPRO C and Compaq C compilers.
60248
60249 2007-03-11  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60252         decrementing code ANSI C compliant.
60253
60254 2007-03-11  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60257         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60258
60259 2007-03-11  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60262         <stdbool.h> substitute doesn't pass.
60263
60264 2007-03-11  Bruno Haible  <bruno@clisp.org>
60265
60266         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60267
60268 2007-03-11  Bruno Haible  <bruno@clisp.org>
60269
60270         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60271         script, for submission to autobuild.josefsson.org.
60272
60273 2007-03-10  Bruno Haible  <bruno@clisp.org>
60274
60275         * modules/canonicalize-lgpl-tests: New file.
60276         * tests/test-canonicalize-lgpl.sh: New file.
60277         * tests/test-canonicalize-lgpl.c: New file.
60278
60279         * modules/c-strcase-tests: New file.
60280         * tests/test-c-strcase.sh: New file.
60281         * tests/test-c-strcasecmp.c: New file.
60282         * tests/test-c-strncasecmp.c: New file.
60283
60284         * modules/atexit-tests: New file.
60285         * tests/test-atexit.sh: New file.
60286         * tests/test-atexit.c: New file.
60287
60288 2007-03-10  Bruno Haible  <bruno@clisp.org>
60289
60290         * tests/test-binary-io.sh: Use temporary filenames that are not so
60291         likely to clash with those of other tests (in a parallel make).
60292         * tests/test-binary-io.c: Likewise.
60293
60294 2007-03-10  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60297         fallback; use #error instead.
60298         Suggested by Simon Josefsson.
60299
60300 2007-03-10  Bruno Haible  <bruno@clisp.org>
60301
60302         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60303         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60304         first and the last.
60305
60306 2007-03-10  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60309
60310 2007-03-10  Bruno Haible  <bruno@clisp.org>
60311
60312         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60313         "make distcheck".
60314         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60315         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60316         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60317
60318 2007-03-10  Bruno Haible  <bruno@clisp.org>
60319
60320         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60321         variable.
60322         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60323         variable.
60324
60325 2007-03-09  Eric Blake  <ebb9@byu.net>
60326         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60327
60328         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60329         types are not being provided by gnulib.
60330         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60331         types are supported.
60332
60333 2007-03-10  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/stdio_.h (__attribute__): New macro.
60336         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60337         vsprintf): Specify __attribute__ __format__ for GCC.
60338         Suggested by Eric Blake.
60339
60340 2007-03-09  Bruno Haible  <bruno@clisp.org>
60341
60342         * modules/printf-posix-tests: New file.
60343         * tests/test-printf-posix.sh: New file.
60344         * tests/test-printf-posix.c: New file.
60345
60346         * modules/printf-posix: New file.
60347         * lib/printf.c: New file.
60348         * m4/printf-posix-rpl.m4: New file.
60349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60350         REPLACE_PRINTF.
60351         * lib/stdio_.h (printf): New declaration.
60352         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60353         ____strfmon____): New macros.
60354         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60355         REPLACE_PRINTF.
60356
60357 2007-03-09  Bruno Haible  <bruno@clisp.org>
60358
60359         * tests/test-vasnprintf-posix2.sh: New file.
60360         * tests/test-vasnprintf-posix2.c: New file.
60361         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60362         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60363         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60364
60365         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60366         a locale dependent decimal point, rather than always '.'.
60367
60368 2007-03-09  Eric Blake  <ebb9@byu.net>
60369
60370         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60371         spite of platforms like Tandem/NSK that define it to -1.
60372
60373 2007-03-08  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/vprintf-posix-tests: New file.
60376         * tests/test-vprintf-posix.sh: New file.
60377         * tests/test-vprintf-posix.c: New file.
60378         * tests/test-printf-posix.h: New file.
60379
60380         * modules/vprintf-posix: New file.
60381         * lib/vprintf.c: New file.
60382         * m4/vprintf-posix.m4: New file.
60383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60384         REPLACE_VPRINTF.
60385         * lib/stdio_.h (vprintf): New declaration.
60386         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60387         REPLACE_VPRINTF.
60388
60389 2007-03-08  Bruno Haible  <bruno@clisp.org>
60390
60391         * modules/fprintf-posix-tests: New file.
60392         * tests/test-fprintf-posix.sh: New file.
60393         * tests/test-fprintf-posix.c: New file.
60394
60395         * modules/fprintf-posix: New file.
60396         * lib/fprintf.c: New file.
60397         * m4/fprintf-posix.m4: New file.
60398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60399         REPLACE_FPRINTF.
60400         * lib/stdio_.h (fprintf): New declaration.
60401         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60402         REPLACE_FPRINTF.
60403
60404 2007-03-08  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/vfprintf-posix-tests: New file.
60407         * tests/test-vfprintf-posix.sh: New file.
60408         * tests/test-vfprintf-posix.c: New file.
60409         * tests/test-fprintf-posix.h: New file.
60410         * tests/test-fprintf-posix.out: New file.
60411
60412         * modules/vfprintf-posix: New file.
60413         * lib/vfprintf.c: New file.
60414         * m4/vfprintf-posix.m4: New file.
60415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60416         REPLACE_VFPRINTF.
60417         * lib/stdio_.h (vfprintf): New declaration.
60418         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60419         REPLACE_VFPRINTF.
60420
60421 2007-03-08  Bruno Haible  <bruno@clisp.org>
60422
60423         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60424
60425 2007-03-08  Bruno Haible  <bruno@clisp.org>
60426
60427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60428         instead of 'expr' invocations.
60429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60434         Suggested by Paul Eggert.
60435
60436 2007-03-08  Bruno Haible  <bruno@clisp.org>
60437
60438         * modules/fseterr-tests: New file.
60439         * tests/test-fseterr.c: New file.
60440
60441         * modules/fseterr: New file.
60442         * lib/fseterr.h: New file.
60443         * lib/fseterr.c: New file.
60444
60445 2007-03-08  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60448         * lib/getopt_.h: Likewise.
60449         * lib/mbswidth.h: Likewise.
60450         * lib/setenv.h: Likewise.
60451         * lib/vasnprintf.h: Likewise.
60452         * lib/vasprintf.h: Likewise.
60453         * lib/verror.h: Likewise.
60454         * lib/xsetenv.h: Likewise.
60455         * lib/xvasprintf.h: Likewise.
60456
60457 2007-03-08  Jim Meyering  <jim@meyering.net>
60458
60459         * users.txt: Add parted.
60460
60461         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60462
60463 2007-03-07  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/printf.m4: Make the shell script snippets copy&pastable.
60466
60467 2007-03-02  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/netinet_in_.h: New file.
60470         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60471         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60472         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60473         (Depends-on): Add absolute-header.
60474         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60475         into netinet/in.h.
60476
60477 2007-03-03  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/sys_select_.h: New file.
60480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60481         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60482         * modules/sys_select (Files): Add lib/sys_select_.h.
60483         (Depends-on): Add absolute-header.
60484         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60485         into sys/select.h.
60486
60487 2007-03-02  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60490         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60491         values.
60492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60493         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60494         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60495         * modules/sys_socket (Depends-on): Add absolute-header.
60496         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60497         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60498         (Include): Remove requirement of inclusion of <sys/types.h>.
60499
60500 2007-03-02  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/byteswap_.h (bswap_32): Fix formula.
60503
60504 2007-03-06  Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/sprintf-posix-tests: New file.
60507         * tests/test-sprintf-posix.c: New file.
60508
60509         * modules/sprintf-posix: New file.
60510         * lib/sprintf.c: New file.
60511         * m4/sprintf-posix.m4: New file.
60512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60513         REPLACE_SPRINTF.
60514         * lib/stdio_.h (sprintf): New declaration.
60515         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60516         REPLACE_SPRINTF.
60517
60518 2007-03-06  Bruno Haible  <bruno@clisp.org>
60519
60520         * modules/vsprintf-posix-tests: New file.
60521         * tests/test-vsprintf-posix.c: New file.
60522         * tests/test-sprintf-posix.h: New file.
60523
60524         * modules/vsprintf-posix: New file.
60525         * lib/vsprintf.c: New file.
60526         * m4/vsprintf-posix.m4: New file.
60527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60528         REPLACE_VSPRINTF.
60529         * lib/stdio_.h (vsprintf): New declaration.
60530         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60531         REPLACE_VSPRINTF.
60532
60533 2007-03-06  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/vsnprintf (Depend-on): Remove minmax.
60536
60537 2007-03-06  Bruno Haible  <bruno@clisp.org>
60538
60539         * modules/snprintf-posix-tests: New file.
60540         * tests/test-snprintf-posix.c: New file.
60541
60542         * modules/snprintf-posix: New file.
60543         * m4/snprintf-posix.m4: New file.
60544         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60545         gl_FUNC_SNPRINTF.
60546         (gl_FUNC_SNPRINTF): Invoke it.
60547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60548         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60549         is set.
60550         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60551
60552 2007-03-06  Bruno Haible  <bruno@clisp.org>
60553
60554         * modules/vsnprintf-posix-tests: New file.
60555         * tests/test-vsnprintf-posix.c: New file.
60556         * tests/test-snprintf-posix.h: New file.
60557
60558         * modules/vsnprintf-posix: New file.
60559         * m4/vsnprintf-posix.m4: New file.
60560         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60561         gl_FUNC_VSNPRINTF.
60562         (gl_FUNC_VSNPRINTF): Invoke it.
60563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60564         * lib/stdio_.h (vsnprintf): Define as a replacement if
60565         REPLACE_VSNPRINTF is set.
60566         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60567
60568 2007-03-06  Bruno Haible  <bruno@clisp.org>
60569
60570         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60571         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60572
60573 2007-03-06  Bruno Haible  <bruno@clisp.org>
60574
60575         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60576         (asinl): Declare also if HAVE_DECL_ASINL is set.
60577         (atanl): Declare also if HAVE_DECL_ATANL is set.
60578         (ceill): Declare also if HAVE_DECL_CEILL is set.
60579         (cosl): Declare also if HAVE_DECL_COSL is set.
60580         (expl): Declare also if HAVE_DECL_EXPL is set.
60581         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60582         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60583         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60584         (logl): Declare also if HAVE_DECL_LOGL is set.
60585         (sinl): Declare also if HAVE_DECL_SINL is set.
60586         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60587         (tanl): Declare also if HAVE_DECL_TANL is set.
60588         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60590         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60591         declaration of frexpl, ldexpl.
60592         * modules/printf-frexpl (Depends-on): Add math.
60593         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60594
60595 2007-03-05  Bruno Haible  <bruno@clisp.org>
60596
60597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60598         frexpl and ldexpl are declared.
60599         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60600
60601 2007-03-05  Bruno Haible  <bruno@clisp.org>
60602
60603         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60604         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60605
60606 2007-03-05  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/stdio_.h: Include <stddef.h>.
60609
60610 2007-03-05  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60613
60614 2007-03-05  Bruno Haible  <bruno@clisp.org>
60615
60616         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60617         NetBSD 4, from Ralf Wildenhues.
60618
60619 2007-03-04  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/vasprintf.h: Update #if logic for the case when the functions
60622         exist but are overridden.
60623
60624 2007-03-04  Bruno Haible  <bruno@clisp.org>
60625
60626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60627         implementations: glibc-2.4 and MacOS X 10.3.
60628         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60629         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60630         * tests/test-vasprintf-posix.c (test_function): Likewise.
60631
60632 2007-03-04  Bruno Haible  <bruno@clisp.org>
60633
60634         * modules/vasprintf-posix-tests: New file.
60635         * tests/test-vasprintf-posix.c: New file.
60636
60637         * modules/vasprintf-posix: New file.
60638         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60639         defined.
60640         * m4/vasprintf-posix.m4: New file.
60641         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60642         gl_FUNC_VASPRINTF.
60643         (gl_FUNC_VASPRINTF): Invoke it.
60644         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60645         here.
60646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60647
60648 2007-03-04  Bruno Haible  <bruno@clisp.org>
60649
60650         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60651         REPLACE_GETTIMEOFDAY.
60652         * modules/sys_time (Makefile.am): Likewise.
60653         * m4/sys_time_h.m4: Likewise.
60654         * m4/gettimeofday.m4: Likewise.
60655
60656 2007-03-04  Bruno Haible  <bruno@clisp.org>
60657
60658         * modules/vasnprintf-posix-tests: New file.
60659         * tests/test-vasnprintf-posix.c: New file.
60660
60661         * modules/vasnprintf-posix: New file.
60662         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60663         printf-frexpl.h.
60664         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60665         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60666         REPLACE_VASNPRINTF is defined.
60667         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60668         gl_FUNC_VASNPRINTF.
60669         (gl_FUNC_VASNPRINTF): Invoke it.
60670         * m4/vasnprintf-posix.m4: New file.
60671         * m4/printf.m4: New file.
60672
60673 2007-03-04  Bruno Haible  <bruno@clisp.org>
60674
60675         Compile progreloc.c only if --enable-relocatable is specified.
60676         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60677         if --enable-relocatable was specified.
60678         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60679         lib_SOURCES.
60680
60681 2007-03-04  Jim Meyering  <jim@meyering.net>
60682
60683         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60684         Use it consistently, rather than enumerating errno constants.
60685
60686 2007-03-04  Bruno Haible  <bruno@clisp.org>
60687
60688         * modules/xvasprintf-tests: New file.
60689         * tests/test-xvasprintf.c: New file.
60690
60691         * modules/vasprintf-tests: New file.
60692         * tests/test-vasprintf.c: New file.
60693
60694         * modules/vasnprintf-tests: New file.
60695         * tests/test-vasnprintf.c: New file.
60696
60697         * modules/vsnprintf-tests: New file.
60698         * tests/test-vsnprintf.c: New file.
60699
60700         * modules/snprintf-tests: New file.
60701         * tests/test-snprintf.c: New file.
60702
60703 2007-03-04  Bruno Haible  <bruno@clisp.org>
60704
60705         Compile relocatable.c only if --enable-relocatable is specified.
60706         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60707         gl_RELOCATABLE_LIBRARY.
60708         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60709         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60710         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60711         gl_RELOCATABLE_LIBRARY.
60712         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60713         (Makefile.am): Remove lib_SOURCES.
60714         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60715         gl_RELOCATABLE_LIBRARY.
60716         (Makefile.am): Remove lib_SOURCES.
60717         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60718         always.
60719         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60720         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60721
60722 2007-03-04  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/argmatch-tests: New file.
60725         * tests/test-argmatch.c: New file.
60726
60727         * tests/test-allocsa.c (main): Halve the number of loop runs.
60728
60729         * modules/alloca-opt-tests: New file.
60730         * tests/test-alloca-opt.c: New file.
60731
60732 2007-03-04  Jim Meyering  <jim@meyering.net>
60733
60734         Work around difference between Linux ACLs and Solaris 10 ZFS.
60735         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60736         for EINVAL.
60737
60738 2007-03-03  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/relocatable-prog (Depends-on): Add back progreloc's
60741         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60742
60743 2007-03-03  Bruno Haible  <bruno@clisp.org>
60744
60745         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60746         * modules/relocatable-lib: New file.
60747
60748 2007-03-03  Bruno Haible  <bruno@clisp.org>
60749
60750         * modules/relocatable-prog: Renamed from modules/relocatable.
60751         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60752
60753 2007-03-03  Bruno Haible  <bruno@clisp.org>
60754
60755         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60756         m4/relocatable-lib.m4.
60757         (Depends-on): Remove 'relocatable'.
60758         (configure.ac): Add gl_RELOCATABLE_NOP.
60759
60760 2007-03-03  Bruno Haible  <bruno@clisp.org>
60761
60762         * modules/relocatable-prog-wrapper: New file.
60763         * modules/relocatable (Depends-on): Add it. Remove all other
60764         dependencies except progname.
60765         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60766
60767         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60768         (gl_FUNC_STRERROR): Nop.
60769         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60770
60771         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60772         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60773
60774         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60775         (gl_FUNC_READLINK): Update.
60776
60777         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60778
60779 2007-03-03  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60782         * modules/xreadlink (Depends-on): Add unistd.
60783         * modules/xreadlink-with-size (Depends-on): Likewise.
60784
60785 2007-03-03  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60788         extracted from gt_FUNC_SETENV.
60789         (gt_FUNC_SETENV): Remove macro.
60790         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60791         remove gt_FUNC_SETENV.
60792
60793 2007-03-03  Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60796         ENABLE_RELOCATABLE here.
60797         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60798
60799 2007-03-03  Bruno Haible  <bruno@clisp.org>
60800
60801         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60802         * tests/test-rbtreehash_list.c: Include progname.h.
60803         (main): Call set_program_name.
60804
60805         * modules/rbtree-oset-tests (Depends-on): Add progname.
60806         * tests/test-rbtree_oset.c: Include progname.h.
60807         (main): Call set_program_name.
60808
60809         * modules/rbtree-list-tests (Depends-on): Add progname.
60810         * tests/test-rbtree_list.c: Include progname.h.
60811         (main): Call set_program_name.
60812
60813         * modules/linked-list-tests (Depends-on): Add progname.
60814         * tests/test-linked_list.c: Include progname.h.
60815         (main): Call set_program_name.
60816
60817 2007-03-03  Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60820         All uses of __restrict changed to _Restrict_.
60821         * lib/glob_.h (__restrict): Remove macro.
60822
60823 2007-03-02  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/gettext (configure.ac): Require gettext infrastructure
60826         from version 0.16.1.
60827
60828 2007-03-02  Bruno Haible  <bruno@clisp.org>
60829
60830         * modules/linkedhash-list-tests (Depends-on): Add progname.
60831         * tests/test-linkedhash_list.c: Include progname.h.
60832         (main): Call set_program_name.
60833
60834         * modules/carray-list-tests (Depends-on): Add progname.
60835         * tests/test-carray_list.c: Include progname.h.
60836         (main): Call set_program_name.
60837
60838         * modules/avltreehash-list-tests (Depends-on): Add progname.
60839         * tests/test-avltreehash_list.c: Include progname.h.
60840         (main): Call set_program_name.
60841
60842         * modules/avltree-oset-tests (Depends-on): Add progname.
60843         * tests/test-avltree_oset.c: Include progname.h.
60844         (main): Call set_program_name.
60845
60846         * modules/avltree-list-tests (Depends-on): Add progname.
60847         * tests/test-avltree_list.c: Include progname.h.
60848         (main): Call set_program_name.
60849
60850         * modules/array-oset-tests (Depends-on): Add progname.
60851         * tests/test-array_oset.c: Include progname.h.
60852         (main): Call set_program_name.
60853
60854         * modules/array-list-tests (Depends-on): Add progname.
60855         * tests/test-array_list.c: Include progname.h.
60856         (main): Call set_program_name.
60857
60858         * modules/argp-tests (Depends-on): Add progname.
60859         * tests/test-argp.c: Include argp.h first. Include progname.h.
60860         (main): Call set_program_name.
60861
60862 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * doc/gnulib-tool.texi (Initial import): Reword description of
60865         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60866         limited effect even if defined after the first system include.
60867
60868 2007-03-01  Bruno Haible  <bruno@clisp.org>
60869
60870         * build-aux/config.libpath: Update to libtool-1.5.22.
60871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60872
60873 2007-03-01  Bruno Haible  <bruno@clisp.org>
60874
60875         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60876         foo_CFLAGS.
60877         Reported by Ralf Wildenhues.
60878
60879 2007-03-01  Bruno Haible  <bruno@clisp.org>
60880
60881         * build-aux/install-reloc: Remove object files left over by some
60882         compilers.
60883         Reported by Ralf Wildenhues.
60884
60885 2007-03-01  Bruno Haible  <bruno@clisp.org>
60886
60887         * build-aux/install-reloc: Break long lines.
60888
60889 2007-03-01  Bruno Haible  <bruno@clisp.org>
60890
60891         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60892         Reported by Ralf Wildenhues.
60893
60894 2007-03-01  Bruno Haible  <bruno@clisp.org>
60895
60896         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60897         include ordering constraints.
60898
60899 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60900
60901         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60903         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60904         as another example.
60905         * lib/time_.h: Fix misspelling.
60906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60907         Require gl_HEADER_TIME_H_DEFAULTS.
60908         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60909         * m4/time_r.m4 (gl_TIME_R): Likewise.
60910         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60911
60912 2007-03-01  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60915         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60916
60917 2007-03-01  Jim Meyering  <jim@meyering.net>
60918
60919         * modules/xreadlink (Maintainer): Add my name.
60920         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60921
60922 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60923             Bruno Haible  <bruno@clisp.org>
60924
60925         * build-aux/install-reloc: Compile also c-ctype.c.
60926         * build-aux/relocatable.sh.in: New file.
60927         * doc/relocatable.texi: New file.
60928         * doc/relocatable-maint.texi: New file.
60929         * doc/gnulib.texi: Include relocatable-maint.texi.
60930         * lib/progreloc.c: Include unistd.h unconditionally.
60931         * lib/relocwrapper.c: Include unistd.h unconditionally.
60932         Include c-ctype.h.
60933         (add_dotbin): Use c_tolower.
60934         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60935         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60936         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60937         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60938         to m4/relocatable-lib.m4.
60939         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60940         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60941         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60942         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60943         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60944         * modules/relocatable: New file.
60945         * modules/relocatable-lib: New file.
60946         * modules/relocatable-script: New file.
60947
60948 2007-02-28  Bruno Haible  <bruno@clisp.org>
60949
60950         Import --enable-relocatable infrastructure.
60951         * build-aux/config.libpath: New file, from GNU gettext.
60952         * build-aux/install-reloc: New file, from GNU gettext.
60953         * build-aux/reloc-ldflags: New file, from GNU gettext.
60954         * lib/relocatable.h: New file, from GNU gettext.
60955         * lib/relocatable.c: New file, from GNU gettext.
60956         * lib/relocwrapper.c: New file, from GNU gettext.
60957         * m4/relocatable.m4: New file, from GNU gettext.
60958
60959 2007-02-28  Bruno Haible  <bruno@clisp.org>
60960
60961         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60962
60963         * modules/xreadlink: New file, from GNU gettext with modifications.
60964         * lib/xreadlink.c: New file, from GNU gettext.
60965         * lib/xreadlink.h: Add comments.
60966         (xreadlink): New declaration.
60967
60968         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60969         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60970         lib/xreadlink-with-size.c.
60971         (configure.ac): Remove gl_XREADLINK invocation.
60972         (Makefile.am): Augment lib_SOURCES.
60973         * m4/xreadlink.m4: Remove file.
60974         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60975         (xreadlink_with_size): Renamed from xreadink.
60976         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60977         * modules/canonicalize (Depends-on): Replace xreadlink with
60978         xreadlink-with-size.
60979         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60980
60981 2007-02-25  Jim Meyering  <jim@meyering.net>
60982
60983         * build-aux/announce-gen: When complaining about excess arguments,
60984         list them.
60985
60986 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * README: Document signed integer overflow situation more
60989         accurately.
60990
60991 2007-02-25  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60994         'a' or 'A' conversion.
60995
60996 2007-02-25  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/filename: Renamed from modules/pathname.
60999         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61000         lib/concatpath.c with lib/concat-filename.c.
61001         (Makefile.am): Update.
61002         (Include): Replace pathname.h with filename.h.
61003         * lib/filename.h: Renamed from lib/pathname.h.
61004         (concatenated_filename): Renamed from concatenated_pathname.
61005         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61006         (concatenated_filename): Renamed from concatenated_pathname.
61007         * lib/findprog.c: Include filename.h instead of pathname.h.
61008         (find_in_path): Update.
61009         * lib/javacomp.c: Include filename.h instead of pathname.h.
61010         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61011         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61012         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61013         is_oldgcj_14_13_usable, is_javac_usable): Update.
61014         * lib/javaexec.c: Include filename.h instead of pathname.h.
61015         (execute_java_class): Update.
61016         * modules/findprog: Update.
61017         * modules/javacomp: Update.
61018         * modules/javaexec: Update.
61019         * MODULES.html.sh (File system functions): Add 'filename', remove
61020         'pathname'.
61021
61022 2007-02-25  Bruno Haible  <bruno@clisp.org>
61023
61024         * modules/printf-frexpl-tests: New file.
61025         * tests/test-printf-frexpl.c: New file.
61026
61027         * modules/printf-frexpl: New file.
61028         * lib/printf-frexpl.h: New file.
61029         * lib/printf-frexpl.c: New file.
61030         * m4/printf-frexpl.m4: New file.
61031
61032 2007-02-25  Bruno Haible  <bruno@clisp.org>
61033
61034         * modules/printf-frexp-tests: New file.
61035         * tests/test-printf-frexp.c: New file.
61036
61037         * modules/printf-frexp: New file.
61038         * lib/printf-frexp.h: New file.
61039         * lib/printf-frexp.c: New file.
61040         * m4/printf-frexp.m4: New file.
61041
61042 2007-02-25  Bruno Haible  <bruno@clisp.org>
61043
61044         Assume automake >= 1.10 for the tests.
61045         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61046         * modules/arctwo-tests: Likewise.
61047         * modules/argp-tests: Likewise.
61048         * modules/avltree-list-tests: Likewise.
61049         * modules/avltree-oset-tests: Likewise.
61050         * modules/avltreehash-list-tests: Likewise.
61051         * modules/carray-list-tests: Likewise.
61052         * modules/crc-tests: Likewise.
61053         * modules/des-tests: Likewise.
61054         * modules/gc-arcfour-tests: Likewise.
61055         * modules/gc-arctwo-tests: Likewise.
61056         * modules/gc-des-tests: Likewise.
61057         * modules/gc-hmac-md5-tests: Likewise.
61058         * modules/gc-hmac-sha1-tests: Likewise.
61059         * modules/gc-md2-tests: Likewise.
61060         * modules/gc-md4-tests: Likewise.
61061         * modules/gc-md5-tests: Likewise.
61062         * modules/gc-pbkdf2-sha1-tests: Likewise.
61063         * modules/gc-rijndael-tests: Likewise.
61064         * modules/gc-sha1-tests: Likewise.
61065         * modules/gc-tests: Likewise.
61066         * modules/getaddrinfo-tests: Likewise.
61067         * modules/hmac-md5-tests: Likewise.
61068         * modules/hmac-sha1-tests: Likewise.
61069         * modules/linked-list-tests: Likewise.
61070         * modules/linkedhash-list-tests: Likewise.
61071         * modules/lock-tests: Likewise.
61072         * modules/md2-tests: Likewise.
61073         * modules/md4-tests: Likewise.
61074         * modules/md5-tests: Likewise.
61075         * modules/rbtree-list-tests: Likewise.
61076         * modules/rbtree-oset-tests: Likewise.
61077         * modules/rbtreehash-list-tests: Likewise.
61078         * modules/read-file-tests: Likewise.
61079         * modules/rijndael-tests: Likewise.
61080         * modules/stdint-tests: Likewise.
61081         * modules/tls-tests: Likewise.
61082
61083 2007-02-24  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61086         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61087         function; instead check whether isnan with a double argument links.
61088         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61089         function; instead check whether isnan with a 'long double' argument
61090         links.
61091         Reported by Eric Blake <ebb9@byu.net>.
61092
61093 2007-02-24  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61096         defined.
61097         * lib/isnanl.c: Remove all code. Just include isnan.c.
61098         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61099
61100 2007-02-25  Jim Meyering  <jim@meyering.net>
61101
61102         Avoid conflicting types for 'unsetenv' on FreeBSD.
61103         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61104         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61105         in stdlib.h.
61106
61107 2007-02-24  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/isnanl-nolibm-tests: New file.
61110         * tests/test-isnanl.c: New file.
61111
61112         * modules/isnanl-nolibm: New file.
61113         * lib/isnanl.h: New file.
61114         * lib/isnanl.c: New file.
61115         * m4/isnanl.m4: New file.
61116
61117 2007-02-24  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/isnan-nolibm-tests: New file.
61120         * tests/test-isnan.c: New file.
61121
61122         * modules/isnan-nolibm: New file.
61123         * lib/isnan.h: New file.
61124         * lib/isnan.c: New file.
61125         * m4/isnan.m4: New file.
61126
61127 2007-02-24  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61130         assume that an exponent fits in 20 bits.
61131
61132 2007-02-24  Jim Meyering  <jim@meyering.net>
61133
61134         * m4/regex.m4: Update the description of the configure-time option,
61135         --without-included-regex, to state accurately what the defaults are,
61136         and perhaps to give people an idea why using this option is risky.
61137
61138 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61139
61140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61141         loops on small arguments.  This attempts to avoid the problem
61142         Bruno Haible reported for AIX 4.3.2 in
61143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61144
61145 2007-02-23  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61148         Needed for help2man.
61149
61150 2007-02-23  Karl Berry  <karl@gnu.org>
61151
61152         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61153         exists, foo.h should be cvs-ignored, not committed.
61154
61155 2007-02-23  Eric Blake  <ebb9@byu.net>
61156
61157         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61158         * lib/stat-time.h (includes): Likewise.
61159         * lib/utimecmp.c (includes): Likewise.
61160         * lib/utimens.h (includes): Likewise.
61161         * lib/getdate.y (includes): Also include "timespec.h" for use
61162         internal to the module.
61163         * modules/utimens (Depends-on): Revert yesterday's patch.
61164         * modules/nanosleep (Depends-on): Add missing dependency.
61165
61166 2007-02-22  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/glob.c: Don't include getlogin_r.h.
61169
61170 2007-02-22  Jim Meyering  <jim@meyering.net>
61171
61172         * modules/utimens (Depends-on): Add timespec, required for
61173         utimens.h's inclusion of timespec.h.
61174
61175 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61178         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61179         Schwab in
61180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61181         I'll try to think of a better way to fix the Solaris problem.
61182
61183         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61184         like glibc; on Solaris 10, it fails with errno == EINVAL.
61185         POSIX says the behavior is unspecified if the first argument is NULL,
61186         so play it safe and never pass NULL to the system getcwd.
61187
61188 2007-02-21  Jim Meyering  <jim@meyering.net>
61189
61190         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61191         of gettimeofday.  It would conflict with the one now always
61192         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61193         an IRIX 6.5 build failure.
61194
61195 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         Minor fixups to port to Solaris 10 with Sun C 5.8.
61198         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61199         * modules/getcwd (Depends-on): Add dirfd.
61200         * lib/putenv.c (putenv): #undef it.
61201         (rpl_putenv): New decl.
61202         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61203
61204 2007-02-20  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/stdio-tests: New file.
61207         * tests/test-stdio.c: New file.
61208
61209         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61210         (Depends-on): Add stdio.
61211         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61212         (Include): Use <stdio.h> instead of vsnprintf.h.
61213         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61214         HAVE_DECL_VSNPRINTF.
61215         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61216
61217         * modules/snprintf (Files): Remove lib/snprintf.h.
61218         (Depends-on): Add stdio.
61219         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61220         (Include): Use <stdio.h> instead of snprintf.h.
61221         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61222         HAVE_DECL_SNPRINTF.
61223         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61224         * lib/getaddrinfo.c: Likewise.
61225
61226         * modules/stdio: New file.
61227         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61228         * lib/snprintf.h: Remove file.
61229         * lib/vsnprintf.h: Remove file.
61230         * lib/.cppi-disable: Remove snprintf.h.
61231         * m4/stdio_h.m4: New file.
61232         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61233
61234 2007-02-20  Jim Meyering  <jim@meyering.net>
61235
61236         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61237         used by e.g., mingw.  From Bruno Haible.
61238
61239 2007-02-19  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61242         warnings.
61243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61244
61245 2007-02-19  Bruno Haible  <bruno@clisp.org>
61246
61247         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61248         from mingw users.
61249
61250 2007-02-19  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61253         warnings.
61254         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61255
61256 2007-02-19  Jim Meyering  <jim@meyering.net>
61257
61258         Don't use FD after a successful "fdopendir (fd)".
61259         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61260         Reset it by calling dirfd on the just-obtained DIR*.
61261
61262         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61263         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61264
61265 2007-02-18  Bruno Haible  <bruno@clisp.org>
61266
61267         * lib/readlink.c: Include <unistd.h>.
61268         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61269         HAVE_READLINK.
61270         * modules/readlink (Depends-on): Add unistd.
61271         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61272         (Include): Add <unistd.h>.
61273
61274         * lib/getlogin_r.h: Remove file.
61275         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61276         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61277         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61278         HAVE_DECL_GETLOGIN_R.
61279         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61280         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61281         (Include): Use <unistd.h> instead of getlogin_r.h.
61282
61283         * lib/getcwd.h: Remove file.
61284         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61285         * lib/xgetcwd.c: Likewise.
61286         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61287         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61288         * modules/getcwd (Files): Remove lib/getcwd.h.
61289         (Depends-on): Add unistd.
61290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61291         (Include): Use <unistd.h> instad of getcwd.h.
61292
61293         * lib/ftruncate.c: Include <unistd.h> first.
61294         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61295         Set HAVE_FTRUNCATE.
61296         * modules/ftruncate (Depends-on): Add unistd.
61297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61298
61299         * lib/fchdir.c: Include <unistd.h> first.
61300         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61302         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61303         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61304         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61305
61306         * lib/dup2.c: Include <unistd.h> first.
61307         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61308         HAVE_DUP2.
61309         * modules/dup2 (Depends-on): Add unistd.
61310         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61311
61312         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61313         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61314         REPLACE_CHOWN. Don't define chown as a macro here.
61315         * modules/chown (Depends-on): Add unistd.
61316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61317
61318         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61319         Add definition for GL_LINK_WARNING.
61320         (chown, dup2): New declarations.
61321         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61322         link warning.
61323         (ftruncate): New declaration.
61324         (getcwd): New declaration, taken from old getcwd.h.
61325         (getlogin_r): New declaration, taken from old getlogin_r.h.
61326         (readlink): New declaration.
61327         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61328         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61329         (gl_PREREQ_UNISTD): Remove macro.
61330         (gl_UNISTD_MODULE_INDICATOR): New macro.
61331         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61332         many new variables. Don't set UNISTD_H.
61333         * modules/unistd (Description): Change.
61334         (Depends-on): Add link-warning.
61335         (configure.ac): Update.
61336         (Makefile.am): Create unistd.h always. Substitute many new variables
61337         into it.
61338
61339 2007-02-18  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61342         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61343         HAVE_GETSUBOPT.
61344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61345         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61346         * lib/getsubopt.h: Remove file.
61347         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61348         (Depends-on): Add stdlib.
61349         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61350         (Includes): Use <stdlib.h> instead of getsubopt.h.
61351         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61352         Set HAVE_GETSUBOPT.
61353         * lib/getsubopt.c: Don't include getsubopt.h.
61354
61355 2007-02-18  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/fchdir (Depends-on): Add dup2.
61358
61359 2007-02-18  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/stdlib_.h: Handle glibc's special invocation convention
61362         specially.
61363
61364 2007-02-18  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/stdlib-tests: New file.
61367         * tests/test-stdlib.c: New file.
61368
61369         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61370         (Depends-on): Add stdlib.
61371         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61372         (Includes): Use <stdlib.h> instead of mkstemp.h.
61373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61374         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61375         * lib/mkstemp.c: Don't include mkstemp.h.
61376         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61377         * lib/stdlib--.h: Don't include mkstemp.h.
61378
61379         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61380         (Depends-on): Add stdlib.
61381         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61382         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61383         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61384         HAVE_MKDTEMP.
61385         * lib/mkdtemp.c: Don't include mkdtemp.h.
61386         * lib/clean-temp.c: Don't include mkdtemp.h.
61387
61388         * modules/exit (Files): Remove lib/exit.h.
61389         (Depends-on): Add stdlib.
61390         (Makefile.am): Remove lib_SOURCES.
61391         (Include): Use <stdlib.h> instead of exit.h.
61392         * lib/argmatch.c: Don't include exit.h.
61393         * lib/execute.c: Likewise.
61394         * lib/pagealign_alloc.c: Likewise.
61395         * lib/pipe.c: Likewise.
61396         * lib/wait-process.c: Likewise.
61397         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61398         * lib/exitfail.c: Likewise.
61399         * lib/savewd.c: Likewise.
61400         * lib/xsetenv.c: Likewise.
61401
61402         * modules/stdlib: New file.
61403         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61404         and extra comments about mkstemp().
61405         * lib/exit.h: Remove file.
61406         * lib/mkdtemp.h: Remove file.
61407         * lib/mkstemp.h: Remove file.
61408         * m4/stdlib_h.m4: New file.
61409         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61410
61411 2007-02-18  Bruno Haible  <bruno@clisp.org>
61412
61413         * modules/math-tests: New file.
61414         * tests/test-math.c: New file.
61415
61416         * modules/math: New file.
61417         * modules/mathl (Files): Remove lib/mathl.h.
61418         (Depends-on): Add math.
61419         (Makefile.am): Don't mention mathl.h.
61420         (Include): Use <math.h> instead of mathl.h.
61421         * lib/math_.h: New file.
61422         * lib/mathl.h: Remove file.
61423         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61424         mathl.h.
61425         * lib/asinl.c: Likewise.
61426         * lib/atanl.c: Likewise.
61427         * lib/ceill.c: Likewise.
61428         * lib/cosl.c: Likewise.
61429         * lib/expl.c: Likewise.
61430         * lib/floorl.c: Likewise.
61431         * lib/frexpl.c: Likewise.
61432         * lib/ldexpl.c: Likewise.
61433         * lib/logl.c: Likewise.
61434         * lib/sincosl.c: Likewise.
61435         * lib/sinl.c: Likewise.
61436         * lib/sqrtl.c: Likewise.
61437         * lib/tanl.c: Likewise.
61438         * lib/trigl.c: Likewise.
61439         * m4/math_h.m4: New file.
61440         * MODULES.html.sh (Mathematics): Add math.
61441
61442 2007-02-17  Bruno Haible  <bruno@clisp.org>
61443
61444         * modules/wctype-tests: New file.
61445         * tests/test-wctype.c: New file.
61446
61447         * modules/wchar-tests: New file.
61448         * tests/test-wchar.c: New file.
61449
61450         * modules/unistd-tests: New file.
61451         * tests/test-unistd.c: New file.
61452
61453         * modules/time-tests: New file.
61454         * tests/test-time.c: New file.
61455
61456         * modules/sysexits-tests: New file.
61457         * tests/test-sysexits.c: New file.
61458
61459         * modules/sys_time-tests: New file.
61460         * tests/test-sys_time.c: New file.
61461
61462         * modules/sys_stat-tests: New file.
61463         * tests/test-sys_stat.c: New file.
61464
61465         * modules/sys_socket-tests: New file.
61466         * tests/test-sys_socket.c: New file.
61467
61468         * modules/sys_select-tests: New file.
61469         * tests/test-sys_select.c: New file.
61470
61471         * modules/string-tests: New file.
61472         * tests/test-string.c: New file.
61473
61474         * modules/stdbool-tests: New file.
61475         * tests/test-stdbool.c: New file.
61476
61477         * modules/netinet_in-tests: New file.
61478         * tests/test-netinet_in.c: New file.
61479
61480         * modules/inttypes-tests: New file.
61481         * tests/test-inttypes.c: New file.
61482
61483         * modules/fcntl-tests: New file.
61484         * tests/test-fcntl.c: New file.
61485
61486         * modules/byteswap-tests: New file.
61487         * tests/test-byteswap.c: New file.
61488
61489         * modules/arpa_inet-tests: New file.
61490         * tests/test-arpa_inet.c: New file.
61491
61492 2007-02-17  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61495         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61496         if the corresponding module is not enabled. Emit link warnings if
61497         the function is used nevertheless.
61498         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61499         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61500         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61501         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61502         * modules/inttypes (Depends-on): Add link-warning.
61503         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61504         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61505         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61506         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61507         * modules/imaxdiv (configure.ac): Likewise.
61508         * modules/strtoimax (configure.ac): Likewise.
61509         * modules/strtoumax (configure.ac): Likewise.
61510
61511 2007-02-17  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61514         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61515         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61516         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61517
61518 2007-02-17  Bruno Haible  <bruno@clisp.org>
61519
61520         * modules/link-warning: New file.
61521         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61522         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61523         * modules/string (Depends-on): Add link-warning.
61524         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61525         string.h.
61526         * MODULES.html.sh (Support for building libraries and executables): Add
61527         link-warning.
61528
61529 2007-02-17  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61532         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61533         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61534         long lines.
61535
61536 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61537             Bruno Haible  <bruno@clisp.org>
61538
61539         * modules/tmpfile: New file.
61540         * lib/tmpfile.c: New file.
61541         * m4/tmpfile.m4: New file.
61542         * MODULES.html.sh (func_all_modules): New section "Input/output".
61543
61544 2007-02-15  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61547         (supports_delete_on_close): New function.
61548         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61549
61550 2007-02-14  Bruno Haible  <bruno@clisp.org>
61551
61552         * modules/mbspcasecmp-tests: New file.
61553         * tests/test-mbspcasecmp.sh: New file.
61554         * tests/test-mbspcasecmp.c: New file.
61555
61556         New module mbspcasecmp.
61557         * modules/mbspcasecmp: New file.
61558         * lib/mbspcasecmp.c: New file.
61559         * lib/string_.h (strncasecmp): Change warning message.
61560         (mbspcasecmp): New declaration.
61561         * m4/mbspcasecmp.m4: New file.
61562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61563         GNULIB_MBSPCASECMP.
61564         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61565         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61566
61567 2007-02-14  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/mbsncasecmp-tests: New file.
61570         * tests/test-mbsncasecmp.sh: New file.
61571         * tests/test-mbsncasecmp.c: New file.
61572
61573         New module mbsncasecmp.
61574         * modules/mbsncasecmp: New file.
61575         * lib/mbsncasecmp.c: New file.
61576         * lib/string_.h (mbsncasecmp): New declaration.
61577         * m4/mbsncasecmp.m4: New file.
61578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61579         GNULIB_MBSNCASECMP.
61580         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61581         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61582
61583 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61586         Verify that it doesn't overlap with our flags.
61587         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61588         do not have the desired effect in multibyte locales; instead, use
61589         mbscasecmp.
61590         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61591         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61592         we don't require GNU fnmatch ourselves (if our users require it, they
61593         should do so explicitly).
61594
61595         Fix regex code so it doesn't rely on strcasecmp.
61596         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61597         Otherwise, include gnulib's langinfo.h.
61598         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61599         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61600         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61601         * modules/regex (FILES): Remove m4/codeset.m4.
61602         (Depends-on): Add localcharset.  Remove strcase.
61603
61604 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61605
61606         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61607         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61608
61609 2007-02-13  Bruno Haible  <bruno@clisp.org>
61610
61611         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61613
61614 2007-02-12  Bruno Haible  <bruno@clisp.org>
61615
61616         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61617         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61618         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61619         time warning rather than a link error.
61620
61621 2007-02-12  Bruno Haible  <bruno@clisp.org>
61622
61623         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61624         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61626
61627 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61630         args, not 2.
61631
61632 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         New module 'time', so that apps can include <time.h> as per
61635         POSIX and GNU instead of separate include files like time_r.h
61636         and timegm.h.  This implementation tries out a simpler approach
61637         for replacing decls in standard include files (as compared to
61638         the string module), somewhat as an experiment.
61639
61640         * config/srclist.txt: Comment out mktime.c for now.
61641         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61642         since it doesn't apply any more.  Use generic wording instead.
61643         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61644         'time'.
61645         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61646         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61647         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61648         Don't include <sys/types.h>; no longer needed since we assume C89.
61649         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61650         * lib/strftime.c: Likewise.
61651         * lib/time_r.c: Likewise.
61652         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61653         * lib/nanosleep.c: Include <time.h> first, to check interface.
61654         * lib/strptime.c: Likewise.
61655         * lib/time_r.c: Likewise.
61656         * lib/timegm.c: Likewise.
61657         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61658         needed.
61659         * lib/timegm.c: Don't include timegm.h; no longer needed.
61660         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61661         time.h now handles any problems in that area.
61662         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61663         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61664         that time.h defines struct timespec.
61665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61666         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61667         handles that.
61668         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61669         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61670         needed.  Set REPLACE_LOCALTIME.
61671         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61672         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61673         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61674         nanosleep; time_h.m4 now does that.  Don't require
61675         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61676         module handles this now.
61677         * modules/getdate (Depends-on): Remove timespec.  Add time.
61678         * modules/nanosleep (Depends-on): Likewise.
61679         * modules/stat-time (Depends-on): Likewise.
61680         * modules/nanosleep (Include): Include time.h, not timespec.h.
61681         * modules/strptime (Files): Remove lib/strptime.h.
61682         (Depends-on): Add extensions, time.
61683         (Include): Include time.h, not strptime.h.
61684         * modules/time_r (Files): Remove lib/time_r.h.
61685         (Depends-on): Add time.
61686         (Include): Include time.h, not time_r.h.
61687         * modules/timegm: Likewise.
61688         * modules/timespec (Description): Now does timespec-related decls
61689         of our own, instead of struct timespec itself.
61690         (Depends-on): Add time; remove extensions.
61691         (Maintainer): Add self.
61692         * modules/utimecmp (Depends-on): Add time; remove timespec.
61693         * modules/utimens (Depends-on): Likewise.
61694         * modules/xnanosleep (Depends-on): Likewise.
61695
61696 2007-02-11  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/c-strstr.c: Include allocsa.h.
61699         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61700         * lib/c-strcasestr.c: Include allocsa.h.
61701         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61702         * lib/strcasestr.c: Include allocsa.h.
61703         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61704         * lib/mbsstr.c: Include allocsa.h.
61705         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61706         allocsa/freesa instead of malloc/free.
61707         * lib/mbscasestr.c: Include allocsa.h.
61708         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61709         allocsa/freesa instead of malloc/free.
61710         * modules/c-strstr (Depends-on): Add allocsa.
61711         * modules/c-strcasestr (Depends-on): Likewise.
61712         * modules/strcasestr (Depends-on): Likewise.
61713         * modules/mbsstr (Depends-on): Likewise.
61714         * modules/mbscasestr (Depends-on): Likewise.
61715
61716 2007-02-11  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61719
61720         * modules/mbsspn-tests: New file.
61721         * tests/test-mbsspn.sh: New file.
61722         * tests/test-mbsspn.c: New file.
61723
61724 2007-02-11  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61727
61728         * modules/mbspbrk-tests: New file.
61729         * tests/test-mbspbrk.sh: New file.
61730         * tests/test-mbspbrk.c: New file.
61731
61732 2007-02-11  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61735         unneeded cast.
61736
61737         * modules/mbscspn-tests: New file.
61738         * tests/test-mbscspn.sh: New file.
61739         * tests/test-mbscspn.c: New file.
61740
61741 2007-02-11  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/mbscasecmp-tests: New file.
61744         * tests/test-mbscasecmp.sh: New file.
61745         * tests/test-mbscasecmp.c: New file.
61746
61747 2007-02-11  Bruno Haible  <bruno@clisp.org>
61748
61749         Ensure O(n) worst-case complexity of mbscasestr.
61750         * lib/mbscasestr.c: Include stdbool.h.
61751         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61752         functions.
61753         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61754         the bookkeeping indicates that it's worth it.
61755         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61756
61757         * modules/mbscasestr-tests: New file.
61758         * tests/test-mbscasestr1.c: New file.
61759         * tests/test-mbscasestr2.sh: New file.
61760         * tests/test-mbscasestr2.c: New file.
61761         * tests/test-mbscasestr3.sh: New file.
61762         * tests/test-mbscasestr3.c: New file.
61763         * tests/test-mbscasestr4.sh: New file.
61764         * tests/test-mbscasestr4.c: New file.
61765         * m4/locale-tr.m4: New file.
61766
61767 2007-02-11  Bruno Haible  <bruno@clisp.org>
61768
61769         Ensure O(n) worst-case complexity of mbsstr.
61770         * lib/mbsstr.c: Include stdbool.h.
61771         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61772         functions.
61773         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61774         bookkeeping indicates that it's worth it.
61775         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61776
61777         * modules/mbsstr-tests: New file.
61778         * tests/test-mbsstr1.c: New file.
61779         * tests/test-mbsstr2.sh: New file.
61780         * tests/test-mbsstr2.c: New file.
61781         * tests/test-mbsstr3.sh: New file.
61782         * tests/test-mbsstr3.c: New file.
61783         * m4/locale-fr.m4: New file.
61784
61785 2007-02-11  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/mbsrchr.c (mbsrchr): Fix bug.
61788
61789         * modules/mbsrchr-tests: New file.
61790         * tests/test-mbsrchr.sh: New file.
61791         * tests/test-mbsrchr.c: New file.
61792
61793 2007-02-11  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/mbschr.c (mbschr): Fix bug.
61796
61797         * modules/mbschr-tests: New file.
61798         * tests/test-mbschr.sh: New file.
61799         * tests/test-mbschr.c: New file.
61800         * m4/locale-zh.m4: New file.
61801
61802 2007-02-11  Bruno Haible  <bruno@clisp.org>
61803
61804         Support for copying multibyte string iterators.
61805         * lib/mbiter.h: Include <string.h>.
61806         (mbiter_multi_copy): New function.
61807         (mbi_copy): New macro.
61808         * lib/mbuiter.h: Include <string.h>.
61809         (mbuiter_multi_copy): New function.
61810         (mbui_copy): New macro.
61811
61812 2007-02-11  Bruno Haible  <bruno@clisp.org>
61813
61814         New module mbslen.
61815         * modules/mbslen: New file.
61816         * lib/mbslen.c: New file.
61817         * lib/string_.h (mbslen): New declaration.
61818         * m4/mbslen.m4: New file.
61819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61820         GNULIB_MBSLEN.
61821         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61822         * MODULES.html.sh (Internationalization functions): Add mbslen.
61823
61824 2007-02-11  Bruno Haible  <bruno@clisp.org>
61825
61826         Ensure O(n) worst-case complexity of strcasestr substitute.
61827         * lib/strcasestr.c: Include stdbool.h.
61828         (knuth_morris_pratt): New function.
61829         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61830         bookkeeping indicates that it's worth it.
61831         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61832
61833         * modules/strcasestr-tests: New file.
61834         * tests/test-strcasestr.c: New file.
61835
61836 2007-02-11  Bruno Haible  <bruno@clisp.org>
61837
61838         Ensure O(n) worst-case complexity of c_strcasestr.
61839         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61840         (knuth_morris_pratt): New function.
61841         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61842         the bookkeeping indicates that it's worth it.
61843         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61844
61845         * modules/c-strcasestr-tests: New file.
61846         * tests/test-c-strcasestr.c: New file.
61847
61848 2007-02-11  Bruno Haible  <bruno@clisp.org>
61849
61850         Ensure O(n) worst-case complexity of c_strstr.
61851         * lib/c-strstr.c: Include stdbool.h, string.h.
61852         (knuth_morris_pratt): New function.
61853         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61854         bookkeeping indicates that it's worth it.
61855         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61856
61857         * lib/c-strstr.c: Complete rewrite for maintainability.
61858
61859         * modules/c-strstr-tests: New file.
61860         * tests/test-c-strstr.c: New file.
61861
61862 2007-02-11  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61865         5.2.1 and earlier, whereby \055 was treated just like the range
61866         delimiter '-'.
61867         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61868
61869 2007-02-08  Bruno Haible  <bruno@clisp.org>
61870
61871         * modules/regex (Depends-on): Add stdbool.
61872         Reported by Dalibor Topic <robilad@kaffe.org>.
61873
61874 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61877         Prefer returning from main to exiting from it.
61878         Remove unnecessary parens after sizeof.
61879
61880 2007-02-05  Bruno Haible  <bruno@clisp.org>
61881
61882         New module mbssep.
61883         * modules/mbssep: New file.
61884         * lib/mbssep.c: New file.
61885         * lib/string_.h (strsep): Add a conditional link warning.
61886         (mbssep): New declaration.
61887         * m4/mbssep.m4: New file.
61888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61889         GNULIB_MBSSEP.
61890         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61891         * MODULES.html.sh (Internationalization functions): Add mbssep.
61892
61893 2007-02-05  Bruno Haible  <bruno@clisp.org>
61894
61895         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61896         Optimize search in case of 1 delimiter.
61897
61898 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61899
61900         * lib/acl.h: Include sys/types.h before sys/acl.h.
61901
61902 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61903
61904         Merge upstream fix for glibc bugzilla #3957:
61905
61906         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61907
61908         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61909         bit for RE_HAT_LISTS_NOT_NEWLINE.
61910         (build_charclass_op): Remove bogus comment.
61911
61912 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61913
61914         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61915
61916 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61919         * lib/memmem.c [!defined _LIBC]: Include config.h.
61920
61921 2007-02-04  Bruno Haible  <bruno@clisp.org>
61922
61923         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61924         warning message.
61925
61926 2007-02-04  Bruno Haible  <bruno@clisp.org>
61927
61928         New module mbstok_r.
61929         * modules/mbstok_r: New file.
61930         * lib/mbstok_r.c: New file.
61931         * lib/string_.h (strtok_r): Change argument names to match the
61932         comments. Add a conditional link warning.
61933         (mbstok_r): New declaration.
61934         * m4/mbstok_r.m4: New file.
61935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61936         GNULIB_MBSTOK_R.
61937         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61938         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61939
61940 2007-02-04  Bruno Haible  <bruno@clisp.org>
61941
61942         New module mbsspn.
61943         * modules/mbsspn: New file.
61944         * lib/mbsspn.c: New file.
61945         * lib/string_.h (strspn): Add a conditional link warning.
61946         (mbsspn): New declaration.
61947         * m4/mbsspn.m4: New file.
61948         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61949         GNULIB_MBSSPN.
61950         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61951         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61952
61953 2007-02-04  Bruno Haible  <bruno@clisp.org>
61954
61955         New module mbspbrk.
61956         * modules/mbspbrk: New file.
61957         * lib/mbspbrk.c: New file.
61958         * lib/string_.h (strpbrk): Add a conditional link warning.
61959         (mbspbrk): New declaration.
61960         * m4/mbspbrk.m4: New file.
61961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61962         GNULIB_MBSPBRK.
61963         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61964         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61965
61966 2007-02-04  Bruno Haible  <bruno@clisp.org>
61967
61968         New module mbscspn.
61969         * modules/mbscspn: New file.
61970         * lib/mbscspn.c: New file.
61971         * lib/string_.h (strcspn): Add a conditional link warning.
61972         (mbscspn): New declaration.
61973         * m4/mbscspn.m4: New file.
61974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61975         GNULIB_MBSCSPN.
61976         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61977         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61978
61979 2007-02-04  Bruno Haible  <bruno@clisp.org>
61980
61981         New module mbscasestr, reduced goal of strcasestr.
61982         * modules/mbscasestr: New file.
61983         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61984         (mbscasestr): Renamed from strcasestr.
61985         * lib/strcasestr.c: Don't include mbuiter.h.
61986         (strcasestr): Remove support for multibyte locales.
61987         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61988         Change the conditional link warning.
61989         (mbscasestr): New declaration.
61990         * m4/mbscasestr.m4: New file.
61991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61992         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61993         REPLACE_STRCASESTR.
61994         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61996         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61998         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61999         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62000         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62001         (Depends-on): Remove mbuiter.
62002         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62003
62004 2007-02-04  Bruno Haible  <bruno@clisp.org>
62005
62006         Simplify handling of strncasecmp.
62007         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62008         the conditional link warning.
62009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62010         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62011         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62012         * modules/strcase (configure.ac): Don't invoke
62013         gl_STRING_MODULE_INDICATOR.
62014         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62015
62016 2007-02-04  Bruno Haible  <bruno@clisp.org>
62017
62018         New module mbscasecmp, reduced goal of strcasecmp.
62019         * modules/mbscasecmp: New file.
62020         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62021         (mbscasecmp): Renamed from strcasecmp.
62022         * lib/strcasecmp.c: Don't include mbuiter.h.
62023         (strcasecmp): Remove support for multibyte locales.
62024         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62025         Change the conditional link warning.
62026         (mbscasecmp): New declaration.
62027         * m4/mbscasecmp.m4: New file.
62028         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62029         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62030         REPLACE_STRCASECMP.
62031         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62033         GNULIB_MBSCASECMP.
62034         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62035         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62036         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62037         (Depends-on): Remove mbuiter.
62038         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62039
62040 2007-02-04  Bruno Haible  <bruno@clisp.org>
62041
62042         New module mbsstr. Remove module strstr.
62043         * modules/mbsstr: New file.
62044         * modules/strstr: Remove file.
62045         * lib/mbsstr.c: Renamed from lib/strstr.c.
62046         (mbsstr): Renamed from strstr.
62047         * lib/string_.h (strstr): Remove declaration. Change the conditional
62048         link warning.
62049         (mbsstr): New declaration.
62050         * m4/mbsstr.m4: New file.
62051         * m4/strstr.m4: Remove file.
62052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62053         REPLACE_STRSTR.
62054         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62055         Don't initialize GNULIB_STRSTR.
62056         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62057         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62058         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62059         (Support for systems lacking ANSI C 89): Remove strstr.
62060
62061 2007-02-04  Bruno Haible  <bruno@clisp.org>
62062
62063         New module mbsrchr.
62064         * modules/mbsrchr: New file.
62065         * lib/mbsrchr.c: New file.
62066         * lib/string_.h (strrchr): Add a conditional link warning.
62067         (mbsrchr): New declaration.
62068         * m4/mbsrchr.m4: New file.
62069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62070         GNULIB_MBSRCHR.
62071         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62072         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62073
62074 2007-02-04  Bruno Haible  <bruno@clisp.org>
62075
62076         New module mbschr.
62077         * modules/mbschr: New file.
62078         * lib/mbschr.c: New file.
62079         * lib/string_.h (strchr): Add a conditional link warning.
62080         (mbschr): New declaration.
62081         * m4/mbschr.m4: New file.
62082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62083         GNULIB_MBSCHR.
62084         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62085         * MODULES.html.sh (Internationalization functions): Add mbschr.
62086
62087 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62088
62089         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62090
62091         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62092
62093 2007-02-04  Bruno Haible  <bruno@clisp.org>
62094
62095         New module description section 'configure.ac-early'.
62096         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62097         (func_get_autoconf_early_snippet): New function.
62098         (func_import, func_create_testdir): Use it. Remove special cases for
62099         modules 'extensions' and 'lock'.
62100         * modules/extensions (configure.ac-early): Require
62101         gl_USE_SYSTEM_EXTENSIONS.
62102         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62103
62104 2007-02-04  Bruno Haible  <bruno@clisp.org>
62105
62106         Make use of gcj-4.3's -fsource and -ftarget option.
62107         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62108         and if so try the options -fsource and -ftarget.
62109         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62110         source_version, ftarget_option, target_version arguments.
62111         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62112         (is_envjavac_oldgcj_14_14_usable): Renamed from
62113         is_envjavac_gcj_14_14_usable.
62114         (is_envjavac_oldgcj_14_13_usable): Renamed from
62115         is_envjavac_gcj_14_13_usable.
62116         (is_gcj_present): Update.
62117         (is_gcj_43, is_gcj43_usable): New functions.
62118         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62119         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62120         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62121         try the options -fsource and -ftarget.
62122
62123 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62124
62125         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62126         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62127         larger value.
62128
62129 2007-02-03  Jim Meyering  <jim@meyering.net>
62130
62131         Give tools a better chance to allocate space for very large buffers.
62132         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62133
62134         Make pwd and readlink work also when run with an unreadable parent dir
62135         on systems with openat support.
62136         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62137         provided getcwd function, even when we have openat support.
62138         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62139
62140 2007-02-02  Bruno Haible  <bruno@clisp.org>
62141
62142         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62143         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62144         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62145         portability problems if one of these functions is only used on specific
62146         platforms.
62147         Reported by Paul Eggert.
62148
62149 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62152         is causing more trouble than it's curing.
62153         * lib/regex_internal.h (__mempcpy): Remove.
62154         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62155         (and make the code a tad smaller to boot).
62156         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62157
62158 2007-02-02  Jim Meyering  <jim@meyering.net>
62159
62160         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62161         section, not in the Makefile.am: one.
62162
62163 2007-02-02  Eric Blake  <ebb9@byu.net>
62164
62165         * lib/strchrnul.c: Always include config.h first.
62166
62167         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62168         gnulib strstr is not necessary here.
62169
62170 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62171
62172         * m4/socklen.m4: Fix typo.
62173
62174 2007-02-02  Eric Blake  <ebb9@byu.net>
62175
62176         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62177         * modules/netinet_in (Makefile.am): Likewise.
62178
62179 2007-02-01  Bruno Haible  <bruno@clisp.org>
62180
62181         * lib/string_.h (GL_LINK_WARNING): New macro.
62182         (strcasecmp, strstr, strcasestr): If provided by the system,
62183         conditionally define as a macro that leads to a warning instead of to
62184         an error.
62185         (strncasecmp): Conditionally define as a macro that leads to a warning.
62186
62187 2007-02-01  Karl Berry  <karl@gnu.org>
62188
62189         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62190
62191 2007-02-01  Bruno Haible  <bruno@clisp.org>
62192
62193         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62194         renamings.
62195
62196 2007-02-01  Eric Blake  <ebb9@byu.net>
62197
62198         * modules/regex (Depends-on): Revert dependence on mempcpy.
62199         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62200         module's definition of mempcpy.
62201         Reported by Paul Eggert.
62202
62203 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62204
62205         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62206         the symbol XYZ before redefining it.  This fixes a problem with
62207         programs that don't use XYZ, when compiled on systems that define
62208         XYZ to something else.
62209
62210 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62213         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62214         writeable to group or other and (2) is intended to have a special
62215         mode bit that is set or cleared.  In such a case, the directory
62216         should be neither group- nor other-writeable until the special
62217         mode bits are right.
62218
62219 2007-01-31  Eric Blake  <ebb9@byu.net>
62220
62221         * modules/mountlist (Depends-on): Add strstr.
62222
62223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62224         bug.
62225         * modules/string (Makefile.am): Remove redundant replacement.
62226         * modules/regex (Depends-on): Add mempcpy.
62227
62228 2007-01-31  Bruno Haible  <bruno@clisp.org>
62229
62230         New module description field 'Link'.
62231         * gnulib-tool (func_usage): Document --extract-link-directive.
62232         (sed_extract_prog): Recognize 'Link' directive.
62233         (func_get_link_directive): New function.
62234         (func_import): Show summary of link directives.
62235         Handle --extract-link-directive option.
62236         * modules/acl (Link): New section.
62237         * modules/clock-time (Link): New section.
62238         * modules/euidaccess (Link): New section.
62239         * modules/gettext (Link): New section.
62240         * modules/iconv (Link): New section.
62241         * modules/lock (Link): New section.
62242         * modules/nanosleep (Link): New section.
62243         * modules/readline (Link): New section.
62244
62245 2007-01-27  Bruno Haible  <bruno@clisp.org>
62246
62247         Enforce the use of gnulib modules for unportable <string.h> functions.
62248         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62249         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62250         (gl_HEADER_STRING_H_BODY): Require it.
62251         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62252         the symbol XYZ to one that gives a link error.
62253         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62254         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62255         * modules/mempcpy (configure.ac): Likewise.
62256         * modules/memrchr (configure.ac): Likewise.
62257         * modules/stpcpy (configure.ac): Likewise.
62258         * modules/stpncpy (configure.ac): Likewise.
62259         * modules/strcase (configure.ac): Likewise.
62260         * modules/strcasestr (configure.ac): Likewise.
62261         * modules/strchrnul (configure.ac): Likewise.
62262         * modules/strdup (configure.ac): Likewise.
62263         * modules/strndup (configure.ac): Likewise.
62264         * modules/strnlen (configure.ac): Likewise.
62265         * modules/strpbrk (configure.ac): Likewise.
62266         * modules/strsep (configure.ac): Likewise.
62267         * modules/strstr (configure.ac): Likewise.
62268         * modules/strtok_r (configure.ac): Likewise.
62269
62270 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62271
62272         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62273
62274 2007-01-30  Jim Meyering  <jim@meyering.net>
62275
62276         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62277
62278 2007-01-29  Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62281         * lib/execute.c: Likewise.
62282         * lib/pipe.c: Likewise.
62283         * lib/printf-args.h: Likewise.
62284         * lib/printf-args.c: Likewise.
62285         * lib/printf-parse.c: Likewise.
62286         * lib/vasnprintf.c: Likewise.
62287
62288 2007-01-29  Eric Blake  <ebb9@byu.net>
62289
62290         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62291         declaration.
62292
62293 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * lib/strptime.h (strptime): Use 'restrict' for args where
62296         POSIX requires this.
62297         * lib/strptime.c (strptime): Likewise.
62298         Change license notice from LGPL to GPL, since gnulib-tool will
62299         change this as needed.
62300         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62301         defined.
62302         Include "strptime.h" first, to check interface.
62303         Do not #undef _LIBC and _NL_CURRENT.
62304         Do not include <stdlib.h>; no longer needed.
62305         Include "time_r.h" and declare ptime_locale_status
62306         only if _LIBC is not defined.
62307         (__P): Remove unused macro.
62308         (match_string): Bring back glibc version, but use it only if _LIBC
62309         is defined.
62310         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62311         Remove unnecessary assertion and abort() call.
62312         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62313         * m4/strptime.m4: Fix serial number comment.
62314         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62315         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62316         (Depends-on): Add time_r.
62317
62318 2007-01-29  Bruno Haible  <bruno@clisp.org>
62319
62320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62321         strptime.
62322         * modules/strptime (Depends-on): Add stdbool.
62323         * lib/strptime.h: Include <time.h> always. Add comments.
62324
62325 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62326
62327         * modules/strptime: New file.
62328         * lib/strptime.h: New file.
62329         * lib/strptime.c: New file.
62330         * m4/strptime.m4: New file.
62331
62332 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62333
62334         * MODULES.html.sh: New module mpsort.
62335         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62336
62337         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62338         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62339         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62340         All uses changed.
62341         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62342         All uses changed.
62343         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62344         to _Restrict_.
62345         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62346         the parameter matches the prototype.
62347
62348 2007-01-28  Jim Meyering  <jim@meyering.net>
62349
62350         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62351         sys/time.h here, reverting that part of the previous patch:
62352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62353
62354 2007-01-28  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62357         value of $(SYS_TIME_H).
62358         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62359         remove it conditionally, too. [added by Jim Meyering]
62360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62362         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62363         GETTIMEOFDAY_REPLACEMENT to 1.
62364
62365 2007-01-28  Bruno Haible  <bruno@clisp.org>
62366
62367         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62368         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62370         Set UNISTD_H instead of UNISTD_H2.
62371         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62372
62373 2007-01-28  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62376         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62377
62378 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62379
62380         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62381         (func_create_testdir): Ensure C locale for `grep' and `tr'
62382         character ranges.
62383         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62384         ACLOCAL_AMFLAGS parsing state machine.
62385
62386 2007-01-27  Bruno Haible  <bruno@clisp.org>
62387
62388         * modules/unistr/base: Update.
62389
62390 2007-01-27  Bruno Haible  <bruno@clisp.org>
62391
62392         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62393         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62394         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62395         modules/unistr/u32-mbtouc.
62396         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62397         * lib/unistr.h: Update.
62398         * lib/linebreak.c: Update.
62399         * modules/unistr/u32-mbtouc: Renamed from
62400         modules/unistr/u32-mbtouc-safe.
62401         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62402         * lib/unistr.h: Update.
62403         * lib/unistr/u32-to-u8.c: Update.
62404         * lib/unistr/u32-to-u16.c: Update.
62405
62406 2007-01-27  Bruno Haible  <bruno@clisp.org>
62407
62408         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62409         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62410         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62411         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62412         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62413         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62414         modules/unistr/u16-mbtouc.
62415         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62416         * lib/unistr.h: Update.
62417         * lib/linebreak.c: Update.
62418         * modules/linebreak: Update.
62419         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62420         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62421         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62422         * modules/unistr/u16-mbtouc: Renamed from
62423         modules/unistr/u16-mbtouc-safe.
62424         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62425         * lib/unistr.h: Update.
62426         * lib/unistr/u16-to-u8.c: Update.
62427         * modules/unistr/u16-to-u8: Update.
62428         * lib/unistr/u16-to-u32.c: Update.
62429         * modules/unistr/u16-to-u32: Update.
62430
62431 2007-01-27  Bruno Haible  <bruno@clisp.org>
62432
62433         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62434         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62435         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62436         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62437         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62438         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62439         modules/unistr/u8-mbtouc.
62440         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62441         * lib/unistr.h: Update.
62442         * lib/striconveh.c: Update.
62443         * modules/striconveh: Update.
62444         * lib/linebreak.c: Update.
62445         * modules/linebreak: Update.
62446         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62447         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62448         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62449         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62450         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62451         * lib/unistr.h: Update.
62452         * lib/striconveh.c: Update.
62453         * modules/striconveh: Update.
62454         * lib/unistr/u8-to-u16.c: Update.
62455         * modules/unistr/u8-to-u16: Update.
62456         * lib/unistr/u8-to-u32.c: Update.
62457         * modules/unistr/u8-to-u32: Update.
62458
62459 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62460
62461         Sync from Libtool.
62462         * lib/argz.c: Do not include strings.h nor memory.h, include
62463         string.h unconditionally.  Patch by Simon Josefsson.
62464
62465 2007-01-27  Bruno Haible  <bruno@clisp.org>
62466
62467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62468         from gl_HEADER_STRING_H_BODY.
62469         (gl_HEADER_STRING_H_BODY): Require it.
62470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62471         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62472         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62473         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62474         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62475         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62477         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62478         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62479         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62480         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62481         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62482         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62483         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62485
62486 2007-01-27  Bruno Haible  <bruno@clisp.org>
62487
62488         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62489         check_PROGRAMS into noinst_PROGRAMS.
62490         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62491         check_PROGRAMS in this case.
62492         (func_import): Set for_test to false.
62493         (func_create_testdir): Set for_test to true.
62494
62495 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62496             Bruno Haible  <bruno@clisp.org>
62497
62498         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62499         (Depends-on): Add string.
62500         (Includes): Use <string.h> instead of strcasestr.h.
62501         * modules/string (Makefile.am): Also substitute the value of
62502         REPLACE_STRCASESTR.
62503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62504         assume strcasestr is declared in <string.h> not <strings.h>. Also
62505         set REPLACE_STRCASESTR.
62506         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62507         REPLACE_STRCASESTR.
62508         * lib/strcasestr.h: Remove file.
62509         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62510         * lib/string_.h (strcasestr): New declaration.
62511
62512 2007-01-27  Bruno Haible  <bruno@clisp.org>
62513
62514         * lib/string_.h: Use 'extern'.
62515
62516 2007-01-27  Jim Meyering  <jim@meyering.net>
62517
62518         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62519         of set-but-not-used local, "q".
62520
62521         * lib/mempcpy.c: Include <config.h> before <string.h>.
62522         This fixes a compilation error on HP-UX, due to the system's
62523         "restrict"-using mempcpy prototype.
62524
62525 2007-01-26  Bruno Haible  <bruno@clisp.org>
62526
62527         Small optimization.
62528         * lib/javacomp.c: Include c-strstr.h.
62529          (is_envjavac_gcj): Use c_strstr instead of strstr.
62530         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62531
62532 2007-01-26  Bruno Haible  <bruno@clisp.org>
62533
62534         * MODULES.html.sh (Unicode string functions): Add the new modules.
62535
62536         * modules/uniconv/u32-strconv-to-locale: New file.
62537         * lib/uniconv/u32-strconv-to-locale.c: New file.
62538
62539         * modules/uniconv/u16-strconv-to-locale: New file.
62540         * lib/uniconv/u16-strconv-to-locale.c: New file.
62541
62542         * modules/uniconv/u8-strconv-to-locale: New file.
62543         * lib/uniconv/u8-strconv-to-locale.c: New file.
62544
62545         * modules/uniconv/u32-strconv-from-locale: New file.
62546         * lib/uniconv/u32-strconv-from-locale.c: New file.
62547
62548         * modules/uniconv/u16-strconv-from-locale: New file.
62549         * lib/uniconv/u16-strconv-from-locale.c: New file.
62550
62551         * modules/uniconv/u8-strconv-from-locale: New file.
62552         * lib/uniconv/u8-strconv-from-locale.c: New file.
62553
62554         * modules/uniconv/u32-strconv-to-enc: New file.
62555         * lib/uniconv/u32-strconv-to-enc.c: New file.
62556         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62557         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62558
62559         * modules/uniconv/u16-strconv-to-enc: New file.
62560         * lib/uniconv/u16-strconv-to-enc.c: New file.
62561         * lib/uniconv/u-strconv-to-enc.h: New file.
62562         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62563         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62564
62565         * modules/uniconv/u8-strconv-to-enc: New file.
62566         * lib/uniconv/u8-strconv-to-enc.c: New file.
62567         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62568         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62569
62570         * modules/uniconv/u32-strconv-from-enc: New file.
62571         * lib/uniconv/u32-strconv-from-enc.c: New file.
62572         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62573         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62574
62575         * modules/uniconv/u16-strconv-from-enc: New file.
62576         * lib/uniconv/u16-strconv-from-enc.c: New file.
62577         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62578         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62579
62580         * modules/uniconv/u8-strconv-from-enc: New file.
62581         * lib/uniconv/u8-strconv-from-enc.c: New file.
62582         * lib/uniconv/u-strconv-from-enc.h: New file.
62583         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62584         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62585
62586         * modules/uniconv/u32-conv-from-enc: New file.
62587         * lib/uniconv/u32-conv-from-enc.c: New file.
62588         * modules/uniconv/u32-conv-from-enc-tests: New file.
62589         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62590
62591         * modules/uniconv/u16-conv-from-enc: New file.
62592         * lib/uniconv/u16-conv-from-enc.c: New file.
62593         * lib/uniconv/u-conv-from-enc.h: New file.
62594         * modules/uniconv/u16-conv-from-enc-tests: New file.
62595         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62596
62597         * modules/uniconv/u8-conv-from-enc: New file.
62598         * lib/uniconv/u8-conv-from-enc.c: New file.
62599         * modules/uniconv/u8-conv-from-enc-tests: New file.
62600         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62601
62602         * modules/uniconv/base: New file.
62603         * lib/uniconv.h: New file.
62604
62605 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         * doc/gnulib-tool.texi (Initial import): Update to match current
62608         behavior with strdup module.
62609         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62610         * lib/memmem.h: Remove; all uses removed.  This is now done
62611         by <string.h>.
62612         * lib/mempcpy.h: Likewise.
62613         * lib/memrchr.h: Likewise.
62614         * lib/stpcpy.h: Likewise.
62615         * lib/stpncpy.h: Likewise.
62616         * lib/strcase.h: Likewise.
62617         * lib/strchrnul.h: Likewise.
62618         * lib/strdup.h: Likewise.
62619         * lib/strndup.h: Likewise.
62620         * lib/strnlen.h: Likewise.
62621         * lib/strpbrk.h: Likewise.
62622         * lib/strsep.h: Likewise.
62623         * lib/strstr.h: Likewise.
62624         * lib/strtok_r.h: Likewise.
62625         * lib/string_.h: New file.
62626         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62627         Rely on <string.h> instead.
62628         * lib/canon-host.c: Likewise.
62629         * lib/chdir-long.c: Likewise.
62630         * lib/concatpath.c: Likewise.
62631         * lib/exclude.c: Likewise.
62632         * lib/fchdir.c: Likewise.
62633         * lib/getaddrinfo.c: Likewise.
62634         * lib/getcwd.c: Likewise.
62635         * lib/getsubopt.c: Likewise.
62636         * lib/glob.c: Likewise.
62637         * lib/hard-locale.c: Likewise.
62638         * lib/iconvme.c: Likewise.
62639         * lib/javacomp.c: Likewise.
62640         * lib/mempcpy.c: Likewise.
62641         * lib/memrchr.c: Likewise.
62642         * lib/regex_internal.h: Likewise.
62643         * lib/stpncpy.c: Likewise.
62644         * lib/strcasecmp.c: Likewise.
62645         * lib/strchrnul.c: Likewise.
62646         * lib/strdup.c: Likewise.
62647         * lib/striconv.c: Likewise.
62648         * lib/striconveh.c: Likewise.
62649         * lib/striconveha.c: Likewise.
62650         * lib/strncasecmp.c: Likewise.
62651         * lib/strndup.c: Likewise.
62652         * lib/strnlen.c: Likewise.
62653         * lib/strsep.c: Likewise.
62654         * lib/strstr.c: Likewise.
62655         * lib/strtok_r.c: Likewise.
62656         * lib/userspec.c: Likewise.
62657         * lib/w32spawn.h: Likewise.
62658         * lib/xstrndup.c: Likewise.
62659         * lib/mountlist.c (strstr): Remove decl.
62660         * m4/string_h.m4: New file.
62661         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62662         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62663         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62664         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62665         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62666         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62667         Set REPLACE_STRCASECMP if necessary.
62668         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62669         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62670         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62671         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62672         HAVE_DECL_STRDUP if necessary.
62673         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62674         since gl_FUNC_STRNDUP does that now.
62675         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62676         Check for decl here...
62677         (gl_PREREQ_STRNLEN): ... not here.
62678         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62679         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62680         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62682         necessary.
62683         * modules/string: New file.
62684         * modules/memmem (Files): Remove special-purpose include file.
62685         (Depends-on): Add string.
62686         (Include): Include <string.h>, not the removed file.
62687         * modules/mempcpy: Likewise.
62688         * modules/memrchr: Likewise.
62689         * modules/stpcpy: Likewise.
62690         * modules/stpncpy: Likewise.
62691         * modules/strcase: Likewise.
62692         * modules/strchrnul: Likewise.
62693         * modules/strdup: Likewise.
62694         * modules/strndup: Likewise.
62695         * modules/strnlen: Likewise.
62696         * modules/strpbrk: Likewise.
62697         * modules/strsep: Likewise.
62698         * modules/strstr: Likewise.
62699         * modules/strtok_r: Likewise.
62700         * tests/test-dirname.c: Don't include "strdup.h", since
62701         <string.h> now suffices.
62702         * tests/test-memmem.c: Don't include "memmem.h", since
62703         <string.h> now suffices.
62704
62705 2007-01-25  Bruno Haible  <bruno@clisp.org>
62706
62707         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62708         *resultp is 0.
62709
62710         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62711         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62712         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62713         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62714
62715         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62716         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62717         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62718         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62719         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62720         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62721
62722 2007-01-24  Bruno Haible  <bruno@clisp.org>
62723
62724         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62726         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62727         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62728         gl_FUNC_FTS_CORE.
62729         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62730         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62731         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62732         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62733         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62734         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62735         gl_FUNC_FCHOWNAT.
62736         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62737         gl_FUNC_STRFTIME.
62738         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62739         Reported by Ralf Wildenhues.
62740
62741 2007-01-24  Bruno Haible  <bruno@clisp.org>
62742
62743         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62744         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62745         gl_GETADDRINFO.
62746         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62747         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62748         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62749
62750 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62751
62752         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62753         Don't use 'exit'; just return from 'main'.
62754         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62755
62756         * lib/fnmatch_.h: Readjust white space and comments to match
62757         glibc, to avoid spurious diffs.
62758
62759 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62762         2004-12-01 change by Jakub Jelinek, since this code won't compile
62763         if !LIBC.  Problem reported by Bob Proulx.
62764
62765 2007-01-23  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/striconveh.c: Include c-strcaseeq.h.
62768         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62769         * modules/striconveh (Depends-on): Add c-strcaseeq.
62770
62771 2007-01-23  Bruno Haible  <bruno@clisp.org>
62772
62773         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62774
62775         * modules/c-strcaseeq: New file.
62776         * lib/c-strcaseeq.h: New file.
62777
62778         * modules/streq: New file.
62779         * lib/streq.h: New file.
62780
62781 2007-01-23  Bruno Haible  <bruno@clisp.org>
62782
62783         * modules/striconveha-tests: New file.
62784         * tests/test-striconveha.c: New file.
62785
62786         * lib/striconveha.h: Include <stdbool.h>.
62787         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62788         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62789         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62790         (mem_iconveha): New function.
62791         (str_iconveha_notranslit): Renamed from str_iconveha.
62792         (str_iconveha): New function.
62793         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62794         c-strcase.
62795
62796 2007-01-23  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62799         encodings without forgiving before trying any encoding with handler.
62800         (str_iconveha): Try all encodings without forgiving before trying any
62801         encoding with handler.
62802
62803 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         Import the following changes from libc.
62806
62807         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62808
62809         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62810
62811         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62812
62813         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62814         normal_bracket label.
62815
62816         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62817
62818         [BZ #361]
62819         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62820         to normal_bracket after fetching the next character.
62821
62822 2007-01-22  Bruno Haible  <bruno@clisp.org>
62823
62824         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62825         argument.
62826         * lib/striconveh.c (iconv_carefully_1): New function.
62827         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62828         argument.
62829         (str_cd_iconveh): Update.
62830         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62831         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62832         * tests/test-striconveh.c (MAGIC): New macro.
62833         (new_offsets): New function.
62834         (main): Test call with and without offsets.
62835
62836 2007-01-22  Bruno Haible  <bruno@clisp.org>
62837
62838         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62839         * modules/sys_select (Makefile.am): Likewise.
62840         * modules/sys_socket (Makefile.am): Likewise.
62841         * modules/sys_time (Makefile.am): Likewise.
62842
62843 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * modules/gettimeofday (License): Change from GPL to LGPL, since
62846         gettimeofday is a library function.
62847
62848 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62849
62850         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62851
62852 2007-01-21  Bruno Haible  <bruno@clisp.org>
62853
62854         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62855
62856 2007-01-21  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/striconveha: New file.
62859         * lib/striconveha.h: New file.
62860         * lib/striconveha.c: New file.
62861         * MODULES.html.sh (Internationalization functions): Add striconveha.
62862         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62863         string.
62864         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62865
62866 2007-01-21  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62869         * lib/striconveh.c (str_iconveh): Likewise.
62870
62871 2007-01-21  Bruno Haible  <bruno@clisp.org>
62872
62873         * lib/striconveh.h (mem_iconveh): New declaration.
62874         * lib/striconveh.c (mem_iconveh): New function.
62875         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62876
62877 2007-01-21  Bruno Haible  <bruno@clisp.org>
62878
62879         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62880
62881         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62882         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62883         original result buffer.
62884         (str_cd_iconveh): Update.
62885         * tests/test-striconveh.c (main): Update.
62886
62887         * lib/striconv.h (mem_cd_iconv): Change specification.
62888         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62889         result buffer.
62890         (str_cd_iconv): Update.
62891         * tests/test-striconv.c (main): Update.
62892
62893 2007-01-21  Bruno Haible  <bruno@clisp.org>
62894
62895         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62896
62897 2007-01-20  Jim Meyering  <jim@meyering.net>
62898
62899         * lib/userspec.c (parse_with_separator): If a user or group string
62900         starts with "+", skip the corresponding name-to-ID look-up, since
62901         such a look-up must fail: user and group names may not include "+".
62902
62903 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62904
62905         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62906         since we now assume the sys_time module.
62907         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62908         check for sys/time.h; no longer needed.
62909         * modules/poll (Depends-on): Depend on sys_time.
62910
62911 2007-01-18  Bruno Haible  <bruno@clisp.org>
62912
62913         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62914         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62915
62916         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62917         gettimeofday.
62918
62919         * tests/test-gettimeofday.c: Include <time.h>.
62920         (dummy): Remove variable.
62921
62922         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62923         gl_HEADER_SYS_TIME_H.
62924         (gl_HEADER_SYS_TIME_H): New macro.
62925
62926         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62927         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62928         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62929         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62930         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62932         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62933         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62934         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62935         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62936         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62937
62938         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62939         last change; it caused a compilation error when cross-compiling to
62940         Cygwin.
62941
62942 2007-01-18  Jim Meyering  <jim@meyering.net>
62943
62944         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62945         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62946         than the race-prone "test -d sys || mkdir sys".
62947         (configure.ac): Use AC_PROG_MKDIR_P.
62948         * modules/sys_select: Likewise.
62949         * modules/sys_socket: Likewise.
62950         * modules/sys_time: Likewise.
62951
62952 2007-01-18  Eric Blake  <ebb9@byu.net>
62953
62954         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62955         replace gettimeofday.
62956         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62957         name, to avoid infinite recursion.
62958
62959 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62962         module sys_time.
62963         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62964         assume timespec.h defines struct timeval.
62965         * lib/settime.c: Likewise.
62966         * lib/utimens.c: Likewise.
62967         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62968         since we now assume the gettimeofday module.
62969         * lib/tempname.c (__gen_tempname): Likewise.
62970         * lib/gettimeofday.h: Remove.
62971         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62972         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62973         Include <time.h>, for 'time()'.
62974         (localtime_buffer_addr): Also use this workaround if
62975         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62976         to simplify the uses.  All uses changed.
62977         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62978         that #undef is inside {}, and 'const' follows type name consistently.
62979         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62980         (gettimeofday): Do not use the maximum possible value for
62981         tv->tv_usec, since that might break usages other than ls.c.
62982         Instead, we'll leave ls.c alone.  This undoes today's patch
62983         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62984         we've never observed the problem but might as well keep the
62985         canary.
62986         * lib/nanosleep.c: Include timespec.h first, for interface check.
62987         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62988         now assume the sys_time module.
62989         * lib/tempname.c: Likewise.
62990         * lib/timespec.h: Likewise.
62991         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62992         needed.
62993         * lib/strftime.c: Likewise.
62994         * lib/timespec.h: Likewise.
62995         * lib/posixtm.c: Include posixtm.h first, for interface check.
62996         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62997         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62998         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62999         * lib/sys_time_.h: New file.
63000         * lib/timespec.h (struct timespec): Use long int, not long.
63001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63002         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63003         Remove obsolescent call to AC_HEADER_TIME.
63004         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63006         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63007         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63008         Likewise.
63009         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63010         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63012         into the sys_time module.  Check for gettimeofday just once.
63013         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63014         for gettimeofday signature to just check the signature.  Merely
63015         compile it, since linking doesn't test signature.  Improve test for
63016         whether gettimeofday.o is actually needed.
63017         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63018         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63019         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63020         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63021         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63022         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63023         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63024         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63025         than worrying about sys/time.h.
63026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63027         Don't bother worrying about TIME_WITH_SYS_TIME.
63028         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63029         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63030         * m4/sys_time_h.m4: New file.
63031         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63032         Don't include sys/time.h.  Return from main rather than exiting.
63033         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63034         all uses changed.
63035         * modules/gethrxtime (Depends-on): Add sys_time.
63036         * modules/gettime (Depends-on): Likewise.
63037         * modules/gettimeofday (Depends-on): Likewise.
63038         * modules/nanosleep (Depends-on): Likewise.
63039         * modules/settime (Depends-on): Likewise.
63040         * modules/tempname (Depends-on): Likewise.
63041         * modules/utimens (Depends-on): Likewise.
63042         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63043         (Include): Change back to <sys/time.h>.
63044         (Maintainer): Add self.
63045         * modules/sys_time: New file.
63046         * modules/tempname (Depends-on): Add gettimeofday.
63047         * tests/test-gettimeofday.c: Include <sys/time.h>
63048         rather than gettimeofday.h.
63049
63050 2007-01-17  Bruno Haible  <bruno@clisp.org>
63051
63052         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63053         the license default to GPL.
63054         (func_create_testdir): Don't complain if a module is LGPL and its
63055         tests module depends on GPLed modules.
63056
63057 2007-01-17  Bruno Haible  <bruno@clisp.org>
63058
63059         * lib/gettimeofday.c (gettimeofday): Add code for the case
63060         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63061         maximum possible value for tv->tv_usec, rather than the minimum one.
63062
63063 2005-10-08  Martin Lambers  <marlam@marlam.de>
63064 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63065 2007-01-16  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63068         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63069         gl_FUNC_GETTIMEOFDAY.
63070         (Include): Add gettimeofday.h.
63071         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63072         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63073         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63074         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63075         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63076         * lib/gettimeofday.h: New file.
63077         * lib/gettimeofday.c: Include <sys/timeb.h>.
63078         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63079         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63080         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63081         fall back on time().
63082
63083         * tests/test-gettimeofday.c: New file.
63084         * modules/gettimeofday-tests: New file.
63085
63086 2007-01-16  Eric Blake  <ebb9@byu.net>
63087
63088         * modules/fnmatch (Depends-on): Depend on wchar.
63089         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63090         * m4/fnmatch.m4: Likewise.
63091         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63092         * m4/mbchar.m4: Likewise.
63093         * modules/mbswidth (Depends-on): Depend on wchar.
63094         * lib/mbswidth.c: Assume <wchar.h>.
63095         * m4/mbswidth.m4: Likewise.
63096         * modules/quotearg (Depends-on): Depend on wchar.
63097         * lib/quotearg.c: Assume <wchar.h>.
63098         * m4/quotearg.m4: Likewise.
63099         * modules/regex (Depends-on): Depend on wchar.
63100         * lib/regex_internal.h: Assume <wchar.h>.
63101         * m4/regex.m4: Likewise.
63102         * modules/stdint (Depends-on): Depend on wchar.
63103         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63104         * m4/stdint.m4: Likewise.
63105         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63106         * modules/strftime (Depends-on): Depend on wchar.
63107         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63108         * modules/strtol (Depends-on): Depend on wchar.
63109         * lib/strtol.c: Assume <wchar.h>.
63110         * modules/wcwidth (Depends-on): Depend on wchar.
63111         * lib/wcwidth.h: Assume <wchar.h>.
63112         * m4/wcwidth.m4: Likewise.
63113
63114 2007-01-16  Bruno Haible  <bruno@clisp.org>
63115
63116         * modules/csharpexec-script: New, created from...
63117         * modules/csharpexec: ... this.
63118
63119 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63120
63121         * modules/javaexec-script: New, created from...
63122         * modules/javaexec: ... this.
63123
63124 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63125
63126         * modules/poll (Dependencies): Add sys_select.
63127
63128 2007-01-15  Jim Meyering  <jim@meyering.net>
63129
63130         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63131         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63132         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63133         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63134
63135 2007-01-15  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/striconveh: New file.
63138         * lib/striconveh.h: New file.
63139         * lib/striconveh.c: New file.
63140         * MODULES.html.sh (Internationalization functions): Add striconveh.
63141
63142         * modules/striconveh-tests: New file.
63143         * tests/test-striconveh.c: New file.
63144
63145 2007-01-15  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63148         not from GNU libiconv or GNU libc.
63149
63150 2007-01-15  Bruno Haible  <bruno@clisp.org>
63151
63152         * doc/gnulib-intro.texi (Copyright): Explain the different license
63153         terms for module descriptions, autoconf macros, tests, documentation.
63154
63155 2007-01-14  Bruno Haible  <bruno@clisp.org>
63156
63157         * modules/striconv-tests: New file.
63158         * tests/test-striconv.c: New file.
63159
63160 2007-01-14  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/iconv-tests: New file.
63163         * tests/test-iconv.c: New file.
63164
63165 2007-01-14  Bruno Haible  <bruno@clisp.org>
63166
63167         * gnulib-tool (func_get_license): For test modules, use the license of
63168         the main module.
63169
63170 2007-01-14  Bruno Haible  <bruno@clisp.org>
63171
63172         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63173         if iconv is found to exist.
63174
63175 2007-01-14  Bruno Haible  <bruno@clisp.org>
63176
63177         * modules/c-ctype-tests: New file.
63178         * tests/test-c-ctype.c: New file.
63179
63180 2007-01-14  Bruno Haible  <bruno@clisp.org>
63181
63182         * modules/binary-io-tests: New file.
63183         * tests/test-binary-io.sh: New file.
63184         * tests/test-binary-io.c: New file.
63185
63186 2007-01-14  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/array-oset-tests: New file.
63189         * tests/test-array_oset.c: New file.
63190
63191 2007-01-14  Bruno Haible  <bruno@clisp.org>
63192
63193         * modules/array-list-tests: New file.
63194         * tests/test-array_list.c: New file.
63195
63196 2007-01-14  Bruno Haible  <bruno@clisp.org>
63197
63198         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63199         and make.
63200         Reported by Simon Josefsson in
63201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63202
63203 2007-01-14  Bruno Haible  <bruno@clisp.org>
63204
63205         * modules/allocsa-tests: New file.
63206         * tests/test-allocsa.c: New file.
63207
63208 2007-01-14  Bruno Haible  <bruno@clisp.org>
63209
63210         * modules/fchdir (Depends-on): Add absolute-header.
63211         * modules/unistd (Depends-on): Likewise.
63212
63213 2006-12-30  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/fchdir: New file.
63216         * modules/unistd (Files): Add lib/unistd_.h.
63217         (Makefile.am): Generate unistd.h from unistd_.h.
63218         * lib/fchdir.c: New file.
63219         * lib/dirent_.h: New file.
63220         * lib/unistd_.h: New file.
63221         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63222         * m4/fchdir.m4: New file.
63223         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63224         (gl_HEADER_UNISTD): Invoke it.
63225         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63226         function.
63227         * lib/backupfile.c (opendir, closedir): Undefine.
63228         * lib/chown.c (open, close): Undefine.
63229         * lib/clean-temp.c (open, close): Undefine.
63230         * lib/copy-file.c (open, close): Undefine.
63231         * lib/execute.c (open, close): Undefine.
63232         * lib/fsusage.c (open, close): Undefine.
63233         * lib/gc-gnulib.c (open, close): Undefine.
63234         * lib/getcwd.c (opendir, closedir): Undefine.
63235         * lib/glob.c (opendir, closedir): Undefine.
63236         * lib/javacomp.c (open, close): Undefine.
63237         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63238         * lib/openat-proc.c (open, close): Undefine.
63239         * lib/pagealign_alloc.c (open, close): Undefine.
63240         * lib/pipe.c (open, close): Undefine.
63241         * lib/progreloc.c (open, close): Undefine.
63242         * lib/savedir.c (opendir, closedir): Undefine.
63243         * lib/utime.c (open, close): Undefine.
63244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63245
63246 2007-01-10  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63249
63250 2007-01-12  Eric Blake  <ebb9@byu.net>
63251
63252         Provide a robust <wchar.h>.  Further simplifications are now
63253         possible in other modules, but not included here.
63254         * modules/wchar: New module.
63255         * m4/wchar.m4: New file.
63256         * lib/wchar_.h: Likewise.
63257         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63258         of the new module.
63259         * MODULES.html.sh (Extended multibyte and wide character utilities):
63260         New section.
63261
63262 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63263
63264         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63265         to a reasonable default for memory allocation.
63266         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63267         file system that reports garbage st_size values for symlinks.
63268         Problem reported by Liyang Hu.
63269
63270 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63271
63272         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63273         Emacs .#* auto-save files).
63274
63275 2007-01-11  Bruno Haible  <bruno@clisp.org>
63276
63277         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63278         directory.
63279
63280 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         Use @...@ consistently in lib/wctype_.h.
63283         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63284         on it being set to 1 or 0.
63285         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63286         go back to AC_SUBSTing it.
63287         * modules/wctype (Makefile.am): Undo previous change.
63288
63289 2007-01-10  Eric Blake  <ebb9@byu.net>
63290
63291         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63292         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63293         * modules/wctype (Makefile.am): Likewise.
63294         Reported by Chris McGuire.
63295
63296 2007-01-10  Jim Meyering  <jim@meyering.net>
63297
63298         fts.c: a small readability/maintainability improvement
63299         * lib/fts.c (fts_read): Make this code slightly more readable and
63300         maintainable by hoisting the "sp->fts_cur = p" assignments to
63301         immediately follow the statements that set P.  Derived from
63302         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63303
63304 2007-01-10  Eric Blake  <ebb9@byu.net>
63305
63306         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63307         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63309         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63310         Reported by Chris McGuire.
63311
63312 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63313
63314         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63315         in sed script.
63316
63317 2007-01-09  Bruno Haible  <bruno@clisp.org>
63318
63319         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63320         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63321         variables.
63322         (func_module): Use them.
63323
63324 2007-01-09  Bruno Haible  <bruno@clisp.org>
63325
63326         * modules/unistr/base: New file.
63327         * lib/unistr.h: New file.
63328
63329         * modules/unistr/u8-to-u16: New file.
63330         * lib/unistr/u8-to-u16.c: New file.
63331
63332         * modules/unistr/u8-to-u32: New file.
63333         * lib/unistr/u8-to-u32.c: New file.
63334
63335         * modules/unistr/u16-to-u8: New file.
63336         * lib/unistr/u16-to-u8.c: New file.
63337
63338         * modules/unistr/u16-to-u32: New file.
63339         * lib/unistr/u16-to-u32.c: New file.
63340
63341         * modules/unistr/u32-to-u8: New file.
63342         * lib/unistr/u32-to-u8.c: New file.
63343
63344         * modules/unistr/u32-to-u16: New file.
63345         * lib/unistr/u32-to-u16.c: New file.
63346
63347         * modules/unistr/u8-check: New file.
63348         * modules/unistr/u16-check: New file.
63349         * modules/unistr/u32-check: New file.
63350         * lib/unistr/u8-check.c: New file.
63351         * lib/unistr/u16-check.c: New file.
63352         * lib/unistr/u32-check.c: New file.
63353
63354         * modules/unistr/u8-chr: New file.
63355         * modules/unistr/u16-chr: New file.
63356         * modules/unistr/u32-chr: New file.
63357         * lib/unistr/u8-chr.c: New file.
63358         * lib/unistr/u16-chr.c: New file.
63359         * lib/unistr/u32-chr.c: New file.
63360
63361         * modules/unistr/u8-cmp: New file.
63362         * modules/unistr/u16-cmp: New file.
63363         * modules/unistr/u32-cmp: New file.
63364         * lib/unistr/u8-cmp.c: New file.
63365         * lib/unistr/u16-cmp.c: New file.
63366         * lib/unistr/u32-cmp.c: New file.
63367
63368         * modules/unistr/u8-cpy: New file.
63369         * modules/unistr/u16-cpy: New file.
63370         * modules/unistr/u32-cpy: New file.
63371         * lib/unistr/u8-cpy.c: New file.
63372         * lib/unistr/u16-cpy.c: New file.
63373         * lib/unistr/u32-cpy.c: New file.
63374         * lib/unistr/u-cpy.h: New file.
63375
63376         * modules/unistr/u8-cpy-alloc: New file.
63377         * modules/unistr/u16-cpy-alloc: New file.
63378         * modules/unistr/u32-cpy-alloc: New file.
63379         * lib/unistr/u8-cpy-alloc.c: New file.
63380         * lib/unistr/u16-cpy-alloc.c: New file.
63381         * lib/unistr/u32-cpy-alloc.c: New file.
63382         * lib/unistr/u-cpy-alloc.h: New file.
63383
63384         * modules/unistr/u8-endswith: New file.
63385         * modules/unistr/u16-endswith: New file.
63386         * modules/unistr/u32-endswith: New file.
63387         * lib/unistr/u8-endswith.c: New file.
63388         * lib/unistr/u16-endswith.c: New file.
63389         * lib/unistr/u32-endswith.c: New file.
63390         * lib/unistr/u-endswith.h: New file.
63391
63392         * modules/unistr/u8-mblen: New file.
63393         * modules/unistr/u16-mblen: New file.
63394         * modules/unistr/u32-mblen: New file.
63395         * lib/unistr/u8-mblen.c: New file.
63396         * lib/unistr/u16-mblen.c: New file.
63397         * lib/unistr/u32-mblen.c: New file.
63398
63399         * modules/unistr/u8-mbtouc: New file.
63400         * modules/unistr/u16-mbtouc: New file.
63401         * modules/unistr/u32-mbtouc: New file.
63402         * lib/unistr/u8-mbtouc.c: New file.
63403         * lib/unistr/u16-mbtouc.c: New file.
63404         * lib/unistr/u32-mbtouc.c: New file.
63405
63406         * modules/unistr/u8-mbtouc-safe: New file.
63407         * modules/unistr/u16-mbtouc-safe: New file.
63408         * modules/unistr/u32-mbtouc-safe: New file.
63409         * lib/unistr/u8-mbtouc-safe.c: New file.
63410         * lib/unistr/u16-mbtouc-safe.c: New file.
63411         * lib/unistr/u32-mbtouc-safe.c: New file.
63412
63413         * modules/unistr/u8-move: New file.
63414         * modules/unistr/u16-move: New file.
63415         * modules/unistr/u32-move: New file.
63416         * lib/unistr/u8-move.c: New file.
63417         * lib/unistr/u16-move.c: New file.
63418         * lib/unistr/u32-move.c: New file.
63419         * lib/unistr/u-move.h: New file.
63420
63421         * modules/unistr/u8-next: New file.
63422         * modules/unistr/u16-next: New file.
63423         * modules/unistr/u32-next: New file.
63424         * lib/unistr/u8-next.c: New file.
63425         * lib/unistr/u16-next.c: New file.
63426         * lib/unistr/u32-next.c: New file.
63427
63428         * modules/unistr/u8-prev: New file.
63429         * modules/unistr/u16-prev: New file.
63430         * modules/unistr/u32-prev: New file.
63431         * lib/unistr/u8-prev.c: New file.
63432         * lib/unistr/u16-prev.c: New file.
63433         * lib/unistr/u32-prev.c: New file.
63434
63435         * modules/unistr/u8-set: New file.
63436         * modules/unistr/u16-set: New file.
63437         * modules/unistr/u32-set: New file.
63438         * lib/unistr/u8-set.c: New file.
63439         * lib/unistr/u16-set.c: New file.
63440         * lib/unistr/u32-set.c: New file.
63441         * lib/unistr/u-set.h: New file.
63442
63443         * modules/unistr/u8-startswith: New file.
63444         * modules/unistr/u16-startswith: New file.
63445         * modules/unistr/u32-startswith: New file.
63446         * lib/unistr/u8-startswith.c: New file.
63447         * lib/unistr/u16-startswith.c: New file.
63448         * lib/unistr/u32-startswith.c: New file.
63449         * lib/unistr/u-startswith.h: New file.
63450
63451         * modules/unistr/u8-stpcpy: New file.
63452         * modules/unistr/u16-stpcpy: New file.
63453         * modules/unistr/u32-stpcpy: New file.
63454         * lib/unistr/u8-stpcpy.c: New file.
63455         * lib/unistr/u16-stpcpy.c: New file.
63456         * lib/unistr/u32-stpcpy.c: New file.
63457         * lib/unistr/u-stpcpy.h: New file.
63458
63459         * modules/unistr/u8-stpncpy: New file.
63460         * modules/unistr/u16-stpncpy: New file.
63461         * modules/unistr/u32-stpncpy: New file.
63462         * lib/unistr/u8-stpncpy.c: New file.
63463         * lib/unistr/u16-stpncpy.c: New file.
63464         * lib/unistr/u32-stpncpy.c: New file.
63465         * lib/unistr/u-stpncpy.h: New file.
63466
63467         * modules/unistr/u8-strcat: New file.
63468         * modules/unistr/u16-strcat: New file.
63469         * modules/unistr/u32-strcat: New file.
63470         * lib/unistr/u8-strcat.c: New file.
63471         * lib/unistr/u16-strcat.c: New file.
63472         * lib/unistr/u32-strcat.c: New file.
63473         * lib/unistr/u-strcat.h: New file.
63474
63475         * modules/unistr/u8-strchr: New file.
63476         * modules/unistr/u16-strchr: New file.
63477         * modules/unistr/u32-strchr: New file.
63478         * lib/unistr/u8-strchr.c: New file.
63479         * lib/unistr/u16-strchr.c: New file.
63480         * lib/unistr/u32-strchr.c: New file.
63481
63482         * modules/unistr/u8-strcmp: New file.
63483         * modules/unistr/u16-strcmp: New file.
63484         * modules/unistr/u32-strcmp: New file.
63485         * lib/unistr/u8-strcmp.c: New file.
63486         * lib/unistr/u16-strcmp.c: New file.
63487         * lib/unistr/u32-strcmp.c: New file.
63488
63489         * modules/unistr/u8-strcpy: New file.
63490         * modules/unistr/u16-strcpy: New file.
63491         * modules/unistr/u32-strcpy: New file.
63492         * lib/unistr/u8-strcpy.c: New file.
63493         * lib/unistr/u16-strcpy.c: New file.
63494         * lib/unistr/u32-strcpy.c: New file.
63495         * lib/unistr/u-strcpy.h: New file.
63496
63497         * modules/unistr/u8-strcspn: New file.
63498         * modules/unistr/u16-strcspn: New file.
63499         * modules/unistr/u32-strcspn: New file.
63500         * lib/unistr/u8-strcspn.c: New file.
63501         * lib/unistr/u16-strcspn.c: New file.
63502         * lib/unistr/u32-strcspn.c: New file.
63503         * lib/unistr/u-strcspn.h: New file.
63504
63505         * modules/unistr/u8-strdup: New file.
63506         * modules/unistr/u16-strdup: New file.
63507         * modules/unistr/u32-strdup: New file.
63508         * lib/unistr/u8-strdup.c: New file.
63509         * lib/unistr/u16-strdup.c: New file.
63510         * lib/unistr/u32-strdup.c: New file.
63511         * lib/unistr/u-strdup.h: New file.
63512
63513         * modules/unistr/u8-strlen: New file.
63514         * modules/unistr/u16-strlen: New file.
63515         * modules/unistr/u32-strlen: New file.
63516         * lib/unistr/u8-strlen.c: New file.
63517         * lib/unistr/u16-strlen.c: New file.
63518         * lib/unistr/u32-strlen.c: New file.
63519         * lib/unistr/u-strlen.h: New file.
63520
63521         * modules/unistr/u8-strmblen: New file.
63522         * modules/unistr/u16-strmblen: New file.
63523         * modules/unistr/u32-strmblen: New file.
63524         * lib/unistr/u8-strmblen.c: New file.
63525         * lib/unistr/u16-strmblen.c: New file.
63526         * lib/unistr/u32-strmblen.c: New file.
63527
63528         * modules/unistr/u8-strmbtouc: New file.
63529         * modules/unistr/u16-strmbtouc: New file.
63530         * modules/unistr/u32-strmbtouc: New file.
63531         * lib/unistr/u8-strmbtouc.c: New file.
63532         * lib/unistr/u16-strmbtouc.c: New file.
63533         * lib/unistr/u32-strmbtouc.c: New file.
63534
63535         * modules/unistr/u8-strncat: New file.
63536         * modules/unistr/u16-strncat: New file.
63537         * modules/unistr/u32-strncat: New file.
63538         * lib/unistr/u8-strncat.c: New file.
63539         * lib/unistr/u16-strncat.c: New file.
63540         * lib/unistr/u32-strncat.c: New file.
63541         * lib/unistr/u-strncat.h: New file.
63542
63543         * modules/unistr/u8-strncmp: New file.
63544         * modules/unistr/u16-strncmp: New file.
63545         * modules/unistr/u32-strncmp: New file.
63546         * lib/unistr/u8-strncmp.c: New file.
63547         * lib/unistr/u16-strncmp.c: New file.
63548         * lib/unistr/u32-strncmp.c: New file.
63549
63550         * modules/unistr/u8-strncpy: New file.
63551         * modules/unistr/u16-strncpy: New file.
63552         * modules/unistr/u32-strncpy: New file.
63553         * lib/unistr/u8-strncpy.c: New file.
63554         * lib/unistr/u16-strncpy.c: New file.
63555         * lib/unistr/u32-strncpy.c: New file.
63556         * lib/unistr/u-strncpy.h: New file.
63557
63558         * modules/unistr/u8-strnlen: New file.
63559         * modules/unistr/u16-strnlen: New file.
63560         * modules/unistr/u32-strnlen: New file.
63561         * lib/unistr/u8-strnlen.c: New file.
63562         * lib/unistr/u16-strnlen.c: New file.
63563         * lib/unistr/u32-strnlen.c: New file.
63564         * lib/unistr/u-strnlen.h: New file.
63565
63566         * modules/unistr/u8-strpbrk: New file.
63567         * modules/unistr/u16-strpbrk: New file.
63568         * modules/unistr/u32-strpbrk: New file.
63569         * lib/unistr/u8-strpbrk.c: New file.
63570         * lib/unistr/u16-strpbrk.c: New file.
63571         * lib/unistr/u32-strpbrk.c: New file.
63572         * lib/unistr/u-strpbrk.h: New file.
63573
63574         * modules/unistr/u8-strrchr: New file.
63575         * modules/unistr/u16-strrchr: New file.
63576         * modules/unistr/u32-strrchr: New file.
63577         * lib/unistr/u8-strrchr.c: New file.
63578         * lib/unistr/u16-strrchr.c: New file.
63579         * lib/unistr/u32-strrchr.c: New file.
63580
63581         * modules/unistr/u8-strspn: New file.
63582         * modules/unistr/u16-strspn: New file.
63583         * modules/unistr/u32-strspn: New file.
63584         * lib/unistr/u8-strspn.c: New file.
63585         * lib/unistr/u16-strspn.c: New file.
63586         * lib/unistr/u32-strspn.c: New file.
63587         * lib/unistr/u-strspn.h: New file.
63588
63589         * modules/unistr/u8-strstr: New file.
63590         * modules/unistr/u16-strstr: New file.
63591         * modules/unistr/u32-strstr: New file.
63592         * lib/unistr/u8-strstr.c: New file.
63593         * lib/unistr/u16-strstr.c: New file.
63594         * lib/unistr/u32-strstr.c: New file.
63595         * lib/unistr/u-strstr.h: New file.
63596
63597         * modules/unistr/u8-strtok: New file.
63598         * modules/unistr/u16-strtok: New file.
63599         * modules/unistr/u32-strtok: New file.
63600         * lib/unistr/u8-strtok.c: New file.
63601         * lib/unistr/u16-strtok.c: New file.
63602         * lib/unistr/u32-strtok.c: New file.
63603         * lib/unistr/u-strtok.h: New file.
63604
63605         * modules/unistr/u8-uctomb: New file.
63606         * modules/unistr/u16-uctomb: New file.
63607         * modules/unistr/u32-uctomb: New file.
63608         * lib/unistr/u8-uctomb.c: New file.
63609         * lib/unistr/u16-uctomb.c: New file.
63610         * lib/unistr/u32-uctomb.c: New file.
63611
63612         * MODULES.html.sh (Unicode string functions): Add the new modules.
63613
63614 2007-01-08  Bruno Haible  <bruno@clisp.org>
63615
63616         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63617         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63618         subdirectories.
63619
63620 2007-01-08  Karl Berry  <karl@gnu.org>
63621
63622         * doc/error.texi: mention that main() fns must set program_name
63623         when progname is used.
63624
63625 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63626
63627         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63628         WCTYPE_H is empty, for the benefit of builds from non-distclean
63629         directories.  Problem reported by Eric Blake in
63630         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63631
63632 2007-01-08  Bruno Haible  <bruno@clisp.org>
63633
63634         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63635         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63636         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63637         PROVIDE_CANONICALIZE_FILENAME_MODE.
63638         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63639
63640 2007-01-08  Bruno Haible  <bruno@clisp.org>
63641
63642         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63643         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63644         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63645         * lib/fts.c: Likewise.
63646         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63647
63648 2006-12-25  Bruno Haible  <bruno@clisp.org>
63649
63650         * modules/utf8-ucs4-safe: New file.
63651         * lib/utf8-ucs4-safe.h: New file.
63652         * lib/unistr/utf8-ucs4-safe.c: New file.
63653
63654         * modules/utf16-ucs4-safe: New file.
63655         * lib/utf16-ucs4-safe.h: New file.
63656         * lib/unistr/utf16-ucs4-safe.c: New file.
63657
63658         * MODULES.html.sh (Unicode string functions): Add the new modules.
63659
63660 2007-01-08  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63663         (Depends-on): Add unitypes.
63664         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63665         (u8_mbtouc_aux): Move out to separate file.
63666         (u8_mbtouc): Use ucs4_t, uint8_t types.
63667         * lib/unistr/utf8-ucs4.c: New file.
63668
63669         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63670         (Depends-on): Add unitypes.
63671         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63672         (u16_mbtouc_aux): Move out to separate file.
63673         (u16_mbtouc): Use ucs4_t, uint16_t types.
63674         * lib/unistr/utf16-ucs4.c: New file.
63675
63676         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63677         (Depends-on): Add unitypes.
63678         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63679         (u8_uctomb_aux): Move out to separate file.
63680         (u8_uctomb): Use ucs4_t, uint8_t types.
63681         * lib/unistr/ucs4-utf8.c: New file.
63682
63683         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63684         (Depends-on): Add unitypes.
63685         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63686         (u16_uctomb_aux): Move out to separate file.
63687         (u16_uctomb): Use ucs4_t, uint16_t types.
63688         * lib/unistr/ucs4-utf16.c: New file.
63689
63690 2006-12-25  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/unitypes: New file.
63693         * lib/unitypes.h: New file.
63694         * MODULES.html.sh (func_all_modules): New section "Unicode string
63695         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63696         this section. Add unitypes.
63697
63698 2007-01-08  Bruno Haible  <bruno@clisp.org>
63699
63700         Avoid variable names that conflict with those from libtool.
63701         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63702         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63703         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63704         library_names_spec to acl_library_names_spec, hardcode_* to
63705         acl_hardcode_*.
63706         Reported by Ralf Wildenhues.
63707
63708 2007-01-08  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63711         definition.
63712         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63713         definition.
63714         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63715         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63716         definition.
63717         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63718         definition.
63719         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63720         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63721         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63722         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63723         definition.
63724         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63725         definition.
63726         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63727         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63728         GC_USE_<algorithm>.
63729         * lib/gc-libgcrypt.c: Likewise.
63730         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63731         * modules/gc-arctwo (configure.ac): Likewise.
63732         * modules/gc-des (configure.ac): Likewise.
63733         * modules/gc-hmac-md5 (configure.ac): Likewise.
63734         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63735         * modules/gc-md2 (configure.ac): Likewise.
63736         * modules/gc-md4 (configure.ac): Likewise.
63737         * modules/gc-md5 (configure.ac): Likewise.
63738         * modules/gc-random (configure.ac): Likewise.
63739         * modules/gc-rijndael (configure.ac): Likewise.
63740         * modules/gc-sha1 (configure.ac): Likewise.
63741
63742 2007-01-08  Bruno Haible  <bruno@clisp.org>
63743
63744         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63745         macro definition.
63746         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63747         definition.
63748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63749         definition.
63750         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63751         * modules/fcntl-safer (configure.ac): Likewise.
63752         * modules/fopen-safer (configure.ac): Likewise.
63753         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63754         GNULIB_FWRITEERROR macro definition.
63755
63756 2007-01-08  Bruno Haible  <bruno@clisp.org>
63757
63758         * m4/gnulib-common.m4: New file.
63759         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63760         (func_get_filelist): Add m4/gnulib-common.m4.
63761
63762 2007-01-08  Bruno Haible  <bruno@clisp.org>
63763
63764         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63765         command.
63766
63767 2007-01-08  Jim Meyering  <jim@meyering.net>
63768
63769         Use a more robust test for a "can't happen" condition.
63770         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63771         narrowed the st_size value.  Presuming the "can't happen" condition
63772         is true, that narrowing could conceivably convert an invalid st_size
63773         value into a valid one.  Instead, use a change based on Matthew
63774         Woehlke's original patch.
63775
63776         Slight readability improvement: use an assert-like macro
63777         in place of literal "abort ()" uses.
63778         * lib/fts.c (fts_assert): Define.
63779         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63780         Use this macro instead of a bare 'abort'.
63781
63782 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63785         simply work around them.
63786         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63787         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63788         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63789         declaring.
63790         Don't bother to define as macros, since the standard doesn't require it.
63791         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63792         longer worry about IRIX 5.3.
63793         (HAVE_WCTYPE_CTMP_BUG): Remove.
63794
63795 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63798         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63799         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63800         Problems reported by Georg Schwarz for IRIX 5.3.
63801
63802         * gnulib-tool (autoconf_minversion): Take the maximum version number
63803         found, not the minimum.  Problem reported by James Youngman.
63804
63805 2007-01-03  Karl Berry  <karl@gnu.org>
63806
63807         * doc/error.texi: new file, explaining interaction with progname.
63808         * doc/gnulib.texi: include it.  Update copyright.
63809
63810 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63811
63812         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63813         AC_CANONICAL_HOST, to improve autobuild outputs.
63814
63815 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63816             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63817
63818         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63819         sockets, server sockets, and other file descriptors.  Count errors
63820         to compute the return value.  Reorder the code a bit to be easier
63821         to follow.  Don't set event bits that were not requested (except
63822         POLLERR and POLLHUP).
63823
63824 2007-01-01  Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63827
63828 2007-01-03  Jim Meyering  <jim@meyering.net>
63829
63830         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63831
63832 2007-01-02  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/settime (Include): Require timespec.h.
63835         * modules/nanosleep (Include): Likewise.
63836
63837 2007-01-01  Bruno Haible  <bruno@clisp.org>
63838
63839         * gnulib-tool (func_emit_copyright_notice): Bump year.
63840         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63841
63842 2007-01-01  Bruno Haible  <bruno@clisp.org>
63843
63844         Improve support for OpenBSD.
63845         * build-aux/config.rpath (libname_spec): Export.
63846         (library_names_spec): New variable. Export.
63847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63848         library_names_spec from the config.rpath output. Locate shared library
63849         through the name pattern in library_names_spec.
63850
63851 2007-01-01  Eric Blake  <ebb9@byu.net>
63852
63853         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63854
63855 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63858         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63859         assume the C locale, and avoid an "eval" that could cause trouble.
63860         Problem with SORT reported by Bob Proulx.
63861
63862         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63863         Define.  Trivial patch from Henning Nielsen Lund, originally
63864         sent to bug-grep@gnu.org today.
63865
63866 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63869         struct stat.  Problem reported by Henning Nielsen Lund.
63870         * lib/acl.c: Include acl.h first, to check interface.  Don't
63871         bother to include sys/types.h and sys/stat.h again.
63872
63873 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         Import the following change from libc; problem reported by
63876         Sven Verdoolaege.
63877
63878         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63879
63880         [BZ #1373]
63881         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63882
63883 2006-12-28  Jim Meyering  <jim@meyering.net>
63884
63885         * build-aux/announce-gen: Do not assume that the package
63886         builds any of tar.gz, tar.bz2, and .xdelta files.
63887         Suggestion from Simon Josefsson.
63888
63889 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63890
63891         * modules/announce-gen: New file.
63892
63893 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63894
63895         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63896         handles its gotchas now.
63897         * lib/mbswidth.c: Likewise.
63898         * lib/wcwidth.h: Likewise.
63899         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63900         and iswcntrl; the wctype module does this stuff now.
63901         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63903         * modules/mbchar (Depends-on): Add wctype.
63904         * modules/mbswidth (Depends-on): Likewise.
63905         * modules/wcwidth (Depends-on): Likewise.
63906
63907 2006-12-27  Eric Blake  <ebb9@byu.net>
63908
63909         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63910         module uses more than what <wctype.h> is required to provide.
63911
63912 2006-12-26  Eric Blake  <ebb9@byu.net>
63913
63914         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63915
63916 2006-12-26  Eric Blake  <ebb9@byu.net>
63917
63918         * modules/absolute-header: New module.
63919         * modules/fcntl (Depends-on): Depend on it.
63920         * modules/inttypes (Depends-on): Likewise.
63921         * modules/stdint (Depends-on): Likewise.
63922         * modules/sys_stat (Depends-on): Likewise.
63923         * modules/wctype (Depends-on): Likewise.
63924         * MODULES.html.sh (Support for building libraries and
63925         executables): Document it.
63926
63927 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63928
63929         * gnulib-tool (SED): Remove, undoing previous change.
63930         The problem was that it broke coreutils on Solaris, because
63931         "sed --posix" leaked into a makefile.
63932         (sed): New alias, if 'alias' and GNU sed.
63933
63934 2006-12-24  Jim Meyering  <jim@meyering.net>
63935
63936         Work around an fchownat bug in glibc-2.4:
63937         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63938         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63939         in spite of the -P option.
63940         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63941         New macros.
63942         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63943         * modules/openat (Files): Add lib/fchownat.c.
63944         * lib/openat.c (fchownat): Don't define here.  Move to...
63945         * lib/fchownat.c: ...this new file.
63946
63947 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         Fix bug reported by Bruno Haible in
63950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63951         where quotearg.c didn't compile on Mac OS X 10.2 because it
63952         lacks <wchar.h> and wint_t.
63953         * lib/wctype_.h (__wctype_wint_t): New type.
63954         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63955         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63956         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63957         Arg is now of type __wctype_wint_t, not wint_t.
63958         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63959         substitute HAVE_WINT_T.
63960         * modules/wctype (Files): Add m4/wint_t.m4.
63961         (wctype.h): Substitute HAVE_WINT_T.
63962
63963 2006-12-23  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63966
63967 2006-12-23  Bruno Haible  <bruno@clisp.org>
63968
63969         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63970         S_ISLNK.
63971         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63972         mingw.
63973
63974 2006-12-22  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/copy-file.c: Include acl.h.
63977         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63978         Close the file descriptors only after being done with copy_acl.
63979         * modules/copy-file (Depends-on): Add acl.
63980
63981 2006-12-22  Bruno Haible  <bruno@clisp.org>
63982
63983         * gnulib-tool (SED): New variable.
63984         Use $SED instead of sed everywhere.
63985
63986 2006-12-22  Bruno Haible  <bruno@clisp.org>
63987
63988         * modules/no-c++: New file.
63989         * m4/no-c++.m4: New file.
63990         * MODULES.html.sh (Support for building libraries and executables):
63991         Add no-c++.
63992
63993 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63996         Include <limits.h>, and use its INT_MAX to rewrite the
63997         j loop so that it does not overflow 'int'.  Problem reported by
63998         Ralf Wildenhues in
63999         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64000         Play it safe by shifting left by 1 rather than multiplying by 2,
64001         as GCC is less likely to optimize this away when the value
64002         is signed (when it assumes overflow leads to undefined behavior).
64003         Also, don't assume time_t uses two's complement.
64004
64005 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64006
64007         * MODULES.html.sh: New module wctype.
64008         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64009         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64010         <wctype.h>, since the new wctype module should fix this.
64011         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64012         the wctype module should arrange for it.
64013         * lib/regex_internal.h: Likewise.
64014         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64015         since the wctype module should handle this now.
64016         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64017         * modules/fnmatch (Depends-on): Add wctype.
64018         * modules/quotearg (Depends-on): Likewise.
64019         * modules/regex (Depends-on): Likewise.
64020
64021 2006-12-19  Bruno Haible  <bruno@clisp.org>
64022
64023         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64024         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64025
64026 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64027
64028         * modules/savewd (Depends-on): Fix dependency on fcntl.
64029
64030 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64033         conforms to C99, rather than relying on the user's environment
64034         setting of STDINT_H.
64035
64036 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64037         and Eric Blake  <ebb9@byu.net>
64038
64039         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64040         This is more consistent with the other defines here.
64041         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64042         Port to z/OS.  Problem reported by Paul Gilmartin.
64043         Change local vars to use gl_ prefix rather than ac_.
64044         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64045         with other defines.
64046         * modules/double-slash-root: New module.
64047         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64048         (Depends-on): Add double-slash-root.
64049         * MODULES.html.sh (File system functions): Mention new module.
64050
64051 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64054         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64055         This is for the benefit of gzip, which doesn't do i18n.
64056
64057 2006-12-12  Jim Meyering  <jim@meyering.net>
64058
64059         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64060         Reported by Andreas Schwab <schwab@suse.de>.
64061
64062 2006-12-12  Bruno Haible  <bruno@clisp.org>
64063
64064         Merge these changes.
64065         2006-09-05  Bruno Haible  <bruno@clisp.org>
64066         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64067         iconv_alloc succeeded.
64068         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64069         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64070         test for " && dest " at the end - dest is always != NULL there. Call
64071         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64072         with 2xNULL arguments, also to flush the state storage. Handle the
64073         IRIX iconv behaviour. Realloc the final result, to throw away unused
64074         memory.
64075
64076 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64079         and fchmodat unconditionally, since glibc 2.4 has them.
64080         Problem reported by Arkadiusz Miskiewicz.
64081
64082 2006-12-10  Bruno Haible  <bruno@clisp.org>
64083
64084         * gnulib-tool (func_import): Show the include files only for those
64085         modules that are copied and specified.
64086         Reported by Karl Berry.
64087
64088 2006-12-08  Jim Meyering  <jim@meyering.net>
64089
64090         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64091         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64092
64093         * build-aux/announce-gen: Add two new options, both optional:
64094         --bootstrap-tools=TOOL_LIST
64095               a comma-separated list of tools, e.g.,
64096               autoconf,automake,bison,gnulib
64097         --gnulib-snapshot-date=DATE
64098               if gnulib is in the bootstrap tool list,
64099               then report this as the snapshot date.
64100               If not specified, use the current date/time.
64101               If you specify a date here, be sure it's UTC.
64102
64103 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64104
64105         * tests/test-argp-2.sh: Fix test to match actual output.
64106         (func_compare): Fix sed script to be portable.
64107
64108 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64111         workaround for this case.  It is not autoconfigured now; offhand
64112         it's hard to see how to autoconfigure it.
64113
64114 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64117         a directory that is about to be chowned.  Such a directory's
64118         initial file permissions should permit the owner only and this
64119         should not be changed until after the chown, since the group and
64120         other bits would be incorrect if they granted permission before
64121         the chown.
64122
64123         Fix porting problem for iswctype reported by Georg Schwarz in:
64124         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64125         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64126         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64127         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64128         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64129
64130 2006-12-03  Jim Meyering  <jim@meyering.net>
64131
64132         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64133         p->fts_statp may not yet be defined.
64134         (fts_read): Instead, set it in the caller, once p->fts_statp is
64135         sure to be defined, and corresponds to a top-level directory.
64136         This bug made du -x fail.  Here's the coreutils test case:
64137         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64138         Reported by Mike Frysinger.
64139
64140 2006-12-01  Jim Meyering  <jim@meyering.net>
64141
64142         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64143         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64144         Reported by Simon Josefsson.
64145
64146 2006-11-30  Jim Meyering  <jim@meyering.net>
64147
64148         * m4/warning.m4: Use the all-permissive copyright notice
64149         recommended by RMS (rather than LGPL).
64150         * m4/vararrays.m4: Likewise.
64151         * m4/flexmember.m4: Likewise.
64152
64153 2006-11-29  Bruno Haible  <bruno@clisp.org>
64154
64155         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64156         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64157         using +=.
64158         Reported by Simon Josefsson <simon@josefsson.org>.
64159
64160 2006-11-28  James Youngman <jay@gnu.org>
64161
64162         * README: Advise users that they might find the bug-gnulib@gnu.org
64163         and autotools-announce@gnu.org mailing lists useful.
64164
64165 2006-11-28  Bruno Haible  <bruno@clisp.org>
64166
64167         * m4/ptrdiff_max.m4: Remove file.
64168
64169 2006-11-21  Bruno Haible  <bruno@clisp.org>
64170
64171         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64172         _AC_COMPUTE_INT.
64173         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64174         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64175         _AC_COMPUTE_INT.
64176         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64177         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64178         _AC_COMPUTE_INT.
64179         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64180
64181 2006-11-28  Jim Meyering  <jim@meyering.net>
64182
64183         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64184         warning from "gcc -Wshadow" about shadowing the builtin.
64185
64186 2006-11-27  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64189         _AC_COMPUTE_INT.
64190         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64191
64192 2006-11-27  Bruno Haible  <bruno@clisp.org>
64193             Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64196
64197 2006-11-26  Bruno Haible  <bruno@clisp.org>
64198
64199         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64200         noinst_LTLIBRARIES.
64201
64202 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64203             Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64206         if compiling with "gcc -ansi".
64207
64208 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         Fix some incompatibilities with gcc -ansi -pedantic.
64211         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64212         if compiling pedantically with GCC, unless it's C99 or later.
64213         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64214         it mishandles gcc -ansi -pedantic as well.
64215         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64216         if gcc -pedantic.
64217         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64218         initializers for struct if -pedantic, unless it's C99 or later.
64219
64220 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64221
64222         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64223         Don't close an fd more than once. Identical atimes indicate
64224         success, not failure.
64225
64226 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64227
64228         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64229
64230 2006-11-23  Jim Meyering  <jim@meyering.net>
64231
64232         * build-aux/announce-gen: New file.  From coreutils.
64233
64234 2006-11-22  Jim Meyering  <jim@meyering.net>
64235
64236         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64237         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64238         (fts_read): Use a temporary to narrow the overused st_size member
64239         before using it in a switch statement.  Reported by Matthew Woehlke.
64240
64241         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64242         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64243
64244 2006-11-20  Bruno Haible  <bruno@clisp.org>
64245
64246         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64247         changequote instead of pairs of brackets.
64248         Reported by Andreas Schwab <schwab@suse.de>.
64249
64250 2006-11-21  Jim Meyering  <jim@meyering.net>
64251
64252         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64253         so as to remain compatible with older compilers.
64254         Patch from Michael Deutschmann.
64255
64256 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * MODULES.html.sh (File system functions): Add openat.
64259
64260         * lib/openat.h (rpl_fstatat): New macro, if
64261         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64262         (fstatat): Define to rpl_fstatat under the same conditions,
64263         unless COMPILING_FSTATAT.
64264         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64265         seems to have the bug.
64266         * lib/fstatat.c: New file.
64267         * modules/openat (Files): Add it.
64268
64269 2006-11-20  Bruno Haible  <bruno@clisp.org>
64270
64271         * Makefile: New file.
64272
64273 2006-11-20  Jim Meyering  <jim@meyering.net>
64274
64275         The beginnings of syntax-related checks for gnulib.
64276         * lib/Makefile: New file.
64277         * lib/t-idcache: New script.  Ensure that the two halves of
64278         idcache.c stay in sync.
64279
64280         * lib/idcache.c: Adjust comments in user- and group- portions to
64281         be more accurate, and to be consistent with one another.
64282
64283 2006-11-20  Jim Meyering  <jim@meyering.net>
64284
64285         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64286         continue using the flexible array member (thus, this module performs
64287         half as many malloc calls), with the addition that...
64288         (getgroup, getuser): Consistently record a non-match via an empty
64289         "name" string, and map an empty string match to a NULL return value.
64290         * modules/idcache (Depends-on): Re-add flexmember.
64291
64292         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64293         (getuidbyname, getgroup, getgidbyname): Likewise.
64294
64295         Use cleaner syntax: NULL rather than 0.
64296         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64297
64298 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64301         It mishandled the case where the group was missing.
64302         Problem reported by Greg Schafer.
64303         * modules/idcache: Likewise.
64304
64305 2006-11-18  Jim Meyering  <jim@meyering.net>
64306
64307         * check-module (%exempt_header): Add exception for some
64308         conditionally-included headers.
64309
64310         * modules/i-ring (Depends-on): Add verify.
64311         (License): Change to LGPL.
64312
64313 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64316         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64317         and inttostr.h.  Use snprintf rather than uinttostr, so that
64318         LGPLed code doesn't depend on GPLed.
64319
64320 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * modules/inline (License): Change from GPL to LGPL.
64323
64324 2006-11-17  Jim Meyering  <jim@meyering.net>
64325
64326         * modules/d-type (License): Switch to LGPL.
64327
64328 2006-11-15  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64331
64332 2006-11-15  Eric Blake  <ebb9@byu.net>
64333
64334         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64335         the module dependency.
64336
64337 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64338             Bruno Haible  <bruno@clisp.org>
64339
64340         * gnulib-tool (func_create_testdir): Add license consistency check.
64341
64342 2006-11-15  Eric Blake  <ebb9@byu.net>
64343
64344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64345         random "(cached)" in configure output.
64346
64347 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64348
64349         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64350         test for conforming inttypes.h is both announced and cached.
64351
64352         * MODULES.html.sh (seen_modules, seen_files): New variables.
64353         (func_module): Rewrite to use a few less gnulib-tool and sed
64354         invocations.  Avoid a couple of quadratic algorithms for ...
64355         (missed_modules, missed_files): ... these, with ...
64356         (func_append, func_tmpdir): ... these new functions, from
64357         gnulib-tool.  Analogously, install traps for cleanup.
64358
64359         * tests/test-gc.c (main): Remove unused variables.
64360         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64361
64362 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64363
64364         * modules/inttostr (License): Change to LGPL.
64365
64366 2006-11-14  Eric Blake  <ebb9@byu.net>
64367
64368         * modules/tempname (License): Change to LGPL.
64369
64370 2006-11-14  Eric Blake  <ebb9@byu.net>
64371
64372         * doc/functions.texi (Function Portability): *printf functions on
64373         Cygwin now understand all POSIX size specifiers.
64374
64375 2006-11-14  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/c-ctype (License): Change to LGPL.
64378
64379 2006-11-12  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64382         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64383         for GNOME libraries, for which the include files are installed in
64384         subdirectories of $prefix/include.
64385
64386 2006-11-12  Bruno Haible  <bruno@clisp.org>
64387
64388         * m4/lib-link.m4: Require at least autoconf-2.54.
64389         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64390         name to underscores for the --with option.
64391
64392 2006-11-13  Bruno Haible  <bruno@clisp.org>
64393
64394         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64395         the tests directory.
64396         Reported by Ralf Wildenhues.
64397
64398 2006-11-13  Bruno Haible  <bruno@clisp.org>
64399
64400         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64401         (func_emit_initmacro_end): Undo the override here.
64402         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64403         Works around the famous automake error in coreutils.
64404
64405 2006-11-13  Eric Blake  <ebb9@byu.net>
64406
64407         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64408         element, not its node.
64409
64410 2006-11-12  Bruno Haible  <bruno@clisp.org>
64411
64412         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64413         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64414
64415 2006-11-12  Bruno Haible  <bruno@clisp.org>
64416
64417         * gnulib-tool: New option --local-symlink.
64418         (func_usage): Document it.
64419         (lsymbolic): New variable.
64420         (func_import, func_create_testdir): If --symlink was not specified,
64421         test whether --local-symlink was specified and the file comes from
64422         the local_gnulib_dir.
64423
64424 2006-11-12  Bruno Haible  <bruno@clisp.org>
64425
64426         * gnulib-tool (func_ln): New function.
64427         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64428
64429 2006-11-12  Bruno Haible  <bruno@clisp.org>
64430
64431         Finish support for source files in subdirectories.
64432         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64433         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64434         AUTOMAKE_OPTIONS.
64435         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64436
64437 2006-11-12  Bruno Haible  <bruno@clisp.org>
64438
64439         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64440         EXTRA_lib_SOURCES augmentation.
64441         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64442
64443 2006-11-12  Jim Meyering  <jim@meyering.net>
64444
64445         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64446         file descriptors.  This also averts a failure on systems with
64447         native openat support when a traversed directory lacks "x" access.
64448         * lib/fts_.h: Include "i-ring.h"
64449         (struct FTS) [fts_fd_ring]: New member.
64450         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64451         (FCHDIR): Add parentheses.
64452         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64453         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64454         When descending, rather than simply closing the previous
64455         fts_cwd_fd value, push that file descriptor onto the ring.
64456         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64457         (fts_open): Initialize the new fd_ring member.
64458         (fts_close): Clear the ring.
64459         (fts_safe_changedir): When possible, use our new fd_ring to skip
64460         the diropen and fstat and dev/ino comparison that would normally
64461         accompany a virtual `chdir ("..")'.
64462
64463         * modules/fts (Depends-on): Add i-ring.
64464         * modules/i-ring: New module.
64465         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64466         * m4/i-ring.m4: New file.
64467
64468 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64469
64470         * gnulib-tool (func_create_testdir): Fix replacement of
64471         `build-aux' in configure.ac.  Run autotools in gltests
64472         subdirectory.
64473         (func_create_testdir, func_create_megatestdir, test): There is
64474         no need for '--force' in most autotool invocations in a new
64475         tree.  Actually fail the whole test if any of the tools, or the
64476         configure or make stages fail.
64477
64478         Sync from Automake.
64479         * build-aux/gnupload: Revert last change.  Add pointer to upload
64480         instructions of the GNU Maintenance Instructions.
64481         Suggestion by Karl Berry.
64482
64483 2006-11-10  Jim Meyering  <jim@meyering.net>
64484
64485         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64486
64487 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64490         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64491         (bind_textdomain_codeset) [! ENABLE_NLS]:
64492         Evaluate all the arguments.  That way, callers get compatible behavior
64493         if the arguments have side effects.  Also, it avoids some GCC
64494         diagnostics in some cases; Joel E. Denny reported problems when Bison
64495         was configured with --enable-gcc-warnigs.
64496
64497 2006-11-10  Jim Meyering  <jim@meyering.net>
64498
64499         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64500         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64501         account.
64502
64503 2006-11-10  Jim Meyering  <jim@meyering.net>
64504
64505         * modules/inline: New file/module.
64506         * modules/xalloc (Files): Remove m4/inline.m4.
64507         (Depends-on): Add inline, instead.
64508         * modules/oset: Likewise.
64509         * modules/list: Likewise.
64510
64511 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64514         Problem reported by Matthew Woehlke.
64515
64516 2006-11-09  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/tempname.c (gen_tempname): Remove variant that invokes
64519         __gen_tempname.
64520         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64521         __gen_tempname.
64522
64523 2006-11-08  Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64526         to 'yes' instead of 'cross-compiling'.
64527
64528 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * lib/quotearg.h (quotearg_free): New decl.
64531         * lib/quotearg.c (quotearg_free): New function.
64532         (slot0, nslots, slotvec0, slotvec):
64533         Now file-scope so that quotearg_free can get at them.
64534
64535 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64536
64537         Sync from Automake.
64538         * build-aux/gnupload: Add missing 'gnu' to example URL.
64539         Report by Karl Berry.
64540
64541 2006-11-08  Bruno Haible  <bruno@clisp.org>
64542
64543         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64544         Suggested by Paul Eggert.
64545
64546 2006-11-08  Jim Meyering  <jim@meyering.net>
64547
64548         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64549         It's already included if !_LIBC.
64550         (fts_safe_changedir): Add a comment.
64551
64552 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64555         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64556         Matthew Woehlke.
64557
64558         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64559         definitions up, to avoid colliding with change below.
64560         (static_inline) [HAVE_INLINE]: New macro.
64561         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64562         Provide extern decls when !HAVE_INLINE.  Do not define unless
64563         static_inline is defined, either by us or by xmalloc.c.  Use
64564         static_inline rather than static inline.
64565         (XCALLOC): Optimize sizeof(T) = 1 case.
64566         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64567
64568 2006-11-07  Bruno Haible  <bruno@clisp.org>
64569
64570         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64571         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64572         AC_C_INLINE.
64573         * modules/xalloc (Files): Add m4/inline.m4.
64574
64575 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64576
64577         * README: Fix typo.
64578         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64579         (Miscellanous Notes): ...from this.
64580
64581 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64584         Mention that offsetof should be used instead of sizeof.
64585         From Bruno Haible.
64586
64587 2006-11-07  Bruno Haible  <bruno@clisp.org>
64588
64589         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64590
64591 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64594         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64595         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64596         (gl_tree_add_before, gl_tree_add_after):
64597         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64598         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64599         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64600         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64601         (gl_linked_add_after, gl_linked_add_at): Likewise.
64602         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64603         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64604         (gl_tree_add_before, gl_tree_add_after): Likewise.
64605         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64606         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64607         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64608
64609 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64610
64611         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64612
64613 2006-11-06  Bruno Haible  <bruno@clisp.org>
64614
64615         * m4/inline.m4: New file.
64616         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64617         * modules/list (Files): Add m4/inline.m4.
64618         * modules/oset (Files): Likewise.
64619
64620 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * lib/idcache.c: Include <stddef.h>, for offsetof.
64623         (struct userid.name): Change from char * to a flexible array member.
64624         All uses changed.
64625         * modules/idcache (Depends-on): Add flexmember.
64626
64627         * MODULES.html.sh (Core language properties): New module flexmember.
64628         * modules/flexmember, m4/flexmember.m4: New files.
64629
64630         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64631         inline functions that are identical with the old xnmalloc_inline,
64632         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64633         that we can avoid some unnecessary integer multiplications and
64634         divisions in the common case where the element size is known at
64635         compile time.
64636         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64637         needed.
64638         (xnboundedmalloc): Remove.
64639         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64640         arguments, for consistency with rest of this header.
64641         (xcharalloc): Rewrite using XNMALLOC.
64642         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64643         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64644         versions have been moved to lib/xalloc.h and renamed to be the
64645         non-*_inline versions.
64646         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64647         and xnrealloc functions, since those functions are now inline and
64648         now call us.
64649         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64650         renaming described above.
64651         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64652         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64653         captures the dependency in AC_C_INLINE.
64654
64655         New module canonicalize-lgpl, proposed by Charles Wilson in
64656         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64657         with a few small changes afterwards.
64658         * MODULES.html.sh (File system functions): New module
64659         canonicalize-lgpl.
64660         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64661         and canonicalize_file_name.
64662         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64663         * modules/canonicalize-lgpl: New files.
64664
64665 2006-11-05  Bruno Haible  <bruno@clisp.org>
64666
64667         * gnulib-tool (func_import, func_create_testdir): Create directories
64668         also for files in subdirectories of lib/.
64669
64670 2006-11-05  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64673         ANSI C compliant.
64674
64675 2006-11-03  Bruno Haible  <bruno@clisp.org>
64676
64677         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64678         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64679         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64680         (xnboundedmalloc): New inline function.
64681         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64682         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64683         xmalloc.
64684         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64685         xmalloc.
64686         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64687         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64688         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64689         xmalloc.
64690         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64691         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64692         xmalloc.
64693         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64694         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64695         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64696         xmalloc.
64697         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64698         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64699         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64700         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64701         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64702         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64703         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64704
64705 2006-11-03  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/c-ctype.h [C++]: Define functions without name mangling.
64708         * lib/fwriteerror.h [C++]: Likewise.
64709         * lib/gcd.h [C++]: Likewise.
64710         * lib/linebreak.h [C++]: Likewise.
64711
64712 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64715         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64716         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64717         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64718         Check for functions and headers just once.
64719         Check for declaration of canonicalize_file_name.
64720         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64721
64722 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64723
64724         * gnulib-tool (func_import): Fix typo in actioncmd.
64725
64726 2006-11-02  Bruno Haible  <bruno@clisp.org>
64727
64728         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64729         newline sequence in the Makefile.am snippet as a space, like "make"
64730         does.
64731         Reported by Roger Persson <perrog@gmail.com>.
64732
64733 2006-11-01  Bruno Haible  <bruno@clisp.org>
64734
64735         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64736         already declared in <string.h>.
64737         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64738
64739 2006-11-01  Bruno Haible  <bruno@clisp.org>
64740
64741         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64742         * lib/strcase.h: Include <string.h>.
64743         (strcasecmp): Define to rpl_strcasecmp here.
64744
64745 2006-11-01  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64748
64749 2006-11-01  Eric Blake  <ebb9@byu.net>
64750
64751         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64752
64753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64754
64755 2006-10-29  Bruno Haible  <bruno@clisp.org>
64756
64757         Make it compile in C++ mode.
64758         * lib/full-write.c (full_rw): Add a cast.
64759
64760 2006-11-01  Bruno Haible  <bruno@clisp.org>
64761
64762         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64763         be POSIX compliant.
64764         Reported by Roger Persson <perrog@gmail.com>.
64765
64766 2006-11-01  Eric Blake  <ebb9@byu.net>
64767
64768         * lib/getopt_.h: Fix comments.
64769
64770 2006-10-31  Eric Blake  <ebb9@byu.net>
64771
64772         * modules/tmpdir (Depends-on): Add sys_stat.
64773         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64774         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64775         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64776         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64777         tempname.
64778
64779 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         Avoid some C++ diagnostics reported by Bruno Haible.
64782         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64783         xmalloc.
64784         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64785         (struct slotvec): Move to top level.
64786         (quotearg_n_options): Rewrite to avoid xmalloc.
64787         * lib/xalloc.h (xcharalloc): New function.
64788         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64789         [defined __cplusplus]: Add function template that provides result
64790         type propagation.  This part of the change is from Bruno Haible.
64791
64792 2006-10-29  Bruno Haible  <bruno@clisp.org>
64793
64794         Make it compile in C++ mode.
64795         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64796         * lib/strnlen1.c (strnlen1): Cast memchr result.
64797         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64798         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64799         (create_temp_dir): Rename local variable 'template'.
64800         (compile_csharp_using_sscli): Add cast.
64801         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64802         * lib/findprog.c (find_in_path): Likewise.
64803         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64804         * lib/wait-process.c (register_slave_subprocess): Likewise.
64805
64806 2006-10-22  Bruno Haible  <bruno@clisp.org>
64807
64808         * modules/tsearch: New file.
64809         * lib/tsearch.h: New file.
64810         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64811         * m4/tsearch.m4: New file.
64812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64813
64814 2006-10-29  Eric Blake  <ebb9@byu.net>
64815
64816         * lib/arcfour.c: Assume config.h.
64817         * lib/arctwo.c: Likewise.
64818         * lib/base64.c: Likewise.
64819         * lib/check-version.c: Likewise.
64820         * lib/crc.c: Likewise.
64821         * lib/des.c: Likewise.
64822         * lib/gc-gnulib.c: Likewise.
64823         * lib/gc-libgcrypt.c: Likewise.
64824         * lib/gc-pbkdf2-sha1.c: Likewise.
64825         * lib/getaddrinfo.c: Likewise.
64826         * lib/getdelim.c: Likewise.
64827         * lib/getline.c: Likewise.
64828         * lib/hmac-md5.c: Likewise.
64829         * lib/hmac-sha1.c: Likewise.
64830         * lib/iconvme.c: Likewise.
64831         * lib/md2.c: Likewise.
64832         * lib/md4.c: Likewise.
64833         * lib/memxor.c: Likewise.
64834         * lib/read-file.c: Likewise.
64835         * lib/readline.c: Likewise.
64836         * lib/rijndael-alg-fst.c: Likewise.
64837         * lib/rijndael-api-fst.c: Likewise.
64838         * lib/xgetdomainname.c: Likewise.
64839
64840 2006-10-28  Eric Blake  <ebb9@byu.net>
64841
64842         * lib/xstrndup.c: Assume config.h.
64843
64844 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64847         stat-macros.h is now for our own macros, whereas stat_h is for
64848         macros in the <sys/stat.h> name space.
64849         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64850         (STAT_MACROS_H): Remove.
64851         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64852         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64853         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64854         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64855         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64856         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64857         Move these macros to ...
64858         * lib/stat_.h: here.  Don't include stat-macros.h.
64859         * lib/canonicalize.c: Don't include stat-macros.h.
64860         * lib/chown.c: Likewise.
64861         * lib/euidaccess.c: Likewise.
64862         * lib/file-type.c: Likewise.
64863         * lib/filemode.c: Likewise.
64864         * lib/glob.c: Likewise.
64865         * lib/isapipe.c: Likewise.
64866         * lib/lchown.c: Likewise.
64867         * lib/lstat.c: Likewise.
64868         * lib/mkdir-p.c: Likewise.
64869         * lib/rmdir.c: Likewise.
64870         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64872         unless mkdir isn't declared, to speed up 'configure'.
64873         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64874         would define all the S_* symbols.
64875         * modules/canonicalize (Depends-on):
64876         Depend on sys_stat, not stat-macros.
64877         * modules/chown: Likewise.
64878         * modules/euidaccess: Likewise.
64879         * modules/filemode: Likewise.
64880         * modules/file-type: Likewise.
64881         * modules/glob: Likewise.
64882         * modules/isapipe: Likewise.
64883         * modules/lchown: Likewise.
64884         * modules/lstat: Likewise.
64885         * modules/mkancesdirs: Likewise.
64886         * modules/rmdir: Likewise.
64887         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64888         * modules/modechange: Likewise.
64889         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64890         (configure.ac): Remove gl_STAT_MACROS.
64891         * modules/sys_stat (Depends-on): Remove stat-macros.
64892
64893 2006-10-27  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/signed.m4: Remove file.
64896         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64897         invocation.
64898         * modules/vasnprintf (Files): Remove m4/signed.m4.
64899
64900 2006-10-27  Bruno Haible  <bruno@clisp.org>
64901
64902         Update to GNU gettext 0.16.
64903         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64904         m4/inttypes-h.m4, m4/signed.m4.
64905         * m4/gettext.m4: Update to GNU gettext 0.16.
64906         * m4/intl.m4: New file, from GNU gettext.
64907         * m4/intldir.m4: New file, from GNU gettext.
64908         * config/srclist.txt: Update
64909
64910 2006-10-27  Eric Blake  <ebb9@byu.net>
64911
64912         * MODULES.html.sh: Document tempname.
64913         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64914         dependencies.
64915         (Files): Move lib/tempname.c...
64916         * modules/tempname: ...to this new module.
64917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64918         (gl_PREREQ_TEMPNAME): Move...
64919         * m4/tempname.m4: ...to this new file.
64920         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64921         * modules/sys_stat (Depends-on): Add stat-macros.
64922         * lib/stat_.h (includes): Pick up stat macros.
64923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64924         if stat macros are broken.
64925         * lib/tempname.c (includes): No need to include "stat-macros.h".
64926         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64927         (direxists, __path_search) [!_LIBC]: Don't compile these in
64928         gnulib; the tmpdir module covers that.
64929         * lib/tempname.h: New file.
64930
64931 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * COPYING: Explain how gnulib-tool converts licence headers.
64934         Almost all wording by Eric Blake.
64935
64936 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         * lib/mbchar.h (is_basic_table): Make read-only.
64939         * lib/mbchar.c (is_basic_table): Likewise.
64940         Reported by John Darrington.
64941
64942 2006-10-25  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/progname.h (set_program_name): Undefine before defining.
64945
64946 2006-10-25  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64949         false for non-gcc C++ compilers.
64950         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64951
64952 2006-10-24  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64955         iconv implementations like Irix iconv.
64956
64957 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64958
64959         * modules/vararrays: New file.
64960         * m4/vararrays.m4: New file, taken from diffutils.
64961         * MODULES.html.sh: New module vararrays.
64962
64963 2006-10-24  Karl Berry  <karl@gnu.org>
64964
64965         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64966         Don't call GNU Unix.
64967
64968 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64969
64970         * users.txt: Add Libtool.
64971
64972         Sync from Libtool:
64973
64974         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64977         to gnulib's policy of including config.h unconditionally.
64978
64979 2006-10-24  Bruno Haible  <bruno@clisp.org>
64980
64981         * modules/wcwidth (Files): Add m4/wint_t.m4.
64982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64983         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64984
64985 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64988         to pacify GCC with some -W flags enabled.  Problem reported by
64989         Bruno Haible.
64990
64991 2006-10-24  Jim Meyering  <jim@meyering.net>
64992
64993         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64994         Reported by Karl Berry.
64995
64996 2006-10-23  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64999
65000 2006-10-24  Bruno Haible  <bruno@clisp.org>
65001
65002         * lib/gl_list.h: Use C comment style, not C++ comment style.
65003
65004 2006-10-23  Eric Blake  <ebb9@byu.net>
65005
65006         * lib/getaddrinfo.c (includes): Add missing include.
65007
65008 2006-10-23  Bruno Haible  <bruno@clisp.org>
65009             Paul Eggert  <eggert@cs.ucla.edu>
65010
65011         Ability to rename obstack_free.
65012         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65013         obstack_free.
65014         (obstack_free): Invoke the __obstack_free macro.
65015         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65016
65017 2006-10-23  Bruno Haible  <bruno@clisp.org>
65018             Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65021         __argc, __argv from the declaration. (They are defined as macros on
65022         mingw.)
65023
65024 2006-10-22  Bruno Haible  <bruno@clisp.org>
65025
65026         * doc/gnulib-intro.texi: New file.
65027         * doc/gnulib.texi: Include it.
65028
65029 2006-10-21  Bruno Haible  <bruno@clisp.org>
65030
65031         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65032         "Introduction", "Miscellanous Notes", "Particular Modules".
65033
65034 2006-10-21  Bruno Haible  <bruno@clisp.org>
65035
65036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65037         Change mostlyclean-local rule to avoid sh syntax error from bash
65038         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65039
65040 2006-10-23  Jim Meyering  <jim@meyering.net>
65041
65042         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65043         in place of snprintf.
65044
65045         * modules/inttostr (Files): Add lib/uinttostr.c.
65046         * lib/uinttostr.c (inttostr): New file/function.
65047         * lib/inttostr.h (uinttostr): Declare.
65048         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65049         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65050         Add uinttostr.
65051         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65052
65053 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * lib/canonicalize.c (ELOOP): Define if not already defined.
65056         Problem reported by Bruno Haible in
65057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65058
65059 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65062         Problem reported by Perry Smith and Ville Laurikari.
65063
65064         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65065         uses.
65066
65067 2006-10-19  Bruno Haible  <bruno@clisp.org>
65068
65069         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65070         for mingw.
65071
65072 2006-10-19  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65075         Needed for mingw.
65076
65077 2006-10-19  Bruno Haible  <bruno@clisp.org>
65078
65079         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65080
65081 2006-10-19  Bruno Haible  <bruno@clisp.org>
65082
65083         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65084         it.
65085
65086 2006-10-19  Bruno Haible  <bruno@clisp.org>
65087
65088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65089         invocation.
65090
65091 2006-10-19  Bruno Haible  <bruno@clisp.org>
65092
65093         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65094         mountlist by default.
65095
65096 2006-10-16  Bruno Haible  <bruno@clisp.org>
65097
65098         * lib/c-strstr.c: Include c-strstr.h.
65099
65100 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65101
65102         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65103         in a slash.
65104
65105 2006-10-18  Bruno Haible  <bruno@clisp.org>
65106
65107         * lib/lock.h [C++]: Wrap definitions in extern "C".
65108
65109 2006-10-18  Bruno Haible  <bruno@clisp.org>
65110
65111         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65112         gl_LIBOBJS list.
65113
65114 2006-10-18  Bruno Haible  <bruno@clisp.org>
65115
65116         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65117
65118 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * lib/xstrtol.h: Include gettext.h.
65121         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65122         Problem reported by Eric Blake.
65123         * modules/xstrtol (Depends-on): Add gettext-h.
65124
65125 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65126
65127         * lib/strftime.c (advance): New macro.
65128         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65129         incomplete type, so you can't add 0 to it.  Problem and patch
65130         reported by Eelco Dolstra for dietlibc.
65131
65132 2006-10-18  Jim Meyering  <jim@meyering.net>
65133
65134         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65135         type for a local, and rename it: s/up/user_proc/.
65136
65137 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65138
65139         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65140         READ_UTMP_USER_PROCESS.
65141         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65142
65143 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65146         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65147
65148 2006-10-17  Eric Blake  <ebb9@byu.net>
65149
65150         * lib/sigprocmask.c (sigprocmask): Fix typo.
65151
65152         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65153
65154         * modules/clean-temp (Makefile.am): Don't add to make output...
65155         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65156         config.h.
65157
65158 2006-10-17  Bruno Haible  <bruno@clisp.org>
65159
65160         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65161         differently if DEFAULT_TEXT_DOMAIN is set.
65162
65163 2006-10-16  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/clean-temp.c: Include fwriteerror.h.
65166
65167 2006-10-16  Bruno Haible  <bruno@clisp.org>
65168
65169         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65170
65171 2006-10-16  Bruno Haible  <bruno@clisp.org>
65172
65173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65174         * lib/sigprocmask.h: Include <sys/types.h>.
65175         (sigset_t): Use the system's definition if present.
65176
65177 2006-10-17  Eric Blake  <ebb9@byu.net>
65178
65179         * lib/xvasprintf.c (includes): Assume config.h.
65180         * lib/xasprintf.c (includes): Likewise.
65181
65182 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65185         at least as wide as intmax_t.
65186
65187 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65188
65189         (Imported from Automake.)
65190         * build-aux/gnupload: Update to version 1.1 of directive file.
65191
65192 2006-10-16  Eric Blake  <ebb9@byu.net>
65193
65194         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65195         match Automake 1.10a.
65196
65197 2006-10-14  Bruno Haible  <bruno@clisp.org>
65198
65199         * modules/sigprocmask: New file.
65200         * lib/sigprocmask.h: New file.
65201         * lib/sigprocmask.c: New file.
65202         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65203         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65204         request sigprocmask.o.
65205         (gl_PREREQ_SIGPROCMASK): New macro.
65206         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65207         (Depends-on): Add sigprocmask.
65208         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65209         gt_SIGNALBLOCKING. Test for 'raise' only once.
65210         * lib/fatal-signal.c: Include sigprocmask.h.
65211         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65212         unblock_fatal_signals): Define always.
65213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65214         sigprocmask.
65215
65216 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         Sync from Automake.
65219         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65220         which incorrectly sets the mode of an existing destination
65221         directory.  In some cases the unpatched install-sh could do the
65222         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65223         system.  We hope this is rare in practice, but it's clearly worth
65224         fixing.  Problem reported by Alex Unleashed in
65225         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65226         Also, don't bother to check for -m bugs unless we're using -m;
65227         suggested by Stepan Kasal.
65228
65229 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65230
65231         Sync from Automake.
65232         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65233         `-c' flag, so they appear at the same position as in %FASTDEP%
65234         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65235         which ignores unknown options only after the first non-option.
65236         Bug report against M4 by Nelson H. F. Beebe.
65237
65238 2006-10-13  Jim Meyering  <jim@meyering.net>
65239
65240         Fix a bug in yesterday's change.
65241         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65242         p->fts_statp->st_dev would be used uninitialized.
65243         Ensures that we always call fts_stat on the very first entry.
65244         Miklos Szeredi reported that find -xdev stopped working.
65245
65246 2006-10-12  Bruno Haible  <bruno@clisp.org>
65247
65248         * gnulib-tool (func_get_automake_snippet): Append an automatically
65249         computed EXTRA_DIST augmentation.
65250         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65251         * modules/alloca-opt (Makefile.am): Likewise.
65252         * modules/allocsa (Makefile.am): Likewise.
65253         * modules/arcfour (Makefile.am): Likewise.
65254         * modules/arctwo (Makefile.am): Likewise.
65255         * modules/argmatch (Makefile.am): Likewise.
65256         * modules/argz (Makefile.am): Likewise.
65257         * modules/atexit (Makefile.am): Likewise.
65258         * modules/backupfile (Makefile.am): Likewise.
65259         * modules/byteswap (Makefile.am): Likewise.
65260         * modules/c-strtod (Makefile.am): Likewise.
65261         * modules/c-strtold (Makefile.am): Likewise.
65262         * modules/calloc (Makefile.am): Likewise.
65263         * modules/canon-host (Makefile.am): Likewise.
65264         * modules/canonicalize (Makefile.am): Likewise.
65265         * modules/chdir-long (Makefile.am): Likewise.
65266         * modules/chdir-safer (Makefile.am): Likewise.
65267         * modules/check-version (Makefile.am): Likewise.
65268         * modules/chown (Makefile.am): Likewise.
65269         * modules/cloexec (Makefile.am): Likewise.
65270         * modules/close-stream (Makefile.am): Likewise.
65271         * modules/closeout (Makefile.am): Likewise.
65272         * modules/crc (Makefile.am): Likewise.
65273         * modules/csharpexec (Makefile.am): Likewise.
65274         * modules/cycle-check (Makefile.am): Likewise.
65275         * modules/des (Makefile.am): Likewise.
65276         * modules/dev-ino (Makefile.am): Likewise.
65277         * modules/dirfd (Makefile.am): Likewise.
65278         * modules/dirname (Makefile.am): Likewise.
65279         * modules/dup2 (Makefile.am): Likewise.
65280         * modules/eealloc (Makefile.am): Likewise.
65281         * modules/error (Makefile.am): Likewise.
65282         * modules/euidaccess (Makefile.am): Likewise.
65283         * modules/exclude (Makefile.am): Likewise.
65284         * modules/exitfail (Makefile.am): Likewise.
65285         * modules/fcntl-safer (Makefile.am): Likewise.
65286         * modules/fcntl (Makefile.am): Likewise.
65287         * modules/file-type (Makefile.am): Likewise.
65288         * modules/fileblocks (Makefile.am): Likewise.
65289         * modules/filemode (Makefile.am): Likewise.
65290         * modules/filenamecat (Makefile.am): Likewise.
65291         * modules/fnmatch (Makefile.am): Likewise.
65292         * modules/fopen-safer (Makefile.am): Likewise.
65293         * modules/fpending (Makefile.am): Likewise.
65294         * modules/fprintftime (Makefile.am): Likewise.
65295         * modules/free (Makefile.am): Likewise.
65296         * modules/fsusage (Makefile.am): Likewise.
65297         * modules/ftruncate (Makefile.am): Likewise.
65298         * modules/fts (Makefile.am): Likewise.
65299         * modules/gc-arcfour (Makefile.am): Likewise.
65300         * modules/gc-des (Makefile.am): Likewise.
65301         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65302         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65303         * modules/gc-md4 (Makefile.am): Likewise.
65304         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65305         * modules/gc-sha1 (Makefile.am): Likewise.
65306         * modules/gc (Makefile.am): Likewise.
65307         * modules/getaddrinfo (Makefile.am): Likewise.
65308         * modules/getcwd (Makefile.am): Likewise.
65309         * modules/getdelim (Makefile.am): Likewise.
65310         * modules/getdomainname (Makefile.am): Likewise.
65311         * modules/getgroups (Makefile.am): Likewise.
65312         * modules/gethostname (Makefile.am): Likewise.
65313         * modules/gethrxtime (Makefile.am): Likewise.
65314         * modules/getline (Makefile.am): Likewise.
65315         * modules/getloadavg (Makefile.am): Likewise.
65316         * modules/getlogin_r (Makefile.am): Likewise.
65317         * modules/getndelim2 (Makefile.am): Likewise.
65318         * modules/getopt (Makefile.am): Likewise.
65319         * modules/getpagesize (Makefile.am): Likewise.
65320         * modules/getpass-gnu (Makefile.am): Likewise.
65321         * modules/getpass (Makefile.am): Likewise.
65322         * modules/getsubopt (Makefile.am): Likewise.
65323         * modules/gettime (Makefile.am): Likewise.
65324         * modules/gettimeofday (Makefile.am): Likewise.
65325         * modules/getugroups (Makefile.am): Likewise.
65326         * modules/getusershell (Makefile.am): Likewise.
65327         * modules/glob (Makefile.am): Likewise.
65328         * modules/group-member (Makefile.am): Likewise.
65329         * modules/hard-locale (Makefile.am): Likewise.
65330         * modules/hash (Makefile.am): Likewise.
65331         * modules/hmac-md5 (Makefile.am): Likewise.
65332         * modules/hmac-sha1 (Makefile.am): Likewise.
65333         * modules/human (Makefile.am): Likewise.
65334         * modules/idcache (Makefile.am): Likewise.
65335         * modules/imaxabs (Makefile.am): Likewise.
65336         * modules/imaxdiv (Makefile.am): Likewise.
65337         * modules/inet_ntop (Makefile.am): Likewise.
65338         * modules/inet_pton (Makefile.am): Likewise.
65339         * modules/intprops (Makefile.am): Likewise.
65340         * modules/inttostr (Makefile.am): Likewise.
65341         * modules/inttypes (Makefile.am): Likewise.
65342         * modules/isapipe (Makefile.am): Likewise.
65343         * modules/javaversion (Makefile.am): Likewise.
65344         * modules/lchmod (Makefile.am): Likewise.
65345         * modules/lchown (Makefile.am): Likewise.
65346         * modules/localcharset (Makefile.am): Likewise.
65347         * modules/long-options (Makefile.am): Likewise.
65348         * modules/lstat (Makefile.am): Likewise.
65349         * modules/malloc (Makefile.am): Likewise.
65350         * modules/mathl (Makefile.am): Likewise.
65351         * modules/mbchar (Makefile.am): Likewise.
65352         * modules/md2 (Makefile.am): Likewise.
65353         * modules/md4 (Makefile.am): Likewise.
65354         * modules/md5 (Makefile.am): Likewise.
65355         * modules/memcasecmp (Makefile.am): Likewise.
65356         * modules/memchr (Makefile.am): Likewise.
65357         * modules/memcmp (Makefile.am): Likewise.
65358         * modules/memcoll (Makefile.am): Likewise.
65359         * modules/memcpy (Makefile.am): Likewise.
65360         * modules/memmem (Makefile.am): Likewise.
65361         * modules/memmove (Makefile.am): Likewise.
65362         * modules/mempcpy (Makefile.am): Likewise.
65363         * modules/memrchr (Makefile.am): Likewise.
65364         * modules/memset (Makefile.am): Likewise.
65365         * modules/memxor (Makefile.am): Likewise.
65366         * modules/mkancesdirs (Makefile.am): Likewise.
65367         * modules/mkdir-p (Makefile.am): Likewise.
65368         * modules/mkdir (Makefile.am): Likewise.
65369         * modules/mkdtemp (Makefile.am): Likewise.
65370         * modules/mkstemp (Makefile.am): Likewise.
65371         * modules/mktime (Makefile.am): Likewise.
65372         * modules/modechange (Makefile.am): Likewise.
65373         * modules/mountlist (Makefile.am): Likewise.
65374         * modules/nanosleep (Makefile.am): Likewise.
65375         * modules/obstack (Makefile.am): Likewise.
65376         * modules/openat (Makefile.am): Likewise.
65377         * modules/pagealign_alloc (Makefile.am): Likewise.
65378         * modules/pathmax (Makefile.am): Likewise.
65379         * modules/physmem (Makefile.am): Likewise.
65380         * modules/poll (Makefile.am): Likewise.
65381         * modules/posixtm (Makefile.am): Likewise.
65382         * modules/posixver (Makefile.am): Likewise.
65383         * modules/putenv (Makefile.am): Likewise.
65384         * modules/quote (Makefile.am): Likewise.
65385         * modules/quotearg (Makefile.am): Likewise.
65386         * modules/raise (Makefile.am): Likewise.
65387         * modules/read-file (Makefile.am): Likewise.
65388         * modules/readline (Makefile.am): Likewise.
65389         * modules/readlink (Makefile.am): Likewise.
65390         * modules/readtokens (Makefile.am): Likewise.
65391         * modules/readutmp (Makefile.am): Likewise.
65392         * modules/realloc (Makefile.am): Likewise.
65393         * modules/regex (Makefile.am): Likewise.
65394         * modules/rename-dest-slash (Makefile.am): Likewise.
65395         * modules/rename (Makefile.am): Likewise.
65396         * modules/rijndael (Makefile.am): Likewise.
65397         * modules/rmdir (Makefile.am): Likewise.
65398         * modules/rpmatch (Makefile.am): Likewise.
65399         * modules/safe-read (Makefile.am): Likewise.
65400         * modules/safe-write (Makefile.am): Likewise.
65401         * modules/same-inode (Makefile.am): Likewise.
65402         * modules/same (Makefile.am): Likewise.
65403         * modules/save-cwd (Makefile.am): Likewise.
65404         * modules/savedir (Makefile.am): Likewise.
65405         * modules/setenv (Makefile.am): Likewise.
65406         * modules/settime (Makefile.am): Likewise.
65407         * modules/sha1 (Makefile.am): Likewise.
65408         * modules/sig2str (Makefile.am): Likewise.
65409         * modules/snprintf (Makefile.am): Likewise.
65410         * modules/stat-macros (Makefile.am): Likewise.
65411         * modules/stat-time (Makefile.am): Likewise.
65412         * modules/stdbool (Makefile.am): Likewise.
65413         * modules/stdint (Makefile.am): Likewise.
65414         * modules/stdlib-safer (Makefile.am): Likewise.
65415         * modules/stpcpy (Makefile.am): Likewise.
65416         * modules/stpncpy (Makefile.am): Likewise.
65417         * modules/strcase (Makefile.am): Likewise.
65418         * modules/strcasestr (Makefile.am): Likewise.
65419         * modules/strchrnul (Makefile.am): Likewise.
65420         * modules/strcspn (Makefile.am): Likewise.
65421         * modules/strdup (Makefile.am): Likewise.
65422         * modules/strerror (Makefile.am): Likewise.
65423         * modules/strftime (Makefile.am): Likewise.
65424         * modules/strndup (Makefile.am): Likewise.
65425         * modules/strnlen (Makefile.am): Likewise.
65426         * modules/strpbrk (Makefile.am): Likewise.
65427         * modules/strsep (Makefile.am): Likewise.
65428         * modules/strstr (Makefile.am): Likewise.
65429         * modules/strtod (Makefile.am): Likewise.
65430         * modules/strtoimax (Makefile.am): Likewise.
65431         * modules/strtok_r (Makefile.am): Likewise.
65432         * modules/strtol (Makefile.am): Likewise.
65433         * modules/strtoll (Makefile.am): Likewise.
65434         * modules/strtoul (Makefile.am): Likewise.
65435         * modules/strtoull (Makefile.am): Likewise.
65436         * modules/strtoumax (Makefile.am): Likewise.
65437         * modules/strverscmp (Makefile.am): Likewise.
65438         * modules/sys_socket (Makefile.am): Likewise.
65439         * modules/sys_stat (Makefile.am): Likewise.
65440         * modules/sysexits (Makefile.am): Likewise.
65441         * modules/time_r (Makefile.am): Likewise.
65442         * modules/timegm (Makefile.am): Likewise.
65443         * modules/timespec (Makefile.am): Likewise.
65444         * modules/tmpfile-safer (Makefile.am): Likewise.
65445         * modules/trim (Makefile.am): Likewise.
65446         * modules/unistd-safer (Makefile.am): Likewise.
65447         * modules/unlinkdir (Makefile.am): Likewise.
65448         * modules/unlocked-io (Makefile.am): Likewise.
65449         * modules/userspec (Makefile.am): Likewise.
65450         * modules/utime (Makefile.am): Likewise.
65451         * modules/utimecmp (Makefile.am): Likewise.
65452         * modules/utimens (Makefile.am): Likewise.
65453         * modules/vasnprintf (Makefile.am): Likewise.
65454         * modules/vasprintf (Makefile.am): Likewise.
65455         * modules/vsnprintf (Makefile.am): Likewise.
65456         * modules/xalloc (Makefile.am): Likewise.
65457         * modules/xgetcwd (Makefile.am): Likewise.
65458         * modules/xnanosleep (Makefile.am): Likewise.
65459         * modules/xreadlink (Makefile.am): Likewise.
65460         * modules/xstrtod (Makefile.am): Likewise.
65461         * modules/xstrtol (Makefile.am): Likewise.
65462         * modules/xstrtold (Makefile.am): Likewise.
65463         * modules/yesno (Makefile.am): Likewise.
65464         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65465
65466 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * modules/error (Makefile.am): Distribute files through
65469         EXTRA_DIST, not lib_SOURCES.
65470
65471 2006-10-12  Eric Blake  <ebb9@byu.net>
65472
65473         * modules/error (Makefile.am): Distribute files in /lib.
65474         * modules/obstack (Makefile.am): Likewise.
65475
65476 2006-10-12  Bruno Haible  <bruno@clisp.org>
65477
65478         * modules/acl (Makefile.am): Distribute all files in lib/ through
65479         EXTRA_DIST.
65480         * modules/arcfour (Makefile.am): Likewise.
65481         * modules/arctwo (Makefile.am): Likewise.
65482         * modules/argmatch (Makefile.am): Likewise.
65483         * modules/argz (Makefile.am): Likewise.
65484         * modules/atexit (Makefile.am): Likewise.
65485         * modules/backupfile (Makefile.am): Likewise.
65486         * modules/c-strtod (Makefile.am): Likewise.
65487         * modules/c-strtold (Makefile.am): Likewise.
65488         * modules/calloc (Makefile.am): Likewise.
65489         * modules/canon-host (Makefile.am): Likewise.
65490         * modules/canonicalize (Makefile.am): Likewise.
65491         * modules/chdir-long (Makefile.am): Likewise.
65492         * modules/chdir-safer (Makefile.am): Likewise.
65493         * modules/check-version (Makefile.am): Likewise.
65494         * modules/chown (Makefile.am): Likewise.
65495         * modules/cloexec (Makefile.am): Likewise.
65496         * modules/close-stream (Makefile.am): Likewise.
65497         * modules/closeout (Makefile.am): Likewise.
65498         * modules/crc (Makefile.am): Likewise.
65499         * modules/cycle-check (Makefile.am): Likewise.
65500         * modules/des (Makefile.am): Likewise.
65501         * modules/dirfd (Makefile.am): Likewise.
65502         * modules/dirname (Makefile.am): Likewise.
65503         * modules/dup2 (Makefile.am): Likewise.
65504         * modules/euidaccess (Makefile.am): Likewise.
65505         * modules/exclude (Makefile.am): Likewise.
65506         * modules/exitfail (Makefile.am): Likewise.
65507         * modules/fcntl-safer (Makefile.am): Likewise.
65508         * modules/file-type (Makefile.am): Likewise.
65509         * modules/fileblocks (Makefile.am): Likewise.
65510         * modules/filemode (Makefile.am): Likewise.
65511         * modules/filenamecat (Makefile.am): Likewise.
65512         * modules/fnmatch (Makefile.am): Likewise.
65513         * modules/fopen-safer (Makefile.am): Likewise.
65514         * modules/fpending (Makefile.am): Likewise.
65515         * modules/fprintftime (Makefile.am): Likewise.
65516         * modules/free (Makefile.am): Likewise.
65517         * modules/fsusage (Makefile.am): Likewise.
65518         * modules/ftruncate (Makefile.am): Likewise.
65519         * modules/fts (Makefile.am): Likewise.
65520         * modules/gc (Makefile.am): Likewise.
65521         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65522         * modules/getaddrinfo (Makefile.am): Likewise.
65523         * modules/getcwd (Makefile.am): Likewise.
65524         * modules/getdelim (Makefile.am): Likewise.
65525         * modules/getdomainname (Makefile.am): Likewise.
65526         * modules/getgroups (Makefile.am): Likewise.
65527         * modules/gethostname (Makefile.am): Likewise.
65528         * modules/gethrxtime (Makefile.am): Likewise.
65529         * modules/getline (Makefile.am): Likewise.
65530         * modules/getloadavg (Makefile.am): Likewise.
65531         * modules/getlogin_r (Makefile.am): Likewise.
65532         * modules/getopt (Makefile.am): Likewise.
65533         * modules/getpass (Makefile.am): Likewise.
65534         * modules/getpass-gnu (Makefile.am): Likewise.
65535         * modules/getsubopt (Makefile.am): Likewise.
65536         * modules/gettime (Makefile.am): Likewise.
65537         * modules/gettimeofday (Makefile.am): Likewise.
65538         * modules/getugroups (Makefile.am): Likewise.
65539         * modules/getusershell (Makefile.am): Likewise.
65540         * modules/glob (Makefile.am): Likewise.
65541         * modules/group-member (Makefile.am): Likewise.
65542         * modules/hard-locale (Makefile.am): Likewise.
65543         * modules/hash (Makefile.am): Likewise.
65544         * modules/hmac-md5 (Makefile.am): Likewise.
65545         * modules/hmac-sha1 (Makefile.am): Likewise.
65546         * modules/human (Makefile.am): Likewise.
65547         * modules/idcache (Makefile.am): Likewise.
65548         * modules/imaxabs (Makefile.am): Likewise.
65549         * modules/imaxdiv (Makefile.am): Likewise.
65550         * modules/inet_ntop (Makefile.am): Likewise.
65551         * modules/inet_pton (Makefile.am): Likewise.
65552         * modules/inttostr (Makefile.am): Likewise.
65553         * modules/isapipe (Makefile.am): Likewise.
65554         * modules/lchown (Makefile.am): Likewise.
65555         * modules/long-options (Makefile.am): Likewise.
65556         * modules/lstat (Makefile.am): Likewise.
65557         * modules/malloc (Makefile.am): Likewise.
65558         * modules/mathl (Makefile.am): Likewise.
65559         * modules/mbchar (Makefile.am): Likewise.
65560         * modules/md2 (Makefile.am): Likewise.
65561         * modules/md4 (Makefile.am): Likewise.
65562         * modules/md5 (Makefile.am): Likewise.
65563         * modules/memcasecmp (Makefile.am): Likewise.
65564         * modules/memchr (Makefile.am): Likewise.
65565         * modules/memcmp (Makefile.am): Likewise.
65566         * modules/memcoll (Makefile.am): Likewise.
65567         * modules/memcpy (Makefile.am): Likewise.
65568         * modules/memmem (Makefile.am): Likewise.
65569         * modules/memmove (Makefile.am): Likewise.
65570         * modules/mempcpy (Makefile.am): Likewise.
65571         * modules/memrchr (Makefile.am): Likewise.
65572         * modules/memset (Makefile.am): Likewise.
65573         * modules/memxor (Makefile.am): Likewise.
65574         * modules/mkancesdirs (Makefile.am): Likewise.
65575         * modules/mkdir (Makefile.am): Likewise.
65576         * modules/mkdir-p (Makefile.am): Likewise.
65577         * modules/mkdtemp (Makefile.am): Likewise.
65578         * modules/mkstemp (Makefile.am): Likewise.
65579         * modules/mktime (Makefile.am): Likewise.
65580         * modules/modechange (Makefile.am): Likewise.
65581         * modules/mountlist (Makefile.am): Likewise.
65582         * modules/nanosleep (Makefile.am): Likewise.
65583         * modules/openat (Makefile.am): Likewise.
65584         * modules/pagealign_alloc (Makefile.am): Likewise.
65585         * modules/physmem (Makefile.am): Likewise.
65586         * modules/poll (Makefile.am): Likewise.
65587         * modules/posixtm (Makefile.am): Likewise.
65588         * modules/posixver (Makefile.am): Likewise.
65589         * modules/putenv (Makefile.am): Likewise.
65590         * modules/quote (Makefile.am): Likewise.
65591         * modules/quotearg (Makefile.am): Likewise.
65592         * modules/raise (Makefile.am): Likewise.
65593         * modules/read-file (Makefile.am): Likewise.
65594         * modules/readline (Makefile.am): Likewise.
65595         * modules/readlink (Makefile.am): Likewise.
65596         * modules/readtokens (Makefile.am): Likewise.
65597         * modules/readutmp (Makefile.am): Likewise.
65598         * modules/realloc (Makefile.am): Likewise.
65599         * modules/regex (Makefile.am): Likewise.
65600         * modules/rename (Makefile.am): Likewise.
65601         * modules/rename-dest-slash (Makefile.am): Likewise.
65602         * modules/rijndael (Makefile.am): Likewise.
65603         * modules/rmdir (Makefile.am): Likewise.
65604         * modules/rpmatch (Makefile.am): Likewise.
65605         * modules/safe-read (Makefile.am): Likewise.
65606         * modules/safe-write (Makefile.am): Likewise.
65607         * modules/same (Makefile.am): Likewise.
65608         * modules/save-cwd (Makefile.am): Likewise.
65609         * modules/savedir (Makefile.am): Likewise.
65610         * modules/setenv (Makefile.am): Likewise.
65611         * modules/settime (Makefile.am): Likewise.
65612         * modules/sha1 (Makefile.am): Likewise.
65613         * modules/sig2str (Makefile.am): Likewise.
65614         * modules/snprintf (Makefile.am): Likewise.
65615         * modules/stdlib-safer (Makefile.am): Likewise.
65616         * modules/stpcpy (Makefile.am): Likewise.
65617         * modules/stpncpy (Makefile.am): Likewise.
65618         * modules/strcase (Makefile.am): Likewise.
65619         * modules/strcasestr (Makefile.am): Likewise.
65620         * modules/strchrnul (Makefile.am): Likewise.
65621         * modules/strcspn (Makefile.am): Likewise.
65622         * modules/strdup (Makefile.am): Likewise.
65623         * modules/strerror (Makefile.am): Likewise.
65624         * modules/strftime (Makefile.am): Likewise.
65625         * modules/strndup (Makefile.am): Likewise.
65626         * modules/strnlen (Makefile.am): Likewise.
65627         * modules/strpbrk (Makefile.am): Likewise.
65628         * modules/strsep (Makefile.am): Likewise.
65629         * modules/strstr (Makefile.am): Likewise.
65630         * modules/strtod (Makefile.am): Likewise.
65631         * modules/strtoimax (Makefile.am): Likewise.
65632         * modules/strtok_r (Makefile.am): Likewise.
65633         * modules/strtol (Makefile.am): Likewise.
65634         * modules/strtoll (Makefile.am): Likewise.
65635         * modules/strtoul (Makefile.am): Likewise.
65636         * modules/strtoull (Makefile.am): Likewise.
65637         * modules/strtoumax (Makefile.am): Likewise.
65638         * modules/strverscmp (Makefile.am): Likewise.
65639         * modules/time_r (Makefile.am): Likewise.
65640         * modules/timegm (Makefile.am): Likewise.
65641         * modules/tmpfile-safer (Makefile.am): Likewise.
65642         * modules/unistd-safer (Makefile.am): Likewise.
65643         * modules/unlinkdir (Makefile.am): Likewise.
65644         * modules/userspec (Makefile.am): Likewise.
65645         * modules/utime (Makefile.am): Likewise.
65646         * modules/utimecmp (Makefile.am): Likewise.
65647         * modules/utimens (Makefile.am): Likewise.
65648         * modules/vasnprintf (Makefile.am): Likewise.
65649         * modules/vasprintf (Makefile.am): Likewise.
65650         * modules/vsnprintf (Makefile.am): Likewise.
65651         * modules/xalloc (Makefile.am): Likewise.
65652         * modules/xgetcwd (Makefile.am): Likewise.
65653         * modules/xnanosleep (Makefile.am): Likewise.
65654         * modules/xreadlink (Makefile.am): Likewise.
65655         * modules/xstrtod (Makefile.am): Likewise.
65656         * modules/xstrtol (Makefile.am): Likewise.
65657         * modules/xstrtold (Makefile.am): Likewise.
65658         * modules/yesno (Makefile.am): Likewise.
65659
65660 2006-10-12  Jim Meyering  <jim@meyering.net>
65661
65662         * m4/getloadavg.m4: Revert the change below.
65663
65664         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65665         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65666         fail with a symlink, which is what coreutils' ./bootstrap now
65667         creates by default.
65668
65669 2006-10-12  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65672         mingw.
65673         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65674         MSVC and mingw explicitly.
65675
65676 2006-10-11  Simon Josefsson  <jas@extundo.com>
65677             Bruno Haible  <bruno@clisp.org>
65678
65679         Add support for multiple gnulib-tool invocations in the scope of a
65680         single configure.ac file.
65681         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65682         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65683         with the same contents as the _LIBADD variable.
65684         (func_emit_initmacro_start, func_emit_initmacro_end,
65685         func_emit_initmacro_done): New functions.
65686         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65687         gl_LIBOBJS and gl_LTLIBOBJS.
65688
65689 2006-10-11  Bruno Haible  <bruno@clisp.org>
65690
65691         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65692         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65693         autoreconf. Instead, invoke autopoint explicitly but move back the
65694         *.m4 files from gnulib.
65695
65696 2006-10-11  Bruno Haible  <bruno@clisp.org>
65697
65698         * gnulib-tool (func_usage): Make module names after --create-testdir
65699         optional.
65700         (func_create_testdir): If no module was specified, use nearly all
65701         modules.
65702
65703 2006-10-12  Jim Meyering  <jim@meyering.net>
65704
65705         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65706         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65707         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65708         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65709         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65710         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65711         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65712         (fts_set_stat_required): New function.
65713         (fts_open): Defer the calls to fts_stat, if possible or requested.
65714         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65715         into fts_stat itself.
65716         (fts_read): Perform any required (deferred) fts_stat call.
65717         (fts_build): Likewise, for the directory we're about to open and read.
65718         In the readdir loop, carefully decide whether each entry will require
65719         an eventual call to fts_stat, using dirent.d_type info if available.
65720         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65721         a command line argument into this function.  Update all callers.
65722         Map a return value of FTS_DOT to FTS_D for a command line argument.
65723         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65724         Thanks to Miklos Szeredi for his tenacity and for the initial
65725         bug report about "find" failing on a FUSE-based file system.
65726
65727         * lib/fts.c (fts_open): Use consistent indentation.
65728
65729 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65732         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65733         reported by Jim Meyering.  All uses of cache variables renamed
65734         to match Autoconf's.
65735         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65736         the other one.
65737
65738         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65739         Fix misspelling in diagnostic.
65740
65741 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65744         defined.  Problem reported by Matthew Woehlke.
65745
65746         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65747         Add support for Tandem NonStop R series.
65748         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65749         Use new macro.
65750
65751         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65752         (has_trailing_slash): Omit size arg; all callers changed.
65753         Omit 'inline', since it doesn't help performance and we'd
65754         need to configure it.
65755         Don't count //, ///, etc. as having a trailing slash.
65756         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65757         (rpl_rename_dest_slash): On failure, use rename's errno rather
65758         than (in some cases) an incorrect or junk errno.
65759         Simplify code by removing need to compute length; this does
65760         cause it to make two passes instead of one over the file name,
65761         but it's worth it.
65762
65763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65764         change, since Autoconf's version may no longer be appropriate now
65765         that we are using CVS Autoconf's version.  Add support for Tandem.
65766
65767 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65768             Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65771         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65772         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65773         gl_AC_TYPE_LONG_LONG.
65774
65775         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65776         instead of HAVE_LONG_LONG.
65777         * lib/printf-args.c (printf_fetchargs): Likewise.
65778         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65779         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65780         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65781         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65782         gl_AC_TYPE_LONG_LONG.
65783
65784 2006-10-11  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/longlong.m4: Add comments.
65787         * m4/ulonglong.m4: Likewise.
65788
65789 2006-10-10  Bruno Haible  <bruno@clisp.org>
65790
65791         Make it possible to #define stpcpy, strdup to aliases.
65792         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65793         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65794
65795 2006-10-10  Bruno Haible  <bruno@clisp.org>
65796
65797         Make it possible to #define gcd to an alias.
65798         * lib/gcd.c: Include config.h.
65799
65800 2006-10-10  Bruno Haible  <bruno@clisp.org>
65801
65802         Make it possible to #define c_isascii to an alias.
65803         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65804         defined. Undefine the macros before defining them, to avoid gcc
65805         warnings.
65806         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65807         define NO_C_CTYPE_MACROS early.
65808
65809 2006-10-10  Bruno Haible  <bruno@clisp.org>
65810
65811         Make it possible to #define set_program_name to an alias.
65812         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65813         ENABLE_RELOCATABLE early.
65814
65815 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65818         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65819         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65820         More generally, don't assume that 64-bit signed int is available
65821         if unsigned int is, and vice versa.
65822         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65823         unsigned symbols, not on their signed counterparts.
65824         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65825         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65826         (UINT64_C, UINTMAX_C):
65827         Likewise.
65828         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65829         unsigned counterparts.
65830         (Have_long_long, Unsigned): New macros.
65831         (Int): Renamed from INT.
65832         (strtoimax): Use the new macros.
65833         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65834         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65835         * modules/inttypes (inttypes.h): Substitute
65836         HAVE_UNSIGNED_LONG_LONG_INT.
65837         * modules/stdint (stdint.h): Likewise.
65838         (Files): Add m4/ulonglong.m4.
65839
65840 2006-10-10  Bruno Haible  <bruno@clisp.org>
65841
65842         Fix a gcc -Wshadow warning.
65843         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65844         to 'bucket'.
65845         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65846         gl_linked_indexof_from_to): Likewise.
65847         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65848         Likewise.
65849         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65850         Likewise.
65851         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65852         Reported by Eric Blake.
65853
65854 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65855
65856         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65857         for NetBSD.  Problem reported by Bruno Haible.
65858
65859 2006-10-09  Jim Meyering  <jim@meyering.net>
65860
65861         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65862         Patch from Bruno Haible.
65863
65864 2006-10-09  Jim Meyering  <jim@meyering.net>
65865
65866         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65867         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65868         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65869
65870 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         Don't include <config.h> twice; this doesn't work in some cases,
65873         e.g., when config.h has "#define intmax_t long long int" and
65874         we include <config.h>, <inttypes.h>, <config.h> in that order.
65875         Problem reported by Matthew Woehlke in:
65876         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65877         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65878         * lib/fts-cycle.c: Don't include config.h.
65879         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65880         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65881         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65882         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65883         inttypes.h.
65884         * lib/xstrtoumax.c: Likewise.
65885         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65886         __strtol and the like, so that this module is more like its siblings.
65887         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65888         Remove; no longer needed now that we assume gnulib inttypes.h.
65889
65890 2006-10-08  Bruno Haible  <bruno@clisp.org>
65891
65892         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65893         option.
65894
65895 2006-10-07  Jim Meyering  <jim@meyering.net>
65896
65897         * modules/inttypes (inttypes.h): Revert what seems to have been
65898         an inadvertent part of today's change: use "|", not "/" in the
65899         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65900
65901 2006-10-07  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/sublist: New file.
65904
65905 2006-10-07  Bruno Haible  <bruno@clisp.org>
65906
65907         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65908         * modules/argz (argz.h): Likewise.
65909         * modules/arpa_inet (arpa/inet.h): Likewise.
65910         * modules/byteswap (byteswap.h): Likewise.
65911         * modules/configmake (configmake.h): Likewise.
65912         * modules/fcntl (fcntl.h): Likewise.
65913         * modules/fnmatch (fnmatch.h): Likewise.
65914         * modules/getopt (getopt.h): Likewise.
65915         * modules/glob (glob.h): Likewise.
65916         * modules/inttypes (inttypes.h): Likewise.
65917         * modules/netinet_in (netinet/in.h): Likewise.
65918         * modules/poll (poll.h): Likewise.
65919         * modules/stdbool (stdbool.h): Likewise.
65920         * modules/stdint (stdint.h): Likewise.
65921         * modules/sys_select (sys/select.h): Likewise.
65922         * modules/sys_socket (sys/socket.h): Likewise.
65923         * modules/sys_stat (sys/stat.h): Likewise.
65924         * modules/sysexits (sysexits.h): Likewise.
65925         * modules/unistd (unistd.h): Likewise.
65926         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65927         Add a "DO NOT EDIT" comment to the generated file.
65928         (func_import): Likewise for gnulib-comp.m4.
65929
65930 2006-10-07  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/gl_sublist.h: New file.
65933         * lib/gl_sublist.c: New file.
65934
65935 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65936
65937         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65938         name (relative to the original working directory) and the file
65939         name component (relative to the temporary working directory).  All
65940         callers changed.
65941         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65942         * lib/mkdir-p.c (make_dir_parents): Likewise.
65943         * lib/mkdir-p.h (make_dir_parents): Likewise.
65944
65945 2006-10-06  Eric Blake  <ebb9@byu.net>
65946
65947         Define several macros for use by the clean-temp module.
65948         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65949         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65951
65952         * lib/clean-temp.h (close_stream_temp): New declaration.
65953         * lib/clean-temp.c (includes): Pull in headers according to what
65954         other modules are in use.
65955         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65956
65957 2006-10-06  Bruno Haible  <bruno@clisp.org>
65958
65959         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65960         instead of fopen, fwriteerror.
65961
65962 2006-10-06  Bruno Haible  <bruno@clisp.org>
65963
65964         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65965         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65966         int.
65967         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65968         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65969         Return an error indicator.
65970         Suggested by Eric Blake.
65971
65972 2006-10-06  Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65975         Reported by Eric Blake.
65976
65977 2006-10-06  Bruno Haible  <bruno@clisp.org>
65978
65979         * modules/closeout (Description): Mention stderr too.
65980
65981 2006-10-06  Bruno Haible  <bruno@clisp.org>
65982         and Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * lib/closeout.c (close_stdout): Also close stderr.
65985         * lib/closeout.h: Update comment.
65986
65987 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65990         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65991         * lib/dirchownmod.c: Include lchown.h.
65992         * lib/lchown.c: Don't include files that lchown.h now includes.
65993         Don't declare chown, since lchown.h now does that.
65994         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65995         (lchown): Define to rpl_chown if lchown is declared but
65996         does not exist.  Declare using a prototype if lchown is not
65997         declared.  Add a copyright notice.
65998         * lib/mkstemp.h: Include <unistd.h>.
65999         * lib/openat.c: Include lchown.h.
66000
66001         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66002         we now test for that separately.
66003         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66004         rather than O_NOFOLLOW, when testing whether it's possible to
66005         avoid a race condition reliably.
66006         * lib/savewd.c (savewd_chdir): Likewise.
66007
66008         Remove macros that are no longer needed now that stdint.h is
66009         reliable.
66010         * lib/fsusage.c (UINTMAX_MAX): Remove.
66011         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66012         * lib/utimecmp.c (SIZE_MAX): Remove.
66013
66014         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66015
66016         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66017         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66018         O_NOATIME works.
66019
66020 2006-10-05  Bruno Haible  <bruno@clisp.org>
66021
66022         * lib/gl_list.h (gl_sortedlist_search_from_to,
66023         gl_sortedlist_indexof_from_to): New declarations.
66024         (gl_list_implementation): New fields sortedlist_search_from_to,
66025         sortedlist_indexof_from_to.
66026         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66027         inline functions.
66028         * lib/gl_list.c (gl_sortedlist_search_from_to,
66029         gl_sortedlist_indexof_from_to): New functions.
66030         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66031         function.
66032         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66033         (gl_array_sortedlist_search_from_to): New function.
66034         (gl_array_list_implementation): Update.
66035         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66036         function.
66037         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66038         (gl_carray_sortedlist_search_from_to): New function.
66039         (gl_carray_list_implementation): Update.
66040         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66041         gl_linked_sortedlist_indexof_from_to): New functions.
66042         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66043         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66044         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66045         gl_tree_sortedlist_indexof_from_to): New functions.
66046         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66047         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66048         Update.
66049         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66050         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66051         Update.
66052
66053 2006-10-05  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66056         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66057         (struct gl_list_implementation): Add fields search_from_to,
66058         indexof_from_to. Remove fields search, indexof.
66059         (gl_list_search): Use the search_from_to method.
66060         (gl_list_search_from, gl_list_search_from_to): New functions.
66061         (gl_list_indexof): Use the indexof_from_to method.
66062         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66063         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66064         (gl_list_search_from, gl_list_search_from_to): New functions.
66065         (gl_list_indexof): Use the indexof_from_to method.
66066         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66067         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66068         gl_array_indexof. Add start_index, end_index arguments.
66069         (gl_array_search_from_to): Renamed from gl_array_search. Add
66070         start_index, end_index arguments.
66071         (gl_array_remove, gl_array_list_implementation): Update.
66072         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66073         gl_carray_indexof. Add start_index, end_index arguments.
66074         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66075         start_index, end_index arguments.
66076         (gl_carray_remove, gl_carray_list_implementation): Update.
66077         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66078         gl_linked_search. Add start_index, end_index arguments.
66079         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66080         start_index, end_index arguments.
66081         (gl_linked_remove): Update.
66082         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66083         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66084         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66085         field to 'size_t'.
66086         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66087         gl_tree_search. Add start_index, end_index arguments.
66088         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66089         start_index, end_index arguments.
66090         (gl_tree_remove): Update.
66091         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66092         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66093         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66094         function.
66095         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66096         gl_tree_search. Add start_index, end_index arguments.
66097         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66098         start_index, end_index arguments.
66099         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66100         Update.
66101         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66102
66103 2006-10-05  Bruno Haible  <bruno@clisp.org>
66104
66105         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66106
66107         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66108         fwriteerror_temp): New declarations.
66109         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66110         (descriptors): New variable.
66111         (cleanup): First, close the descriptors.
66112         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66113         fclose_temp, fwriteerror_temp): New functions.
66114
66115 2006-10-04  Jim Meyering  <jim@meyering.net>
66116
66117         * lib/fts.c (fts_open): Tiny comment change.
66118
66119 2006-10-04  Bruno Haible  <bruno@clisp.org>
66120
66121         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66122         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66123         gl_LOCK_BODY.
66124         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66125         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66126         gl_LOCK_EARLY_BODY.
66127         (gl_LOCK): Require gl_LOCK_BODY.
66128
66129 2006-10-04  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66132         (gl_oset_search_atleast): New declaration.
66133         (struct gl_oset_implementation): Add field 'search_atleast'.
66134         (gl_oset_search_atleast): New inline function.
66135         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66136         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66137         (gl_array_oset_implementation): Update.
66138         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66139         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66140         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66141
66142 2006-10-04  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66145
66146 2006-10-03  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66149         from gl_avltreehash_list_implementation.
66150
66151 2006-10-03  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/gl_oset.c (gl_oset_add): Fix return type.
66154
66155 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66156
66157         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66158
66159 2006-10-02  Eric Blake  <ebb9@byu.net>
66160
66161         * modules/strnlen (Depends-on): Add extensions.
66162
66163 2006-10-02  Eric Blake  <ebb9@byu.net>
66164
66165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66166         definition in 2.60+.
66167
66168 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66169
66170         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66171         checks.
66172
66173 2006-10-02  Bruno Haible  <bruno@clisp.org>
66174
66175         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66176         to the AUTOMAKE_OPTIONS.
66177         Reported by Jim Meyering.
66178
66179 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         Work around bug in Solaris 10 /proc file system:
66182         /proc/self/fd/NNN/.. isn't the parent directory of
66183         the directory whose file descriptor is NNN.  This needs to
66184         be worked around at run time, not compile time, since a
66185         program might be built on Solaris 8, where things work, and
66186         run on Solaris 10.
66187         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66188         to use the following interface instead:
66189         (OPENAT_BUFFER_SIZE): New macro.
66190         (openat_proc_name): New function.
66191         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66192         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66193         Likewise.
66194         * lib/openat-proc.c: New file.
66195         * modules/openat (Files): Add lib/openat-proc.c.
66196         (Depends-on): Add same-inode, stdbool.
66197         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66198
66199 2006-09-29  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66202         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66203         argument. Set stdout_closed before testing for ferror, not after.
66204         (fwriteerror, fwriteerror_no_ebadf): New functions.
66205
66206 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66207
66208         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66209
66210 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66211
66212         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66213         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66214
66215 2006-09-28  Jim Meyering  <jim@meyering.net>
66216
66217         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66218         Include <unistd.h>.
66219
66220 2006-09-28  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66223         * modules/linkedhash-list (Depends-on): Likewise.
66224         * modules/rbtreehash-list (Depends-on): Likewise.
66225
66226 2006-09-28  Bruno Haible  <bruno@clisp.org>
66227
66228         * lib/strndup.h: Simplify the redefinition of strndup.
66229         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66231
66232 2006-09-28  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66235         * lib/gl_linkedhash_list.c: Likewise.
66236         * lib/gl_rbtreehash_list.c: Likewise.
66237
66238 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66241         getaddrinfo.
66242
66243         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66244         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66245         it causes <stdio_ext.h> to cause a compile-time error.
66246         Problem reported by Nelson H. F. Beebe.
66247         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66248         of HAVE_DECL___PENDING.
66249
66250         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66252         declaration.
66253
66254 2006-09-27  Jim Meyering  <jim@meyering.net>
66255
66256         This file could end up with a definition for a function
66257         named __strndup, rather than rpl_strndup on a system with
66258         incomplete weak_alias support.
66259         * lib/strndup.c (strndup): Rename from __strndup.
66260         Remove #defines that used to map __strndup to strndup.
66261         Don't use K&R prototypes.
66262         Remove LIBC-related code, since this file is not sync'd with glibc.
66263         * lib/strndup.h: Revamp, accordingly.
66264         * m4/strndup.m4: Modernize.
66265
66266 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66267
66268         * modules/savewd (Depends-on): Add 'raise'.
66269         * lib/savewd.c: Include <signal.h>, for 'raise'.
66270
66271 2006-09-26  Jim Meyering  <jim@meyering.net>
66272
66273         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66274         when we detect Darwin 8.7.0's acl_get_file bug.
66275         Rearrange to perform the new (below) run-test while $LIBS
66276         contains any acl-related library.  Set USE_ACL at the end.
66277         (gl_ACL_GET_FILE): New function.
66278
66279 2006-09-26  Eric Blake  <ebb9@byu.net>
66280
66281         * lib/verror.c: Include <config.h> unconditionally.
66282
66283 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * modules/clock-time (Maintainer): Add self.
66286         * modules/getlogin_r (Depends-on): Add extensions.
66287
66288 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66289
66290         * modules/clock-time: New module.
66291         * modules/nanosleep (Depends-on): Add clock-time.
66292         * modules/gethrxtime (Depends-on): Likewise.
66293         * modules/gettime (Depends-on): Likewise.
66294         * modules/settime (Depends-on): Likewise.
66295
66296         * modules/fts-lgpl: Depend on openat.
66297         * modules/mkancesdirs: Depend on savewd.
66298         * modules/mkdir-p: Likewise.
66299
66300 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66301
66302         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66303
66304         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66305         `gl_have_arbitrary_file_name_length_limit' to
66306         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66307         actually works between configure runs.
66308
66309 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66310             Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66313
66314 2006-09-25  Jim Meyering  <jim@meyering.net>
66315
66316         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66317         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66318
66319 2006-09-25  Eric Blake  <ebb9@byu.net>
66320
66321         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66322         exec's in 2006-09-18 patch when shuffling fds.
66323
66324 2006-09-25  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66327         Reported by Jim Meyering.
66328
66329 2006-09-24  Jim Meyering  <jim@meyering.net>
66330
66331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66332         compare a pointer against a literal "0".  That caused failures with
66333         at least HP-UX's hpcc.
66334
66335 2006-09-22  Simon Josefsson  <jas@extundo.com>
66336
66337         * modules/gc-sha1:
66338         * modules/gc-md4:
66339         * modules/gc-hmac-sha1:
66340         * modules/gc-hmac-md5:
66341         * modules/gc-des:
66342         * modules/gc-arcfour: Distribute more files.
66343
66344 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66345
66346         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66347         (gl_linked_iterator_from_to): Initialize struct completely.
66348         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66349         (gl_tree_iterator_from_to): Likewise
66350         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66351         * lib/gl_array_list.c [lint] (gl_array_iterator)
66352         (gl_array_iterator_from_to): Likewise.
66353         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66354         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66355         (gl_carray_iterator_from_to): Likewise.
66356
66357         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66358         * lib/md4.c (md4_process_block): Remove unused variable.
66359         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66360         parentheses for clarity.
66361
66362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66363
66364         * modules/bison-i18n (Depends-on): Add gettext.
66365
66366 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66367
66368         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66369         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66370         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66371         also add missing comma that caused broken test.
66372         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66373         stdlib.h, for `abort'.
66374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66375         variables.
66376         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66377         include unistd.h if present, for `rmdir'.
66378         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66379         variables.
66380         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66381         in the process include standard headers for prototypes.
66382         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66383         gets declared on GNU/Linux.
66384         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66385         unistd.h, for `rmdir'.
66386         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66387
66388         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66389         always true.
66390         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66391
66392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66393
66394 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66395
66396         * gnulib-tool (func_version): Create output all at once.  This
66397         may help avoid triggering unnecessary SIGPIPEs, and at any
66398         rate it doesn't hurt.
66399
66400 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66401             Bruno Haible  <bruno@clisp.org>
66402
66403         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66404         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66405         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66406
66407         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66408         (gl_FUNC_VASPRINTF): Invoke it.
66409
66410 2006-09-22  Bruno Haible  <bruno@clisp.org>
66411
66412         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66413         getloadavg.c as first argument.
66414
66415 2006-09-22  Bruno Haible  <bruno@clisp.org>
66416
66417         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66418         at the beginning of the gl_INIT macro.
66419         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66420         gl_GETLOADAVG.
66421
66422 2006-09-22  Bruno Haible  <bruno@clisp.org>
66423
66424         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66425         module.
66426         Suggested by Ralf Wildenhues.
66427
66428 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         Import this patch from libc:
66431
66432         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66433
66434         * lib/regex_internal.c (re_string_reconstruct): Handle
66435         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66436         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66437         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66438         re_string_context_at.
66439
66440         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66441         now requires it.
66442         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66443         gl_REGEX now does it for us.
66444         (gl_REGEX): Add test taken from
66445         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66446
66447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66448         Check that large offsets work.  Modernize Autoconf usages.
66449         Prefer "yes" to mean a good thing rather than a bad.
66450         Don't put "#define mkstemp" in config.h, as this might interfere
66451         with standard system headers that "#define mkstemp mkstemp64".
66452
66453         * modules/mkstemp (Depends-on): Add extensions, so that
66454         mkstemp is visible on some platforms.
66455         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66456         (Include): Change to "mkstemp.h" from <stdlib.h>.
66457         (Files): Add mkstemp.h.
66458
66459         * lib/mkstemp.h: New file, since some standard headers
66460         #define mkstemp.
66461         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66462         Include "mkstemp.h".
66463         Make the _LIBC code resemble glibc original more,
66464         e.g., use K&R style.
66465         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66466         (mkstemp): Remove, since mkstemp.h does this for us.
66467         * lib/stdlib--.h: Include mkstemp.h.
66468
66469         Import this patch from libc:
66470
66471         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66472
66473         * lib/tempname.c (__gen_tempname): Change attempts_min
66474         into a macro.  Use preprocessor to decide how to initialize
66475         attempts [Coverity CID 67].
66476
66477 2006-09-20  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/mkdtemp.c: Import from libc.
66480         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66481                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66482                 attempts_min into a macro.  Use preprocessor to decide how to
66483                 initialize attempts [Coverity CID 67].
66484         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66485                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66486                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66487
66488 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66489
66490         * gnulib-tool (func_exit): New function, to allow to pass the
66491         exit status portably through the trap.  Use everywhere.
66492         (--help, --version): Signal a write error.
66493         (trap): catch SIGPIPE, for write errors.
66494         Exit at the end of the trap, with the correct exit status.
66495
66496 2006-09-19  Karl Berry  <karl@gnu.org>
66497
66498         * doc/gnulib.texi: note about the license texinfo files.
66499
66500 2006-09-19  Eric Blake  <ebb9@byu.net>
66501
66502         * gnulib-tool: Avoid space-tab.
66503
66504 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66507         that prevented coreutils 6.1 from building.  Problem reported
66508         by Petter Reinholdtsen.
66509
66510 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66511
66512         * gnulib-tool (avoidlist): Fix typo that broke options like
66513         --avoid=lock that are used by coreutils bootstrap.
66514
66515 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66516
66517         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66518         more systematically.
66519
66520 2006-09-18  Jim Meyering  <jim@meyering.net>
66521
66522         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66523
66524 2006-09-18  Bruno Haible  <bruno@clisp.org>
66525
66526         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66527
66528 2006-09-18  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66531         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66532         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66533         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66534         * m4/gettext.m4: Require autoconf >= 2.52.
66535         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66536         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66537         of gl_cv_header_inttypes_h.
66538
66539 2006-09-18  Bruno Haible  <bruno@clisp.org>
66540
66541         * lib/javaversion.c: Include configmake.h.
66542
66543 2006-09-18  Bruno Haible  <bruno@clisp.org>
66544
66545         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66546         avoid that the while loops be executed in a subshell.
66547
66548 2006-09-18  Bruno Haible  <bruno@clisp.org>
66549
66550         * MODULES.html.sh (func_module): Break long lines.
66551         Suggested by Bruce Korb <bkorb@gnu.org>.
66552
66553 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66554
66555         Speed up by a factor of 1.12.
66556         * gnulib-tool (nl): New variable.
66557         (func_import): Rewrite include directive extraction to only read each
66558         directive once.
66559
66560 2006-09-17  Bruno Haible  <bruno@clisp.org>
66561
66562         * modules/javaversion (Makefile.am): Remove DEFS setting.
66563         (Depends-on): Add configmake, for PKGDATADIR definition.
66564
66565 2006-09-17  Bruno Haible  <bruno@clisp.org>
66566
66567         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66568
66569 2006-09-17  Bruno Haible  <bruno@clisp.org>
66570
66571         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66572         (func_modules_transitive_closure, func_modules_add_dummy,
66573         func_modules_to_filelist, func_import, func_create_testdir,
66574         func_create_megatestdir, ...): Use it wherever possible.
66575         Suggested by Ralf Wildenhues.
66576
66577 2006-09-16  Karl Berry  <karl@gnu.org>
66578
66579         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66580         to avoid sectioning errors.
66581         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66582         [ifinfo]: blank line after @center-ed titles.
66583         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66584         Spell FSF address consistently with others.
66585         (These changes approved by rms.)
66586
66587 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66588
66589         Speed up by a factor of 1.61.
66590         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66591         already checked module names again.
66592
66593 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66594
66595         Speed up by a factor of 1.13.
66596         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66597         for new_files, and the input to func_add_or_update.
66598
66599 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66600
66601         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66602         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66603
66604 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * modules/mkancesdirs (Depends-on): Add fcntl.
66607         * modules/savewd: New file.
66608         * MODULES.html.sh (File system functions): Add savewd.
66609
66610         * modules/configmake (Makefile.am): Add support for the
66611         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66612
66613 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * m4/savewd.m4: New file.
66616
66617 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66618
66619         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66620         (dirchownmod): New arg FD.  All callers changed.
66621         Use FD rather than opening the directory ourself, as opening is
66622         now the caller's responsibility.
66623         * lib/dirchownmod.h: Likewise.
66624         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66625         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66626         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66627         (test_dir): Remove.
66628         (mkancesdirs): Return length of prefix of FILE that has already
66629         been made, or -2 if there is a child doing the work.  Redo
66630         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66631         ".", and treat ".." specially since it might stray back into
66632         already-created areas.  Use a subprocess if necessary.  New arg
66633         WD; all users changed.  MAKE_DIR function should now return 1
66634         if it creates a directory that is not readable.  Return -2 if
66635         a child process is spun off.
66636         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66637         Adjust signature to match code.
66638         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66639         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66640         all users changed.
66641         * lib/savewd.c, lib/savewd.h: New files.
66642
66643 2006-09-15  Jim Meyering  <jim@meyering.net>
66644
66645         * modules/rename-dest-slash: New module.
66646         * MODULES.html.sh (posix_compat): Add it here.
66647
66648         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66649
66650 2006-09-15  Jim Meyering  <jim@meyering.net>
66651
66652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66653         file.
66654
66655         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66656
66657 2006-09-15  Jim Meyering  <jim@meyering.net>
66658
66659         * lib/rename-dest-slash.c (has_trailing_slash): Use
66660         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66661         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66662         test before testing whether SRC is a directory.
66663         Suggestions from Bruno Haible.
66664
66665         Avoid a warning about an unused variable.
66666         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66667         into the #ifdef block where it's used.
66668
66669         * lib/rename-dest-slash.c: New file.
66670
66671 2006-09-14  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/allocsa.c: Include <config.h> unconditionally.
66674         * lib/asnprintf.c: Likewise.
66675         * lib/asprintf.c: Likewise.
66676         * lib/c-strcasecmp.c: Likewise.
66677         * lib/c-strcasestr.c: Likewise.
66678         * lib/c-strncasecmp.c: Likewise.
66679         * lib/c-strstr.c: Likewise.
66680         * lib/classpath.c: Likewise.
66681         * lib/clean-temp.c: Likewise.
66682         * lib/concatpath.c: Likewise.
66683         * lib/copy-file.c: Likewise.
66684         * lib/csharpcomp.c: Likewise.
66685         * lib/csharpexec.c: Likewise.
66686         * lib/execute.c: Likewise.
66687         * lib/fatal-signal.c: Likewise.
66688         * lib/findprog.c: Likewise.
66689         * lib/fwriteerror.c: Likewise.
66690         * lib/gl_array_list.c: Likewise.
66691         * lib/gl_array_oset.c: Likewise.
66692         * lib/gl_avltree_list.c: Likewise.
66693         * lib/gl_avltree_oset.c: Likewise.
66694         * lib/gl_avltreehash_list.c: Likewise.
66695         * lib/gl_carray_list.c: Likewise.
66696         * lib/gl_linked_list.c: Likewise.
66697         * lib/gl_linkedhash_list.c: Likewise.
66698         * lib/gl_list.c: Likewise.
66699         * lib/gl_oset.c: Likewise.
66700         * lib/gl_rbtree_list.c: Likewise.
66701         * lib/gl_rbtree_oset.c: Likewise.
66702         * lib/gl_rbtreehash_list.c: Likewise.
66703         * lib/imaxabs.c: Likewise.
66704         * lib/imaxdiv.c: Likewise.
66705         * lib/javacomp.c: Likewise.
66706         * lib/javaexec.c: Likewise.
66707         * lib/javaversion.c: Likewise.
66708         * lib/linebreak.c: Likewise.
66709         * lib/localcharset.c: Likewise.
66710         * lib/lock.c: Likewise.
66711         * lib/mbchar.c: Likewise.
66712         * lib/mbswidth.c: Likewise.
66713         * lib/mkdtemp.c: Likewise.
66714         * lib/pipe.c: Likewise.
66715         * lib/printf-args.c: Likewise.
66716         * lib/printf-parse.c: Likewise.
66717         * lib/progname.c: Likewise.
66718         * lib/progreloc.c: Likewise.
66719         * lib/readlink.c: Likewise.
66720         * lib/sh-quote.c: Likewise.
66721         * lib/stpcpy.c: Likewise.
66722         * lib/stpncpy.c: Likewise.
66723         * lib/strcasecmp.c: Likewise.
66724         * lib/strcasestr.c: Likewise.
66725         * lib/strcspn.c: Likewise.
66726         * lib/striconv.c: Likewise.
66727         * lib/strncasecmp.c: Likewise.
66728         * lib/strnlen1.c: Likewise.
66729         * lib/strstr.c: Likewise.
66730         * lib/strtok_r.c: Likewise.
66731         * lib/tls.c: Likewise.
66732         * lib/tmpdir.c: Likewise.
66733         * lib/unicodeio.c: Likewise.
66734         * lib/unsetenv.c: Likewise.
66735         * lib/vasnprintf.c: Likewise.
66736         * lib/vasprintf.c: Likewise.
66737         * lib/wait-process.c: Likewise.
66738         * lib/xallocsa.c: Likewise.
66739         * lib/xsetenv.c: Likewise.
66740         * lib/xstriconv.c: Likewise.
66741
66742 2006-09-13  Simon Josefsson  <jas@extundo.com>
66743
66744         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66745         that internally, suggested by Ralf Wildenhues
66746         <Ralf.Wildenhues@gmx.de>.
66747
66748 2006-09-13  Simon Josefsson  <jas@extundo.com>
66749
66750         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66751         @LIBOBJS@.
66752         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66753
66754 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66755
66756         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66757         longer worry about uses that don't define HAVE_CONFIG_H.
66758         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66759         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66760         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66761         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66762         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66763         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66764         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66765         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66766         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66767         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66768         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66769         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66770         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66771         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66772         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66773         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66774         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66775         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66776         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66777         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66778         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66779         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66780         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66781         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66782         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66783         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66784         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66785         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66786         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66787         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66788         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66789         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66790         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66791         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66792         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66793         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66794         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66795         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66796         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66797         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66798         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66799         Likewise.
66800
66801 2006-09-13  Eric Blake  <ebb9@byu.net>
66802
66803         * lib/getopt.c: Fix typo in last commit.
66804
66805 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66806
66807         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66808         dgettext.
66809
66810 2006-09-12  Jim Meyering  <jim@meyering.net>
66811
66812         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66813         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66814         Reported by Nelson H. F. Beebe.
66815
66816 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66817
66818         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66819         program_invocation_name and program_invocation_short_name are
66820         initialized.
66821         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66822         and program_invocation_short_name to argp.h, so they are visible
66823         to user programs.
66824         * lib/argp.h: Likewise
66825
66826 2006-09-10  Bruno Haible  <bruno@clisp.org>
66827
66828         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66829         m4/inttypes_h.m4, m4/uintmax_t.m4.
66830
66831 2006-09-10  Bruno Haible  <bruno@clisp.org>
66832
66833         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66834         gl_AC_TYPE_UINTMAX_T.
66835
66836 2006-09-10  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66839
66840 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66841
66842         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66843         convention.  Text proposed by Bruno Haible.
66844         (struct argp_option): Document the use of N_() wrappers.
66845
66846         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66847         '\v', and translate the two parts separately, instead of feeding
66848         the whole string to gettext.  This allows to exclude
66849         '\v' from the strings visible to the translator by writing doc
66850         strings as N_("..") "\v" N_("..").
66851
66852 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66853
66854         * config/srclist.txt: Undo latest change; the bug was fixed.
66855
66856 2006-09-09  Bruno Haible  <bruno@clisp.org>
66857
66858         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66859         assignments if building a library without libtool.
66860         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66861         in func_emit_lib_Makefile_am.
66862         (func_import): When building a static library libfoo.a, arrange to
66863         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66864         (func_create_testdir): Likewise.
66865         * modules/gc (configure.ac, Makefile.am): If building statically,
66866         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66867         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66868         * modules/striconv (configure.ac, Makefile.am): Likewise.
66869         Based on a suggestion by Ralf Wildenhues.
66870
66871 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66872
66873         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66874         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66875         Also:
66876
66877         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66878         Add year_2050_test to catch glibc bug 2821
66879         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66880
66881         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66882         Prefer #ifdef to #if.
66883
66884         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66885         Return from 'main' instead of calling 'exit'.
66886
66887 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66890         returned the maximum time_t value rather than (time_t) -1.
66891         Problem originally reported by William Bardwell
66892         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66893
66894         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66895         Moved to here ...
66896         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66897         ... from here.
66898
66899 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66902         2821 is fixed.
66903
66904 2006-09-08  Jim Meyering  <jim@meyering.net>
66905
66906         Don't make generated files read-only.  That would bother too many
66907         people.  However, do retain the ability to work when targets are
66908         read-only: remove the destination and temporary files before writing
66909         them (when generated via sed or echo), or by using the -f option for
66910         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66911         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66912         * modules/byteswap, modules/configmake, modules/fcntl:
66913         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66914         * modules/localcharset, modules/netinet_in, modules/poll:
66915         * modules/stdbool, modules/stdint, modules/sys_select:
66916         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66917
66918 2006-09-08  Jim Meyering  <jim@meyering.net>
66919
66920         Avoid new build failure on FreeBSD 6.0.
66921         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66922         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66923         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66924
66925 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66926
66927         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66928
66929 2006-09-07  Jim Meyering  <jim@meyering.net>
66930
66931         Fix global typo in last change: use chmod u-w, not chmod u-x.
66932         Spotted by Paul Eggert and Bruce Korb.
66933         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66934         * modules/byteswap, modules/configmake, modules/fcntl:
66935         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66936         * modules/localcharset, modules/netinet_in, modules/poll:
66937         * modules/stdbool, modules/stdint, modules/sys_select:
66938         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66939
66940 2006-09-06  Jim Meyering  <jim@meyering.net>
66941
66942         Make generated files be read-only.
66943         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66944         Ensure that each generated file is now read-only.
66945         * modules/argz: Likewise.
66946         * modules/arpa_inet: Likewise.
66947         * modules/byteswap: Likewise.
66948         * modules/configmake: Likewise.
66949         * modules/fcntl: Likewise.
66950         * modules/fnmatch: Likewise.
66951         * modules/getopt: Likewise.
66952         * modules/glob: Likewise.
66953         * modules/inttypes: Likewise.
66954         * modules/netinet_in: Likewise.
66955         * modules/poll: Likewise.
66956         * modules/stdbool: Likewise.
66957         * modules/stdint: Likewise.
66958         * modules/sys_select: Likewise.
66959         * modules/sys_socket: Likewise.
66960         * modules/sys_stat: Likewise.
66961         * modules/sysexits: Likewise.
66962         * modules/localcharset: Same as above, but continue using temporary
66963         file named "t-$@" (why different?) rather than the "$@-t" used
66964         everywhere else.
66965
66966         * modules/sysexits (Makefile.am): Replace literal occurrences
66967         of "sysexit.h" more readable, and more consistent, "$@".
66968
66969 2006-09-06  Bruno Haible  <bruno@clisp.org>
66970
66971         * modules/striconv: New file.
66972         * modules/xstriconv: New file.
66973         * MODULES.html.sh (Internationalization functions): Add striconv,
66974         xstriconv.
66975
66976 2006-09-06  Bruno Haible  <bruno@clisp.org>
66977
66978         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66979         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66980         not using libtool correctly.
66981
66982 2006-09-06  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/striconv.h: New file.
66985         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66986         iconvstring.c.
66987         * lib/xstriconv.h: New file.
66988         * lib/xstriconv.c: New file.
66989
66990 2006-09-06  Bruno Haible  <bruno@clisp.org>
66991
66992         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66993         lib_..._LDFLAGS.
66994
66995 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66996
66997         * lib/argz_.h: Sync from Libtool.
66998
66999         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67000                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67001
67002         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67003
67004 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67005
67006         * modules/trim: New file.
67007
67008 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67009
67010         * lib/trim.h: New file.
67011         * lib/trim.c: New file.
67012
67013 2006-09-05  Bruno Haible  <bruno@clisp.org>
67014
67015         * MODULES.html.sh (String handling): Add trim.
67016
67017 2006-09-04  Karl Berry  <karl@gnu.org>
67018
67019         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67020         until next release.
67021
67022 2006-09-03  Bruno Haible  <bruno@clisp.org>
67023
67024         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67025         correctly.
67026
67027 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67030         not gl_GETLOADAVG.  Omit unneeded semicolons.
67031         Problems reported by Ralf Wildenhues in
67032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67033         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67034         at the end, which is the usual gnulib style.
67035
67036         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67037         of doing all the work ourselves.
67038         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67039         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67040
67041 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67044         Problem reported by Ralf Wildenhues in
67045         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67046
67047         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67048         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67049
67050 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67053         yesterday's patch by changing test -n to test -z.
67054
67055 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67058         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67059         the former is now obsolescent.
67060
67061         * modules/chdir-long (Depends-on): Add fcntl.
67062
67063 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67066         obsolescent, and programs should use gnulib instead.
67067         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67068         but with prefixes changed.
67069
67070 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67073         or stdbool.h, because they might not exist while configuring.
67074
67075         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67076         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67077         does that for us.
67078         (O_DIRECTORY): Remove.
67079
67080 2006-08-31  Eric Blake  <ebb9@byu.net>
67081
67082         * gnulib-tool: Don't let emacs change spaces to TAB.
67083
67084 2006-08-31  Bruno Haible  <bruno@clisp.org>
67085
67086         * gnulib-tool: When calling func_import more than once, do it in a
67087         subshell.
67088         Reported by Eric Blake <ebb9@byu.net>.
67089
67090 2006-08-31  Bruno Haible  <bruno@clisp.org>
67091
67092         * gnulib-tool (nl): Remove variable.
67093         (sed_transform_lib_file): Use more robust test for config-h module.
67094         (func_import): Fix typo in 2006-08-25 patch.
67095
67096 2006-08-31  Bruno Haible  <bruno@clisp.org>
67097
67098         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67099         specified, augment Makefile.am variables instead of assigning them.
67100
67101 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         Work around a bug in both the Linux and SunOS 64-bit kernels:
67104         nanosleep mishandles sleeps for longer than 2**31 seconds.
67105         Problem reported by Frank v Waveren in
67106         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67108         Check for nanosleep bug.
67109         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67110
67111 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67112
67113         Work around a bug in both the Linux and SunOS 64-bit kernels:
67114         nanosleep mishandles sleeps for longer than 2**31 seconds.
67115         Problem reported by Frank v Waveren in
67116         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67117         * lib/nanosleep.c (BILLION): New constant.
67118         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67119         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67120         implementation.
67121
67122 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         * modules/nanosleep (Depends-on): Add gettime.
67125
67126 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67127         and Simon Josefsson  <jas@extundo.com>
67128         and Oskar Liljeblad  <oskar@osk.mine.nu>
67129
67130         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67131         * gnulib-tool (func_import): New license type 'unmodifiable license
67132         text'.
67133         * modules/fdl: Use it.  Longer description.
67134         * module/gpl, module/lgpl: New files.
67135
67136 2006-08-30  Jim Meyering  <jim@meyering.net>
67137
67138         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67139         shadowing the parameter.
67140
67141 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67142
67143         Sync from Libtool:
67144
67145         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67146
67147         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67148         sharing with gnulib.  Report by Eric Blake.
67149
67150 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/isapipe: New file.
67153         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67154
67155 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * modules/configmake (Makefile.am): Add a comment, and omit
67158         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67159         by Bruno Haible.
67160
67161 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * m4/isapipe.m4: New file.
67164
67165 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * lib/isapipe.c, lib/isapipe.h: New files.
67168
67169 2006-08-29  Jim Meyering  <jim@meyering.net>
67170
67171         * modules/configmake (Makefile.am): Make configmake.h depend on
67172         Makefile.  Otherwise, a stale configmake.h could hang around.
67173
67174 2006-08-29  Eric Blake  <ebb9@byu.net>
67175
67176         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67177         resolution of upstream bug 3044.
67178
67179 2006-08-29  Bruno Haible  <bruno@clisp.org>
67180
67181         * modules/localcharset (Depends-on): Add configmake.
67182         (Makefile.am): Remove setting of LIBDIR through DEFS.
67183
67184 2006-08-29  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67187         defined.
67188
67189 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         * modules/fcntl: New file.
67192         * modules/chdir-safer (Depends-on): Add fcntl.
67193         * modules/fts: Likewise.
67194         * modules/mkdir-p: Likewise.
67195
67196         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67197         This undoes the most recent change, since we're now addressing the
67198         problem in a different way.
67199
67200         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67201         into output, since the output might be called Makefile.am even
67202         if $makefile_name is something different.
67203         (func_import): Use $makefile_am rather than
67204         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67205         empty.
67206
67207         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67208
67209 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67212         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67213         recent change to stdint.m4, since we're now addressing the problem in a
67214         different way.
67215
67216 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * m4/fcntl_h.m4: New file.
67219
67220 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/fcntl_.h: New file.
67223         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67224         the fcntl module.
67225         * lib/dirchownmod.c: Likewise.
67226         * lib/fts.c: Likewise.
67227
67228         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67229         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67230         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67231         just before including <inttypes.h>, to avoid circular inclusion.
67232
67233 2006-08-28  Jim Meyering  <jim@meyering.net>
67234
67235         * doc/visibility.texi: Actually read and correct the grammar of the
67236         sentence affected by yesterday's change.
67237
67238 2006-08-28  Eric Blake  <ebb9@byu.net>
67239
67240         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67241         needs wrapper.
67242
67243 2006-08-28  Eric Blake  <ebb9@byu.net>
67244
67245         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67246
67247 2006-08-28  Eric Blake  <ebb9@byu.net>
67248
67249         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67250
67251 2006-08-28  Bruno Haible  <bruno@clisp.org>
67252
67253         * modules/c-strstr: New file, from GNU gettext.
67254         * MODULES.html.sh (String handling): Add c-strstr.
67255
67256 2006-08-28  Bruno Haible  <bruno@clisp.org>
67257
67258         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67259         macros.
67260         Reported by Eric Blake.
67261
67262 2006-08-28  Bruno Haible  <bruno@clisp.org>
67263
67264         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67265         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67266         * lib/vasprintf.c: Include errno.h, limits.h.
67267         (EOVERFLOW): New fallback definition.
67268         (vasprintf): Test here whether the string length is > INT_MAX.
67269         * lib/vsnprintf.c: Include errno.h, limits.h.
67270         (EOVERFLOW): New fallback definition.
67271         (vsnprintf): Fix bug when generated string was too long for the buffer.
67272         Test here whether the string length is > INT_MAX.
67273
67274 2006-08-28  Bruno Haible  <bruno@clisp.org>
67275
67276         * lib/inttypes_.h (SCNX*): Remove definitions.
67277         Reported by Eric Blake.
67278
67279 2006-08-28  Bruno Haible  <bruno@clisp.org>
67280
67281         * lib/c-strstr.h: New file, from GNU gettext.
67282         * lib/c-strstr.c: New file, from GNU gettext.
67283
67284 2006-08-28  Bruno Haible  <bruno@clisp.org>
67285
67286         * gnulib-tool: Reorder some statements.
67287
67288 2006-08-28  Bruno Haible  <bruno@clisp.org>
67289
67290         * gnulib-tool: New option --makefile-name.
67291         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67292         $makefile_name.
67293         (func_import): Write $makefile_name to the cache file, and read it from
67294         there unless explicitly specified. Use $makefile_name as file name
67295         instead of Makefile.am. Adjust the recommendations accordingly.
67296
67297 2006-08-28  Bruno Haible  <bruno@clisp.org>
67298
67299         * gnulib-tool (func_verify_module): Check against misapplying patch.
67300
67301 2006-08-28  Bruno Haible  <bruno@clisp.org>
67302
67303         * gnulib-tool (func_relativize, func_relconcat): New functions.
67304         Give an error if --local-dir is given with --update.
67305         Remove trailing slashes from $local_gnulib_dir.
67306         (func_import): Store the relativized $local_gnulib_dir in
67307         gnulib-cache.m4, and read it from there if not specified explicitly.
67308
67309 2006-08-28  Bruno Haible  <bruno@clisp.org>
67310
67311         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67312         is the current directory. Respect also $local_gnulib_dir.
67313
67314 2006-08-28  Bruno Haible  <bruno@clisp.org>
67315             Simon Josefsson  <jas@extundo.com>
67316
67317         BeOS portability.
67318         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67319
67320 2006-08-27  Jim Meyering  <jim@meyering.net>
67321
67322         * doc/visibility.texi: Remove duplicate word: "pointer".
67323
67324 2006-08-26  Bruno Haible  <bruno@clisp.org>
67325
67326         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67327         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67328         (Makefile.am): Create inttypes.h from inttypes_.h.
67329         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67330
67331         * modules/imaxabs: New file.
67332
67333         * modules/imaxdiv: New file.
67334
67335 2006-08-26  Bruno Haible  <bruno@clisp.org>
67336
67337         * m4/inttypes.m4: New file.
67338         * m4/_inttypes_h.m4: Remove file.
67339         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67340         PRI_MACROS_BROKEN.
67341         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67342
67343         * m4/imaxabs.m4: New file.
67344
67345         * m4/imaxdiv.m4: New file.
67346
67347 2006-08-26  Bruno Haible  <bruno@clisp.org>
67348
67349         * lib/inttypes_.h: New file.
67350         * lib/inttypes.h: Remove file.
67351         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67352
67353         * lib/imaxabs.c: New file.
67354
67355         * lib/imaxdiv.c: New file.
67356
67357 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67358
67359         New config-h module, so that "make" output needn't be cluttered
67360         by -DHAVE_CONFIG_H.
67361         * MODULES.html.sh (Support for building libraries and executables):
67362         Add config-h.
67363         * modules/config-h: New file.
67364         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67365         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67366         the config-h module is used.
67367
67368         New configmake module, so that "make" output needn't be cluttered
67369         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67370         * MODULES.html.sh (Support for building libraries and executables):
67371         Add configmake.
67372         * modules/configmake: New file.
67373
67374 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * m4/config-h.m4: New file.
67377
67378 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         * config/srclist.txt: Add elisp-comp.
67381
67382 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * MODULES.html.sh (Support for building libraries and executables):
67385         Add elisp-comp.
67386         * build-aux/elisp-comp: New file.
67387         * modules/elisp-comp: New file.
67388
67389 2006-08-24  Bruno Haible  <bruno@clisp.org>
67390
67391         * gnulib-tool (func_create_testdir): Use non-default values of
67392         sourcebase and m4base.
67393
67394 2006-08-24  Bruno Haible  <bruno@clisp.org>
67395
67396         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67397         HTML structure.
67398
67399 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * modules/openat (Depends-on): Add lchown.
67402
67403 2006-08-23  Bruno Haible  <bruno@clisp.org>
67404
67405         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67406         of gl_LOCK_EARLY instead of gl_LOCK.
67407
67408 2006-08-23  Bruno Haible  <bruno@clisp.org>
67409
67410         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67411         on OSF/1 to no.
67412         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67413
67414 2006-08-23  Bruno Haible  <bruno@clisp.org>
67415
67416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67417         as unusable.
67418
67419         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67420         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67421         (gl_LOCK): New macro.
67422
67423 2006-08-22  Simon Josefsson  <jas@extundo.com>
67424
67425         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67426         to md5 module.
67427
67428 2006-08-22  Simon Josefsson  <jas@extundo.com>
67429
67430         * MODULES.html.sh: Add "Support for maintaining and release
67431         projects".
67432
67433         * build-aux/gnupload: New file, from coreutils.
67434
67435 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         Avoid the need for AC_LIBSOURCES in m4 macros.
67438         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67439         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67440         * modules/check-version (EXTRA_DIST): Add check-version.h.
67441         * modules/crc (EXTRA_DIST): Add crc.h.
67442         * modules/des (EXTRA_DIST): Add des.h.
67443         * modules/gc (EXTRA_DIST): Add gc.h.
67444         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67445         * modules/getline (EXTRA_DIST): Add getline.h.
67446         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67447         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67448         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67449         * modules/md2 (EXTRA_DIST): Add md2.h.
67450         * modules/md4 (EXTRA_DIST): Add md4.h.
67451         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67452         * modules/read-file (EXTRA_DIST): Add read-file.h.
67453         * modules/readline (EXTRA_DIST): Add readline.h.
67454         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67455         rijndael-api-fst.h.
67456
67457 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * m4/rijndael.m4 (gl_ARCFOUR):
67460         * m4/arctwo.m4 (gl_ARCTWO):
67461         * m4/check-version.m4 (gl_CHECK_VERSION):
67462         * m4/crc.m4 (gl_CRC):
67463         * m4/des.m4 (gl_DES):
67464         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67465         * m4/gc.m4 (gl_GC):
67466         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67467         * m4/getline.m4 (gl_FUNC_GETLINE):
67468         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67469         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67470         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67471         * m4/md2.m4 (gl_MD2):
67472         * m4/md4.m4 (gl_MD4):
67473         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67474         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67475         * m4/readline.m4 (gl_FUNC_READLINE):
67476         * m4/rijndael.m4 (gl_RIJNDAEL):
67477         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67478         to get the necessary .h files and whatnot.
67479
67480 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67483         gnulib rather than the other way around.
67484         * config/srclistvars.sh (COREUTILS): Remove.
67485
67486 2006-08-22  Jim Meyering  <jim@meyering.net>
67487
67488         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67489
67490         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67491
67492 2006-08-22  Eric Blake  <ebb9@byu.net>
67493
67494         * modules/regexprops-generic: New file.
67495         * MODULES.html.sh (Support for building documentation): List it.
67496
67497 2006-08-22  Eric Blake  <ebb9@byu.net>
67498
67499         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67500         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67501         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67502         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67503
67504 2006-08-22  Bruno Haible  <bruno@clisp.org>
67505
67506         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67507         and lib_LTLIBRARIES like the other lib_* variables.
67508
67509 2006-08-22  Bruno Haible  <bruno@clisp.org>
67510
67511         * build-aux/x-to-1.in: New file, from GNU gettext.
67512
67513 2006-08-22  Bruno Haible  <bruno@clisp.org>
67514
67515         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67516         <utmpx.h> exists.
67517
67518 2006-08-22  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67521         <utmpx.h> exists.
67522
67523 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         BeOS portability.
67526         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67527         exist.
67528         Problem reported by Bruno Haible.
67529
67530 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         Avoid the need for AC_LIBSOURCES in m4 macros.
67533         * modules/acl (EXTRA_DIST): Add acl.h.
67534         * modules/argmatch (Files): Add m4/argmatch.m4.
67535         (configure.ac): Add gl_ARGMATCH.
67536         (EXTRA_DIST): Renamed from lib_SOURCES, for
67537         consistency with the other modules.  Remove argmatch.c.
67538         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67539         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67540         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67541         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67542         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67543         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67544         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67545         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67546         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67547         * modules/closeout (EXTRA_DIST): Add closeout.h.
67548         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67549         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67550         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67551         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67552         dirname.h; remove basename.c and stripslash.c.
67553         * modules/exclude (EXTRA_DIST): Add exclude.h.
67554         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67555         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67556         * modules/file-type (EXTRA_DIST): Add file-type.h.
67557         * modules/filemode (EXTRA_DIST): Add filemode.h.
67558         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67559         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67560         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67561         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67562         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67563         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67564         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67565         * modules/getdate (EXTRA_DIST): Add getdate.c.
67566         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67567         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67568         * modules/getpass (EXTRA_DIST): Add getpass.h.
67569         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67570         * modules/group-member (EXTRA_DIST): Add group-member.h.
67571         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67572         * modules/hash (EXTRA_DIST): Add hash.h.
67573         * modules/human (EXTRA_DIST): Add human.h.
67574         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67575         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67576         * modules/lchown (EXTRA_DIST): Add lchown.h.
67577         * modules/long-options (EXTRA_DIST): Add long-options.h.
67578         * modules/lstat (EXTRA_DIST): Add lstat.h.
67579         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67580         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67581         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67582         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67583         * modules/memxor (EXTRA_DIST): Add memxor.h.
67584         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67585         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67586         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67587         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67588         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67589         * modules/physmem (EXTRA_DIST): Add physmem.h.
67590         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67591         * modules/posixver (EXTRA_DIST): Add posixver.h.
67592         * modules/quote (EXTRA_DIST): Add quote.h.
67593         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67594         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67595         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67596         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67597         regex_internal.h regexec.c.
67598         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67599         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67600         * modules/same (EXTRA_DIST): Add same.h.
67601         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67602         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67603         * modules/savedir (EXTRA_DIST): Add savedir.h.
67604         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67605         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67606         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67607         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67608         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67609         * modules/strdup (EXTRA_DIST): Add strdup.h.
67610         * modules/strftime (EXTRA_DIST): Add strftime.h.
67611         * modules/strndup (EXTRA_DIST): Add strndup.h.
67612         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67613         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67614         * modules/time_r (EXTRA_DIST): Add time_r.h.
67615         * modules/timespec (EXTRA_DIST): Add timespec.h.
67616         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67617         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67618         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67619         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67620         * modules/userspec (EXTRA_DIST): Add userspec.h.
67621         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67622         * modules/utimens (EXTRA_DIST): Add utimens.h.
67623         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67624         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67625         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67626         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67627         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67628         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67629         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67630         * modules/yesno (EXTRA_DIST): Add yesno.h.
67631
67632 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67635
67636         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67637         * m4/dev-ino.m4, same-inode.m4: Remove.
67638
67639         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67640         * m4/acl.m4 (AC_FUNC_ACL):
67641         * m4/backupfile.m4 (gl_BACKUPFILE):
67642         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67643         * m4/canon-host.m4 (gl_CANON_HOST):
67644         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67646         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67647         * m4/cloexec.m4 (gl_CLOEXEC):
67648         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67649         * m4/closeout.m4 (gl_CLOSEOUT):
67650         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67651         * m4/dirname.m4 (gl_DIRNAME):
67652         * m4/exclude.m4 (gl_EXCLUDE):
67653         * m4/exitfail.m4 (gl_EXITFAIL):
67654         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67655         * m4/file-type.m4 (gl_FILE_TYPE):
67656         * m4/filemode.m4 (gl_FILEMODE):
67657         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67658         * m4/fpending.m4 (gl_FUNC_FPENDING):
67659         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67660         * m4/fts.m4 (gl_FUNC_FTS):
67661         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67662         * m4/getdate.m4 (gl_GETDATE):
67663         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67664         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67665         * m4/getpass.m4 (gl_FUNC_GETPASS):
67666         * m4/gettime.m4 (gl_GETTIME):
67667         * m4/getugroups.m4 (gl_GETUGROUPS):
67668         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67669         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67670         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67671         * m4/hash.m4 (gl_HASH):
67672         * m4/idcache.m4 (gl_IDCACHE):
67673         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67674         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67675         * m4/long-options.m4 (gl_LONG_OPTIONS):
67676         * m4/lstat.m4 (gl_FUNC_LSTAT):
67677         * m4/md5.m4 (gl_MD5):
67678         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67679         * m4/memcoll.m4 (gl_MEMCOLL):
67680         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67681         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67682         * m4/memxor.m4 (gl_MEMXOR):
67683         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67685         * m4/modechange.m4 (gl_MODECHANGE):
67686         * m4/mountlist.m4 (gl_MOUNTLIST):
67687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67688         * m4/openat.m4 (gl_FUNC_OPENAT):
67689         * m4/pathmax.m4 (gl_PATHMAX):
67690         * m4/physmem.m4 (gl_PHYSMEM):
67691         * m4/posixtm.m4 (gl_POSIXTM):
67692         * m4/posixver.m4 (gl_POSIXVER):
67693         * m4/quote.m4 (gl_QUOTE):
67694         * m4/quotearg.m4 (gl_QUOTEARG):
67695         * m4/readtokens.m4 (gl_READTOKENS):
67696         * m4/readutmp.m4 (gl_READUTMP):
67697         * m4/regex.m4 (gl_REGEX):
67698         * m4/safe-read.m4 (gl_SAFE_READ):
67699         * m4/safe-write.m4 (gl_SAFE_WRITE):
67700         * m4/same.m4 (gl_SAME):
67701         * m4/save-cwd.m4 (gl_SAVE_CWD):
67702         * m4/savedir.m4 (gl_SAVEDIR):
67703         * m4/settime.m4 (gl_SETTIME):
67704         * m4/sha1.m4 (gl_SHA1):
67705         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67706         * m4/stat-macros.m4 (gl_STAT_MACROS):
67707         * m4/stat-time.m4 (gl_STAT_TIME):
67708         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67709         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67710         * m4/strdup.m4 (gl_FUNC_STRDUP):
67711         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67712         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67713         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67714         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67715         * m4/time_r.m4 (gl_TIME_R):
67716         * m4/timespec.m4 (gl_TIMESPEC):
67717         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67718         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67719         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67720         * m4/userspec.m4 (gl_USERSPEC):
67721         * m4/utimecmp.m4 (gl_UTIMECMP):
67722         * m4/utimens.m4 (gl_UTIMENS):
67723         * m4/xalloc.m4 (gl_XALLOC):
67724         * m4/xgetcwd.m4 (gl_XGETCWD):
67725         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67726         * m4/xreadlink.m4 (gl_XREADLINK):
67727         * m4/xstrtod.m4 (gl_XSTRTOD):
67728         * m4/yesno.m4 (gl_YESNO):
67729         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67730         to get the necessary .h files and whatnot.
67731
67732 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67733             Bruno Haible  <bruno@clisp.org>
67734
67735         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67736         /bin/sh understanding of '!' conditional negation.
67737
67738 2006-08-21  Jim Meyering  <jim@meyering.net>
67739
67740         * modules/openat (Depends-on): Really alphabetize.
67741
67742         * modules/acl (Depends-on): Add error and quote.
67743
67744         * check-module (find_included_lib_files): Add at-func.c to the
67745         ok-to-include-more-than-once white list.
67746
67747         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67748
67749 2006-08-21  Bruno Haible  <bruno@clisp.org>
67750
67751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67752         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67753         Reported by Martin Lambers <marlam@marlam.de>.
67754
67755 2006-08-21  Bruno Haible  <bruno@clisp.org>
67756
67757         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67758         specify an installation location, don't emit a noinst_LIBRARIES or
67759         noinst_LTLIBRARIES assignment.
67760
67761 2006-08-21  Bruno Haible  <bruno@clisp.org>
67762
67763         BeOS portability.
67764         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67765         BeOS has mbrtowc() but no <wctype.h>.
67766
67767 2006-08-21  Bruno Haible  <bruno@clisp.org>
67768
67769         BeOS portability.
67770         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67771         exist.
67772
67773 2006-08-21  Bruno Haible  <bruno@clisp.org>
67774
67775         BeOS portability.
67776         * lib/mbchar.h: Include <wctype.h> only if it exists.
67777
67778 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         Remove files that are no longer needed by their respective modules.
67781         * m4/obstack.m4: Remove.
67782         * m4/strerror_r.m4: Remove.
67783         * m4/uint32_t.m4: Remove.
67784         * m4/uintptr_t.m4: Remove.
67785         * m4/ullong_max.m4: Remove.
67786         * m4/xstrtoimax.m4: Remove.
67787         * m4/xstrtoumax.m4: Remove.
67788
67789         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67790         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67791         dependencies now capture this.
67792
67793         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67794         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67795         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67796         * m4/human.m4 (gl_HUMAN): Likewise.
67797         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67798         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67799
67800         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67801
67802         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67803         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67804         stdint.
67805         * m4/human.m4 (gl_HUMAN): Likewise.
67806         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67807         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67808         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67809         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67810         * m4/xstrtol (gl_XSTRTOL): Likewise.
67811
67812         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67813         AC_TYPE_LONG_LONG_INT.
67814         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67815         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67816         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67817         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67818
67819         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67820         on stdbool.
67821
67822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67823         (gl_PREREQ_XSTRTOUL): Remove.
67824
67825         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67826
67827         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67828         mode.
67829
67830 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         Add and change modules to make it easier for coreutils to use
67833         gnulib-tool.
67834         * modules/backupfile (Files): Remove m4/d-ino.m4.
67835         (Depends-on): Add d-ino.
67836         * modules/cycle-check (Depends-on): Add stdint.
67837         (lib_SOURCES): Add cycle-check.h.
67838         * modules/d-ino: New module.
67839         * modules/d-type: New module.
67840         * modules/error (Files): Remove m4/strerror_r.m4.
67841         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67842         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67843         m4/inttypes_h.m4, m4/uintmax_t.m4.
67844         (Depends-on): Add stdint.
67845         (lib_SOURCES): Add fsusage.h.
67846         * modules/getcwd (Files): Remove d-ino.m4.
67847         (Depends-on): Add d-ino.
67848         * modules/getndelim2 (Depends-on): Add stdint.
67849         * modules/glob (Files): Remove m4/d-type.m4.
67850         (Depends-on): Add d-type.
67851         * modules/host-os: New module.
67852         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67853         m4/inttypes_h.m4, m4/uintmax_t.m4.
67854         * Depends-on: Add stdint.
67855         (lib_SOURCES): Add human.h.
67856         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67857         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67858         m4/uintmax_t.m4, m4/ulonglong.m4.
67859         (Depends-on): Add stdint.
67860         (EXTRA_DIST): Add inttostr.h.
67861         * modules/lchmod: New module.
67862         * modules/link-follow: New module.
67863         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67864         (Depends-on): Add lchmod.
67865         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67866         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67867         (Depends-on): Add stdint.
67868         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67869         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67870         (Depends-on): Add stdint.
67871         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67872         * modules/perl: New module.
67873         * modules/regex (Depends-on): Add stdint.
67874         * modules/rmdir-errno: New module.
67875         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67876         m4/intmax_t.m4.
67877         (Depends-on): Add stdint.
67878         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67879         m4/uintmax_t.m4.
67880         (Depends-on): Add stdint.
67881         * modules/unlink-busy: New module.
67882         * modules/utimecmp (Depends-on): Add stdint.
67883         * modules/uptime: New module.
67884         * modules/winsz-ioctl: New module.
67885         * modules/winsz-termios: New module.
67886         * modules/xnanosleep (Depends-on): Add nanosleep.
67887         * modules/ullong_max: Remove.
67888         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67889         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67890         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67891         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67892         (Depends-on): Add inttypes.
67893         (lib_SOURCES): Add xstrtol.h.
67894         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67895         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67896         * MODULES.html.sh: Move 'assert' into the assert section.
67897         Move 'dummy' into the linking section.
67898         Remove ullong_max.
67899         Add section for compatibility checks for POSIX:2001 functions,
67900         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67901         winsz-ioctl, and winsz-termios into it.
67902         Add lchmod.
67903         Add top-level Misc section and put host-os, perl, and uptime
67904         into it.
67905
67906 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67909         now assume the stdint module.  Do not include inttypes.h.
67910         * lib/fsusage.h: Likewise.
67911         * lib/getndelim2.c: Likewise.
67912         * lib/human.h: Likewise.
67913         * lib/inttostr.h: Likewise.
67914         * lib/obstack.c: Likewise.
67915         * lib/regex_internal.h: Likewise.
67916         * lib/tempname.c: Likewise.
67917         * lib/utimecmp.c: Likewise.
67918         * lib/xstrtol.h: Likewise.
67919
67920         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67921
67922         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67923         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67924         * lib/xtime.h: Likewise.
67925
67926 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * modules/openat (Files): Add lib/fchmodat.c.
67929         Fixes problem reported by Jay Youngman.
67930
67931 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67934         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67935
67936 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67937             Bruno Haible  <bruno@clisp.org>
67938
67939         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67940         and is a script that invokes bison. Tighten the code. Add comments.
67941
67942 2006-08-18  Jim Meyering  <jim@meyering.net>
67943
67944         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67945         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67946         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67947         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67948
67949 2006-08-18  Bruno Haible  <bruno@clisp.org>
67950
67951         * modules/bison-i18n: New file.
67952         * MODULES.html.sh (Internationalization functions): Add it.
67953
67954 2006-08-18  Bruno Haible  <bruno@clisp.org>
67955
67956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67957         sys/statvfs.h. When getmntinfo was found, check its declaration and
67958         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67959
67960 2006-08-18  Bruno Haible  <bruno@clisp.org>
67961
67962         * m4/bison-i18n.m4: New file, from bison.
67963
67964 2006-08-18  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67967         (ME_DUMMY): Treat "kernfs" as a dummy.
67968         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67969
67970 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         Update from coreutils.
67973
67974         2006-08-15  Jim Meyering  <jim@meyering.net>
67975
67976         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67977
67978         2006-01-17  Jim Meyering  <jim@meyering.net>
67979
67980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67981
67982         2006-01-11  Jim Meyering  <jim@meyering.net>
67983
67984         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67985         Check for the lchmod function.
67986
67987 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         Update from coreutils.
67990
67991         * lib/__fpending.h: Add copyright notice.
67992         * lib/fprintftime.h: Likewise.
67993         * lib/savedir.c: Use (C) in copyright notice.
67994         * lib/savedir.h: Likewise.
67995
67996         2006-08-15  Jim Meyering  <jim@meyering.net>
67997
67998         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67999         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68000         in support of the EXPECTED_ERRNO macro.
68001         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68002         definitions.  Instead, define the appropriate symbols and include
68003         "at-func.c".
68004         * lib/mkdirat.c (mkdirat): Likewise.
68005         * lib/fchmodat.c (fchmodat): Likewise.
68006         (ENOSYS): Remove definition.
68007         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68008         it.  Don't include "unistd--.h" -- it wasn't ever used.
68009
68010         2006-01-17  Jim Meyering  <jim@meyering.net>
68011
68012         Rewrite fts.c not to change the current working directory,
68013         by using openat, fstatat, fdopendir, etc..
68014
68015         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68016         (HAVE_OPENAT_SUPPORT): Define.
68017         [_LIBC] (fchdir): Don't undef or define; no longer used.
68018         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68019         Now, this `function' always succeeds, and consumes its file descriptor
68020         parameter -- so callers must not close such FDs.  Update callers.
68021         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68022         (diropen): Add parameter, SP.  Adjust all callers.
68023         Implement using diropen_fd, rather than open.
68024         (fts_open): Initialize new member, fts_cwd_fd.
68025         Remove fts_rft-setting code.
68026         (fts_close): Close fts_cwd_fd, if necessary.
68027         (__opendir2): Define in terms of opendir or opendirat,
68028         depending on whether the FST_NOCHDIR flag is set.
68029         (fts_build): Since fts_safe_changedir consumes its FD, and since
68030         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68031         and close the dup'd file descriptor upon failure.
68032         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68033         (fts_safe_changedir): Tweak semantics to reflect that this function
68034         now calls cwd_advance_fd and hence consumes its FD argument.
68035         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68036         [struct FTS] (fts_rft): Remove now-unused member.
68037         [struct FTS] (fts_cycle.state): Improve comment.
68038
68039         * lib/openat.c (openat_needs_fchdir): New function.
68040         * lib/openat.h (openat_needs_fchdir): Declare it.
68041
68042 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68045         Problem and fix reported by Pádraig Brady in
68046         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68047
68048 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68051
68052 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * lib/memcoll.c (memcoll): Optimize for the common case where the
68055         arguments are bytewise equal.
68056
68057 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68058
68059         * doc/regexprops-generic.texi: Add a copyright notice.
68060
68061 2006-08-15  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/tmpdir (License): Change to LGPL.
68064
68065 2006-08-15  Bruno Haible  <bruno@clisp.org>
68066
68067         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68068         module.
68069
68070 2006-08-14  Simon Josefsson  <jas@extundo.com>
68071
68072         * config/srclist.txt: Add gnupload.
68073
68074 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68075
68076         Change copyright notice from LGPL 2 to GPL 2, since that's the
68077         standard form used in the gnulib repository.
68078         * tests/test-lock.c: Likewise.
68079         * tests/test-stdint.c: Likewise.
68080         * tests/test-tls.c: Likewise.
68081
68082         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68083         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68084         Add copyright notice.
68085
68086         * check-module: Add copyright notice.  Output a copyright
68087         notice if "--version" is specified.
68088         * modules/COPYING: New file.
68089         * tests/test-getaddrinfo.c: Add copyright notice.
68090         * tests/test-verify.c: Likewise.
68091
68092 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         Change copyright notice from LGPL 2 to GPL 2, since that's the
68095         standard form used in the gnulib repository.
68096         * lib/lock.c: LGPL -> GPL.
68097         * lib/lock.h: Likewise.
68098         * lib/strnlen1.c: Likewise.
68099         * lib/strnlen1.h: Likewise.
68100         * lib/tls.c: Likewise.
68101         * lib/tls.h: Likewise.
68102         * lib/tmpdir.c: Likewise.
68103
68104         * lib/TODO: Remove; this belongs only in coreutils.
68105
68106 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         Add copyright notices to long-enough files that lack them, since
68109         otherwise the files aren't clearly free.  Use the same notice that
68110         getdate.texi already uses.
68111         * doc/alloca-opt.texi: Add copyright notice.
68112         * doc/alloca.texi: Likewise.
68113         * doc/ctime.texi: Likewise.
68114         * doc/functions.texi: Likewise.
68115         * doc/gcd.texi: Likewise.
68116         * doc/gnulib-tool.texi: Likewise.
68117         * doc/inet_ntoa.texi: Likewise.
68118         * doc/visibility.texi: Likewise.
68119
68120         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68121         * doc/quote.texi: Add copyright notice.
68122
68123         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68124         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68125         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68126         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68127         is now obsolete, and give a pointer to the Sun list.
68128         Add copyright notice.
68129
68130 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * config/srclistvars.sh: Add copyright notice.
68133
68134 2006-08-14  Eric Blake  <ebb9@byu.net>
68135
68136         Import the following change from libc:
68137
68138         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68139
68140         Upstream bug 2997.
68141         * lib/misc/error.c: Add space between program name and message if file
68142         name is missing.
68143
68144 2006-08-12  Karl Berry  <karl@gnu.org>
68145
68146         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68147         remove, these originate in gnulib now.
68148
68149 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68150
68151         * doc/Makefile (standards.info standards.html standards.dvi):
68152         Also depend on make-stds.texi.
68153
68154 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68157         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68158
68159         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68160         in wchar_t.  Problem reported by Eric Blake.
68161
68162         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68163         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68164         Also, help the compiler to keep LEN in a register.
68165
68166 2006-08-11  Eric Blake  <ebb9@byu.net>
68167
68168         * users.txt: Sort.  Add tar.
68169
68170 2006-08-11  Bruno Haible  <bruno@clisp.org>
68171
68172         * users.txt: New file.
68173
68174 2006-08-11  Bruno Haible  <bruno@clisp.org>
68175
68176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68177         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68178
68179 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * modules/snprintf (Depends-on): Remove minmax.
68182         (Maintainer): Add self and Bruno.
68183
68184 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68187         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68188         (EOVERFLOW): Define if the system does not.
68189         Do not include "minmax.h"; it wasn't used.
68190         (snprintf): Don't assume size_t promotes to an unsigned type.
68191         Fix bug when generated string was too long for the buffer: the
68192         buffer's contents are supposed to be the initial prefix of the
68193         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68194         exceeds INT_MAX; do the check ourselves.
68195
68196         Import the following changes from libc:
68197
68198         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68199
68200         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68201         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68202         set wc to the byte which couldn't be converted.
68203         (re_string_reconstruct): Don't clear valid_raw_len before calling
68204         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68205         tip_context using re_string_context_at.
68206
68207         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68208
68209         * lib/posix/regex.h: g++ still cannot handled [restrict].
68210
68211         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68212
68213         * lib/posix/regex.h: Remove special handling for VMS.
68214
68215 2006-08-10  Jim Meyering  <jim@meyering.net>
68216
68217         * modules/same-inode: New module.
68218         * modules/dev-ino: New module.
68219         * modules/cycle-check: Depend on these modules, rather than simply
68220         including their .h files.
68221         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68222         required via m4/cycle-check.m4.
68223         * modules/same: Depend on new same-inode module, rather than
68224         including same-inode.h.
68225         * modules/chdir-safer: New file.
68226
68227         * modules/chown (Depends-on): Add stat-macros.
68228
68229 2006-08-10  Jim Meyering  <jim@meyering.net>
68230
68231         * m4/cycle-check.m4: New file.
68232         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68233         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68234
68235 2006-08-10  Eric Blake  <ebb9@byu.net>
68236
68237         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68238         in from original proposal.
68239
68240 2006-08-10  Eric Blake  <ebb9@byu.net>
68241         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68242
68243         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68244         namespace.
68245
68246 2006-08-10  Bruno Haible  <bruno@clisp.org>
68247
68248         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68249         as well.
68250
68251 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         Sync from coreutils.
68254
68255         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68256
68257         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68258         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68259
68260 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68261
68262         * modules/restrict: Remove; no longer needed now that we assume
68263         Autoconf 2.59 or later.
68264         * MODULES.html.sh: Remove 'restrict'.
68265         * modules/argp (Depends-on): Remove 'restrict'.
68266         * modules/base64 (Depends-on): Likewise.
68267         * modules/gc (Depends-on): Likewise.
68268         * modules/getaddrinfo (Depends-on): Likewise.
68269         * modules/glob (Depends-on): Likewise.
68270         * modules/inet_ntop (Depends-on): Likewise.
68271         * modules/inet_pton (Depends-on): Likewise.
68272         * modules/memxor (Depends-on): Likewise.
68273         * modules/regex (Depends-on): Likewise.
68274         * modules/strtok_r (Depends-on): Likewise.
68275         * modules/time_r (Depends-on): Likewise.
68276
68277 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68280         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68281         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68282         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68283         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68284         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68285         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68286         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68287
68288         Merge from coreutils.
68289         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68290         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68291         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68292         * m4/time_r.m4 (gl_TIME_R): Likewise.
68293
68294 2006-08-09  Karl Berry  <karl@gnu.org>
68295
68296         * config/srclist.txt: no more gettext-tools, per Bruno.
68297
68298 2006-08-08  Eric Blake  <ebb9@byu.net>
68299
68300         * modules/verror: New module.
68301         * MODULES.html.sh: Document it.
68302
68303 2006-08-08  Eric Blake  <ebb9@byu.net>
68304
68305         * lib/verror.h, lib/verror.c: New files.
68306
68307 2006-08-08  Eric Blake  <ebb9@byu.net>
68308
68309         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68310         verror_at_line output complies with GNU Coding Standards even when
68311         file is NULL.
68312
68313 2006-08-07  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68316         versions of AIX.
68317         Reported by Ralf Wildenhues.
68318
68319 2006-08-07  Bruno Haible  <bruno@clisp.org>
68320
68321         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68322         in an AC_DEFUN. Needed so that the autoconf snippets can use
68323         AC_REQUIRE.
68324
68325 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68326
68327         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68328         Initialize pkgdata_DATA.
68329         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68330         overriding it.
68331
68332 2006-08-06  Eric Blake  <ebb9@byu.net>
68333
68334         * lib/error.h: Fold in some upstream changes from glibc.
68335         * lib/error.c: Likewise.
68336
68337 2006-08-04  Bruno Haible  <bruno@clisp.org>
68338
68339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68340         Make the mostlyclean-local rule depend on mostlyclean-generic.
68341         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68342
68343 2006-07-31  Bruno Haible  <bruno@clisp.org>
68344
68345         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68346         <stdlib.h>, <string.h>.
68347
68348 2006-07-30  Bruno Haible  <bruno@clisp.org>
68349
68350         * modules/readlink (License): Change to LGPL.
68351
68352 2006-07-30  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68355         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68356         set PKGDATADIR to point to it.
68357
68358 2006-07-30  Bruno Haible  <bruno@clisp.org>
68359
68360         * modules/csharpexec (configure.ac): Comment out macro invocation.
68361         * modules/javaexec (configure.ac): Likewise.
68362         * modules/javacomp-script (configure.ac): Likewise.
68363
68364         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68365
68366 2006-07-30  Bruno Haible  <bruno@clisp.org>
68367
68368         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68369         linked-list.
68370
68371 2006-07-30  Bruno Haible  <bruno@clisp.org>
68372
68373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68374
68375 2006-07-30  Bruno Haible  <bruno@clisp.org>
68376
68377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68378         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68379         get removed.
68380
68381 2006-07-29  Bruno Haible  <bruno@clisp.org>
68382
68383         Make it possible for gnulib-tool to work with locally modified or
68384         augmented gnulib repositories.
68385         * gnulib-tool (func_usage): Document --local-dir option.
68386         (local_gnulib_dir): New variable.
68387         Handle --local-dir option.
68388         (func_lookup_file): New function.
68389         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68390         (func_get_description, func_get_filelist, func_get_description,
68391         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68392         func_get_automake_snippet, func_get_include_directive,
68393         func_get_license, func_get_maintainer): Use func_lookup_file.
68394         (func_import, func_create_testdir): Use func_lookup_file.
68395
68396 2006-07-29  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/setenv (Depends-on): Add unistd.
68399
68400 2006-07-29  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68403
68404 2006-07-29  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68407
68408 2006-07-29  Bruno Haible  <bruno@clisp.org>
68409
68410         * gnulib-tool (import, update): If there is no Makefile.am, look at
68411         aclocal.m4, instead of bailing out.
68412
68413 2006-07-29  Bruno Haible  <bruno@clisp.org>
68414
68415         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68416         Categorize the options by when they are useful.
68417
68418 2006-07-29  Bruno Haible  <bruno@clisp.org>
68419
68420         * gnulib-tool (func_usage): Document option --no-libtool.
68421         Handle option --no-libtool.
68422         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68423         for changed semantics of $libtool variable.
68424         (func_import): Likewise. If libtool is not used, show this through
68425         an option --no-libtool.
68426         (func_create_testdir): Update.
68427
68428 2006-07-29  Bruno Haible  <bruno@clisp.org>
68429
68430         * gnulib-tool (func_import): Extend error message about missing
68431         --doc-base.
68432
68433 2006-07-29  Bruno Haible  <bruno@clisp.org>
68434
68435         * gnulib-tool (func_import): Don't create the $docbase directory if
68436         there is no file to store there.
68437
68438 2006-07-29  Bruno Haible  <bruno@clisp.org>
68439
68440         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68441         relevant, look for configure.ac there, not in the current directory.
68442         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68443
68444 2006-07-29  Bruno Haible  <bruno@clisp.org>
68445
68446         * gnulib-tool (SORT): New variable.
68447         (func_usage): Undocument --assume-autoconf option.
68448         Remove --assume-autoconf option handling.
68449         (autoconf_minversion): Determine from the contents of configure.ac.
68450         (func_import): Remove autoconf_minversion handling.
68451         Suggested by Eric Blake.
68452
68453 2006-07-29  Bruno Haible  <bruno@clisp.org>
68454
68455         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68456
68457 2006-07-29  Bruno Haible  <bruno@clisp.org>
68458
68459         * config/srclist.txt (*setenv.[ch]): Remove rules.
68460
68461 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68462
68463         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68464
68465 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68466
68467         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68468         arpa/inet.h.
68469
68470 2006-07-28  Simon Josefsson  <jas@extundo.com>
68471
68472         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68473         * modules/inet_pton (Depends-on): Likewise.
68474
68475 2006-07-28  Simon Josefsson  <jas@extundo.com>
68476
68477         * m4/netinet_in_h.m4: New file.
68478
68479 2006-07-28  Simon Josefsson  <jas@extundo.com>
68480
68481         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68482         #include's.
68483
68484 2006-07-28  Simon Josefsson  <jas@extundo.com>
68485
68486         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68487         #include's.
68488
68489 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68492         setgid on directories only if they set these bits.
68493         * lib/modechange.h: Remove obsolete comment about masks.
68494
68495 2006-07-28  Eric Blake  <ebb9@byu.net>
68496
68497         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68498         macro expansion.
68499
68500 2006-07-28  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68503
68504 2006-07-28  Bruno Haible  <bruno@clisp.org>
68505
68506         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68507
68508 2006-07-28  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68511         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68512         Define fallbacks.
68513         Avoids link error on FreeBSD 4.x.
68514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68515
68516         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68517         encoding.
68518         * lib/mbswidth.c (iswcntrl): Likewise.
68519
68520 2006-07-27  Bruno Haible  <bruno@clisp.org>
68521
68522         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68523         test.
68524
68525 2006-07-27  Bruno Haible  <bruno@clisp.org>
68526
68527         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68528         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68529         defined.
68530
68531 2006-07-26  Eric Blake  <ebb9@byu.net>
68532
68533         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68534
68535 2006-07-26  Eric Blake  <ebb9@byu.net>
68536
68537         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68538         like mingw that lack mkstemp.
68539         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68540         avoid compilation warning on mingw.
68541
68542 2006-07-26  Bruno Haible  <bruno@clisp.org>
68543
68544         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68545         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68546         INT_FAST*_MIN, INTPTR_MIN.
68547
68548 2006-07-25  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/version-etc (Depends-on): Add stdarg.
68551
68552 2006-07-25  Bruno Haible  <bruno@clisp.org>
68553
68554         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68555         complex commands.
68556
68557 2006-07-25  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68560         defined in <stdarg.h> or config.h.
68561
68562 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68565         (gl_STDIO_SAFER): Remove.
68566
68567 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * MODULES.html.sh (File stream based Input/Output):
68570         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68571         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68572         * modules/fopen-safer, modules/tmpfile-safer: New files.
68573         * modules/stdio-safer: Remove.
68574
68575 2006-07-24  Bruno Haible  <bruno@clisp.org>
68576
68577         * modules/tmpdir: New file.
68578         * MODULES.html.sh (File system functions): Add it.
68579
68580 2006-07-24  Bruno Haible  <bruno@clisp.org>
68581
68582         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68583         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68584
68585 2006-07-24  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/clean-temp: New file.
68588
68589 2006-07-24  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/tmpdir.m4: New file, from GNU gettext.
68592
68593 2006-07-24  Bruno Haible  <bruno@clisp.org>
68594
68595         * lib/tmpdir.h: New file, from GNU gettext.
68596         * lib/tmpdir.c: New file, from GNU gettext.
68597
68598 2006-07-24  Bruno Haible  <bruno@clisp.org>
68599
68600         * lib/clean-temp.h: New file, from GNU gettext.
68601         * lib/clean-temp.c: New file, from GNU gettext.
68602
68603 2006-07-23  Eric Blake  <ebb9@byu.net>
68604
68605         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68606         (Depends-on): Add binary-io.
68607
68608 2006-07-23  Eric Blake  <ebb9@byu.net>
68609
68610         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68611
68612 2006-07-23  Eric Blake  <ebb9@byu.net>
68613
68614         * lib/tmpfile-safer.c: New file.
68615         * lib/stdio-safer.h (fopen_safer): Add prototype.
68616         * lib/stdio--.h (tmpfile): Make safer.
68617
68618 2006-07-23  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68621         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68622         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68623         gl_linked_remove_at): Use it.
68624
68625 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68626         and Simon Josefsson <jas@extundo.com>
68627
68628         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68629
68630         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68631
68632 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * modules/close-stream: New file.
68635         * modules/closeout (Description): Make it clear that it exits
68636         with a diagnostic on error.
68637         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68638         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68639
68640 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * m4/close-stream.m4: New file.
68643
68644 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/close-stream.c, lib/close-stream.h: New files.
68647
68648 2006-07-22  Bruno Haible  <bruno@clisp.org>
68649
68650         Merge from GNU gettext 0.15.
68651
68652         2006-05-01  Bruno Haible  <bruno@clisp.org>
68653
68654                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68655
68656         2006-07-22  Bruno Haible  <bruno@clisp.org>
68657
68658                 * modules/javaversion: New file.
68659                 * MODULES.html.sh (Java): Add javaversion.
68660
68661         2006-03-12  Bruno Haible  <bruno@clisp.org>
68662
68663                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68664
68665         2005-12-04  Bruno Haible  <bruno@clisp.org>
68666
68667                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68668                 (untested).
68669
68670         2006-06-21  Bruno Haible  <bruno@clisp.org>
68671
68672                 Avoid warnings from recent versions of mcs.
68673                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68674                 -o, -L, -r any more. Use options documented since mcs-1.0
68675                 instead. Similarly for -g.
68676
68677         2005-12-04  Bruno Haible  <bruno@clisp.org>
68678
68679                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68680                 .resources, not .resource.
68681
68682         2005-07-09  Bruno Haible  <bruno@clisp.org>
68683
68684                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68685                 add a .dll suffix.
68686                 Reported by Mark Junker <mjscod@gmx.de>.
68687
68688         2006-07-22  Bruno Haible  <bruno@clisp.org>
68689
68690                 * modules/gettext: Upgrade to gettext-0.15.
68691                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68692                 m4/visibility.m4.
68693                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68694
68695 2006-07-22  Bruno Haible  <bruno@clisp.org>
68696
68697         Merge from GNU gettext 0.15.
68698
68699         2006-03-25  Bruno Haible  <bruno@clisp.org>
68700
68701                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68702
68703         2006-07-21  Bruno Haible  <bruno@clisp.org>
68704
68705                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68706                 "1.1".
68707
68708         2006-05-09  Bruno Haible  <bruno@clisp.org>
68709
68710                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68711                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68712                 for the conftestver execution.
68713
68714         2006-05-01  Bruno Haible  <bruno@clisp.org>
68715
68716                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68717                 optional target-version argument. Verify that the compiler
68718                 groks source of the specified source-version, or add -source
68719                 option as necessary. Verify that the compiler produces
68720                 bytecode in the specified target-version, or add -target and
68721                 -source options as necessary. Make the result of the test
68722                 available as variable CONF_JAVAC. Also log error output in
68723                 config.log.
68724
68725         2006-03-11  Bruno Haible  <bruno@clisp.org>
68726
68727                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68728
68729         2006-05-09  Bruno Haible  <bruno@clisp.org>
68730
68731                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68732                 CLASSPATH_SEPARATOR to a semicolon.
68733
68734         2006-03-12  Bruno Haible  <bruno@clisp.org>
68735
68736                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68737                 available as variable CONF_JAVA, for subsequent autoconf
68738                 tests. Also log error output in config.log.
68739
68740         2006-07-19  Bruno Haible  <bruno@clisp.org>
68741
68742                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68743                 that getline works on glibc2 systems. Needed to avoid trouble
68744                 in relocatable.c.
68745                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68746
68747         2005-12-04  Bruno Haible  <bruno@clisp.org>
68748
68749                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68750                 launcher (untested).
68751
68752         2005-12-04  Bruno Haible  <bruno@clisp.org>
68753
68754                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68755
68756         2006-07-22  Bruno Haible  <bruno@clisp.org>
68757
68758                 * gettext.m4: Update from GNU gettext-0.15.
68759                 * nls.m4: Likewise.
68760                 * po.m4: Likewise.
68761                 * inttypes-pri.m4: Likewise.
68762                 * inttypes-h.m4: Renamed from inttypes.m4.
68763                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68764
68765 2006-07-22  Bruno Haible  <bruno@clisp.org>
68766
68767         Merge from GNU gettext 0.15.
68768
68769         2005-07-05  Bruno Haible  <bruno@clisp.org>
68770
68771                 * printf-args.c (printf_fetchargs): Work around broken
68772                 definition of wint_t on mingw.
68773
68774         2005-02-12  Bruno Haible  <bruno@clisp.org>
68775
68776                 * xallocsa.h: Add extern "C" for C++.
68777
68778         2006-05-17  Bruno Haible  <bruno@clisp.org>
68779
68780                 Cygwin portability.
68781                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68782
68783         2006-04-30  Bruno Haible  <bruno@clisp.org>
68784
68785                 * progreloc.c: Include <mach-o/dyld.h> if available.
68786                 (find_executable): Use _NSGetExecutablePath when possible.
68787
68788         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68789
68790                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68791                 function.
68792
68793         2005-12-29  Bruno Haible  <bruno@clisp.org>
68794
68795                 * progreloc.c (set_program_name_and_installdir): Fix
68796                 compilation error.
68797
68798         2005-12-04  Bruno Haible  <bruno@clisp.org>
68799
68800                 Cygwin portability.
68801                 * progreloc.c: Include <windows.h> also on Cygwin.
68802                 (find_executable): Add support for Cygwin.
68803                 (set_program_name_and_installdir): Handle also platforms with
68804                 nonempty EXEEXT.
68805
68806         2006-07-11  Bruno Haible  <bruno@clisp.org>
68807
68808                 * javacomp.c: Fix a comment.
68809                 Reported by Jim Meyering.
68810
68811         2006-04-30  Bruno Haible  <bruno@clisp.org>
68812
68813                 * javacomp.h (compile_java_class): Add source_version,
68814                 target_version arguments.
68815                 * javacomp.c: Rewritten to choose only a compiler that
68816                 respects the specified source_version and target_version.
68817
68818         2006-06-27  Bruno Haible  <bruno@clisp.org>
68819
68820                 Assume correct S_ISDIR macro.
68821                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68822
68823         2006-07-22  Bruno Haible  <bruno@clisp.org>
68824
68825                 * javaversion.h: New file, from GNU gettext.
68826                 * javaversion.c: New file, from GNU gettext.
68827                 * javaversion.java: New file, from GNU gettext.
68828                 * javaversion.class: New file, from GNU gettext.
68829
68830         2006-05-17  Bruno Haible  <bruno@clisp.org>
68831
68832                 Cygwin portability.
68833                 * javaexec.c (execute_java_class): Test for jview program
68834                 also on Cygwin.
68835
68836         2006-04-09  Bruno Haible  <bruno@clisp.org>
68837
68838                 * fatal-signal.c: Don't include string.h.
68839                 (at_fatal_signal): Use a copying loop instead of memcpy.
68840
68841         2005-12-04  Bruno Haible  <bruno@clisp.org>
68842
68843                 * csharpexec.c: Add support for 'clix' launcher (untested).
68844                 (execute_csharp_using_sscli): New function.
68845                 (execute_csharp_program): Call it.
68846
68847         2006-06-21  Bruno Haible  <bruno@clisp.org>
68848
68849                 Avoid warnings from recent versions of mcs.
68850                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68851                 -o, -L, -r any more. Use options documented since mcs-1.0
68852                 instead. Similarly for -g.
68853
68854         2005-07-09  Bruno Haible  <bruno@clisp.org>
68855
68856                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68857                 add a .dll suffix.
68858                 Reported by Mark Junker <mjscod@gmx.de>.
68859
68860         2006-06-17  Bruno Haible  <bruno@clisp.org>
68861
68862                 * config.charset: Update for NetBSD 3.0.
68863
68864         2006-05-17  Bruno Haible  <bruno@clisp.org>
68865
68866                 Cygwin portability.
68867                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68868
68869         2006-05-16  Bruno Haible  <bruno@clisp.org>
68870
68871                 * localcharset.c [CYGWIN]: Include <windows.h>.
68872                 (get_charset_aliases): For Cygwin, return the same CPxxx
68873                 aliases list as under WIN32.
68874                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68875                 the environment variables. Fall back to GetACP().
68876
68877         2006-04-05  Bruno Haible  <bruno@clisp.org>
68878
68879                 * config.charset: Update Juan Manuel Guerrero's address.
68880
68881         2005-02-12  Bruno Haible  <bruno@clisp.org>
68882
68883                 * allocsa.h: Add extern "C" for C++.
68884
68885         2005-02-10  Bruno Haible  <bruno@clisp.org>
68886
68887                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68888                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68889
68890         2006-07-22  Bruno Haible  <bruno@clisp.org>
68891
68892                 * gettext.h: Update to GNU gettext-0.15.
68893
68894 2006-07-22  Bruno Haible  <bruno@clisp.org>
68895
68896         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68897         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68898         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68899
68900 2006-07-21  Eric Blake  <ebb9@byu.net>
68901
68902         * modules/stdlib-safer: New file.
68903         * MODULES.html.sh (File stream based Input/Output): Add
68904         stdlib-safer.
68905
68906 2006-07-21  Eric Blake  <ebb9@byu.net>
68907
68908         * lib/stdlib-safer.h: New file from coreutils, required by
68909         stdlib--.h.
68910
68911 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68914
68915 2006-07-20  Bruno Haible  <bruno@clisp.org>
68916
68917         * gnulib-tool: Recognize new option --assume-autoconf.
68918         (autoconf_minversion): New variable.
68919         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68920
68921 2006-07-20  Bruno Haible  <bruno@clisp.org>
68922
68923         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68924
68925 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68926
68927         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68928         Reindent and repaginate.
68929
68930 2006-07-19  Derek Price  <derek@ximbiot.com>
68931
68932         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68933         Correct grammar.
68934
68935 2006-07-17  Bruno Haible  <bruno@clisp.org>
68936
68937         * modules/list: New file.
68938         * modules/array-list: New file.
68939         * modules/carray-list, modules/carray-list-tests: New files.
68940         * modules/linked-list, modules/linked-list-tests: New files.
68941         * modules/avltree-list, modules/avltree-list-tests: New files.
68942         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68943         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68944         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68945         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68946         * modules/oset: New file.
68947         * modules/array-oset: New file.
68948         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68949         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68950         * tests/test-carray_list.c: New file.
68951         * tests/test-linked_list.c: New file.
68952         * tests/test-avltree_list.c: New file.
68953         * tests/test-rbtree_list.c: New file.
68954         * tests/test-linkedhash_list.c: New file.
68955         * tests/test-avltreehash_list.c: New file.
68956         * tests/test-rbtreehash_list.c: New file.
68957         * tests/test-avltree_oset.c: New file.
68958         * tests/test-rbtree_oset.c: New file.
68959         * MODULES.html.sh (Container data structures): New section.
68960
68961 2006-07-17  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/gl_list.m4: New file.
68964
68965 2006-07-17  Bruno Haible  <bruno@clisp.org>
68966
68967         * lib/gl_list.h: New file.
68968         * lib/gl_list.c: New file.
68969         * lib/gl_array_list.h: New file.
68970         * lib/gl_array_list.c: New file.
68971         * lib/gl_carray_list.h: New file.
68972         * lib/gl_carray_list.c: New file.
68973         * lib/gl_linked_list.h: New file.
68974         * lib/gl_linked_list.c: New file.
68975         * lib/gl_anylinked_list1.h: New file.
68976         * lib/gl_anylinked_list2.h: New file.
68977         * lib/gl_avltree_list.h: New file.
68978         * lib/gl_avltree_list.c: New file.
68979         * lib/gl_anyavltree_list1.h: New file.
68980         * lib/gl_anyavltree_list2.h: New file.
68981         * lib/gl_rbtree_list.h: New file.
68982         * lib/gl_rbtree_list.c: New file.
68983         * lib/gl_anyrbtree_list1.h: New file.
68984         * lib/gl_anyrbtree_list2.h: New file.
68985         * lib/gl_anytree_list1.h: New file.
68986         * lib/gl_anytree_list2.h: New file.
68987         * lib/gl_linkedhash_list.h: New file.
68988         * lib/gl_linkedhash_list.c: New file.
68989         * lib/gl_anyhash_list1.h: New file.
68990         * lib/gl_anyhash_list2.h: New file.
68991         * lib/gl_avltreehash_list.h: New file.
68992         * lib/gl_avltreehash_list.c: New file.
68993         * lib/gl_rbtreehash_list.h: New file.
68994         * lib/gl_rbtreehash_list.c: New file.
68995         * lib/gl_anytreehash_list1.h: New file.
68996         * lib/gl_anytreehash_list2.h: New file.
68997
68998         * lib/gl_oset.h: New file.
68999         * lib/gl_oset.c: New file.
69000         * lib/gl_array_oset.h: New file.
69001         * lib/gl_array_oset.c: New file.
69002         * lib/gl_avltree_oset.h: New file.
69003         * lib/gl_avltree_oset.c: New file.
69004         * lib/gl_rbtree_oset.h: New file.
69005         * lib/gl_rbtree_oset.c: New file.
69006         * lib/gl_anytree_oset.h: New file.
69007
69008 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * m4/mkancesdirs.m4: New file.
69011         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69012         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69013         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69014         it.
69015
69016 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69019         * lib/mkancesdirs.h: New files.
69020         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69021         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69022         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69023         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69024         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69025         callers changed.  Revamp internals significantly, by not
69026         attempting to create directories that are temporarily more
69027         permissive than the final results.  Do not attempt to use
69028         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69029         This removes some race conditions, fixes some bugs, and simplifies
69030         things.  Use new dirchownmod function to do owner and mode changes.
69031         * lib/mkdir-p.h: Likewise.
69032         * lib/modechange.c (octal_to_mode): New function.
69033         (struct mode_change): New member mentioned.
69034         (make_node_op_equals): New arg mentioned.  All callers changed.
69035         (mode_compile): Keep track of which mode bits the user has explicitly
69036         mentioned.
69037         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69038         New arg PMODE_BITS, to keep track of which mode bits the user
69039         mentioned; it treats S_ISUID and S_ISGID speciall.
69040         All callers changed.
69041         * lib/modechange.h: Likewise.
69042
69043 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * MODULES.html.sh: Add mkancestors.
69046         * modules/mkancesdirs: New module.
69047         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69048         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69049         The chdir-safer and afs files are now orphans; I'll remove them
69050         unless someone speaks up.
69051         Add lib/dirchownmod.c, lib/dirchownmod.h.
69052         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69053         Add lchown, mkancesdirs.
69054         (Maintainer): Add self.
69055
69056 2006-07-15  Karl Berry  <karl@gnu.org>
69057
69058         * gnulib-tool: help message wording/arrangement.
69059
69060 2006-07-14  Simon Josefsson  <jas@extundo.com>
69061
69062         * doc/gnulib.texi (Libtool and Windows): New section.
69063
69064 2006-07-12  Simon Josefsson  <jas@extundo.com>
69065
69066         * modules/gendocs (License): Fix license, approved by Karl.
69067
69068 2006-07-12  Eric Blake  <ebb9@byu.net>
69069
69070         * MODULES.html.sh: Add gendocs.
69071
69072 2006-07-11  Eric Blake  <ebb9@byu.net>
69073
69074         * modules/fdl: New module, to install doc/fdl.texi.
69075         * MODULES.html.sh: Add new section for documentation modules.
69076         * gnulib-tool: Avoid space-tab.
69077         (--doc-base): New option, to manage files from doc.
69078
69079 2006-07-11  Eric Blake  <ebb9@byu.net>
69080
69081         * m4/absolute-header.m4: Fix comments to match recent change.
69082
69083 2006-07-11  Eric Blake  <ebb9@byu.net>
69084
69085         * gnulib-tool: List --doc-base before --tests-base.
69086
69087 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69088
69089         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69090
69091 2006-07-11  Bruno Haible  <bruno@clisp.org>
69092
69093         * README: Mention where to put documentation.
69094
69095 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69096
69097         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69098
69099 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69102         to stdint.m4.
69103
69104 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69105
69106         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69107         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69108         "no/such/file/stdint.h" when there is no such file, so that
69109         the resulting C code can be parsed by dodgy compilers.
69110         Problems reported by Bob Proulx.
69111
69112 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69113
69114         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69115         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69116         macros into the GNU _D_EXACT_NAMLEN.
69117         * lib/savedir.c:  Likewise.
69118         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69119
69120 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69121         and Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69124         * m4/savedir.m4:
69125         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69126         macros into the GNU _D_EXACT_NAMLEN.
69127
69128 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69131         around the absolute name, to work around a problem with the HP-UX
69132         11.23 native C compiler, reported by Bob Proulx.
69133
69134 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * doc/maintain.texi, make-stds.texi: Sync from
69137         <http://savannah.gnu.org/projects/gnustandards>.
69138
69139 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69142
69143 2006-07-09  Jim Meyering  <jim@meyering.net>
69144
69145         * m4/glob.m4: Remove a doubled word in a comment.
69146
69147 2006-07-09  Jim Meyering  <jim@meyering.net>
69148
69149         * lib/argp-pv.c: Remove a doubled word in a comment.
69150         * lib/check-version.c (check_version): Likewise.
69151         * lib/javacomp.c (compile_java_class): Likewise.
69152
69153 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69156         for the benefit of people using Autoconf 2.60.  If you want to
69157         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69158         (or m4/onceonly.m4, if pre-2.57) manually.
69159
69160 2006-07-08  Jim Meyering  <jim@meyering.net>
69161
69162         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69163         comment.
69164         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69165         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69166         comment.
69167
69168 2006-07-08  Jim Meyering  <jim@meyering.net>
69169
69170         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69171
69172 2006-07-07  Simon Josefsson  <jas@extundo.com>
69173
69174         * tests/test-crc.c: Change expected crc value, the test vector
69175         were probably computed using the old broken crc.c?
69176
69177 2006-07-06  Simon Josefsson  <jas@extundo.com>
69178
69179         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69180         now the canonical place for the M4 file).
69181
69182         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69183         from the sys_socket dependency now.
69184
69185         * modules/inet_pton (Files): Ditto.
69186
69187         * modules/inet_ntop (Files): Ditto.
69188
69189 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69190
69191         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69192         not gl_PREREQ_GETUSERSHELL.
69193
69194 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69195
69196         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69197         with only one argument, for Autoconf 2.60.
69198         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69199         expand to nothing, so add a shell command to avoid syntax error.
69200         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69201
69202 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69203
69204         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69205
69206 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69209         no longer needed.  Check for isblank decl.
69210         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69211         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69212         of existence.
69213
69214 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * lib/getloadavg.c: Use __VMS, not VMS.
69217         * lib/getopt.c: Likewise.
69218         * lib/getpagesize.h: Likewise.
69219         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69220         and probably does not work.
69221
69222 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * lib/.cppi-disable: Add wcwidth.
69225         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69226         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69227         (ISGRAPH): Remove.  All uses changed to isgraph.
69228         (FOLD) [!defined _LIBC]: Remove special case.
69229         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69230         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69231         HAVE_ISBLANK.
69232         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69233         case.
69234
69235 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69236
69237         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69238         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69239         brackets.  Other minor changes to suppress some compiler
69240         warnings.
69241
69242 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69243         and Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69246         of invoking obsolescent AC_HEADER_DIRENT macro.
69247         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69248         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69249         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69250         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69251         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69252         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69253         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69254         * m4/readdir.m4: Remove; no longer needed.
69255
69256 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69257         and Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69260         Don't worry about this obsolete case any more.
69261         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69262         directories.
69263         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69264         worry about this obsolete case any more.
69265         * lib/fts.c: Likewise.
69266         * lib/getcwd.c: Likewise.
69267         * lib/glob.h: Likewise.
69268         * lib/savedir.c: Likewise.
69269
69270 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69273         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69274         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69275         needed.
69276         All uses removed.
69277         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69278         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69279         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69280         needed.
69281         * m4/getdate.m4 (gl_GETDATE): Likewise.
69282         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69283         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69284         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69285         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69286         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69287         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69288         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69289         needed.
69290
69291 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * lib/memcasecmp.c: Include <limits.h>.
69294         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69295         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69296         Don't assume isdigit succeeds only on '0' through '9'.
69297
69298 2006-07-05  Eric Blake  <ebb9@byu.net>
69299
69300         * modules/getaddrinfo (Depends-on): Add snprintf.
69301
69302 2006-07-05  Eric Blake  <ebb9@byu.net>
69303
69304         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69305         to avoid 'header present but could not be compiled' on cygwin.
69306
69307 2006-07-05  Eric Blake  <ebb9@byu.net>
69308
69309         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69310         missing from netdb.h.
69311         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69312
69313 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69314
69315         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69316         no longer needed.
69317         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69318         * m4/getdate.m4 (gl_GETDATE): Likewise.
69319         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69320         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69321         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69322         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69324
69325 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69326
69327         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69328         All uses of is_space replaced by isspace.
69329         * lib/exit.h: Don't talk about STDC_HEADERS.
69330         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69331         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69332         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69333         replaced by isprint etc.
69334         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69335         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69336         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69337         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69338         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69339         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69340
69341 2006-07-05  Bruno Haible  <bruno@clisp.org>
69342
69343         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69344         the function exists, before testing against AIX.
69345         Reported by Martin Lambers <marlam@marlam.de>.
69346
69347 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69350         From Mark D. Baushke.
69351
69352 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69355         to the absolute name, not just one, to bypass Sun C 5.8's
69356         "warning: #include of /usr/include/... may be non-portable".
69357
69358 2006-07-04  Eric Blake  <ebb9@byu.net>
69359
69360         * modules/dirname-tests: New test module.
69361         * tests/test-dirname.c: New file, replacing dirname.c
69362         TEST_DIRNAME section that was recently deleted.
69363
69364 2006-07-04  Bruno Haible  <bruno@clisp.org>
69365
69366         Assume ANSI C header files and <ctype.h> functions.
69367         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69368         (mbsnwidth): Use isprint, iscntrl instead.
69369
69370 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69371
69372         Merge from coreutils.
69373         * MODULES.html.sh: Add xstrtold.
69374         * modules/xstrtold: New file.
69375         * modules/cycle-check (Files): Add lib/same-inode.h.
69376         * modules/dirname (Files): Add m4/double-slash-root.m4.
69377         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69378         * modules/mkdir-p (Files): Add lib/same-inode.h.
69379         * modules/same (Files): Add lib/same-inode.h.
69380
69381 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69384         This is to keep the terminology clean; POSIX talks about
69385         "absolute pathnames", not "full pathnames", but the GNU
69386         Coding Standards say to use "path" for something else;
69387         so use "absolute" to keep both sides happy.
69388         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69389         Set gl_absolute_header, not gl_full_header_path.
69390         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69391         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69392         All uses changed.
69393
69394         Merge from coreutils.
69395
69396         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69399         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69400         want to require the building of c-strtod.o.
69401         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69402         needs -lm directly.
69403         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69404
69405         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69408         --as-needed option if available.  Problem reported by Albert Chin in
69409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69410         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69411         cc merely issues a bunch of annoying warnings for --as-needed
69412         (this problem was reported by Bob Proulx).  Also, try linking with
69413         -lm to detect a bug in binutils 2.16 (this problem was reported
69414         by Ralf Wildenhues).
69415
69416         2006-06-18  Jim Meyering  <jim@meyering.net>
69417
69418         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69419         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69420         macro.
69421         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69422         also check for glibc-2.4's abort-inducing bug.
69423
69424         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69425         Low-probability clean-up should be to use rmdir to get rid of
69426         the just-created directory, not unlink.
69427
69428         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69429         configure fail, and request a bug report to inform us about it.
69430         Add a comment that, barring reports to the contrary, in 2007 we'll
69431         assume ftruncate is universally available.
69432
69433         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69436
69437         2006-03-12  Jim Meyering  <jim@meyering.net>
69438
69439         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69440         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69441         * m4/same.m4 (gl_SAME): Likewise.
69442         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69443
69444         2006-03-11  Eric Blake  <ebb9@byu.net>
69445
69446         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69447         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69448         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69449         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69450
69451 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69454         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69455         reported by Mark D. Baushke, one in
69456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69457
69458         Merge from coreutils.
69459
69460         * lib/.cppi-disable: Add stdint_.h.
69461         * lib/.cvsignore: Add stdint.h.
69462
69463         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69466         both double and long double versions.
69467         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69468         * lib/xstrtold.c: New file.
69469         * lib/xstrtod.h (xstrtold): New decl.
69470
69471         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * lib/filemode.c (setst): Remove.
69474         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69475         (arguably) clearer, and the generated code is a bit smaller on my
69476         Debian GNU/Linux stable x86 host.
69477
69478         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69481         Assume that filemode.h includes sys/types.h and sys/stat.h.
69482         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69483         (ftypelet): Reorder to put common cases first, for efficiency.
69484         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69485         to do 'M'.
69486         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69487         of 10, for compatibility with FreeBSD.  All callers changed.
69488         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69489         types that can't be deduced solely from st_mode.  First arg is now a
69490         const pointer.
69491         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69492         (strmode): Renamed from mode_string.
69493         (filemodestring): New decl.
69494         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69495         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69496         needed.
69497         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69498
69499         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69500
69501         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69502         fsusage.h now does that.  Include fsusage.h first, to test interface.
69503         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69504         at most one method (the old code could have generated decls that
69505         didn't conform to C89, not that this was ever exercised).
69506         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69507
69508         2006-03-19  Jim Meyering  <jim@meyering.net>
69509
69510         Work even in a chroot where d_ino values for entries in "/"
69511         don't match the stat.st_ino values for the same names.
69512         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69513         number, iterate through all entries again, using lstat instead.
69514         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69515         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69516
69517         * lib/getcwd.c (__getcwd): Clarify a comment.
69518         Use memcpy in place of a call to strcpy.
69519
69520         2006-03-12  Jim Meyering  <jim@meyering.net>
69521
69522         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69523         matches that of the current directory (which we're about to chdir ".."
69524         out of), then save the dev-ino of the parent, instead.
69525
69526         * lib/same-inode.h (SAME_INODE): New file/macro.
69527         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69528         Include "same-inode.h", instead.
69529         * lib/same.c: Likewise.
69530         * lib/cycle-check.h: Include "same-inode.h".
69531         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69532         * lib/cycle-check.c (SAME_INODE): Remove definition.
69533         * lib/root-dev-ino.h: Include "same-inode.h".
69534
69535         2006-03-11  Eric Blake  <ebb9@byu.net>
69536
69537         * lib/same.c (same_name): s/base_name/last_component/
69538         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69539         * lib/filenamecat.c (file_name_concat): Likewise.
69540
69541         2006-03-11  Eric Blake  <ebb9@byu.net>,
69542                     Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69545         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69546         drive prefix.
69547         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69548         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69549         (last_component): New method.
69550         * lib/dirname.c (dir_len): Determine when drive letters need a
69551         subsequent slash.  Preserve // when it is special.
69552         (dir_name): Don't append dot when drive letter is absolute.
69553         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69554         * lib/basename.c (base_name): New semantics - malloc the result.
69555         Preserve // when it is special.  Preserve relative files that look
69556         like drive letters.
69557         (base_len): Preserve // when it is special.
69558         (last_component): New method, similar to old base_name semantics.
69559         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69560         base_name.  Strip redundant slashes from ///.
69561
69562 2006-07-03  Jim Meyering  <jim@meyering.net>
69563
69564         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69565         macro is used before the first cycle_check call.
69566
69567 2006-07-03  Eric Blake  <ebb9@byu.net>
69568
69569         * modules/dirname (Depends-on): Add xstrndup.
69570
69571 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69574         test cases, so that config.log is a bit easier to follow.
69575
69576 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69579         both are 64 bits, since this seems to be the tradition, and this
69580         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69581         we ever run into a host that prefers long long to long in this
69582         case, we'll need another configure-time test.  Problem reported by
69583         Jim Meyering.
69584
69585 2006-07-02  Eric Blake  <ebb9@byu.net>
69586
69587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69588
69589 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * modules/inttypes (Depends-on): No longer depends on stdint.
69592         * modules/stdint (Description): Say more about assumptions.
69593         Say that the fast types might differ.  Say macros are used.
69594         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69595         (Makefile.am): Revise list of substituted symbols to match
69596         new stdint.m4.
69597         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69598         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69599         * tests/test-stdint.c (verify_same_types)
69600         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69601         the code conforms to C99/C89.
69602         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69603         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69604
69605 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69608         but fix a bug, by requiring at least 64 bits.
69609         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69610         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69611         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69612         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69613
69614         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69615         changes.  Make 2.59 a prerequisite.  Check and substitute for
69616         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69617         inttypes.h.  Do not use special include files; just use the
69618         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69619         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69620         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69621         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69622         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69623         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69624         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69625         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69626         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69627         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69628         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69629         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69630         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69631         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69632         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69633         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69634         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69635         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69636         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69637         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69638         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69639         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69640         not check for things that C99 does not require, e.g., int8_t.  If
69641         a test isn't needed unless <stdint.h> isn't working, and is
69642         unlikely to be needed for any other reason, then don't do it
69643         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69644         size_t, since we assume C89 freestanding at least.  Do not check
69645         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69646         the right thing even if the types are not defined.  Instead use:
69647         (gl_STDINT_TYPE_PROPERTIES): New macro.
69648         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69649         testing whether <sys/types.h> clashes, as Autoconf does this for
69650         us now.  All uses removed.
69651         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69652         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69653         (gl_CHECK_TYPE_SAME):
69654         Remove; no longer needed.
69655         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69656         exists, since we'll return 0 anyway in that case.
69657         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69658
69659 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69662         possible collision with system files.
69663         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69664         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69665         WCHAR_MIN and WCHAR_MAX in this case.
69666         (<stddef.h>): Do not include; no longer needed.
69667         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69668         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69669         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69670         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69671         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69672         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69673         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69674         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69675         !defined(__c99))]: Include in this case too, since it's harmless
69676         now.
69677         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69678         dangerous to do so.
69679         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69680         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69681         (_STDINT_MIN, _STDINT_MAX): New macros.
69682         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69683         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69684         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69685         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69686         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69687         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69688         macros, not typedefs; this simplifies things quite a bit.
69689         Use long int for all types narrower than int64_t.
69690         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69691         Define in terms of long long int or int64_t or long int,
69692         not int64_t or int32_t.  This saves some compile-time testing.
69693         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69694         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69695         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69696         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69697         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69698         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69699         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69700         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69701         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69702         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69703         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69704         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69705         undef any previous version and define our own version, for
69706         simplicity and consistency with the new macros for types.
69707         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69708         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69709         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69710         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69711         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69712         @WINT_T_SUFFIX@ to keep things simple here.
69713         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69714         Simplify by assuming typical 8/16/32/64 host, since we're
69715         already doing that elsewhere anyway.
69716         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69717         and assume long long int is 64 bits if available.  This
69718         speeds up 'configure'.
69719
69720 2006-07-01  Eric Blake  <ebb9@byu.net>
69721
69722         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69723         Reported by Andreas Buening.
69724
69725 2006-07-01  Eric Blake  <ebb9@byu.net>
69726
69727         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69728
69729 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69730
69731         * lib/getaddrinfo.c: fixed typo
69732
69733 2006-06-29  Jim Meyering  <jim@meyering.net>
69734
69735         * modules/strftime (Maintainer): Add my name, since with the
69736         FPRINTFTIME changes strftime.c has forked from glibc.
69737
69738 2006-06-29  Eric Blake  <ebb9@byu.net>
69739
69740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69741
69742 2006-06-29  Eric Blake  <ebb9@byu.net>
69743
69744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69745
69746 2006-06-29  Eric Blake  <ebb9@byu.net>
69747
69748         * lib/stat_.h: New file.
69749
69750 2006-06-29  Eric Blake  <ebb9@byu.net>
69751
69752         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69753         unused static function.
69754
69755 2006-06-29  Eric Blake  <ebb9@byu.net>
69756
69757         * doc/functions.texi (Function Portability): Document missing lstat
69758         on mingw.
69759
69760 2006-06-29  Eric Blake  <ebb9@byu.net>
69761
69762         * MODULES.html.sh: Add sys_stat.
69763         * modules/sys_stat: New module.
69764         * modules/mkstemp (Depends-on): Add sys_stat.
69765
69766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69767
69768         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69769
69770 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69771
69772         * m4/c-bs-a.m4: Removed.
69773
69774 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69775
69776         * lib/strftime.c: Assume strftime() exists.
69777
69778 2006-06-29  Derek Price  <derek@ximbiot.com>
69779
69780         * modules/c-bs-a: Removed - \a is C89.
69781         * MODULES.html.sh: Remove c-bs-a.
69782
69783 2006-06-29  Bruno Haible  <bruno@clisp.org>
69784
69785         * modules/wcwidth (License): Change to LGPL.
69786
69787 2006-06-28  Simon Josefsson  <jas@extundo.com>
69788
69789         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69790         on _WIN32.
69791
69792         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69793         getnameinfo.
69794
69795 2006-06-28  Simon Josefsson  <jas@extundo.com>
69796
69797         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69798
69799 2006-06-28  Simon Josefsson  <jas@extundo.com>
69800
69801         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69802         functions there.  It will succeed on Windows XP, but on Windows
69803         2000 and (presumably) earlier, it will fail, and use the internal
69804         re-implementation.
69805         (use_win32_p): New function.
69806         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69807         Support AI_NUMERICSERV to disable getservbyname.
69808         (getnameinfo): New function, only supports
69809         NI_NUMERICHOST|NI_NUMERICSERV for now.
69810
69811         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69812         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69813         getnameinfo.
69814
69815 2006-06-28  Eric Blake  <ebb9@byu.net>
69816
69817         * modules/wcwidth: New file.
69818         * modules/mbchar (Depends-on): Add wcwidth.
69819         * modules/mbswidth (Depends-on): Add wcwidth.
69820         * MODULES.html.sh: Add wcwidth.
69821
69822 2006-06-28  Eric Blake  <ebb9@byu.net>
69823
69824         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69826
69827 2006-06-28  Eric Blake  <ebb9@byu.net>
69828
69829         * lib/xvasprintf.h: Fix comments.
69830
69831 2006-06-28  Eric Blake  <ebb9@byu.net>
69832
69833         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69834         * lib/mbswidth.c (wcwidth): Move from here...
69835         * lib/wcwidth.h: ...to this new file.
69836
69837 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69838
69839         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69840
69841         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69842         it's obsolete.
69843         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69844
69845 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69846
69847         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69848         Autoconf 2.60 says this stuff was obsolete.
69849
69850 2006-06-28  Bruno Haible  <bruno@clisp.org>
69851
69852         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69853
69854 2006-06-28  Bruno Haible  <bruno@clisp.org>
69855
69856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69857         gt_TYPE_WCHAR_T.
69858
69859 2006-06-28  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69862         declaration for wcwidth.
69863         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69864
69865 2006-06-28  Bruno Haible  <bruno@clisp.org>
69866
69867         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69868         (mkdir): Define using _mkdir.
69869
69870 2006-06-28  Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/getaddrinfo.h: Fix POSIX URL.
69873         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69874         _WIN32.
69875         (use_win32_p): Make static.
69876         (getaddrinfo): Reject service name if it is empty or does not consist
69877         solely of decimal digits, or if its value is > 65535.
69878         (getnameinfo): Remove useless casts.
69879
69880 2006-06-27  Simon Josefsson  <jas@extundo.com>
69881
69882         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69883         Eggert and Martin Lambers.
69884
69885 2006-06-27  Simon Josefsson  <jas@extundo.com>
69886
69887         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69888         Eggert and Martin Lambers.
69889
69890 2006-06-27  Bruno Haible  <bruno@clisp.org>
69891
69892         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69893         result to 0, not to empty.
69894         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69895
69896 2006-06-27  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69899
69900 2006-06-26  Simon Josefsson  <jas@extundo.com>
69901
69902         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69903         present.
69904
69905 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69908         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69910
69911 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69912
69913         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69914
69915 2006-06-26  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69918
69919 2006-06-26  Bruno Haible  <bruno@clisp.org>
69920
69921         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69922
69923 2006-06-26  Bruno Haible  <bruno@clisp.org>
69924
69925         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69926         SGI C compiler in pre-C99 mode.
69927         Suggested by Mark D. Baushke and Larry Jones.
69928
69929 2006-06-26  Bruno Haible  <bruno@clisp.org>
69930
69931         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69932         WCHAR_MAX.
69933         Reported by Mark D. Baushke and Larry Jones.
69934
69935 2006-06-26  Bruno Haible  <bruno@clisp.org>
69936
69937         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69938         in pre-C99 mode.
69939         Suggested by Mark D. Baushke and Larry Jones.
69940
69941 2006-06-23  Simon Josefsson  <jas@extundo.com>
69942             Bruno Haible  <bruno@clisp.org>
69943
69944         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69945         Emit mostlyclean-local rule.
69946         (func_emit_tests_Makefile_am): Likewise.
69947         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69948
69949 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69950
69951         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69952
69953 2006-06-23  Bruno Haible  <bruno@clisp.org>
69954
69955         * tests/test-stdint.c: Update to match ISO C 99 Technical
69956         Corrigendum 1.
69957
69958 2006-06-23  Bruno Haible  <bruno@clisp.org>
69959
69960         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69961
69962 2006-06-23  Bruno Haible  <bruno@clisp.org>
69963
69964         * lib/stdint_.h: Treat IRIX like OpenBSD.
69965
69966 2006-06-23  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69969         ISO C 99 Technical Corrigendum 1.
69970
69971 2006-06-22  Simon Josefsson  <jas@extundo.com>
69972
69973         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69974         MinGW.
69975
69976 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69979         needed.  Some compiler complained about some of them.  Problem reported
69980         by Larry Jones in
69981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69982
69983 2006-06-21  Simon Josefsson  <jas@extundo.com>
69984
69985         * tests/test-getaddrinfo.c: New file.
69986
69987         * modules/getaddrinfo-tests: New file.
69988
69989         * MODULES.html.sh: Add inet_pton.
69990
69991         * modules/inet_pton: New file.
69992
69993 2006-06-21  Simon Josefsson  <jas@extundo.com>
69994
69995         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69996         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69997         of using the (limited) gnulib implementation on Windows XP.
69998
69999         * m4/inet_pton.m4: New file.
70000
70001 2006-06-21  Simon Josefsson  <jas@extundo.com>
70002
70003         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70004         variable.
70005
70006         * lib/socket_.h: Don't define WINVER.
70007
70008         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70009         slightly modified to work in gnulib.
70010
70011 2006-06-21  Simon Josefsson  <jas@extundo.com>
70012
70013         * doc/gnulib.texi (Windows sockets): Add.
70014
70015 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/read-file.c (fread_file): Start with buffer allocation of
70018         0 bytes rather than 1 byte; this simplifies the code.
70019         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70020         code to free buffer and save/restore errno.
70021         (internal_read_file): Remove unused local.
70022
70023 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70026         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70027         Problem reported by Denis Excoffier in
70028         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70029
70030 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70031
70032         * modules/sys_socket, modules/socklen: Include sys/types since
70033         FreeBSD 4.x's sys/socket.h needs it.
70034
70035 2006-06-19  Simon Josefsson  <jas@extundo.com>
70036
70037         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70038
70039 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70042
70043 2006-06-19  Bruno Haible  <bruno@clisp.org>
70044
70045         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70046         and FULL_PATH_INTTYPES_H in angle brackets.
70047         Reported by Mark D. Baushke <mdb@gnu.org>.
70048
70049 2006-06-17  Eric Blake  <ebb9@byu.net>
70050
70051         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70052         errno.
70053
70054 2006-06-17  Bruno Haible  <bruno@clisp.org>
70055
70056         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70057         <sys/inttypes.h>.
70058
70059 2006-06-17  Bruno Haible  <bruno@clisp.org>
70060
70061         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70062         whether errno is declared. Assume <errno.h> declares errno.
70063
70064 2006-06-17  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70067
70068 2006-06-17  Bruno Haible  <bruno@clisp.org>
70069
70070         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70071         problem on Solaris 2.5.1.
70072
70073 2006-06-16  Eric Blake  <ebb9@byu.net>
70074
70075         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70076         * lib/unicodeio.c [!defined errno]: Likewise.
70077         * lib/strtol.c [!defined errno]: Likewise.
70078         * lib/strtod.c [!defined errno]: Likewise.
70079
70080 2006-06-15  Eric Blake  <ebb9@byu.net>
70081
70082         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70083
70084 2006-06-15  Eric Blake  <ebb9@byu.net>
70085
70086         * config/srclist.txt (ssize_t.m4): Lose sync.
70087
70088 2006-06-15  Bruno Haible  <bruno@clisp.org>
70089
70090         * modules/stdint (Files): Include m4/full-header-path.m4,
70091         m4/size_max.m4, m4/wchar_t.m4.
70092         (Makefile.am): Many more substitutions.
70093         * modules/stdint-tests: New file.
70094         * tests/test-stdint.c: New file.
70095
70096 2006-06-15  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70099         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70100         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70101         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70102         gl_CHECK_TYPE_SAME): New macros.
70103
70104 2006-06-15  Bruno Haible  <bruno@clisp.org>
70105
70106         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70107
70108 2006-06-15  Bruno Haible  <bruno@clisp.org>
70109
70110         * lib/stdint_.h: Rewritten to be fully auto-configured.
70111         Fixes bug on HP-UX/IA64.
70112
70113 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70114
70115         * lib/getdate.y (__attribute__): Don't define if already defined.
70116         Problem reported by Larry Jones.
70117         * lib/utimens.c (__attribute__): Likewise.
70118
70119 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70122         reported by Andreas Schwab.
70123
70124 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70125             Bruno Haible  <bruno@clisp.org>
70126
70127         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70128         check for the declaration of strnlen and a run test that exposes the
70129         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70130         rpl_strndup.
70131
70132 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70133             Bruno Haible  <bruno@clisp.org>
70134
70135         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70136
70137 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70138
70139         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70140         compile test, for Tru64 4.0D.
70141
70142 2006-05-28  Karl Berry  <karl@gnu.org>
70143
70144         * config/srclist.txt (printf-args.c): lose sync.
70145
70146 2006-05-26  Martin Lambers  <marlam@marlam.de>
70147
70148         * lib/getpass.c: Updates the test for the native W32 API, and adds
70149         missing includes, thus fixing compilation warnings.
70150
70151 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70152
70153         * lib/exclude.c (exclude_fnmatch): New function.
70154         (excluded_file_name): Call exclude_fnmatch.
70155         * lib/exclude.h (excluded_file_name): New prototype
70156
70157 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/tempname.c (small_open, large_open): New macros.
70160         (__open, __open64) [!_LIBC]: Remove.
70161         (__gen_tempname): Use small_open and large_open instead of __open
70162         and __open64.  This fixes a portability bug on HP-UX 11.11i
70163         reported by Simon Wing-Tang in
70164         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70165
70166 2006-05-24  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70169         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70170         Reported by Thorsten Maerz <torte@netztorte.de> via
70171         Aaron Stone <aaron@serendipity.cx>.
70172
70173 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70176         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70177         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70178         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70179         not really conditional on the cache.
70180         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70181
70182 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70185         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70186         (my_usleep): Don't mishandle maximum value.
70187
70188 2006-05-19  Jim Meyering  <jim@meyering.net>
70189
70190         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70191
70192 2006-05-17  Bruno Haible  <bruno@clisp.org>
70193
70194         Cygwin portability.
70195         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70196
70197 2006-05-17  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/stdint_.h: Fix recognition of Cygwin.
70200
70201 2006-05-15  Bruno Haible  <bruno@clisp.org>
70202
70203         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70204         on libtool patch by Ralf Wildenhues.
70205
70206 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70209         test for C99 conformance; (bool) 0.5 is an integer constant
70210         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70211         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70212
70213 2006-05-11  Simon Josefsson  <jas@extundo.com>
70214
70215         * m4/xvasprintf.m4: Fix obvious typo.
70216
70217 2006-05-11  Jim Meyering  <jim@meyering.net>
70218
70219         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70220         James Lemley.
70221
70222 2006-05-10  Simon Josefsson  <jas@extundo.com>
70223
70224         * lib/md4.c: Typo fix, update copyright years.
70225         (K1, K2): Don't use L because it turn computations into 64-bit on
70226         64-bit platforms.
70227
70228 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70231         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70232         unwanted sign propagation, e.g., on hosts with 64-bit int.
70233         There still are some problems with reeelly weird theoretical hosts
70234         (e.g., 33-bit int) but it's not worth worrying about now.
70235         * lib/sha1.c (rol): Likewise.
70236         (K1, K2, K3, K4): Remove unnecessary L suffix.
70237
70238 2006-05-10  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/des.c: Cast to avoid warnings.
70241
70242 2006-05-09  Bruno Haible  <bruno@clisp.org>
70243
70244         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70245         (Depends-on): Depend also on xsize, stdarg.
70246         (configure.ac): Add gl_XVASPRINTF.
70247
70248 2006-05-09  Bruno Haible  <bruno@clisp.org>
70249
70250         * m4/xvasprintf.m4: New file.
70251
70252 2006-05-09  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70255         (EOVERFLOW): Define fallback value.
70256         (xstrcat): New function.
70257         (xvasprintf): Recognize the special case of a string concatenation.
70258
70259 2006-05-08  Eric Blake  <ebb9@byu.net>
70260
70261         * gnulib-tool (func_version): Base copyright year on CVS date.
70262         (func_emit_copyright_notice): New function.
70263         (func_emit_lib_Makefile_am): Use it.
70264         (func_emit_tests_Makefile_am): Likewise.
70265         (func_import): Likewise.
70266
70267 2006-05-08  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/stdarg: New file.
70270         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70271
70272 2006-05-08  Bruno Haible  <bruno@clisp.org>
70273
70274         * m4/stdarg.m4: New file, from GNU gettext.
70275
70276 2006-05-08  Bruno Haible  <bruno@clisp.org>
70277
70278         * config/srclist.txt (build-aux/config.rpath): different from latest
70279         release.
70280
70281 2006-05-08  Bruno Haible  <bruno@clisp.org>
70282
70283         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70284
70285 2006-05-05  Jim Meyering  <jim@meyering.net>
70286
70287         * m4/warning.m4: New file, derived from bison's file by the same name.
70288
70289 2006-05-03  Bruno Haible  <bruno@clisp.org>
70290
70291         * lib/stdint_.h: Shorter URL.
70292         * lib/inttypes.h: Likewise.
70293
70294 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70297
70298 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * lib/verify.h: Document the internals better.  Most of this change
70301         was written by Bruno Haible.
70302
70303 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * doc/verify.texi: New file, partly based on a proposal by
70306         Bruno Haible.
70307
70308 2006-05-02  Bruno Haible  <bruno@clisp.org>
70309
70310         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70311         test from here...
70312         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70313
70314 2006-04-29  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70317         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70318
70319 2006-04-29  Bruno Haible  <bruno@clisp.org>
70320
70321         * gnulib-tool: Make --update option actually work.
70322
70323 2006-04-29  Bruno Haible  <bruno@clisp.org>
70324
70325         * doc/gcd.texi: New file.
70326         * doc/gnulib.texi: Include it.
70327
70328 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * lib/getdate.y (get_date): When adding relative date, start with the
70331         initial time, not with the result of the first mktime call.
70332
70333 2006-04-25  Bruno Haible  <bruno@clisp.org>
70334
70335         * gnulib-tool (func_import): Output the include directives in three
70336         blocks, sorted separately.
70337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70338
70339 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70342         to define main with arguments, for C++.  Reported by Eric Blake.
70343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70344         Prefer 'int main ()' to 'int main (void)', for C++.
70345         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70347         for 'main', for C99 and C++.
70348
70349 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70352         Don't assume that exit status -1 is valid.
70353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70354         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70355         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70356         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70357         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70359         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70360         functions can be used without declaring them, or that you can
70361         exit with status -1.
70362         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70363
70364 2006-04-24  Karl Berry  <karl@gnu.org>
70365
70366         * config/srclist.txt (longdouble.m4): sync lost.
70367
70368 2006-04-24  Eric Blake  <ebb9@byu.net>
70369
70370         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70371
70372 2006-04-24  Bruno Haible  <bruno@clisp.org>
70373
70374         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70375         poll() implementation in AIX.
70376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70377
70378 2006-04-24  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70381         assigned exactly once.
70382
70383 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70384             Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70387         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70388         for AM_CPPFLAGS.
70389
70390 2006-04-23  Bruno Haible  <bruno@clisp.org>
70391
70392         * modules/copy-file: Depend on unistd.
70393         * modules/execute: Likewise.
70394         * modules/fatal-signal: Likewise.
70395         * modules/findprog: Likewise.
70396         * modules/mkdtemp : Likewise.
70397         * modules/pipe: Likewise.
70398         * modules/wait-process: Likewise.
70399
70400 2006-04-23  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70403         condition was already detected.
70404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70405
70406 2006-04-23  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/copy-file.c: Include <unistd.h> unconditionally.
70409         * lib/execute.c: Likewise.
70410         * lib/fatal-signal.c: Likewise.
70411         * lib/findprog.c: Likewise.
70412         * lib/mkdtemp.c: Likewise.
70413         * lib/pipe.h: Likewise.
70414         * lib/pipe.c: Likewise.
70415         * lib/wait-process.h: Likewise.
70416
70417 2006-04-23  Bruno Haible  <bruno@clisp.org>
70418
70419         * gnulib-tool (func_usage): Fix --import description. Document
70420         --update.
70421         (func_import): Create temporary file in a temporary directory, if
70422         --dry-run is specified. Silence errors from 'grep' when there are no
70423         m4 files in $m4dir.
70424         (func_create_testdir): Silence errors from 'grep' when there are no
70425         m4 files in $m4dir.
70426         Reported by Karl Berry <karl@freefriends.org>.
70427
70428 2006-04-20  Bruno Haible  <bruno@clisp.org>
70429
70430         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70431         one argument, so that the code will be portable to Autoconf 2.60.
70432         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70433         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70434         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70435
70436 2006-04-19  Derek Price  <derek@ximbiot.com>
70437             Eric Blake  <ebb9@byu.net>
70438
70439         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70440         rather than "/full/path.h".  Update comment to match.  Shorten &
70441         generalize m4_translit call via AS_TR_CPP.
70442
70443 2006-04-19  Derek Price  <derek@ximbiot.com>
70444             Eric Blake  <ebb9@byu.net>
70445
70446         * lib/inttypes.h: Correct grammar in comment.
70447
70448 2006-04-18  Derek Price  <derek@ximbiot.com>
70449             Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * modules/inttypes: New file.
70452         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70453
70454 2006-04-18  Derek Price  <derek@ximbiot.com>
70455             Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70458         New files.
70459
70460 2006-04-18  Derek Price  <derek@ximbiot.com>
70461             Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * lib/inttypes.h: New file.
70464         * lib/strtoimax.c: Assume <inttypes.h>.
70465
70466 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70469         isn't mounted.  Problem reported by Kir Kolyshkin.
70470
70471 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70474         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70475         Derek R. Price.
70476         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70477         implementation.
70478
70479 2006-04-12  Eric Blake  <ebb9@byu.net>
70480
70481         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70482         is now done automatically by the corresponding Autoconf macro.
70483
70484 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70487         time_r.h.
70488
70489 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         Merge regex changes from libc, removing some of our
70492         POSIX-conformance changes that were rejected and redoing them in a
70493         less-intrusive way.
70494
70495         * lib/regcomp.c (re_compile_internal, init_dfa):
70496         Length arg is now size_t, not Idx.  All uses changed.
70497         (peek_token): Forward decl now says internal_function.
70498         (__re_error_msgid, __re_error_msgid_idx):
70499         Now static rather than extern with attribute_hidden.
70500         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70501         For some reason libc prefers K&R style defns for external functions.
70502         (regerror) [!defined _LIBC]: Likewise.
70503         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70504         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70505         (build_range_exp, build_collating_symbol):
70506         Use K&R-style defn.
70507         (re_compile_fastmap): Use '\0' to memset, not 0.
70508         (utf8_sb_map): Make the calculations more obvious.
70509         (init_dfa, parse_bracket_exp, build_charclass_op):
70510         Call calloc and cast result, as glibc does.
70511         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70512         (build_range_exp, build_collating_symbol):
70513         Now internal functions.
70514
70515         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70516
70517         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70518         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70519         Don't depend on VMS; depend on __VMS instead, for POSIX
70520         namespace cleanness.
70521         (regoff_t): Define to ssize_t, not long int.
70522
70523         Remove the REG_ macros named below.  Instead, make the old names
70524         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70525         __USE_GNU_REGEX.
70526         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70527         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70528         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70529         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70530         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70531         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70532         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70533         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70534         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70535         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70536         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70537         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70538         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70539         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70540         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70541         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70542         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70543         (REG_NREGS):
70544         Remove.  All uses replaced by the old RE_* names.
70545         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70546         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70547         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70548         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70549         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70550         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70551         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70552         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70553         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70554         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70555         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70556         Don't bother having these macros be independent of each others'
70557         values, since they no longer exist in the POSIX name space.
70558
70559         Rename the following member names back to their old names,
70560         unless !__USE_GNU_REGEX.  All uses changed back.
70561         (buffer): Renamed from re_buffer.
70562         (allocated): Renamed from re_allocated.
70563         (used): Renamed from re_used.
70564         (syntax): Renamed from re_syntax.
70565         (fastmap): Renamed from re_fastmap.
70566         (translate): Renamed from re_translate.
70567         (can_be_null): Renamed from re_can_be_null.
70568         (regs_allocated): Renamed from re_regs_allocated.
70569         (fastmap_accurate): Renamed from re_fastmap_accurate.
70570         (no_sub): Renamed from re_no_sub.
70571         (not_bol): Renamed from re_not_bol.
70572         (not_eol): Renamed from re_not_eol.
70573         (newline_anchor): Renamed from re_newline_anchor.
70574         (num_regs): Renamed from rm_num_regs.
70575         (start): Renamed from rm_start.
70576         (end): Renamed from rm_end.
70577
70578         (free_state): Move up a bit.
70579
70580         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70581         #define to be empty.
70582         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70583         when that is what is intended.
70584         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70585         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70586         (MAX): New macro.
70587         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70588         All uses changed back to re_malloc, etc.  It's now the caller's
70589         responsibility to check for overflow; all callers changed.
70590         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70591         (re_x2nrealloc): Remove.
70592         (free_state): Remove decl.
70593
70594         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70595         (re_set_registers, re_exec):
70596         Use K&R-style defn.
70597
70598         2006-01-31  Roland McGrath  <roland@redhat.com>
70599
70600         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70601         Reported by Mike Frysinger <vapier@gentoo.org>.
70602
70603         2006-01-15  Andreas Jaeger  <aj@suse.de>
70604
70605         [BZ #1950]
70606         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70607         build_wcs_upper_buffer change.
70608         (build_wcs_upper_buffer): Change return type.
70609
70610         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70611
70612         * lib/regex_internal.h: Include <stdint.h> if available.
70613
70614         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70615
70616         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70617
70618         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70619
70620         * lib/regcomp.c: Adjust for changed secondary hash function.
70621
70622         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70623
70624         * lib/regex.h: Pretty printing.
70625         Clean up namespace a bit.
70626
70627         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70628
70629         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70630         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70631
70632         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70633                     Ulrich Drepper  <drepper@redhat.com>
70634
70635         [BZ #1302]
70636         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70637         changed.
70638         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70639
70640         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70641
70642         [BZ #281]
70643         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70644         * lib/regcomp.c: Remove unnecessary uses of
70645         unsigned RE_TRANSLATE_TYPE.
70646         * lib/regex_internal.h: Likewise.
70647         * lib/regex_internal.c: Likewise.
70648         * lib/regexec.c: Likewise.
70649         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70650
70651         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70652
70653         * lib/regexec.c (find_recover_state): Remove unnecessary
70654         initialization.
70655         (transit_state_bkref): Make DFA a const pointer.
70656         (get_subexp): Likewise.
70657         (check_arrival): Likewise.
70658         (update_cur_sifted_state): Likewise.
70659         (re_search_internal): Likewise.
70660         (prune_impossible_nodes): Likewise.
70661         (acquire_init_state_context): Likewise.
70662         (proceed_next_node): Likewise.
70663         (set_regs): Likewise.
70664         (free_fail_stack_return): Likewise.
70665         (check_arrival_expand_ecl): Mark DFA parameter as const.
70666         (check_arrival_expand_ecl_sub): Likewise.
70667         (check_subexp_limits): Likewise.
70668         (sub_epsilon_src_nodes):  Likewise.
70669         (add_epsilon_src_nodes):  Likewise.
70670         (merge_state_array): Likewise.
70671         (update_regs): Likewise.
70672         (build_trtable): Likewise.
70673         (sift_states_backward): Mark MCTX parameter as const.
70674         (build_sifted_states): Likewise.
70675         (update_cur_sifted_state): Likewise.
70676         (sift_states_mkref): Likewise.
70677         (check_arrival_expand_ecl): Mark eclosure as const.
70678         (check_dst_limits_calc_pos_1): Likewise.
70679         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70680         pointer.
70681
70682         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70683
70684         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70685         (transit_state_sb): Likewise.
70686         (transit_state_mb): Likewise.
70687         (sift_states_iter_mb): Likewise.
70688         (check_arrival_add_next_nodes): Likewise.
70689         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70690         [_LIBC] (re_search_2_stub): Use mempcpy.
70691
70692         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70693         mbrtowc for very simple UTF-8 case.
70694
70695         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70696         a pointer-to-const.
70697         (re_acquire_state_context): Likewise.
70698         * lib/regex_internal.h: Adjust prototypes.
70699
70700         * lib/regex.c: Prevent using C++ compilers.
70701
70702         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70703         (re_acquire_state_context): Likewise.
70704
70705 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * modules/regex (Depends-on): Add ssize_t.
70708
70709 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70712         translation table.
70713
70714 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70717
70718 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70719             Bruno Haible  <bruno@clisp.org>
70720
70721         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70722         <sys/types.h> and <inttypes.h>.
70723
70724 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70725
70726         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70727         `__error_t_defined', so argp.h will not typedef the former.
70728
70729 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70732         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70733         glibc names.  Even if glibc is changed to conform to POSIX, the
70734         traditional names will be available anyway, since regex depends on
70735         the extensions module.  Also, fix a longstanding typo in the
70736         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70737         reported by Emanuele Giaquinta.  Also, change sense of cached
70738         variable, so that the message makes sense.
70739
70740 2006-03-24  Simon Josefsson  <jas@extundo.com>
70741
70742         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70743         including some doc fixes.
70744         (base64_encode_alloc): Fix +1 bug on allocation failures.
70745
70746 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70747
70748         * lib/base64.c (base64_encode): Do not read past end of array with
70749         unsanitized input on systems with CHAR_BIT > 8.
70750
70751 2006-03-24  Eric Blake  <ebb9@byu.net>
70752
70753         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70754
70755 2006-03-22  Karl Berry  <karl@gnu.org>
70756
70757         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70758         * config/srclistvars.sh (COREUTILS): new var.
70759
70760 2006-03-17  Jim Meyering  <jim@meyering.net>
70761
70762         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70763         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70764
70765 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70768         no longer needs it.  Instead, check that regoff_t is as least
70769         as wide as ptrdiff_t.
70770
70771         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70772         so that our regex.h stays compatible with the installed regex.
70773         This is helpful for installers who configure --without-included-regex.
70774         Problem reported by Emanuele Giaquinta.
70775
70776 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70779         Typedef to long int, not to off_, as POSIX will likely change
70780         in that direction.
70781
70782 2006-03-15  Eric Blake  <ebb9@byu.net>
70783
70784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70785
70786 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70787
70788         * lib/argp-help.c (validate_uparams): Fix typo
70789         * lib/argp-parse.c (argp_default_options): Consistently begin help
70790         messages with a lowercase letter.
70791
70792 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70795         overrun buffers and shouldn't be used (much as gets shouldn't be
70796         used).
70797         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70798
70799 2006-03-08  Simon Josefsson  <jas@extundo.com>
70800
70801         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70802         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70803
70804 2006-03-08  Simon Josefsson  <jas@extundo.com>
70805
70806         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70807         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70808
70809 2006-03-08  Simon Josefsson  <jas@extundo.com>
70810
70811         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70812         signal that configure disabled the device.
70813
70814 2006-03-08  Simon Josefsson  <jas@extundo.com>
70815
70816         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70817         languages.
70818
70819 2006-03-07  Simon Josefsson  <jas@extundo.com>
70820
70821         * modules/getopt (Depends-on): Add unistd.
70822
70823         * modules/unistd: New file.
70824
70825 2006-03-07  Simon Josefsson  <jas@extundo.com>
70826
70827         * modules/gc-random: New file.
70828
70829 2006-03-07  Simon Josefsson  <jas@extundo.com>
70830
70831         * m4/unistd_h.m4: New file.
70832
70833 2006-03-07  Simon Josefsson  <jas@extundo.com>
70834
70835         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70836         test to be side-effect free by storing the result in the cache
70837         variable gl_cv_lib_readline, and moving the assignment of
70838         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70839         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70840
70841 2006-03-07  Simon Josefsson  <jas@extundo.com>
70842
70843         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70844         error on missing devices (the functions will return an error).
70845
70846         * m4/gc.m4: Move random stuff to gc-random.m4
70847
70848 2006-03-07  Simon Josefsson  <jas@extundo.com>
70849
70850         * lib/unistd_.h: New file.
70851
70852 2006-03-07  Simon Josefsson  <jas@extundo.com>
70853
70854         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70855
70856 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70859         Problem reported by Juan Manuel Guerrero.
70860
70861 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70864         the unistd module.
70865         * lib/getlogin_r.c: Likewise.
70866         * lib/getlogin_r.h: Likewise.
70867         * lib/glob.c: Likewise.
70868         * lib/pagealign_alloc.c: Likewise.
70869         * lib/unistd_.h: Remove; no longer needed.
70870
70871 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70874         Add unistd.
70875         * modules/c-stack (Depends-on): Add unistd.
70876         * modules/getlogin_r: Likewise.
70877         * modules/glob: Likewise.
70878         * modules/pagealign_alloc: Likewise.
70879         * modules/unistd (Files): Remove lib/unistd_.h.
70880         (EXTRA_DIST): Remove.
70881         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70882         need unistd_.h.
70883         (MOSTLYCLEANFILES): Remove unistd.h-t.
70884
70885 2006-03-03  Simon Josefsson  <jas@extundo.com>
70886
70887         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70888
70889 2006-03-03  Simon Josefsson  <jas@extundo.com>
70890
70891         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70892         libidn and bison.
70893
70894 2006-03-03  Simon Josefsson  <jas@extundo.com>
70895
70896         * build-aux/maint.mk: Add indent target.
70897
70898 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70899
70900         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70901         our replacement poll.h in any case, to avoid a differing
70902         declaration from a system header.  Seen on AIX.
70903
70904 2006-03-01  Simon Josefsson  <jas@extundo.com>
70905
70906         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70907         <kasal@ucw.cz>.
70908
70909 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * modules/gettime (Depends-on): Add extensions module.
70912         * modules/nanosleep (Depends-on): Likewise.
70913         * modules/settime (Depends-on): Likewise.
70914
70915 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70918         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70919         pedantically.
70920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70921         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70922
70923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70924         not "==".  Reported by Ralf Wildenhues.
70925
70926 2006-03-01  Karl Berry  <karl@gnu.org>
70927
70928         * doc/Copyright/request-*: new files, synced from gnuorg.
70929
70930 2006-03-01  Karl Berry  <karl@gnu.org>
70931
70932         * config/srclist.txt (Copyright/*): new entries.
70933
70934 2006-02-28  Simon Josefsson  <jas@extundo.com>
70935
70936         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70937
70938 2006-02-27  Simon Josefsson  <jas@extundo.com>
70939
70940         * lib/base64.h: Indent #define's.  From Jim Meyering
70941         <jim@meyering.net>.
70942
70943 2006-02-27  Jim Meyering  <jim@meyering.net>
70944
70945         Revert the change of 2006-02-24, so these files can continue
70946         to be sync'd from gettext.
70947         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70948         of `config.h'.
70949
70950 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * modules/intprops: New file.
70953         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70954         Add intprops.
70955         * modules/getloadavg (Files): Remove lib/intprops.h.
70956         (Depends-on): Add intprops.
70957         * modules/human: Likewise.
70958         * modules/inttostr: Likewise.
70959         * modules/openat: Likewise.
70960         * modules/sig2str: Likewise.
70961         * modules/userspec: Likewise.
70962         * modules/utimecmp: Likewise.
70963         * modules/xnanosleep: Likewise.
70964         * modules/xstrtol: Likewise.
70965
70966 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70967
70968         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70969         * modules/lock-tests (TESTS): Use $(EXEEXT).
70970         * modules/tls-tests: Likewise.
70971         * modules/argp-tests: Likewise.
70972         (check_PROGRAMS): New var, replacing...
70973         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70974
70975 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70976
70977         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70978         `config.h'.
70979
70980 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70983
70984 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70985
70986         Sync from coreutils.
70987         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70988         gl_CHDIR_SAFER.
70989
70990 2006-02-22  Jim Meyering  <jim@meyering.net>
70991
70992         Sync from coreutils.
70993         * m4/chdir-safer.m4: New file.
70994
70995 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70998         AT_FDCWD exceeds INT_MAX.
70999         * lib/openat.h (AT_FDCWD): Likewise.
71000
71001 2006-02-17  Eric Blake  <address@hidden>
71002
71003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71004
71005 2006-02-16  Simon Josefsson  <jas@extundo.com>
71006
71007         * modules/getaddrinfo (Depends-on): Add sys_socket.
71008
71009 2006-02-15  Simon Josefsson  <jas@extundo.com>
71010
71011         * build-aux/maint.mk: Add dsyntax-check rule.
71012
71013 2006-02-15  Eric Blake  <ebb9@byu.net>
71014
71015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71016         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71017         'present but cannot compile' warnings on cygwin.
71018         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71019         use ws2tcpip.h if sys/socket.h works.
71020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71021         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71022
71023 2006-02-14  Simon Josefsson  <jas@extundo.com>
71024
71025         * modules/maintainer-makefile (Files): Rename.
71026
71027         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71028         and (the local) Makefile.cfg to maint-cfg.mk.
71029
71030         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71031         to the latter.
71032
71033         * modules/maintainer-makefile: New module.
71034
71035         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71036         severaly stripped to make it possible to build it up from scratch
71037         with reliable tests.
71038
71039         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71040         fixes to permit overriding the default actions when configure and
71041         makefile are not available.
71042
71043 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         Sync from coreutils.
71046         * modules/lstat (Depends-on): Don't depend on xalloc.
71047         (License): Change from GPL to LGPL, since this is now simply a
71048         replacement for a libc function.
71049
71050 2006-02-14  Jim Meyering  <jim@meyering.net>
71051
71052         Sync from coreutils.
71053
71054         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71055         failure on deficient systems, and simplify gnulib lgpl dependencies.
71056         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71057         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71058
71059         * lib/xalloc-die.c: Remove unused definition of N_.
71060
71061 2006-02-14  Jim Meyering  <jim@meyering.net>
71062
71063         Sync from coreutils.
71064         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71065         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71066         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71067         double-quote uses of that variable, to accommodate the rare case in
71068         which getmntent is available in none of the libraries checked.  This
71069         happens at least on FreeBSD 5.0.
71070
71071 2006-02-13  Simon Josefsson  <jas@extundo.com>
71072
71073         * gnulib-tool (Usage): Fix --import, from
71074         karl@freefriends.org (Karl Berry).
71075
71076 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71077
71078         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71079
71080 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71081
71082         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71083         "autoupdate" on 2005-12-12.
71084
71085 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71086
71087         * modules/closeout (Depends-on): Remove atexit.
71088
71089 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71092         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71093
71094 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71097         __EXTENSIONS__ if this causes compilation to fail.  Problem
71098         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71099         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71100
71101 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71104         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71105         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71106         All uses changed.
71107
71108 2006-01-26  Simon Josefsson  <jas@extundo.com>
71109
71110         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71111         prototype is visible on mingw32.
71112
71113         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71114         for mingw32.
71115
71116         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71117         mingw32).
71118
71119 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71122         attempt to open for write; this always fails, at least on POSIX
71123         hosts.  This reinstates the 2006-01-09 change, which was
71124         inadvertently removed.
71125
71126 2006-01-26  Bruno Haible  <bruno@clisp.org>
71127
71128         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71129         Reported by Paul Eggert.
71130
71131 2006-01-26  Bruno Haible  <bruno@clisp.org>
71132             Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         * lib/stdbool_.h (_Bool)
71135         [(! (defined __cplusplus || defined __BEOS__)
71136           && !defined __GNUC__
71137           && !(defined __HP_cc || defined __xlc__
71138                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71139                || defined __sgi))]:
71140         #define to signed char in these cases too; this simplifies
71141         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71142         etc., separately) and makes it more conservative.
71143
71144 2006-01-25  Simon Josefsson  <jas@extundo.com>
71145
71146         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71147         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71148         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71149
71150 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71151
71152         * lib/argp-namefrob.h: Bugfix. Remove stray #
71153
71154 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71157         so that we test the test.
71158         Check for yet another HP-UX cc bug involving *bool |= bool.
71159
71160 2006-01-25  Karl Berry  <karl@gnu.org>
71161
71162         * config/srclist.txt (vasnprintf.c): sync lost.
71163
71164 2006-01-25  Jim Meyering  <jim@meyering.net>
71165
71166         Sync from the stable (b5) branch of coreutils:
71167
71168         * lib/fts.c (fts_children): Don't let close() clobber errno from
71169         failed fchdir().
71170
71171         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71172         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71173         a dangling symlink.  That can also happen at least for ELOOP.
71174         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71175         FYI, this bug predates the inclusion of fts.c in coreutils.
71176
71177         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71178         in their own block, so pre-c99 compilers don't object.
71179
71180         Avoid the double-free (first in fts_read, second in fts_close) that
71181         would occur when an `active' directory is made inaccessible (e.g.,
71182         via chmod a-x) during a traversal.
71183         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71184         before returning.  Reproduce this failure by
71185         mkdir -p a/b; cd a; chmod a-x . b
71186         Reported by Stavros Passas.
71187
71188 2006-01-25  Jim Meyering  <jim@meyering.net>
71189
71190         * lib/fileblocks.c: Remove more useless parentheses.
71191         * lib/readutmp.h: Likewise.
71192
71193 2006-01-25  Bruno Haible  <bruno@clisp.org>
71194
71195         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71196         warnings.
71197         Reported by Paul Eggert.
71198
71199 2006-01-25  Bruno Haible  <bruno@clisp.org>
71200
71201         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71202         rid of a trap command. For Solaris sh.
71203         Reported by Mark D. Baushke <mdb@gnu.org>.
71204
71205 2006-01-24  Simon Josefsson  <jas@extundo.com>
71206
71207         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71208         Bruno.
71209
71210 2006-01-24  Karl Berry  <karl@gnu.org>
71211
71212         * config/srclist.txt (argp-namefrob.h): sync lost.
71213
71214 2006-01-24  Jim Meyering  <jim@meyering.net>
71215
71216         * modules/openat (Files): Add lib/intprops.h.
71217         From Mark D. Baushke.
71218
71219 2006-01-24  Jim Meyering  <jim@meyering.net>
71220
71221         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71222         Reported by Mark D. Baushke.
71223
71224 2006-01-24  Jim Meyering  <jim@meyering.net>
71225
71226         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71227
71228 2006-01-24  Bruno Haible  <bruno@clisp.org>
71229
71230         * modules/strnlen (Maintainer): Change from glibc to all.
71231
71232 2006-01-24  Bruno Haible  <bruno@clisp.org>
71233
71234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71235         Patch by Paul Eggert.
71236
71237 2006-01-24  Bruno Haible  <bruno@clisp.org>
71238
71239         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71240         already has it.
71241         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71242         2005-11-26.
71243
71244         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71245         'signed char' to avoid problems with the built-in _Bool type.
71246         Reported by Paul Eggert on 2005-11-26.
71247
71248 2006-01-24  Bruno Haible  <bruno@clisp.org>
71249
71250         * gnulib-tool (func_import): Avoid constructing complicated sed
71251         expressions inside backquote.
71252         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71253
71254 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71255
71256         These changes imported from libc.
71257         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71258         test and two separate function calls.
71259         * lib/strndup.c (__strndup): Add libc_hidden_def.
71260
71261 2006-01-23  Simon Josefsson  <jas@extundo.com>
71262
71263         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71264         Remove the test_*_SOURCES variable: automake infers it by default.
71265         * modules/tls-tests: Likewise.
71266
71267 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71268
71269         Work around porting bugs reported by Dieter in
71270         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71271         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71272         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71273         Include "getopt.h" first, to check interface.
71274         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71275         !HAVE_DECL_GETENV.
71276         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71277         (__strndup): Revert to K&R-style function dfns, the glibc style.
71278         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71279         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71280         Include strnlen.h first, to get prototype properly.
71281         (strnlen): Renamed from __strnlen.
71282         Remove weak alias.
71283
71284 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71287
71288 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * config/srclist.txt: Adjust to reflect glibc reorganization.
71291         This affects only comments.
71292
71293 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71294
71295          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71296          Reported by Bruce Korb <bkorb@gnu.org>.
71297
71298 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71301         to pacify gcc -Wswitch-default.
71302
71303 2006-01-22  Bruno Haible  <bruno@clisp.org>
71304
71305         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71306         temporary buffer for sprintf, take into account the precision also
71307         for 'd', 'i', 'u', 'o', 'x', 'X'.
71308
71309 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71310
71311         * modules/argp-tests: New module
71312         * tests/test-argp.c: New file
71313         * tests/test-argp-2.sh: New file
71314
71315 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71316
71317         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71318         (__argp_base_name): Removed
71319         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71320         typo.
71321         (__argp_base_name): Provide macro definition or extern declaration
71322         depending on the configuration
71323
71324 2006-01-20  Simon Josefsson  <jas@extundo.com>
71325
71326         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71327
71328 2006-01-20  Simon Josefsson  <jas@extundo.com>
71329
71330         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71331
71332 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71335         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71336         Suggested by Bruno Haible.
71337
71338 2006-01-20  Karl Berry  <karl@gnu.org>
71339
71340         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71341         until changes propagate, I guess.
71342
71343 2006-01-19  Simon Josefsson  <jas@extundo.com>
71344
71345         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71346
71347 2006-01-19  Simon Josefsson  <jas@extundo.com>
71348
71349         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71350
71351 2006-01-19  Simon Josefsson  <jas@extundo.com>
71352
71353         * gnulib-tool: Set check_PROGRAMS.
71354
71355         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71356         modules/des-tests, modules/gc-arcfour-tests,
71357         modules/gc-arctwo-tests, modules/gc-des-tests,
71358         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71359         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71360         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71361         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71362         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71363         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71364         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71365         test_*_SOURCES.
71366
71367 2006-01-18  Simon Josefsson  <jas@extundo.com>
71368
71369         * modules/socklen (Depends-on): Depend on sys_socket.
71370
71371 2006-01-18  Simon Josefsson  <jas@extundo.com>
71372
71373         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71374         modules/des-tests, modules/gc-arcfour-tests,
71375         modules/gc-arctwo-tests, modules/gc-des-tests,
71376         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71377         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71378         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71379         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71380         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71381         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71382         $(EXEEXT) to automake TESTS variable, for mingw32.
71383
71384 2006-01-17  Simon Josefsson  <jas@extundo.com>
71385
71386         * modules/socklen (Include): Need sys/socket.h.
71387
71388 2006-01-17  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/ssize_t (Include): Add <sys/types.h>.
71391
71392 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71395         it's not portable and it doesn't work with cross-compiles.
71396         Problem reported by Bruno Haible.  Fix missing-$ typo in
71397         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71398         -zignore from being used with Sun's C compiler.
71399
71400 2006-01-12  Simon Josefsson  <jas@extundo.com>
71401
71402         * lib/base64.c: Fix warning, reported by Bruno Haible
71403         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71404
71405 2006-01-12  Bruno Haible  <bruno@clisp.org>
71406
71407         * modules/ldd: New file.
71408         * build-aux/ldd.sh.in: New file.
71409         * MODULES.html.sh (Support for building libraries and executables): Add
71410         ldd.
71411
71412 2006-01-12  Bruno Haible  <bruno@clisp.org>
71413
71414         * m4/ldd.m4: New file.
71415
71416 2006-01-12  Bruno Haible  <bruno@clisp.org>
71417
71418         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71419         endless loop while replacing $auxdir with build-aux.
71420
71421 2006-01-11  Simon Josefsson  <jas@extundo.com>
71422
71423         * lib/stdint_.h (SIZE_MAX): Add missing (.
71424
71425 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         Sync from coreutils.
71428         * lib/md5.c: Fix commentary typos.
71429         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71430         * lib/md5.h (__attribute__): Remove; unused.
71431         * lib/sha1.c: Fix commentary to match md5 better.
71432         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71433         so that we don't need to worry about alignment.  All uses changed.
71434         This merges the 2005-10-28 md5 change into sha1.
71435
71436 2006-01-11  Jim Meyering  <jim@meyering.net>
71437
71438         Sync from coreutils.
71439         * lib/md5.c (OP): Fix spacing.
71440
71441 2006-01-11  Bruno Haible  <bruno@clisp.org>
71442
71443         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71444         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71445         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71446
71447 2006-01-11  Bruno Haible  <bruno@clisp.org>
71448
71449         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71450         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71451         the "early" section as well.
71452
71453 2006-01-11  Bruno Haible  <bruno@clisp.org>
71454
71455         Avoid "ar: no archive members specified" error on MacOS X.
71456         * gnulib-tool (func_modules_add_dummy): New function.
71457         (func_import, func_create_testdir): Invoke it.
71458
71459 2006-01-11  Bruno Haible  <bruno@clisp.org>
71460
71461         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71462         with $auxdir in AC_CONFIG_FILES statements.
71463
71464 2006-01-11  Bruno Haible  <bruno@clisp.org>
71465
71466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71467         Initialize also noinst_HEADERS to empty.
71468
71469 2006-01-11  Bruno Haible  <bruno@clisp.org>
71470
71471         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71472         variables.
71473         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71474         autoreconf.
71475
71476 2006-01-11  Bruno Haible  <bruno@clisp.org>
71477
71478         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71479         overridable by the user.
71480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71481
71482 2006-01-10  Simon Josefsson  <jas@extundo.com>
71483
71484         * modules/sys_socket: New file.
71485
71486 2006-01-10  Simon Josefsson  <jas@extundo.com>
71487
71488         * m4/sys_socket_h.m4: New file.
71489
71490 2006-01-10  Simon Josefsson  <jas@extundo.com>
71491
71492         * lib/socket_.h: New file.
71493
71494 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * modules/readutmp (Maintainer): Add myself.
71497
71498 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71501         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71502         People who are still concerned with buggy memcmp implementations
71503         can invoke gl_FUNC_MEMCMP themselves.
71504
71505 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * lib/regex_internal.h (BITSET_WORD_BITS):
71508         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71509         preprocessor mishandles large unsigned values as if they were signed.
71510         Problem reported by Claudio Fontana in
71511         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71512
71513 2006-01-10  Jim Meyering  <jim@meyering.net>
71514
71515         Avoid the double-free (first in fts_read, second in fts_close) that
71516         would occur when an `active' directory is made inaccessible (e.g.,
71517         via chmod a-x) during a traversal.
71518         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71519         before returning.  Reproduce this failure by
71520         mkdir -p a/b; cd a; chmod a-x . b
71521         Reported by Stavros Passas.
71522
71523         Sync from coreutils.
71524         * lib/sha1.c: Tweak grammar in a comment.
71525
71526 2006-01-10  Jim Meyering  <jim@meyering.net>
71527
71528         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71529         Patch by Joerg Sonnenberger.
71530
71531 2006-01-10  Bruno Haible  <bruno@clisp.org>
71532
71533         * modules/readutmp: Depend on module free.
71534         * modules/strtok_r: Depend on module restrict.
71535
71536 2006-01-10  Bruno Haible  <bruno@clisp.org>
71537
71538         * modules/gettext (configure.ac): Add an invocation of
71539         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71540
71541 2006-01-10  Bruno Haible  <bruno@clisp.org>
71542
71543         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71544         Reported by Werner Lemberg <wl@gnu.org>.
71545
71546 2006-01-10  Bruno Haible  <bruno@clisp.org>
71547
71548         * lib/localcharset.c: Update from GNU gettext.
71549
71550 2006-01-10  Bruno Haible  <bruno@clisp.org>
71551
71552         * lib/argp.h (__const): Remove macro. Use const instead.
71553         * lib/argp-fmtstream.h (__const): Likewise.
71554         * lib/glob_.h (__const): Remove macro.
71555         * lib/glob-libc.h: Use const instead of __const.
71556
71557 2006-01-10  Bruno Haible  <bruno@clisp.org>
71558
71559         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71560         variable.
71561         Needed to avoid an automake error regarding the 'gettext' module.
71562
71563 2006-01-09  Simon Josefsson  <jas@extundo.com>
71564
71565         * modules/inet_ntop (Depends-on): Add restrict.
71566
71567 2006-01-09  Simon Josefsson  <jas@extundo.com>
71568
71569         * modules/gc-rijndael-tests (License): Put under LGPL.
71570
71571         * modules/gc-des-tests (License): Likewise.
71572
71573         * modules/gc-arcfour-tests (License): Likewise.
71574
71575         * modules/gc-arctwo-tests (License): Likewise.
71576
71577         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71578
71579         * modules/gc-hmac-sha1-tests (Files): Likewise.
71580
71581         * modules/gc-hmac-md5-tests (License): Likewise.
71582
71583         * modules/gc-sha1-tests (License): Likewise.
71584
71585         * modules/gc-md5-tests (License): Likewise.
71586
71587         * modules/gc-md4-tests (License): Likewise.
71588
71589         * modules/gc-md2-tests (License): Likewise.
71590
71591         * modules/gc-tests (License): Likewise.
71592
71593         * modules/des-tests (License): Likewise.
71594
71595         * modules/md4-tests (License): Likewise.
71596
71597         * modules/md2-tests (License): Likewise.
71598
71599 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         Sync from coreutils:
71602
71603         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71604         * modules/lib-ignore: New file.
71605         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71606         chdir-safer.m4, lchmod.m4.
71607         * modules/openat: Add mkdirat.c, openat-priv.h.
71608
71609 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71610
71611         Sync from coreutils.
71612         * m4/lib-ignore.m4: New file.
71613         * m4/lchmod.m4: New file.
71614
71615 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         Sync from coreutils.
71618         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71619         for write access: POSIX says that must fail.
71620         * lib/fts.c (diropen): Likewise.
71621         * lib/save-cwd.c (save_cwd): Likewise.
71622         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71623         well, for minor improvements on hosts that lack O_DIRECTORY.
71624         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71625         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71626         Fall back on chown if open failed with EACCES.
71627
71628         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71629         Report an error at compile-time if only a 1-second nominal clock
71630         resolution is found.
71631
71632         * lib/lchmod.h: New file.
71633         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71634         (make_dir_parents): Use lchown rather than chown, and
71635         lchmod rather than chmod.
71636
71637         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71638         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71639         "proc" reported by n0dalus.
71640
71641         * lib/mountlist.c: Include <limits.h>.
71642         (dev_from_mount_options)
71643         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71644         New function.  It no longer assumes "dev=" has the System V meaning
71645         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71646         (read_file_system_list)
71647         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71648         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71649         dev= in that case.
71650
71651         * lib/posixtm.h (PDS_PRE_2000): New macro.
71652         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71653         allow_century.  All usages changed.  Reject dates outside the range
71654         1969-1999 if PDS_PRE_2000 is used.
71655
71656 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         Sync from coreutils.
71659         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71660         (Time of day items): Mention the possibility of leap seconds.
71661         Problem reported by Dr. David Alan Gilbert.
71662
71663 2006-01-09  Jim Meyering  <jim@meyering.net>
71664
71665         Sync from coreutils.
71666
71667         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71668
71669         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71670
71671         * lib/modechange.c (mode_compile): Reject an invalid mode string
71672         that starts with an octal digit.  From Andreas Gruenbacher.
71673
71674         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71675         and dup to open_safer and dup_safer, respectively.
71676         (openat_permissive): Fix typo in comment.
71677
71678         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71679         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71680         (_): Remove; no longer needed.
71681         (openat): Renamed from rpl_openat; no need for rpl_openat
71682         since openat.h renames openat for us.
71683         Replace most of the body with a call to openat_permissive,
71684         to avoid duplicate code.
71685         Port to (probably hypothetical) environments were mode_t is
71686         wider than int.
71687         (openat_permissive): Require mode arg, so that we can check
71688         types better.  Put it just after flags.  Change cwd failure
71689         indicator from pointer-to-bool to pointer-to-errno-value.
71690         All callers changed.
71691         Invoke openat_save_fail and/or openat_restore_fail if
71692         cwd_errno is null, so that openat can call us.
71693         (openat_permissive, fdopendir, fstatat, unlinkat):
71694         Simplify errno handling to avoid some duplicate code,
71695         as it's OK to set errno on success.
71696         * lib/openat.h: Revamp code so that function macros depend on
71697         __OPENAT_PREFIX only, not also on AT_FDCWD.
71698         (openat_ro): Remove.  Caller changed to use openat_permissive.
71699         (openat_permissive): Now a macro, if not a function.
71700         (openat_restore_fail, openat_save_fail): Now always functions,
71701         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71702
71703         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71704         and openat.c.
71705         * lib/mkdirat.c: Include openat-priv.h.
71706         Remove definitions of macros defined therein.
71707         * lib/openat.c: Likewise.
71708
71709         * lib/mkdirat.c (mkdirat): New file and function.
71710         * lib/openat.h (mkdirat): Declare.
71711
71712         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71713
71714         * lib/openat.h (openat_permissive): Declare.
71715         (openat_ro): Define.
71716
71717         * lib/openat.c (EXPECTED_ERRNO): New macro.
71718         (openat_permissive): New function -- used in remove.c rewrite.
71719         (all functions): Set errno just before returning, only if there
71720         was an actual failure.
71721         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71722
71723         Emulate openat-family functions using Linux's procfs, if possible.
71724         Idea and some code based on Ulrich Drepper's glibc changes.
71725
71726         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71727         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71728         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71729         before falling back on save_cwd and restore_cwd.
71730         (fdopendir, fstatat, unlinkat): Likewise.
71731
71732         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71733         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71734
71735         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71736         as second argument to va_arg.  Otherwise, some versions of gcc
71737         warn that `if this code is reached, the program will abort'.
71738
71739 2006-01-09  Jim Meyering  <jim@meyering.net>
71740
71741         Sync from coreutils.
71742         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71743         Require openat-priv.h.
71744
71745 2006-01-09  Bruno Haible  <bruno@clisp.org>
71746
71747         * modules/strnlen (Include): Use strnlen.h.
71748
71749 2006-01-09  Bruno Haible  <bruno@clisp.org>
71750
71751         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71752
71753 2006-01-09  Bruno Haible  <bruno@clisp.org>
71754
71755         * lib/sysexit_.h (EX_OK): New macro.
71756         Suggested by Martin Lambers <marlam@marlam.de>.
71757
71758 2006-01-09  Bruno Haible  <bruno@clisp.org>
71759
71760         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71761         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71762
71763 2006-01-09  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71766         numbers.
71767
71768 2006-01-09  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71771         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71772         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71773         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71774
71775 2006-01-09  Bruno Haible  <bruno@clisp.org>
71776
71777         * build-aux/javacomp.sh.in: New file, moved from lib/.
71778         * modules/javacomp-script (Files): Update.
71779         (configure.ac): Add AC_CONFIG_FILES invocation.
71780         (EXTRA_DIST): Remove variable.
71781
71782         * build-aux/javaexec.sh.in: New file, moved from lib/.
71783         * modules/javaexec (Files): Update.
71784         (configure.ac): Add AC_CONFIG_FILES invocation.
71785         (EXTRA_DIST): Remove javaexec.sh.in.
71786
71787         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71788         * modules/csharpcomp-script (Files): Update.
71789         (configure.ac): Add AC_CONFIG_FILES invocation.
71790         (EXTRA_DIST): Remove variable.
71791
71792         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71793         * modules/csharpexec (Files): Update.
71794         (configure.ac): Add AC_CONFIG_FILES invocation.
71795         (EXTRA_DIST): Remove csharpexec.sh.in.
71796
71797 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71798
71799         Sync from coreutils.
71800
71801         Add POSIX ACL support
71802         * lib/acl.h (copy_acl, set_acl): Add declarations.
71803         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71804         systems other than Linux.
71805         (chmod_or_fchmod): New function: use fchmod when possible,
71806         and chmod otherwise.
71807         (file_has_acl): Add a POSIX ACL implementation, with a
71808         Linux-specific subcase.
71809         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71810         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71811         acls are unsupported.
71812         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71813         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71814         are unsupported.
71815
71816 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71817
71818         Sync from coreutils.
71819         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71820
71821 2006-01-07  Bruno Haible  <bruno@clisp.org>
71822
71823         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71824         gl_EARLY.
71825
71826 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71829         Problem reported for Mingw by Mark Junker.
71830
71831 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * README: Gnulib normally doesn't generate a tarball.
71834
71835 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71838         long int, not int, for nanosecond counts, so that people who are
71839         used to POSIX struct timespec won't be surprised.  Reported by Jim
71840         Meyering.
71841
71842 2005-12-28  Bruno Haible  <bruno@clisp.org>
71843
71844         * build-aux/config.rpath: Update from GNU gettext.
71845
71846 2005-12-16  Jim Meyering  <jim@meyering.net>
71847
71848         * modules/fprintftime: New module.
71849         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71850
71851 2005-12-16  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/fprintftime.m4: New file.
71854
71855 2005-12-16  Jim Meyering  <jim@meyering.net>
71856
71857         * lib/fprintftime.c, lib/fprintftime.h: New files.
71858
71859 2005-12-15  Simon Josefsson  <jas@extundo.com>
71860
71861         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71862         new m4/socklen.m4.
71863
71864 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71865
71866         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71867         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71868
71869 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71870
71871         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71872         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71873         struct uparams is valid. Fall back to the default values if it is
71874         not.
71875
71876 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71877
71878         * modules/argp (Files): Add argp-pin.c
71879         (Depends-on): dirname
71880         (lib_SOURCES): Add argp-pin.c
71881
71882 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71883
71884         * m4/argp.m4:  Check if program_invocation_name and
71885         program_invocation_short_name are declared and define appropriate
71886         macros if they are not.
71887
71888 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71889
71890         * lib/argp-help.c (__argp_base_name): New function
71891         (__argp_short_program_name): Rewrite using __argp_base_name
71892         * lib/argp-namefrob.h: Define program_invocation_name and
71893         program_invocation_short_name if requested
71894         (__argp_base_name): Add prototype
71895         * lib/argp-parse.c (argp_def): Use gettext wrappers
71896         (argp_default_parser): Use __argp_base_name
71897         * lib/argp-pin.c: New file. Defines program_invocation_name and
71898         program_invocation_short_name on systems that lack them.
71899
71900 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71903         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71904         porting problem reported by Georg Schwarz in
71905         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71906
71907 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71910         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71911         porting problem reported by Georg Schwarz in
71912         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71913
71914 2005-12-05  Bruno Haible  <bruno@clisp.org>
71915
71916         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71917         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71918         Reported by Mark Junker <mjscod@gmx.de>.
71919
71920 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71923         Use implementation from Albert Chin, with some
71924         comments/corrections by Stepan Kasal and myself.
71925
71926 2005-12-02  Bruno Haible  <bruno@clisp.org>
71927
71928         * gnulib-tool (func_import): Accept GPLed build tool modules when
71929         --lgpl is given.
71930         * modules/csharpcomp-script: New file.
71931         * modules/csharpcomp: Depend on it.
71932         * modules/javacomp-script: New file.
71933         * modules/javacomp: Depend on it.
71934         Suggested by Simon Josefsson.
71935
71936 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71939         statement, to work around an HP-UX 10.20 compiler bug reported by
71940         Peter O'Gorman.
71941
71942 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         * modules/savedir (Depends-on): Add openat.
71945
71946 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71949         (uintmax_t) [defined uintmax_t]: Do not declare.
71950         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71951         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71952         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71953         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71954         sake of portability to weird hosts that C allows (though we don't
71955         know of any practical examples).
71956
71957         * lib/savedir.h (fdsavedir): New decl.
71958         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71959         contains most of the former guts of savedir.
71960         (savedir): Use savedirstream.
71961         Include "openat.h".
71962
71963 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * modules/obstack (Files): Add m4/ulonglong.m4.
71966         Problem reported by Davide Angelocola.
71967
71968 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71969
71970         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71971         coreutils no longer futzes with rounding modes.
71972
71973 2005-11-14  Jim Meyering  <jim@meyering.net>
71974
71975         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71976         replacement of mkstemp.
71977
71978 2005-11-10  Simon Josefsson  <jas@extundo.com>
71979
71980         * lib/readline.c: Remove EOL.
71981
71982 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * modules/gethrxtime (Depends-on): Add gettime.
71985
71986 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71989         or gettimeofday; no longer needed.
71990
71991 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71994         time business.
71995         (gethrxtime) [! (HAVE_NANOUPTIME
71996         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71997         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71998         our own approximation.
71999
72000 2005-11-08  Eric Blake  <ebb9@byu.net>
72001
72002         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72003
72004 2005-11-08  Eric Blake  <ebb9@byu.net>
72005
72006         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72007
72008 2005-11-04  Bruno Haible  <bruno@clisp.org>
72009
72010         * gnulib-tool: Implement --update mode.
72011
72012 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         Fix porting problem reported by Theodoros V. Kalamatianos.
72015         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72016         Don't assume that futimes failing means we must fail.
72017
72018 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72021         variables to suggest the intended function of the PATH_MAX check.
72022
72023 2005-10-30  Kean Johnston  <jkj@sco.com>
72024
72025         Trivial changes to support SCO systems.
72026         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72027         as PATH_MAX.
72028         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72029         where __ptr is null when no I/O is pending.
72030
72031 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72034         leave errno alone.  Problem reported by Dmitry V. Levin.
72035
72036 2005-10-28  Simon Josefsson  <jas@extundo.com>
72037
72038         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72039         Test more.
72040
72041         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72042
72043         * modules/md2, modules/md2-tests: New files.
72044
72045 2005-10-28  Simon Josefsson  <jas@extundo.com>
72046
72047         * m4/inet_ntop.m4: More tests.
72048
72049         * m4/gc-md2.m4, md2.m4: New file.
72050
72051 2005-10-28  Simon Josefsson  <jas@extundo.com>
72052
72053         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72054         "restrict" keywords, as per POSIX.  Protect the function
72055         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72056         Don't use K&R prototypes.  Check the sprintf return values.
72057         Re-define EAFNOSUPPORT if not present.  Indent.
72058
72059         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72060         suggested by Bruno Haible <bruno@clisp.org>.
72061
72062         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72063
72064         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72065
72066         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72067         libgcrypt).
72068
72069         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72070
72071         * lib/md2.h, lib/md2.c: New files.
72072
72073 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72076         errno alone.  Problem reported by Frederic Jolliton.
72077
72078 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * modules/verify (License): Change from GPL to LGPL.  This is a
72081         tiny module and there are apparently near-equivalents that are
72082         under the BSD license.
72083
72084 2005-10-24  Simon Josefsson  <jas@extundo.com>
72085
72086         * modules/sha1: Relicense to LGPL.
72087
72088 2005-10-24  Simon Josefsson  <jas@extundo.com>
72089
72090         * lib/md4.h: Shrink buffer size, now that we changed the type.
72091
72092 2005-10-23  Simon Josefsson  <jas@extundo.com>
72093
72094         * gnulib-tool (func_import): Fix --tests-base.
72095
72096 2005-10-22  Simon Josefsson  <jas@extundo.com>
72097
72098         * modules/arcfour (Depends-on): Need stdint.
72099
72100 2005-10-22  Simon Josefsson  <jas@extundo.com>
72101
72102         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72103         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72104
72105 2005-10-22  Simon Josefsson  <jas@extundo.com>
72106
72107         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72108         suggested by Bruno Haible <bruno@clisp.org>.
72109
72110 2005-10-22  Simon Josefsson  <jas@extundo.com>
72111
72112         * lib/crc.h: Include stddef.h, for size_t.
72113
72114 2005-10-22  Simon Josefsson  <jas@extundo.com>
72115
72116         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72117         arcfour_context struct (simplify test vector testing in GNU
72118         Shishi).
72119
72120 2005-10-21  Simon Josefsson  <jas@extundo.com>
72121
72122         * modules/des, modules/des-tests: New files.
72123
72124         * modules/gc-des, modules/gc-des-tests: New files.
72125
72126         * tests/test-des.c, tests/test-gc-des.c: New file.
72127
72128 2005-10-21  Simon Josefsson  <jas@extundo.com>
72129
72130         * modules/arctwo, modules/arctwo-tests: New files.
72131
72132         * tests/test-arctwo.c: New file.
72133
72134         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72135
72136         * tests/test-gc-arctwo.c: New file.
72137
72138 2005-10-21  Simon Josefsson  <jas@extundo.com>
72139
72140         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72141         Bruno Haible <bruno@clisp.org>.
72142
72143         * m4/gc-des.m4: New file.
72144
72145 2005-10-21  Simon Josefsson  <jas@extundo.com>
72146
72147         * m4/arctwo.m4: New file.
72148
72149         * m4/gc-arctwo.m4: New file.
72150
72151 2005-10-21  Simon Josefsson  <jas@extundo.com>
72152
72153         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72154         block.
72155
72156 2005-10-21  Simon Josefsson  <jas@extundo.com>
72157
72158         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72159         <bruno@clisp.org>.
72160
72161         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72162
72163         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72164         Bruno Haible <bruno@clisp.org>.
72165
72166         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72167         <bruno@clisp.org>.
72168
72169 2005-10-21  Simon Josefsson  <jas@extundo.com>
72170
72171         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72172
72173 2005-10-21  Simon Josefsson  <jas@extundo.com>
72174
72175         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72176
72177 2005-10-21  Simon Josefsson  <jas@extundo.com>
72178
72179         * lib/des.h, lib/des.c: New files.
72180
72181         * lib/gc-gnulib.c: Support DES.c
72182
72183 2005-10-21  Simon Josefsson  <jas@extundo.com>
72184
72185         * lib/arctwo.h, lib/arctwo.c: New files.
72186
72187         * lib/gc-gnulib.c: Support ARCTWO.
72188
72189 2005-10-21  Simon Josefsson  <jas@extundo.com>
72190
72191         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72193
72194 2005-10-21  Simon Josefsson  <jas@extundo.com>
72195
72196         * gnulib-tool (func_import, func_create_testdir): Define automake
72197         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72198         Makefile.am snippet),
72199         suggested by Bruno Haible <bruno@clisp.org>.
72200
72201         * modules/gc (Makefile.am): Use it.
72202
72203 2005-10-21  Bruno Haible  <bruno@clisp.org>
72204
72205         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72206         patch.
72207
72208 2005-10-19  Simon Josefsson  <jas@extundo.com>
72209
72210         * tests/test-gc-rijndael.c: New file.
72211
72212         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72213
72214 2005-10-19  Simon Josefsson  <jas@extundo.com>
72215
72216         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72217         interface too.
72218
72219 2005-10-19  Simon Josefsson  <jas@extundo.com>
72220
72221         * tests/test-gc-arcfour.c: New file.
72222
72223         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72224
72225 2005-10-19  Simon Josefsson  <jas@extundo.com>
72226
72227         * modules/gc-md4, modules/gc-md4-tests: New file.
72228
72229         * tests/test-gc-md4.c: New file.
72230
72231 2005-10-19  Simon Josefsson  <jas@extundo.com>
72232
72233         * m4/gc-md4.m4: New file.
72234
72235 2005-10-19  Simon Josefsson  <jas@extundo.com>
72236
72237         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72238         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72239         <kasal@ucw.cz>.
72240
72241 2005-10-19  Simon Josefsson  <jas@extundo.com>
72242
72243         * m4/gc-arcfour.m4: New file.
72244
72245         * m4/gc-rijndael.m4: New file.
72246
72247 2005-10-19  Simon Josefsson  <jas@extundo.com>
72248
72249         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72250
72251 2005-10-19  Simon Josefsson  <jas@extundo.com>
72252
72253         * lib/gc-gnulib.c: Support ARCFOUR.
72254
72255 2005-10-19  Simon Josefsson  <jas@extundo.com>
72256
72257         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72258         support.
72259
72260         * lib/gc.h: Add ECB enum type.
72261
72262         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72263
72264 2005-10-18  Simon Josefsson  <jas@extundo.com>
72265
72266         * tests/test-md5.c: New file.
72267
72268         * modules/md5-tests: New file.
72269
72270 2005-10-18  Simon Josefsson  <jas@extundo.com>
72271
72272         * tests/test-md4.c: New file.
72273
72274         * modules/md4, modules/md4-tests: New files.
72275
72276 2005-10-18  Simon Josefsson  <jas@extundo.com>
72277
72278         * m4/md4.m4: New file.
72279
72280 2005-10-18  Simon Josefsson  <jas@extundo.com>
72281
72282         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72283
72284 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72285
72286         * gnulib-tool (func_create_testdir): Omit the second check whether
72287         BUILT_SOURCES in nonempty.
72288
72289 2005-10-17  Simon Josefsson  <jas@extundo.com>
72290
72291         * tests/test-rijndael.c: New file.
72292
72293 2005-10-17  Simon Josefsson  <jas@extundo.com>
72294
72295         * modules/sha1: Depend on stdint instead of md5.
72296
72297         * modules/md5: Depend on stdint, remove uint32_t.
72298
72299 2005-10-17  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/gc-sha1-tests: New file.
72302
72303         * tests/test-gc-sha1.c: New file.
72304
72305 2005-10-17  Simon Josefsson  <jas@extundo.com>
72306
72307         * m4/md5.m4: Remove call to uint32_t.m4.
72308
72309 2005-10-17  Simon Josefsson  <jas@extundo.com>
72310
72311         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72312
72313         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72314         md5.h.
72315
72316         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72317
72318         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72319
72320 2005-10-17  Simon Josefsson  <jas@extundo.com>
72321
72322         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72323
72324 2005-10-17  Simon Josefsson  <jas@extundo.com>
72325
72326         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72327
72328 2005-10-17  Simon Josefsson  <jas@extundo.com>
72329
72330         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72331
72332         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72333
72334 2005-10-17  Bruno Haible  <bruno@clisp.org>
72335
72336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72337         that it can also be used in a test.
72338
72339 2005-10-16  Bruno Haible  <bruno@clisp.org>
72340
72341         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72342         TESTS_ENVIRONMENT, so that individual tests can augment it.
72343
72344         * gnulib-tool (func_create_testdir): Use an intermediate target for
72345         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72346         macros, like $(ALLOCA_H), which cannot be passed through the command
72347         line.
72348
72349 2005-10-15  Simon Josefsson  <jas@extundo.com>
72350
72351         * modules/rijndael-tests: New file.
72352
72353         * modules/rijndael: New file.
72354
72355 2005-10-15  Simon Josefsson  <jas@extundo.com>
72356
72357         * m4/rijndael.m4: New file.
72358
72359 2005-10-15  Simon Josefsson  <jas@extundo.com>
72360
72361         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72362
72363         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72364
72365 2005-10-14  Simon Josefsson  <jas@extundo.com>
72366
72367         * tests/test-arcfour.c: New file.
72368
72369         * modules/arcfour, modules/arcfour-tests: New files.
72370
72371 2005-10-14  Simon Josefsson  <jas@extundo.com>
72372
72373         * m4/arcfour.m4: New file.
72374
72375 2005-10-14  Simon Josefsson  <jas@extundo.com>
72376
72377         * lib/arcfour.h, lib/arcfour.c: New files.
72378
72379 2005-10-14  Roland McGrath  <roland@redhat.com>
72380
72381         Import from libc.  [BZ #1331]
72382         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72383         macro argument.
72384         Reported by Matej Vela <vela@debian.org>.
72385
72386 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72389         include <wchar.h>; no longer needed.
72390
72391 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72394
72395 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72396         and  Ulrich Drepper  <drepper@redhat.com>
72397
72398         Import from libc.
72399         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72400         instead of inline stream orientation test and two separate
72401         function calls.  Pay no attention to USE_IN_LIBIO.
72402
72403 2005-10-13  Simon Josefsson  <jas@extundo.com>
72404
72405         * modules/gc-hmac-md5-tests: New file.
72406
72407         * tests/test-gc-hmac-sha1.c: New file.
72408
72409         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72410
72411         * modules/gc-hmac-md5-tests: New file.
72412
72413         * tests/test-gc-md5.c: New file.
72414
72415         * modules/gc-md5-tests: New file.
72416
72417 2005-10-13  Simon Josefsson  <jas@extundo.com>
72418
72419         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72420         Move memory allocation outside of loop.
72421
72422 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72425         intermediate directory is in a read-only file system.  Problem
72426         reported by Eric Blake.
72427
72428 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72429
72430         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72431
72432 2005-10-12  Simon Josefsson  <jas@extundo.com>
72433
72434         * tests/test-hmac-sha1.c: New file.
72435
72436         * modules/hmac-sha1-tests: New file.
72437
72438         * modules/hmac-sha1: New file.
72439
72440 2005-10-12  Simon Josefsson  <jas@extundo.com>
72441
72442         * modules/gc-sha1: New file.
72443
72444 2005-10-12  Simon Josefsson  <jas@extundo.com>
72445
72446         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72447
72448         * tests/test-gc-pbkdf2-sha1.c: New file.
72449
72450 2005-10-12  Simon Josefsson  <jas@extundo.com>
72451
72452         * modules/gc-md5, modules/gc-hmac-md5: New files.
72453
72454         * modules/gc (Files): Remove md5, memxor and hmac files.
72455
72456 2005-10-12  Simon Josefsson  <jas@extundo.com>
72457
72458         * m4/gc-pbkdf2-sha1.m4: New file.
72459
72460         * m4/gc-hmac-sha1.m4: New file.
72461
72462         * m4/gc-sha1: New file.
72463
72464         * m4/hmac-sha1.m4: New file.
72465
72466 2005-10-12  Simon Josefsson  <jas@extundo.com>
72467
72468         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72469
72470         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72471
72472 2005-10-12  Simon Josefsson  <jas@extundo.com>
72473
72474         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72475         suggested by Bruno Haible <bruno@clisp.org>.
72476
72477 2005-10-12  Simon Josefsson  <jas@extundo.com>
72478
72479         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72480
72481 2005-10-12  Simon Josefsson  <jas@extundo.com>
72482
72483         * lib/gc-pbkdf2-sha1.c: New file.
72484
72485         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72486
72487 2005-10-12  Simon Josefsson  <jas@extundo.com>
72488
72489         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72490
72491         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72492
72493 2005-10-12  Simon Josefsson  <jas@extundo.com>
72494
72495         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72496         GC_USE_HMAC_MD5, respectively.
72497
72498         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72499         (gc_md5): Fix typo.
72500
72501         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72502
72503         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72504
72505         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72506
72507 2005-10-12  Bruno Haible  <bruno@clisp.org>
72508
72509         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72510         Reported by Stepan Kasal <kasal@ucw.cz>.
72511
72512 2005-10-11  Simon Josefsson  <jas@extundo.com>
72513
72514         * tests/test-crc.c: New file.
72515
72516         * modules/crc, modules/crc-tests: New files.
72517
72518 2005-10-11  Simon Josefsson  <jas@extundo.com>
72519
72520         * m4/crc.m4: New file.
72521
72522 2005-10-11  Simon Josefsson  <jas@extundo.com>
72523
72524         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72525
72526         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72527
72528         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72529
72530 2005-10-11  Simon Josefsson  <jas@extundo.com>
72531
72532         * lib/crc.h, lib/crc.c: New files.
72533
72534         * lib/gc.h (gc_hash_buffer): Add doc.
72535
72536 2005-10-11  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/c-strcasestr: New file.
72539         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72540
72541 2005-10-11  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/c-strcase: New file.
72544         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72545
72546 2005-10-11  Bruno Haible  <bruno@clisp.org>
72547
72548         * lib/strcasecmp.c: Include limits.h.
72549         (strcasecmp): Avoid integer overflow on exotic platforms.
72550         * lib/strncasecmp.c: Include limits.h.
72551         (strncasecmp): Avoid integer overflow on exotic platforms.
72552         Reported by Paul Eggert.
72553
72554 2005-10-11  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/c-strcasestr.h: New file, from GNU gettext.
72557         * lib/c-strcasestr.c: New file, from GNU gettext.
72558
72559 2005-10-11  Bruno Haible  <bruno@clisp.org>
72560
72561         * lib/c-strcase.h: New file, from GNU gettext.
72562         * lib/c-strcasecmp.c: New file, from GNU gettext.
72563         * lib/c-strncasecmp.c: New file, from GNU gettext.
72564
72565 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * modules/mempcpy (License): GPL -> LGPL.
72568         * modules/strchrnul (License): Likewise.
72569         * modules/sysexits (License): Likewise.
72570
72571 2005-10-08  Simon Josefsson  <jas@extundo.com>
72572
72573         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72574
72575 2005-10-07  Simon Josefsson  <jas@extundo.com>
72576
72577         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72578
72579 2005-10-06  Simon Josefsson  <jas@extundo.com>
72580
72581         * tests/test-hmac-md5.c: New file.
72582
72583         * modules/hmac-md5-tests: New file.
72584
72585         * modules/hmac-md5: New file.
72586
72587 2005-10-06  Simon Josefsson  <jas@extundo.com>
72588
72589         * m4/hmac-md5.m4: New file.
72590
72591         * m4/memxor.m4: Require gl_C_RESTRICT.
72592
72593 2005-10-06  Simon Josefsson  <jas@extundo.com>
72594
72595         * lib/memxor.c (memxor): Avoid casts and warnings.
72596
72597 2005-10-06  Simon Josefsson  <jas@extundo.com>
72598
72599         * lib/hmac-md5.c: New file.
72600
72601         * lib/hmac.h: New file.
72602
72603 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72606         promotes to int, not unsigned int, to catch the AIX 5.3
72607         compiler bug.
72608
72609 2005-10-05  Simon Josefsson  <jas@extundo.com>
72610
72611         * modules/memxor: New file.
72612
72613         * modules/iconv (Files): Move config.rpath to havelib, it is used
72614         there.
72615
72616         * modules/havelib (Files): Add config.rpath.
72617
72618 2005-10-05  Simon Josefsson  <jas@extundo.com>
72619
72620         * m4/memxor.m4: New file.
72621
72622 2005-10-05  Simon Josefsson  <jas@extundo.com>
72623
72624         * lib/memxor.c (memxor): Fix compiler error.
72625
72626         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72627         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72628
72629         * lib/memxor.h, lib/memxor.c: New files.
72630
72631         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72632         we assume all systems have it, suggested by Jim Meyering
72633         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72634         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72635         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72636         same reasons.
72637
72638 2005-10-05  Simon Josefsson  <jas@extundo.com>
72639
72640         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72641
72642 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72645         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72646         needed, since the source code now assumes these .h files.
72647
72648 2005-10-05  Derek Price  <derek@ximbiot.com>
72649
72650         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72651
72652 2005-10-05  Bruno Haible  <bruno@clisp.org>
72653
72654         * modules/stdint (License): Change to LGPL.
72655
72656 2005-10-04  Simon Josefsson  <jas@extundo.com>
72657
72658         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72659         D. Baushke" <mdb@gnu.org>.
72660
72661 2005-10-04  Bruno Haible  <bruno@clisp.org>
72662
72663         * lib/verify.h (verify_true): Provide alternative definition for C++.
72664
72665 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72668         (SSIZE_MAX): New macro, if not already defined.
72669         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72670         than 2 GiB.
72671
72672 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         Sync from coreutils.
72675         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72676         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72677         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72678         ULLONG_MAX doesn't work with 2.7.2.1.
72679
72680 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72683         From Ben Pfaff.
72684
72685         * modules/exclude (Depends-on): Depend on verify.
72686         * modules/strtoimax (Depends-on): Likewise.
72687         * modules/utimecmp (Depends-on): Likewise.
72688
72689 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * lib/exclude.c: Include verify.h.
72692         (verify): Remove.  All callers changed to use verify.h's version.
72693         * lib/strtoimax.c: Likewise.
72694         * lib/utimecmp.c: Likewis.e
72695
72696         Sync from coreutils.
72697         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72698         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72699         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72700         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72701         bother returning ENOSYS if settimeofday or stime fails; just let
72702         them return whatever errno they want to return.
72703         * lib/utimens.c: Include unistd.h, for dup2.
72704         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72705         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72706
72707 2005-10-02  Jim Meyering  <jim@meyering.net>
72708
72709         Sync from coreutils.
72710         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72711         from glibc-2.2.5 that fails for read-only files.
72712
72713 2005-10-02  Jim Meyering  <jim@meyering.net>
72714
72715         Sync from coreutils.
72716         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72717         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72718         `#if HAVE_CONFIG_H'.
72719         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72720         Remove AT_FDCWD test.
72721         Do not consume the fd unless successful.
72722         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72723         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72724         block, so that we don't even try to compile it if settimeofday is
72725         available.  This works around a compilation failure on OSF1 V5.1,
72726         due to stime requiring a `long int*' while tv_sec is `int'.
72727
72728 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72729
72730         Sync from coreutils.
72731         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72732         against `yes', rather than just testing for nonempty.
72733
72734 2005-10-01  Simon Josefsson  <jas@extundo.com>
72735
72736         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72737         and Darwin.
72738
72739         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72740         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72741         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72742         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72743         Check if struct addrinfo is declared.
72744
72745 2005-10-01  Simon Josefsson  <jas@extundo.com>
72746
72747         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72748         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72749         AI_* and EAI_* definitions.  Protect function declarations.
72750
72751 2005-10-01  Jim Meyering  <jim@meyering.net>
72752
72753         Sync from coreutils.
72754
72755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72756         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72757         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72759         in the inet and nsl libraries.  Required on Solaris 5.7.
72760
72761 2005-10-01  Jim Meyering  <jim@meyering.net>
72762
72763         Sync from coreutils.
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  Eric Blake  <ebb9@byu.net>  (tiny change)
72768
72769         * lib/getdelim.c (getdelim): Remove unused variables.
72770
72771 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72774         so that the code works even with ancient cpp.  Portability problem
72775         with GCC 2.7.2.1 reported by Thomas M.Ott.
72776
72777 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * modules/regex (Depends-on): Add strcase.
72780
72781         * modules/gethostname (Licence): Change from GPL to LGPL, since
72782         gethostname.c is a trivial implementation of a standard library
72783         function.
72784         * modules/poll (License): Change from GPL to LGPL, since it's
72785         derived from LGPL code.
72786
72787 2005-09-27  Jim Meyering  <jim@meyering.net>
72788
72789         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72790         HAVE_CONFIG_H.
72791
72792         * lib/intprops.h (signed_type_or_expr__): Define.
72793         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72794         for unsigned types.
72795
72796 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * lib/verify.h (verify_expr): Remove, replacing with:
72799         (verify_true): New macro that returns true instead of void.
72800         (verify_type__): Remove.
72801         (verify): Use verify_true rather than verify_type__.
72802
72803 2005-09-26  Bruno Haible  <bruno@clisp.org>
72804
72805         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72806         is necessary.
72807         (lib_SOURCES): Remove mbchar.c.
72808         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72809         (Files): Add m4/mbrtowc.m4.
72810         * modules/mbiter: Likewise.
72811         * modules/mbuiter: Likewise.
72812
72813 2005-09-26  Bruno Haible  <bruno@clisp.org>
72814
72815         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72816         compile mbchar.c if they are not both present.
72817         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72818         * m4/mbiter.m4 (gl_MBITER): Likewise.
72819         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72820         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72821         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72822
72823 2005-09-25  Jim Meyering  <jim@meyering.net>
72824
72825         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72826         also uses socklen_t.
72827
72828 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * lib/utimens.c (ENOSYS): Define if not already defined.
72831         (futimens): Support having a null PATH if the file descriptor
72832         is nonnegative.
72833
72834         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72835         Remove.
72836         (__attribute): Define to empty unless GCC 3.1 or later.
72837         This works around a core dump on OpenBSD 3.4, which has GCC
72838         2.95.3, which dumps core when given __attribute__(()).  It also
72839         simplifies other tests, since we really don't want to bother with
72840         worrying about which ancient version of GCC supported what.
72841         Original problem reported by Yoann Vandoorselaere, with part of
72842         the fix suggested by Derek Price.
72843
72844 2005-09-24  Jim Meyering  <jim@meyering.net>
72845
72846         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72847         so we can once again use a positive bitfield width of 1 -- now we
72848         don't have to explain why we were using a bitfield width of 2.
72849
72850 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72853         and similarly for the other external symbols.  Problem reported
72854         by James Gallager.
72855
72856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72857         bug reported by Jim Meyering.
72858
72859         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72860         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72861         not needed, since socklen is a prerequisite module.
72862
72863 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72866         Problem reported by Eric Blake.
72867         (getaddrinfo): Initialize se so that it's not garbage.
72868         Redo internal storage allocation so that it doesn't make unportable
72869         assumptions about alignment.
72870         Fix a memory leak.
72871
72872         * lib/utimens.c (futimens): Use futimesat if available.
72873         Prefer it to futimes since it doesn't have the futimes bug.
72874
72875         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72876         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72877         Instead, declare a function that returns a pointer to an array,
72878         and use verify_type__ to declare the size of the array.
72879         Problem and germ of a solution reported by Bruno Haible.
72880         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72881         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72882
72883 2005-09-23  Jim Meyering  <jim@meyering.net>
72884
72885         Sync from coreutils.
72886         Correct build failure (socklen_t not defined) on at least
72887         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72888         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72889
72890 2005-09-23  Jim Meyering  <jim@meyering.net>
72891
72892         * modules/getaddrinfo (Depends-on): Add socklen.
72893
72894 2005-09-23  Bruno Haible  <bruno@clisp.org>
72895
72896         * tests/test-verify.c: New file.
72897
72898 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         Sync from coreutils.
72901
72902         * modules/argmatch (Depends-on): Add verify.
72903         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72904         unistd-safer.
72905         * modules/save-cwd (Depends-on): Likewise.
72906
72907         * modules/openat (Files): Add lib/openat-die.c.
72908         (Depends-on): Remove error, exitfail.
72909         Add dirname.
72910
72911         * modules/verify: New file.
72912         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72913         with "verify" module.
72914
72915 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         Sync from coreutils.
72918
72919         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72920         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72921         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72922         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72923         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72924         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72925         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72926         Don't bother checking for string.h, stdlib.h, unistd.h.
72927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72928         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72929         module's job.
72930         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72931         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72932
72933         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72934         (gl_GETDATE): Use it.
72935
72936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72937
72938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72939
72940         Sync from coreutils.
72941
72942         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72943         stat-time.h.
72944         * lib/argmatch.h: Include verify.h
72945         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72946         (ARGMATCH_ASSERT): Remove; unused.
72947         * lib/canonicalize.c: Assume STDC_HEADERS.
72948         * lib/exclude.c: Include "strcase.h".
72949         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72950         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72951         and stdio-safer.h.
72952         (getusershell): Call fopen, not fopen_safer.
72953         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72954         Do not include unistd-safer.h.
72955         (save_cwd): Don't call fd_safer; no longer needed
72956         now that we include fcntl--.h.
72957
72958         * lib/getdate.y (relative_time): New type.
72959         (RELATIVE_TIME_0): New constant.
72960         (parser_control): Use relative_time instead of doing it ourselves.
72961         (%union): Add new relative_time rel member.
72962         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72963         Now typeless.
72964         (relunit, relunit_snumber): Now of type rel.
72965         (zone, rel, relunit, get_date): Adjust to above changes.
72966
72967         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72968         Do not include unistd-safer.h.
72969         (getloadavg): Don't call fd_safer; no longer needed
72970         now that we include fcntl--.h.
72971
72972         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72973         (make_dir_parents): Treat ENOSYS like EEXIST.
72974
72975         Improve quality of diagnostics on restore_cwd failure.
72976         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72977         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72978         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72979         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72980         each time through the loop.  Do not diagnose restore_cwd failure;
72981         that is the caller's job (and perhaps the caller does not care).
72982
72983         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72984         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72985         If the file already exists but is not a directory, don't bother
72986         to try to make its parents.
72987         Close potential file descriptor leak if we can't chdir("/") (!).
72988         Don't always return true if chdir($PWD) fails; return true only
72989         if the requested action was done successfully (except for the
72990         chdir($PWD)).
72991         Don't log final directory unless we actually made it.
72992         Refactor to avoid duplicate code to fix up permissions.
72993         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72994
72995         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72996         to make it a bit faster and (I hope) clearer.
72997         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72998         Fix bug in formats like %2N.
72999
73000         * lib/verify.h: New file.
73001
73002 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         Sync from coreutils.
73005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73006
73007 2005-09-22  Jim Meyering  <jim@meyering.net>
73008
73009         Sync from coreutils.
73010
73011         * m4/lstat.m4 (gl_FUNC_LSTAT):
73012         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73013         Remove obsolete comment.
73014         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73015         * m4/xstrtod.m4: Likewise.
73016
73017         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73018
73019 2005-09-22  Jim Meyering  <jim@meyering.net>
73020
73021         Sync from coreutils.
73022
73023         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73024
73025         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73026         the .tm_year member, since otherwise gcc-4.0 would now warn about
73027         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73028
73029         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73030         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73031
73032         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73033         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73034         when run in a time zone for which daylight savings time is in effect
73035         for the starting date.
73036
73037         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73038         stop us from restricting permissions of just-created absolute-named
73039         directories.
73040         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73041         to restore initial working directory.
73042         * lib/mkdir-p.c (make_dir_parents): New parameter:
73043         different_working_dir, to tell caller if/when we change the working
73044         directory and are unable to return to the initial one.
73045         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73046         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73047         `return false'.  This fixes a bug introduced on 2004-07-30.
73048
73049         * lib/openat.c (fdopendir): Be sure to close the supplied
73050         file descriptor before returning.  This makes our replacement
73051         implementation a little closer to Solaris's, where fdopendir
73052         ties the file descriptor to the returned DIR* pointer.
73053         * lib/openat.c (unlinkat): New function.
73054         * lib/openat.h (unlinkat): Add prototype.
73055         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73056         (openat_restore_fail): Rename from openat_restore_die.
73057         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73058
73059         Provide an alternative to exiting immediately upon save_cwd or
73060         restore_cwd failure.  Now, an application can arrange e.g.,
73061         to perform a longjump in that case.
73062         * lib/openat.c: Include dirname.h.
73063         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73064         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73065         and openat_restore_die rather than calling error directly.
73066         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73067
73068         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73069         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73070         define.
73071
73072         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73073         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73074                             int utc, int nanoseconds);
73075         Background:
73076         date should not have to allocate a megabyte of virtual memory to
73077         handle a format argument like +%1048575T.  When implemented with
73078         strftime, it must allocate such a buffer, use strftime to fill it
73079         in, print it, then free it.
73080         With fprintftime, it simply prints everything and exits.
73081         With no need for memory allocation, that's one fewer way to fail.
73082         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73083         optional field width, not before, so we accept %9:z, not %:9z.
73084         (my_strftime): Be sure to use L_('x') for literals.
73085
73086         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73087         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73088         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73089         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73090         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73091         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73092         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73093         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73094         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73095         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73096         * lib/xgethostname.c, lib/xreadlink.c:
73097         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73098
73099         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73100         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73101         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73102         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73103         and don't include <sys/file.h>).
73104
73105 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73106
73107         Sync from coreutils.
73108
73109         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73110         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73111         [!LDAV_DONE]: Avoid unused variable warning.
73112
73113 2005-09-21  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/unicodeio.h (unicode_to_mb): New declaration.
73116
73117 2005-09-20  Derek Price  <derek@ximbiot.com>
73118
73119         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73120         getaddrinfo.h.
73121
73122 2005-09-20  Bruno Haible  <bruno@clisp.org>
73123
73124         * gnulib-tool: Remove trailing slashes from the values specified for
73125         --source-base, --m4-base, --tests-base, --aux-dir.
73126         Suggested by Simon Josefsson <jas@extundo.com>.
73127
73128 2005-09-20  Bruno Haible  <bruno@clisp.org>
73129
73130         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73131         func_modules_to_filelist, func_import, func_create_testdir): Make all
73132         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73133         change when gnulib-tool is invoked in a different locale.
73134
73135 2005-09-19  Simon Josefsson  <jas@extundo.com>
73136
73137         * m4/socklen.m4: Fix typo.
73138
73139 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73140
73141         Use a consistent style for including <config.h>.
73142         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73143         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73144         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73145         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73146         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73147         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73148         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73149         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73150         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73151         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73152         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73153         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73154         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73155         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73156         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73157         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73158         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73159         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73160         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73161         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73162         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73163         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73164         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73165         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73166         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73167         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73168         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73169         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73170         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73171         lib/xstrtoumax.c, lib/yesno.c:
73172         Standardize inclusion of config.h.
73173         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73174         lib/inttostr.h:  Removed inclusion of config.h from header files.
73175         * lib/inttostr.c:  Adjusted in-tree users.
73176         * lib/timespec.h: Remove superfluous warning to include config.h.
73177         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73178         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73179         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73180         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73181         config.h with HAVE_CONFIG_H.
73182
73183 2005-09-19  Jim Meyering  <jim@meyering.net>
73184
73185         * modules/pathmax (License): Change to LGPL.
73186
73187 2005-09-19  Derek Price  <derek@ximbiot.com>
73188
73189         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73190
73191 2005-09-19  Bruno Haible  <bruno@clisp.org>
73192
73193         * gnulib-tool (import): Provide default for --tests-base.
73194
73195 2005-09-19  Bruno Haible  <bruno@clisp.org>
73196
73197         * doc/quote.texi: New file, extracted from gnulib.texi.
73198         * doc/ctime.texi: New file, extracted from gnulib.texi.
73199         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73200         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73201         * doc/gnulib.texi: Include them.
73202
73203 2005-09-18  Bruno Haible  <bruno@clisp.org>
73204
73205         Portability fix.
73206         * gnulib-tool (func_readlink): New function.
73207         (func_ln_if_changed): Use it.
73208
73209 2005-09-18  Bruno Haible  <bruno@clisp.org>
73210
73211         * gnulib-tool: Support --with-tests also with --import.
73212         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73213         (func_import): Use variables $testsbase and $inctests. Emit a
73214         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73215         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73216         SUBDIRS += $testsdir.
73217         (func_create_testdir): Update.
73218
73219 2005-09-18  Bruno Haible  <bruno@clisp.org>
73220
73221         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73222         instead of $dry_run.
73223         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73224         (func_ln_if_changed): Don't handle dry-run here.
73225         (func_import): In dry-run mode, detect more precisely which actions
73226         would be performed, and don't use "...ing" verbs.
73227
73228 2005-09-18  Bruno Haible  <bruno@clisp.org>
73229
73230         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73231         (func_import): Use join on two temporary files instead of three nested
73232         loops, in order to determine which files are new or old.
73233
73234 2005-09-18  Bruno Haible  <bruno@clisp.org>
73235
73236         * gnulib-tool (func_import): Comment out code that spits out the
73237         new files with --dry-run.
73238
73239 2005-09-18  Bruno Haible  <bruno@clisp.org>
73240
73241         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73242
73243 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * lib/stat-time.h: New file.
73246         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73247         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73248         in a different way.
73249         (timespec_cmp): New function.
73250         * lib/utimecmp.c: Include stat-time.h.
73251         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73252         members exist, not on the obsolescent ST_MTIM_NSEC.
73253         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73254
73255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73258
73259 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * MODULES.html.sh (File system functions): Add stat-time.
73262         * modules/stat-time: New file.
73263         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73264         is now done in a different way, by the stat-time module.
73265         * modules/utimecmp (Depends-on): Add stat-time.
73266
73267 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * m4/st_mtim.m4: Remove.  Superseded by...
73270         * m4/stat-time.m4: New file.
73271         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73272         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73273
73274 2005-09-15  Derek Price  <derek@ximbiot.com>
73275
73276         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73277
73278 2005-09-15  Derek Price  <derek@ximbiot.com>
73279
73280         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73281         * lib/regex_internal.c: Ditto, using this...
73282         (__GNUC_PREREQ): ...new macro.
73283         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73284         using...
73285         (__GNUC_PREREQ): ...this new macro.
73286
73287         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73288
73289 2005-09-15  Derek Price  <derek@ximbiot.com>
73290             Paul Eggert  <eggert@cs.ucla.edu>
73291
73292         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73293         changes, consolidating in...
73294         * lib/regex_internal.h: ...this file.
73295
73296 2005-09-13  Jim Meyering  <jim@meyering.net>
73297
73298         * lib/canon-host.c: Filter through gnu indent and reword comments
73299         slightly.
73300         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73301
73302 2005-09-13  Derek Price  <derek@ximbiot.com>
73303
73304         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73305         failure.
73306         Reported by Jim Meyering  <jim@meyering.net>.
73307
73308 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73309
73310         * lib/base64.c: Typo.
73311         (base64_encode): Put b64str in initialized data section.
73312
73313 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         Merge glibc and coreutils changes into gnulib, plus a few
73316         extra fixes.
73317         * lib/md5.c: Use #error rather than a string.
73318         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73319         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73320         (__attribute__): Define to empty for non recent-GCC.
73321         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73322         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73323         Renamed from their non-__ counterparts, with new macros replacing
73324         them if not _LIBC.  Add __THROW attribute.
73325         (rol): Remove.
73326         (struct md5_ctx): Align buffer if using GCC.
73327         * lib/sha1.h (struct sha1_ctx): Likewise.
73328         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73329         The old name was backwards.
73330         (NOTSWAP): Remove; not used.
73331         (rol): New macro, moved here from md5.h.
73332         (sha1_process_block): Remove a FIXME that doesn't make sense.
73333
73334 2005-09-12  Derek Price  <derek@ximbiot.com>
73335
73336         Return usable errors from canon-host.
73337         * lib/canon-host.h: New file.
73338         * lib/canon-host.c (canon_host): Wrap...
73339         (canon_host_r): ...this new function, which now relies exclusively on
73340         getaddrinfo.
73341         (ch_strerror): New function.
73342         (last_cherror): New global.
73343         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73344         interface.
73345         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73346         void *.
73347         (freeaddrinfo): Free ai->ai_canonname when set.
73348
73349 2005-09-12  Derek Price  <derek@ximbiot.com>
73350
73351         Make canon-host require getaddrinfo.
73352         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73353         AC_LIBSOURCE canon-host.h.  Call...
73354         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73355         gl_GETADDRINFO.
73356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73357
73358 2005-09-12  Derek Price  <derek@ximbiot.com>
73359
73360         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73361         LGPL.
73362         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73363
73364 2005-09-12  Derek Price  <derek@ximbiot.com>
73365
73366         * lib/gai_strerror.c: Include config.h when available.  Include
73367         getaddrinfo.h before other headers to test interface.
73368         Reported by Larry Jones <lawrence.jones@ugs.com>.
73369
73370 2005-09-12  Derek Price  <derek@ximbiot.com>
73371             Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         * modules/glob (Files): Add glob-libc.h.
73374
73375 2005-09-12  Derek Price  <derek@ximbiot.com>
73376             Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73379         glob_.h, glob-libc.h.
73380         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73381
73382 2005-09-12  Derek Price  <derek@ximbiot.com>
73383             Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73386         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73387         protecting things that should be done only in gnulib contexts.
73388         * lib/glob_.h: New file, containing only the glob things needed for
73389         gnulib.
73390         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73391         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73392         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73393         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73394         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73395         and to respect the namespace rules better.
73396
73397 2005-09-08  Simon Josefsson  <jas@extundo.com>
73398
73399         * modules/socklen: New file.
73400
73401 2005-09-08  Simon Josefsson  <jas@extundo.com>
73402
73403         * m4/socklen.m4: New file.
73404
73405 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * modules/utimens (Files): Add m4/utimbuf.m4, since
73408         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73409         Reported by Sergey Poznyakoff.
73410
73411 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73414         definitions, since that's the preferred style in glibc.
73415         Fix a minor spacing issue, and update copyright notice to match
73416         glibc's.
73417
73418 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73421
73422 2005-09-06  Simon Josefsson  <jas@extundo.com>
73423
73424         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73425         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73426
73427 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73430         warning.
73431
73432 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * config/srclist.txt: Add glibc bug 1302.
73435
73436 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         Change bitset word type from unsigned int to unsigned long int,
73439         as this has better performance on typical 64-bit hosts.
73440         Port bitset code to hosts with unusual word sizes.
73441         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73442         (build_collating_symbol):
73443         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73444         argument is a bitset.  This is merely a style issue, but it makes
73445         it clearer that an entire array is expected.
73446         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73447         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73448         Port to the case where bitset_word is not the same as unsigned int.
73449         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73450         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73451         Likewise.
73452         * lib/regexec.c (check_dst_limits_calc_pos_1,
73453         check_subexp_matching_top):
73454         (build_trtable, group_nodes_into_DFAstates):
73455         Likewise.
73456         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73457         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73458         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73459         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73460         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73461         * lib/regcomp.c (optimize_subexps, lower_subexp):
73462         Work even if bitset_word has holes in its bitwise representation.
73463         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73464         * lib/regexec.c (check_dst_limits_calc_pos_1,
73465         check_subexp_matching_top):
73466         Likewise.
73467         * lib/regex_internal.c (re_string_reconstruct):
73468         Don't assume UCHAR_MAX == 255.
73469         * lib/regex_internal.h (bitset_set_all): Likewise.
73470         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73471         All uses changed.
73472         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73473         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73474         All uses changed.
73475         (BITSET_WORD_MAX): New macro.
73476         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73477         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73478         (bitset_empty, bitset_copy):
73479         Prefer sizeof (bitset) to multiplying it out ourselves.
73480         (bitset_not_merge): Remove; unused.
73481         (bitset_contain): Return bool, not unsigned int with one bit on.
73482         All callers changed.
73483         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73484         alignment than re_node_set; do this by defining a new internal
73485         type struct dests_alloc and using it to allocate memory.
73486
73487 2005-09-05  Bruno Haible  <bruno@clisp.org>
73488
73489         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73490         links.
73491
73492 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73493
73494         * modules/size_max (Makefile.am): Add size_max.h
73495
73496 2005-09-04  Derek Price  <derek@ximbiot.com>
73497
73498         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73499
73500 2005-09-03  Simon Josefsson  <jas@extundo.com>
73501
73502         * gnulib-tool: Fix typo.
73503
73504 2005-09-03  Simon Josefsson  <jas@extundo.com>
73505
73506         * config/srclist.txt: Add glibc bug 1293.
73507
73508 2005-09-03  Derek Price  <derek@ximbiot.com>
73509
73510         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73511         From Larry Jones <lawrence.jones@ugs.com>.
73512
73513 2005-09-02  Simon Josefsson  <jas@extundo.com>
73514
73515         * modules/socklen: New file.
73516
73517 2005-09-02  Simon Josefsson  <jas@extundo.com>
73518
73519         * modules/havelib: New module.
73520
73521         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73522         Use havelib.
73523
73524 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         Check for arithmetic overflow when calculating sizes, to prevent
73527         some buffer-overflow issues.  These patches are conservative, in the
73528         sense that when I couldn't determine whether an overflow was possible,
73529         I inserted a run-time check.
73530         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73531         macros.
73532         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73533         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73534         (re_xnrealloc, re_x2nrealloc): New inline functions.
73535         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73536         parse_bracket_exp):
73537         (build_equiv_class, build_charclass): Check for arithmetic overflow
73538         in size expression calculations.
73539         * lib/regex_internal.c (re_string_realloc_buffers):
73540         (build_wcs_upper_buffer, re_node_set_add_intersect):
73541         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73542         (re_dfa_add_node, register_state): Likewise.
73543         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73544         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73545         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73546         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73547
73548 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73549
73550         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73551         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73552
73553 2005-09-02  Bruno Haible  <bruno@clisp.org>
73554
73555         Support for lib vs. lib64 distinction on biarch platforms.
73556         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73557         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73559
73560 2005-09-02  Bruno Haible  <bruno@clisp.org>
73561
73562         * gnulib-tool (import): In the other first-use case, provide defaults
73563         as well.
73564
73565 2005-09-02  Bruno Haible  <bruno@clisp.org>
73566
73567         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73568         patches not yet found in the latest gettext release.
73569
73570 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73573         to avoid a collision with bits/local_lim.h in glibc.
73574         All uses changed.  Problem reported by Dmitry V. Levin in
73575         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73576
73577         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73578         bugs in int versus size_t comparisons.
73579         (re_string_context_at): Fix bug where the code assumed that
73580         Idx is signed.
73581
73582         Use bool where appropriate.
73583         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73584         All callers changed.
73585         (calc_eclosure_iter): Likewise, for ROOT arg.
73586         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73587         (build_charclass_op): Likewise, for NON_MATCH arg.
73588         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73589         (re_string_construct_common): Likewise, for ICASE arg.
73590         * lib/regexec.c (re_search_2_stub, re_search_stub):
73591         Likewise, for RET_LEN arg.
73592         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73593         (set_regs): Likewise, for FL_BACKTRACK arg.
73594         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73595         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73596         (calc_eclosure_iter, parse_bracket_exp):
73597         Use bool for internal variables that are booleans.
73598         * lib/regexec.c (re_search_internal, check_matching,
73599         proceed_next_node):
73600         (set_regs, build_sifted_states, sift_states_bkref):
73601         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73602         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73603         (find_collation_sequence_value):
73604         Likewise.
73605         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73606         (re_node_set_compare):
73607         Return bool, not int. All callers changed.
73608         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73609         (build_trtable, check_node_accept): Likewise.
73610         * lib/regex_internal.h: Include stdbool.h.
73611
73612         Fix bugs uncovered when converting to bool.
73613         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73614         failure instead of charging ahead blindly.
73615         * lib/regex_internal.c (register_state): Likewise.
73616         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73617         for freeing internal storage.
73618         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73619         bitset pieces used as boolean, to avoid undefined behavior
73620         on hosts that do int overflow checking.
73621
73622 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * config/srclist.txt: Add glibc bugs 1285-1287.
73625
73626 2005-09-01  Jim Meyering  <jim@meyering.net>
73627
73628         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73629         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73630         Require gl_STAT_MACROS, too.
73631
73632 2005-09-01  Bruno Haible  <bruno@clisp.org>
73633
73634         * gnulib-tool (import): In the first-use case, provide defaults.
73635
73636 2005-09-01  Bruno Haible  <bruno@clisp.org>
73637
73638         * gnulib-tool (func_import): Remove the .tmp files.
73639
73640 2005-09-01  Bruno Haible  <bruno@clisp.org>
73641
73642         * gnulib-tool (func_import): Fix handling of symbolic links.
73643
73644 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73647         old glibc regex code mishandles strings longer than 2**31 bytes.
73648         This patch fixes this when the regex code is used in gnulib
73649         (i.e., outside glibc).
73650
73651         This patch should not affect the use of the regex code inside
73652         glibc.  No doubt this problem also needs to be handled for glibc
73653         as well, but the result will be an incompatible change to the
73654         glibc ABI, and the old ABI will have to be supported too.  That
73655         can be the the subject for another patch.
73656
73657         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73658         governing whether the rest of this patch is active.  By default,
73659         the macro is disabled and the patch has no effect.
73660         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73661         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73662         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73663         (re_match_2, re_set_registers): Use the new types.
73664         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73665         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73666         New macros.
73667         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73668         (re_string_context_at, bin_tree_t, re_dfastate_t):
73669         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73670         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73671         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73672         (re_string_char_size_at, re_string_wchar_at):
73673         (re_string_elem_size_at):
73674         Use the new types and macros to port to 64-bit hosts.
73675         Use unsigned types for internal values, so that the code
73676         mostly works even for arrays larger than SSIZE_MAX.
73677         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73678         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73679         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73680         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73681         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73682         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73683         (calc_inveclosure, parse_dup_op, build_range_exp):
73684         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73685         (fetch_number, create_token_tree, mark_opt_subexp):
73686         Likewise.
73687         * lib/regex_internal.c (re_string_construct_common,
73688         create_ci_newstate):
73689         (create_cd_newstate, re_string_allocate, re_string_construct):
73690         (re_string_realloc_buffers, build_wcs_upper_buffer):
73691         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73692         (re_string_reconstruct, re_string_peek_byte_case):
73693         (re_string_fetch_byte_case, re_string_context_at):
73694         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73695         (re_node_set_init_copy, re_node_set_add_intersect):
73696         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73697         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73698         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73699         (re_acquire_state, re_acquire_state_context, register_state):
73700         Likewise.
73701         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73702         search_cur_bkref_entry):
73703         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73704         (re_search_internal, re_search_2_stub, re_search_stub)
73705         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73706         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73707         (update_cur_sifted_state, check_dst_limits):
73708         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73709         (check_subexp_limits, sift_states_bkref, merge_state_array):
73710         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73711         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73712         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73713         (expand_bkref_cache, check_node_accept_bytes):
73714         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73715         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73716         (acquire_init_state_context, check_halt_node_context):
73717         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73718         (sift_states_backward, clean_state_log_if_needed):
73719         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73720         (find_recover_state, transit_state_sb, transit_state_mb):
73721         (transit_state_bkref, build_trtable, match_ctx_clean):
73722         Likewise.
73723         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73724         to work around an assumption that REG_MISSING is negative.
73725
73726         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73727         (seek_collating_symbol_entry) [defined _LIBC]:
73728         (lookup_collation_sequence_value) [defined _LIBC]:
73729         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73730         Use prototypes rather than old-style function definitions.
73731         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73732         (transit_state_sb) [0]:
73733         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73734
73735         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73736         rm_eo.
73737
73738         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73739         (optimize_subexps, lower_subexp):
73740         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73741         since the signed shift might overflow.  Use 1u<<31 instead.
73742         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73743         Likewise.
73744         * lib/regexec.c (check_dst_limits_calc_pos_1,
73745         check_subexp_matching_top): Likewise.
73746
73747         * lib/regcomp.c (optimize_subexps, lower_subexp):
73748         Use CHAR_BIT rather than 8, for clarity.
73749         * lib/regexec.c (check_dst_limits_calc_pos_1):
73750         (check_subexp_matching_top): Likewise.
73751         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73752         have to worry about portability issues when shifting it left.
73753         Remove no-longer-needed test for table_size > 0.
73754         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73755         in a word, as the resulting behavior is undefined.
73756         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73757         in one case, a <= should have been an <, and in another case the
73758         whole test was missing.
73759         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73760         the standard name CHAR_BIT.
73761         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73762         this is not true on one's complement and signed-magnitude hosts.
73763
73764         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73765         next_last_offset.
73766         (struct re_dfa_t): Remove unused member states_alloc.
73767         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73768
73769 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73772         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73773         and large-file glibc and in 32-bit large-file Solaris.
73774
73775 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73778         lengths fit in regoff_t; this isn't true if regoff_t is the same
73779         width as size_t.
73780         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73781         (= START + RANGE) instead of RANGE.  This avoids overflow
73782         problems when regoff_t is the same width as size_t.
73783         All callers changed.
73784         (re_search_2_stub): Check for overflow when adding the
73785         sizes of the two strings.
73786         (re_search_stub): Check for overflow when adding START
73787         to RANGE; if it occurs, substitute the extreme value.
73788
73789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73792
73793 2005-08-31  Jim Meyering  <jim@meyering.net>
73794
73795         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73796         a pointer-to-const.
73797         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73798         (register_state): Likewise.
73799         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73800         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73801         (group_nodes_into_DFAstates): Likewise.
73802
73803 2005-08-31  Jim Meyering  <jim@meyering.net>
73804
73805         * check-module: Add a FIXME comment.
73806
73807 2005-08-31  Eric Blake  <ebb9@byu.net>
73808
73809         * modules/unistd-safer (Files): Add unistd--.h.
73810         * modules/stdio-safer (Files): Add stdio--.h.
73811
73812 2005-08-31  Derek Price  <derek@ximbiot.com>
73813
73814         * lib/getdelim.c (getdelim): Return EOF on EOF.
73815         Reported by Larry Jones <lawrence.jones@ugs.com>.
73816
73817 2005-08-31  Bruno Haible  <bruno@clisp.org>
73818
73819         Avoid unnecessary diffs in the generated lib/Makefile.am.
73820         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73821         the generated files.
73822         (func_import): Don't set cmd.
73823
73824 2005-08-31  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/strstr.c: Include <stddef.h>, for NULL.
73827         * lib/strcasestr.c: Likewise.
73828         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73829
73830 2005-08-31  Bruno Haible  <bruno@clisp.org>
73831
73832         * gnulib-tool: New option --macro-prefix.
73833         (func_import): Use macro_prefix.
73834         (import): Handle option --macro-prefix.
73835
73836 2005-08-31  Bruno Haible  <bruno@clisp.org>
73837
73838         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73839         Also use new variables cached_lgpl, cached_libtool.
73840
73841 2005-08-31  Bruno Haible  <bruno@clisp.org>
73842
73843         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73844         always instantiating them.
73845
73846 2005-08-31  Bruno Haible  <bruno@clisp.org>
73847
73848         * gnulib-tool (func_import): Read the previous cached settings
73849         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73850         earlier added by gnulib but are now dropped. Warn when a gnulib file
73851         overwrites a non-gnulib file.
73852
73853 2005-08-31  Bruno Haible  <bruno@clisp.org>
73854
73855         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73856         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73857         projects that don't keep autogenerated files in CVS. Put into
73858         actioncmd only the specified modules, not the transitive closure.
73859
73860 2005-08-31  Bruno Haible  <bruno@clisp.org>
73861
73862         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73863         Create directories that shall be filled.
73864         (import): Don't look for gl_* macros in configure.ac. Recurse across
73865         all directories containing a gnulib-cache.m4 files, if meaningful.
73866
73867 2005-08-31  Bruno Haible  <bruno@clisp.org>
73868
73869         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73870         (import): Set seen_libtool when we see gl_LIBTOOL.
73871
73872 2005-08-31  Bruno Haible  <bruno@clisp.org>
73873
73874         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73875         declaration macro definitions from generated gnulib.m4.
73876
73877 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73878
73879         * lib/iconvme.h: Add prototype for iconv_alloc.
73880
73881 2005-08-29  Simon Josefsson  <jas@extundo.com>
73882
73883         * lib/iconvme.c: Fix errno.
73884
73885 2005-08-29  Bruno Haible  <bruno@clisp.org>
73886
73887         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73888         that it works when the directory contains spaces.
73889
73890 2005-08-29  Bruno Haible  <bruno@clisp.org>
73891
73892         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73893
73894 2005-08-29  Bruno Haible  <bruno@clisp.org>
73895
73896         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73897         Emit more advice.
73898
73899 2005-08-29  Bruno Haible  <bruno@clisp.org>
73900         and Stepan Kasal  <kasal@ucw.cz>
73901
73902         * check-module: If more parameters are given, check each of them
73903         separately; add more exceptions, as noted by Jim Meyering.
73904         (check_module): New procedure.
73905         (%exempt_header): Now contains all exceptions.
73906
73907 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73908
73909         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73910
73911 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73912
73913         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73914
73915 2005-08-28  Bruno Haible  <bruno@clisp.org>
73916
73917         * m4/gnulib-tool.m4: New file.
73918
73919 2005-08-27  Jim Meyering  <jim@meyering.net>
73920
73921         * modules/unistd-safer (Files): Add pipe-safer.c.
73922         * modules/fcntl-safer (Files): Add creat-safer.c.
73923
73924 2005-08-27  Jim Meyering  <jim@meyering.net>
73925
73926         * m4/stdlib-safer.m4: New file.  From coreutils.
73927         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73928         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73929         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73930         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73931         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73932
73933 2005-08-27  Jim Meyering  <jim@meyering.net>
73934
73935         * lib/fopen-safer.c: Merge minor changes from coreutils.
73936         * lib/dup-safer.c: Likewise.
73937         * lib/fd-safer.c: Likewise.
73938
73939         Merge from coreutils.
73940         * lib/stdio--.h: New file.
73941         * lib/stdlib--.h: New file.
73942         * lib/mkstemp-safer.c: New file.
73943
73944         GNU tar needs these.
73945         * lib/pipe-safer.c: New file.
73946         * lib/creat-safer.c: New file.
73947         * lib/fcntl--.h (creat): Define to creat_safer.
73948         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73949         * lib/unistd--.h (pipe): Define to pipe_safer.
73950         * lib/unistd-safer.h: Declare pipe_safer.
73951
73952 2005-08-26  Simon Josefsson  <jas@extundo.com>
73953
73954         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73955         Haible <bruno@clisp.org>.
73956
73957 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * lib/regex_internal.h: Remove all references to
73960         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73961         or better.
73962         (bitset_not, bitset_merge, bitset_not_merge):
73963         (bitset_mask, re_string_allocate, re_string_construct):
73964         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73965         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73966         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73967         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73968         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73969         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73970         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73971         (re_acquire_state_context):
73972         Remove unnecessary forward decls.
73973         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73974         Put __attribute at function definition,
73975         now that the function decl has been removed.
73976         * lib/regex_internal.c (re_string_peek_byte_case):
73977         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73978         Likewise.
73979
73980 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73981
73982         * m4/regex.m4: Add AC_PREREQ(2.50).
73983         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73984
73985 2005-08-25  Simon Josefsson  <jas@extundo.com>
73986
73987         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73988         __fsetlocking.
73989
73990 2005-08-25  Simon Josefsson  <jas@extundo.com>
73991
73992         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73993         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73994         GLIBC specific code.
73995
73996 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         Make regex safe for g++.  This fixes one real bug (an "err"
73999         that should have been "*err").  g++ problem reported by
74000         Sam Steingold.
74001         * lib/regex_internal.h (re_calloc): New macro, consistent with
74002         re_malloc etc.  All callers of calloc changed to use re_calloc.
74003         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74004         not int.  All callers changed.
74005         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74006         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74007         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74008         (find_recover_state): Change "err" to "*err"; this fixes what
74009         appears to be a real bug.
74010         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74011         versus int.
74012
74013 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * modules/regex (Depends-on): Add malloc, since the code
74016         assumes that !malloc(0) means failure.
74017
74018 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74021
74022         alloca modernization/simplification for regex.
74023         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74024         needs to be at the start of the file, and can be moved into
74025         regex_internal.h and simplified.
74026         * lib/regex_internal.h: Include <alloca.h>.
74027         (__libc_use_alloca) [!defined _LIBC]: New macro.
74028         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74029         now works outside glibc.
74030
74031 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         * config/srclist.txt: Add glibc bugs 1241, 1245.
74034
74035 2005-08-25  Jim Meyering  <jim@meyering.net>
74036
74037         * lib/open-safer.c: Include <config.h>.
74038         Otherwise, we'd lose LARGEFILE support in any file using
74039         e.g. "fcntl--.h"
74040
74041 2005-08-25  Bruno Haible  <bruno@clisp.org>
74042
74043         * m4/minmax.m4: Require autoconf 2.52.
74044         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74045         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74046         alternatives of translit over the alphabet.
74047         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74048
74049 2005-08-24  Simon Josefsson  <jas@extundo.com>
74050
74051         * tests/test-getpass.c: New file.
74052
74053 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74056         for GNU regex features.
74057
74058 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74061         * lib/regex.h (regerror): Likewise.
74062
74063         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74064         requires this.  (The code never needed it.)
74065
74066         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74067         All uses of recently-renamed identifiers changed to use the new,
74068         POSIX-compliant names.  The code will build and run just fine
74069         without these changes, but it's better to eat our own dog food
74070         and use the standard-conforming names.
74071
74072         * lib/regex.h: Fix a multitude of POSIX name space violations.
74073         These changes have an effect only for programs that define
74074         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74075         do not change anything for programs compiled in the normal way.
74076         Also, there is no effect on the ABI.
74077
74078         (_REGEX_SOURCE): New macro.
74079         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74080         defined and _GNU_SOURCE is not; this fixes a name space violation.
74081
74082         Rename the following macros to obey POSIX requirements.
74083         The old names are still visible as macros if _REGEX_SOURCE is defined.
74084         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74085         RE_BACKSLASH_ESCAPE_IN_LISTS.
74086         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74087         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74088         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74089         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74090         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74091         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74092         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74093         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74094         (REG_INTERVALS): renamed from RE_INTERVALS.
74095         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74096         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74097         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74098         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74099         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74100         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74101         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74102         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74103         RE_UNMATCHED_RIGHT_PAREN_ORD.
74104         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74105         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74106         (REG_DEBUG): renamed from RE_DEBUG.
74107         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74108         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74109         unusual, since we can't clash with the POSIX REG_ICASE.
74110         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74111         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74112         (REG_NO_SUB): renamed from RE_NO_SUB.
74113         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74114         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74115         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74116         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74117         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74118         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74119         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74120         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74121         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74122         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74123         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74124         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74125         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74126         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74127         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74128         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74129         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74130         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74131         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74132         (REG_FIXED): Renamed from REGS_FIXED.
74133         (REG_NREGS): Renamed from RE_NREGS.
74134
74135         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74136         of other REG_* macros, since POSIX says the user is allowed to
74137         #undef these macros selectively.
74138
74139         (reg_errcode_t): Update comment stating what other tables need
74140         to be consistent.
74141
74142         Rename the following enum values to obey POSIX requirements.
74143         The old names are still visible as macros.
74144         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74145         is not defined, since GNU is supposed to be a superset of POSIX as
74146         much as possible, and since we want reg_errcode_t to be a signed
74147         type for implementation consistency.
74148         (_REG_NOERROR): Renamed from REG_NOERROR.
74149         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74150         (_REG_BADPAT): Renamed from REG_BADPAT.
74151         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74152         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74153         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74154         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74155         (_REG_EBRACK): Renamed from REG_EBRACK.
74156         (_REG_EPAREN): Renamed from REG_EPAREN.
74157         (_REG_EBRACE): Renamed from REG_EBRACE.
74158         (_REG_BADBR): Renamed from REG_BADBR.
74159         (_REG_ERANGE): Renamed from REG_ERANGE.
74160         (_REG_ESPACE): Renamed from REG_ESPACE.
74161         (_REG_BADRPT): Renamed from REG_BADRPT.
74162         (_REG_EEND): Renamed from REG_EEND.
74163         (_REG_ESIZE): Renamed from REG_ESIZE.
74164         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74165         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74166         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74167         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74168         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74169
74170         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74171         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74172         changed.  But support the old name if the new one is not defined
74173         and if _REGEX_SOURCE.
74174
74175         Change the following member names in struct re_pattern_buffer.
74176         The old names are still supported if !_REGEX_SOURCE.
74177         The new names are always supported, regardless of _REGEX_SOURCE.
74178         (re_buffer): Renamed from buffer.
74179         (re_allocated): Renamed from allocated.
74180         (re_used): Renamed from used.
74181         (re_syntax): Renamed from syntax.
74182         (re_fastmap): Renamed from fastmap.
74183         (re_translate): Renamed from translate.
74184         (re_can_be_null): Renamed from can_be_null.
74185         (re_regs_allocated): Renamed from regs_allocated.
74186         (re_fastmap_accurate): Renamed from fastmap_accurate.
74187         (re_no_sub): Renamed from no_sub.
74188         (re_not_bol): Renamed from not_bol.
74189         (re_not_eol): Renamed from not_eol.
74190         (re_newline_anchor): Renamed from newline_anchor.
74191
74192         Change the following member names in struct re_registers.
74193         The old names are still supported if !_REGEX_SOURCE.
74194         The new names are always supported, regardless of _REGEX_SOURCE.
74195         (rm_num_regs): Renamed from num_regs.
74196         (rm_start): Renamed from start.
74197         (rm_end): Renamed from end.
74198
74199         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74200         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74201         Prepend __ to parameter names.
74202
74203         Undo yesterday's changes.
74204
74205 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74208         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74209         lib/regex.c.
74210
74211 2005-08-24  Jim Meyering  <jim@meyering.net>
74212
74213         Sync from coreutils.
74214         * m4/fcntl-safer.m4: New file.
74215
74216         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74217         and object files for this module.
74218
74219 2005-08-24  Jim Meyering  <jim@meyering.net>
74220
74221         Sync from coreutils.
74222         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74223
74224 2005-08-24  Jim Meyering  <jim@meyering.net>
74225
74226         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74227         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74228
74229 2005-08-24  Jim Meyering  <jim@meyering.net>
74230
74231         * modules/fcntl-safer: New module.
74232         * modules/fts (Depends-on): Add fcntl-safer.
74233         * MODULES.html.sh (File descriptor based Input/Output):
74234         Add fcntl-safer.
74235
74236 2005-08-24  Bruno Haible  <bruno@clisp.org>
74237
74238         Support for unit test modules.
74239         * modules/README: Mention tests modules.
74240         * modules/TEMPLATE-TESTS: New file.
74241         * gnulib-tool: New options --extract-tests-module, --with-tests and
74242         --tests-base (unused for the moment).
74243         (testsbase, inctests): New variables.
74244         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74245         (func_verify_module): Exclude TEMPLATE-TESTS.
74246         (func_verify_nontests_module, func_verify_tests_module): New functions.
74247         (func_get_dependencies): Add implicit dependency for tests modules.
74248         (func_get_tests_module): New function.
74249         (func_modules_transitive_closure): When --with-tests was specified,
74250         include the unit tests as well, unless explicitly avoided.
74251         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74252         (func_emit_tests_Makefile_am): New function.
74253         (func_create_testdir): When --with-tests was specified, emit a
74254         tests/ directory.
74255         * MODULES.html.sh (Future developments): Update.
74256
74257 2005-08-24  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/tls-tests: New file.
74260         * tests/test-tls.c: New file, from GNU gettext.
74261
74262 2005-08-24  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/lock-tests: New file.
74265         * tests/test-lock.c: New file, from GNU gettext.
74266
74267 2005-08-24  Bruno Haible  <bruno@clisp.org>
74268
74269         * lib/lock.h: Add multiple inclusion guard.
74270         * lib/tls.h: Add multiple inclusion guard.
74271
74272 2005-08-24  Bruno Haible  <bruno@clisp.org>
74273
74274         * gnulib-tool: Add support for the --aux-dir option to
74275         --create-testdir, --create-megatestdir, --test, --megatest.
74276         (func_create_testdir, func_create_megatestdir): Optionally emit a
74277         AC_CONFIG_AUX_DIR directive.
74278         (create-testdir, create-megatestdir, test, megatest): Provide a
74279         default value for $auxdir.
74280
74281 2005-08-24  Bruno Haible  <bruno@clisp.org>
74282
74283         * gnulib-tool (import): Use compound statement instead of subshell
74284         where possible.
74285
74286 2005-08-24  Bruno Haible  <bruno@clisp.org>
74287
74288         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74289
74290 2005-08-24  Bruno Haible  <bruno@clisp.org>
74291
74292         * gnulib-tool (func_version): Update.
74293
74294 2005-08-24  Bruno Haible  <bruno@clisp.org>
74295
74296         * gnulib-tool (func_import, func_create_testdir,
74297         func_create_megatestdir): Quote all autoconf macro arguments.
74298
74299 2005-08-24  Bruno Haible  <bruno@clisp.org>
74300
74301         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74302         option --force, because --force causes the aclocal.m4 of each
74303         subdirectory to be newer than the corresponding config.h.in.
74304
74305 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74306
74307         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74308         All contents moved to gl_REGEX.
74309         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74310         assume that it does.
74311
74312 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/regex.h (REG_NOSYS)
74315         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74316         Define, since POSIX requires it as of 2001.
74317         (_REG_ENOSYS)
74318         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74319         New private symbol, used to keep the enum signed in all cases.
74320         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74321         Youngman in
74322         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74323
74324         * lib/regex_internal.c (re_string_skip_chars, register_state):
74325         (calc_state_hash):
74326         Remove forward decls; no longer needed now that we use prototypes.
74327         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74328         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74329         (clean_state_log_if_needed): Likewise.
74330
74331 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * config/srclist.txt: Add glibc bugs 1231-1233.
74334
74335 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         Fix problems reported by Sam Steingold in
74338         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74339         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74340         assumed that reg_errcode_t is a signed type, which is not
74341         necessarily true if _XOPEN_SOURCE is not defined.
74342         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74343         since some compilers warn about it otherwise.
74344
74345 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74348         (init_word_char, create_initial_state, duplicate_node_closure):
74349         (fetch_token, peek_token_bracket, build_range_exp):
74350         (build_collating_symbol): Remove forward decls; no longer needed
74351         now that we use prototypes.
74352
74353         * lib/regcomp.c:
74354         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74355         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74356         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74357         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74358         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74359         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74360         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74361         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74362         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74363         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74364         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74365         (build_charclass, build_charclass_op, fetch_number, create_tree):
74366         (create_token_tree, mark_opt_subexp, duplicate_tree):
74367         Use prototypes rather than old-style definitions.
74368
74369         * lib/regex_internal.c:
74370         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74371         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74372         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74373         (re_string_reconstruct, re_string_peek_byte_case):
74374         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74375         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74376         (re_node_set_init_copy, re_node_set_add_intersect):
74377         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74378         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74379         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74380         (re_acquire_state, re_acquire_state_context, register_state):
74381         (create_ci_newstate, create_cd_newstate, free_state):
74382         Likewise.
74383         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74384         re_search_2):
74385         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74386         (re_search_internal, prune_impossible_nodes):
74387         (acquire_init_state_context, check_matching, static):
74388         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74389         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74390         (update_regs, sift_states_backward, build_sifted_states):
74391         (clean_state_log_if_needed, merge_state_array):
74392         (update_cur_sifted_state, add_epsilon_src_nodes):
74393         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74394         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74395         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74396         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74397         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74398         (check_arrival, check_arrival_add_next_nodes):
74399         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74400         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74401         (check_node_accept_bytes, check_node_accept, extend_buffers):
74402         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74403         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74404         (sift_ctx_init):
74405         Likewise.
74406
74407         * lib/regex_internal.h:
74408         (re_string_allocate, re_string_construct, re_string_reconstruct):
74409         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74410         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74411         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74412         (re_string_context_at, re_string_peek_byte_case):
74413         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74414         is defined, since we now use prototypes always.
74415
74416         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74417         C89 or better.  All uses removed.
74418
74419 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * config/srclist.txt: Add glibc bugs 1220-1227.
74422
74423 2005-08-20  Jim Meyering  <jim@meyering.net>
74424
74425         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74426         of unused local, dfa.
74427
74428 2005-08-20  Bruno Haible  <bruno@clisp.org>
74429
74430         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74431
74432 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74435         (re_node_set_insert_last, re_dfa_add_node):
74436         Rename local variables to avoid GCC shadowing warnings.
74437
74438 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74441         [defined lint]: Suppress bogus uninitialized-variable warnings.
74442
74443         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74444         and let the caller return REG_ESPACE if out of space.  This
74445         removes an uninitialied-variable warning with GCC 4.0.1, and also
74446         avoids taking the address of a local variable.  All callers
74447         changed.
74448
74449 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74452         $LIBCSRC/posix/regexec.c.
74453         Add glibc bug 1217 for regcomp.c.
74454
74455 2005-08-19  Jim Meyering  <jim@meyering.net>
74456
74457         * lib/regexec.c (proceed_next_node): Redo local variables to
74458         avoid GCC shadowing warnings.
74459
74460 2005-08-18  Bruno Haible  <bruno@clisp.org>
74461
74462         * lib/strstr.c (strstr): Fix return value in multibyte case.
74463         * lib/strcasestr.c (strcasestr): Likewise.
74464
74465 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74468
74469 2005-08-17  Jim Meyering  <jim@meyering.net>
74470
74471         Make the %s format (seconds since the epoch) work for a negative
74472         number and when used with a zero-padded field width, e.g. %015s.
74473
74474         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74475         label so that it precedes the code to set `digits'.  Otherwise,
74476         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74477         print `00-22'.  Now, it prints `-0022', as it should.
74478
74479 2005-08-17  Bruno Haible  <bruno@clisp.org>
74480
74481         * modules/strstr (Files): Add m4/mbrtowc.m4.
74482         (Depends-on): Add mbuiter.
74483
74484 2005-08-17  Bruno Haible  <bruno@clisp.org>
74485
74486         * modules/strcasestr: New file.
74487         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74488         strcasestr.
74489
74490 2005-08-17  Bruno Haible  <bruno@clisp.org>
74491
74492         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74493
74494 2005-08-17  Bruno Haible  <bruno@clisp.org>
74495
74496         * modules/mbuiter: New file.
74497         * MODULES.html.sh (Extended multibyte and wide character utilities):
74498         Add mbuiter.
74499
74500 2005-08-17  Bruno Haible  <bruno@clisp.org>
74501
74502         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74503         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74504
74505 2005-08-17  Bruno Haible  <bruno@clisp.org>
74506
74507         * m4/strcasestr.m4: New file.
74508
74509 2005-08-17  Bruno Haible  <bruno@clisp.org>
74510
74511         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74512         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74513
74514 2005-08-17  Bruno Haible  <bruno@clisp.org>
74515
74516         * lib/strcasestr.h: New file.
74517         * lib/strcasestr.c: New file.
74518
74519 2005-08-17  Bruno Haible  <bruno@clisp.org>
74520
74521         * lib/strcasecmp.c: Use mbuiter.h.
74522
74523 2005-08-17  Bruno Haible  <bruno@clisp.org>
74524
74525         * lib/mbuiter.h: New file.
74526
74527 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74530         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74531         and gl_GETOPT are both invoked via different paths (as happens
74532         with GNU tar CVS because it uses both argp and getopt), the former
74533         wins.
74534
74535 2005-08-16  Bruno Haible  <bruno@clisp.org>
74536
74537         * modules/tls: New file.
74538         * MODULES.html.sh (Multithreading): Add tls.
74539
74540 2005-08-16  Bruno Haible  <bruno@clisp.org>
74541
74542         * modules/strnlen1: New file.
74543         * MODULES.html.sh (String handling): Add strnlen1.
74544
74545 2005-08-16  Bruno Haible  <bruno@clisp.org>
74546
74547         * modules/strcase (Files): Add m4/mbrtowc.m4.
74548         (Depends-on): Add strnlen1, mbchar.
74549
74550 2005-08-16  Bruno Haible  <bruno@clisp.org>
74551
74552         * modules/mbiter: New file.
74553         * MODULES.html.sh (Extended multibyte and wide character utilities):
74554         Add mbiter.
74555
74556 2005-08-16  Bruno Haible  <bruno@clisp.org>
74557
74558         * modules/mbfile: New file.
74559         * MODULES.html.sh (Extended multibyte and wide character utilities):
74560         Add mbfile.
74561
74562 2005-08-16  Bruno Haible  <bruno@clisp.org>
74563
74564         * modules/mbchar: New file.
74565         * MODULES.html.sh (Extended multibyte and wide character utilities):
74566         New section.
74567
74568 2005-08-16  Bruno Haible  <bruno@clisp.org>
74569
74570         * m4/tls.m4: New file, from GNU gettext.
74571
74572 2005-08-16  Bruno Haible  <bruno@clisp.org>
74573
74574         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74575         always.
74576         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74577
74578 2005-08-16  Bruno Haible  <bruno@clisp.org>
74579
74580         * m4/mbiter.m4: New file.
74581
74582 2005-08-16  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/mbfile.m4: New file.
74585
74586 2005-08-16  Bruno Haible  <bruno@clisp.org>
74587
74588         * m4/mbchar.m4: New file.
74589
74590 2005-08-16  Bruno Haible  <bruno@clisp.org>
74591
74592         * lib/tls.h: New file, from GNU gettext.
74593         * lib/tls.c: New file, from GNU gettext.
74594
74595 2005-08-16  Bruno Haible  <bruno@clisp.org>
74596
74597         * lib/strnlen1.h: New file.
74598         * lib/strnlen1.c: New file.
74599
74600 2005-08-16  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74603         (mbi_init): Update.
74604         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74605         NUL byte, not after it.
74606
74607 2005-08-16  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/strcase.h (strcasecmp): Add note in comments.
74610         * lib/strncasecmp.c: Use code from strcasecmp.c.
74611         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74612         (strcasecmp): Work correctly in multibyte locales.
74613
74614 2005-08-16  Bruno Haible  <bruno@clisp.org>
74615
74616         * lib/mbiter.h: New file.
74617
74618 2005-08-16  Bruno Haible  <bruno@clisp.org>
74619
74620         * lib/mbfile.h: New file.
74621
74622 2005-08-16  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/mbchar.h: New file.
74625         * lib/mbchar.c: New file.
74626
74627 2005-08-16  Bruno Haible  <bruno@clisp.org>
74628
74629         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74630         the valid ones. Makes the comparison operations transitive:
74631         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74632         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74633
74634 2005-08-15  Simon Josefsson  <jas@extundo.com>
74635
74636         * modules/ssize_t (License): Change to 'unlimited'.
74637
74638         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74639
74640 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74643         Add comments for each pending glibc patch.
74644
74645 2005-08-15  Bruno Haible  <bruno@clisp.org>
74646
74647         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74648         __cplusplus is defined.
74649
74650 2005-08-14  Jim Meyering  <jim@meyering.net>
74651
74652         Sync from coreutils.
74653
74654         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74655         Use the hash-table-based cycle-detection code not just when
74656         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74657         Reported by James Youngman in
74658         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74659         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74660         FTS_TIGHT_CYCLE_CHECK.
74661         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74662         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74663         once again.
74664         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74665         * lib/fts.c (fd_safer): Remove decl.
74666         Include fcntl--.h rather than unistd-safer.h
74667         (fts_safe_changedir): Don't call fd_safer; no longer needed
74668         now that we include fcntl--.h.
74669
74670 2005-08-12  Simon Josefsson  <jas@extundo.com>
74671
74672         * modules/getndelim2: Use ssize_t module.
74673         * modules/getnline: Likewise.
74674         * modules/safe-read: Likewise.
74675         * modules/xreadlink: Likewise.
74676
74677         * modules/ssize_t: New file.
74678
74679 2005-08-12  Simon Josefsson  <jas@extundo.com>
74680
74681         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74682
74683 2005-08-12  Simon Josefsson  <jas@extundo.com>
74684
74685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74686         ssize_t.
74687
74688 2005-08-12  Simon Josefsson  <jas@extundo.com>
74689
74690         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74691         readline, getdelim and check_version.
74692         (Support for systems lacking ISO C 99: Sizes of integer types):
74693         Add size_max.
74694
74695 2005-08-12  Bruno Haible  <bruno@clisp.org>
74696
74697         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74698
74699 2005-08-11  Simon Josefsson  <jas@extundo.com>
74700
74701         * modules/readline: New file.
74702
74703         * modules/strnlen (Files): Add strnlen.h.
74704
74705 2005-08-11  Simon Josefsson  <jas@extundo.com>
74706
74707         * m4/readline.m4: New file.
74708
74709 2005-08-11  Simon Josefsson  <jas@extundo.com>
74710
74711         * lib/readline.h, readline.c: New file.
74712
74713 2005-08-11  Simon Josefsson  <jas@extundo.com>
74714
74715         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74716         gl_AVOID.
74717
74718 2005-08-11  Bruno Haible  <bruno@clisp.org>
74719
74720         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74721
74722 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74723
74724         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74725
74726 2005-08-10  Simon Josefsson  <jas@extundo.com>
74727
74728         * tests/test-iconvme.c: New file.
74729
74730 2005-08-10  Simon Josefsson  <jas@extundo.com>
74731
74732         * m4/strnlen.m4: New file.
74733
74734         * m4/strndup.m4: Don't check for strnlen declaration, done in
74735         strnlen.m4.
74736
74737 2005-08-10  Simon Josefsson  <jas@extundo.com>
74738
74739         * lib/strndup.c: Use strnlen.h.
74740
74741         * lib/strnlen.h: New file.
74742
74743 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74744
74745         * README: Typos.
74746
74747 2005-08-02  Simon Josefsson  <jas@extundo.com>
74748
74749         * modules/readline: New file.
74750
74751 2005-08-02  Simon Josefsson  <jas@extundo.com>
74752
74753         * modules/getdelim: New file.
74754
74755         * modules/getline: Rewrite, don't use getndelim2.
74756
74757 2005-08-02  Simon Josefsson  <jas@extundo.com>
74758
74759         * m4/getline.m4: Separate out getdelim stuff into separate module.
74760
74761         * m4/getdelim.m4: New file.
74762
74763 2005-08-02  Simon Josefsson  <jas@extundo.com>
74764
74765         * lib/getline.h, getline.c: Rewrite.
74766
74767         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74768
74769 2005-07-31  Bruno Haible  <bruno@clisp.org>
74770
74771         * lib/lock.h (gl_lock_initializer): New macro.
74772         (gl_lock_define_initialized): Use it.
74773         (gl_rwlock_initializer): New macro.
74774         (gl_rwlock_define_initialized): Use it.
74775         (gl_recursive_lock_initializer): New macro.
74776         (gl_recursive_lock_define_initialized): Use it.
74777
74778 2005-07-30  Karl Berry  <karl@gnu.org>
74779
74780         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74781         Report from Ben Pfaff, regarding getopt.
74782
74783 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74786         normal way.
74787         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74788         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74789         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74790         (gl_GETOPT): Use the new macros.  Most of the implementation
74791         is moved to the new macros.  This is for programs like Emacs
74792         that don't want all the functionality of gl_GETOPT.
74793
74794 2005-07-26  Bruno Haible  <bruno@clisp.org>
74795
74796         * m4/lock.m4: Update from GNU gettext.
74797
74798 2005-07-26  Bruno Haible  <bruno@clisp.org>
74799
74800         * lib/lock.h: Update from GNU gettext.
74801         * lib/lock.c: Update from GNU gettext.
74802
74803 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74806         obsolescent AC_TRY_RUN.  Include the default includes files, for
74807         'exit'.
74808
74809 2005-07-24  Bruno Haible  <bruno@clisp.org>
74810
74811         * modules/visibility: New file.
74812         * MODULES.html.sh (Misc): Add visibility.
74813
74814 2005-07-24  Bruno Haible  <bruno@clisp.org>
74815
74816         * m4/visibility.m4: New file.
74817
74818 2005-07-24  Bruno Haible  <bruno@clisp.org>
74819
74820         * doc/visibility.texi: New file.
74821
74822 2005-07-22  Bruno Haible  <bruno@clisp.org>
74823
74824         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74825         $(ALLOCA_H), redundant through BUILT_SOURCES.
74826         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74827         redundant through BUILT_SOURCES.
74828         * modules/byteswap (Makefile.am): Remove explicit dependency on
74829         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74830         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74831         $(FNMATCH_H), redundant through BUILT_SOURCES.
74832         * modules/getopt (Makefile.am): Remove explicit dependency on
74833         $(GETOPT_H), redundant through BUILT_SOURCES.
74834         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74835         redundant through BUILT_SOURCES.
74836         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74837         redundant through BUILT_SOURCES.
74838         * modules/stdbool (Makefile.am): Remove explicit dependency on
74839         $(STDBOOL_H), redundant through BUILT_SOURCES.
74840         * modules/stdint (Makefile.am): Remove explicit dependency on
74841         $(STDINT_H), redundant through BUILT_SOURCES.
74842         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74843         Remove explicit dependency on $(SYSEXITS_H).
74844         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74845
74846 2005-07-18  Simon Josefsson  <jas@extundo.com>
74847
74848         * lib/check-version.c (check_version): Accept identical versions too.
74849
74850 2005-07-18  Bruno Haible  <bruno@clisp.org>
74851
74852         * modules/lock: New file.
74853         * MODULES.html.sh (Multithreading): New section.
74854
74855 2005-07-18  Bruno Haible  <bruno@clisp.org>
74856
74857         * m4/lock.m4: New file, from GNU gettext.
74858
74859 2005-07-18  Bruno Haible  <bruno@clisp.org>
74860
74861         * lib/lock.h: New file, from GNU gettext.
74862         * lib/lock.c: New file, from GNU gettext.
74863
74864 2005-07-18  Bruno Haible  <bruno@clisp.org>
74865
74866         * lib/lock.h (gl_once_t): New type.
74867         (gl_once_define, gl_once): New macros.
74868         * lib/lock.c (fresh_once): New variable.
74869         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74870         functions.
74871
74872 2005-07-16  Simon Josefsson  <jas@extundo.com>
74873
74874         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74875         workaround, suggested by Bruno.
74876
74877 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * modules/xalloc (Depends-on): Add xalloc-die.
74880         * modules/xvasprintf (Depends-on): Add xalloc-die.
74881
74882 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74885         with a minor change.
74886
74887 2005-07-15  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74890         When using lib/poll.c, define poll as rpl_poll.
74891
74892 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * modules/argp (Depends-on): Remove unlocked-io.
74895
74896 2005-07-14  Derek Price  <derek@ximbiot.com>
74897
74898         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74899         for glob symlink bug.
74900
74901 2005-07-14  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74904         Instead, test for *_unlocked function declarations directly.
74905
74906 2005-07-11  Simon Josefsson  <jas@extundo.com>
74907
74908         * modules/size_max: New file.
74909
74910         * modules/xsize: Depend on size_max module for size_max.m4.
74911
74912 2005-07-11  Simon Josefsson  <jas@extundo.com>
74913
74914         * lib/size_max.h: New file.
74915
74916 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74919         copyright symbol and the year.
74920         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74921         (version_etc_va): Use parameterized copyright notice.
74922         Reword to conform to the current GNU coding standards.
74923
74924 2005-07-11  Karl Berry  <karl@gnu.org>
74925
74926         * doc/gnulib.texi (Quoting): new node.
74927         (Initial import): more info, from Patrice.
74928
74929 2005-07-11  Bruno Haible  <bruno@clisp.org>
74930
74931         * gnulib-tool (func_usage): Document option --avoid.
74932         (Command line options): Handle --avoid.
74933         (func_acceptable): New function.
74934         (func_modules_transitive_closure): Use it.
74935
74936 2005-07-11  Bruno Haible  <bruno@clisp.org>
74937
74938         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74939         Reported by Jim Meyering.
74940
74941 2005-07-10  Bruno Haible  <bruno@clisp.org>
74942
74943         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74944         Needed when size_t is smaller than 'unsigned int'.
74945         Reported by Paul Eggert.
74946
74947 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74948
74949         * modules/argp (Depends-on): Add unlocked-io
74950
74951 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74952
74953         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74954         block of defines.
74955
74956 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74959         fix now.
74960
74961 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74962         and Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74965         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74966
74967 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * modules/regex (Files): Add lib/regex_internal.c,
74970         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74971         (Depends-on): Add extensions.
74972         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74973
74974 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74977         pathconf.
74978         * m4/same.m4 (gl_SAME): Likewise.
74979         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74980
74981         * m4/regex.m4: Adjust to new libc regex implementation.
74982         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74983         all the .c and .h parts of (the new) regex.
74984         Quote the m4 stuff better.
74985         Check for RE_ICASE bug of old gnulib.
74986         Check for REG_STARTEND of recent libc.
74987         Rename local variables from jm_* to gl_*.
74988         Quote operand of "test -f".
74989         Say "recent enough" version of libc, not "version 2".
74990         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74991         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74992         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74993         Remove check for btowc, isascii.
74994         Require AM_LANGINFO_CODESET.
74995
74996 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * lib/regex.c, regex.h: Sync from libc.
74999         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75000         * lib/regexec.c:
75001         New files, synced from libc, except that regex_internal.h
75002         currently has a small porting fix.
75003
75004 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75005
75006         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75007         regex_internal.c, regexec.c.
75008         Add regex_internal.h too, but as a comment, since the libc version
75009         is currently broken in gnulib mode.
75010
75011 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         Support programs like Emacs that use gnulib but not gettext.
75014         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75015         * modules/gettext-h: New file.
75016         * modules/gettext (Files): Remove lib/gettext.h.
75017         (Depends-on): Add gettext-h.
75018         (Makefile.am): Remove lib_SOURCES.
75019         * modules/argmatch, modules/c-stack, modules/closeout:
75020         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75021         * modules/execute, modules/file-type, modules/getaddrinfo:
75022         * modules/getopt, modules/human, modules/javacomp:
75023         * modules/javaexec, modules/mkdir-p, modules/obstack:
75024         * modules/openat, modules/pagealign_alloc, modules/pipe:
75025         * modules/quotearg, modules/regex, modules/rpmatch:
75026         * modules/unicodeio, modules/userspec, modules/version-etc:
75027         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75028         * modules/xsetenv:
75029         Depend on gettext-h, not gettext.
75030
75031 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * gnulib-tool (func_import): Add support for 'public domain' license.
75034         * modules/alloca, modules/atexit, modules/memmove:
75035         Now public domain, not GPL.
75036         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75037         * modules/realloc, modules/strerror, modules/strtod:
75038         Now LGPL, not GPL.
75039
75040 2005-07-05  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75043         autoconf CVS. Needed for mingw.
75044
75045 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         Remove the dependency of the strftime module on the tzset module.
75048         * modules/strftime (Depends-on): Remove dependency on tzset.
75049
75050 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         Remove the dependency of the strftime module on the tzset module.
75053         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75054         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
75060         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75061         Copy the input structure, to work around some of the bug with
75062         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75063         Solaris releases, you should also use the tzset module, but we won't
75064         require it as a dependency any more since we don't want LGPLed code
75065         to depend on GPLed code.
75066
75067 2005-07-02  Jim Meyering  <jim@meyering.net>
75068
75069         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75070         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75071         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75072         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75073
75074 2005-07-02  Jim Meyering  <jim@meyering.net>
75075
75076         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75077
75078 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75081         declares only 'struct timespec;' (!).
75082
75083 2005-07-01  Jim Meyering  <jim@meyering.net>
75084
75085         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75086         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75087         * lib/save-cwd.c, tempname.c:
75088         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75089         and don't include <sys/file.h>).
75090
75091 2005-06-29  Jim Meyering  <jim@meyering.net>
75092
75093         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75094         type name.  Use the variable name instead.
75095         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75096         Likewise.
75097
75098 2005-06-28  Simon Josefsson  <jas@extundo.com>
75099
75100         * modules/check-version (Files): Add check-version.m4.
75101
75102 2005-06-28  Simon Josefsson  <jas@extundo.com>
75103
75104         * m4/check-version.m4: New file, suggested by Jim Meyering
75105         <jim@meyering.net>.
75106
75107 2005-06-28  Simon Josefsson  <jas@extundo.com>
75108
75109         * lib/check-version.h, lib/check-version.c: New files.
75110
75111 2005-06-28  Simon Josefsson  <jas@extundo.com>
75112
75113         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75114         collision with global variable.  Better indentation.  Don't
75115         increment buffer pointer beyond buffer end.  Based on comments
75116         from Paul Eggert <eggert@cs.ucla.edu>.
75117
75118         * lib/base64.h: Indent.
75119
75120 2005-06-28  Simon Josefsson  <jas@extundo.com>
75121
75122         * doc/gnulib.texi (Library version handling): New section.
75123
75124 2005-06-28  Jim Meyering  <jim@meyering.net>
75125
75126         * check-module (find_included_lib_files): Hard-code another
75127         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75128         but modules/fts-lgpl (correctly) does not list those files.
75129
75130         * modules/canonicalize (Files): Add lib/pathmax.h.
75131
75132 2005-06-25  Simon Josefsson  <jas@extundo.com>
75133
75134         * modules/check-version: New file.
75135
75136 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75139         initializer of struct addrinfo, as an indication that we don't
75140         care how many members the structure has.
75141
75142 2005-06-24  Derek Price  <derek@ximbiot.com>
75143         and Bruno Haible  <bruno@clisp.org>
75144
75145         Remove stat module & update lstat.
75146         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75147         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75148         * m4/stat.m4: Remove this file.
75149
75150 2005-06-24  Derek Price  <derek@ximbiot.com>
75151         and Bruno Haible  <bruno@clisp.org>
75152
75153         Remove stat module & update lstat.
75154         * lib/stat.c: Remove this file...
75155         (slash_aware_lstat): ...moving this content and its support...
75156         * lib/lstat.c (rpl_lstat): ...into here.
75157         * lib/lstat.h: New file.
75158
75159 2005-06-24  Derek Price  <derek@ximbiot.com>
75160         and Bruno Haible  <bruno@clisp.org>
75161
75162         Remove stat module & update lstat.
75163         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
75170         * MODULES.html: Regenerated.
75171         * modules/lstat (Description): Correct function name.
75172         (Files): Add "lstat.h".
75173         (Depends-on): Remove stat, add xalloc, stat-macros.
75174         * modules/stat: Remove this file.
75175         (Include): Add "lstat.h", remove <sys/stat.h>.
75176
75177 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75180         (ranged_convert): Don't save conversion in a temporary struct.
75181         This causes a warning with GCC 4.0.0, and anyway in the typical
75182         case it's not worth the extra 100 bytes or so of code.
75183         (ranged_convert, __mktime_internal): When calling a function via a
75184         pointer P, use P () rather than (*P) (), as we now assume C89 or
75185         better.
75186
75187 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75190         "who -r" failed to give output.  Problem reported by Tim Waugh.
75191
75192         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75193         (xcalloc): Use it to avoid needless tests.
75194         Problem reported by Jim Meyering.
75195
75196 2005-06-20  Derek Price  <derek@ximbiot.com>
75197
75198         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75199         unnecessary for Autoconfs > 2.59c.
75200
75201 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75202
75203         * lib/argp.h (__option_is_short): Check upper limit of
75204         __key. Isprint() requires its argument to have the value
75205         of an unsigned char or EOF.
75206
75207 2005-06-16  Jim Meyering  <jim@meyering.net>
75208
75209         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75210         when either N or S is zero.
75211
75212 2005-06-16  Derek Price  <derek@ximbiot.com>
75213
75214         * m4/bison.m4: Declare YACC & YFLAGS precious.
75215
75216 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75217
75218         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75219         multibyte string or pattern, fall back on unibyte matching.
75220         Problem reported by James Youngman.
75221
75222 2005-06-08  Bruno Haible  <bruno@clisp.org>
75223
75224         * modules/csharpcomp: New file.
75225         * MODULES.html.sh (C#): Add csharpcomp.
75226
75227 2005-06-08  Bruno Haible  <bruno@clisp.org>
75228
75229         * m4/csharpcomp.m4: New file, from GNU gettext.
75230
75231 2005-06-08  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/csharpcomp.h: New file, from GNU gettext.
75234         * lib/csharpcomp.c: New file, from GNU gettext.
75235         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75236
75237 2005-06-08  Bruno Haible  <bruno@clisp.org>
75238
75239         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75240         warning on mingw.
75241
75242 2005-06-07  Derek Price  <derek@ximbiot.com>
75243
75244         Sync from CVS.
75245         * lib/glob_.h: Indent nested #ifdef.
75246
75247 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         Sync from coreutils.
75250         Use "file name" when talking about file names, instead of "filename"
75251         or "path", as per the GNU coding standards.
75252         * lib/mkdir-p.c: Renamed from makepath.c.
75253         (make_dir_parents): Renamed from make_path.  All callers changed.
75254         * lib/mkdir-p.h: Likewise.  All includers changed.
75255         * lib/filenamecat.c: Renamed from path-concat.c.
75256         (file_name_concat): Renamed from path_concat.  All callers changed.
75257         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75258         * lib/filenamecat.h: Likewise.  All includers changed.
75259         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75260         in comments or local variable names.
75261         * lib/basename.c: Likewise.
75262         * lib/canonicalize.c, canonicalize.h: Likewise.
75263         * lib/dirname.c, dirname.h: Likewise.
75264         * lib/euidaccess.c: Likewise.
75265         * lib/exclude.c: Likewise
75266         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75267         * lib/fsusage.c, fsuage.h: Likewise.
75268         * lib/fts.c, fts_.h: Likewise.
75269         * lib/getcwd.c: Likewise.
75270         * lib/getloadavg.c: Likewise.
75271         * lib/mkstemp.c: Likewise.
75272         * lib/mountlist.c, mountlist.h: Likewise.
75273         * lib/openat.c, openat.h: Likewise.
75274         * lib/readlink-stub.c: Likewise.
75275         * lib/readutmp.c, readutmp.h: Likewise.
75276         * lib/rename.c: Likewise.
75277         * lib/rmdir.c: Likewise.
75278         * lib/same.c: Likewise.
75279         * lib/savedir.c: Likewise.
75280         * lib/stripslash.c: Likewise.
75281         * lib/tempname.c: Likewise.
75282         * lib/xreadlink.c: Likewise.
75283         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75284         All uses changed.
75285         * lib/exclude.h: Likewise.
75286
75287         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75288         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75289         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75290         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75291         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75292         files have been getting away with it for years (MORE/BSD 4.3
75293         is extinct now).
75294         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75295         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75296
75297         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75298         Define to 256, not 255, as per modern POSIX.
75299
75300 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         Sync from coreutils.
75303         Use "file name" when talking about file names, instead of "filename"
75304         or "path", as per the GNU coding standards.
75305         * MODULES.html.sh: mkdir-p renamed from makepath.
75306         filenamecat renamed from path-concat.
75307         * modules/filenamecat: Renamed from modules/path-concat.
75308         (Files): filenamecat.h and filenamecat.c renamed from
75309         path-concat.h and path-concat.c.
75310         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75311         (Include): filenamecat.h, not path-concat.h.
75312         * modules/mkdir-p: Renamed from modules/makepath.
75313         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75314         makepath.c.
75315         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75316         (Include): mkdir-p.h, not makepath.h.
75317
75318 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         Sync from coreutils.
75321         * m4/mkdir-p.m4: Renamed from makepath.m4.
75322         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75323         Rename files from makepath.c to mkdir-p.c, and from
75324         makepath.h to mkdir-p.h.
75325         * m4/filenamecat.m4: Renamed from path-concat.m4.
75326         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75327         Rename files from path-concat.c to filenamecat.c,
75328         and from path-concat.h to filenamecat.h.
75329         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75330         "file name" in local variables or comments.
75331         * m4/rename.m4: Likewise.
75332
75333 2005-06-01  Bruno Haible  <bruno@clisp.org>
75334
75335         * modules/csharpexec: New file.
75336         * MODULES.html.sh (C#): New section.
75337
75338 2005-06-01  Bruno Haible  <bruno@clisp.org>
75339
75340         * m4/csharp.m4: New file, from GNU gettext.
75341         * m4/csharpexec.m4: New file, from GNU gettext.
75342
75343 2005-06-01  Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/csharpexec.h: New file, from GNU gettext.
75346         * lib/csharpexec.c: New file, from GNU gettext.
75347         * lib/csharpexec.sh.in: New file, from GNU gettext.
75348
75349 2005-05-31  Derek Price  <derek@ximbiot.com>
75350             Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         Sync from cvs.
75353         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75354
75355 2005-05-31  Derek Price  <derek@ximbiot.com>
75356             Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         Sync from cvs.
75359         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75360
75361 2005-05-29  Derek Price  <derek@ximbiot.com>
75362
75363         * config/srclist.txt (glob_.h, glob.c): Add these files.
75364
75365 2005-05-29  Derek Price  <derek@ximbiot.com>
75366
75367         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75368         * modules/glob: New file.
75369         * modules/getlogin_r: Add link to POSIX spec in description.
75370
75371 2005-05-29  Derek Price  <derek@ximbiot.com>
75372             Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * m4/glob.m4: New file.
75375
75376 2005-05-29  Derek Price  <derek@ximbiot.com>
75377             Paul Eggert  <eggert@cs.ucla.edu>
75378
75379         * lib/glob_.h, lib/glob.c: New files.
75380
75381 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75384         * modules/fts-lgpl (Depends-on): Remove gettext.
75385
75386 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75389         and don't require gt_INTTYPES_PRI.
75390
75391 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75392
75393         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75394
75395         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75396         the configuration hassle isn't worth it.
75397         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75398         (LONGEST_MODIFIER, PRIuMAX): Remove.
75399
75400 2005-05-27  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75403
75404 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75407         _POSIX_PTHREAD_SEMANTICS for Solaris.
75408
75409 2005-05-25  Derek Price  <derek@ximbiot.com>
75410
75411         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75412
75413 2005-05-25  Derek Price  <derek@ximbiot.com>
75414             Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75417         * lib/getlogin_r.c, getlogin_r.h: New files.
75418
75419 2005-05-25  Bruno Haible  <bruno@clisp.org>
75420             Derek Price  <derek@ximbiot.com>
75421
75422         * lib/getlogin_r.h: Simplify API documentation.
75423
75424 2005-05-23  Derek Price  <derek@ximbiot.com>
75425
75426         * modules/minmax (Files): Add m4/minmax.m4.
75427         (configure.ac): Add gl_MINMAX.
75428
75429 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75432         so that unistd-safer.h (GPL'ed code) need not be included.
75433
75434 2005-05-22  Bruno Haible  <bruno@clisp.org>
75435
75436         * m4/minmax.m4: New file.
75437         Based on a patch by Derek Price <derek@ximbiot.com>.
75438
75439 2005-05-22  Bruno Haible  <bruno@clisp.org>
75440
75441         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75442         (INT64_MIN): Fix definition.
75443         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75444
75445         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75446         NEED_SIGNED_INT_TYPES.
75447
75448         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75449         HAVE_SYSTEM_INTTYPES.
75450
75451 2005-05-22  Bruno Haible  <bruno@clisp.org>
75452
75453         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75454         Also include <sys/param.h> if it defines MIN, MAX.
75455         Based on a patch by Derek Price <derek@ximbiot.com>.
75456
75457 2005-05-21  Jim Meyering  <jim@meyering.net>
75458
75459         * modules/fts (Files): Add m4/inttypes-pri.m4.
75460         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75461
75462 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         New fts module.
75465         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75466         (setup_dir, free_dir): New functions.
75467         (enter_dir, leave_dir): Define trivial
75468         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75469         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75470         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75471         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75472         Move to fts-cycle.c.
75473         (fts_open): Use setup_dir.
75474         (fts_close): Use free_dir.
75475         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75476         This adds a label and some gotos, but the alternatives were messier.
75477         Check for memory allocation failure when entering a dir.
75478         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75479         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75480         (FTS): New member fts_cycle, that is a union that contains the
75481         old active_dir_ht and cycle_state.  All uses changed to mention
75482         fts_cycle.ht and fts_cycle.state.
75483         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75484         fts.c, with the following changes:
75485         (setup_dir, free_dir): New functions.
75486         (enter_dir): Now returns bool.  Return true if successful, false
75487         if memory exhausted.  All callers changed.
75488         Do not bother partly cleaning up on
75489         memory allocation failure; that is free_dir's job.
75490         However, free ad if hash_insert fails, to avoid memory leak.
75491         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75492         fts->fts_options to see which union member to use.
75493
75494 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75497         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75498
75499 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75502
75503 2005-05-20  Jim Meyering  <jim@meyering.net>
75504
75505         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75506         Now a macro, to pacify GCC.
75507
75508 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75509
75510         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75511         of -1.
75512
75513 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75514
75515         * lib/chown.c (rpl_chown): Return -1 on failure.
75516
75517 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75520         Don't check for stddef.h.
75521         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75522         don't use its results.
75523         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75524         since we include them unconditionally.  Don't require
75525         AM_STDBOOL_H, since stdbool is a prerequisite.
75526         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75527         since we assume C89 or better.
75528         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75529         as we don't use their results.
75530         Don't check for fchdir, memmove, memset, strrchr, as we use
75531         them unconditionally.
75532         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75533         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75534
75535 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75538         Include <stddef.h> unconditionally, since we assume C89 now.
75539         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75540         * lib/fts.c: Include fts_.h first, to check interface.
75541         Do not include intprops.h; no longer needed.
75542         Include cycle-check.h and hash.h, since fts_.h no longer does.
75543         Remove unnecessary casts of closedir to void.
75544         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75545         decide whether to decrement nlinks.
75546         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75547         (FTS): Use struct hash_table * instead of Hash_table, so that
75548         we no longer need to include hash.h here.
75549
75550 2005-05-18  Jim Meyering  <jim@meyering.net>
75551
75552         * modules/dirfd (License): Change to LGPL.  Most of the code
75553         is already in the public domain.
75554
75555 2005-05-18  Jim Meyering  <jim@meyering.net>
75556
75557         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75558         Reported by Yoann Vandoorselaere.
75559
75560 2005-05-17  Jim Meyering  <jim@meyering.net>
75561
75562         * m4/fts.m4: New file, from coreutils.
75563
75564 2005-05-17  Jim Meyering  <jim@meyering.net>
75565
75566         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75567
75568 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         Sync from coreutils.
75571         * m4/unlinkdir.m4: New file.
75572
75573 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         Sync from coreutils.
75576         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75577         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75578         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75579         White space changes only.
75580         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75581         special.
75582         * lib/yesno.c: Include getline.h, not ctype.h.
75583         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75584         Use getline to remove arbitrary restriction on response length.
75585
75586 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         * config/srclist-update: Spell out "Street" in FSF postal
75589         mail address; this is the style the FSF seems to prefer.
75590
75591         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75592         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75593         this updates FSF postal mail address.
75594
75595         Sync from coreutils.
75596         * modules/unlinkdir: New file.
75597         * modules/yesno (Depends-on): Add getline.
75598         * MODULES.html.sh (File system functions): Add unlinkdir.
75599
75600 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75603         lib/strsep.h:
75604         Change the initial comment to refer to GPL, not LGPL.
75605         gnulib-tool will change it to LGPL as needed.
75606
75607         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75608         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75609         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75610         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75611         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75612         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75613         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75614         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75615         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75616         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75617         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75618         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75619         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75620         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75621         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75622         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75623         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75624         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75625         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75626         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75627         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75628         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75629         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75630         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75631         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75632         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75633         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75634         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75635         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75636         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75637         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75638         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75639         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75640         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75641         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75642         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75643         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75644         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75645         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75646         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75647         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75648         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75649         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75650         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75651         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75652         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75653         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75654         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75655         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75656         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75657         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75658         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75659         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75660         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75661         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75662         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75663         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75664         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75665         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75666         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75667         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75668         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75669         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75670         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75671         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75672         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75673         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75674         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75675         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75676         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75677         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75678         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75679         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75680         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75681         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75682         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75683         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75684         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75685         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75686         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75687         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75688         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75689         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75690         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75691         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75692         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75693         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75694         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75695         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75696         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75697         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75698         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75699         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75700         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75701         lib/yesno.c, lib/yesno.h:
75702         Update FSF postal mail address.
75703
75704 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75707         tests/test-memmem.c, tests/test-stpncpy.c:
75708         Update FSF postal mail address.
75709
75710 2005-05-13  Bruno Haible  <bruno@clisp.org>
75711
75712         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75713         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75714         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75715         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75716         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75717         Add support for 64-bit integers in the MSVC compiler.
75718
75719 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75720
75721         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75722
75723 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75724
75725         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75726
75727 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         * doc/getdate.texi (General date syntax): Don't say that date
75730         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75731         Problem reported by Nic Ferrier.
75732
75733 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75734
75735         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75736         specified in ai_socktype. Fix invalid ai_protocol
75737         check. ai_protocol is usually set to 0 or depending on
75738         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75739         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75740         ai_socktype / ai_protocol in the returned addrinfo structure.
75741
75742 2005-05-10  Simon Josefsson  <jas@extundo.com>
75743
75744         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75745         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75746
75747 2005-05-10  Karl Berry  <karl@gnu.org>
75748
75749         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75750         (from http://www.gnu.org/licenses).
75751         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75752         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75753         fdl.texi suffices.
75754
75755 2005-05-10  Karl Berry  <karl@gnu.org>
75756
75757         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75758         (COPYING.DOC): remove.
75759
75760         * config/srclist-update: new FSF address.
75761
75762 2005-05-10  Derek Price  <derek@ximbiot.com>
75763
75764         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75765         possible.
75766
75767 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75768             Bruno Haible  <bruno@clisp.org>
75769
75770         * modules/inet_ntop: New file.
75771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75772         inet_ntop.
75773
75774 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75775             Bruno Haible  <bruno@clisp.org>
75776
75777         * m4/inet_ntop.m4: New file.
75778
75779 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75780             Bruno Haible  <bruno@clisp.org>
75781
75782         * lib/inet_ntop.h: New file.
75783         * lib/inet_ntop.c: New file, from glibc with modifications.
75784
75785 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * modules/time_r (License): Change to LGPL.
75788         * modules/extensions (License): Change to LGPL.  Actually,
75789         the license is more permissive than that, but currently gnulib-tool
75790         doesn't know how to handle more-permissive licenses.
75791
75792         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75793         Problem reported by Dave Love.
75794
75795 2005-05-08  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75798         blank.
75799
75800 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * modules/argmatch (Depends-on): Add stdbool.
75803         * modules/backupfile (Depends-on): Likewise.
75804         * modules/chdir-long (Depends-on): Likewise.
75805         * modules/closeout (Depends-on): Likewise.
75806         * modules/cycle-check (Depends-on): Likewise.
75807         * modules/dirname (Depends-on): Likewise.
75808         * modules/fnmatch (Depends-on): Likewise.
75809         * modules/fsusage (Depends-on): Likewise.
75810         * modules/fwriteerror (Depends-on): Likewise.
75811         * modules/getcwd (Depends-on): Likewise.
75812         * modules/getloadavg (Depends-on): Likewise.
75813         * modules/hard-locale (Depends-on): Likewise.
75814         * modules/makepath (Depends-on): Likewise.
75815         * modules/mountlist (Depends-on): Likewise.
75816         * modules/nanosleep (Depends-on): Likewise.
75817         * modules/posixtm (Depends-on): Likewise.
75818         * modules/quotearg (Depends-on): Likewise.
75819         * modules/readtokens (Depends-on): Likewise.
75820         * modules/readtokens0 (Depends-on): Likewise.
75821         * modules/readutmp (Depends-on): Likewise.
75822         * modules/save-cwd (Depends-on): Likewise.
75823         * modules/strftime (Depends-on): Likewise.
75824         * modules/userspec (Depends-on): Likewise.
75825         * modules/utimecmp (Depends-on): Likewise.
75826         * modules/xgetcwd (Depends-on): Likewise.
75827         * modules/xnanosleep (Depends-on): Likewise.
75828         * modules/xstrtod (Depends-on): Likewise.
75829         * modules/yesno (Depends-on): Likewise.
75830
75831 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75834         needless checks.
75835
75836 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         Merge from coreutils.  Among other things,
75839         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75840         * lib/fd-safer.c: New file.
75841         * lib/fcntl-safer.h, open-safer.c: Remove.
75842         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75843         * lib/dup-safer.c: Include unistd-safer.h first.
75844         Don't include errno.h.
75845         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75846         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75847         * lib/file-type.c: Rely on file-type.h change.
75848         * lib/getloadavg.c: Include unistd-safer.h.
75849         (getloadavg): Use safer open.
75850         * lib/getusershell.c: Include "stdio-safer.h".
75851         (getusershell): Use safer fopen.
75852         * lib/long-options.c (long_options): Use NULL rather than 0.
75853         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75854         'free'.
75855         * lib/modechange.c: Likewise.
75856         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75857         (MODE_DONE): New constant.
75858         (struct mode_change): Remove 'next' member.
75859         (make_node_op_equals): New function; like the old one of the
75860         same name, except it allocates an array.
75861         (mode_compile, mode_create_from_ref): Use it.
75862         (mode_compile): Allocate result as an array, not a linked list.
75863         Parse octal string ourself, so that we catch mistakes like "+0".
75864         (mode_adjust): Arg is an array, not a linked list.
75865         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75866         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75867         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75868         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75869         Remove.  This is now stat-macros.h's job.
75870         (talloc): Remove.  All callers replaced by xalloc, so that
75871         our invokers don't have to worry about reporting memory failures.
75872         (make_node_op_equals): Remove.
75873         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75874         New constants.
75875         (struct mode_change): Moved here from modechange.h.
75876         (mode_append_entry): Remove.
75877         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75878         apps to have incorrect behavior.  Use simpler algorithm for head
75879         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75880         Detect more invalid usages rather than having somewhat-random behavior.
75881         Don't insert an "a=" action, as that leads to incorrect behavior.
75882         (mode_compile, mode_create_from_ref): Return NULL on error instead
75883         of an enum, since now there's only one way to have an error.  All
75884         callers changed.
75885         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75886         at the correct time.  Simplify calculation of "+u" and its ilk.
75887         Don't mishandle "+X".
75888         (mode_free): Remove "register" and localize decls.
75889         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75890         (struct mode_change): Move to modechange.c; callers don't
75891         need to see this stuff.
75892         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75893         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75894         (mode_change, mode_adjust): Reflect the new signatures noted above.
75895         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75896         that might redefine system include files.
75897         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75898         (my_usleep): Use NULL rather than (void *) 0.
75899         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75900         Use siginterrupt to specify that system calls should be interrupted.
75901         (rpl_nanosleep): Move initialization of suspended closer to call of
75902         my_usleep.
75903         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75904         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75905         (desirable_utmp_entry): New function.
75906         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75907         using x2nrealloc, to simplify logic.
75908         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75909         size calculation.  Do not assume utmp file is a regular file.
75910         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75911         (READ_UTMP_CHECK_PIDS): New constant.
75912         * lib/save-cwd.c: Include unistd-safer.h.
75913         (save_cwd): Use fd_safer.
75914         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75915         [!_LIBC] Include "stat-macros.h" instead.
75916         * lib/unistd-safer.h (fd_safer): New decl.
75917
75918 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * modules/getloadavg (Depends-on): Add unistd-safer.
75921         * modules/getusershell (Depends-on): Add stdio-safer.
75922         * modules/lstat (Depends-on): Remove xalloc.
75923         * modules/mkstemp (Depends-on): Add stat-macros.
75924         * modules/modechange (Depends-on): Remove xstrtol.
75925         Add stat-macros, xalloc.
75926         * modules/save-cwd (Depends-on): Add unistd-safer.
75927         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75928         * modules/unistd-safer (Files): Add lib/fd-safer.c
75929         (Makefile.am): Remove lib_SOURCES.
75930
75931         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75932         Remove fcntl-safer; unistd-safer supersedes it.
75933
75934 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75937         AC_HEADER_STAT.
75938         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75939         (gl_PREREQ_CHOWN): Remove.
75940         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75941         it.  Don't require AC_HEADER_STAT.
75942         (gl_PREREQ_LSTAT): Remove.
75943         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75944         Don't require AC_HEADER_STAT.
75945         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75946         (gl_PREREQ_RMDIR): Remove.
75947         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75948         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75949         the stat-macros module a prerequisite.
75950         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75951         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75952         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75953         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75954         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75955         variable names.
75956         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75957         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75958         variable prefixes.
75959         * m4/fcntl-safer.m4: Remove.
75960         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75961         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75962         Invoke gl_PREREQ_FD_SAFER.
75963         (gl_PREREQ_FD_SAFER): New macro.
75964         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75965         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75966         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75967         Remove duplicate call to AC_LIBOBJ(readutmp).
75968         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75969
75970         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75971         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75972
75973 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * MODULES.html.sh (Misc): Add byteswap.
75976
75977 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75978
75979         * modules/getcwd (Depends-on): Add extensions.
75980         * modules/openat (Depends-on): Likewise.
75981
75982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75983
75984         * modules/byteswap: New file.
75985
75986 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75987
75988         * m4/byteswap.m4: New file.
75989
75990 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75991
75992         * lib/byteswap_.h: New file.
75993
75994 2005-04-25  Karl Berry  <karl@gnu.org>
75995
75996         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75997
75998 2005-04-25  Albert Chin  <china@thewrittenword.com>
75999
76000         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76001         Toolkit C bug.
76002
76003 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76004
76005         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76006         (func_ln_if_changed): Remove forcibly for no error message
76007         in case file does not exist.
76008
76009 2005-04-19  Simon Josefsson  <jas@extundo.com>
76010
76011         * gnulib-tool (Options): Make --symlink mean --symbolic.
76012
76013 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76014
76015         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76016
76017 2005-04-16  Simon Josefsson  <jas@extundo.com>
76018
76019         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76020
76021 2005-04-15  Simon Josefsson  <jas@extundo.com>
76022
76023         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76024
76025 2005-04-15  Simon Josefsson  <jas@extundo.com>
76026
76027         * gnulib-tool: Rename --symlink to --symbolic.
76028
76029 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76030
76031         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76032         symbolic links to files instead of copying/moving.  Add --aux-dir,
76033         specifying directory relative --dir where auxiliary build tools
76034         are placed.
76035
76036 2005-04-14  Bruno Haible  <bruno@clisp.org>
76037
76038         * modules/allocsa (License): Change to LGPL.
76039         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76040
76041 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76044         that "UTC +1 second" continues to work.  Problem reported
76045         by Dmitry V. Levin.
76046         (relunit_snumber): New rule.
76047         (relunit): Use it.
76048
76049 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * lib/getdate.y (universal_time_zone_table): New constant.
76052         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76053         universal_time_zone_table.
76054         (lookup_zone): Prefer universal_time_zone_table to
76055         local_time_zone_table, so that "GMT" time stamps are allowed in
76056         London during the summer.  Problem reported by Ian Abbott.
76057
76058 2005-04-12  Jim Meyering  <jim@meyering.net>
76059
76060         * lib/human.c (humblock): Set *options even when returning due to
76061         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76062         warning from gcc-4.
76063
76064 2005-04-09  Jim Meyering  <jim@meyering.net>
76065
76066         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76067         -Wuninitialized: initialize tm0.tm_year.
76068
76069 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76070
76071         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76072         count, since there's no maximum.  All uses changed.
76073         Add member dsts_seen.
76074         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76075         not being INT_MAX.
76076         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76077         Use pc_rels_seen to decide whther a date is absolute.
76078
76079         * lib/getdate.y (number): Don't overwrite year.
76080         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76081         check.
76082
76083 2005-04-02  Simon Josefsson  <jas@extundo.com>
76084
76085         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76086         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76087
76088 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76089
76090         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76091         where no absolute path name can be longer than PATH_MAX.
76092
76093 2005-03-27  Jim Meyering  <jim@meyering.net>
76094
76095         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76096
76097 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76100         "one's complement" -> "ones' complement" in comment, as per Knuth.
76101         "value of type" -> "type or expression" in comment.
76102         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76103
76104 2005-03-26  Jim Meyering  <jim@meyering.net>
76105
76106         Comment nits.
76107         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76108         Correct typos: s/or/of/.
76109
76110 2005-03-26  Jim Meyering  <jim@meyering.net>
76111
76112         * modules/check-include-files: Move to ../ and rename to...
76113         * check-module: ...this.
76114
76115 2005-03-25  Jim Meyering  <jim@meyering.net>
76116
76117         * modules/xvasprintf (Files): Add xalloc.h.
76118
76119 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         * modules/gettext (Files): config/config.rpath ->
76122         build-aux/config.rpath
76123         * modules/iconv (Files): Likewise.
76124         Problem reported by Oskar Liljeblad.
76125
76126 2005-03-23  Jim Meyering  <jim@meyering.net>
76127
76128         * modules/check-include-files: New script to check for
76129         missing dependencies, multiple includes, etc.
76130
76131         * modules/c-strtold (Depends-on): Add xalloc.
76132         * modules/c-strtod (Depends-on): Add xalloc.
76133         * modules/hash (Depends-on): Add xalloc.
76134         (Files): Remove lib/xalloc.h.
76135
76136         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76137         * modules/userspec (Files): Add lib/inttostr.h.
76138
76139 2005-03-23  Jim Meyering  <jim@meyering.net>
76140
76141         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76142
76143 2005-03-22  Jim Meyering  <jim@meyering.net>
76144
76145         * modules/stat-macros: New module.
76146         * modules/canonicalize, modules/euidaccess, modules/file-type,
76147         * modules/filemode, modules/lchown, modules/makepath,
76148         * modules/rmdir, modules/stat: Depend on new stat-macros module
76149         rather than listing lib/stat-macros.h manually.
76150         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76151
76152 2005-03-22  Jim Meyering  <jim@meyering.net>
76153
76154         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76155
76156 2005-03-22  Bruno Haible  <bruno@clisp.org>
76157
76158         * config/srclist.txt: Replace target directory 'config' with
76159         'build-aux'.
76160         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76161         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76162         ../build-aux/.
76163
76164 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * modules/chdir-long (Depends-on): Add mempcpy.
76167
76168         * modules/acl, modules/backupfile, modules/c-strtod,
76169         modules/c-strtold, modules/canon-host, modules/canonicalize,
76170         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76171         modules/exclude, modules/exitfail, modules/file-type,
76172         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76173         modules/getdate, modules/getline, modules/getpagesize,
76174         modules/getpass, modules/getugroups, modules/group-member,
76175         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76176         modules/inttostr, modules/long-options, modules/makepath,
76177         modules/md5, modules/memcasecmp, modules/memcoll,
76178         modules/modechange, modules/mountlist, modules/path-concat,
76179         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76180         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76181         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76182         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76183         modules/strftime, modules/strndup, modules/strverscmp,
76184         modules/timespec, modules/unlocked-io, modules/userspec,
76185         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76186         modules/yesno:
76187         Remove lib_SOURCES line from Makefile.am section, as this is now
76188         done automatically by the corresponding Autoconf macro.
76189
76190 2005-03-21  Jim Meyering  <jim@meyering.net>
76191
76192         Changes imported from coreutils.
76193
76194         * lib/cycle-check.c: Don't include xalloc.h.
76195
76196         * lib/path-concat.c: Don't include assert.h.
76197         (path_concat): Remove assertion that would have triggered
76198         for ABASE starting with more than one slash.
76199         Reported by Andreas Schwab.
76200
76201         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76202         properly when ABASE is an absolute file name.
76203         Correct the description of this function.
76204         Include <assert.h>.
76205         Add an assertion and a test driver.
76206         This fixes a bug introduced on 2004-07-02.
76207         Andreas Schwab reported the resulting failure of cp --parents:
76208         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76209
76210 2005-03-21  Jim Meyering  <jim@meyering.net>
76211
76212         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76213         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76214
76215 2005-03-21  Jim Meyering  <jim@meyering.net>
76216         and  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76219         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76220         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76221         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76222         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76223         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76224         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76225         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76226         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76227         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76228         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76229         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76230         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76231         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76232         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76233         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76234         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76235         for these modules.
76236
76237 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76240         (which shouldn't happen), generate nothing instead of returning 0
76241         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76242
76243 2005-03-16  Bruno Haible  <bruno@clisp.org>
76244
76245         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76246         HAVE_LONGLONG_64BIT.
76247
76248 2005-03-16  Bruno Haible  <bruno@clisp.org>
76249
76250         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76251         HAVE_LONGLONG_64BIT.
76252
76253 2005-03-16  Bruno Haible  <bruno@clisp.org>
76254
76255         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76256         HAVE_LONGLONG_64BIT.
76257
76258 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76261         reliably distinguish strftime failure from empty output on POSIX
76262         hosts.
76263
76264 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76267         (iconv_string): Don't guess a size-zero buffer, as that might cause
76268         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76269         result would be 'too large', where 'too large' is (heuristically)
76270         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76271         overflow concerns.  This will prevent some unwanted malloc failures
76272         when the inputs are very large.
76273
76274 2005-03-15  Karl Berry  <karl@gnu.org>
76275
76276         * config/srclist.txt (config.rpath): from gettext.
76277         * config/config.rpath: update.
76278
76279 2005-03-15  Bruno Haible  <bruno@clisp.org>
76280
76281         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76282         to 'negate'.
76283
76284         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76285         variable.
76286
76287         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76288         results.
76289
76290 2005-03-14  Simon Josefsson  <jas@extundo.com>
76291
76292         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76293         <fx@gnu.org>.
76294
76295 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76298         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76299         intprops.h.
76300         * lib/strtol.c: Likewise.
76301
76302 2005-03-14  Jim Meyering  <jim@meyering.net>
76303
76304         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76305         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76306         to be nonzero so that we (and caller) can detect the difference
76307         between a valid zero-length expansion and an error return, even
76308         when the underlying strftime fails before writing anything into
76309         that location.
76310
76311 2005-03-14  Bruno Haible  <bruno@clisp.org>
76312
76313         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76314         Update from GNU gettext 0.14.3.
76315
76316 2005-03-10  Jim Meyering  <jim@meyering.net>
76317
76318         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76319
76320 2005-03-10  Jim Meyering  <jim@meyering.net>
76321
76322         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76323         so that this module works on systems without fchdir.
76324
76325 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         Factor int-properties macros into a single file, except for
76328         glibc-related files.
76329         * lib/intprops.h: New file.
76330         * lib/getloadavg.c: Include it instead of limits.h.
76331         (INT_STRLEN_BOUND): Remove.
76332         * lib/human.c: Include intprops.h.
76333         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76334         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76335         302/1000.
76336         * lib/inttostr.h: Include intprops.h instead of limits.h.
76337         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76338         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76339         for consistency with intprops.h.
76340         (time_t_is_integer, twos_complement_arithmetic): Use them.
76341         * lib/sig2str.h: Include <signal.h>, intprops.h.
76342         (INT_STRLEN_BOUND): Remove.
76343         * lib/strftime.c (TYPE_SIGNED): Remove.
76344         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76345         * lib/strtol.c: Adjust comments to match intprops.h.
76346         * lib/userspec.c: Include intprops.h.
76347         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76348         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76349         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76350         instead of rolling our own expressions.
76351         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76352
76353         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76354         instead of int.
76355         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76356         the right thing even if adding 1900 would overflow.  Similarly
76357         for tm_mon + 1 and tm_yday + 1.
76358         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76359         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76360         (DO_SIGNED_NUMBER): New macro.
76361         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76362
76363 2005-03-07  Bruno Haible  <bruno@clisp.org>
76364
76365         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76366
76367 2005-03-07  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76370
76371 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76372
76373         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76374         (func_import): Only replace files via --import when they have actually
76375         changed.
76376
76377 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76378
76379         * m4/mmap-anon.m4: New file.
76380         * m4/pagealign_alloc.m4: New file.
76381
76382 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76383             Bruno Haible  <bruno@clisp.org>
76384
76385         * modules/pagealign_alloc: New file.
76386         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76387
76388 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76389             Bruno Haible  <bruno@clisp.org>
76390
76391         * lib/pagealign_alloc.h: New file.
76392         * lib/pagealign_alloc.c: New file.
76393
76394 2005-03-03  Bruno Haible  <bruno@clisp.org>
76395
76396         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76397         Use an all-permissive copyright notice, recommended by RMS.
76398
76399 2005-03-02  Bruno Haible  <bruno@clisp.org>
76400
76401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76402         of AIX, the replacement has to be done only after <string.h> is
76403         included, therefore not in config.h. stpncpy.h does the replacement,
76404         and stpncpy.c uses it.
76405
76406 2005-03-02  Bruno Haible  <bruno@clisp.org>
76407
76408         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76409         stpncpy.c uses it.
76410
76411 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76414         The workaround isn't strictly needed for POSIX conformance, and
76415         it's too much of a pain to configure and maintain.  We'll ask
76416         people to fix their kernels instead.
76417         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76418         (NANOSLEEP_BUG_WORKAROUND): Remove.
76419         (xnanosleep): Remove the workaround.
76420
76421 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76424         Reported by Derek Price.
76425         (Include): Add "timespec.h".
76426
76427         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76428
76429 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76432         to detect nanosleep bug.
76433
76434 2005-03-01  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76437
76438 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * modules/gethrxtime: New file.
76441         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76442         (Depends-on): Add gethrxtime.
76443         (configure.ac): Add gl_XNANOSLEEP.
76444         (Makefile.am): Remove lib_SOURCES line.
76445
76446 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76449         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76450
76451 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76454         * lib/timespec.h (gettime): Return void, since it always
76455         succeeds now.  All uses changed.
76456         * lib/gettime.c (gettime): Likewise.
76457         [HAVE_NANOTIME]: Prefer nanotime.
76458         Assume gettimeofday succeeds, as POSIX requires.
76459         Assime time () succeeds, since other code already does.
76460         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76461         (timespec_subtract): Remove.
76462         (NANOSLEEP_BUG_WORKAROUND): New constant.
76463         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76464         things considerably.  Use it only on GNU/Linux hosts, since the
76465         workaround shouldn't be needed elsewhere.
76466
76467 2005-02-24  Bruno Haible  <bruno@clisp.org>
76468
76469         * modules/gettext (Files): Add m4/glibc2.m4.
76470
76471 2005-02-24  Bruno Haible  <bruno@clisp.org>
76472
76473         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76474         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76475         * m4/progtest.m4:
76476         Update from GNU gettext 0.14.2.
76477         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76478
76479 2005-02-24  Bruno Haible  <bruno@clisp.org>
76480
76481         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76482         * lib/config.charset: Update from GNU gettext 0.14.2.
76483
76484 2005-02-24  Bruno Haible  <bruno@clisp.org>
76485
76486         * lib/gettext.h: Update from GNU gettext 0.14.2.
76487
76488 2005-02-23  Simon Josefsson  <jas@extundo.com>
76489
76490         * m4/iconvme.m4: New file.
76491
76492 2005-02-23  Jim Meyering  <jim@meyering.net>
76493
76494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76495         change.
76496         Thanks to Bruno Haible for catching it.
76497
76498 2005-02-22  Simon Josefsson  <jas@extundo.com>
76499
76500         * modules/iconvme: New file.
76501
76502         * MODULES.html.sh: Add iconvme.
76503
76504 2005-02-22  Simon Josefsson  <jas@extundo.com>
76505
76506         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76507
76508 2005-02-22  Simon Josefsson  <jas@extundo.com>
76509
76510         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76511
76512 2005-02-22  Jim Meyering  <jim@meyering.net>
76513
76514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76515         s/ifndef/ifdef/.
76516
76517 2005-02-20  Neil Conway  <neilc@samurai.com>
76518
76519         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76520         returned by OSX/Darwin if the specified buffer is not large
76521         enough for the hostname.
76522
76523 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76524
76525         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76526         pass it to _help, otherwise the latter coredumps trying to
76527         dereference state.root_argp.
76528
76529 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * modules/chdir-long (Depends-on): Add memrchr.
76532         * modules/memrchr (Files): Add lib/memrchr.h.
76533         (Include): "memrchr.h".
76534
76535 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76538
76539 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * lib/memrchr.h: New file.
76542         * lib/chdir-long.c: Include it.
76543         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76544         Don't bother including stddef.h.
76545
76546 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76549         inclusion.
76550         Include <sys/types.h>, for dev_t.
76551         (ME_DUMMY, ME_REMOTE): Move from here....
76552         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76553         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76554         Dmitry V. Levin.
76555         Include mountlist.h first, to test the interface.
76556
76557 2005-01-29  Bruno Haible  <bruno@clisp.org>
76558
76559         * lib/progname.c (program_name): Initialize.
76560         Needed when linking statically on MacOS X.
76561
76562 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         Sync from coreutils.
76565         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76566         (Depends-on): Add c-strtod.
76567         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76568
76569 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         Sync from coreutils.
76572         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76573
76574         Remove files that are specific to coreutils.
76575         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76576
76577 2005-01-28  Bruno Haible  <bruno@clisp.org>
76578
76579         * modules/javacomp: New file.
76580         * MODULES.html.sh (Java): Add javacomp.
76581
76582 2005-01-28  Bruno Haible  <bruno@clisp.org>
76583
76584         * m4/javacomp.m4: New file, from GNU gettext.
76585
76586 2005-01-28  Bruno Haible  <bruno@clisp.org>
76587
76588         * lib/javacomp.sh.in: New file, from GNU gettext.
76589         * lib/javacomp.h: New file, from GNU gettext.
76590         * lib/javacomp.c: New file, from GNU gettext.
76591
76592 2005-01-26  Simon Josefsson  <jas@extundo.com>
76593
76594         * lib/gai_strerror.c: Use GPL in header.
76595
76596 2005-01-26  Bruno Haible  <bruno@clisp.org>
76597
76598         * modules/javaexec: New file.
76599         * MODULES.html.sh (Java): Add javaexec.
76600
76601 2005-01-26  Bruno Haible  <bruno@clisp.org>
76602
76603         * m4/javaexec.m4: New file, from GNU gettext.
76604
76605 2005-01-26  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/javaexec.sh.in: New file, from GNU gettext.
76608         * lib/javaexec.h: New file, from GNU gettext.
76609         * lib/javaexec.c: New file, from GNU gettext.
76610
76611 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76612
76613         * modules/lchown (Depends-on): Remove lchown.h
76614
76615 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76616
76617         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76618         must be defined if the header file was not found, in order
76619         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76620
76621 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76622
76623         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76624         initializers for struct pentry_state.
76625         (__argp_error): Check return value of __asprintf
76626         (__argp_failure): Translate error message
76627
76628         * lib/argp-parse.c: Removed braces around the expansion of N_()
76629
76630 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76633         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76634         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76635         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76636         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76637         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76638         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76639         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76640         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76641         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76642         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76643         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76644         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76645         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76646         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76647         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76648         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76649         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76650         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76651         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76652         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76653         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76654         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76655         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76656         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76657         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76658         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76659         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76660         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76661         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76662         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76663         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76664         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76665         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76666         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76667         Use an all-permissive copyright notice, recommended by RMS.
76668
76669 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * modules/chdir-long (Depends-on): Remove mempcpy.
76672
76673 2005-01-21  Jim Meyering  <jim@meyering.net>
76674
76675         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76676         same value as for Solaris 9.
76677
76678         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76679         component length.  This included changing the parameter to be
76680         of type `char *' rather than `char const *'.
76681         * lib/chdir-long.h (chdir_long): Update prototype.
76682
76683         * lib/openat.c (fdopendir, fstatat): New functions.
76684         * lib/openat.h: Include headers required for use of DIR and struct
76685         stat.
76686         [AT_SYMLINK_NOFOLLOW]: Define.
76687         (fdopendir, fstatat): Add prototypes.
76688
76689 2005-01-21  Bruno Haible  <bruno@clisp.org>
76690
76691         * modules/classpath: New file.
76692         * MODULES.html.sh (Java): Add classpath.
76693
76694 2005-01-21  Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/classpath.h: New file, from GNU gettext.
76697         * lib/classpath.c: New file, from GNU gettext.
76698
76699 2005-01-20  Simon Josefsson  <jas@extundo.com>
76700
76701         * modules/version-etc-fsf: New file.
76702
76703 2005-01-20  Simon Josefsson  <jas@extundo.com>
76704
76705         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76706         * lib/version-etc.c: Remove version_etc_copyright.
76707         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76708         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76709
76710 2005-01-20  Simon Josefsson  <jas@extundo.com>
76711
76712         * lib/base64.h (isbase64): Add.
76713
76714         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76715         using a unsigned prototype, don't inline.
76716         (base64_decode): Use it.
76717
76718 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76721         it.
76722
76723 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         * lib/save-cwd.c (save_cwd): Remove code to support the case
76726         where fchdir is missing or flaky.
76727
76728 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76731
76732 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76735         AC_LIBSOURCES now does this.
76736         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76737         with new ullong_max module.
76738
76739 2005-01-19  Bruno Haible  <bruno@clisp.org>
76740
76741         * modules/sh-quote: New file.
76742         * MODULES.html.sh (Executing programs): Add sh-quote.
76743
76744 2005-01-19  Bruno Haible  <bruno@clisp.org>
76745
76746         * lib/sh-quote.h: New file, from GNU gettext.
76747         * lib/sh-quote.c: New file, from GNU gettext.
76748
76749 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         Merge from coreutils.
76752         * m4/ullong_max.m4: New file.
76753         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76754         (gl_MACROS): Assume localeconv exists.
76755
76756 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76757
76758         Merge changes from coreutils, as described below in several
76759         changelogs dated today.
76760
76761         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76762         (O_DIRECTORY): Remove; not needed here, since "." must be
76763         a directory.  All uses removed.
76764         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76765         universal on Suns, and we also need to test for IRIX.
76766         Revamp code to use 'if' rather than '#if'.
76767         Avoid unnecessary comparison of cwd->desc to 0.
76768
76769         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76770         for known valid error numbers rather than observed invalid ones.
76771
76772 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * modules/ullong_max: New file.
76775
76776         * modules/chdir-long, modules/openat: New files.
76777         * modules/save-cwd (Depends-on): Depend on chdir-long.
76778         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76779
76780 2005-01-18  Jim Meyering  <jim@meyering.net>
76781
76782         Merge from coreutils.
76783         * m4/chdir-long.m4, m4/openat.m4: New files.
76784         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76785         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76786         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76787         is sane and DOES follow symlinks.  Besides, testing 20 different
76788         systems found no broken chown implementations.
76789         Prompted by a change in rsync's copy of this macro.
76790         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76791
76792         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76793
76794         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76795         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76796         NULL-means-set-to-current-time semantics.
76797         Remove temporary file immediately, rather than waiting
76798         for configure's at-exit trap code to do it.
76799
76800 2005-01-18  Jim Meyering  <jim@meyering.net>
76801
76802         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76803
76804         * lib/utimens.c (futimens): Account for the fact that futimes
76805         can also fail with errno == ENOSYS or errno == ENOENT.
76806         Patch from Dmitry V. Levin.
76807
76808         Change the name of the robust chdir function from chdir to chdir_long.
76809         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76810         (restore_cwd): Use chdir_long, not chdir.
76811         * lib/chdir-long.c: Renamed from chdir.c.
76812         * lib/chdir-long.h: Renamed from chdir.h.
76813         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76814         Hurd.
76815
76816 2005-01-18  Bruno Haible  <bruno@clisp.org>
76817
76818         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76819         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76820         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76821         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76822         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76823         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76824         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76825         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76826         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76827         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76828         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76829         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76830         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76831         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76832         Use an all-permissive copyright notice, recommended by RMS.
76833
76834 2005-01-18  Bob Proulx  <bob@proulx.com>
76835
76836         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76837         simplify offsetof() macro construct to avoid compile failure with
76838         native HP-UX 11.0 ANSI C compiler.
76839
76840 2005-01-17  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76843         redundant because stpncpy.m4 takes care of it.
76844
76845 2005-01-17  Bruno Haible  <bruno@clisp.org>
76846
76847         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76848
76849 2005-01-17  Bruno Haible  <bruno@clisp.org>
76850
76851         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76852         used.
76853
76854 2005-01-17  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/fwriteerror.h (fwriteerror): Change specification to include
76857         fclose.
76858         * lib/fwriteerror.c: Include <stdbool.h>.
76859         (fwriteerror): At the end, close the file stream. Record whether
76860         stdout was already closed.
76861
76862 2005-01-17  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/execute.c (environ): Declare if needed.
76865         * lib/pipe.c (environ): Likewise.
76866         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76867
76868 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76869
76870         * modules/argp: Depend on vsnprintf
76871
76872 2005-01-10  Jim Meyering  <jim@meyering.net>
76873
76874         * modules/closeout (Depends-on): Add atexit.
76875
76876 2005-01-06  Bruno Haible  <bruno@clisp.org>
76877
76878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76879
76880 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76883         definitions to be after all include files, to avoid collisions.
76884         Problem reported by Bob Proulx.
76885
76886 2005-01-04  Jim Meyering  <jim@meyering.net>
76887
76888         Changes imported from coreutils.
76889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76890         as the mkstemp template, use a temporary directory and an
76891         8.3-friendly template to avoid trouble on systems like DJGPP.
76892         Reported by Juan M. Guerrero via Stepan Kasal.
76893         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76894         close. Remove the temporary directory right away, rather than waiting
76895         for configure's at-exit trap code to do it.
76896         Suggestion from Stepan Kasal.
76897
76898 2005-01-01  Simon Josefsson  <jas@extundo.com>
76899
76900         * gnulib-tool: Print #include directives when --import'ing.
76901
76902 2004-12-28  Simon Josefsson  <jas@extundo.com>
76903
76904         * tests/test-base64.c: Include required header files.  Remove
76905         unused variables.
76906
76907 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * modules/error (Depends-on): Remove gettext.
76910
76911 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76912
76913         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76914         not needed.  This removes a dependency on the gettext module.
76915         [defined _LIBC]: Do not include <libintl.h>; not needed.
76916
76917 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76918
76919         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76920         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76921
76922 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76925         HAVE_DECL_STRTOLD.
76926
76927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * modules/getdate (Depends-on): Remove alloca-opt.
76930
76931 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76934
76935 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * lib/argp-parse.c: Include <stddef.h>.
76938         (alignof, alignto): New macros.
76939         (parser_init): Don't assume that void * is aligned sufficiently
76940         for struct option.
76941
76942         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76943         need to extend the stack.
76944         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76945         large.
76946
76947 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76948
76949         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76950
76951 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76954         (2004-10-24) change.  Apparently this was a false alarm.
76955
76956         * modules/getdate: Depend on alloca-opt, not alloca.
76957
76958 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76961         Remove now-obsolete comment about AIX.
76962         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76963         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76964         (YYMAXDEPTH): New macro.
76965
76966 2004-12-18  Simon Josefsson  <jas@extundo.com>
76967
76968         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76969
76970 2004-12-18  Bruno Haible  <bruno@clisp.org>
76971
76972         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76973
76974 2004-12-18  Bruno Haible  <bruno@clisp.org>
76975
76976         * lib/fatal-signal.c (fatal_signals): Make non-const.
76977         (init_fatal_signals): New function.
76978         (uninstall_handlers, install_handlers): Ignore signals that were set to
76979         SIG_IGN.
76980         (at_fatal_signal): Call init_fatal_signals.
76981         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76982         SIG_IGN.
76983         Reported by Paul Eggert.
76984
76985 2004-12-18  Bruno Haible  <bruno@clisp.org>
76986
76987         * doc/alloca.texi: New file.
76988         * doc/alloca-opt.texi: New file.
76989
76990 2004-12-17  Jim Meyering  <jim@meyering.net>
76991
76992         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76993         Otherwise, install-sh could exit with improper exit status when
76994         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76995
76996 2004-12-16  Simon Josefsson  <jas@extundo.com>
76997
76998         * tests/test-base64.c: Add license.
76999
77000 2004-12-15  Stepan Kasal  <address@hidden>
77001
77002         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77003
77004 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * modules/getcwd (Files): Add m4/d-ino.m4.
77007         Suggested by Mark D. Baushke.
77008
77009 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * lib/getdate.y (textint): New member "negative".
77012         (time_zone_hhmm): New function.
77013         Expect 14 shift-reduce conflicts, not 13.
77014         (o_colon_minutes): New rule.
77015         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77016         (yylex): Set the "negative" member of signed numbers.
77017
77018 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * doc/getdate.texi (Time of day items, Time zone items):
77021         Describe new formats +00:00, UTC+00:00.
77022
77023 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77026         spurious "-l"s.  Problem reported by Stepan Kasal.
77027
77028 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77031         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77032
77033 2004-12-04  Simon Josefsson  <jas@extundo.com>
77034
77035         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77036         Vandoorselaere <yoann@prelude-ids.org>.
77037
77038 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         Changes imported from coreutils.
77041         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77042         exist.
77043         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77044
77045 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         Changes imported from coreutils.
77048         * lib/hard-locale.c: Assume <locale.h> exists.
77049         Include "strdup.h".
77050         (GLIBC_VERSION): New macro.
77051         (hard_locale): Assume setlocale exists.
77052         Rewrite to avoid #ifdef.
77053         Use strdup rather than malloc + strcpy.
77054         * lib/human.c: Assume <locale.h> exists.
77055         (human_readable): Assume localeconv exists.
77056
77057 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * modules/hard-locale (Depends-on): Add strdup.
77060
77061 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77062
77063         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77064         convert T2, not T.  (Imported from libc.)
77065
77066 2004-11-30  Simon Josefsson  <jas@extundo.com>
77067
77068         * modules/restrict (License): Change to LGPL.
77069
77070 2004-11-30  Simon Josefsson  <jas@extundo.com>
77071
77072         * m4/restrict.m4: Add copyright and copying conditions.
77073
77074 2004-11-30  Simon Josefsson  <jas@extundo.com>
77075
77076         * m4/base64.m4: New file.
77077
77078 2004-11-30  Simon Josefsson  <jas@extundo.com>
77079
77080         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77081         base64.
77082
77083         * tests/test-base64.c: New file.
77084
77085         * modules/base64: New file.
77086
77087 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77090         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77091
77092         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77093
77094 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77097         (__getcwd.c): Don't restore errno; glibc doesn't.
77098         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77099         first, falling back to our code only if its results look suspicious.
77100         Ensure that the resulting buffer is only as large as necessary.
77101
77102         * lib/readutmp.c: Include readutmp.h first.
77103         Include <errno.h>, since readutmp.h no longer does that.
77104         * lib/readutmp.h: Don't include <errno.h>,
77105         <sys/param.h>, <time.h>; not needed to establish interface.
77106         (errno): Remove decl.
77107         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77108         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77109         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77110
77111 2004-11-28  Simon Josefsson  <jas@extundo.com>
77112
77113         * lib/base64.h, base64.c: New file.
77114
77115 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77118
77119 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77120
77121         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77122         (Depends-on): Remove pathmax, same.  Add mempcpy.
77123         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77124         (Makefile.am): Append getcwd.h to lib_SOURCES.
77125         (Include): Add getcwd.h.
77126         (Maintainer): Change from Jim Meyering to "all, glibc",
77127         since getdate now uses intended-for-glibc code.
77128         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77129         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77130
77131 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77134         HP's ANSI C compiler.
77135         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77136         Declaring int functions causes warnings on some modern systems and
77137         shouldn't be needed to compile on ancient ones.
77138         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77139         defined.
77140
77141         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77142         with the following changes.
77143         (__set_errno): Parenthesize properly.
77144         Include <stdbool.h>.
77145         (MIN, MAX, MATCHING_INO): New macros.
77146         (__getcwd): Define with prototype, not K&R form.
77147         Use heuristics to allocate default buffer on stack if possible.
77148         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77149         behavior, and to avoid the PATH_MAX limit when computing
77150         ../../../../...
77151         Use MATCHING_INO to compare inode number to file.
77152         Check for arithmetic overflow in size calculations.
77153         Fix bug in reallocation of dot array that caused getcwd to fail
77154         on directories nested deeper than 75.
77155         Be more careful about saving errno on error.
77156         Do not use realloc; use only free+malloc, as this is a bit
77157         more flexible and avoids a needless copy operation.
77158         Do not inspect st_dev and st_ino for symbolic links; POSIX
77159         doesn't specify the latter.
77160         Check for closedir errors.
77161         Avoid needless casts.
77162         Use "#ifdef weak_alias" around weak_alias, to be like other
77163         glibc code.
77164         The following changes to getcwd.c have effect only when used in
77165         gnulib; they have no effect inside glibc proper.
77166         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77167         as alloca isn't used.
77168         (alloca, __alloca): Likewise.
77169         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77170         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77171         unconditionally, as gnulib assumes C89 or better.
77172         Do not include <sys/param.h>.
77173         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77174         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77175         better.
77176         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77177         Include <dirent.h> in a way that is compatible with modern Autoconf.
77178         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77179         New macros, if not already defined.
77180         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77181         Use "_LIBC", not "defined _LIBC", for consistency.
77182         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77183         a mempcpy module.
77184         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77185         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77186         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77187         credit only to Jim Meyering and adjust the copyright dates.
77188         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77189         <stdlib.h>, <unistd.h>, "pathmax.h".
77190         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77191         (INITIAL_BUFFER_SIZE): Remove.
77192         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77193
77194 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77195
77196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77197         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77198         Use the _ONCE methods, for efficiency.
77199         Check for fcntl.h.  In test program, include <errno.h>
77200         and <fcntl.h> if available.  Remove old K&R cruft from
77201         test program.  Check for common errors in GNU/Linux,
77202         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77203         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77205         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77206         name accordingly.
77207         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77208         accommodate new getcwd.c.
77209         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77210         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77211         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77212         that's all we need now.
77213
77214 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77215
77216         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77217         argp-parse.c depends on getopt internals, that means we should
77218         always use our getopt, to be on the safe side.
77219         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77220         order not to spoil the result of an eventual previous invocation
77221         of gl_GETOPT_SUBSTITUTE.
77222
77223 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77224
77225         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77226         redefinition warnings. To avoid them, include the defines
77227         in `#if !defined __need_getopt ... #endif'. The only place
77228         where __getopt_argv_const is used is in definitions
77229         of getopt_long and getopt_long_only below, which are as well
77230         protected by `#ifndef __need_getopt'.
77231         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77232         __need_getopt after including <stdio.h> and <unistd.h> These
77233         headers might have defined it.
77234
77235 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77238
77239 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77240
77241         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77242         (futimens): New function, which uses futimes if available.
77243         (futimens, utimens): Support timespec==NULL, with same semantics
77244         as utime and utimens.
77245         * lib/utimens.h (futimens): New decl.
77246
77247 2004-11-23  Jim Meyering  <jim@meyering.net>
77248
77249         * lib/getopt_.h: Remove trailing blanks.
77250
77251 2004-11-23  Jim Meyering  <jim@meyering.net>
77252
77253         * lib/__fpending.c: Add comment.
77254
77255 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * modules/canonicalize (Depends-on): Add xreadlink.
77258         Problem reported by James Youngman.
77259
77260 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77263         New macros.
77264         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77265         optopt): Use them instead of invoking ## directly; otherwise, the
77266         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77267
77268 2004-11-19  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/strtok_r.c: Move comments from here...
77271         * lib/strtok_r.h: ... to here.
77272
77273 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77276         implementations that mishandle size_t overflow.
77277
77278 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77281         might fail.  Problem reported by Yoann Vandoorselaere.
77282         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77283         implementations that mishandle size_t overflow.
77284
77285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * modules/canon-host (Depends-on): Add strdup.
77288
77289 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77292
77293 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * lib/canon-host.c: Include "strdup.h".
77296         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77297         Use strdup instead of malloc/strcpy to duplicate strings.
77298
77299         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77300         (human_space_before_unit): New constant.
77301         * lib/human.c (human_readable): Support it.
77302
77303         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77304         (xgetcwd): Set errno correctly when failing.
77305         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77306         the failure is actually due to a PATH_MAX problem.
77307
77308         Further getopt changes to make it more likely that glibc will
77309         buy the changes back.
77310         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77311         (getopt): Use it, so to preserve glibc semantic
77312         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77313         when compiling for libc.
77314         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77315         (getopt_long, getopt_long_only): Use it.
77316
77317         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77318         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77319         (getopt): Argv is now char * const *, as per standard.
77320         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77321         not char *__getopt_argv_const *.
77322         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77323         _getopt_long_only_r): Likewise.
77324         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77325         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77326         _getopt_long_r, _getopt_long_only_r): Likewise.
77327         * lib/getopt_.h (__getopt_argv_const): Remove.
77328         (getopt): Argv is now char * const *, as per standard.
77329
77330         * lib/getdate.y (tORDINAL): New token.
77331         (day, relunit): Allow it for relative times.
77332         (relative_time_table): Use tORDINAL for ordinals.
77333
77334 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77337         Document that "second" isn't allowed as an ordinal number.
77338
77339 2004-11-16  Jim Meyering  <jim@meyering.net>
77340
77341         * modules/closeout (Depends-on): Add fpending.
77342
77343 2004-11-15  Jim Meyering  <jim@meyering.net>
77344
77345         * lib/closeout.c: Include "__fpending.h" once again.
77346         Include <stdbool.h>.
77347         (close_stdout): Don't fail just because stdout was closed initially,
77348         since some programs don't write to stdout in the normal course of
77349         operation (other than --version and --help), and we don't want this
77350         function to make e.g. `touch file >&-' fail.
77351         But do fail if it was closed and someone has tried to write to it.
77352         E.g., `printf foo >&-' must fail.
77353
77354 2004-11-13  Jim Meyering  <jim@meyering.net>
77355
77356         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77357
77358 2004-11-12  Simon Josefsson  <jas@extundo.com>
77359
77360         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77361         small doc fix is still pending.
77362
77363 2004-11-11  Simon Josefsson  <jas@extundo.com>
77364
77365         * modules/strtok_r: New file.
77366
77367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77368         strtok_r.
77369
77370 2004-11-11  Simon Josefsson  <jas@extundo.com>
77371
77372         * m4/strtok_r.m4: New file.
77373
77374         * m4/getopt.m4: Replace opterr.
77375
77376 2004-11-11  Simon Josefsson  <jas@extundo.com>
77377
77378         * lib/strtok_r.h, strtok_r.c: New file.
77379
77380 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77383         of replacing opterr, getopt, etc.  This should handle the
77384         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77385
77386 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77389         we can stop lying to compilers about the constness of argv when we
77390         are compiled outside glibc.
77391         (getopt, getopt_long, getopt_long_only): Use it.
77392         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77393         _getopt_internal, getopt): Likewise.
77394         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77395         _getopt_long_only_r): Likewise.
77396         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77397         _getopt_long_r, _getopt_long_only_r): Likewise.
77398
77399         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77400         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77401         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77402         the other external symbols.
77403         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77404         declaration, since the above renaming now works around collisions.
77405
77406 2004-11-11  Jim Meyering  <jim@meyering.net>
77407
77408         * lib/linebreak.c: Remove trailing blanks.
77409         * lib/alloca_.h: Likewise.
77410         * lib/acosl.c: Likewise.
77411         * lib/euidaccess.c: Likewise.
77412         * lib/allocsa.h: Likewise.
77413
77414 2004-11-10  Simon Josefsson  <jas@extundo.com>
77415
77416         * m4/getaddrinfo.m4: New file.
77417
77418 2004-11-10  Simon Josefsson  <jas@extundo.com>
77419
77420         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77421
77422 2004-11-10  Simon Josefsson  <jas@extundo.com>
77423
77424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77425         getaddrinfo.
77426
77427         * modules/getaddrinfo: New file.
77428
77429 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77432
77433 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * lib/mktime.c (SHR): New macro, which is a portable
77436         substitute for >> that should work even on Crays.
77437         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77438         Problem reported by Mark D. Baushke in
77439         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77440         * lib/getdate.y (SHR): Likewise.
77441         (tm_diff): Use it.
77442         * lib/strftime.c (SHR): Likewise.
77443         (tm_diff): Use it.
77444         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77445         quote_these_too, so that right shifts are well defined.  All uses
77446         changed.
77447
77448 2004-11-10  Jim Meyering  <jim@meyering.net>
77449
77450         Ensure that no close failure goes unreported.
77451         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77452         return early when it seems there's nothing to flush.
77453         Don't include __fpending.h.
77454
77455 2004-11-10  Jim Meyering  <jim@meyering.net>
77456
77457         * modules/closeout (Depends-on): Remove fpending.
77458
77459 2004-11-10  Jim Meyering  <jim@meyering.net>
77460
77461         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77462
77463 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77464
77465         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77466         gl_FUNC_STRFTIME.
77467         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77468         and AC_REQUIRE when possible, to avoid duplicate checks.
77469         Check for <wchar.h>.
77470
77471 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77474
77475 2004-11-09  Bruno Haible  <bruno@clisp.org>
77476
77477         * m4/sockpfaf.m4: New file.
77478
77479 2004-11-05  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77482         Reported by Mark D. Baushke <mdb@cvshome.org>.
77483
77484 2004-11-04  Bruno Haible  <bruno@clisp.org>
77485
77486         2004-09-11  Bruno Haible  <bruno@clisp.org>
77487                 * allocsa.valgrind: New file.
77488         2004-02-06  Bruno Haible  <bruno@clisp.org>
77489                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77490                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77491                 Reported by Christopher Seip <chris.seip@hp.com>.
77492
77493 2004-11-04  Bruno Haible  <bruno@clisp.org>
77494
77495         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77496         (Makefile.am): Distribute it.
77497
77498 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77499
77500         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77501         with errno == ERANGE if the buffer is too small.
77502         Problem reported by Mark D. Baushke.
77503
77504 2004-11-03  Albert Chin  <china@thewrittenword.com>
77505             Paul Eggert  <eggert@cs.ucla.edu>
77506
77507         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77508         equivalent, substitute $ac_type for equivalent type rather than
77509         blindly using uint32_t *always* which won't work if uint32_t is not
77510         available.  Define _UINT32_T to work around typedef of uint32_t if
77511         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77512         2.5.1.
77513
77514 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * m4/jm-macros.m4: Sync from coreutils.
77517         (gl_MACROS): Check for mbrlen, for pathchk.
77518         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77519
77520 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * lib/xreadlink.c (MAXSIZE): New macro.
77523         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77524         size does not exceed MAXSIZE.  Avoid cast.
77525         As suggested by Mark D. Baushke in
77526         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77527         if readlink fails with buffer size just under MAXSIZE, try again
77528         with MAXSIZE.
77529
77530 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77533
77534 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77535         and  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77538         (get_date): Overparenthesize to avoid GCC warning.
77539
77540 2004-11-02  Bruno Haible  <bruno@clisp.org>
77541
77542         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77543         returns void.
77544
77545 2004-11-02  Bruno Haible  <bruno@clisp.org>
77546
77547         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77548         function returns void.
77549
77550 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77553         fflush_unlocked, flockfile, funlockfile, funlockfile,
77554         fputs_unlocked, putc_unlocked.
77555
77556 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77559         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77560         already declared.
77561
77562 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * modules/getdate (Files): Add doc/getdate.texi.
77565         (Depends-on): Add setenv, xalloc.
77566
77567 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * lib/getdate.y: Add support for TZ="foo" within a date string.
77570         Fix some bugs near time_t boundaries.  Reject dates with
77571         out-of-range components, e.g., "Sept 31".
77572         Include <stdlib.h>, "setenv.h", "xalloc.h".
77573         (ISDIGIT_LOCALE): Remove; unused.
77574         Note that the TZ and time functions used here are not reentrant.
77575         (mktime_ok, get_tz): New functions.
77576         (TZBUFSIZE): New constant.
77577         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77578         This requires that we sometimes generate our own TZ="XXX..." setting.
77579
77580 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * doc/getdate.texi: New file, from coreutils with modifications for
77583         the new TZ parsing.
77584
77585 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77586
77587         * lib/mktime.c (not_equal_tm): Remove redundant check.
77588
77589 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * modules/regex (lib_SOURCES): Add regex.c.
77592         Reported by James Youngman in
77593         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77594
77595 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * lib/getdate.y: Use Bison 1.875 features, and some minor
77598         code cleanups.  This change does not affect semantics.
77599         Don't include <stdlib.h>; no longer needed.
77600         Don't include unlocked-io.h; only the "#if TEST" code uses
77601         stdio, and performance isn't crucial there.
77602         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77603         Bison 1.875 features as described below.
77604         All uses of "PC." replaced by "pc->".
77605         (YYSTYPE): Add a forward declaration.
77606         (yylex, yyerror): Use full prototypes in forward decls.
77607         Use "%pure-parser" rather than obsolescent "%pure_parser".
77608         Use %parse-param and %lex-param instead of obsolescent
77609         YYPARSE_PARAM and YYLEX_PARAM.
77610         (meridian_table, month_and_day_table, time_units_table,
77611         relative_time_table, time_zone_table, military_table,
77612         lookup_zone, lookup_word, get_date):
77613         Use NULL instead of 0 where appropriate.
77614         (to_hour): Avoid abort (), to avoid a dependency on
77615         stdlib.h.
77616         (yyerror, yylex): Now accepts parser_control * arg.
77617         (main) [TEST]: Use '\0' rather than 0 for char.
77618
77619 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77620
77621         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77622
77623 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77626         It's now the caller's responsibility to handle the case where
77627         !HAVE_GETPAGESIZE && !defined getpagesize.
77628
77629         * lib/mktime.c (leapyear): Arg is long int, not int.
77630
77631 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77634
77635 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77638         missing.  Problem reported by James Youngman.
77639
77640 2004-10-16  Simon Josefsson  <jas@extundo.com>
77641
77642         * gnulib-tool: Fix comments.  Fix parse problem.
77643         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77644
77645 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77648         implementation of getopt_long.  Problem reported by Alexander Taler in:
77649         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77650
77651 2004-10-15  Bruno Haible  <bruno@clisp.org>
77652
77653         * gnulib-tool: Untabify. Initialize supplied_libname.
77654         (func_usage): More homogenous output.
77655         (func_modules_transitive_closure, func_modules_to_filelist,
77656         func_emit_lib_Makefile_am): New functions.
77657         (func_import): New function, extracted from big case statement. Use
77658         func_get_license, func_modules_transitive_closure,
77659         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77660         opt_lgpl. Don't use test -a, as it's not portable.
77661         (func_create_testdir): Use func_modules_transitive_closure,
77662         func_modules_to_filelist, func_emit_lib_Makefile_am.
77663
77664 2004-10-15  Bruno Haible  <bruno@clisp.org>
77665
77666         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77667
77668 2004-10-15  Bruno Haible  <bruno@clisp.org>
77669
77670         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77671         the portions belonging to each module.
77672         Suggested by Derek Robert Price <derek@ximbiot.com>.
77673
77674 2004-10-12  Simon Josefsson  <jas@extundo.com>
77675
77676         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77677         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77678         to real functions.
77679
77680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77681
77682         * modules/vsnprintf: New file.
77683
77684 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77685
77686         * m4/vsnprintf.m4: New file.
77687
77688 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77689
77690         * lib/vsnprintf.h: New file.
77691         * lib/vsnprintf.c: New file.
77692
77693 2004-10-11  Bruno Haible  <bruno@clisp.org>
77694
77695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77696         vsnprintf.
77697
77698 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77701
77702 2004-10-07  Bruno Haible  <bruno@clisp.org>
77703
77704         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77705         fits into the provided buffer.
77706
77707 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * lib/diacrit.c, diacrit.h: Add GPL notice.
77710
77711         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77712         notice.
77713         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77714         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77715         This avoids a potential constant-folding bug.
77716
77717 2004-10-05  Bruno Haible  <bruno@clisp.org>
77718
77719         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77720         for the declaration of strsep.
77721
77722 2004-10-05  Bruno Haible  <bruno@clisp.org>
77723
77724         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77725
77726 2004-10-04  Simon Josefsson  <jas@extundo.com>
77727
77728         * modules/memmem: New file.
77729         * tests/test-memmem.c: New file.
77730         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77731
77732 2004-10-04  Simon Josefsson  <jas@extundo.com>
77733
77734         * m4/memmem.m4: New file.
77735
77736 2004-10-04  Simon Josefsson  <jas@extundo.com>
77737
77738         * lib/memmem.h: New file.
77739         * lib/memmem.c: New file, taken from glibc.
77740
77741 2004-10-04  Simon Josefsson  <jas@extundo.com>
77742
77743         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77744         '#ifdef USE_UNLOCKED_IO'.
77745
77746 2004-10-04  Simon Josefsson  <jas@extundo.com>
77747
77748         * config/srclist.txt: Add memmem from glibc.
77749
77750 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77753
77754         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77755         modules/exclude, modules/getdate, modules/getline,
77756         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77757         modules/getusershell, modules/linebuffer, modules/md5,
77758         modules/mountlist, modules/posixtm, modules/readtokens,
77759         modules/readutmp, modules/regex, modules/sha1,
77760         modules/version-etc, modules/yesno:
77761         Remove dependency on unlocked-io.
77762
77763 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77766
77767         * m4/unlocked-io.m4: Add copyright notice.
77768         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77769
77770 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77773         * lib/xmalloc.c (xmemdup): Likewise.
77774         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77775         XFREE): Remove these long-obsolescent macros.
77776         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77777         * lib/xstrdup.c: Remove.
77778
77779         * lib/regex.c (re_comp): Cast gettext return value to char *,
77780         Problem reported by Martin Neitzel via Mark D. Baushke.
77781
77782 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77785         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77786         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77787         regex.c, sha1.c, version-etc.c, yesno.c:
77788         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77789         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77790         the includer's responsibility.
77791
77792         Sync from coreutils.
77793
77794         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77795         points to the start of a string, as the C Standard says the
77796         resulting behavior is undefined.
77797
77798         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77799         simple -> simple_backups, numbered_existing ->
77800         numbered_existing_backups, numbered -> numbered_backups
77801         to avoid shadowing problems.  All uses changed.
77802         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77803         * lib/backupfile.c (check_extension, numbered_backup):
77804         Rename locals to avoid shadowing 'basename'.
77805         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77806         once.
77807
77808         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77809         * lib/.cvsignore: Add getopt.h.
77810
77811 2004-10-04  Bruno Haible  <bruno@clisp.org>
77812
77813         * modules/README: New file.
77814         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77815         not a module.
77816
77817 2004-10-02  Jim Meyering  <jim@meyering.net>
77818
77819         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77820
77821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77822
77823         * modules/strsep: New file.
77824
77825 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77826
77827         * m4/strsep.m4: New file.
77828
77829 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77830
77831         * lib/strsep.h: New file.
77832         * lib/strsep.c: New file.
77833
77834 2004-10-01  Simon Josefsson  <jas@extundo.com>
77835
77836         * lib/snprintf.c (snprintf): Handle size==0.
77837
77838 2004-10-01  Simon Josefsson  <jas@extundo.com>
77839             Bruno Haible  <bruno@clisp.org>
77840
77841         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77842         (snprintf): Declare 'args'.
77843
77844 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * lib/snprintf.c: Remove comments as to why each header is needed.
77847
77848 2004-10-01  Bruno Haible  <bruno@clisp.org>
77849
77850         * MODULES.html.sh: Add strsep.
77851
77852 2004-09-30  Simon Josefsson  <jas@extundo.com>
77853
77854         * modules/snprintf: New file.
77855
77856 2004-09-30  Simon Josefsson  <jas@extundo.com>
77857
77858         * m4/snprintf.m4: New file.
77859
77860 2004-09-30  Simon Josefsson  <jas@extundo.com>
77861
77862         * lib/snprintf.h, lib/snprintf.c: New files.
77863
77864 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77865
77866         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77867         (hol_entry_help): Never translate an empty string.
77868         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77869         * lib/argp.h (OPTION_NO_TRANS): New option.
77870
77871 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * modules/argp (Maintainer): Replace Simon Josefsson
77874         by Sergey Poznyakoff.
77875
77876 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77879         changes merged back into glibc.
77880
77881 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77884
77885 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77886
77887         * lib/xvasprintf.c: Include xalloc.h.
77888         (xvasprintf): Use xalloc_die, not xmalloc_die.
77889
77890 2004-09-29  Bruno Haible  <bruno@clisp.org>
77891
77892         * modules/alloca-opt: New file, derived from modules/alloca.
77893         * modules/allocsa: Depend on alloca-opt instead of alloca.
77894         * modules/setenv: Likewise.
77895         * modules/vasnprintf: Likewise.
77896         * MODULES.html.sh: Add alloca-opt.
77897
77898 2004-09-28  Simon Josefsson  <jas@extundo.com>
77899
77900         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77901         LGPL, and to replace license template from GPL to LGPL.
77902
77903 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77904
77905         * modules/dummy: Change license to LGPL.
77906
77907 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77910
77911 2004-09-24  Simon Josefsson  <jas@extundo.com>
77912
77913         * modules/minmax (License): Change from GPL to LGPL.
77914
77915 2004-09-23  Simon Josefsson  <jas@extundo.com>
77916
77917         * gnulib-tool (--import): Typo.
77918
77919 2004-09-23  Simon Josefsson  <jas@extundo.com>
77920
77921         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77922
77923 2004-09-22  Bruno Haible  <bruno@clisp.org>
77924
77925         * modules/*: Add 'License' field.
77926         * gnulib-tool: Accept --extract-license option.
77927         (func_get_license): New function.
77928
77929 2004-09-21  Bruno Haible  <bruno@clisp.org>
77930
77931         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77932         Reported by Simon Josefsson.
77933
77934 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77937         gl_AC_TYPE_LONG_LONG.
77938
77939 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77942
77943 2004-09-18  Simon Josefsson  <jas@extundo.com>
77944         and  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77947         calls with autoreconf.  Define GL_LIB.
77948
77949 2004-09-14  Karl Berry  <karl@gnu.org>
77950
77951         * config/srclist.txt: unsync setenv.c, sigh.
77952
77953 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77956         Problem reported by Bruno Haible in:
77957         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77958
77959 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * config/srclist.txt: Comment out argp-pvh.c.
77962
77963 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77964
77965         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77966         in case some system header has #define'd it.  Problem reported by
77967         Soeren D. Schulze in
77968         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77969
77970 2004-09-09  Karl Berry  <karl@gnu.org>
77971
77972         * regex.[ch]: delete from the root.  These were supposed to be
77973                 synced with emacs cvs, but this has not happened for about
77974                 a year, and anyway nothing else uses emacs regex.[ch].
77975                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77976                 lib/regex[.ch] is untouched.
77977
77978 2004-09-09  Bruno Haible  <bruno@clisp.org>
77979
77980         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77981
77982 2004-09-09  Bruno Haible  <bruno@clisp.org>
77983
77984         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77985         modifications.
77986         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77987
77988 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77989
77990         * modules/xvasprintf: New file.
77991         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77992
77993 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77994
77995         * lib/xvasprintf.h: New file.
77996         * lib/xvasprintf.c: New file.
77997         * lib/xasprintf.c: New file.
77998
77999 2004-09-08  Bruno Haible  <bruno@clisp.org>
78000
78001         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78002
78003 2004-09-08  Bruno Haible  <bruno@clisp.org>
78004
78005         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78006         length is > INT_MAX.
78007         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78008         more.
78009
78010 2004-09-08  Bruno Haible  <bruno@clisp.org>
78011
78012         * lib/stdint_.h: New file, taken from GNU clisp.
78013
78014 2004-09-08  Bruno Haible  <bruno@clisp.org>
78015             Oskar Liljeblad  <oskar@osk.mine.nu>
78016
78017         * modules/stdint: New file.
78018         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78019
78020 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         Import from coreutils.
78023         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78024         strings on unbounded length.  alloca's performance benefits aren't
78025         that important here.
78026         (V_STRDUP): Remove.
78027         (parse_with_separator): New function, with most of the internals
78028         of the old parse_user_spec.  Allow user to omit both user and group,
78029         for compatibility with FreeBSD.
78030         Clone only the user name, not the entire spec.
78031         Do not set *uid, *gid unless entirely successful.
78032         Avoid memory leak in some failing cases.
78033         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78034         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78035         (parse_user_spec): Rewrite to use parse_with_separator.
78036
78037 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         * modules/userspec: Don't depend on alloca.
78040
78041 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78044
78045 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78048         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78049         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78050
78051 2004-08-16  Simon Josefsson  <jas@extundo.com>
78052
78053         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78054         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78055         Add --dry-run for --import.
78056         Let user provided command line parameters override configure.ac
78057         settings.
78058
78059 2004-08-12  Simon Josefsson  <jas@extundo.com>
78060
78061         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78062         as discussed with Paul Eggert in threads rooted at
78063         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78064         and
78065         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78066         Before, the test was empty, and relied on ELIDE_CODE in source
78067         code.)
78068         (gl_PREREQ_GETOPT): New macro.
78069         (gl_GETOPT): Use them.
78070
78071 2004-08-12  Simon Josefsson  <jas@extundo.com>
78072
78073         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78074         * lib/getopt_.h: Renamed from getopt.h.
78075
78076 2004-08-12  Simon Josefsson  <jas@extundo.com>
78077
78078         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78079         Change default library name from libfoo to libgnu.
78080         Now, if you have a configure.ac that says:
78081                 gl_SOURCE_BASE(gl)
78082                 gl_M4_BASE(gl/m4)
78083                 gl_MODULES(error getopt etcetera)
78084                 gl_INIT
78085         you can import all you need by running:
78086                 ../gnulib/gnulib-tool --import
78087
78088         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78089         (Makefile.am): Rewrite, use logic from argz.
78090         (Include): Use <getopt.h> instead of "getopt.h".
78091
78092 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * modules/argp (Files): Add m4/unlocked-io.m4.
78095         (Depends-on): Add extensions.
78096
78097 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78100         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78101         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78102         Check for program_invocation_name, program_invocation_short_name,
78103         flockfile, funlockfile, features.h, _getopt_long_only_r.
78104
78105 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78108         its complicated substitute.
78109         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78110         and program_invocation_name.
78111         (__argp_basename) [!_LIBC]: Remove; the only use was
78112         replaced by its body.
78113         (__argp_short_program_name): Change condition from
78114         !defined __argp_short_program_name to
78115         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78116         to match argp-namefrob.h.
78117         (__argp_failure): Don't assume strerror_r returns char *.
78118         * lib/argp-parse.c (N_): Define unconditionally.
78119         (argp_default_options): Fill out initializers with 0 to avoid
78120         gcc warnings.
78121
78122 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78125         getopt1.c.
78126
78127 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         Merge from coreutils.
78130
78131         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78132
78133         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78134         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78135
78136 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         Merge from coreutils.
78139
78140         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78141         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78142         for Reliant Unix 5.43.
78143
78144         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78145         (union fooround): Use uintmax_t, not long int.
78146         The rest is a merge from libc:
78147         [defined _LIBC]: Include <shlib-compat.h>.
78148         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78149
78150         * lib/settime.c (settime): Recode to avoid warning with
78151         Sun Forte C 6U2.
78152
78153         * lib/strverscmp.c: Convert to UTF-8.
78154
78155 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78158         m4/uintmax_t.m4.
78159
78160 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * modules/xalloc-die: New file.
78163         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78164
78165         * modules/md5 (Files): Add m4/uint32_t.m4.
78166         * modules/sha1: Renamed from modules/sha.
78167         (Files):
78168         Rename lib/sha.h to lib/sha1.h.
78169         Rename lib/sha.c to lib/sha1.c.
78170         Rename m4/sha.m4 to m4/sha1.m4.
78171         (lib_SOURCES): Likewise.
78172         (configure.ac): Rename gl_SHA to gl_SHA1.
78173         (Include): sha.h -> sha1.h.
78174
78175 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78178         * m4/sha1.m4: Renamed from sha.m4.
78179         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78180
78181 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * lib/obstack.h (obstack_empty_p):
78184         Don't assume that chunk->contents is suitably aligned.
78185         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78186         Likewise. Problem reported by Benno in
78187         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78188
78189         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78190         readable.  This could be improved further but it'd take some work.
78191
78192 2004-08-08  Simon Josefsson  <jas@extundo.com>
78193
78194         * modules/xgethostname (Depends-on): Remove exit and error (not
78195         used).
78196
78197         * modules/getpass-gnu: Add getpass.h.
78198         (Depends-on): Add stdbool.
78199         * modules/getpass: Add getpass.h.
78200
78201 2004-08-08  Simon Josefsson  <jas@extundo.com>
78202
78203         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78204         Check getpass declaration.
78205
78206 2004-08-08  Simon Josefsson  <jas@extundo.com>
78207
78208         * lib/xgethostname.c: Don't include error.h (not used).
78209
78210         * lib/getpass.h: Add.
78211         * lib/getpass.c: Include getpass.h first.
78212
78213 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * lib/xalloc-die.c: New file.
78216         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78217         All uses removed.
78218         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78219         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78220         xalloc-die.c.
78221         (_, N_, xalloc_die): Move to xalloc-die.c.
78222         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78223         so that we needn't mess with xalloc_msg_memory_exhausted.
78224
78225         * lib/sha1.h: Renamed from sha.h.
78226         (SHA1_H): Renamed from _SHA_H.
78227         (sha1_ctx): Renamed from sha_ctx.
78228         (sha1_init_ctx): Renamed from sha_init_ctx.
78229         (sha1_process_block): Renamed from sha_process_block.
78230         (sha1_process_bytes): Renamed from sha_process_bytes.
78231         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78232         (sha1_read_ctx): Renamed from sha_read_ctx.
78233         (sha1_stream): Renamed from sha_stream.
78234         (sha1_buffer): Renamed from sha_buffer.
78235         * lib/sha1.c: Likewise; renamed from sha.c.
78236         Do not include <sys/types.h>.
78237         Include <stddef.h> rather than <stdlib.h>.
78238
78239 2004-08-08  Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78242         FILESYSTEM_PREFIX_LEN.
78243         * lib/progreloc.c: Likewise.
78244         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78245
78246 2004-08-06  Simon Josefsson  <jas@extundo.com>
78247
78248         * modules/progname (Depends-on): Don't depend on stdbool.
78249
78250 2004-08-06  Simon Josefsson  <jas@extundo.com>
78251
78252         * modules/getsubopt: New file.
78253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78254         getsubopt.
78255
78256 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         More merge from coreutils.
78259
78260         * m4/utimens.m4, m4/utimecmp.m4: New files.
78261         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78262         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78263         prereq.m4, sha.m4: Import changes from coreutils.
78264
78265 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78266
78267         More merge from coreutils.
78268         * modules/raise, modules/readtokens0, modules/utimens:
78269         * modules/utimecmp, module/xnanosleep: New files.
78270         * modules/strftime: Add lib/strftime.h.
78271         Change include from <time.h> to "strftime.h".
78272         * modules/yesno: Add lib/yesno.h.
78273         * modules/backupfile: Remove lib/addext.c.
78274         * modules/euidaccess: Add stat-macros.h.
78275         * modules/canonicalize, modules/euidaccess,
78276         modules/filemode, modules/lchown, modules/makepath,
78277         modules/rmdir, modules/stat: Likewise.
78278
78279 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         Merge from tar.
78282         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78283         SIZE_MAX is a valid preprocessor constant.
78284         (__argp_basename): Change from "#ifndef _LIBC"
78285         to "#ifndef __argp_short_program_name", so that
78286         we don't compile these functions for tar.
78287
78288         More merges from coreutils.
78289         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78290         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78291         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78292         * lib/addext.c: Remove; no longer needed.
78293         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78294         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78295         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78296         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78297         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78298         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78299         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78300         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78301         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78302         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78303         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78304         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78305         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78306         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78307         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78308         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78309         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78310         Import changes from coreutils.
78311
78312 2004-08-05  Simon Josefsson  <jas@extundo.com>
78313
78314         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78315
78316 2004-08-05  Simon Josefsson  <jas@extundo.com>
78317
78318         * m4/getsubopt.m4: New file.
78319
78320 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78321
78322         Merge from coreutils.
78323
78324         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78325         * m4/getcwd-path-max.m4: New files.
78326
78327         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78328         FILESYSTEM_PREFIX_LEN ->
78329         FILE_SYSTEM_PREFIX_LEN.
78330         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78331         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78332         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78333         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78334
78335         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78336         prerequisite modules now handle the DOS stuff.
78337         Don't check for unistd.h.
78338
78339 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78340
78341         Merge from coreutils.
78342
78343         * lib/.gdb-history: Remove; this doesn't belong here.
78344
78345         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78346         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78347         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78348         * lib/getcwd.c: New files.
78349
78350         * lib/dirname.h: Include <stdbool.h>.
78351         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78352         for consistency with POSIX terminology.  All uses changed.
78353         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78354         (strip_trailing_slashes): Use bool for booleans.
78355         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78356
78357         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78358         sometimes returns a positive errno value even when it succeeds.
78359         (print_errno_message) [!LIBC]: Fall back on strerror if
78360         __strerror_r fails.
78361
78362         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78363         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78364         (longest_relative_suffix): New function.
78365         (path_concat): Use it.  Assume first argument is not NULL.
78366         Port to DOS.  Omit redundant separators.
78367         Report an error instead of returning NULL.
78368         Use mempcpy instead of memcpy.
78369         (xpath_concat): Remove: not declared or used.
78370
78371         * lib/same.h: Include <stdbool.h>
78372         (same_name): Return bool, not int.
78373         * lib/same.c (same_name): Likewise.
78374         (errno): Don't declare; we assume C89 or better now.
78375
78376         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78377         if not already defined.
78378
78379         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78380         * lib/dup-safer.c (errno): Likewise.
78381
78382 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         Merge from coreutils.
78385         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78386         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78387         * modules/path-concat: Don't depend on strdup.
78388
78389 2004-08-03  Simon Josefsson  <jas@extundo.com>
78390
78391         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78392         * lib/progname.h: Don't include stdbool.h.
78393
78394 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78397         * MODULES.html.sh (func_all_modules): Remove fatal.
78398
78399 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78402
78403 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78406         working.
78407
78408 2004-08-02  Simon Josefsson  <jas@extundo.com>
78409
78410         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78411         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78412         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78413
78414 2004-08-01  Simon Josefsson  <jas@extundo.com>
78415
78416         * lib/xgetdomainname.c: Include stdlib.h, for free().
78417
78418 2004-07-19  Bruno Haible  <bruno@clisp.org>
78419
78420         * MODULES.html.sh (func_all_modules): Add dummy.
78421
78422 2004-07-16  Simon Josefsson  <jas@extundo.com>
78423
78424         * modules/dummy: New file.
78425
78426 2004-07-16  Simon Josefsson  <jas@extundo.com>
78427
78428         * lib/dummy.c: New file.
78429
78430 2004-07-16  Bruno Haible  <bruno@clisp.org>
78431
78432         * lib/backupfile.h: Add extern "C" for C++.
78433         * lib/closeout.h: Likewise.
78434         * lib/copy-file.h: Likewise.
78435         * lib/findprog.h: Likewise.
78436         * lib/full-write.h: Likewise.
78437         * lib/pathname.h: Likewise.
78438         * lib/progname.h: Likewise.
78439         * lib/stpcpy.h: Likewise.
78440         * lib/stpncpy.h: Likewise.
78441         * lib/strcase.h: Likewise.
78442         * lib/strstr.h: Likewise.
78443         * lib/xalloc.h: Likewise.
78444
78445         * lib/mbswidth.h: Add extern "C" for C++.
78446         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78447
78448 2004-07-13  Robert Millan  <robertmh@gnu.org>
78449
78450         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78451
78452 2004-07-09  Simon Josefsson  <jas@extundo.com>
78453
78454         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78455         failed without this.)
78456
78457 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * modules/chown (Files): Add lib/fchown-stub.c, since
78460         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78461
78462 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * lib/fchown-stub.c: New file.
78465
78466 2004-06-24  Jim Meyering  <jim@meyering.net>
78467
78468         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78469
78470 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * modules/argz: Omit "#include".
78473
78474         * MODULES.html.sh (func_all_modules): Add calloc, to match
78475         2004-06-01 addition of calloc module.
78476
78477 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * m4/argz.m4: New file, which is autoupdated from libtool.
78480
78481 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78484         libtool.
78485
78486 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * config/srclist-update: Don't insist on "USA." before the
78489         close-comment, as libtool omits the period and puts the */ on a
78490         separate line.
78491         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78492         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78493
78494 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78495
78496         * modules/argz: New file.
78497         * MODULES.html.sh (func_all_modules): Add argz.
78498
78499 2004-06-12  Jim Meyering  <jim@meyering.net>
78500         and  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * modules/hash (Files): Add lib/xalloc.h.
78503         * modules/pipe (Depends-on): Add wait-process.
78504         * modules/stat (Depends-on): Add xalloc.
78505         * modules/userspec (Files): Add lib/userspec.h.
78506         * modules/xstrto
78507
78508         Upgrade from gettext-0.13.
78509         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78510         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78511         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78512
78513 2004-06-10  Jim Meyering  <jim@meyering.net>
78514
78515         * lib/calloc.c: New file.
78516
78517 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * lib/getdate.y (yylex): Allow space between sign and number.
78520         Problem reported by Dan Jacobson.
78521
78522 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         Merge from coreutils CVS.
78525
78526         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78527         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78528         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78529         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78530         xstrtol.m4: Fix copyright date and/or serial number.
78531
78532         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78533         See if we need an fchown replacement.
78534         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78535         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78536         and use the replacement function if we detect either defect.
78537
78538         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78539         gl_UTIMECMP.
78540
78541 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78542         and  Jim Meyering  <jim@meyering.net>
78543
78544         Merge from coreutils CVS.
78545
78546         * lib/stat-macros.h: New file, with contents from file-type.h
78547         and coreutils' system.h.
78548         * lib/file-type.c: Include "stat-macros.h".
78549         * lib/file-type.h (file_type): Move all macro definitions to new file,
78550         stat-macros.h.
78551
78552         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78553         Wrap old code with this conditional.
78554         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78555         function that does not dereference symlinks.
78556         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78557
78558         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78559         dependency problems.
78560         (xreadlink): Accept new arg SIZE, for efficiency.
78561         All decls and uses changed.
78562         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78563
78564         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78565         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78566
78567         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78568         sysexits.h.
78569
78570 2004-06-01  Jim Meyering  <jim@meyering.net>
78571
78572         * m4/calloc.m4: New file.
78573
78574 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78577         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78578         Also, fix a typo in a diagnostic.
78579
78580 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78583         or AC_FUNC_REALLOC.
78584
78585 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78588         macros to be defined.
78589         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78590         the allocator returns NULL because the requested size is zero.
78591
78592 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78595         var.  Add comment explaining why libc still defines it.  This
78596         merges the following patch from glibc:
78597         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78598
78599 2004-05-20  Andreas Schwab  <schwab@suse.de>
78600
78601         * m4/free.m4: Replace free if it not known to work, not the other
78602         way round.
78603
78604 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78607         present in glibc since revision 1.1 of this file.
78608         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78609         obstack_alignment_mask, obstack_alloc, obstack_base,
78610         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78611         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78612         obstack_grow0, obstack_init, obstack_int_grow,
78613         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78614         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78615         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78616         nonexistent functions.
78617
78618 2004-05-18  Karl Berry  <karl@gnu.org>
78619
78620         * config/srclist.txt: break link for vasnprintf.c.
78621
78622 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         Port obstack to the AS/400, where pointers are 16 bytes wide and
78625         you cannot cast an integer to a valid pointer.  This patch is
78626         currently waiting to be integrated into glibc; see
78627         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78628
78629         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78630         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78631         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78632         (struct obstack): temp member is now a union of a pointer and
78633         an integer, instead of an integer.  All integer uses changed.
78634         This does not affect the physical layout of struct obstack,
78635         except on hosts (like the AS/400) where the size or alignment of
78636         void * is greater than that of ptrdiff_t.
78637         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78638         __STDC__)]: Store temporary in pointer member of union, not
78639         integer member.
78640         * lib/obstack.c: Include <stddef.h>, for offsetof.
78641         (struct fooalign): Remove; it doesn't need a name.
78642         (union fooround): Change double to long double, and add void *.
78643         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78644         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78645         not a macro.  Hence the values are always int; so remove all
78646         casts-to-int in uses.
78647
78648 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78651         we can get this patch merged into glibc.
78652
78653 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78654             Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * m4/argp: Depend on alloca.
78657
78658 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78659             Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78662         freecoding.
78663
78664 2004-05-17  Bruno Haible  <bruno@clisp.org>
78665
78666         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78667         precision that consists of a '.' followed by an empty digit string.
78668         Patch by Tor Lillqvist <tml@iki.fi>.
78669
78670 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78673         for backward compatibility with older code.  We need our own
78674         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78675         it under some other name, and our alloca.h will define it.
78676
78677 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78678             Derek Price  <derek@ximbiot.com>
78679
78680         * lib/alloca.c: Include <alloca.h>, to get our interface.
78681         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78682         include <alloca.h> first.  Use C89 prototype for alloca; this
78683         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78684         Use #elif for simplicity, since we can assume C89 now.
78685         Don't try to source the system alloca.h since it will not be found
78686         and to prevent recursively including its replacement.
78687         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78688         * lib/regex.c: Likewise.
78689
78690 2004-05-16  Derek Price  <derek@ximbiot.com>
78691             Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         getline cleanup.  This changes the getndelim2 API: both order of
78694         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78695         no delimiter).
78696
78697         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78698         interface does that.
78699         (getline): Always use getdelim, so that we don't have two
78700         copies of this code.
78701         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78702         if available.
78703         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78704         (GETNDELIM2_MAXIMUM): New macro.
78705         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78706         instead of the old practice of delim2==0.  All callers changed.
78707         Return -1 on overflow, instead of returning junk.
78708         Do not set *linesize unless allocation succeeds.
78709         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78710         that we include sys/types.h.
78711         * lib/getnline.h: Likewise.
78712         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78713         (getndelim2): Reorder arguments.
78714         * lib/getnline.c (getnline, getndelim):
78715         Don't discard the NMAX argument.
78716         (getnline): Invoke getndelim, to avoid code duplication.
78717         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78718         of (size_t) -1 by callers of the getnline family.
78719
78720 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78723         Check for gettimeofday.
78724         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78725         Check for settimeofday, stime.
78726
78727 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * lib/nanosleep.c (suspended): Change its type from int to
78730         sig_atomic_t volatile.
78731         (first_call): Make it private to rpl_nanosleep, and have it
78732         be zero initially as that's a bit faster.
78733         (my_usleep): Round up fractional times instead of truncating them,
78734         as this is the usual meaning for 'sleep'.
78735
78736         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78737         doesn't work.
78738         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78739         (ENOSYS): Define if not defined.
78740         (settime): Fall back on stime if it exists and settimeofday fails.
78741         But don't bother with fallbacks if a method fails with errno == EPERM.
78742
78743 2004-05-11  Jim Meyering  <jim@meyering.net>
78744
78745         Prior to this change, the save_cwd caller required read access to the
78746         current directory on most systems (ones with the fchdir function).
78747
78748         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78749         fails, try write-only, and finally, resort to using xgetcwd.
78750
78751 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * lib/obstack.c, obstack.h: Import changes from libc.
78754
78755 2004-04-28  Bruno Haible  <bruno@clisp.org>
78756
78757         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78758         also implicitly appends .exe to executables.
78759         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78760         accepts Windows pathnames.
78761         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78762         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78763         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78764         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78765         Reported by Derek Robert Price <derek@ximbiot.com>.
78766
78767 2004-04-21  Karl Berry  <karl@gnu.org>
78768
78769         * config/srclist.txt (localcharset.c): break sync.
78770
78771 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78772
78773         * m4/host-os.m4: Add a copyright notice.
78774
78775 2004-04-20  Jim Meyering  <jim@meyering.net>
78776
78777         Change UTILS_ to gl_ in AC_DEFINE'd names.
78778         Change utils_- and jm_-prefixed variables, too.
78779         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78780         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78782
78783         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78784         Don't emit trailing blanks.
78785         Also rename jm_-prefixed variables to have gl_ prefix.
78786
78787         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78788         Also rename jm_-prefixed variables to have gl_ prefix.
78789
78790         * m4/jm-macros.m4: Reflect the renamings.
78791         * m4/prereq.m4: Likewise.
78792
78793 2004-04-20  Jim Meyering  <jim@meyering.net>
78794
78795         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78796         memory.
78797
78798 2004-04-20  Jim Meyering  <jim@meyering.net>
78799             Bruno Haible  <bruno@clisp.org>
78800
78801         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78802         memory when realloc fails.
78803
78804 2004-04-19  Jim Meyering  <jim@meyering.net>
78805
78806         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78807         now that readutmp.c may call `free (0)'.
78808
78809 2004-04-19  Bruno Haible  <bruno@clisp.org>
78810
78811         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78812         * m4/inttypes_h.m4: Likewise.
78813         * m4/stdint_h.m4: Likewise.
78814         * m4/intmax_t.m4: Likewise.
78815         * m4/uintmax_t.m4: Likewise.
78816
78817 2004-04-18  Jim Meyering  <jim@meyering.net>
78818
78819         * m4/prereq.m4: Don't forbid jm_ prefix.
78820
78821         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78822         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78823         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78824         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78825         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78826         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78827         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78828         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78829         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78830         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78831         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78832         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78833         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78834         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78835         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78836         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78837         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78838         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78839         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78840
78841 2004-04-18  Jim Meyering  <jim@meyering.net>
78842
78843         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78844         failure, don't leak memory and do call END_UTMP_ENT.
78845
78846 2004-04-16  Jim Meyering  <jim@meyering.net>
78847
78848         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78849         coreutils' stat program.
78850         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78851
78852 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78853
78854         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78855         C89.
78856         (CHAR_BIT): Remove, since we assume C89.
78857         Include <stdint.h> if available, as per current Autoconf CVS advice.
78858
78859 2004-03-31  Jim Meyering  <jim@meyering.net>
78860
78861         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78862         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78863         * m4/xalloc.m4: Likewise.
78864
78865 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78866
78867         Merge from coreutils.
78868
78869         * m4/inttostr.m4: New file.
78870         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78871         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78872         Require gl_CLOCK_TIME.
78873         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78874
78875 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78876
78877         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78878         not bool, to be more consistent with Unix conventions.
78879         Suggested by Bruno Haible.
78880
78881         Merge from coreutils.
78882
78883         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78884         * lib/umaxtostr.c: New files.
78885
78886         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78887         the usual <time.h> dance.
78888         (get_date): Change signature to support fractional time stamps.
78889         All callers changed.
78890         * lib/getdate.y: Include "getdate.h" first, as we can now
78891         assume C89 and don't need to worry about 'const'.
78892         Similarly, include "unlocked-io.h" near start, not in middle.
78893         Include <limits.h>.
78894         (textint.value): Use long int rather than int.
78895         (textint.digits): Use size_t rather than int.
78896         (BILLION, LOG10_BILLION): New constants.
78897         (parser_control): New member rel_ns.  Members day_ordinal,
78898         time_zone, month, day, hour, minutes, rel_year, rel_month,
78899         rel_day, rel_hour, rel_minutes, rel_seconds
78900         are now long int, not int.  Member seconds is now struct timespec,
78901         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78902         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78903         not int.
78904         (%union.intval): Now long int, not int.
78905         New member timespec.
78906         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78907         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78908         (spec): Now is a timespec or an item list.
78909         (timespec, items): New nonterminals.
78910         (time, rel, relunit, number, get_date):
78911         Add support for fractional seconds.
78912         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78913         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78914         (to_hour): First arg is now long int, not int.
78915         (to_year): Returns long int, not int.
78916         Don't treat year -70 like 70.
78917         (tm_diff): Returns long int, not int.
78918         (lookup_word): Use bool instead of int when appropriate.
78919         (yylex): Use size_t for count, not int.
78920         Detect overflow when parsing large integer constants.
78921         Add support for fractions.
78922         (get_date): Make pointers 'const' if possible.
78923         Use more-portable code to detect integer overflow.
78924         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78925         Don't use ctime; it's not reliable if the year has >4 digits.
78926
78927         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78928         This is for compatibility with BSD.
78929
78930         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78931         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78932         From coreutils' system.h.
78933
78934         * lib/userspec.c: Don't include "posixver.h".
78935         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78936         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78937         compatible extension.  Simplify code by removing a boolean int
78938         that was always nonzero if a string was nonnull.
78939
78940 2004-03-30  Jim Meyering  <jim@meyering.net>
78941
78942         Merge from coreutils.
78943
78944         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78945         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78946         on some systems one must include <grp.h> before it.
78947         Reported by Christian Krackowizer.
78948
78949 2004-03-30  Jim Meyering  <jim@meyering.net>
78950
78951         Merge from coreutils.
78952
78953         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78954
78955         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78956         an empty input stream.
78957
78958         * lib/readtokens.c: Include <stdbool.h>.
78959         (readtoken): Use `size_t' rather than int/long.
78960         All callers adjusted.
78961         Use `bool' rather than `int' where appropriate.
78962         Use memset rather than an explicit loop.
78963         Use x2nrealloc rather than xrealloc.
78964         Allow the use of `\0' as a delimiter.
78965         (readtokens): Likewise.
78966         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78967
78968 2004-03-30  Jim Meyering  <jim@meyering.net>
78969
78970         * m4/realloc.m4: Remove file, since now it does no more than
78971         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78972         the `configure.ac' section of module/realloc.
78973         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78974
78975 2004-03-30  Bruno Haible  <bruno@clisp.org>
78976
78977         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78978         nonnull.
78979
78980 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78981
78982         Merge changes to getloadavg.c from coreutils and Emacs.
78983
78984         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78985         Define to an expression, not to the empty string.
78986         Include cloexec.h and xalloc.h.
78987         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78988         Use set_cloexec_flag rather than rolling our own.
78989         * lib/cloexec.c, lib/cloexec.h: New files.
78990
78991 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78992
78993         * m4/cloexec.m4: New file.
78994
78995 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78996
78997         * lib/getopt.h: Sync with libc CVS.
78998
78999 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79000             Bruno Haible  <bruno@clisp.org>
79001
79002         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79003         mbswidth.
79004
79005 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79006             Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/mbswidth.h: Include <wchar.h> only if
79009         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79010         <wchar.h>.
79011         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79012
79013 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79014
79015         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79016         Sync with libc CVS.
79017         * lib/getopt_int.h: New file, also synced from libc.
79018
79019 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79020
79021         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79022         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79023         Bring back getopt.c, getopt.h, getopt1.c.
79024
79025 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79026
79027         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79028         All uses changed.  Check for sa_sigaction member; this fixes
79029         a bug first reported by Jason Andrade in
79030         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79031
79032 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79033
79034         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79035         '#if' expressions.  Unlike the code it replaces, it does not
79036         depend on (defined _SC_PAGESIZE).  However, it does depend on
79037         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79038         first reported by Jason Andrade in
79039         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79040
79041 2004-02-25  Simon Josefsson  <jas@extundo.com>
79042
79043         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79044
79045 2004-02-25  Simon Josefsson  <jas@extundo.com>
79046
79047         * lib/strdup.h: New file.
79048         * lib/strdup.c: Include it.
79049         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79050         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79051
79052 2004-02-23  Karl Berry  <karl@gnu.org>
79053
79054         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79055         (from fencepost.gnu.org:/gd/gnuorg).
79056
79057 2004-02-23  Karl Berry  <karl@gnu.org>
79058
79059         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79060         * config/srclist.txt: add maintain/standards documents.
79061
79062 2004-02-18  Bruno Haible  <bruno@clisp.org>
79063
79064         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79065         Reported by Derek Robert Price <derek@ximbiot.com>.
79066
79067 2004-02-16  Karl Berry  <karl@gnu.org>
79068
79069         * config/mkinstalldirs, install-sh: update from automake.
79070
79071 2004-02-06  Karl Berry  <karl@gnu.org>
79072
79073         * m4/po.m4: update from gettext 0.14.1.
79074
79075 2004-02-06  Karl Berry  <karl@gnu.org>
79076
79077         * lib/config.charset: update from gettext 0.14.1.
79078
79079 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79080
79081         Add comments and code, prompted by suggestions from Bruno Haible
79082         for sh-quote.
79083         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79084         describing the enum quoting_style values.
79085         * lib/quotearg.c (quotearg_alloc): New function.
79086         (quotearg_buffer_restyled): Treat lone { and } as special.
79087         Treat = as special.  Work around bug with older shells
79088         that "see" a '\' that is really the 2nd byte of a multibyte char.
79089         Quote empty string with shell_quoting_style.
79090
79091 2004-02-03  Bruno Haible  <bruno@clisp.org>
79092
79093         * m4/pipe.m4: New file, from GNU gettext.
79094
79095 2004-02-03  Bruno Haible  <bruno@clisp.org>
79096
79097         * lib/pipe.h: New file, from GNU gettext.
79098         * lib/pipe.c: New file, from GNU gettext.
79099
79100 2004-01-27  Bruno Haible  <bruno@clisp.org>
79101
79102         * m4/execute.m4: New file, from GNU gettext.
79103
79104 2004-01-27  Bruno Haible  <bruno@clisp.org>
79105
79106         * lib/execute.h: New file, from GNU gettext.
79107         * lib/execute.c: New file, from GNU gettext.
79108         * lib/w32spawn.h: New file, from GNU gettext.
79109
79110 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79111
79112         Merge from diffutils.
79113
79114         * lib/file-type.c (file_type): Add typed memory objects.
79115         * lib/file-type.h (S_TYPEISTMO): New macro.
79116
79117         * lib/c-stack.h (c_stack_action): Remove argv argument.
79118         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79119         (die): Don't calculate message unless segv_action returns.
79120         (get_stack_location, min_address_from_argv, max_address_from_argv,
79121         volatile stack_base, volatile_stack_size): Remove.
79122         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79123         that every segmentation violation is a stack overflow.  (Ouch!)
79124         See Debian bug 136249 (still outstanding) for more info about why
79125         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79126
79127 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79128
79129         Exit-status fix from coreutils.
79130
79131         Use exit_failure consistently in place of EXIT_FAILURE,
79132         so that program exit statuses are consistent on failure.
79133
79134         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79135         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79136         * lib/argmatch.h: Comment fix to match the above.
79137         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79138         Now a macro referring to exit_failure, instead of a separate
79139         variable.  Include "exitfail.h" to get it.
79140         * lib/xstrtol.h: Include "exitfail.h".
79141         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79142
79143         * lib/long-options.c (parse_long_options): Use prototype
79144         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79145         for clarity.
79146
79147 2004-01-21  Jim Meyering  <jim@meyering.net>
79148
79149         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79150         so as not to conflict with a different-sized __mktime_internal
79151         function in GNU libc.
79152         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79153         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79154
79155 2004-01-20  Karl Berry  <karl@gnu.org>
79156
79157         * config/config.guess: update from config.
79158
79159         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79160
79161 2004-01-20  Bruno Haible  <bruno@clisp.org>
79162
79163         Safer stack allocation.
79164         * lib/setenv.c: Include allocsa.h.
79165         (alloca): Remove fallback definition.
79166         (freea): Remove macro.
79167         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79168         instead of freea.
79169
79170 2004-01-20  Bruno Haible  <bruno@clisp.org>
79171
79172         * m4/eealloc.m4: New file, from GNU gettext.
79173
79174 2004-01-20  Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/allocsa.m4: New file, from GNU gettext.
79177
79178 2004-01-20  Bruno Haible  <bruno@clisp.org>
79179
79180         * lib/xallocsa.h: New file, from GNU gettext.
79181         * lib/xallocsa.c: New file, from GNU gettext.
79182
79183 2004-01-20  Bruno Haible  <bruno@clisp.org>
79184
79185         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79186
79187 2004-01-20  Bruno Haible  <bruno@clisp.org>
79188
79189         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79190         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79191         specially.
79192
79193 2004-01-20  Bruno Haible  <bruno@clisp.org>
79194
79195         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79196         patch.
79197
79198 2004-01-20  Bruno Haible  <bruno@clisp.org>
79199
79200         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79201
79202 2004-01-20  Bruno Haible  <bruno@clisp.org>
79203
79204         * lib/eealloc.h: New file.
79205
79206 2004-01-20  Bruno Haible  <bruno@clisp.org>
79207
79208         * lib/binary-io.h: Avoid warnings on Cygwin.
79209
79210 2004-01-20  Bruno Haible  <bruno@clisp.org>
79211
79212         * lib/allocsa.h: New file, from GNU gettext.
79213         * lib/allocsa.c: New file, from GNU gettext.
79214
79215 2004-01-18  Karl Berry  <karl@gnu.org>
79216
79217         * doc/gpl.texi, doc/lgpl.texi: new files.
79218
79219 2004-01-18  Karl Berry  <karl@gnu.org>
79220
79221         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79222         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79223
79224 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79225
79226         Merge from coreutils.
79227
79228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79229         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79230         (gl_DEFAULT_POSIX2_VERSION): Move
79231         the documentation from 'configure' into 'config.hin',
79232         so that 'configure --help' isn't burdened by it and
79233         we don't have to worry about its formatting there.
79234         Reword the documentation so that it's more succinct
79235         and can be run together into a single paragraph.
79236         * m4/same.m4 (gl_SAME): Check for pathconf.
79237
79238 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79239
79240         Merge from coreutils.
79241
79242         * lib/posixver.c: Include posixver.h.
79243
79244         * lib/same.c: Include <stdbool.h>, <limits.h>.
79245         (_POSIX_NAME_MAX): Define if not defined.
79246         (MIN): New macro.
79247         (same_name): If file names are silently truncated, report
79248         that the file names are the same if they are the same after
79249         the silent truncation.
79250
79251         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79252         conversion function.
79253         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79254         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79255         longer needed.
79256
79257 2004-01-15  Jim Meyering  <jim@meyering.net>
79258
79259         Merge from coreutils.
79260
79261         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79262         if no library is required.
79263         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79264         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79265         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79266         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79267         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79268         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79269         value, $ac_cv_search_crypt, if it's "none required".
79270         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79271         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79272         not gl_FUNC_GETLOADAVG.
79273         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79274         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79275
79276 2004-01-15  Jim Meyering  <jim@meyering.net>
79277
79278         Merge from coreutils.
79279
79280         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79281         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79282         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79283
79284         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79285         optional configure-time default.
79286
79287         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79288
79289         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79290
79291 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79292
79293         Merge from coreutils.
79294
79295         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79296         value, $ac_cv_search_nanosleep, if it's "none required".
79297
79298 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79299
79300         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79301         with like-named macro in fnmatch.c.
79302         (EXT): Use an internal constant instead.
79303
79304         Merge fnmatch patches from glibc.
79305         * lib/fnmatch.c (mbsinit): Remove define.
79306         Add libc_hidden_ver (__fnmatch, fnmatch).
79307         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79308         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79309
79310 2004-01-14  Karl Berry  <karl@gnu.org>
79311
79312         * config/install-sh: update from automake.
79313
79314 2004-01-13  Karl Berry  <karl@gnu.org>
79315
79316         * config/install-sh: update from automake.
79317
79318 2004-01-09  Karl Berry  <karl@gnu.org>
79319
79320         * config/install-sh: update from automake.
79321
79322 2004-01-05  Karl Berry  <karl@gnu.org>
79323
79324         * config/config.{sub,guess}: update from config.
79325
79326 2003-12-31  Karl Berry  <karl@gnu.org>
79327
79328         * config/depcomp: update from automake.
79329
79330 2003-12-14  Karl Berry  <karl@gnu.org>
79331
79332         * lib/config.charset: update from gettext-runtime.
79333
79334 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79335
79336         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79337         Bug reported by Alfred M. Szmidt.
79338
79339 2003-12-03  Bruno Haible  <bruno@clisp.org>
79340
79341         * m4/gettext.m4: Upgrade from gettext-0.13.
79342         * m4/po.m4: Upgrade from gettext-0.13.
79343         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79344         * m4/intmax.m4: New file, from gettext-0.13.
79345         * m4/printf-posix.m4: New file, from gettext-0.13.
79346
79347 2003-11-29  Karl Berry  <karl@gnu.org>
79348
79349         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79350
79351 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79352             Bruno Haible  <bruno@clisp.org>
79353
79354         * lib/printf-parse.h: Don't include sys/types.h.
79355         (ARG_NONE): New macro.
79356         (char_directive): Change type of *arg_index fields to size_t.
79357         * lib/printf-parse.c: Don't include sys/types.h.
79358         (SSIZE_MAX): Remove macro.
79359         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79360         Remove unnecessary overflow check.
79361         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79362         fields.
79363
79364 2003-11-25  Bruno Haible  <bruno@clisp.org>
79365
79366         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79367
79368 2003-11-25  Bruno Haible  <bruno@clisp.org>
79369
79370         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79371         gt_TYPE_SSIZE_T.
79372
79373 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79374
79375         * modules/alloca: Remove dependency on xalloc.
79376
79377 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79378
79379         * lib/alloca.c: Remove dependency on xalloc module.
79380         (xalloc_die): Remove.
79381         (memory_full) [!defined emacs]: New macro.
79382         [!defined emacs]: Don't include xalloc.h.
79383         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79384         address arithmetic overflows.  Change datatypes a bit to avoid
79385         unnecessary casts.
79386
79387 2003-11-22  Jim Meyering  <jim@meyering.net>
79388
79389         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79390         s/size/size_t/.
79391
79392 2003-11-21  Karl Berry  <karl@gnu.org>
79393
79394         * config/config.{sub,guess}: update from config.
79395
79396 2003-11-18  Karl Berry  <karl@gnu.org>
79397
79398         * config/config.{sub,guess}: update from config.
79399
79400         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79401
79402 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79403
79404         * README: Mention that S+T cannot overflow if S is the size of
79405         an existing object and T is sufficiently small.
79406
79407 2003-11-17  Jim Meyering  <jim@meyering.net>
79408
79409         On systems without utime and without a utimes function capable of
79410         dealing with a NULL struct utimbuf* argument, this utime replacement
79411         could -- in unusual circumstances -- leak a file descriptor.
79412         * lib/utime.c: Include <unistd.h> and <errno.h>.
79413         (utime_null): Be sure to close `fd' and to preserve errno.
79414         Reported by Geoff Collyer via Arnold Robbins.
79415
79416 2003-11-17  Bruno Haible  <bruno@clisp.org>
79417
79418         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79419         (Depends-on): Add xsize.
79420
79421 2003-11-17  Bruno Haible  <bruno@clisp.org>
79422
79423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79424
79425 2003-11-17  Bruno Haible  <bruno@clisp.org>
79426
79427         * lib/vasnprintf.c (alloca): Remove fallback definition.
79428         (freea): Remove definition.
79429         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79430         Reported by Paul Eggert.
79431
79432 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79433             Bruno Haible  <bruno@clisp.org>
79434
79435         Protect against address arithmetic overflow.
79436         * lib/printf-args.h: Include stddef.h.
79437         (arguments): Change type of field 'count' to size_t.
79438         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79439         'unsigned int' where appropriate.
79440         * lib/printf-parse.h: Include sys/types.h.
79441         (char_directive): Change type of *arg_index fields to ssize_t.
79442         (char_directives): Change type of fields 'count', max_*_length to
79443         size_t.
79444         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79445         (SSIZE_MAX): Define fallback value.
79446         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79447         instead of 'int' where appropriate. Check a_allocated, d_allocated
79448         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79449         * lib/vasnprintf.c: Include xsize.h.
79450         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79451         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79452         overflow. Avoid wraparound when converting a width or precision from
79453         decimal to binary.
79454
79455 2003-11-16  Bruno Haible  <bruno@clisp.org>
79456
79457         Update from GNU gettext.
79458         * lib/printf-parse.c: Generalize to it can be compiled for wide
79459         strings.
79460         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79461         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79462         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79463         SNPRINTF): New macros.
79464         Don't include <alloca.h> if the file is used inside libintl.
79465         (local_wcslen): New function, for Solaris 2.5.1.
79466         (VASNPRINTF): Use it instead of wcslen.
79467
79468 2003-11-16  Bruno Haible  <bruno@clisp.org>
79469
79470         * lib/xsize.h (xmax): New function.
79471         (xsum, xsum3, xsum4): Declare as "pure" functions.
79472
79473 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79474
79475         * modules/xalloc (Files): Undo latest change, since xalloc.h
79476         no longer needs SIZE_MAX or PTRDIFF_MAX.
79477
79478 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79479
79480         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79481         gl_PTRDIFF_MAX.
79482
79483 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79484
79485         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79486         "return", to pacify some unknown compiler.  Problem reported
79487         by Joerg Schilling.
79488
79489 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79490
79491         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79492         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79493         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79494         heuristic is just as accurate as far as we know, and it removes a
79495         dependency on size_max.m4 and ptrdiff_max.m4.
79496
79497 2003-11-11  Bruno Haible  <bruno@clisp.org>
79498
79499         * modules/xsize (Files): Add m4/size_max.m4.
79500         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79501
79502 2003-11-11  Bruno Haible  <bruno@clisp.org>
79503
79504         * m4/size_max.m4: New file.
79505         * m4/ptrdiff_max.m4: New file.
79506         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79507         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79508         (gl_XALLOC): Invoke it.
79509
79510 2003-11-11  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79513         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79514         defined.
79515
79516 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79517
79518         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79519         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79520         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79521         From Bruno Haible.
79522         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79523         not (size_t) -1, since it's defined here.
79524
79525 2003-11-09  Karl Berry  <karl@gnu.org>
79526
79527         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79528
79529 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79530
79531         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79532         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79533         Reject sizes of exactly SIZE_MAX bytes.
79534         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79535         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79536
79537 2003-11-05  Bruno Haible  <bruno@clisp.org>
79538
79539         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79540         SIZE_MAX defined in <limits.h> on Solaris.
79541
79542 2003-11-04  Jim Meyering  <jim@meyering.net>
79543
79544         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79545         variable names, rather than @VAR@.
79546         * modules/poll: Likewise.
79547
79548 2003-11-04  Bruno Haible  <bruno@clisp.org>
79549
79550         * modules/xsize: New file.
79551         * modules/linebreak: Depend on xsize.
79552         * MODULES.html.sh (func_all_modules): Add xsize.
79553
79554 2003-11-04  Bruno Haible  <bruno@clisp.org>
79555
79556         * m4/xsize.m4: New file.
79557
79558 2003-11-04  Bruno Haible  <bruno@clisp.org>
79559
79560         * lib/xsize.h: New file.
79561         * lib/linebreak.c: Include xsize.h.
79562         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79563         argument for overflow.
79564         Suggested by Paul Eggert.
79565
79566 2003-11-03  Karl Berry  <karl@gnu.org>
79567
79568         * config/config.{guess,sub}: update from config.
79569
79570 2003-11-03  Jim Meyering  <jim@meyering.net>
79571
79572         * modules/userspec (lib_SOURCES): Add userspec.h.
79573         (Include): Add "userspec.h".
79574         Improve description.
79575
79576 2003-11-03  Jim Meyering  <jim@meyering.net>
79577
79578         * lib/userspec.c: Include "userspec.h".
79579         * lib/userspec.h: New file.
79580
79581 2003-11-03  Bruno Haible  <bruno@clisp.org>
79582
79583         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79584
79585 2003-11-03  Bruno Haible  <bruno@clisp.org>
79586
79587         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79588         available, to avoid (extremely rare) race condition.
79589         Suggested by Paul Eggert.
79590
79591 2003-11-02  Karl Berry  <karl@gnu.org>
79592
79593         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79594
79595 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79596
79597         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79598         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79599         (read_filesystem_list): Set and use me_type_malloced.
79600         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79601         whatever the type happens to be), for brevity and consistency.
79602         Check for size calculation overflow on Alphas running OSF/1.
79603
79604 2003-10-31  Jim Meyering  <jim@meyering.net>
79605
79606         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79607
79608         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79609
79610 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79611             Bruno Haible  <bruno@clisp.org>
79612
79613         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79614         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79615
79616 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79619         netbsd*-gnu*.  Suggested by Robert Millan.
79620
79621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79622
79623         * modules/group-member: Depend on stdbool.
79624
79625 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79626
79627         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79628
79629 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79630
79631         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79632         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79633         after the 'gnu' in these cases.  This fixes some bugs in the
79634         previous change, and is based on suggestions by Robert Millan.
79635
79636 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79637
79638         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79639         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79640         no longer needed.
79641         * lib/quotearg.c (quotearg_n_options): Use it.
79642         * lib/group-member.c: Include <stdbool.h>.
79643         (free_group_info): Arg is now const *; don't free arg.
79644         (get_group_info): Now returns bool and accepts struct group_info *,
79645         rather than returning a malloc'ed struct group_info *.
79646         All uses changed.  Check for overflow in internal size calculation.
79647
79648         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79649         rather than xmalloc/xrealloc.
79650         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79651         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79652         conformance bug: the old code used a pointer after freeing the
79653         storage that it addressed.
79654         * lib/hash.c (hash_initialize): Simplify the code by using
79655         xalloc_oversized rather than doing it by hand.
79656         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79657         the buffer preserved.  Use free and xmalloc instead.
79658         * lib/quotearg.c (quotearg_n_options): Likewise.
79659         Use a simpler test for size overflow.  Don't use xalloc_oversized
79660         because unsigned int might be wider than size_t (!); this suggests
79661         that we should switch from unsigned int to size_t for slot numbers.
79662
79663 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79664
79665         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79666         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79667         NetBSD kernels.  Requested by Richard Stallman.
79668
79669 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79670
79671         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79672         to allocate the returned structure.  Do not allocate a subarray,
79673         as x2nrealloc will do that.
79674         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79675         instead of xnrealloc.
79676         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79677
79678 2003-10-27  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/stdbool_.h: Better support for BeOS.
79681
79682 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79683
79684         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79685         now uses inline.
79686
79687 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79688
79689         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79690         callers that want to do their own size-overflow checking.  Include
79691         <stdbool.h>, since xalloc_oversized returns bool.
79692         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79693         to use xalloc_oversized.
79694
79695         Add two functions x2realloc, x2nrealloc, for programs that grow
79696         arrays dynamically by doubling their sizes.
79697         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79698         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79699         New functions.
79700
79701         Port to C99 semantics for 'inline' of external functions.
79702         Bug reported by Bruno Haible.
79703         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79704         with the old contents of xnmalloc.
79705         (xnmalloc, xmalloc): Use it.
79706         (xnrealloc_inline): New static inline function,
79707         with the old contents of xnrealloc.
79708         (xnrealloc, xrealloc): Use it.
79709
79710         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79711         that.
79712
79713 2003-10-26  Karl Berry  <karl@gnu.org>
79714
79715         * config/srclist.txt (COPYING.DOC): no longer available from
79716         /gd/gnuorg; don't know where the ultimate source is.
79717
79718 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79719
79720         Fix several address-calculation bugs in the hash modules,
79721         plus some minor code cleanup.
79722
79723         * lib/hash.h: Include <stdbool.h>, for bool.
79724         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79725         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79726         hash_get_n_entries, hash_get_max_bucket_length,
79727         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79728         hash_rehash): Use size_t rather than unsigned.
79729         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79730         hash_get_n_buckets_used, hash_get_n_entries,
79731         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79732         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79733         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79734         Likewise.
79735         (SIZE_MAX): Define if not defined.
79736         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79737         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79738         hash_print):
79739         Use const * when possible.
79740         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79741         (check_tuning): Fix bug: if tuning parameters were very close to
79742         0 or 1, rounding errors could have caused subscript violations.
79743         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79744         (hash_initialize): Add 'fail:' label
79745         to free table and return NULL, and use it to simplify code.
79746         Use calloc rather than clearing the storage ourself.
79747         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79748         buffer size calculations.
79749         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79750         Include <stddef.h>, for size_t.
79751         * lib/hash-pjw.c (hash_pjw): Likewise.
79752         Switch to method described by Bruno Haible.
79753         Include <limits.h>, for CHAR_BIT.
79754         (SIZE_BITS): New macro.
79755
79756 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79757
79758         * m4/getline.m4 (AM_FUNC_GETLINE):
79759         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79760         hosts.  Problem reported by Derek Robert Price in
79761         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79762         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79763         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79764
79765 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79766
79767         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79768         ceiling the allocation at NMAX bytes rather than silently
79769         discarding input bytes before NMAX is reached.  This makes
79770         a difference only if NMAX exceeds SIZE_MAX / 2.
79771
79772         * lib/obstack.c: Merge from glibc.
79773         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79774         Add libc_hidden_def (_obstack_newchunk).
79775         (_obstack_free) [! defined _LIBC]: Remove.
79776         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79777         a clone of the function body.
79778         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79779         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79780
79781         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79782         glibc.
79783         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79784         arg to memcpy.
79785
79786         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79787         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79788         Don't use lvalue casts, as GCC plans to remove support for them
79789         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79790         was also present in the non-GCC version, indicating that this
79791         code had always been buggy and had never been widely used.
79792         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79793         Use the fast variant of each macro, rather than copying the
79794         definiens of the fast variant; that way, we'll be more likely to
79795         catch future bugs in the fast variants.
79796
79797 2003-10-20  Bruno Haible  <bruno@clisp.org>
79798
79799         * modules/wait-process: New file.
79800         * MODULES.html.sh (func_all_modules): Add wait-process.
79801
79802 2003-10-20  Bruno Haible  <bruno@clisp.org>
79803
79804         * m4/wait-process.m4: New file.
79805
79806 2003-10-20  Bruno Haible  <bruno@clisp.org>
79807
79808         * lib/wait-process.h: New file, from GNU gettext.
79809         * lib/wait-process.c: New file, from GNU gettext.
79810
79811 2003-10-19  Jim Meyering  <jim@meyering.net>
79812
79813         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79814         HPUX 10.20.
79815
79816 2003-10-18  Karl Berry  <karl@gnu.org>
79817
79818         * config/config.guess: update from config.
79819
79820 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79821
79822         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79823         (getgroups): First arg is int, not size_t.
79824         Don't let 'free' mangle errno.
79825
79826 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79827
79828         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79829
79830 2003-10-16  Karl Berry  <karl@gnu.org>
79831
79832         * config/config.{guess,sub}: update from config.
79833
79834 2003-10-16  Jim Meyering  <jim@meyering.net>
79835
79836         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79837         memcpy.
79838
79839 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79840
79841         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79842         (SIZE_MAX): Remove.
79843         (new_exclude, add_exclude_file): Initial size no longer needs to
79844         be a power of 2.
79845         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79846         our own address arithmetic overflow checking.
79847
79848         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79849         (fnmatch): Do not alloca more than 2000 wide characters;
79850         instead, use malloc for large buffers.
79851         Check for address arithmetic overflow, and return -1
79852         with errno set to ENOMEM in that case.
79853         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79854         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79855         instead, return -1.  Check for address arithmetic overflow.
79856
79857 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79858
79859         Handle invalid suffixes and overflow independently, so that
79860         callers can treat them independently as needed.  Fix some bugs in
79861         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79862         suffix for a human-readable blocksize.  The major caller-visible
79863         change is the addition of a new
79864         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79865         that both overflow and suffix chars were found.
79866
79867         * lib/human.c (humblock): Don't check separately for invalid suffix
79868         char; that is xstrtoumax's job (now that its bug is fixed).
79869         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79870         INTMAX_MAX]: New macros.
79871         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79872         TYPE_MAXIMUM): New macros.
79873         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79874         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79875         if overflow occurs, as it's what __strtol does and it's more useful
79876         in practice.
79877         (__xstrtol): If __strtol reports some error other than ERANGE,
79878         reflect it to the caller as LONGINT_INVALID.  If it reports
79879         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79880         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79881         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79882         value.
79883         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79884         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79885         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79886         [defined UINTMAX_MAX]: New macros.
79887
79888 2003-10-14  Bruno Haible  <bruno@clisp.org>
79889
79890         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79891
79892 2003-10-14  Bruno Haible  <bruno@clisp.org>
79893
79894         * m4/sig_atomic_t: New file, from GNU gettext.
79895         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79896
79897 2003-10-14  Bruno Haible  <bruno@clisp.org>
79898
79899         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79900         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79901         Also use volatile where needed.
79902
79903 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79904
79905         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79906         Change maintainer from Bruno Haible to 'all'.
79907
79908 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79909
79910         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79911
79912 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79915         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79916         and define in terms of the other primitives.
79917         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79918         (SIZE_MAX): Define if not already defined.
79919         (array_size_overflow): New function.
79920         (xalloc_die): Abort instead of exiting if 'error' returns.
79921         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79922         (xmalloc, xrealloc): Use them.
79923         (xcalloc): Check for address arithmetic overflow.
79924         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79925         a bit faster than strcpy.
79926
79927 2003-10-10  Simon Josefsson  <jas@extundo.com>
79928
79929         * modules/argp (Depends-on): Add restrict and strcase.
79930
79931 2003-10-10  Simon Josefsson  <jas@extundo.com>
79932
79933         * m4/argp.m4: Add AC_C_INLINE.
79934
79935 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79936
79937         Merge getpass from libc, plus a few fixes.
79938
79939         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79940         Include <stdbool.h>.
79941         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79942         __fsetlocking to empty.
79943         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79944         do include <bits/libc-lock.h>.
79945         Do not include <fcntl.h>; not needed.
79946         [_LIBC]: Include <wchar.h>.
79947         (NOTCANCEL_MODE): New macro.
79948         (flockfile, funlockfile) [_LIBC]: New macros.
79949         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79950         [!_LIBC]: New macros.
79951         (call_fclose): New function.
79952         (getpass): Use it.  Save tty stream separately; this simplifies the
79953         code and makes it more reliable if stdin happens to equal stdout.
79954         Invoke __fsetlocking on tty.
79955         Handle thread cancellation if needed.
79956         Namespace cleanup (use __tcgetattr, __getline).
79957         Use bool for Booleans.
79958         [USE_IN_LIBIO]: Handle wide streams.
79959         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79960         stream might go where.
79961
79962         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79963         doesn't have to include <stdio.h> before us.
79964         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79965         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79966         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79967         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79968         if not declared, so that we can use getpass.c code from libc without
79969         rewriting it.
79970         (flockfile, ftrylockfile, funlockfile): New macros.
79971
79972 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79973
79974         * modules/getpass: Depend on stdbool.
79975
79976 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79977
79978         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79979
79980 2003-10-07  Karl Berry  <karl@gnu.org>
79981
79982         * config/config.{guess,sub}: update from config.
79983
79984 2003-10-06  Jim Meyering  <jim@meyering.net>
79985             Bruno Haible  <bruno@clisp.org>
79986
79987         This lets translators provide better translations for the
79988         "Written by ..." part of --version output.
79989         * lib/version-etc.h: Include stdarg.h.
79990         (version_etc_copyright): Declare as readonly.
79991         (version_etc): Make this function variadic with a NULL-terminated list
79992         of author name strings.
79993         (version_etc_va): New declaration.
79994         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79995         (version_etc_copyright): Declare as readonly.
79996         (version_etc_va): New function. Provide a different translatable string
79997         for each possible number of authors < 10. Abbreviate when there are 10
79998         authors or more.
79999         (version_etc): Make this function variadic. Call version_etc_va.
80000         Suggestion from Gary V. Vaughan.
80001
80002         * lib/long-options.h (parse_long_options): Change prototype: the
80003         authors string is moved to the end and becomes variadic.
80004         * lib/long-options.c: Include stdarg.h.
80005         (parse_long_options): Make this function variadic, too.
80006         Call version_etc_va, not version_etc.
80007
80008 2003-10-06  Bruno Haible  <bruno@clisp.org>
80009
80010         * modules/version-etc-2: Remove file.
80011         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80012
80013 2003-10-06  Bruno Haible  <bruno@clisp.org>
80014
80015         * modules/fatal-signal: New file.
80016         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80017
80018 2003-10-06  Bruno Haible  <bruno@clisp.org>
80019
80020         * m4/fatal-signal.m4: New file.
80021         * m4/signalblocking.m4: New file, from GNU gettext.
80022
80023 2003-10-06  Bruno Haible  <bruno@clisp.org>
80024
80025         * lib/version-etc-2.h: Remove file.
80026         * lib/version-etc-2.c: Remove file.
80027
80028 2003-10-06  Bruno Haible  <bruno@clisp.org>
80029
80030         * lib/fatal-signal.h: New file, from GNU gettext.
80031         * lib/fatal-signal.c: New file, from GNU gettext.
80032
80033 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80034
80035         * README: Rework advice for preventing empty .o files.
80036         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80037         not <sys/types.h>.
80038
80039 2003-10-04  Karl Berry  <karl@gnu.org>
80040
80041         * lib/argp*: update from libc.
80042
80043 2003-10-04  Karl Berry  <karl@gnu.org>
80044
80045         * config/config.{guess,sub}: update from config.
80046
80047 2003-10-02  Bruno Haible  <bruno@clisp.org>
80048
80049         * modules/lchown (Include): Add lchown.h.
80050         * modules/time_r (Include): Use "..." syntax.
80051         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80052
80053 2003-10-01  Simon Josefsson  <jas@extundo.com>
80054
80055         * MODULES.html.sh (func_all_modules): Move gethostname from section
80056         'based on' to section 'lacking' POSIX:2001.
80057
80058 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80059
80060         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80061         to output mode on the same stream.
80062
80063 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80064
80065         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80066         Fix arg typo in previous patch.
80067
80068 2003-09-28  Jim Meyering  <jim@meyering.net>
80069
80070         * lib/error.c: Correct cpp indentation.
80071
80072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80073
80074         * modules/free: New file.
80075
80076 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80077
80078         * m4/free.m4: New file.
80079
80080 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80081
80082         * lib/minmax.h (MIN, MAX)
80083         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80084         Omit the special code that used __typeof__, since we worry that
80085         it could be more trouble than it's worth.  See:
80086         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80087         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80088
80089         * lib/free.c: New file.
80090
80091 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80092
80093         Trivial fixes to Makefile.am parts of module listings.
80094         * modules/strstr: Append strstr.h to lib_SOURCES.
80095         * modules/strcase: Likewise, for strcase.h.
80096
80097 2003-09-27  Karl Berry  <karl@gnu.org>
80098
80099         * config/mkinstalldirs: update from automake.
80100
80101 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80104         (error_tail): Do not loop, reallocating temporary buffer, since
80105         the output cannot contain more wide characters than the input
80106         contains bytes, the size must be big enough already.  This avoids
80107         one potential size overflow calculation.  Check for size overflow
80108         when calculating temporary buffer size.  Free temporary buffer
80109         when done, if it was allocated with malloc; this plugs a memory
80110         leak.  Remove casts from void * to pointers, that are no longer
80111         needed now that we're assuming C89 or better.
80112
80113         Merge error changes from glibc.
80114
80115         * lib/error.c, error.h: Update copyright notice header to match glibc.
80116         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80117         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80118         Disable cancellation while printing error.
80119         * lib/error.h: Prepend __ to parameter names.
80120
80121 2003-09-26  Jim Meyering  <jim@meyering.net>
80122
80123         * lib/error.c (error_tail): Move some declarations
80124         into inner scope where the local variables are used.
80125
80126 2003-09-26  Bruno Haible  <bruno@clisp.org>
80127
80128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80129         stpncpy().
80130         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80131
80132 2003-09-26  Bruno Haible  <bruno@clisp.org>
80133
80134         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80135         (stpncpy): Define as alias for gnu_stpncpy.
80136         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80137
80138 2003-09-25  Simon Josefsson  <jas@extundo.com>
80139
80140         * lib/xgetdomainname.h: New file.
80141         * lib/xgetdomainname.c: New file.
80142
80143 2003-09-25  Simon Josefsson  <jas@extundo.com>
80144             Bruno Haible  <bruno@clisp.org>
80145
80146         * modules/getdomainname: New file.
80147         * modules/xgetdomainname: New file.
80148         * MODULES.html.sh (func_all_modules): Add getdomainname,
80149         xgetdomainname.
80150
80151 2003-09-25  Simon Josefsson  <jas@extundo.com>
80152             Bruno Haible  <bruno@clisp.org>
80153
80154         * m4/getdomainname.m4: New file.
80155
80156 2003-09-25  Simon Josefsson  <jas@extundo.com>
80157             Bruno Haible  <bruno@clisp.org>
80158
80159         * lib/getdomainname.h: New file.
80160         * lib/getdomainname.c: New file.
80161
80162 2003-09-25  Karl Berry  <karl@gnu.org>
80163
80164         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80165
80166 2003-09-25  Karl Berry  <karl@gnu.org>
80167
80168         * config/install-sh: update from automake.
80169
80170 2003-09-25  Bruno Haible  <bruno@clisp.org>
80171
80172         * modules/version-etc-2: New file, from modules/version-etc with
80173         modifications.
80174         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80175
80176 2003-09-25  Bruno Haible  <bruno@clisp.org>
80177
80178         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80179         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80180
80181 2003-09-24  Simon Josefsson  <jas@extundo.com>
80182
80183         * modules/xgethostname: Add xgethostname.h.
80184
80185 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80186
80187         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80188         the buffer associated with the argument.  Bug reported by
80189         Simon Josefsson.
80190
80191 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80192
80193         * README: Document assumptions that 'int' is at least 32 bits
80194         wide, that integer arithmetic is 2's complement without overflow,
80195         that there are no holes in integer values, that adding sizes of
80196         two nonoverlapping objects can't overflow, and that all-bits-zero
80197         yields scalar zero.  Fix spelling and capitalization typos.
80198
80199 2003-09-19  Karl Berry  <karl@gnu.org>
80200
80201         * lib/argp.h: update from libc.
80202
80203 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80204
80205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80206         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80207         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80208
80209 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80210
80211         * gnulib-tool: Use "test -h", not "test -L", for portability
80212         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80213         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80214         (sed_extract_prog): Issue s commands one-by-one, rather than
80215         using \| in one s command.
80216
80217 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80218
80219         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80220         input error, instead of returning NULL the next time we are called
80221         (and therefore losing track of errno).
80222
80223 2003-09-16  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (func_create_testdir): Warn about duplicated
80226         dependencies.
80227
80228 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80229
80230         * modules/argmatch, modules/fatal, modules/obstack,
80231         modules/xalloc, modules/xgethostname: Sort dependencies by
80232         importance, not alphabetically.
80233
80234 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80235
80236         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80237         fails, so that the caller gets the proper errno.
80238
80239         * lib/readutmp.c (read_utmp): Likewise.
80240         Check for fstat error.  Close stream and free storage
80241         when failing.
80242
80243 2003-09-14  Karl Berry  <karl@gnu.org>
80244
80245         * config/srclist.txt (strdup.c): disable for c89 changes.
80246
80247 2003-09-14  Jim Meyering  <jim@meyering.net>
80248
80249         * lib/getloadavg.c: Correct cpp indentation.
80250         * lib/strdup.c: Likewise.
80251         * lib/vasnprintf.c: Likewise.
80252
80253 2003-09-14  Bruno Haible  <bruno@clisp.org>
80254
80255         * modules/fwriteerror: New file.
80256         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80257
80258 2003-09-14  Bruno Haible  <bruno@clisp.org>
80259
80260         * lib/fwriteerror.h: New file.
80261         * lib/fwriteerror.c: New file.
80262
80263 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80264
80265         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80266         modules/xgethostname, modules/xalloc: Depend on exit.
80267
80268 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80269
80270         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80271
80272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80273         and AC_MINIX, too, so that their extensions are available.
80274
80275         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80276         This macro has been superseded by gl_BACKUPFILE.
80277
80278         More patches to assume C89 or better.
80279
80280         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80281
80282         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80283         unconditionally.
80284         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80285         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80286         Include <string.h>, <stdlib.h> unconditionally.
80287         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80288         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80289         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80290         headers or for string.h.
80291         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80292         or strtoul.
80293
80294         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80295         headers.
80296         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80297         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80298         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80299         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80300         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80301         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80302         memcpy, memset.
80303         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80304         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80305         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80306         strtol.
80307         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80308         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80309         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80310         strtoul.
80311
80312 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80313
80314         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80315         * lib/obstack.c [!defined _LIBC]: Likewise.
80316         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80317         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80318         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80319
80320         More changes to assume C89 or better.
80321
80322         * lib/error.c (error_tail): Assume vprintf.
80323
80324         * lib/argmatch.c (getenv): Remove decl.
80325         * lib/progreloc.c (get_full_program_name): Define via prototype.
80326         * lib/setenv.c (clearenv): Likewise.
80327         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80328         needed.
80329         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80330         (malloc, memcpy): Remove decls.
80331         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80332         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80333         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80334         (memcpy): Remove macro.
80335         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80336         (__P): Remove.  All uses removed.
80337         (PTR): Remove.  All uses changed to void *.
80338         (CHAR_BIT, NULL): Remove.
80339         (spaces, zeros, memset_space, memset_zero)
80340         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80341         Remove.
80342         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80343         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80344         Define with prototype.
80345         Remove now-unnecessary prototype decl.
80346         (extra_args_spec): Assume ANSI C.  All uses changed.
80347         (extra_args_spec_iso): Remove.
80348         (my_strftime, emacs_strftimeu): Define via prototype.
80349         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80350         unconditionally.
80351         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80352         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80353         (strtoul, strtol): Remove decls.
80354         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80355         LONG_MAX): Remove.
80356         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80357         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80358         (LOCALE_PARAM_PROTO): New macro.
80359         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80360         (INTERNAL (strtol), strtol): Define with a prototype.
80361         (PARAMS): Remove.  All uses removed.
80362         * lib/tempname.c: Include <string.h> unconditionally.
80363         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80364         * lib/xgethostname.c (main): Define with a prototype.
80365         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80366         Include <stdlib.h> unconditionally.
80367         (calloc, malloc, realloc, free): Remove decls.
80368         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80369         Include <stdlib.h> unconditionally.  Sort include file names.
80370         (strtod): Remove.
80371         (xstrtod): Define with a prototype.
80372         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80373         (strtol, strtoul): Remove decls.
80374
80375 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80376
80377         More patches to assume C89 or better.
80378         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80379         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80380         string.h, memchr, STDC_HEADERS.
80381
80382 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80383
80384         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80385         Include <stdlib.h>, <string.h> unconditionally.
80386         Remove now-unnecessary cast to char *.
80387         * lib/strnlen.c: Include <string.h> unconditionally.
80388         * lib/yesno.c (yesno): Define with a prototype.
80389
80390 2003-09-11  Bruno Haible  <bruno@clisp.org>
80391
80392         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80393
80394 2003-09-10  Jim Meyering  <jim@meyering.net>
80395
80396         * lib/error.c: Correct indentation of cpp directives.
80397
80398 2003-09-10  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80401         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80402         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80403         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80404         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80405         <stdlib.h> and <string.h> checks.
80406         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80407         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80408
80409 2003-09-10  Bruno Haible  <bruno@clisp.org>
80410
80411         * lib/strcspn.c: Include <string.h> unconditionally.
80412         * lib/strpbrk.c: Include <string.h> unconditionally.
80413         * lib/strstr.c: Include <string.h> unconditionally.
80414         * lib/unicodeio.c: Include <string.h> unconditionally.
80415         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80416         * lib/unsetenv.c: Likewise.
80417         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80418         * lib/yesno.c: Include <stdlib.h> unconditionally.
80419         (rpmatch): Add prototype.
80420
80421 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80422
80423         More patches to assume C89 or better.
80424         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80425         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80426         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80427         or for string.h.
80428         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80429         stdlib.h.
80430         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80431         C headers.
80432         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80433         string.h.
80434         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80435         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80436         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80437         or for string.h.
80438         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80439         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80440         C headers.
80441         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80442         memcpy.
80443         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80444         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80445         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80446         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80447         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80448         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80449         string.h, free.
80450         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80451         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80452         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80453         C headers, or for string.h.
80454         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80455         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80456         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80457         headers, memory.h, stdlib.h, string.h, strings.h.
80458         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80459         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80460         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80461         strchr.
80462         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80463         headers, memory.h, string.h.
80464         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80465         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80466         free.
80467         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80468         headers.
80469         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80470         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80471         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80472         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80473         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80474
80475 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80476
80477         More K&R removal.
80478
80479         * lib/acosl.c (main): Use a prototype.
80480         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80481         tanl.c: Likewise.
80482
80483         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80484
80485         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80486         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80487         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80488         with a prototype.
80489         * lib/getopt.c (const): Remove macro.
80490         Include <string.h> unconditionally.
80491         (my_index): Remove; all uses changed to strchr.
80492         (strlen): Remove decl.
80493         (exchange): Remove forward decl; no longer needed.
80494         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80495         Define with prototype.
80496         * lib/getopt1.c (const): Remove macro.
80497         (getopt_long, getopt_long_only, main): Define with prototype.
80498
80499         * lib/getugroups.c: Include <string.h> unconditionally.
80500
80501         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80502         (getusershell, setusershell, endusershell, readname, main):
80503         Define with prototypes.
80504
80505         * lib/group-member.c: Include group-member.h first.
80506         Include <stdlib.h> unconditionally.
80507
80508         * lib/hard-locale.c: Include hard-locale.h first.
80509         Include <stdlib.h>, <string.h> unconditionally.
80510
80511         * lib/hash.c (free, malloc): Remove decls.
80512         Include <stdlib.h> unconditionally.
80513
80514         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80515         (getenv): Do not declare.
80516
80517         * lib/idcache.c: Include <string.h> unconditionally.
80518
80519         * lib/long-options.c: Include long-options.h first, to test interface.
80520         Include <stdlib.h> unconditionally.
80521
80522         * lib/makepath.c: Include makepath.h first, to test interface.
80523         Include <stdlib.h> and <string.h> unconditionally.
80524
80525         * lib/linebuffer.c: Include <stdlib.h>.
80526         (free): Remove decl.
80527
80528         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80529         stddef.h. rpl_malloc returns void *, not char *.
80530         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80531         prototype.
80532
80533         * lib/md5.h: Include <limits.h> unconditionally.
80534         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80535         (__P): Remove; all uses removed.
80536         * lib/md5.c: Include "md5.h" first.
80537         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80538         md5_buffer, md5_process_bytes, md5_process_block):
80539         Define with prototypes.
80540         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80541         * lib/sha.c: Include "sha.h" first.
80542         Include <stdlib.h>, <string.h> unconditionally.
80543
80544         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80545         * lib/memcmp.c (__ptr_t): Likewise.
80546         * lib/memrchr.c (__ptr_t): Likewise.
80547         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80548         Include <string.h> unconditionally.
80549         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80550         * lib/memchr.c: Include <stdlib.h> unconditionally.
80551         * lib/memchr.c (LONG_MAX): Remove.
80552         * lib/memrchr.c (LONG_MAX): Likewise.
80553         * lib/memchr.c (__memchr): Define via a prototype.
80554         * lib/memrchr.c (__memrchr): Likewise.
80555         * lib/memcmp.c (__P): Remove, and remove all uses.
80556         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80557         Remove forward decls; no longer needed.
80558         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80559         Use types required by C89 in prototype.
80560
80561         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80562         * lib/savedir.c: Likewise.
80563         * lib/mkdir.c (free): Remove decl.
80564         * lib/rmdir.c (rmdir): Define with a prototype.
80565         * lib/savedir.c: Include savedir.h first, to test interface.
80566
80567         * lib/mktime.c (STDC_HEADERS): Remove.
80568         Include <stdlib.h>, <string.h> unconditionally.
80569
80570         * lib/modechange.c: Include <stdlib.h> unconditionally.
80571         (malloc): Remove decl.
80572
80573         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80574         (free): Remove decl.
80575
80576         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80577         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80578         (This type really should be intptr_t, but that's a C99ism.)
80579         (_obstack_memcpy): Remove: all uses changed to memcpy.
80580         Include <string.h> unconditionally.
80581         (struct obstack): Assume __STDC__ for types of members
80582         chunkfun, freefun, extra_arg.
80583         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80584         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80585         obstack_begin, obstack_specify_allocation,
80586         obstack_specify_allocation_with_arg, obstack_chunkfun,
80587         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80588         Remove unprototyped decls and the macros that use them.
80589         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80590         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80591         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80592         (defined __STDC__ && __STDC__)]:
80593         Remove nonprototyped code.
80594         Include <stdlib.h> unconditionally.
80595         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80596         _obstack_allocated_p, _obstack_free, obstack_free,
80597         _obstack_memory_used, print_and_abort):
80598         Define using prototypes.
80599         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80600         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80601         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80602         obstack_next_free, obstack_object_size, obstack_room) [0]:
80603         Remove unused, unprototyped code.
80604
80605         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80606
80607         * lib/physmem.c (physmem_total, physmem_available, main): Define
80608         with prototypes.
80609
80610         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80611         (main): Define with a prototype.
80612
80613         * lib/posixver.c (getenv): Remove decl.
80614
80615         * lib/putenv.c (malloc): Returns void *, not char *.
80616         Include <string.h> unconditionally.
80617         (strchr, memcpy, NULL): Do not define.
80618
80619         * lib/readtokens.c: Include readtokens.h first, to test interface.
80620         Include <stdlib.h>, <string.h> unconditionally.
80621         (init_tokenbuffer): Define with a prototype.
80622
80623         * lib/regex.c (PARAMS): Remove.  All uses removed.
80624         All uses of _RE_ARGS removed, too.
80625         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80626         unconditionally.
80627         (bzero): Assume memset exists.
80628         (memcmp, memcpy, NULL): Remove.
80629         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80630         char, or assignments to local vars of type signed char.
80631         (init_syntax_once, PREFIX(extract_number_and_incr),
80632         PREFIX(print_partial_compiled_pattern),
80633         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80634         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80635         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80636         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80637         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80638         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80639         wcs_compile_range, byte_compile_range, truncate_wchar,
80640         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80641         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80642         count_mbs_length, wcs_re_match_2_internal,
80643         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80644         PREFIX(alt_match_null_string_p),
80645         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80646         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80647         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80648         now-unnecessary declaration, if any.
80649         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80650         regcomp, regexec):
80651         Remove now-unnecessary casts among pointer types.
80652         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80653
80654         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80655         (free): Remove decl.
80656
80657         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80658
80659         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80660         (free): Remove decl.
80661
80662         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80663         * lib/xgetcwd.c: Likewise.
80664
80665         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80666         (free): Remove decl.
80667
80668         * lib/strchrnul.c (strchrnul): Define with a prototype.
80669         Fix bug: c_in was not converted to char before searching.
80670
80671         The following changes are not K&R related:
80672
80673         * lib/group-member.h: Include <sys/types.h>, so that this file is
80674         self-contained.
80675         * lib/makepath.h: Likewise.
80676
80677         * lib/getusershell.c (readname, default_index, line_size, readname):
80678         Use size_t, not int, for sizes.
80679         (readname): If the size overflows, report an error instead of
80680         looping forever.
80681
80682 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80683
80684         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80685         libc.
80686
80687 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80688
80689         * README: New section: portability guidelines.
80690
80691 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80692
80693         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80694         C89 spec.
80695
80696 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80697
80698         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80699
80700 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80701
80702         Assume C89 or better; remove K&R cruft.
80703         A few of these changes were first proposed by Derek Robert Price
80704         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80705
80706         * lib/addext.c: Include <string.h> unconditionally.
80707         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80708         Don't declare getenv or malloc.
80709
80710         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80711         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80712         (NULL): Remove.
80713         (find_stack_direction, alloca): Use prototypes.
80714
80715         * lib/atexit.c (atexit): Define using a prototype.
80716
80717         * lib/basename.c, dirname.c, stripslash.c:
80718         Include <string.h> unconditionally.
80719
80720         * lib/bcopy.c: Include <stddef.h>.
80721         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80722
80723         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80724
80725         * lib/error.h (error, error_at_line, error_print_progname)
80726         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80727         * lib/error.c: Include error.h first, to check interface.
80728         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80729         (VA_START): Remove; all uses changeed to va_start.
80730         (exit, strerror): Remove decls.
80731         (error_print_progname): Prototype uncondionally.
80732         Don't include <errno.h>; no longer needed.
80733         (private_strerror): Remove.
80734         (error_tail): Always define.
80735         (error, error_at_line): Assume C89 or better; always use prototypes.
80736         * lib/fatal.c: Include "fatal.h" first, to test interface.
80737         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80738         (VA_START): Remove; all uses changed to va_start.
80739         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80740         this case.
80741         (exit): Remove decl.
80742         (fatal): Prototype unconditionally.  Assume va_start works.
80743         Abort at end, to pacify gcc.
80744
80745         * lib/euidaccess.c (main): Define with a prototype.
80746
80747         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80748
80749         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80750
80751         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80752         prototypes.
80753         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80754         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80755         (getenv): Remove decl.
80756         (fnmatch): Define using a prototype.
80757         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80758         (FCT): Define using a prototype.
80759
80760         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80761
80762         * lib/gethostname.c: Include <stddef.h>.
80763         (gethostname): Define with prototype.  Length is size_t, not int.
80764
80765 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80766
80767         Assume C89 or better; remove K&R cruft.
80768         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80769         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80770         string.h, getenv, malloc.
80771         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80772         headers.
80773         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80774         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80775         do not check for strerror.
80776         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80777         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80778         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80779         do not check for doprnt or vprintf.
80780         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80781         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80782
80783 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80784
80785         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80786         getversion.c should have been removed then, but was accidentally
80787         preserved.
80788
80789         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80790         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80791
80792 2003-09-08  Karl Berry  <karl@gnu.org>
80793
80794         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80795                 config, forget about prep.
80796
80797         * config/depcomp, missing: update from automake.
80798
80799 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80800
80801         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80803
80804 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80805
80806         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80807         copy_tm_result.  Bug reported by Simon Josefsson in
80808         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80809
80810 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80811
80812         * m4/time_r.m4: New file.
80813         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80814         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80815         is. Check for timegm declaration.
80816         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80817         Do not check for gmtime_r.
80818         Replace mktime if __mktime_internal does not exist and if mktime
80819         hasn't been replaced already.
80820
80821 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80822
80823         * lib/time_r.c, lib/time_r.h: New files.
80824
80825         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80826         __localtime_r.
80827         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80828         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80829
80830         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80831         __gmtime_r.
80832         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80833         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80834         Include <time_r.h>.
80835
80836         * lib/timegm.c: Switch to glibc implementation, with the following
80837         changes:
80838         [defined HAVE_CONFIG_H]: Include <config.h>.
80839         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80840         (__mktime_internal) [!defined _LIBC]: New decl.
80841         (__gmtime_r) [!defined _LIBC]: New macro and function.
80842         (timegm): Use a prototype, since gnulib assumes C89.
80843         Do not bother declaring tmp to be const, as it's not really usefu.
80844         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80845         (timegm): Declare only if HAVE_DECL_TIMEGM.
80846
80847 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80848
80849         * MODULES.html.sh (func_all_modules): Add time_r.
80850         * modules/time_r: New file.
80851         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80852         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80853
80854 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80855
80856         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80857         Bug reported by Lute Kamstra in
80858         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80859
80860         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80861         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80862         course with correspondingly smaller numbers for tomorrow and
80863         yesterday.  From Tadayoshi Funaba.  Originally installed into
80864         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80865         coreutils merge?).
80866
80867 2003-08-31  Simon Josefsson  <jas@extundo.com>
80868
80869         * modules/timegm: New file.
80870         * MODULES.html.sh (func_all_modules): Add timegm.
80871
80872 2003-08-31  Simon Josefsson  <jas@extundo.com>
80873
80874         * m4/timegm.m4: New file.
80875
80876 2003-08-31  Simon Josefsson  <jas@extundo.com>
80877
80878         * lib/timegm.h: New file.
80879         * lib/timegm.c: New file.  Based on
80880         wget-1.8.2/src/http.c:mktime_from_utc.
80881
80882 2003-08-31  Karl Berry  <karl@gnu.org>
80883
80884         * lib/argp.h: update from libc.
80885
80886 2003-08-28  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80889         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80890         followed by '#define fnmatch fnmatch_posix' gives an error.
80891
80892 2003-08-28  Bruno Haible  <bruno@clisp.org>
80893
80894         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80895         warning on QNX, which defines O_BINARY to 000000.
80896
80897 2003-08-27  Jim Meyering  <jim@meyering.net>
80898
80899         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80900         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80901         would fail after 32.  Reported by Danny Levinson.  Details here:
80902         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80903
80904 2003-08-24  Bruno Haible  <bruno@clisp.org>
80905
80906         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80907         MSVC7 <stdio.h> is included later.
80908
80909 2003-08-22  Simon Josefsson  <jas@extundo.com>
80910
80911         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80912
80913 2003-08-20  Karl Berry  <karl@gnu.org>
80914
80915         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80916
80917 2003-08-20  Bruno Haible  <bruno@clisp.org>
80918
80919         * modules/progname: New file.
80920         * MODULES.html.sh (func_all_modules): Add progname.
80921
80922 2003-08-20  Bruno Haible  <bruno@clisp.org>
80923
80924         * lib/progname.h: New file, from GNU gettext.
80925         * lib/progname.c: New file, from GNU gettext.
80926         * lib/progreloc.c: New file, from GNU gettext.
80927
80928 2003-08-19  Jim Meyering  <jim@meyering.net>
80929
80930         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80931         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80932
80933 2003-08-19  Bruno Haible  <bruno@clisp.org>
80934
80935         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80936         more.
80937
80938 2003-08-19  Bruno Haible  <bruno@clisp.org>
80939
80940         * lib/xstrdup.c: Assume <string.h> exists.
80941
80942 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80943
80944         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80945         in makefile rules.
80946
80947 2003-08-18  Jim Meyering  <jim@meyering.net>
80948
80949         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80950         * m4/lib-ld.m4: Likewise.
80951
80952 2003-08-18  Jim Meyering  <jim@meyering.net>
80953
80954         * lib/setenv.h: Indent nested cpp directive.
80955         * lib/vasnprintf.c: Remove trailing blanks.
80956
80957 2003-08-17  Simon Josefsson  <jas@extundo.com>
80958
80959         * modules/xstrndup: New file.
80960         * MODULES.html.sh (func_all_modules): Add xstrndup.
80961
80962 2003-08-17  Simon Josefsson  <jas@extundo.com>
80963
80964         * modules/argp: Fix autoconf macro name. Add more dependencies.
80965
80966 2003-08-17  Simon Josefsson  <jas@extundo.com>
80967
80968         * m4/xstrndup.m4: New file.
80969
80970 2003-08-17  Simon Josefsson  <jas@extundo.com>
80971
80972         * m4/argp.m4: New file.
80973
80974 2003-08-17  Simon Josefsson  <jas@extundo.com>
80975             Bruno Haible  <bruno@clisp.org>
80976
80977         * lib/xstrndup.h: New file.
80978         * lib/xstrndup.c: New file.
80979
80980 2003-08-17  Bruno Haible  <bruno@clisp.org>
80981
80982         * modules/strndup (Files, Include): Add lib/strndup.h.
80983
80984 2003-08-17  Bruno Haible  <bruno@clisp.org>
80985
80986         * modules/euidaccess (Files): Add lib/euidaccess.h.
80987
80988 2003-08-17  Bruno Haible  <bruno@clisp.org>
80989
80990         * lib/strndup.h: New file.
80991
80992 2003-08-17  Bruno Haible  <bruno@clisp.org>
80993
80994         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80995         like AC_GNU_SOURCE.
80996         * modules/extensions (configure.ac): Comment out the invocation of
80997         gl_USE_SYSTEM_EXTENSIONS.
80998
80999 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81000
81001         Merges from coreutils, etc.
81002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81003         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81004         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81005         fixing a typo.
81006         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81007         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81008
81009 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81010
81011         Document merge from coreutils.
81012         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81013         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81014         * modules/utime: Add m4/utimes-null.m4.
81015
81016 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81017
81018         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81019         space, undoing this 2003-08-12 change:
81020         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81021
81022 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81023
81024         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81025         strtoul.c from libc, undoing this 2003-08-12 change:
81026         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81027
81028 2003-08-16  Jim Meyering  <jim@meyering.net>
81029
81030         Merges from coreutils.
81031         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81032         prefix.  Adjust cache variables similarly.  Create 500 rather than
81033         just 300 files, to exercise bug on Darwin6.5, too.
81034         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81035         $missing_dir.
81036         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81037         AM_SYS_POSIX_TERMIOS.
81038         Reported by mkc@mathdogs.com.
81039         Also change use of $am_cv_sys_posix_termios
81040         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81041         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81042         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81043         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81044         in /proc/mounts until it finds one with matching device number.  This
81045         is unnecessary when the FILE argument *is* a mount point.  No stat call
81046         is necessary in that case.  So, disable the statvfs-testing code on
81047         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81048         as RedHat bug# 84846.
81049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81050         to 1MB, so as not to render systems with no stack size limit (e.g.,
81051         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81052         Include <unistd.h>.  On some systems,
81053         it is required for the definition of _SC_PAGESIZE.
81054
81055 2003-08-16  Jim Meyering  <jim@meyering.net>
81056
81057         Merge from coreutils.
81058         * lib/xstrtoimax.c: #else #if -> #elif.
81059         * lib/xstrtoumax.c: Likewise.
81060
81061 2003-08-16  Jim Meyering  <jim@meyering.net>
81062
81063         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81064         * m4/utimes.m4: Removed.
81065         * m4/utimes-null.m4: Renamed from utimes.m4.
81066
81067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81068         to 1MB, so as not to render systems with no stack size limit (e.g.,
81069         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81070         Include <unistd.h>.  On some systems,
81071         it is required for the definition of _SC_PAGESIZE.
81072
81073 2003-08-16  Jim Meyering  <jim@meyering.net>
81074         and Paul Eggert  <eggert@cs.ucla.edu>
81075
81076         Merges from coreutils, etc.
81077
81078         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81079         using the latest version from cvs.  This avoids problems with #line
81080         directives using a vendor (Sun) compiler.
81081         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81082         Don't set GETGROUPS_LIB here; now it's
81083         done via getgroups.m4's wrapper function.
81084         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81085         rather than just in sh-util/configure.in, so that the
81086         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81087         same.
81088         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81089         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81090         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81091         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81092         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81093         Remove code that is now done by the newly-required macros.
81094         Append $(EXEEXT) to DF_PROG.
81095         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81096         Do not invoke or require the following here,
81097         since prereq.m4 or some gnulib .m4 now does this for us:
81098         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81099         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81100         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81101         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81102         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81103         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81104         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81105         AC_FUNC_OBSTACK.
81106         Do not replace the following functions, as this is now the job
81107         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81108         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81109         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81110         atexit getpass, strdup, getpagesize.
81111         Replace 'raise'.
81112         Do not check for the following functions, as this is now the job
81113         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81114         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81115         setregid.
81116         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81117         Check for sys/sysctl.h.
81118         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81119         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81120         of checking for ssize_t ourselves.
81121
81122         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81123         Require every macro that gnulib/modules/* suggests for us.
81124         (jm_PREREQ_ADDEXT): New macro.
81125         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81126         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81127
81128         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81129         (gl_PHYSMEM): Use it.
81130         Also check for `table' function.
81131         Check for new headers and functions.
81132         Add check for sys/sysmp.h.
81133         With suggestions from Kaveh Ghazi.
81134         Ignore headers that are present but cannot be compiled.  This
81135         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81136         C 5.4.
81137
81138 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81139
81140         Document merge from coreutils.
81141         * modules/userspec: Depend on posixver.
81142         * modules/strftime: Depend on tzset.
81143
81144 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81145
81146         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81147         rather than tab, after '#' in shell-script copyright notices.
81148         Suggested by Bruno Haible.
81149
81150 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81151
81152         * config/srclist-update: Use three spaces, rather than tab, after '#'
81153         in shell-script copyright notices.  Suggested by Bruno Haible.
81154         Remove unnecessary parenthesization in regular expression.
81155
81156 2003-08-15  Jim Meyering  <jim@meyering.net>
81157
81158         Merge from coreutils.
81159         * lib/xgethostname.c: Include <stdlib.h>.
81160         (xghostname): Don't exit for anything other than memory-related
81161         failure; just return NULL.
81162         * lib/userspec.c: Include "posixver.h".
81163         (parse_user_spec): Accept `.' as a separator only
81164         in pre-POSIX-200112 mode.
81165         * lib/strtoimax.c: Use #elif rather than #else #if.
81166         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81167         Remove function, now that we can rely on a working tzset function.
81168         [!_LIBC]: Ensure that the required autoconf test has been run.
81169         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81170         Use underlying_strftime for %r.
81171         * lib/sha.c: Merge in some clean-up and optimization changes from
81172         glibc.
81173         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81174         Ensure that it is a multiple of 64.
81175         Rearrange loop exit tests so as to avoid performing an
81176         additional fread after encountering an error or EOF.
81177         * lib/realloc.c: Update copyright date.
81178
81179 2003-08-15  Jim Meyering  <jim@meyering.net>
81180         and Paul Eggert  <eggert@twinsun.com>
81181
81182         Merge from coreutils.
81183         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81184         member but strut utmpx does not.  Needed for AIX 4.3.3.
81185         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81186
81187 2003-08-15  Jim Meyering  <jim@meyering.net>
81188         and Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         Merges from coreutils, etc.
81191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81192         Require gl_FUNC_TZSET_CLOBBER.
81193         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81194         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81195         members.
81196
81197 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81198
81199         Help the merge from coreutils.
81200         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81201         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81202         * m4/tzset.m4: Use it too.
81203
81204 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81205
81206         * modules/tzset: New file.
81207
81208 2003-08-14  Jim Meyering  <jim@meyering.net>
81209
81210         Merges from coreutils.
81211         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81212         variable names, rather than @FNMATCH_H@.
81213         * modules/alloca: Likewise for $(ALLOCA_H).
81214
81215         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81216         the three copies of the literal target, `fnmatch.h'.
81217         * modules/alloca (alloca.h): Likewise.
81218
81219 2003-08-14  Jim Meyering  <jim@meyering.net>
81220
81221         Merge from coreutils.
81222         * m4/tzset.m4: New file.
81223         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81224         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81225         otherwise, AIX 5.1 systems would end up using the latter.
81226         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81227         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81228         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81229         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81230
81231 2003-08-14  Jim Meyering  <jim@meyering.net>
81232
81233         Merge from coreutils.
81234         * lib/obstack.h: Whitespace changes.
81235         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81236         and xcalloc return values.
81237         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81238         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81239         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81240         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81241         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81242         error from mntctl.
81243         Use mntctl's return value to drive the entry-processing loop, since
81244         we can't rely on the value of the vmt_length member in the last
81245         entry.  On some systems doing so could result in exhausting
81246         virtual memory.  Based in part on a patch from Mike Jetzer.
81247
81248 2003-08-14  Jim Meyering  <jim@meyering.net>
81249         and Paul Eggert  <eggert@twinsun.com>
81250
81251         Merges from coreutils, plus other fixes.
81252         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81253         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81254         for credits and details.  Thanks to Kaveh Ghazi for helping
81255         to keep these files in sync.
81256         (ARRAY_SIZE): Define it.
81257         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81258         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81259         (memcasecmp): Don't assume size_t fits in unsigned int.
81260         Remove casts and duplicate code.
81261         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81262         (memcpy): Remove definition.
81263         Merge in some clean-up and optimization changes from glibc.
81264         [BLOCKSIZE]: Move definition to top of file.
81265         Ensure that it is a multiple of 64.
81266         Rearrange loop exit tests so as to avoid performing an
81267         additional fread after encountering an error or EOF.
81268         * lib/md5.h (md5_uintptr): Define.
81269         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81270         return to the initial working directory.  Preserve errno
81271         for caller.
81272         * lib/idcache.c: Include "xalloc.h".
81273         (xmalloc, xrealloc): Remove decls.
81274         (getuser): Remove casts no longer required in C89.
81275         * lib/human.c: Include stdio.h, for sprintf.
81276         * lib/group-member.c: Include "xalloc.h".
81277         (xmalloc, xrealloc): Remove decls.
81278         (get_group_info): Remove casts no longer required in C89.
81279         * lib/getusershell.c (readname): Remove casts no longer required in
81280         C89.
81281         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81282         * lib/getline.c: Whitespace fix, from coreutils.
81283
81284 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81285
81286         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81287         Check for isascii.
81288
81289         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81290         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81291         Undo previous (whitespace-only) change.
81292
81293 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81294
81295         * lib/exclude.c: Include <ctype.h>
81296         (IN_CTYPE_DOMAIN): New macro.
81297         (is_space): New fn.
81298         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81299         and empty lines.
81300
81301         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81302         Undo previous (whitespace-only) change.
81303
81304 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81305
81306         * config/srclist-update: Change update back to the old behavior,
81307         leaving whitespace alone.  Use one 'sed' command rather than a
81308         pipeline.
81309         (fixlicense): Now a variable, not a function.
81310         (remove_trailing_blanks): Remove.
81311         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81312         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81313         Undo previous (whitespace-only) change.
81314
81315 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81316
81317         Merge from coreutils.
81318         * modules/euidaccess: Add lib_SOURCES, include for new
81319         file euidaccess.h
81320
81321 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81322
81323         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81324         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81325         Normalize leading white space and remove trailing white space.
81326
81327         Merge from coreutils
81328         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81329
81330         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81331         0.12.1.  These files are now being upgraded automatically by
81332         ../config/srclist-update.
81333
81334 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81335
81336         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81337         Normalize leading white space and remove trailing white space.
81338         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81339         notice, as per ../config/srclist-update.
81340
81341         Merge from coreutils.
81342         * lib/euidaccess.h: New file.
81343         * lib/euidaccess.c: Include it.
81344         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81345         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81346         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81347
81348 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81349
81350         * config/srclist-update: Add copyright notice.
81351         (remove_id_lines, remove_trailing_blanks): New constants.
81352         (fixfile): Use them to normalize spacing a bit in copied files.
81353         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81354         Normalize leading white space and remove trailing white space.
81355
81356         * config/texinfo.tex: Sync with texinfo.
81357
81358         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81359         strtoul.c from libc, to merge coreutils whitespace changes.
81360
81361         * config/srclist.txt: Get the following m4 files from gettext:
81362         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81363         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81364         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81365         wint_t.m4.
81366
81367 2003-08-12  Karl Berry  <karl@gnu.org>
81368
81369         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81370         been made.
81371
81372 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81373
81374         * modules/gnu-source, m4/gnu-source.m4:
81375         Remove; we're assuming Autoconf 2.54 or later now.
81376         Suggested by Bruno Haible.
81377         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81378
81379 2003-08-11  Bruno Haible  <bruno@clisp.org>
81380
81381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81382
81383 2003-08-11  Bruno Haible  <bruno@clisp.org>
81384
81385         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81386         (vasnprintf): Use it instead of wcslen.
81387
81388 2003-08-11  Bruno Haible  <bruno@clisp.org>
81389
81390         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81391         value to ensure that _Bool promotes to int. Use #define for _Bool when
81392         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81393
81394 2003-08-10  Karl Berry  <karl@gnu.org>
81395
81396         * lib/regex.h: update from libc (whitespace fix).
81397
81398 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81399
81400         Merge some files from coreutils.  These changes were
81401         originally made by Jim Meyering.
81402         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81403         many older Unixes require this.
81404         * lib/alloca.c (alloca): Remove cast to argument of free;
81405         no longer needed in C89.
81406         * lib/alloca_.h, regex.h: Fix white space to match
81407         what GNU indent does.
81408
81409 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81410
81411         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81412         apparently Emacs's Unicode mode got confused before my 2003-08-05
81413         checkin.
81414
81415 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81416
81417         * m4/extensions.m4: New file.
81418         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81419         Require gl_USE_SYSTEM_EXTENSIONS.
81420         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81421         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81422
81423 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81424
81425         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81426         * modules/extensions, modules/gnu-source: New files.
81427         * modules/timespec, modules/unlocked-io: Depend on extensions.
81428
81429 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81430
81431         * modules/restrict: New file.
81432         * MODULES.html.sh (func_all_modules): Add restrict.
81433         * modules/regex: Depend on restrict.
81434
81435 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81436
81437         * m4/restrict.m4: New file.
81438         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81439
81440 2003-08-07  Bruno Haible  <bruno@clisp.org>
81441
81442         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81443         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81444
81445 2003-08-07  Bruno Haible  <bruno@clisp.org>
81446
81447         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81448         makes the module 'getndelim2' compatible with the module 'getline'.
81449
81450 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81451
81452         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81453         byte with "\201" to avoid glitches when editing that source file
81454         with multi-gnome-terminal.
81455
81456 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81457
81458         * lib/bumpalloc.h: Remove.
81459
81460 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81461
81462         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81463         * modules/bumpalloc: Remove.
81464
81465 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81466
81467         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81468         GNU coding style.
81469
81470         Merge from coreutils.
81471         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81472         1. From glibc.
81473         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81474         from Karl Berry, implemented by Jim Meyering.
81475         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81476         from Dmitry V. Levin.
81477         Remove anachronistic cast of xrealloc.
81478         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81479         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81480         type. Otherwise, it wouldn't compile with at least /bin/cc on
81481         ymp-cray-unicos9.0.2.X.
81482         Combine two mostly-identical uses of alloca into one.
81483         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81484
81485 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81486
81487         [From Emacs.]
81488
81489         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81490         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81491         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81492         obsolete NLIST_NAME_UNION.
81493         [__GNU__]: Undef BSD and FSCALE.
81494         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81495
81496 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81497
81498         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81499         an enum type, so that it's guaranteed to promote to int.  See:
81500         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81501
81502 2003-08-03  Karl Berry  <karl@gnu.org>
81503
81504         * config/depcomp: update from automake.
81505
81506 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81507
81508         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81509         (strerror): Don't assume that a printable int fits in 14 bytes.
81510
81511 2003-07-31  Bruno Haible  <bruno@clisp.org>
81512
81513         * modules/getpass-gnu: New file.
81514         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81515
81516 2003-07-31  Bruno Haible  <bruno@clisp.org>
81517
81518         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81519
81520 2003-07-24  Karl Berry  <karl@gnu.org>
81521
81522         * config/missing: update from automake.
81523
81524 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81525             Bruno Haible  <bruno@clisp.org>
81526
81527         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81528         * lib/getline.c (getline, getdelim): Likewise.
81529         Remove _GNU_SOURCE define; now it's defined in config.h through
81530         m4/getline.m4.
81531
81532 2003-07-23  Karl Berry  <karl@gnu.org>
81533
81534         * config/config.sub: update from prep.
81535
81536 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81537
81538         * modules/xalloc (Depends-on): Add exitfail.
81539         * modules/xmemcoll: Likewise.
81540
81541 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81542
81543         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81544         over-parenthesization in macros.
81545
81546         Sync with coreutils.
81547
81548         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81549         required by C99.
81550
81551         Use `exit_failure' for xalloc and xmemcoll instead of their own
81552         private exit-failure variables.
81553         * lib/xalloc.h (xalloc_exit_failure): Remove.
81554         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81555         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81556         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81557         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81558         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81559
81560 2003-07-20  Jim Meyering  <jim@meyering.net>
81561
81562         * modules/closeout (Depends-on): Add exitfail.
81563         Suggestion from Bruno Haible.
81564
81565 2003-07-19  Karl Berry  <karl@gnu.org>
81566
81567         * config/config.sub: update from prep.
81568
81569 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81570
81571         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81572         Remove.
81573         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81574         to test that it can stand by itself.  Include "exitfail.h".
81575         Clients should set exit_failure instead.
81576         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81577
81578 2003-07-18  Bruno Haible  <bruno@clisp.org>
81579
81580         * modules/getndelim2: New file.
81581         * modules/getline: Share files with module getndelim2.
81582         * modules/getnline: Depend on getndelim2 instead of sharing files with
81583         it. Add getnline.c to lib_SOURCES.
81584         * MODULES.html.sh (func_all_modules): Add getndelim2.
81585
81586 2003-07-18  Bruno Haible  <bruno@clisp.org>
81587
81588         * m4/getndelim2.m4: New file.
81589         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81590         invoke gl_PREREQ_GETNDELIM2.
81591         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81592         gl_PREREQ_GETNDELIM2.
81593         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81594         gl_GETNDELIM2.
81595
81596 2003-07-18  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/getndelim2.h: New file.
81599         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81600         getndelim2.h.
81601         (getndelim2): Make non-static. Change return type to ssize_t.
81602         * lib/getline.h: Change argument names.
81603         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81604         * lib/getnline.c: Include getndelim2.h.
81605
81606 2003-07-18  Andreas Schwab  <schwab@suse.de>
81607
81608         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81609
81610 2003-07-17  Karl Berry  <karl@gnu.org>
81611
81612         * config/config.sub: update from prep.
81613
81614 2003-07-17  Bruno Haible  <bruno@clisp.org>
81615
81616         * modules/getnline: New file.
81617         * modules/getline: Add lib/getndelim2.c to source file list.
81618         * MODULES.html.sh (func_all_modules): Add getnline.
81619
81620 2003-07-17  Bruno Haible  <bruno@clisp.org>
81621
81622         * m4/getnline.m4: New file.
81623
81624 2003-07-17  Bruno Haible  <bruno@clisp.org>
81625
81626         * m4/Makefile.am.in: Remove file.
81627         * m4/Makefile.am: Remove file.
81628         * m4/Makefile.in: Remove file.
81629
81630 2003-07-17  Bruno Haible  <bruno@clisp.org>
81631
81632         * lib/getnline.h: New file.
81633         * lib/getnline.c: New file.
81634         * lib/getndelim2.c: New file, extracted from getline.c.
81635         (getndelim2): Renamed from getdelim2, with added nmax argument.
81636         * lib/getline.c: Include getndelim2.c.
81637         (getdelim2): Moved out to getndelim2.c.
81638         (getline, getdelim): Update.
81639
81640 2003-07-17  Bruno Haible  <bruno@clisp.org>
81641
81642         * lib/Makefile.am: Remove file.
81643         * lib/Makefile.in: Remove file.
81644
81645 2003-07-17  Bruno Haible  <bruno@clisp.org>
81646
81647         * configure.in: Remove file.
81648         * Makefile.in: Remove file.
81649
81650 2003-07-17  Bruno Haible  <bruno@clisp.org>
81651
81652         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81653
81654 2003-07-16  Karl Berry  <karl@gnu.org>
81655
81656         * config/srclist-update: was running fixlicense twice, which caused
81657                 texinfo.tex to be nullified for some reason.  Simplify,
81658                 $gplsrc is no longer needed as far as I can see?
81659
81660 2003-07-16  Jim Meyering  <jim@meyering.net>
81661
81662         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81663
81664 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81665
81666         * config/srclist.txt: Get the following files from gettext-runtime/intl
81667         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81668         ref-del.sin.  From Bruno Haible.
81669         * config/srclist-update (fixfile): Change grep pattern again, since the
81670         previous fix didn't work (there was another trailing $).  Use
81671         '[$]' to escape the $s.
81672
81673 2003-07-15  Karl Berry  <karl@gnu.org>
81674
81675         * lib/vasnprintf.c: update from gettext.
81676
81677 2003-07-15  Karl Berry  <karl@gnu.org>
81678
81679         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81680         gets expanded when surrounded by '$'.
81681
81682 2003-07-15  Jim Meyering  <jim@meyering.net>
81683
81684         * modules/save-cwd: Don't depend on error.  From Derek Price.
81685
81686 2003-07-15  Jim Meyering  <jim@meyering.net>
81687
81688         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81689
81690 2003-07-14  Simon Josefsson  <jas@extundo.com>
81691
81692         * modules/mempcpy: New file.
81693         * MODULES.html.sh (func_all_modules): Add mempcpy.
81694
81695 2003-07-14  Simon Josefsson  <jas@extundo.com>
81696
81697         * m4/mempcpy.m4: New file.
81698
81699 2003-07-14  Simon Josefsson  <jas@extundo.com>
81700
81701         * lib/mempcpy.h: New file.
81702         * lib/mempcpy.c: New file.
81703
81704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81705
81706         * modules/getdate, modules/posixtm: Depend on mktime.
81707
81708 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81709
81710         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81711         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81712         unicodeio.c, unicodeio.h, unlocked-io.h:
81713         Switch from LGPL to GPL.
81714
81715 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81716
81717         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81718         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81719         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81720         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81721         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81722         updated automatically by ../config/srclist-update.  This changes
81723         their license from LPGL to GPL.
81724
81725 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81726
81727         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81728         assumed to refer to the root of the most recent stable gettext version.
81729         * config/srclistvars.sh: Add defaults for eggert.
81730         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81731         Match "This program" as well as "The program".  This is needed
81732         for gettext.
81733
81734 2003-07-14  Jim Meyering  <jim@meyering.net>
81735
81736         Don't emit diagnostics.  Let callers do that.
81737         * lib/save-cwd.c: Don't include "error.h".
81738         (save_cwd): Don't call error.  Ensure that errno is valid
81739         when returning nonzero.
81740
81741         * lib/save-cwd.h (restore_cwd): Update prototype.
81742         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81743         Simplify.  Don't call error upon failure.  Let callers do that.
81744         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81745         when auditing is enabled.  But don't bother updating the #if.
81746
81747 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81748
81749         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81750         it breaks C++ compilation.
81751         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81752
81753 2003-07-10  Simon Josefsson  <jas@extundo.com>
81754
81755         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81756
81757 2003-07-10  Jim Meyering  <jim@meyering.net>
81758
81759         * m4/clock_time.m4: Remove trailing blank.
81760         * m4/intmax_t.m4: Likewise.
81761
81762 2003-07-10  Jim Meyering  <jim@meyering.net>
81763
81764         * lib/vasnprintf.c: Remove trailing blanks.
81765         Make cpp indentation consistent.
81766
81767 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81768
81769         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81770         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81771         Switch from LGPL to GPL.
81772
81773 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81774
81775         * config/srclist.txt: Sort sublists.  Add
81776         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81777         that differ from gnulib for one reason or another; we'd like this list
81778         to be smaller but for now let's document what we have.
81779
81780 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81781
81782         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81783         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81784         and sweeter "eval x=$x".
81785         * config/srclist.txt: Get lib/argp* from glibc.
81786
81787 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81788
81789         * lib/mktime.c: Fix some boundary cases and remove need for floating
81790         point.
81791
81792         Issue a compile-time diagnostic if time_t is floating point, or if
81793         two's complement arithmetic is not in effect, or if arithmetic
81794         right shift does not propagate the sign.  These assumptions were
81795         all in the original code but they weren't checked.
81796
81797         (TIME_T_MIDPOINT, verify): New macros.
81798         (__isleap): Remove; it has integer overflow problems.
81799         (leapyear): New function, without those problems.
81800         (ydhms_tm_diff): Remove; splitting into two parts.
81801         (ydhms_diff): New function, containing the arithmetic part of
81802         the old ydhms_tm_diff function.  Issue a compile-time
81803         diagnostic if we are not using C99 integer division.
81804         Avoid casts when possible.
81805         (guess_time_tm): New function, containing the checking part of
81806         the old ydhms_tm_diff function.  Return the new value, rather than
81807         the difference between it and the old.  Accept a new argument T
81808         so that *T specifies the old value.  Check for overflow in the result.
81809
81810         (__mktime_internal): Use a time_t offset, not a long int offset.
81811         This undoes the 2003-06-04 change, which is no longer needed now
81812         that we have better overflow checking.
81813         (localtime_offset): Likewise.
81814
81815         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81816         and long are 64-bit but int is only 32-bit.
81817         (ydhms_diff): Use long int to store year1 and yday1.
81818         Issue a compile-time diagnostic if long int is not wide enough.
81819
81820         (__mktime_internal): Use long int to store adjusted year and yday.
81821         Use plain C rather than preprocessor commands, if that doesn't
81822         affect efficiency.
81823         Check for overflow (and try to repair) after each probe
81824         rather than checking only at the very end.  This avoids some bugs
81825         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81826         does not equal GMT offset at maximum time).
81827         Use integer to check for overflow rather than floating point; this
81828         is more portable to non-IEEE hosts, and is a tad faster.
81829         When we detect that we are oscillating between two values,
81830         don't check whether tm_isdst has the requested value, since
81831         we already know the answer.  When tm_isdst has the wrong value,
81832         use a different heuristic to find the right one, based on the
81833         extreme values actually observed in practice in tz2003a,
81834         rather than the (overly optimistic) "previous 3 calendar quarters".
81835
81836         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81837         "T const" to accommodate glibc style.
81838         (check_result): Use less-confusing report format.  "long" -> "long int.
81839         (main): Likewise.
81840         Don't loop if the iteration overflows time_t.
81841         Allow a negative step in the iteration.
81842
81843 2003-07-06  Karl Berry  <karl@gnu.org>
81844
81845         * config/depcomp: update from automake.
81846         * config/config.sub: update from prep.
81847
81848 2003-07-03  Karl Berry  <karl@gnu.org>
81849
81850         * config/config.guess: update from prep.
81851
81852 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81853
81854         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81855         xreadlink.c now includes it unconditionally.
81856
81857 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81858
81859         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81860         having it depend on HAVE_SYS_TYPES_H.
81861
81862 2003-07-01  Bruno Haible  <bruno@clisp.org>
81863
81864         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81865         <sys/types.h> should be sufficient.
81866         Reported by Paul Eggert.
81867
81868 2003-06-26  Karl Berry  <karl@gnu.org>
81869
81870         * config/depcomp: update from automake.
81871
81872 2003-06-26  Bruno Haible  <bruno@clisp.org>
81873
81874         * modules/human: Depend on module stdbool.
81875
81876 2003-06-25  Bruno Haible  <bruno@clisp.org>
81877
81878         * modules/readlink: New file.
81879         * modules/xreadlink: Depend on it.
81880         * MODULES.html.sh (func_all_modules): Add readlink.
81881
81882 2003-06-25  Bruno Haible  <bruno@clisp.org>
81883
81884         * m4/readlink.m4: New file.
81885
81886 2003-06-25  Bruno Haible  <bruno@clisp.org>
81887
81888         * lib/readlink.c: New file.
81889
81890 2003-06-22  Karl Berry  <karl@gnu.org>
81891
81892         * config/srclist.txt: update mkinstalldirs from automake.
81893         * config/mkinstalldirs: update.
81894
81895 2003-06-22  Bruno Haible  <bruno@clisp.org>
81896
81897         Portability to mingw32.
81898         * m4/ssize_t.m4: New file, from GNU gettext.
81899         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81900         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81901
81902 2003-06-22  Bruno Haible  <bruno@clisp.org>
81903
81904         * modules/safe-read: Add m4/ssize_t.m4.
81905         * modules/xreadlink: Add m4/ssize_t.m4.
81906
81907 2003-06-20  Bruno Haible  <bruno@clisp.org>
81908
81909         Assume C89, so PARAMS isn't needed.
81910         * lib/unicodeio.h (PARAMS): Remove.
81911         * lib/unicodeio.c: Don't use PARAMS.
81912
81913 2003-06-18  Karl Berry  <karl@gnu.org>
81914
81915         * config/config.{guess,sub}: update from prep.
81916
81917 2003-06-18  Jim Meyering  <jim@meyering.net>
81918
81919         Merge changes from coreutils.
81920         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81921         Remove explicit declarations of xmalloc and realloc.
81922         Include xalloc.h.
81923         (read_utmp): Remove anachronistic cast of xmalloc.
81924
81925 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81926
81927         Assume C89, so PARAMS isn't needed.
81928         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81929         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81930         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81931         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81932         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81933         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81934         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81935         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81936         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81937         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81938         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81939         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81940         no longer needed. Anyway, config.h should always be included before any
81941         other file.
81942
81943 2003-06-11  Simon Josefsson  <jas@extundo.com>
81944
81945         * modules/sysexits: New file.
81946         * MODULES.html.sh (func_all_modules): Add sysexits.
81947
81948 2003-06-11  Simon Josefsson  <jas@extundo.com>
81949
81950         * lib/sysexit_.h: New file.
81951
81952 2003-06-11  Derek Price  <derek@ximbiot.com>
81953
81954         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81955         necessary.
81956
81957 2003-06-11  Bruno Haible  <bruno@clisp.org>
81958
81959         * m4/sysexits.m4: New file.
81960
81961 2003-06-10  Simon Josefsson  <jas@extundo.com>
81962
81963         * lib/argp.h: New file, from glibc.
81964         * lib/argp-ba.c: New file, from glibc.
81965         * lib/argp-eexst.c: New file, from glibc.
81966         * lib/argp-fmtstream.c: New file, from glibc.
81967         * lib/argp-fmtstream.h: New file, from glibc.
81968         * lib/argp-fs-xinl.c: New file, from glibc.
81969         * lib/argp-help.c: New file, from glibc.
81970         * lib/argp-namefrob.h: New file, from glibc.
81971         * lib/argp-parse.c: New file, from glibc.
81972         * lib/argp-pv.c: New file, from glibc.
81973         * lib/argp-pvh.c: New file, from glibc.
81974         * lib/argp-xinl.c: New file, from glibc.
81975
81976 2003-06-10  Simon Josefsson  <jas@extundo.com>
81977
81978         * modules/strchrnul: New file.
81979
81980 2003-06-10  Simon Josefsson  <jas@extundo.com>
81981
81982         * modules/argp: New file.
81983
81984 2003-06-10  Simon Josefsson  <jas@extundo.com>
81985
81986         * m4/strchrnul.m4: New file.
81987
81988 2003-06-10  Simon Josefsson  <jas@extundo.com>
81989
81990         * lib/strchrnul.h: New file.
81991         * lib/strchrnul.c: New file.
81992
81993 2003-06-10  Bruno Haible  <bruno@clisp.org>
81994
81995         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81996
81997 2003-06-07  Karl Berry  <karl@gnu.org>
81998
81999         * config/config.{guess,sub}: update from prep.
82000
82001 2003-06-07  Jim Meyering  <jim@meyering.net>
82002
82003         * modules/strtod: Use $(...) notation, not @...@ for
82004         AC_REPLACE'd variables.
82005         * modules/localcharset: Likewise.
82006
82007 2003-06-07  Jim Meyering  <jim@meyering.net>
82008
82009         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82010         in place of my name in the copyright comment.
82011         Remove definition and uses of __P.
82012
82013         From coreutils.
82014         * lib/stat.c: Don't declare xmalloc explicitly.
82015         Instead, include "xalloc.h".
82016         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82017         xrealloc, and xcalloc return values.
82018         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82019         Improve comment.
82020         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82021
82022 2003-06-07  Bruno Haible  <bruno@clisp.org>
82023
82024         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82025         avoid AC_CONFIG_LINKS.
82026         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82027         fnmatch.h, to avoid AC_CONFIG_LINKS.
82028         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82029
82030 2003-06-07  Bruno Haible  <bruno@clisp.org>
82031
82032         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82033         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82034         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82035         directory.
82036         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82037         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82038         directory.
82039
82040 2003-06-06  Jim Meyering  <jim@meyering.net>
82041
82042         Merge from coreutils.
82043         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82044         Consolidate declarations and initializations of *_base* locals.
82045
82046         Merge from coreutils.
82047         This avoids a core dump on systems without GNU putenv,
82048         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82049         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82050         (unsetenv): New static function, from GNU libc.
82051         (rpl_putenv): Use it.
82052
82053         * lib/modechange.c: Remove trailing blanks.
82054
82055         Merge from coreutils.
82056         * lib/fsusage.c: Remove declaration of statfs.
82057         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82058
82059         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82060
82061 2003-06-06  Jim Meyering  <jim@meyering.net>
82062
82063         * lib/stdbool_.h: Renamed from stdbool.h.in.
82064
82065 2003-06-06  Jim Meyering  <jim@meyering.net>
82066             Bruno Haible  <bruno@clisp.org>
82067
82068         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82069         Adjust Makefile.am snippet not to redirect directly to target.
82070         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82071
82072 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82075         mismatch, look in future quarters as well as past.  This fixes a
82076         bug when processing fall-backwards gaps immediately after a long
82077         period of daylight-saving time.
82078
82079         * lib/mktime.c: Assume freestanding C89 or better.
82080         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82081         (__P): Remove; not used.
82082         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82083         (mktime, not_equal_tm, print_tm, check_result,
82084         main): Use prototypes.  Use const * where appropriate.
82085         (main): Fix typo in testing code that uncovered by above changes.
82086         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82087
82088 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82089
82090         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82091         locale.h, localeconv.  This merges changes from coreutils.
82092
82093         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82094         It can be removed after the next Autoconf is released.
82095         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82096         needed.
82097
82098 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82099
82100         * lib/mktime.c: Fix Debian bug 177940
82101         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82102         (localtime_offset): Now long int, not time_t, because we want it
82103         to be guaranteed to be signed.  All uses changed.
82104         (__mktime_internal): If overflow would occur when adding offset,
82105         don't add it.
82106
82107         Merge 'human' changes from coreutils.  Rewrite to support
82108         locale-specific notations like thousands separators.
82109         * lib/human.c: Simplify authorship notice.
82110         Include human.h immediately after config.h.
82111         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82112         <limits.h>: Do not include, since human.h does.
82113         (SIZE_MAX, UINTMAX_MAX): New macros.
82114         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82115         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82116         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82117         (power_letter): Renamed from suffixes.
82118         (generate_suffix_backwards): Remove.
82119         (adjust_value): Now takes int style (because of human.h changes)
82120         and long double value (for greater precision on some platforms).
82121         (group_number): New function.
82122         (human_readable): Use it.  Use integer options, not enum.
82123         Put the options before the sizes in the arg list.
82124         Support all the new options.
82125         The old human_readable function has been removed;
82126         use inttostr.h instead.
82127         (human_readable, default_block_size, humblock):
82128         Use uintmax_t, not int, for block sizes.
82129         (human_readable_inexact, block_size_types): Remove.
82130         (block_size_opts): New constant.
82131         (human_options): Renamed from human_block_size, with new signature
82132         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82133         * lib/human.h: Add copyright and authorship notice.
82134         Include <limits.h> and <stdbool.h> unconditionally.
82135         (PARAMS): Remove.  All uses removed.
82136         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82137         (enum human_inexact_style): Remove tag; now a nameless enum.
82138         (human_floor, human_ceiling, human_round_to_even): Now have
82139         values 2, 0, 1 rather than -1, 1, 0.
82140         (human_group_digits, human_suppress_point_zero, human_autoscale,
82141         human_base_1024, human_SI, human_B): New constants.
82142         (human_readable_inexact, human_block_size): Remove.
82143         (human_readable): Size args are now uintmax_t, not int.
82144         (human_options): New decl.
82145
82146         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82147         unnecessary now that we assume C89 or better.  This change
82148         imported from coreutils.
82149
82150         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82151         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82152         in the 2003-05-30 sync from glibc.
82153
82154         .h files should stand alone, but we shouldn't include <sys/types.h>
82155         if we can get away with just <stddef.h>.
82156
82157         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82158         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82159         rather than <sys/types.h>, as we merely need size_t.
82160         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82161         to get size_t.
82162         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82163         Include <stdio.h>, to get FILE.
82164         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82165         memcasecmp.h has included <stddef.h> and all we need is size_t.
82166         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82167         our interface, instead of including <sys/types.h>
82168
82169 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82170
82171         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82172         now, as glibc mktime is buggy on non-glibc systems.
82173
82174 2003-06-03  Karl Berry  <karl@gnu.org>
82175
82176         * config/config.sub: update from prep.
82177
82178 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82179
82180         [from coreutils]
82181         Fix some minor time-related bugs with POSIX time arguments.
82182         Some valid time stamps were being rejected (notably -1, and
82183         time stamps before 1900 on 64-bit hosts).  And some invalid
82184         time stamps were being accepted, e.g. September 31.
82185
82186         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82187         that we can return (time_t) -1 successfully.
82188         * lib/posixtm.c: Likewise.
82189         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82190         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82191         (t): Remove static var.
82192         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82193         of static var.  All uses changed.
82194         (year): Do not reject years before 1900; they can occur with
82195         64-bit time_t.
82196         (posix_time_parse): Do not check for out-of-range components;
82197         that is now the caller's responsibility, since our checks were
82198         only approximations.
82199         (posixtime): Use mktime to check for out-of-range components,
82200         since it knows them exactly.
82201         If mktime returns (time_t) -1, check whether an error actually occurred
82202         by invoking localtime on -1.
82203         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82204         posixtime failures better.
82205         Improve the test data (in comments only).
82206
82207 2003-06-02  Karl Berry  <karl@gnu.org>
82208
82209         * config/mkinstalldirs (version): new variable.
82210         (--version): new option.
82211         (usage): improve message.
82212
82213 2003-05-30  Karl Berry  <karl@gnu.org>
82214
82215         * lib/mktime.c: update from libc.
82216
82217 2003-05-30  Bruno Haible  <bruno@clisp.org>
82218
82219         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82220         * config/config.rpath: Upgrade to gettext-0.12.1.
82221
82222 2003-05-30  Bruno Haible  <bruno@clisp.org>
82223
82224         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82225         * m4/nls.m4: New file, from gettext-0.12.1.
82226         * m4/po.m4: New file, from gettext-0.12.1.
82227         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82228
82229 2003-05-30  Bruno Haible  <bruno@clisp.org>
82230
82231         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82232         * lib/localcharset.h: Likewise.
82233         * lib/localcharset.c: Likewise.
82234
82235 2003-05-29  Karl Berry  <karl@gnu.org>
82236
82237         * config/config.rpath: update from gettext.
82238
82239 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82240
82241         Assume the headers required for C89 freestanding compilers.
82242         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82243         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82244         * m4/human.m4 (gl_HUMAN): Likewise.
82245         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82246         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82247         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82248         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82249         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82250         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82251
82252 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82253
82254         Assume the headers required for C89 freestanding compilers.
82255         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82256         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82257         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82258         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82259         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82260         define, since <limits.h> is guaranteed to do that.
82261         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82262         * lib/exclude.c: Include <stdbool.h> unconditionally.
82263         * lib/tempname.c: Include <stddef.h> unconditionally.
82264         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82265         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82266         <stddef.h> does that.
82267         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82268         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82269         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82270         needed.
82271         * lib/xstrtol.c: Likewise.
82272         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82273         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82274
82275         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82276         warnings on some platforms.
82277
82278         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82279         arbitrarily.
82280
82281 2003-05-26  Jim Meyering  <jim@meyering.net>
82282
82283         Merge in a change from coreutils:
82284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82285         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82286         that condition, rather than `-1' which is slightly misleading.
82287         Change the name of the cache variable to have the gl_ prefix.
82288         Prompted by a patch from Richard Dawe for DJGPP.
82289
82290 2003-05-24  Karl Berry  <karl@gnu.org>
82291
82292         * config/config.guess: update from prep.
82293
82294 2003-05-22  Karl Berry  <karl@gnu.org>
82295
82296         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82297
82298 2003-05-20  Karl Berry  <karl@gnu.org>
82299
82300         * config/config.guess: update from prep.
82301
82302 2003-05-18  Karl Berry  <karl@gnu.org>
82303
82304         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82305         might actually be set by the user.
82306
82307         * config/depcomp, install-sh, mdate-sh: update from automake.
82308
82309 2003-05-17  Bruno Haible  <bruno@clisp.org>
82310
82311         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82312         invalid expansion for AC_EGREP_CPP.
82313         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82314         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82315         Suggested by Akim Demaille <akim@epita.fr> in
82316         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82317
82318 2003-05-12  Jim Meyering  <jim@meyering.net>
82319
82320         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82321         the space-padded-by-default conversion specifiers, %e, %k, %l.
82322
82323 2003-05-12  Bruno Haible  <bruno@clisp.org>
82324
82325         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82326         the string is longer than 4 KB.
82327
82328 2003-05-11  Karl Berry  <karl@gnu.org>
82329
82330         * config/config.{guess,sub}: update from prep.
82331
82332 2003-05-09  Bruno Haible  <bruno@clisp.org>
82333
82334         * modules/error: Add m4/strerror_r.m4 to file list.
82335
82336 2003-05-03  Bruno Haible  <bruno@clisp.org>
82337
82338         Upgrade to Unicode-4.0.
82339         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82340         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82341         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82342         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82343         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82344         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82345         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82346         Change width of U+E0100..U+E01EF from 1 to 0.
82347
82348 2003-04-25  Jim Meyering  <jim@meyering.net>
82349
82350         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82351         of type size_t, not int.
82352
82353 2003-04-25  Bruno Haible  <bruno@clisp.org>
82354
82355         * lib/copy-file.c: Include <stddef.h>, for size_t.
82356
82357 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82358
82359         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82360         code which expansion is under static control.  Patch imported from
82361         Akim Demaille's patch to Bison; see
82362         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82363
82364 2003-04-14  Bruno Haible  <bruno@clisp.org>
82365
82366         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82367
82368 2003-04-11  Jim Meyering  <jim@meyering.net>
82369
82370         Merge changes from Coreutils.
82371
82372         2003-03-22  Jim Meyering  <jim@meyering.net>
82373
82374         * lib/strftime.c (widen): Cast alloca return value to proper type.
82375
82376         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82377
82378         From GNU libc.
82379         * lib/strftime.c (my_strftime): Handle very large width
82380         specifications for numeric values correctly.  Improve checks for
82381         overflow.
82382
82383         2003-01-19  Jim Meyering  <jim@meyering.net>
82384
82385         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82386         definitions.
82387         (nl_get_alt_digit) [! defined my_strftime]: Define.
82388         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82389         _nl_get_alt_digit and _nl_get_walt_digit.
82390
82391         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82392         libc. These changes have no effect outside of _LIBC.
82393
82394 2003-04-10  Bruno Haible  <bruno@clisp.org>
82395
82396         * modules/findprog: New file.
82397         * MODULES.html.sh (func_all_modules): Add it.
82398
82399 2003-04-10  Bruno Haible  <bruno@clisp.org>
82400
82401         * m4/findprog.m4: New file.
82402         * m4/eaccess.m4: New file.
82403
82404 2003-04-10  Bruno Haible  <bruno@clisp.org>
82405
82406         * lib/findprog.h: New file, from GNU gettext.
82407         * lib/findprog.c: New file, from GNU gettext.
82408
82409 2003-04-05  Jim Meyering  <jim@meyering.net>
82410
82411         Merge changes from Coreutils.
82412
82413         * lib/exclude.h (PARAMS): Remove definition and uses.
82414         * lib/exclude.c: Remove uses of `PARAMS'.
82415
82416         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82417         Add test-cases for DOS filenames. Declare program_name.
82418         (main): Set up program_name.  Patch by Rich Dawe.
82419
82420         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82421         error from mntctl.
82422         Use mntctl's return value to drive the entry-processing loop, since
82423         we can't rely on the value of the vmt_length member in the last
82424         entry.  On some systems doing so could result in exhausting
82425         virtual memory.  Based in part on a patch from Mike Jetzer.
82426
82427 2003-04-04  Bruno Haible  <bruno@clisp.org>
82428
82429         * modules/linebreak: New file.
82430         * MODULES.html.sh (func_all_modules): Add it.
82431
82432 2003-04-04  Bruno Haible  <bruno@clisp.org>
82433
82434         * m4/linebreak.m4: New file.
82435
82436 2003-04-04  Bruno Haible  <bruno@clisp.org>
82437
82438         * lib/linebreak.h: New file, from GNU gettext.
82439         * lib/linebreak.c: New file, from GNU gettext with slight
82440         modifications.
82441         * lib/lbrkprop.h: New file, from GNU gettext.
82442
82443 2003-04-03  Bruno Haible  <bruno@clisp.org>
82444
82445         * modules/utf8-ucs4: New file.
82446         * modules/utf16-ucs4: New file.
82447         * modules/ucs4-utf8: New file.
82448         * modules/ucs4-utf16: New file.
82449         * MODULES.html.sh (func_all_modules): Add them.
82450
82451 2003-04-03  Bruno Haible  <bruno@clisp.org>
82452
82453         * m4/utf-ucs4.m4: New file.
82454         * m4/ucs4-utf.m4: New file.
82455
82456 2003-04-03  Bruno Haible  <bruno@clisp.org>
82457
82458         * lib/utf8-ucs4.h: New file, from GNU gettext.
82459         * lib/utf16-ucs4.h: New file, from GNU gettext.
82460         * lib/ucs4-utf8.h: New file, from GNU gettext.
82461         * lib/ucs4-utf16.h: New file, from GNU gettext.
82462
82463 2003-04-02  Bruno Haible  <bruno@clisp.org>
82464
82465         * modules/binary-io: New file.
82466         * MODULES.html.sh (func_all_modules): Add it.
82467
82468 2003-04-02  Bruno Haible  <bruno@clisp.org>
82469
82470         * lib/binary-io.h: New file, from GNU gettext.
82471
82472 2003-04-01  Bruno Haible  <bruno@clisp.org>
82473
82474         * modules/pathname: New file.
82475         * MODULES.html.sh (func_all_modules): Add it.
82476
82477 2003-04-01  Bruno Haible  <bruno@clisp.org>
82478
82479         * lib/pathname.h: New file, from GNU gettext.
82480         * lib/concatpath.c: New file, from GNU gettext.
82481
82482 2003-03-30  Bruno Haible  <bruno@clisp.org>
82483
82484         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82485
82486 2003-03-30  Bruno Haible  <bruno@clisp.org>
82487
82488         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82489         function chown() doesn't exist.
82490
82491 2003-03-28  Bruno Haible  <bruno@clisp.org>
82492
82493         * modules/copy-file: New file.
82494         * MODULES.html.sh (func_all_modules): Add it.
82495
82496 2003-03-28  Bruno Haible  <bruno@clisp.org>
82497
82498         * m4/copy-file.m4: New file.
82499
82500 2003-03-28  Bruno Haible  <bruno@clisp.org>
82501
82502         * lib/copy-file.h: New file, from GNU gettext.
82503         * lib/copy-file.c: New file, from GNU gettext.
82504
82505 2003-03-18  Jim Meyering  <jim@meyering.net>
82506
82507         * lib/quote.c (quote_n): Fix typo in comment.
82508
82509 2003-03-18  Bruno Haible  <bruno@clisp.org>
82510
82511         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82512         checking.
82513         * m4/onceonly_2_57.m4: Likewise.
82514
82515 2003-03-17  Bruno Haible  <bruno@clisp.org>
82516
82517         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82518         (m4_quote): Remove macro.
82519         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82520
82521 2003-03-14  Jim Meyering  <jim@meyering.net>
82522
82523         Merge changes from Coreutils.
82524         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82525         to be const, in order to avoid warnings.
82526         (obstack_room): Likewise.
82527         (obstack_empty_p): Likewise.
82528
82529 2003-03-14  Bruno Haible  <bruno@clisp.org>
82530
82531         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82532         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82533
82534 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82535
82536         Merge changes from Bison.
82537         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82538         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82539         when compiling Bison 1.875's `bitset bset = obstack_alloc
82540         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82541         * lib/hash.c: Include <stdbool.h> unconditionally.
82542
82543 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82544
82545         * m4/onceonly.m4 (m4_quote): New macro.
82546         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82547         Quote AC_FOREACH variable-expansions properly.
82548
82549 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82550
82551         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82552
82553 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82554
82555         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82556         Reported by Bruce Becker; see:
82557         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82558
82559 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82560             Bruno Haible  <bruno@clisp.org>
82561
82562         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82563         Reported by John Hughes, see
82564         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82565
82566 2003-02-20  Bruno Haible  <bruno@clisp.org>
82567
82568         * MODULES.html.sh (func_all_modules): Add poll.
82569
82570 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82571
82572         * modules/poll: New file.
82573
82574 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82575
82576         * lib/poll_.h: New file.
82577         * lib/poll.c: New file.
82578
82579 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82580
82581         * m4/poll.m4: New file.
82582
82583 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82584
82585         * modules/mathl: New file.
82586
82587 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82588
82589         * lib/mathl.h: New file.
82590         * lib/acosl.c: New file.
82591         * lib/asinl.c: New file.
82592         * lib/atanl.c: New file.
82593         * lib/ceill.c: New file.
82594         * lib/cosl.c: New file.
82595         * lib/expl.c: New file.
82596         * lib/floorl.c: New file.
82597         * lib/frexpl.c: New file.
82598         * lib/ldexpl.c: New file.
82599         * lib/logl.c: New file.
82600         * lib/sincosl.c: New file.
82601         * lib/sinl.c: New file.
82602         * lib/sqrtl.c: New file.
82603         * lib/tanl.c: New file.
82604         * lib/trigl.c: New file.
82605         * lib/trigl.h: New file.
82606
82607 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82608
82609         * m4/mathl.m4: New file.
82610
82611 2003-02-18  Bruno Haible  <bruno@clisp.org>
82612
82613         * MODULES.html.sh (func_all_modules): Add mathl.
82614
82615 2003-02-17  Bruno Haible  <bruno@clisp.org>
82616
82617         * modules/mkdtemp: New module.
82618         * MODULES.html.sh (func_all_modules): Add it.
82619
82620 2003-02-17  Bruno Haible  <bruno@clisp.org>
82621
82622         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82623
82624 2003-02-17  Bruno Haible  <bruno@clisp.org>
82625
82626         * lib/mkdtemp.h: New file, from GNU gettext.
82627         * lib/mkdtemp.c: New file, from GNU gettext.
82628
82629 2003-02-02  Jim Meyering  <jim@meyering.net>
82630
82631         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82632         e.g. glibc-2.2.93.
82633
82634 2003-01-31  Bruno Haible  <bruno@clisp.org>
82635
82636         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82637         'rpl_rename'.
82638         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82639         'rpl_strnlen'.
82640         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82641         'rpl_strtod'.
82642         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82643         'rpl_utime'.
82644
82645 2003-01-31  Bruno Haible  <bruno@clisp.org>
82646
82647         * lib/rename.c: #undef rename before defining rpl_rename.
82648         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82649
82650 2003-01-30  Bruno Haible  <bruno@clisp.org>
82651
82652         * modules/vasnprintf, modules/vasprintf: New modules.
82653         * MODULES.html.sh (func_all_modules): Add them.
82654
82655 2003-01-30  Bruno Haible  <bruno@clisp.org>
82656
82657         * m4/signed.m4: New file, from GNU gettext.
82658         * m4/longdouble.m4: New file, from GNU gettext.
82659         * m4/wchar_t.m4: New file, from GNU gettext.
82660         * m4/wint_t.m4: New file, from GNU gettext.
82661         * m4/vasnprintf.m4: New file.
82662         * m4/vasprintf.m4: New file.
82663
82664 2003-01-30  Bruno Haible  <bruno@clisp.org>
82665
82666         * lib/printf-args.h: New file, from GNU gettext.
82667         * lib/printf-args.c: New file, from GNU gettext.
82668         * lib/printf-parse.h: New file, from GNU gettext.
82669         * lib/printf-parse.c: New file, from GNU gettext.
82670         * lib/vasnprintf.h: New file, from GNU gettext.
82671         * lib/vasnprintf.c: New file, from GNU gettext.
82672         * lib/asnprintf.c: New file, from GNU gettext.
82673         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82674         * lib/vasprintf.c: New file, from GNU gettext.
82675         * lib/asprintf.c: New file, from GNU gettext.
82676
82677 2003-01-29  Bruno Haible  <bruno@clisp.org>
82678
82679         * modules/stpncpy: New module.
82680         * MODULES.html.sh (func_all_modules): Add it.
82681
82682 2003-01-29  Bruno Haible  <bruno@clisp.org>
82683
82684         * m4/stpncpy.m4: New file.
82685
82686 2003-01-29  Bruno Haible  <bruno@clisp.org>
82687
82688         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82689         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82690
82691 2003-01-28  Bruno Haible  <bruno@clisp.org>
82692
82693         * modules/c-ctype: New module.
82694         * MODULES.html.sh (func_all_modules): Add it.
82695
82696 2003-01-28  Bruno Haible  <bruno@clisp.org>
82697
82698         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82699         Paul Eggert.
82700         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82701         Paul Eggert.
82702
82703 2003-01-27  Bruno Haible  <bruno@clisp.org>
82704
82705         * modules/xsetenv: New module.
82706         * MODULES.html.sh (func_all_modules): Add it.
82707
82708 2003-01-27  Bruno Haible  <bruno@clisp.org>
82709
82710         * lib/xsetenv.h: New file, from GNU gettext.
82711         * lib/xsetenv.c: New file, from GNU gettext.
82712
82713 2003-01-23  Jim Meyering  <jim@meyering.net>
82714
82715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82716         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82717
82718 2003-01-23  Bruno Haible  <bruno@clisp.org>
82719
82720         * modules/minmax: New module.
82721         * MODULES.html.sh (func_all_modules): Add it.
82722
82723 2003-01-23  Bruno Haible  <bruno@clisp.org>
82724
82725         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82726         Eggert.
82727
82728 2003-01-22  Bruno Haible  <bruno@clisp.org>
82729
82730         * modules/exit: New module.
82731         * MODULES.html.sh (func_all_modules): Add it.
82732
82733 2003-01-22  Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/exit.h: New file, from GNU gettext.
82736
82737 2003-01-19  Bruno Haible  <bruno@clisp.org>
82738
82739         * gnulib-tool: Recognize option --extract-maintainer.
82740         (func_get_maintainer): New function.
82741         * modules/*: Add Maintainer entry.
82742
82743 2003-01-16  Jim Meyering  <jim@meyering.net>
82744
82745         * m4/regex.m4: The `regex' struct is both input and output.
82746         Initialize it before each use.  Patch by Tim Waugh.
82747
82748 2003-01-16  Bruno Haible  <bruno@clisp.org>
82749
82750         * MODULES.html.sh: Add a table of contents. Add the module name as
82751         leftmost column. Add hyperlinks.
82752
82753 2003-01-15  Bruno Haible  <bruno@clisp.org>
82754
82755         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82756
82757 2003-01-15  Bruno Haible  <bruno@clisp.org>
82758
82759         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82760         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82761         suffix.
82762
82763 2003-01-15  Bruno Haible  <bruno@clisp.org>
82764
82765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82766
82767 2003-01-15  Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82770         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82771
82772 2003-01-14  Jim Meyering  <jim@meyering.net>
82773
82774         * lib/same.c (same_name): Tweak a comment.
82775
82776 2003-01-14  Bruno Haible  <bruno@clisp.org>
82777
82778         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82779         when a string comparison is sufficient.
82780
82781 2003-01-14  Bruno Haible  <bruno@clisp.org>
82782
82783         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82784         'unsigned int'.
82785
82786 2003-01-14  Bruno Haible  <bruno@clisp.org>
82787
82788         * lib/hash-pjw.c: Add comment about low quality of this function.
82789
82790 2003-01-13  Bruno Haible  <bruno@clisp.org>
82791
82792         * modules/stpcpy: Distribute lib/stpcpy.h.
82793         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82794
82795 2003-01-13  Bruno Haible  <bruno@clisp.org>
82796
82797         * modules/*: Add a description.
82798         * modules/strpbrk: Fix Makefile.am snippet.
82799         * modules/strtoimax: Fix dependencies.
82800         * modules/strtoumax: Likewise.
82801
82802 2003-01-13  Bruno Haible  <bruno@clisp.org>
82803
82804         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82805         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82806         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82807
82808 2003-01-13  Bruno Haible  <bruno@clisp.org>
82809
82810         * gnulib-tool (func_create_testdir): Store config/* files in the main
82811         directory.
82812         * config.rpath: Move to ...
82813         * config/config.rpath: ... here.
82814         * modules/gettext: Contains config/config.rpath, not config.rpath.
82815         * modules/iconv: Likewise.
82816
82817 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82818
82819         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82820         to avoid collisions with libcurses and libreadline.
82821
82822         * m4/getstr.m4: Remove.
82823         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82824
82825 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82826
82827         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82828         to avoid collisions with libcurses and libreadline.
82829
82830         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82831         * lib/getstr.h, getstr.c: Remove.
82832         * lib/getline.c: Include "getline.h", to check interface.
82833         Move body of old getstr.c here: this defines MIN_CHUNK and
82834         declares getdelim2, which is renamed from getstr.
82835         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82836
82837         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82838         All uses changed.
82839         * lib/linebuffer.h: Likewise.
82840         (readline): Remove backward-compatibility macro.
82841
82842 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82843
82844         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82845         to avoid collisions with libcurses and libreadline.
82846         * getstr: Remove.
82847         * MODULES.html.sh: Remove getstr.
82848         * modules/getline: Depend on unlocked-io, not getstr.
82849
82850 2003-01-12  Jim Meyering  <jim@meyering.net>
82851
82852         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82853
82854 2003-01-10  Bruno Haible  <bruno@clisp.org>
82855
82856         * modules/alloca: Change Makefile.am requirements. Simplify Include
82857         requirements. Add lib/alloca_.h to file list.
82858
82859 2003-01-10  Bruno Haible  <bruno@clisp.org>
82860
82861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82862
82863 2003-01-10  Bruno Haible  <bruno@clisp.org>
82864
82865         * lib/alloca_.h: New file.
82866         * lib/getdate.y: Unconditionally include alloca.h.
82867         * lib/makepath.c: Likewise.
82868         * lib/setenv.c: Likewise.
82869         * lib/userspec.c: Likewise.
82870
82871 2003-01-09  Karl Berry  <karl@gnu.org>
82872
82873         * MODULES.html.sh: include `dirname $0` in PATH, to find
82874         gnulib-tool.
82875
82876 2003-01-09  Bruno Haible  <bruno@clisp.org>
82877
82878         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82879         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82880
82881 2003-01-09  Bruno Haible  <bruno@clisp.org>
82882
82883         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82884
82885 2003-01-09  Bruno Haible  <bruno@clisp.org>
82886
82887         * lib/stdbool.h.in: New file.
82888
82889 2003-01-09  Bruno Haible  <bruno@clisp.org>
82890
82891         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82892         * MODULES.html.sh: Likewise.
82893
82894 2003-01-08  Jim Meyering  <jim@meyering.net>
82895
82896         * lib/full-write.c: Undefine and define-away `const' after inclusion
82897         of errno.h, not before.  Suggestion from Bruno Haible.
82898
82899 2003-01-08  Bruno Haible  <bruno@clisp.org>
82900
82901         * modules/full-read: Depend on full-write.
82902
82903 2003-01-08  Bruno Haible  <bruno@clisp.org>
82904
82905         * lib/safe-read.c: Include specification header first, to ensure its
82906         selfcontainedness.
82907         * lib/full-write.c: Likewise.
82908
82909 2003-01-07  Jim Meyering  <jim@meyering.net>
82910
82911         * lib/full-write.c: Rework so that it may serve to define full_read,
82912         too.
82913         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82914
82915 2003-01-07  Bruno Haible  <bruno@clisp.org>
82916
82917         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82918         <inttypes.h>.
82919         * lib/xstrtol.h: Likewise.
82920         * lib/xstrtoimax.c: Likewise.
82921         * lib/xstrtoumax.c: Likewise.
82922         * lib/human.h: Likewise.
82923
82924         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82925         on systems that have <inttypes.h> but not <stdint.h>.
82926
82927 2003-01-07  Bruno Haible  <bruno@clisp.org>
82928
82929         * MODULES.html.sh: Add copyright notice.
82930         (missed_files): Omit CVS directory entries.
82931         (func_module): Make it work with sed-3.02.
82932         * MODULES.txt: Remove file.
82933
82934 2003-01-06  Jim Meyering  <jim@meyering.net>
82935
82936         * lib/version-etc.c: Update year in translatable copyright string.
82937
82938 2003-01-03  Karl Berry  <karl@gnu.org>
82939
82940         * config/config.{guess,sub}: update from prep.
82941
82942 2003-01-02  Karl Berry  <karl@gnu.org>
82943
82944         * doc/COPYING.DOC: belatedly updated to 1.2.
82945
82946 2003-01-01  Karl Berry  <karl@gnu.org>
82947
82948         * gnulib-tool (func_verify_module): report module name $module in
82949         error message, not $1.
82950         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82951         be created, only if it doesn't exist.
82952         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82953
82954 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82955
82956         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82957
82958 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82959
82960         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82961         memcmp if strcoll doesn't work.
82962
82963 2002-12-31  Bruno Haible  <bruno@clisp.org>
82964
82965         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82966         nonempty.
82967
82968 2002-12-31  Bruno Haible  <bruno@clisp.org>
82969
82970         * lib/memcoll.c (STRCOLL): New macro.
82971         (memcoll): Use it.
82972
82973 2002-12-31  Bruno Haible  <bruno@clisp.org>
82974
82975         * lib/localcharset.h: New file.
82976         * lib/localcharset.c: Include it.
82977         * lib/unicodeio.c: Likewise.
82978
82979 2002-12-31  Bruno Haible  <bruno@clisp.org>
82980
82981         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82982         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82983
82984 2002-12-31  Bruno Haible  <bruno@clisp.org>
82985
82986         * lib/getline.h: Include <stddef.h>, for size_t.
82987
82988         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82989         * lib/unicodeio.c: Don't include <stddef.h>.
82990
82991 2002-12-31  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82994         HAVE_TM_ZONE.
82995
82996 2002-12-24  Karl Berry  <karl@gnu.org>
82997
82998         * config/config.guess: update from prep.
82999
83000 2002-12-24  Bruno Haible  <bruno@clisp.org>
83001
83002         General infrasructure.
83003         * m4/README: Rewritten.
83004         * m4/onceonly.m4: New file.
83005         * m4/onceonly_2_57.m4: New file.
83006
83007         Module atexit.
83008         * m4/atexit.m4: New file.
83009
83010         Module strtod.
83011         * m4/strtod.m4: New file.
83012
83013         Module strtol.
83014         * m4/strtol.m4: New file.
83015
83016         Module strtoul.
83017         * m4/strtoul.m4: New file.
83018
83019         Module memchr.
83020         * m4/memchr.m4: New file.
83021
83022         Module memcmp.
83023         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83024         (jm_FUNC_MEMCMP): Invoke it.
83025
83026         Module memcpy.
83027         * m4/memcpy.m4: New file.
83028
83029         Module memmove.
83030         * m4/memmove.m4: New file.
83031
83032         Module memset.
83033         * m4/memset.m4: New file.
83034
83035         Module strcspn.
83036         * m4/strcspn.m4: New file.
83037
83038         Module strpbrk.
83039         * m4/strpbrk.m4: New file.
83040
83041         Module strstr.
83042         * m4/strstr.m4: New file.
83043
83044         Module strerror.
83045         * m4/strerror.m4: New file.
83046
83047         Module mktime.
83048         * m4/mktime.m4: Renamed from jm-mktime.m4.
83049         (gl_PREREQ_MKTIME): New macro.
83050         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83051
83052         Module malloc.
83053         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83054         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83055         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83056
83057         Module realloc.
83058         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83059         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83060         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83061
83062         Module strftime.
83063         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83065         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83066         gl_TM_GMTOFF.
83067         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83068
83069         Module xalloc.
83070         * m4/xalloc.m4: New file.
83071
83072         Module alloca.
83073         * m4/alloca.m4: New file.
83074
83075         Module putenv.
83076         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83077         (jm_FUNC_PUTENV): Invoke it.
83078
83079         Module setenv.
83080         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83081         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83082         when invoked twice.
83083         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83084         gt_FUNC_SETENV.
83085
83086         Module memrchr.
83087         * m4/memrchr.m4: New file.
83088
83089         Module stpcpy.
83090         * m4/stpcpy.m4: New file.
83091
83092         Module strcase.
83093         * m4/strcase.m4: New file.
83094
83095         Module strdup.
83096         * m4/strdup.m4: New file.
83097
83098         Module strnlen.
83099         * m4/strnlen.m4: New file.
83100
83101         Module strndup.
83102         * m4/strndup.m4: New file.
83103
83104         Module xstrtod.
83105         * m4/xstrtod.m4: New file.
83106
83107         Module xstrtol.
83108         * m4/xstrtol.m4: New file.
83109
83110         Module getdate.
83111         * m4/getdate.m4: New file.
83112
83113         Module unlocked-io.
83114         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83115         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83116         * m4/jm-glibc-io.m4n: Remove file.
83117
83118         Module long-options.
83119         * m4/long-options.m4: New file.
83120
83121         Module md5.
83122         * m4/md5.m4: New file.
83123
83124         Module sha.
83125         * m4/sha.m4: New file.
83126
83127         Module getstr.
83128         * m4/getstr.m4: New file.
83129
83130         Module getline.
83131         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83132         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83133         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83134         simply getline. Infoke gl_PREREQ_GETLINE.
83135
83136         Module obstack.
83137         * m4/obstack.m4: New file.
83138
83139         Module hash.
83140         * m4/hash.m4: New file.
83141
83142         Module readtokens.
83143         * m4/readtokens.m4: New file.
83144
83145         Module strverscmp.
83146         * m4/strverscmp.m4: New file.
83147
83148         Module stdbool.
83149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83150         OSF/1.
83151
83152         Module strtoll.
83153         * m4/strtoll.m4: New file.
83154
83155         Module strtoull.
83156         * m4/strtoull.m4: New file.
83157
83158         Module strtoimax.
83159         * m4/strtoimax.m4: New file.
83160
83161         Module strtoumax.
83162         * m4/strtoumax.m4: New file.
83163
83164         Module xstrtoimax.
83165         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83166         jm_AC_PREREQ_XSTRTOIMAX.
83167         Moved the strtol prerequisites to strtol.m4.
83168         Moved the strtoll prerequisites to strtoll.m4.
83169         Moved the strtoimax prerequisites to strtoimax.m4.
83170
83171         Module xstrtoumax.
83172         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83173         jm_AC_PREREQ_XSTRTOUMAX.
83174         Moved the strtoul prerequisites to strtoul.m4.
83175         Moved the strtoull prerequisites to strtoull.m4.
83176         Moved the strtoumax prerequisites to strtoumax.m4.
83177
83178         Module chown.
83179         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83180         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83181
83182         Module dup2.
83183         * m4/dup2.m4: New file.
83184
83185         Module ftruncate.
83186         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83187         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83188
83189         Module getgroups.
83190         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83191         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83192
83193         Module gettimeofday.
83194         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83195         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83196         gl_PREREQ_GETTIMEOFDAY.
83197
83198         Module mkdir.
83199         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83200         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83201
83202         Module mkstemp.
83203         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83204         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83205         jm_AC_TYPE_UINTMAX_T.
83206         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83207
83208         Module stat.
83209         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83210         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83211
83212         Module lstat.
83213         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83214         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83215
83216         Module timespec.
83217         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83218         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83219         * m4/st_mtim.m4: Indentation.
83220
83221         Module nanosleep.
83222         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83223         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83224         gl_PREREQ_NANOSLEEP.
83225
83226         Module regex.
83227         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83228         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83229         (gl_REGEX): New macro.
83230
83231         Module rename.
83232         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83233         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83234
83235         Module rmdir.
83236         * m4/rmdir.m4: New file.
83237
83238         Module utime.
83239         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83240         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83241         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83242
83243         Module dirname.
83244         * m4/dirname.m4: New file.
83245
83246         Module getopt.
83247         * m4/getopt.m4: New file.
83248
83249         Module unistd-safer.
83250         * m4/unistd-safer.m4: New file.
83251
83252         Module fnmatch.
83253         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83254         declaration.
83255         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83256         (gl_FUNC_FNMATCH_POSIX): New macro.
83257         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83258         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83259         simply fnmatch.
83260
83261         Module exclude.
83262         * m4/exclude.m4: New file.
83263
83264         Module human.
83265         * m4/human.m4: New file.
83266
83267         Module acl.
83268         * m4/acl.m4: Nop.
83269
83270         Module backupfile.
83271         * m4/backupfile.m4: New file.
83272         * m4/d-ino.m4: Indentation.
83273
83274         Module fsusage.
83275         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83276         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83277         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83278
83279         Module dirfd.
83280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83281         requirements.
83282
83283         Module euidaccess.
83284         * m4/euidaccess.m4: New file.
83285
83286         Module file-type.
83287         * m4/file-type.m4: New file.
83288
83289         Module fileblocks.
83290         * m4/fileblocks.m4: New file.
83291
83292         Module filemode.
83293         * m4/filemode.m4: New file.
83294
83295         Module isdir.
83296         * m4/isdir.m4: New file.
83297
83298         Module lchown.
83299         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83300         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83301
83302         Module makepath.
83303         * m4/makepath.m4: New file.
83304
83305         Module modechange.
83306         * m4/modechange.m4: New file.
83307
83308         Module mountlist.
83309         * m4/mountlist.m4: New file.
83310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83311         Indentation.
83312
83313         Module path-concat.
83314         * m4/path-concat.m4: New file.
83315
83316         Module pathmax.
83317         * m4/pathmax.m4: New file.
83318
83319         Module same.
83320         * m4/same.m4: New file.
83321
83322         Module save-cwd.
83323         * m4/save-cwd.m4: New file.
83324
83325         Module savedir.
83326         * m4/savedir.m4: New file.
83327
83328         Module xgetcwd.
83329         * m4/xgetcwd.m4: New file.
83330         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83331
83332         Module xreadlink.
83333         * m4/xreadlink.m4: New file.
83334
83335         Module safe-read.
83336         * m4/safe-read.m4: New file.
83337
83338         Module safe-write.
83339         * m4/safe-write.m4: New file.
83340
83341         Module closeout.
83342         * m4/closeout.m4: New file.
83343
83344         Module stdio-safer.
83345         * m4/stdio-safer.m4: New file.
83346
83347         Module getpass.
83348         * m4/getpass.m4: New file.
83349
83350         Module getugroups.
83351         * m4/getugroups.m4: New file.
83352
83353         Module group-member.
83354         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83355         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83356
83357         Module idcache.
83358         * m4/idcache.m4: New file.
83359
83360         Module userspec.
83361         * m4/userspec.m4: New file.
83362
83363         Module gettime.
83364         * m4/clock_time.m4: New file.
83365         * m4/gettime.m4: New file.
83366
83367         Module settime.
83368         * m4/settime.m4: New file.
83369
83370         Module posixtm.
83371         * m4/posixtm.m4: New file.
83372
83373         Module gethostname.
83374         * m4/gethostname.m4: New file.
83375
83376         Module canon-host.
83377         * m4/canon-host.m4: New file.
83378
83379         Module gettext.
83380         * m4/codeset.m4: New file, from gettext-0.11.5.
83381         * m4/gettext.m4: New file, from gettext-0.11.5.
83382         * m4/glibc21.m4: New file, from gettext-0.11.5.
83383         * m4/iconv.m4: New file, from gettext-0.11.5.
83384         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83385         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83386         * m4/inttypes.m4: New file, from gettext-0.11.5.
83387         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83388         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83389         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83390         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83391         * m4/lib-link.m4: New file, from gettext-0.11.5.
83392         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83393         * m4/progtest.m4: New file, from gettext-0.11.5.
83394         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83395         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83396         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83397
83398         Module localcharset.
83399         * m4/localcharset.m4: New file.
83400
83401         Module hard-locale.
83402         * m4/hard-locale.m4: New file.
83403
83404         Module mbswidth.
83405         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83406         onceonly macros.
83407         * m4/mbrtowc.m4: Add comment.
83408
83409         Module memcasecmp.
83410         * m4/memcasecmp.m4: New file.
83411
83412         Module memcoll.
83413         * m4/memcoll.m4: New file.
83414
83415         Module unicodeio.
83416         * m4/unicodeio.m4: New file.
83417
83418         Module rpmatch.
83419         * m4/rpmatch.m4: New file.
83420
83421         Module yesno.
83422         * m4/yesno.m4: New file.
83423
83424         Module exitfail.
83425         * m4/exitfail.m4: New file.
83426
83427         Module c-stack.
83428         * m4/c-stack.m4 (gl_C_STACK): New macro.
83429         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83430
83431         Module error.
83432         * m4/error.m4 (gl_ERROR): New macro.
83433         (jm_PREREQ_ERROR): Use onceonly macros.
83434
83435         Module fatal.
83436         * m4/fatal.m4: New file.
83437
83438         Module getloadavg.
83439         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83440         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83441
83442         Module getpagesize.
83443         * m4/getpagesize.m4: New file.
83444
83445         Module getusershell.
83446         * m4/getusershell.m4: New file.
83447
83448         Module physmem.
83449         * m4/physmem.m4: New file.
83450
83451         Module posixver.
83452         * m4/posixver.m4: New file.
83453
83454         Module quotearg.
83455         * m4/quotearg.m4: New file.
83456
83457         Module quote.
83458         * m4/quote.m4: New file.
83459
83460         Module readutmp.
83461         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83462
83463         Module sig2str.
83464         * m4/sig2str.m4: New file.
83465
83466         Other.
83467         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83468         ulonglong.m4.
83469         * m4/intmax_t.m4: New file.
83470         * m4/d-type.m4: Indentation.
83471         * m4/jm-macros.m4: Update.
83472         * m4/prereq.m4 (jm_PREREQ): Update.
83473         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83474         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83475         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83476         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83477         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83478         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83479         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83480         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83481         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83482         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83483         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83484         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83485         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83486         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83487         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83488         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83489         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83490         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83491         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83492
83493 2002-12-24  Bruno Haible  <bruno@clisp.org>
83494
83495         * MODULES.txt: Update according to m4/ changes.
83496
83497         Module gettext.
83498         * config.rpath: New file, from gettext-0.11.5.
83499
83500         * modules/*: New module descriptions.
83501         * gnulib-tool: New file.
83502         * MODULES.html.sh: New file.
83503
83504 2002-12-21  Karl Berry  <karl@gnu.org>
83505
83506         * doc/fdl.texi: update to version 1.2.
83507
83508 2002-12-19  Karl Berry  <karl@gnu.org>
83509
83510         * config/config.guess: update from prep.
83511
83512 2002-12-18  Bruno Haible  <bruno@clisp.org>
83513
83514         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83515         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83516
83517 2002-12-17  Bruno Haible  <bruno@clisp.org>
83518
83519         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83520         stdlib.h, string.h.
83521
83522 2002-12-17  Bruno Haible  <bruno@clisp.org>
83523
83524         * lib/canon-host.c (strdup): Remove unused declaration.
83525
83526         * lib/fsusage.c: Include full_read.h.
83527         (get_fs_usage): Use full_read instead of safe_read.
83528
83529         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83530
83531 2002-12-12  Karl Berry  <karl@gnu.org>
83532
83533         * config/config.guess: update from prep.
83534
83535 2002-12-11  Bruno Haible  <bruno@clisp.org>
83536
83537         * m4/setenv.m4: New file, from gettext-0.11.5.
83538
83539 2002-12-11  Bruno Haible  <bruno@clisp.org>
83540
83541         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83542         not unsetenv().
83543         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83544         modifications:
83545
83546         2002-12-11  Bruno Haible  <bruno@clisp.org>
83547
83548                 * setenv.c (alloca): Fall back to malloc.
83549                 (freea): New macro.
83550                 (setenv): Use freea() to free memory allocated with alloca().
83551
83552         2002-11-13  Bruno Haible  <bruno@clisp.org>
83553
83554                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83555                 function declarations.
83556                 * unsetenv.c (unsetenv): Likewise.
83557
83558         2002-03-04  Bruno Haible  <bruno@clisp.org>
83559
83560                 Portability to AIX 4.3.3.
83561                 * unsetenv.c: New file, extracted from setenv.c.
83562                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83563
83564         2001-12-20  Bruno Haible  <bruno@clisp.org>
83565
83566                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83567                 use malloc instead. For SunOS 4.
83568
83569         2001-12-11  Bruno Haible  <bruno@clisp.org>
83570
83571                 * setenv.c: Declare alloca.
83572                 (compar_fn_t): New typedef.
83573                 (KNOWN_VALUE, STORE_VALUE): Use it.
83574
83575         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83576         setenv.h.
83577
83578 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83579
83580         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83581         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83582         Choose values that are less likely to collide with system fnmatch
83583         options.
83584         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83585         defined (e.g., a pure POSIX system).
83586         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83587         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83588
83589 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83590
83591         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83592         a pain in practice to deal with generated m4 files.  This change
83593         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83594
83595         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83596         and jm-glibc-io.m4, as they are no longer a special case.
83597         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83598         kludge and the auto-generation stuff.  Check only whether the
83599         functions are declared, not whether they exist, since older hosts
83600         that don't declare the functions can't use the optimization anyway.
83601
83602 2002-12-06  Jim Meyering  <jim@meyering.net>
83603
83604         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83605
83606         Merge in changes from libc's misc/error.c, in preparation
83607         for the merge of gnulib's changes back into libc.
83608
83609         * lib/error.c (_): Define only if not already defined.
83610         Move definition to follow all #include directives.
83611         Include unlocked-io.h only if !_LIBC.
83612         [_LIBC]: Include <libio/libioP.h>.
83613         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83614         (fflush): Tweak definition to use INTUSE.
83615         (putc): Define.
83616
83617 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83618
83619         * lib/alloca.c [defined emacs]: Include "lisp.h".
83620         (xalloc_die) [defined emacs]: New macro.
83621         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83622         [! defined emacs]: Include <xalloc.h>.
83623         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83624         (pointer): Typedef to POINTER_TYPE *.
83625         (malloc): Remove decl; we now always use xmalloc.
83626         (alloca): Use old-style definition, since Emacs needs this.
83627         Check for arithmetic overflow when computing combined size.
83628
83629 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83630
83631         Do not generate unlocked-io.h automatically, since it's easier to
83632         maintain it by hand.
83633
83634         * lib/unlocked-io.h: New file, from GNU diffutils,
83635         but with proper copyright notice and attribution.
83636         * lib/gen-uio: Remove.
83637         * lib/Makefile.am: Add copyright notice.
83638         (libfetish_a_SOURCES): Add unlocked-io.h.
83639         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83640         (DISTCLEANFILES, io_functions): Remove macros.
83641         (EXTRA_DIST): Remove gen_uio.
83642         (unlocked-io.h): Remove rule.
83643
83644 2002-12-04  Jim Meyering  <jim@meyering.net>
83645
83646         Reflect the fact that stat.c and lstat.c are no longer generated.
83647         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83648         (DISTCLEANFILES): Likewise.
83649         (EXTRA_DIST): Likewise.
83650         (all_local): Don't depend on stat.c or lstat.c.
83651         (stat.c, lstat.c): Remove rules.
83652         (EXTRA_DIST): Remove xstat.in.
83653
83654         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83655         * lib/stat.c: New file.  Contents mostly from xstat.in.
83656         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83657         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83658
83659         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83660         too.
83661         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83662
83663 2002-12-03  Jim Meyering  <jim@meyering.net>
83664
83665         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83666         but not semantics, to minimize the differences between these two files.
83667         (safe_read): Change comment to mention SAFE_READ_ERROR.
83668
83669         * lib/safe-read.c (IS_EINTR): Define.
83670         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83671
83672 2002-12-02  Jim Meyering  <jim@meyering.net>
83673
83674         * lib/safe-read.c (EINTR): Define.
83675         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83676         (INT_MAX): Provide fallback.
83677         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83678
83679         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83680
83681 2002-12-02  Bruno Haible  <bruno@clisp.org>
83682
83683         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83684         Define, taken from safe-read.c.
83685         (INT_MAX): Provide fallback.
83686         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83687         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83688
83689         * lib/safe-read.c (EINTR): Remove definition.
83690         (safe_read): Don't use EINTR if it is absent.
83691
83692 2002-12-01  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83695         zero.
83696         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83697
83698 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83699
83700         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83701         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83702         with `if (! (value < limit)) abort ();', for readability.
83703
83704 2002-11-26  Karl Berry  <karl@gnu.org>
83705
83706         * lib/strdup.c: copy from libc again, with jim's ok.
83707         * lib/.cppi-disable: re-add strdup.c
83708
83709 2002-11-25  Karl Berry  <karl@gnu.org>
83710
83711         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83712         instead of "strtol.c".
83713
83714 2002-11-25  Karl Berry  <karl@gnu.org>
83715
83716         * config/install-sh: update from automake for variable quoting, $0 in
83717         error msgs, etc.
83718
83719         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83720         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83721         entry.
83722
83723 2002-11-25  Jim Meyering  <jim@meyering.net>
83724
83725         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83726
83727 2002-11-24  Karl Berry  <karl@gnu.org>
83728
83729         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83730         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83731
83732 2002-11-24  Jim Meyering  <jim@meyering.net>
83733
83734         Update from coreutils:
83735
83736         * lib/mktime.c: Merge in changes from libc.
83737
83738         Avoid a link-time failure on some Linux systems.
83739         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83740         (otherwise).
83741         (__mon_yday): Declare with the STATIC attribute.
83742         (__mktime_internal): Likewise.
83743         Based on a report from Greg Schafer.
83744
83745 2002-11-23  Jim Meyering  <jim@meyering.net>
83746
83747         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83748         Use `unsigned', not `int', as type of index.
83749
83750         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83751
83752         * lib/fsusage.c: Remove unneeded parentheses around operands of
83753         `defined'.
83754
83755 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83756
83757         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83758         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83759         so that we can be included first.
83760         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83761         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83762         No need to include stddef.h or sys/types.h any more.
83763         Surround local include files with "", not "<>".
83764         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83765         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83766         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83767         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83768         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83769         (ISPRINT): Remove; no longer needed now that we assume C89.
83770
83771         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83772         Preserve errno.
83773
83774         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83775         quotearg_char): Use SIZE_MAX rather than
83776         (size_t) -1 when we are talking about "infinity".
83777
83778         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83779
83780 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83781
83782         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83783         hint that one should use `if (! x) abort ();' rather than `assert
83784         (x);', and anyway it's one less thing to worry about configuring.
83785         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83786         hash_rehash, hash_insert): Use abort rather than assert.
83787
83788 2002-11-22  Bruno Haible  <bruno@clisp.org>
83789
83790         * lib/safe-read.h: Assume C89. Add comments.
83791         (safe_read): Change return type to size_t.
83792         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83793         byte counts > SSIZE_MAX correctly.
83794         * lib/safe-write.h: New file.
83795         * lib/safe-write.c: New file.
83796         * lib/full-read.h: New file.
83797         * lib/full-read.c: New file.
83798         * lib/full-write.h: Assume C89. Add comments.
83799         * lib/full-write.c: Include safe-write.h.
83800         (full_write): Rewritten to use safe_write.
83801         Suggested by Jim Meyering and Paul Eggert.
83802
83803 2002-11-21  Jim Meyering  <jim@meyering.net>
83804
83805         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83806
83807         Merge in changes from the coreutils.
83808
83809         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83810         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83811         <stdint.h>.
83812         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83813         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83814         int.  Work more efficiently if X is the same width as uintmax_t.
83815         Do not compare X to -1, to avoid bogus compiler warning.
83816         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83817         Don't assume that f_frsize and f_bsize are the same type.
83818
83819         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83820         warning on FreeBSD.
83821
83822         * lib/makepath.c (make_path): Restore umask *before* creating the final
83823         component.
83824         (make_path): Minor reformatting.
83825
83826         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83827         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83828         HAVE_MALLOC/HAVE_REALLOC.
83829
83830         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83831         dummy ones.  At least on GNU/Linux systems, `auto' means something
83832         else.
83833         From Michael Stone.
83834
83835 2002-11-21  Bruno Haible  <bruno@clisp.org>
83836
83837         Remove case insensitive option matching.
83838         * lib/argmatch.h (argcasematch): Remove declaration.
83839         (ARGCASEMATCH): Remove macro.
83840         (__xargmatch_internal): Remove case_sensitive argument.
83841         (XARGMATCH): Update.
83842         (XARGCASEMATCH): Remove macro.
83843         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83844         case_sensitive argument.
83845         (argcasematch): Remove function.
83846         (__xargmatch_internal): Remove case_sensitive argument.
83847         (main): Use XARGMATCH instead of XARGCASEMATCH.
83848
83849         * lib/xmalloc.c: Change compile-time error message. Add comment about
83850         required autoconf version.
83851
83852 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83853
83854         Merge argmatch cleanups from Bison.  Assume C89.
83855
83856         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83857         Include stdlib.h, for EXIT_FAILURE.
83858         Always include <string.h>, since we assume C89.
83859         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83860         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83861         Include <stddef.h> instead, since it's all we need for size_t.
83862         (PARAMS): Remove.  All uses removed.
83863         (ARRAY_CARDINALITY): Do not bother to #undef.
83864         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83865         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83866         Remove unnecessary parentheses.
83867         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83868         Insert necessary parentheses.
83869         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83870         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83871
83872 2002-11-19  Bruno Haible  <bruno@clisp.org>
83873
83874         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83875         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83876
83877         * lib/mbswidth.h (PARAMS): Remove macro.
83878         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83879         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83880
83881         * lib/gcd.h (PARAMS): Remove macro.
83882         (gcd): Use ANSI C function declarations.
83883         * lib/gcd.c (gcd): Likewise.
83884
83885 2002-11-15  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/strcspn.c: Include <stddef.h>.
83888         (strcspn): Use ANSI C function declaration. Change return type to
83889         size_t. Use NULL.
83890         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83891         (strpbrk): Use NULL.
83892         * lib/strpbrk.h (PARAMS): Remove macro.
83893         (strpbrk): Use ANSI C function declaration.
83894         * lib/strstr.c: Don't include <sys/types.h>.
83895         * lib/strstr.h (PARAMS): Remove macro.
83896         (strstr): Use ANSI C function declarations.
83897
83898 2002-11-14  Karl Berry  <karl@gnu.org>
83899
83900         * config/mkinstalldirs: `do' on separate line, instead of
83901         `for var; do'.
83902
83903 2002-11-06  Bruno Haible  <bruno@clisp.org>
83904
83905         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83906         * lib/gcd.c (gcd): Likewise.
83907
83908 2002-11-05  Bruno Haible  <bruno@clisp.org>
83909
83910         * lib/gcd.h: New file, from gettext-0.11.5.
83911         * lib/gcd.c: New file, from gettext-0.11.5.
83912
83913 2002-11-05  Bruno Haible  <bruno@clisp.org>
83914
83915         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83916         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83917         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83918         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83919
83920         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83921         <libintl.h>.
83922         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83923         <libintl.h>.
83924
83925         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83926         * lib/human.c: Include gettext.h instead of <libintl.h>.
83927         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83928         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83929         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83930         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83931         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83932         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83933         (textdomain): Remove definition.
83934         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83935
83936         * lib/long-options.c: Remove include of <libintl.h> and definition of
83937         _.
83938         * lib/same.c: Remove include of <libintl.h> and definition of _.
83939
83940 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83941
83942         * lib/config.charset: A few additions for Solaris.
83943
83944 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83945
83946         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83947         * lib/localcharset.c (locale_charset): Declare as extern "C".
83948
83949 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83950
83951         * lib/config.charset: msdos in uk_UA uses CP1125.
83952
83953 2002-11-04  Bruno Haible  <bruno@clisp.org>
83954
83955         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83956         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83957         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83958         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83959         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83960
83961 2002-11-04  Bruno Haible  <bruno@clisp.org>
83962
83963         * lib/localcharset.c (locale_charset): Don't return an empty string.
83964
83965 2002-11-04  Bruno Haible  <bruno@clisp.org>
83966
83967         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83968         aliases.
83969
83970 2002-11-04  Bruno Haible  <bruno@clisp.org>
83971
83972         * lib/config.charset: Update for newest glibc. Add canonical names
83973         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83974
83975 2002-11-04  Bruno Haible  <bruno@clisp.org>
83976
83977         * lib/config.charset: Add support for NetBSD.
83978
83979 2002-11-04  Bruno Haible  <bruno@clisp.org>
83980
83981         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83982
83983 2002-11-01  Bruno Haible  <bruno@clisp.org>
83984
83985         * configure.in: Add AC_CONFIG_AUX_DIR call.
83986         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83987         test/Makefile.
83988         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83989
83990 2002-09-28  Karl Berry  <karl@gnu.org>
83991
83992         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83993         installed automake until the next release, since changes have been
83994         made.
83995
83996 2002-09-25  Karl Berry  <karl@gnu.org>
83997
83998         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83999         * lib/getopt*: copy from libc/posix.
84000         * lib/gettext.h: copy from gettext.
84001         * lib/.cppi-disable: add strdup.c, gettext.h.
84002
84003 2002-09-25  Karl Berry  <karl@gnu.org>
84004
84005         * config/srclist.txt: enable gettext.h check.
84006         * config/config.{guess,sub}: update from prep.
84007         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84008                 from automake 1.6.3.
84009         See srclist*.
84010
84011 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84012
84013         * regex.c (PATFETCH): Remove the translating fetch.
84014         (PATFETCH_RAW): Rename to PATFETCH.
84015         (set_image_of_range): New fun.
84016         (SET_RANGE_TABLE_WORK_AREA): Use it.
84017         (regex_compile): Don't translate the pattern chars so eagerly.
84018         Only do it when inserting an `exactn' bytecode or when handling
84019         a char-range.
84020         (mutually_exclusive_p): Avoid empty statement.
84021
84022 2002-07-06  Jim Meyering  <meyering@lucent.com>
84023
84024         * m4/README: Don't mention Makefile.am.in.
84025         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84026
84027 2002-07-01  Jim Meyering  <meyering@lucent.com>
84028
84029         * lib/c-stack.c: Include sys/time.h.
84030         From Volker Borchert.
84031
84032 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84033
84034         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84035
84036 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84037
84038         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84039         New macro.  Use it uniformly instead of
84040         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84041         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84042         reported by Vin Shelton.
84043
84044 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84045
84046         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84047         Do not assume SA_SIGINFO behavior.
84048         Bug reported by Jim Meyering on NetBSD 1.5.2.
84049
84050 2002-06-22  Jim Meyering  <meyering@lucent.com>
84051
84052         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84054
84055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84056         now that configure.ac uses AC_GNU_SOURCE.
84057         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84058         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84059
84060         Update to latest tools.  Suggestions from Paul Eggert.
84061         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84062         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84063         * m4/fnmatch.m4: Likewise.
84064         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84065         to AC_HEADER_STDBOOL
84066
84067 2002-06-22  Jim Meyering  <meyering@lucent.com>
84068
84069         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84070         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84071
84072 2002-06-22  Jim Meyering  <meyering@lucent.com>
84073
84074         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84075
84076         * lib/exitfail.c, exitfail.h: Likewise.
84077         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84078
84079         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84080         of fnmatch.h.
84081         (EXTRA_DIST): Add fnmatch_loop.c.
84082         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84083
84084         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84085         * lib/fnmatch.c: Update from diffutils-2.8.2.
84086         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84087         * lib/fnmatch.h: Remove file.
84088
84089 2002-06-21  Jim Meyering  <meyering@lucent.com>
84090
84091         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84092         * m4/mbrtowc.m4: Likewise.
84093
84094         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84095         * m4/mbswidth.m4: Reflect name change:
84096         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84098
84099         * m4/lib-link.m4: Update from gettext-0.11.2.
84100         * m4/gettext.m4: Likewise.
84101
84102         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84103         From Alfred M. Szmidt.
84104
84105 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84106
84107         * lib/file-type.h: Report an error if neither S_ISREG nor
84108         S_IFREG is defined, instead of using a test specific to glibc
84109         2.2.  This should be safe, since POSIX requires S_ISREG and
84110         Unix Version 7 had S_IFREG.  We don't need to check for
84111         <sys/types.h> since we don't use any symbols that it defines.
84112
84113 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84114
84115         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84116         $@-t, so that each temporary file name is unique and valid in the first
84117         8 characters, for operation under DOS.
84118
84119 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84120
84121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84122
84123 2002-06-15  Jim Meyering  <meyering@lucent.com>
84124
84125         Work even with DJGPP 2.03, which lacks support for symlinks.
84126         From Richard Dawe.
84127         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84128         is defined.
84129         * lib/lchown.c (S_ISLNK): Likewise.
84130
84131 2002-06-15  Jim Meyering  <meyering@lucent.com>
84132
84133         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84134         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84135         have been included before this file.
84136
84137 2002-06-14  Jim Meyering  <meyering@lucent.com>
84138
84139         * lib/file-type.h: Use the version from diffutils-2.8.2.
84140         * lib/file-type.c: Likewise.
84141
84142 2002-06-07  Jim Meyering  <meyering@lucent.com>
84143
84144         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84145         They're needed at least for NetBSD 1.5.2.
84146         ($statxfs_includes): Include those same headers.
84147         ($statxfs_includes): Include sys/vfs.h if available.
84148         ($statxfs_includes): Likewise for sys/statvfs.h.
84149         Check for the following members in both structs statfs and statvfs:
84150         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84151
84152 2002-06-01  Jim Meyering  <meyering@lucent.com>
84153
84154         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84155         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84156
84157 2002-05-28  Jim Meyering  <meyering@lucent.com>
84158
84159         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84160         Reported by Volker Borchert.
84161
84162 2002-05-27  Jim Meyering  <meyering@lucent.com>
84163
84164         Fix a problem seen only on nonconforming systems whereby ls.c's
84165         use of localtime, and then of gettimeofday would cause trouble:
84166         the localtime call used to initialize rpl_gettimeofday's save
84167         mechanism would clobber ls's current local time information so
84168         that in any long listing the first file would always be listed
84169         with date 1970-01-01.  Analysis by Volker Borchert.
84170
84171         * lib/gettimeofday.c (localtime): Undefine.
84172         (rpl_localtime): New function.
84173
84174 2002-05-27  Jim Meyering  <meyering@lucent.com>
84175
84176         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84177         localtime.
84178
84179         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84180         use the replacement function; it wouldn't resolve at link time.
84181         Reported by Volker Borchert.
84182
84183 2002-05-22  Jim Meyering  <meyering@lucent.com>
84184
84185         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84186         file-type.h.
84187         * lib/file-type.h: New file.
84188         * lib/file-type.c (file_type): New file/function.  Extracted from
84189         diffutils.
84190
84191 2002-04-30  Jim Meyering  <meyering@lucent.com>
84192
84193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84194
84195 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84196
84197         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84198
84199 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84200
84201         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84202         Do not check for alloca.h (no longer used) or stdbool.h (was never
84203         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84204
84205 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84206
84207         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84208
84209 2002-04-29  Jim Meyering  <meyering@lucent.com>
84210
84211         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84212         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84213         Use AC_FUNC_STRNLEN here instead.
84214
84215         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84216         With autoconf-2.53a, it's part of AC_PROG_CC.
84217
84218 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84219
84220         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84222
84223 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84224
84225         * lib/sig2str.h, lib/sig2str.c: New files.
84226         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84227
84228 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84229
84230         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84231         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84232         of 127, since 64 is the largest conceivable number for ancient
84233         nonstandard hosts.
84234         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84235
84236 2002-04-28  Jim Meyering  <meyering@lucent.com>
84237
84238         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84239
84240 2002-04-24  Jim Meyering  <meyering@lucent.com>
84241
84242         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84243         (jm_PREREQ): Use it.
84244
84245         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84246         mach/mach.h fcntl.h.
84247         Check for this function: setlocale.
84248
84249 2002-04-24  Jim Meyering  <meyering@lucent.com>
84250
84251         * lib/gettext.h: New file, from Gettext.
84252         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84253         (libfetish_a_SOURCES): Add gettext.h.
84254
84255 2002-04-16  Jim Meyering  <meyering@lucent.com>
84256
84257         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84258         ut_pid, ut_id, ut_exit.
84259
84260 2002-04-16  Jim Meyering  <meyering@lucent.com>
84261
84262         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84263         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84264         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84265
84266 2002-04-12  Jim Meyering  <meyering@lucent.com>
84267
84268         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84269         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84270         existence of the getmntinfo function.  Needed for Darwin 5.3.
84271
84272         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84273         This is necessary at least on Darwin 5.3.
84274
84275         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84276         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84277         strnlen.o in the library, and that makes some versions of ranlib
84278         object.
84279
84280 2002-04-12  Jim Meyering  <meyering@lucent.com>
84281
84282         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84283
84284 2002-04-09  Jim Meyering  <meyering@lucent.com>
84285
84286         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84287         to be more precise.  Rather than saying we're checking whether the
84288         function `works', say what we're testing.
84289         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84290         Reported by Bruno Haible.
84291
84292 2002-03-10  Jim Meyering  <meyering@lucent.com>
84293
84294         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84295         Suggestion from Santiago Vila.
84296
84297 2002-03-08  Jim Meyering  <meyering@lucent.com>
84298
84299         * lib/rename.c: Mention that this wrapper is needed also on
84300         mips-dec-ultrix4.4 systems.
84301
84302 2002-03-02  Jim Meyering  <meyering@lucent.com>
84303
84304         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84305         not HAVE_CLOCK_SETTIME.
84306
84307 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84308
84309         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84310         Check for clock_settime.
84311
84312 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84313
84314         * lib/nanosleep.h: Rename to....
84315         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84316
84317         * lib/gettime.c: New file.
84318         * lib/settime.c: New file.
84319         * lib/stime.c: Remove.
84320
84321         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84322         timespec.h.  Remove nanosleep.h.
84323
84324 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84325
84326         * m4/acl.m4: New file.
84327         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84328         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84329
84330 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84331
84332         * lib/acl.c, lib/acl.h: New files.
84333         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84334
84335 2002-02-24  Jim Meyering  <meyering@lucent.com>
84336
84337         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84338         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84339         cause trouble.  Reported by Nelson Beebe.
84340
84341 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84342
84343         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84344         compilers that don't know that xalloc_die never returns.
84345
84346 2002-02-20  Jim Meyering  <meyering@lucent.com>
84347
84348         * lib/getdate.c: Regenerate using bison-1.33.
84349
84350 2002-02-17  Jim Meyering  <meyering@lucent.com>
84351
84352         * config/config.guess (main): Don't use `head -1'; it's no longer
84353         portable. Use `sed 1q' instead.
84354
84355 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84356
84357         * m4/codeset.m4: Upgrade to gettext-0.11.
84358         * m4/gettext.m4: Upgrade to gettext-0.11.
84359         * m4/glibc21.m4: Upgrade to gettext-0.11.
84360         * m4/iconv.m4: Upgrade to gettext-0.11.
84361         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84362         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84363         * m4/lib-ld.m4: New file, from gettext-0.11.
84364         * m4/lib-link.m4: New file, from gettext-0.11.
84365         * m4/lib-prefix.m4: New file, from gettext-0.11.
84366         * m4/progtest.m4: Upgrade to gettext-0.11.
84367
84368 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84369
84370         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84371         (jm_PREREQ): Use it.
84372
84373 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84374
84375         * lib/posixver.c, lib/posixver.h: New files.
84376         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84377
84378 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84379             Bruno Haible  <bruno@clisp.org>
84380
84381         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84382         (fwrite_success_callback): New declaration.
84383         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84384         print_unicode_char. Call failure callback instead of error.
84385         (fwrite_success_callback): New function.
84386         (exit_failure_callback): New function.
84387         (fallback_failure_callback): New function.
84388         (print_unicode_char): Call unicode_to_mb.
84389
84390 2002-01-26  Jim Meyering  <meyering@lucent.com>
84391
84392         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84393         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84394
84395 2002-01-26  Jim Meyering  <meyering@lucent.com>
84396
84397         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84398
84399 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84400
84401         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84402
84403 2002-01-22  Jim Meyering  <meyering@lucent.com>
84404
84405         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84406         Otherwise, some versions of automake would omit the rule that makes
84407         Makefile from Makefile.in.
84408
84409 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84410
84411         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84412         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84413         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84414         (memcoll): Set errno to zero if there is no error.
84415
84416         * lib/quotearg.c (quotearg_buffer_restyled):
84417         Fix bug with quoting buffers containing NUL when backslashing escapes.
84418         This bug was exposed by the other changes in this patch.
84419         (quotearg_n_options): New arg ARGSIZE.
84420         All callers changed.
84421         (quoting_options_from_style): New function.
84422         (quotearg_n_style): Use it.
84423         (quotearg_n_style_mem): New function.
84424
84425         * lib/quotearg.h (quotearg_n_style_mem): New function.
84426
84427 2002-01-19  Jim Meyering  <meyering@lucent.com>
84428
84429         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84430         Remove useless quotes: DF_PROG="df".
84431         * m4/strnlen.m4: New file.
84432
84433 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84434
84435         * lib/backupfile.c (ISDIGIT): Comment fix.
84436         * lib/getdate.y (ISDIGIT): Likewise.
84437         * lib/posixtm.c (ISDIGIT, year): Likewise.
84438         * lib/strverscmp.c (ISDIGIT): Likewise.
84439         * lib/userspec.c (ISDIGIT): Likewise.
84440
84441 2002-01-16  Jim Meyering  <meyering@lucent.com>
84442
84443         * lib/getdate.y: Add three semicolons, each just before a closing
84444         brace. Bison (as of version 1.31) no longer papers over that mistake.
84445
84446 2002-01-05  Jim Meyering  <meyering@lucent.com>
84447
84448         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84449
84450 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84451
84452         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84453         not silently exit merely because the output buffer happens to
84454         have nothing pending.
84455
84456 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84457
84458         See the big note in ../ChangeLog.
84459         * lib/human.c (suffixes): Prefer K to k for 1024.
84460         (generate_suffix_backwards): New function.
84461         (human_readable_inexact): Use it.
84462         * lib/xstrtol.c (__xstrtol): If there is no number but there
84463         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84464         Accept 'K' as well as 'k'.
84465
84466 2001-12-15  Jim Meyering  <meyering@lucent.com>
84467
84468         * lib/regex.h (__restrict_arr): Update from libc.
84469
84470         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84471         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84472         (STREQ): Define.
84473
84474 2001-12-14  Jim Meyering  <meyering@lucent.com>
84475
84476         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84477         Suggestion from Bruno Haible.
84478
84479 2001-12-10  Jim Meyering  <meyering@lucent.com>
84480
84481         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84482         xrealloc, Instead, include "xalloc.h".
84483         (initbuffer): Don't cast xmalloc return value to char*.
84484         (readline): Reword comment.
84485         Don't cast xrealloc return value to char*
84486         Return NULL, not 0.
84487
84488 2001-12-09  Jim Meyering  <meyering@lucent.com>
84489
84490         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84491         about `signed and unsigned type in conditional expression'.
84492         * lib/posixtm.c (posix_time_parse): Likewise.
84493
84494         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84495
84496         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84497         to avoid a pedantic warning.
84498
84499         * lib/getstr.c: Don't include assert.h.
84500         (getstr): Remove warning-evoking assertions.
84501         Return -1 if offset parameter is out of bounds.
84502         Change the type of a local from int to size_t.
84503
84504         * lib/strftime.c (my_strftime_localtime_r): Include this function
84505         definition in the `#if ! HAVE_TM_GMTOFF' block.
84506
84507         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84508         Include xalloc.h instead.
84509
84510 2001-12-02  Jim Meyering  <meyering@lucent.com>
84511
84512         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84513         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84514         included.
84515
84516         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84517         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84518
84519 2001-11-30  Akim Demaille  <akim@epita.fr>
84520
84521         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84522         before being defined.
84523
84524 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84525
84526         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84527         First arg is int, not unsigned.
84528         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84529         (SIZE_MAX, UINT_MAX): New macros.
84530         (quotearg_n_options): Abort if N is negative.
84531         Avoid overflow check on hosts where size_t is 64 bits and int
84532         is 32 bits, as overflow is impossible there.
84533         Fix off-by-one typo that caused unnecessary reallocation.
84534
84535 2001-11-27  Jim Meyering  <meyering@lucent.com>
84536
84537         * lib/tempname.c: Merge with version from libc.
84538         * lib/regex.c: Likewise.
84539
84540         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84541         systems for which STDC_HEADERS is 0, it was not included, resulting in
84542         a warning about an integer-to-pointer conversion problem with getenv.
84543         Reported by Volker Borchert.
84544
84545 2001-11-26  Jim Meyering  <meyering@lucent.com>
84546
84547         * lib/gtod.h: Remove file.
84548         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84549         * lib/gettimeofday.c: Don't include gtod.h.
84550         (GTOD_init): Remove function.
84551         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84552         Suggestion from Volker Borchert.
84553
84554 2001-11-23  Jim Meyering  <meyering@lucent.com>
84555
84556         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84557         it.
84558         * lib/hash.c (struct hash_table): Define it here instead.
84559
84560 2001-11-22  Jim Meyering  <meyering@lucent.com>
84561
84562         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84563
84564 2001-11-20  Jim Meyering  <meyering@lucent.com>
84565
84566         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84567         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84568
84569 2001-11-19  Jim Meyering  <meyering@lucent.com>
84570
84571         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84572         directory.  Use "conftestXXXXXX" as the template.
84573         Suggestion from Paul Eggert.
84574
84575         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84576         immediately, so the test doesn't mistakenly hit the max-open-files
84577         limit.
84578
84579 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84580
84581         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84582         (TEMPORARIES): New macro.
84583         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84584         removes an artificial limitation (e.g. HP-UX 10.20, where
84585         TMP_MAX is 17576).
84586
84587 2001-11-18  Jim Meyering  <meyering@lucent.com>
84588
84589         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84590
84591 2001-11-18  Jim Meyering  <meyering@lucent.com>
84592
84593         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84594         on SunOS 4.
84595
84596         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84597         files will be created before anything else.
84598
84599 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84600
84601         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84602         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84603
84604 2001-11-17  Jim Meyering  <meyering@lucent.com>
84605
84606         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84607         Prompted by a report from Bob Proulx.
84608
84609         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84610         Instead, require UTILS_FUNC_MKSTEMP.
84611
84612 2001-11-17  Jim Meyering  <meyering@lucent.com>
84613
84614         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84615         Now, that's done as part of AC_FUNC_STRTOD.
84616
84617 2001-11-17  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84620         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84621         rather than group writable.  Patch by Juan F. Codagnone.
84622
84623         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84624         xrealloc, Instead, include "xalloc.h".
84625
84626         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84627         Remove explicit declarations of xmalloc, xrealloc,
84628         and xstrdup.  Instead, include "xalloc.h".
84629
84630         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84631         unlocked-io.h.
84632         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84633         Likewise.
84634         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84635
84636         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84637         Reported by Padraig Brady.
84638
84639         * lib/mkstemp.c: #undef mkstemp.
84640         Include config.h.
84641         (rpl_mkstemp): Rename from mkstemp.
84642         Protoize.
84643
84644 2001-11-16  Jim Meyering  <meyering@lucent.com>
84645
84646         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84647         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84648         determine the amount of total physical memory, use pstat_getstatic.
84649         HPUX-11 doesn't define _SC_PHYS_PAGES.
84650         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84651         If sysconf couldn't be used to determine the amount of available
84652         physical memory, use both pstat_getstatic and pstat_getdynamic.
84653         Based on a patch from Bob Proulx.
84654
84655 2001-11-10  Jim Meyering  <meyering@lucent.com>
84656
84657         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84658         (jm_PREREQ): Use it.
84659
84660 2001-11-09  Jim Meyering  <meyering@lucent.com>
84661
84662         * m4/jm-macros.m4: Require autoconf-2.52f.
84663         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84664         Use these AC_-prefixed names, not the AM_-prefixed ones.
84665
84666         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84667
84668 2001-11-05  Jim Meyering  <meyering@lucent.com>
84669
84670         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84671
84672 2001-11-04  Jim Meyering  <meyering@lucent.com>
84673
84674         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84675         $DEFS.
84676
84677 2001-11-03  Jim Meyering  <meyering@lucent.com>
84678
84679         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84680         of AC_DEFUN.
84681
84682         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84683         know the name of the variable in the macro definition.
84684
84685 2001-11-03  Jim Meyering  <meyering@lucent.com>
84686
84687         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84688         in argmatch_to_argument call.
84689
84690         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84691         argument.
84692
84693         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84694         e.g., a fault due to an attempt to free a NULL pointer.
84695
84696 2001-11-01  Jim Meyering  <meyering@lucent.com>
84697
84698         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84699         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84700
84701 2001-11-01  Jim Meyering  <meyering@lucent.com>
84702
84703         * lib/dirfd.c, lib/dirfd.h: New files.
84704         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84705
84706         * lib/hash.c (hash_print) [TESTING]: Clean up.
84707
84708 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84709
84710         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84711         to avoid a warning if -Wall.
84712
84713 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84714
84715         * README: New file
84716         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84717         (per RMS's instructions, this is now the canonical source)
84718         * lgpl/, gpl/: New directories.
84719
84720 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84721
84722         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84723
84724 2001-10-21  Jim Meyering  <meyering@lucent.com>
84725
84726         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84727         this code would end up calling gettext even in packages built
84728         with --disable-nls.
84729         * lib/getopt.c (_): Likewise.
84730         * lib/regex.c (_): Likewise.
84731
84732 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84733
84734         * m4/error.m4 (jm_PREREQ_ERROR):
84735         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84736         AC_FUNC_STRERROR_R does that.
84737         Check for strerror declaration.
84738
84739         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84740         are supposed to have them these days.
84741         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84742         Merge changes from latest Autoconf CVS.
84743         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84744         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84745         POSIX decided to standardize on the int flavor of strerror_r.
84746
84747 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84748
84749         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84750         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84751         Use strerror_r that is only a macro, even if it is not a function.
84752         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84753         (private_strerror): Use prototypes, not old-style function definition.
84754         (print_errno_message): New function.
84755         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84756         char*-flavored one.
84757         (error_tail, error, error_at_line): Use it.
84758
84759 2001-10-11  Jim Meyering  <meyering@lucent.com>
84760
84761         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84762         and quote_n (1, ... to avoid clobbering a buffer.
84763
84764 2001-10-05  Jim Meyering  <meyering@lucent.com>
84765
84766         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84767         hash-pjw.h.
84768         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84769         * lib/hash-pjw.h: New file.
84770
84771 2001-09-30  Jim Meyering  <meyering@lucent.com>
84772
84773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84774         `struct fsstat' has the `f_fstypename' member.
84775         Use that to define FS_TYPE, which is now used to make
84776         the getfsstat link test tighter.
84777
84778 2001-09-30  Jim Meyering  <meyering@lucent.com>
84779
84780         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84781         Include <sys/ucred.h>, for Apple Darwin.
84782         Include sys/mount.h and sys/fs_types.h only if available.
84783         (FS_TYPE): Define.
84784         (read_filesystem_list): Use FS_TYPE.
84785
84786 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84787
84788         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84789         a boolean context.
84790
84791 2001-09-29  Jim Meyering  <meyering@lucent.com>
84792
84793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84794         [one-argument getmntent function]): Include stdio.h before mntent.h.
84795         SunOS 4.1.x needs it for the declaration of `FILE'.
84796         Patch by Volker Borchert.
84797
84798         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84799         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84800         sys/fs_types.h, and make the link-test for getfsstat guard #include
84801         directives with appropriate #if HAVE_*_H tests so that we can
84802         detect getfsstat on Apple Darwin1.3.7 systems.
84803         Reported by Nelson Beebe.
84804         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84805
84806 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84807
84808         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84809         #defines strtoimax.  Also treat the other strto* functions
84810         like strtoimax.
84811
84812         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84813         Check for strtoul and strtoumax,
84814         as those declarations are made even in the signed case.
84815         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84816         Likewise, for strtol and strtoimax.
84817
84818 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84819
84820         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84821         #defines strtoimax.  Also treat the other strto* functions
84822         like strtoimax.
84823
84824         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84825         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84826         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84827
84828 2001-09-26  Jim Meyering  <meyering@lucent.com>
84829
84830         Most macros in unlocked-io.h had the wrong number of arguments.
84831         * lib/gen-uio: New script.
84832         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84833         * lib/unlocked-io.hin: Remove file.
84834         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84835         rather than trying to embed it here.
84836         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84837         Reported by Padraig Brady.
84838
84839 2001-09-25  Volker Borchert  <bt@teknon.de>
84840
84841         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84842         `result'.
84843
84844 2001-09-24  Jim Meyering  <meyering@lucent.com>
84845
84846         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84847
84848 2001-09-23  Jim Meyering  <meyering@lucent.com>
84849
84850         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84851         instead of the mere test for existence of mntent.h.  The latter
84852         would get a false-positive on AIX 3.4 systems.
84853         In the outer getmntent if-block, don't die if neither of the getmntent
84854         tests succeeds.  Instead, just fall through and continue with the
84855         remaining tests.
84856
84857 2001-09-23  Jim Meyering  <meyering@lucent.com>
84858
84859         * lib/mountlist.c: Remove useless parentheses in #if directives.
84860         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84861         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84862
84863 2001-09-22  Jim Meyering  <meyering@lucent.com>
84864
84865         * m4/gettext.m4: New file.  From gettext.
84866         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84867         * m4/progtest.m4: Likewise
84868         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84869         * m4/glibc21.m4: Likewise.
84870
84871         * m4/libintl.m4: Remove.  No longer used.
84872
84873 2001-09-22  Jim Meyering  <meyering@lucent.com>
84874
84875         * lib/localcharset.c: Update from latest gettext.
84876         * lib/config.charset: Likewise.
84877
84878 2001-09-20  Jim Meyering  <meyering@lucent.com>
84879
84880         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84881         strtoimax.
84882         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84883         strtoumax.
84884
84885 2001-09-20  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/xstrtol.c (strtoimax): Guard declaration with
84888         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84889         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84890         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84891         (strtoumax): Likewise, for completeness (it wasn't necessary).
84892
84893 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84894
84895         * lib/strtoimax.c (HAVE_LONG_LONG):
84896         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84897         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84898         to work around bug in IBM C compiler.
84899
84900 2001-09-17  Jim Meyering  <meyering@lucent.com>
84901
84902         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84903         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84904         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84905         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84906         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84907         whenever the right hand side need not be expanded by the shell.
84908
84909 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84910
84911         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84912         library.  It's not correct, as some older glibcs are buggy.
84913         fnmatch wasn't fixed until glibc 2.2.
84914
84915         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84916         special shell magic here.
84917
84918 2001-09-16  Jim Meyering  <meyering@lucent.com>
84919
84920         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84921         * m4/jm-macros.m4: Require it.
84922
84923 2001-09-16  Jim Meyering  <meyering@lucent.com>
84924
84925         * lib/mkdir.c: New file.
84926
84927 2001-09-15  Jim Meyering  <meyering@lucent.com>
84928
84929         * m4/jm-macros.m4: Check for help2man.
84930
84931 2001-09-11  Jim Meyering  <meyering@lucent.com>
84932
84933         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84934         The body, by Paul Eggert, was moved here from configure.in.
84935         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84936
84937 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84938
84939         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84940         (jm_PREREQ): Use it.
84941
84942 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84943
84944         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84945         Use ssize_t, not int, to store result of readlink.
84946         Check for ssize_t overflow as well as size_t overflow,
84947         as POSIX says the result of readlink is implementation-defined
84948         when ssize_t overflows.
84949         Remove unnecessary cast to char*.
84950         Use free+malloc instead of realloc, as the storage doesn't need
84951         to be preserved and it's clearer and can be more efficient that way.
84952         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84953         * lib/xreadlink.h (xreadlink): Update prototype.
84954
84955 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84956
84957         * lib/xgetcwd.c: Revert some of the previous change; intead,
84958         fix the HAVE_GETCWD_NULL code to behave more like the
84959         !HAVE_GETCWD_NULL code used to.
84960
84961         Include "xalloc.h".
84962         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84963         invoke xalloc_die.
84964
84965 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84966
84967         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84968         sys/param.h, as pathmax.h includes them.
84969
84970 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84971
84972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84973         (jm_PREREQ_XGETCWD): New macro.
84974
84975         * m4/getcwd.m4: New file.
84976
84977 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84978
84979         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84980         like the HAVE_GETCWD_NULL code.
84981         Include pathmax.h if not HAVE_GETCWD.
84982         Do not include xalloc.h.
84983         (INITIAL_BUFFER_SIZE): New symbol.
84984         Do not use xmalloc / xrealloc, since the caller is responsible for
84985         handling errors.  Preserve errno around `free' during failure.
84986         Do not overrun buffer when using getwd.
84987
84988 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84989
84990         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84991         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84992         getcwd (NULL, 0).
84993
84994 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84995
84996         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84997         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84998         spotted by Jim Meyering.
84999
85000 2001-09-03  Jim Meyering  <meyering@lucent.com>
85001
85002         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85003         failure.
85004
85005 2001-09-02  Jim Meyering  <meyering@lucent.com>
85006
85007         * lib/error.c: Update from GNU libc.
85008
85009 2001-09-01  Jim Meyering  <meyering@lucent.com>
85010
85011         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85012         Used by df.
85013
85014 2001-09-01  Jim Meyering  <meyering@lucent.com>
85015
85016         * lib/xreadlink.c: New file.
85017         * lib/xreadlink.h: New file.
85018         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85019         xreadlink.h.
85020
85021         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85022         doesn't conflict with sparc Solaris 7's definition in
85023         /usr/include/sys/int_types.h.
85024
85025         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85026         files.
85027         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85028         and strncasecmp as r-values.  Unixware didn't have declarations.
85029
85030 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85031
85032         * lib/xstrtol.h: Add copyright notice.
85033         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85034         LONGINT_INVALID_SUFFIX_CHAR.
85035
85036 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85037
85038         * lib/xstrtol.c (strtoimax): New decl.
85039
85040 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85041
85042         * lib/xgetcwd.c: Don't include pathmax.h.
85043         Include stdlib.h and unistd.h if available.
85044         Include xalloc.h.
85045         (xmalloc, xstrdup, free): Remove decls.
85046         (xgetcwd): Don't assume sizes fit in unsigned.
85047         Check for overflow when computing sizes.
85048         Simplify reallocation code.
85049
85050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85051
85052         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85053         a directory's st_size can have an arbitrary value, so the old
85054         usage could waste an arbitrary amount of memory.  All uses
85055         changed.
85056         * lib/savedir.h: Update prototype.
85057
85058 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85059
85060         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85061
85062         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85063         old strtoimax.c.
85064
85065         Also, make the following further changes to make this file's
85066         configuration more similar to that of strtol.c:
85067         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85068         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85069         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85070         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85071         changed to signed values.
85072
85073         And make the following changes as well:
85074         Fix copyright notice, as 1999 was missing.
85075         (verify): New macro.
85076         (strtoimax): Check sizes at compile-time, not run-time.
85077         Prefer strtol to strtoll if both work.
85078         (main): Remove; it was not that useful and was a pain to maintain.
85079
85080         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85081
85082 2001-08-31  Jim Meyering  <meyering@lucent.com>
85083
85084         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85085         Use an initial, malloc'd, buffer of length 128 rather than
85086         a statically allocated one of length 1024.
85087
85088 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85089
85090         Simplify code, partly by assuming autoconf 2.52 semantics.
85091
85092         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85093
85094         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85095         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85096         All uses removed.
85097         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85098         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85099         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85100         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85101         jm_AC_HEADER_INTTYPES_H.
85102         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85103
85104         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85105
85106         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85107         Quote first arg of AC_DEFUN.
85108         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85109         since they are needed to parse the include file even if we need
85110         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85111         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85112         but with opposite signedness.
85113
85114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85115
85116         Merge 'exclude' changes from tar 1.13.22.
85117         This fixes one or two unlikely storage allocation overflow bugs,
85118         but doesn't change user-visible behavior otherwise.
85119
85120 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85121
85122         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85123         (jm_PREREQ_EXCLUDE): New macro.
85124
85125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85126
85127         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85128         tm to be declared.
85129
85130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85131
85132         * lib/hash.c: Remove '2001' from copyright notice.
85133
85134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85135
85136         * lib/full-write.h: New file.
85137         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85138         * lib/full-write.c: Correct credits, as cccp.c no longer
85139         exists and anyway it was so heavily changed from the old cccp
85140         code as to be unrecognizable.  Include full-write.h.
85141         (full_write): Return size_t, with short writes meaning failure.
85142         All callers changed.  This fixes a bug with large buffers
85143         on 64-bit hosts.
85144         * lib/utime.c: Include full-write.h.
85145
85146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85147
85148         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85149         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85150         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85151         Include if available.
85152         (<xalloc.h>): Include
85153         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85154         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85155         collide with FNM macros.
85156         (struct patopts): New struct.
85157         (struct exclude): Use it, as exclude patterns now come with options.
85158         (new_exclude): Support above changes.
85159         (new_exclude, add_exclude_file):
85160         Initial size must now be a power of two to simplify overflow checking.
85161         (free_exclude, fnmatch_no_wildcards): New function.
85162         (excluded_filename): No longer requires options arg, as the options
85163         are determined by add_exclude.  Now returns bool, not int.
85164         (excluded_filename, add_exclude):
85165         Add support for the fancy new exclusion options.
85166         (add_exclude, add_exclude_file): Now takes int options arg.
85167         Check for arithmetic overflow when computing sizes.
85168         (add_exclude_file): xrealloc might modify errno, so don't
85169         realloc until after errno might be used.
85170
85171         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85172         New macros.
85173         (free_exclude): New decl.
85174         (add_exclude, add_exclude_file): Now takes int options arg.
85175         (excluded_filename): No longer requires options arg, as the options
85176         are determined by add_exclude.  Now returns bool, not int.
85177
85178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85179
85180         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85181
85182 2001-08-27  Jim Meyering  <meyering@lucent.com>
85183
85184         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85185
85186         * lib/version-etc.c (N_): Remove definition.
85187         Revert most of last change.
85188         Instead, simply don't mark the `Copyright...' string for translation.
85189         Based on advice from Paul Eggert.
85190
85191         * lib/strtoxmax.c: Tweak comment.
85192
85193 2001-08-26  Jim Meyering  <meyering@lucent.com>
85194
85195         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85196
85197         * m4/xstrtoimax.m4: New file.
85198         * m4/xstrtoumax.m4: Add comments explaining why we
85199         AC_REPLACE_FUNCS(strtol).
85200
85201 2001-08-26  Jim Meyering  <meyering@lucent.com>
85202
85203         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85204         of copyright with `%s' so translators don't get an untranslated
85205         message in 2002.
85206         (COPYRIGHT_YEAR): Define.
85207         (version_etc): Use fprintf rather than fputs.
85208         Suggestion from Ulrich Drepper.
85209
85210         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85211
85212         * lib/strtoll.c: New file, from GNU libc.
85213         * lib/xstrtoimax.c: New file.
85214
85215         * lib/xstrtol.h: Add xstrtoimax.
85216         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85217         * lib/strtoimax.c: New file.  Likewise, but first define
85218         STRTOUXMAX_SIGNED.
85219
85220         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85221         ...
85222         * lib/strtoxmax.c: ... then renamed to this.
85223
85224 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85225
85226         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85227         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85228         (jm_AC_TYPE_INTMAX_T): New macro.
85229         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85230
85231         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85232
85233         * m4/longlong.m4: Renamed from ulonglong.m4.
85234         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85235         * m4/uintmax_t.m4: Removed.
85236
85237 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85238
85239         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85240         Port to Solaris 8, where 'sed' requires a space after the 'r'
85241         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85242         Redirect output to $tmp just once.
85243
85244 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85245
85246         * lib/addext.c (<errno.h>): Include.
85247         (errno): Declare if not defined.
85248         (addext): Work correctly when pathconf returns -1 and leaves
85249         errno alone because there is no limit.  Also, work even if
85250         pathconf returns a value greater than SIZE_MAX.
85251
85252 2001-08-12  Jim Meyering  <meyering@lucent.com>
85253
85254         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85255         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85256         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85257         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85258         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85259         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85260         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85261         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85262         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85263         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85264         utime.m4, utimes.m4, xstrtoumax.m4:
85265         Quote the first argument in each use of AC_DEFUN.
85266
85267 2001-08-12  Jim Meyering  <meyering@lucent.com>
85268
85269         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85270         Simply `return getcwd (NULL, 0);'.
85271         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85272         Use 1300 as initial value for length, not PATH_MAX.
85273
85274         * lib/pathmax.h: Clean up cpp syntax.
85275
85276 2001-08-12  Jim Meyering  <meyering@lucent.com>
85277
85278         * lib/gettimeofday.c: New file.
85279         * lib/gtod.h: New file.
85280         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85281
85282 2001-08-05  Jim Meyering  <meyering@lucent.com>
85283
85284         * m4/jm-macros.m4: Require autoconf-2.52.
85285
85286 2001-08-04  Jim Meyering  <meyering@lucent.com>
85287
85288         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85289         stmt, to get in sync with glibc.
85290
85291 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85292
85293         The following changes are from gettext 0.10.39 as maintained by
85294         Bruno Haible.
85295
85296         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85297         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85298         with inverted sense.  All uses changed.
85299
85300         * lib/mbswidth.c: Don't include <limits.h>.
85301         Include <stdlib.h> and <string.h> unconditionally.
85302         (iswcntrl, mbsinit, ISCNTRL): New macros.
85303         (mbsnwidth): Use K&R style function declarations.
85304         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85305         can optimize it when MB_CUR_MAX == 1.
85306         The width of control characters is zero, not 1.
85307
85308 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85309
85310         The following changes are from gettext 0.10.39 as maintained by
85311         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85312
85313         * m4/codeset.m4: Upgrade to serial AM1.
85314         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85315         all uses changed.  Quote first arg of AC_DEFUN.
85316         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85317
85318         * m4/iconv.m4: Upgrade to serial AM2.
85319         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85320         Add --with-libconv-prefix.
85321         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85322         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85323         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85324         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85325         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85326
85327         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85328         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85329         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85330         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85331         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85332         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85333         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85334         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85335         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85336
85337         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85338         string.h any more.
85339
85340         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85341         not the default value.
85342
85343         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85344         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85345         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85346         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85347         Also check for iswcntrl, used for wcwidth fallback.
85348         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85349         to Autoconf 2.13.
85350
85351 2001-08-03  Jim Meyering  <meyering@lucent.com>
85352
85353         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85354         as it was in the original.  Reported by Paul Eggert.
85355
85356 2001-07-16  Jim Meyering  <meyering@lucent.com>
85357
85358         * m4/gettimeofday.m4: New file.
85359         Prompted by a report from Bernhard Baehr.
85360
85361 2001-07-15  Jim Meyering  <meyering@lucent.com>
85362
85363         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85364         stuff. Now it's in ../Makefile.cfg.
85365
85366 2001-07-15  Jim Meyering  <meyering@lucent.com>
85367
85368         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85369         (BUILT_SOURCES): Add unlocked-io.h.
85370         (io_functions): Define.
85371         (unlocked-io.h): New rule.
85372         (DISTCLEANFILES): Add unlocked-io.h.
85373         (all-local): Depend on unlocked-io.h, to ensure it is created.
85374
85375         * lib/unlocked-io.hin: New file
85376
85377         * lib/regex.c: Update from glibc.
85378
85379 2001-07-05  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85382         recommendation.
85383         (libfetish_a_SOURCES): Put all .h files here instead.
85384         Remove a thus-exposed (better checks in automake) duplicate and
85385         two unnecessary .h files.
85386
85387 2001-07-04  Jim Meyering  <meyering@lucent.com>
85388
85389         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85390         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85391         distcheck failure.
85392
85393 2001-07-02  Jim Meyering  <meyering@lucent.com>
85394
85395         The following changes were prompted by suggestions from Bruno Haible.
85396
85397         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85398         is now generated.
85399         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85400         definition of EXTRA_DIST.
85401         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85402         ensure that the generated file is created/updated whenever the list
85403         of $(unlocked_functions) is changed.
85404         (jm-glibc-io.m4): New rule.
85405         (unlocked-io.h): New rule -- currently unused.
85406
85407 2001-06-24  Jim Meyering  <meyering@lucent.com>
85408
85409         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85410         unmatched right bracket, rather than kludging it with an extra,
85411         falsely-matching quote in a comment.  Patch by Akim Demaille.
85412
85413 2001-06-11  Jim Meyering  <meyering@lucent.com>
85414
85415         * lib/regex.c: Update from GNU libc.
85416
85417 2001-05-27  Jim Meyering  <meyering@lucent.com>
85418
85419         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85420         Check for ut_type in struct utmp.
85421
85422 2001-05-27  Jim Meyering  <meyering@lucent.com>
85423
85424         * lib/readutmp.h (UT_TYPE): Define.
85425
85426 2001-05-24  Jim Meyering  <meyering@lucent.com>
85427
85428         * lib/argmatch.c: Include "quote.h".
85429         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85430         quote function.  Reported by Göran Uddeborg.
85431
85432 2001-05-22  Jim Meyering  <meyering@lucent.com>
85433
85434         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85435         now that we use the package-supplied version unconditionally.
85436         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85437
85438 2001-05-21  Jim Meyering  <meyering@lucent.com>
85439
85440         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85441         shell syntax errors.
85442
85443 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85444
85445         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85446
85447 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85448
85449         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85450         Don't bother to check library strftime, since
85451         we'll be using our own my_strftime function anyway.
85452         Define my_strftime instead of strftime.
85453
85454 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85455
85456         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85457         which is not yet declared.
85458
85459 2001-05-15  Jim Meyering  <meyering@lucent.com>
85460
85461         * m4/regex.m4: Use proper quoting so brackets appear in the test
85462         program.
85463         Reported by, and with help from, Bruno Haible.
85464
85465 2001-05-13  Jim Meyering  <meyering@lucent.com>
85466
85467         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85468         undefined.
85469
85470 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85471
85472         dirname code cleanup.  base_name now behaves more compatibly
85473         with POSIX basename when given file names that have trailing
85474         slashes, and similarly for dir_name.  Add new primitives
85475         base_len and dir_len.  Put the directory-name-related decls
85476         into dirname.h.
85477
85478         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85479         * lib/backupfile.c (base_name): Likewise.
85480         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85481         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85482         * lib/makepath.c (strip_trailing_slashes): Likewise.
85483         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85484         ISSLASH): Likewise.
85485         * lib/rename.c (strip_trailing_slashes): Likewise.
85486         * lib/same.c (base_name): Likewise.
85487         * lib/stripslash.c (ISSLASH): Likewise.
85488
85489         * lib/addext.c: Include <dirname.h> after size_t is defined.
85490         * lib/backupfile.c: Likewise.
85491
85492         * lib/addext.c (addext): Use base_len to trim redundant
85493         trailing slashes instead of doing it ourselves.
85494         But do not trim the last slash if it is not redundant.
85495
85496         * lib/backupfile.c (find_backup_file_name,
85497         max_backup_version): Use base_len instead of rolling it ourselves.
85498         Handle the case of "" and (on DOS) "C:" correctly.
85499
85500         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85501         needed. Include <string.h>, <dirname.h>.
85502         (base_name): Allow file names ending in slashes, other than names
85503         that are all slashes.  In this case, return the basename followed
85504         by the slashes.  This is more general, and can be used in places
85505         where the original base_name purposely had an assertion failure.
85506         (base_len): New function.
85507
85508         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85509         Do not include <assert.h>; no longer needed.
85510         Include xalloc.h.
85511         (memrchr): Remove decl.
85512         (dir_name_r): Remove.
85513         (dir_len): Renamed from dirlen.  All callers changed.
85514         Rewrite in terms of base_name, for simplicity and consistency.
85515         (dir_name): Never return NULL.  All callers changed.
85516         Do not include <stdlib.h> in test program; no longer needed.
85517         return 0; is fine for test program.
85518
85519         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85520         New macros.
85521         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85522
85523         * lib/path-concat.c (path_concat): Use base_len to compute
85524         base length, not strlen; this means we cannot rely on memcpy
85525         to null-terminate.
85526
85527         * lib/same.c (STREQ): Remove.
85528         (same_name): Handle the case where the basename ends in trailing '/'.
85529
85530         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85531         a slash was stripped.  Do not strip the last slash after a
85532         file system prefix.
85533
85534 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85535
85536         * lib/Makefile.am (libfetish_a_SOURCES):
85537         Add strftime.c, since we now compile it on all hosts.
85538
85539         * lib/strftime.c (my_strftime):
85540         Define to nstrftime if emacs, but only if my_strftime is not defined.
85541         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85542         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85543         Add one more extra argument: a nanoseconds value.
85544         All uses changed.
85545         (ns): New macro.
85546         (my_strftime function): Add %N format.
85547         (emacs_strftimeu): Renamed from emacs_strftime,
85548         with extra ut argument.
85549
85550 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85551
85552         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85553
85554 2001-04-21  Jim Meyering  <meyering@lucent.com>
85555
85556         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85557         doesn't interfere.
85558
85559 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85560
85561         * m4/ftruncate.m4: Check for chsize.
85562         Link with ftruncate.o unconditionally if ftruncate is missing.
85563         This was required when cross-compiling to i586-mingw32msvc.
85564
85565 2001-04-08  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85568         recomputed; that's necessary when the offset spans a DST transition.
85569         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85570
85571 2001-04-02  Jim Meyering  <meyering@lucent.com>
85572
85573         * lib/regex.h, regex.c: Update from GNU libc.
85574
85575 2001-03-24  Jim Meyering  <meyering@lucent.com>
85576
85577         * m4/jm-macros.m4: Require autoconf-2.49d.
85578
85579 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85580
85581         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85582
85583 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85584
85585         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85586
85587 2001-03-17  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85590         now that the version in autoconf is equivalent.
85591         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85592
85593         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85594         Suggestion from Akim Demaille.
85595
85596         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85597         (jm_PREREQ_TEMPNAME): New function.
85598
85599 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85600
85601         * lib/tempname.c (uint64_t): Define to uintmax_t if
85602         not defined, and if UINT64_MAX is not defined.
85603         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85604         Reported by John David Anglin.
85605
85606 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85607
85608         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85609         resolve alias if codeset is empty.
85610         * lib/config.charset (BeOS): Use wildcard syntax.
85611
85612 2001-03-13  Jim Meyering  <meyering@lucent.com>
85613
85614         * lib/path-concat.c (path_concat)
85615         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85616         concatenating e.g., `C:' and `foo'.
85617         From Bruno Haible.
85618
85619 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85620
85621         * lib/localcharset.c (locale_charset): Don't use
85622         setlocale(LC_CTYPE,NULL). Don't return NULL.
85623         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85624
85625 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85626
85627         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85628         support for DOS/DJGPP.
85629
85630 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85631
85632         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85633         lacks mkstemp.  Compile our own tempname.c if we compile our own
85634         mkstemp.c, as mkstemp relies on tempname.
85635
85636 2001-03-01  Jim Meyering  <meyering@lucent.com>
85637
85638         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85639         AH_VERBATIM really does output its argument verbatim.
85640
85641 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85642
85643         * lib/Makefile.am (libfetish_a_SOURCES):
85644         Add dup-safer.c, fopen-safer.c.
85645         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85646
85647         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85648         * lib/unistd-safer.h: New files.
85649
85650 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85651
85652         The mkstemp replacement is taken from glibc 2.2.2, with some
85653         portability fixes for use outside glibc, as follows:
85654
85655         * lib/tempname.c (struct_stat64): New macro.
85656         (direxists, __gen_tempname): Use it.
85657         This avoids a portability problem with Solaris 8.
85658
85659         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85660         (<stddef.h>, <stdint.h>, <string.h>):
85661         Include only if STDC_HEADERS || _LIBC.
85662         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85663         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85664         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85665         (__set_errno): Define this macro if <errno.h> doesn't.
85666         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85667         Define these macros if <stdio.h> doesn't.
85668         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85669         Define these macros if <sys/stat.h>
85670         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85671         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85672         __xstat64): Define if not _LIBC.
85673         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85674         (__gen_tempname): Invoke gettimeofday only if
85675         HAVE_GETTIMEOFDAY || _LIBC;
85676         otherwise, fall back on plain "time".
85677         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85678
85679         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85680
85681         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85682
85683 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85684
85685         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85686
85687 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85688
85689         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85690         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85691         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85692         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85693
85694 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85695
85696         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85697         Remove workaround macros for hosts that have mbrtowc but not
85698         mbstate_t, as we now insist on proper declarations for both
85699         before using mbrtowc.
85700
85701 2001-02-17  Jim Meyering  <meyering@lucent.com>
85702
85703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85704         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85705         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85706         UnixWare 7.1.1.
85707
85708         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85709         rather than AC_CACHE_VAL.
85710
85711 2001-02-17  Jim Meyering  <meyering@lucent.com>
85712
85713         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85714         around included file name.
85715
85716         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85717
85718         * lib/strftime.c: Update from GNU libc (the only changes were to
85719         comments).
85720
85721 2001-02-17  Jim Meyering  <meyering@lucent.com>
85722
85723         * lib/regex.c: Update from libc.
85724
85725 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85726
85727         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85728         clash.
85729
85730 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85731
85732         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85733         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85734         Reported by Mark Hounschell via Paul Eggert.
85735
85736 2001-02-07  Jim Meyering  <meyering@lucent.com>
85737
85738         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85739
85740 2001-02-05  Jim Meyering  <meyering@lucent.com>
85741
85742         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85743         it includes the patch required for `large file' support with at least
85744         HP-UX's 10.20 /bin/cc.
85745
85746 2001-02-03  Jim Meyering  <meyering@lucent.com>
85747
85748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85749         AS_IF, now that it works once again (mysteriously).
85750         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85751
85752 2001-01-30  Jim Meyering  <meyering@lucent.com>
85753
85754         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85755         * m4/chown.m4: Rename conftestchown to conftest.chown.
85756         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85757         s/conftestdir2/conftest.d2/.
85758         * m4/utimes.m4: s/conftestdata/conftest.data/
85759         Inspired by Pavel Roskin's change in autoconf.
85760
85761 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85762
85763         * lib/config.charset: Update for FreeBSD 4.2.
85764
85765 2001-01-27  Jim Meyering  <meyering@lucent.com>
85766
85767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85768         a use of AS_IF.
85769         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85770
85771 2001-01-26  Jim Meyering  <meyering@lucent.com>
85772
85773         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85774         quotearg.c includes it.
85775
85776 2001-01-26  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/quotearg.c: Include stddef.h.
85779         * lib/quote.c: Include stddef.h.
85780         Reported by Axel Kittenberger.
85781
85782         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85783         line in double quotes so that it evokes a better diagnostic.
85784         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85785         Reported by Axel Kittenberger.
85786
85787 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85788
85789         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85790         as if it was a `charset'.
85791
85792 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85793
85794         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85795         has const.
85796
85797 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85798
85799         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85800         to avoid a warning.  Add back 'const' to inptr.
85801
85802 2001-01-20  Jim Meyering  <meyering@lucent.com>
85803
85804         Be sure that headers are checked before used in code compiled
85805         for the type checks.
85806         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85807         In place of that, invoke jm_CHECK_ALL_TYPES.
85808         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85809         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85810         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85811         The check for ssize_t was mistakenly run before the test for unistd.h.
85812
85813         The configure-time check for stdbool.h was missing.
85814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85815         (jm_PREREQ_HASH): New function.
85816
85817 2001-01-17  Jim Meyering  <meyering@lucent.com>
85818
85819         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85820         for autoconf-2.49c.
85821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85822
85823 2001-01-16  Jim Meyering  <meyering@lucent.com>
85824
85825         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85826         From Bruno Haible.
85827
85828 2001-01-14  Jim Meyering  <meyering@lucent.com>
85829
85830         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85831         foo and bar.  Create conftestdir/ in the script, not in the C code.
85832         Remove directories in the script, not in the C code.
85833         Remove conftestdir{,2} before trying to create the directory.
85834         Make the entire configure script fail if the mkdir fails.
85835
85836 2001-01-14  Jim Meyering  <meyering@lucent.com>
85837
85838         * lib/rename.c: New file.  From Volker Borchert.
85839         Include stdlib.h, string.h or strings.h, and xalloc.h.
85840         Use strip_trailing_slashes rather than open-coding it.
85841
85842 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85843
85844         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85845
85846 2001-01-03  Jim Meyering  <meyering@lucent.com>
85847
85848         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85849         of local `inptr' to avoid warning with some system declarations of
85850         iconv.
85851
85852 2001-01-02  Volker Borchert  <bt@teknon.de>
85853
85854         * m4/rename.m4: New file.
85855         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85856
85857 2001-01-01  Jim Meyering  <meyering@lucent.com>
85858
85859         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85860         even on systems with utmpx.h.  It's necessary for the declaration of
85861         utmp's ut_user member.  Reported by Andreas Jaeger.
85862
85863         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85864         available. They are required for the declarations of getgrgid and
85865         getpwuid resp.
85866         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85867         Reported by Andreas Jaeger.
85868
85869 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85870
85871         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85872         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85873         so `make install' also works in VPATH builds.
85874
85875 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85876
85877         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85878         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85879         can be used in subdirectories.
85880
85881 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85882
85883         * lib/modechange.c: Do not assume that mode_t uses the
85884         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85885         the other-execute bit of FOO even if S_IXOTH != 1.
85886
85887         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85888         WOTH, XOTH, ALLM): New macros.
85889         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85890          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85891         Use them.
85892         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85893         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85894         (mode_compile):
85895         No need to use uintmax_t; unsigned long is long enough.
85896         Don't bother to get suffix since we don't use it.
85897
85898 2000-12-26  Jim Meyering  <meyering@lucent.com>
85899
85900         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85901         better with autoheader.
85902
85903 2000-12-24  Jim Meyering  <meyering@lucent.com>
85904
85905         * lib/hash.c (is_prime): Return explicit boolean values.
85906         (hash_get_first): Return NULL to appease Irix5.6's 89.
85907         Reported by Nelson Beebe.
85908
85909 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85910
85911         * lib/localcharset.c (locale_charset): Add support for Win32.
85912
85913 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85914
85915         * lib/physmem.h, lib/physmem.c: New files.
85916
85917         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85918         (noinst_HEADERS): Add physmem.h.
85919
85920         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85921         't' for compatibility with Solaris 8 sort.
85922
85923 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85924
85925         * lib/config.charset: Add support for BeOS.
85926
85927 2000-12-17  Jim Meyering  <meyering@lucent.com>
85928
85929         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85930         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85931
85932 2000-12-16  Jim Meyering  <meyering@lucent.com>
85933
85934         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85935         N and M) would have treated it like `chown N:N FILE'.
85936
85937         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85938
85939 2000-12-16  Jim Meyering  <meyering@lucent.com>
85940
85941         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85942         SHELLS_FILE to a file name that's useful on djgpp systems.
85943         Include stdlib.h.
85944         (ADDITIONAL_DEFAULT_SHELLS): Define.
85945         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85946         Based mostly on a patch from Prashant TR.
85947
85948 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85949
85950         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85951         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85952         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85953
85954 2000-12-08  Andreas Schwab  <schwab@suse.de>
85955
85956         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85957         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85958
85959 2000-12-07  Jim Meyering  <meyering@lucent.com>
85960
85961         * lib/stripslash.c (ISSLASH): Define.
85962         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85963         `/'.
85964         From Prashant TR.
85965
85966         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85967         (dir_name_r): Declare this function as static.
85968         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85969         manifest itself on a name containing a mix of slashes and
85970         backslashes.
85971         Make this function work with names starting with a DOS-style
85972         drive letter and colon prefix.
85973         (dir_name): Append `.' if necessary.
85974         Based mostly on patches from Prashant TR and Eli Zaretskii.
85975
85976         * lib/dirname.h (dir_name_r): Remove prototype.
85977
85978 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85979
85980         * m4/off_t-format.m4: Remove this file.
85981         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85982
85983 2000-12-06  Jim Meyering  <meyering@lucent.com>
85984
85985         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85986         replacement strtoull, we may well need the replacement strtoul, too.
85987         Check for declarations of strtoul and strtoull.
85988         Check for strtol.  Mainly as a cue to cause automake to include
85989         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85990         Check for limits.h -- strtol.c needs it.
85991
85992 2000-12-05  Jim Meyering  <meyering@lucent.com>
85993
85994         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85995
85996 2000-12-04  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85999         Also include memory.h, stdlib.h, unistd.h if appropriate.
86000         Reported by Andreas Jaeger (conflicting declaration of malloc).
86001
86002 2000-12-02  Jim Meyering  <meyering@lucent.com>
86003
86004         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86005         * m4/jm-macros.m4 (jm_MACROS): require it.
86006
86007 2000-12-02  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86010
86011 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86012
86013         * lib/memrchr.c: Include <config.h> before any system include file.
86014
86015 2000-11-30  Jim Meyering  <meyering@lucent.com>
86016
86017         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86018
86019 2000-11-30  Jim Meyering  <meyering@lucent.com>
86020
86021         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86022
86023 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86024
86025         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86026
86027 2000-11-26  Jim Meyering  <meyering@lucent.com>
86028
86029         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86030
86031 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86032
86033         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86034         size of (size_t) -1; it's not portable.
86035
86036 2000-11-17  Jim Meyering  <meyering@lucent.com>
86037
86038         * lib/strstr.c: Update from GNU libc.
86039
86040 2000-11-17  Akim Demaille  <akim@epita.fr>
86041
86042         * lib/obstack.h: Formatting changes.
86043         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86044         prevent type checking.
86045         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86046         cast the value to (void *): assigning a `foo *' to a `void *'
86047         variable is valid.
86048         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86049
86050 2000-11-16  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86053
86054 2000-11-11  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86057
86058 2000-11-10  Jim Meyering  <meyering@lucent.com>
86059
86060         * lib/obstack.h: Update from GNU libc.
86061         * lib/obstack.c: Likewise.
86062
86063 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86064
86065         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86066
86067 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86068
86069         * lib/getusershell.c (setusershell): Use rewind rather than
86070         fseek/fseeko, to avoid configuration hassles with fseeko.
86071         Don't bother opening SHELLS_FILE if shellstream is NULL;
86072         it's not necessary.
86073
86074 2000-11-05  Jim Meyering  <meyering@lucent.com>
86075
86076         * lib/makepath.h (make_dir): Declare.
86077         * lib/makepath.c (make_dir): Remove `static' attribute.
86078         Tweak a comment.
86079
86080 2000-11-04  Jim Meyering  <meyering@lucent.com>
86081
86082         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86083
86084 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86085
86086         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86087         last one in a bucket, advance to the next bucket.
86088
86089 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86090
86091         * lib/fnmatch.c: Do not comment out all the code if we are using
86092         the GNU C library, because in some cases we are replacing buggy
86093         code in the GNU C library itself.
86094
86095 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86096
86097         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86098         (regex_compile): Catch bogus \(\1\).
86099
86100 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86101
86102         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86103         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86104         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86105
86106 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86107
86108         * lib/error.h, getline.h, modechange.h:
86109         Remove "2000" from Copyright line, as the file hasn't been
86110         changed this year other than in the copyright notice.
86111
86112         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86113         was changed this year.
86114
86115 2000-10-29  Jim Meyering  <meyering@lucent.com>
86116
86117         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86118         renaming.
86119         * m4/ls-mntd-fs.m4: Likewise
86120
86121 2000-10-29  Jim Meyering  <meyering@lucent.com>
86122
86123         * lib/xstat.in: Fix grammar in comment.
86124
86125 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86126
86127         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86128         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86129         doesn't define __restrict_arr.
86130
86131 2000-10-28  Jim Meyering  <meyering@lucent.com>
86132
86133         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86134         (jm_PREREQ_MEMCHR): New function.
86135
86136 2000-10-28  Jim Meyering  <meyering@lucent.com>
86137
86138         * lib/memchr.c: Update from libc.
86139         Adjust for portability:
86140         [HAVE_STDLIB_H]: Include stdlib.h.
86141         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86142         Undef __memchr, too.
86143         [!weak_alias]: Define __memchr to memchr.
86144
86145         * lib/regex.c: Update from libc.
86146         * lib/regex.h: Likewise.
86147         * lib/getopt1.c: Likewise.
86148         * lib/memcmp.c: Likewise.
86149
86150         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86151         Avoid using fseek, when possible -- it's broken by design.
86152         Patch by Ulrich Drepper.
86153
86154 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86155
86156         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86157         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86158         Giving in to popular pressure to shut up the compiler with casts.
86159
86160 2000-10-26  Jim Meyering  <meyering@lucent.com>
86161
86162         * lib/strftime.c: Update from libc.
86163
86164 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86165
86166         * regex.c: More `unsigned char' -> `re_char' changes.
86167         Also change several `int' into `re_wchar_t'.
86168         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86169         (PUSH_FAILURE_POINTER): Don't cast any more.
86170         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86171         We want GCC to complain, since this piece of code makes
86172         re_match non-reentrant, which *should* be fixed.
86173         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86174         (EXTEND_BUFFER): Use RETALLOC.
86175         (SET_LIST_BIT): Don't cast.
86176         (re_wchar_t): New type.
86177         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86178         that those two functions will always properly return.
86179         (IMMEDIATE_QUIT_CHECK): Cast to void.
86180         (analyse_first): Use recursion rather than an explicit stack.
86181         (re_compile_fastmap): Can't fail anymore.
86182         (re_search_2): Don't check re_compile_fastmap for failure.
86183         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86184         Now also sets the new value (passed in a new argument).
86185         (re_match_2_internal): Use it.
86186         Also, use a new var `reg' of type size_t when looping through regs
86187         rather than reuse the inappropriate `mcnt'.
86188
86189 2000-10-25  Jim Meyering  <meyering@lucent.com>
86190
86191         * lib/obstack.c: Update from libc.
86192
86193 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86194
86195         * regex.c (regex_compile): Change the way of handling a range from
86196         a char less than 256 to a char not less than 256.
86197
86198 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86199
86200         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86201         NT-Emacs only.
86202         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86203         so that re_search functions only quit when callers expect them to.
86204
86205 2000-10-23  Jim Meyering  <meyering@lucent.com>
86206
86207         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86208         wrong.  That set_locale call must not have any side effects.
86209         From Paul Eggert.
86210
86211 2000-10-22  Jim Meyering  <meyering@lucent.com>
86212
86213         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86214         [CYCLIC]: Remove now-unused definition.
86215
86216         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86217         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86218         Suggestion from Ulrich Drepper.
86219
86220 2000-10-21  Jim Meyering  <meyering@lucent.com>
86221
86222         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86223         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86224         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86225
86226 2000-10-21  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/dirname.c (memrchr): Declare if necessary.
86229         (dir_name): Remove the restriction that there be no
86230         trailing slashes.  Now, this code skips past them, effectively
86231         ignoring them.
86232         [TEST_DIRNAME] (main): New unit tests.
86233
86234         * lib/memrchr.c: New file from GNU libc.
86235         Undef __memrchr, too.
86236         [!weak_alias]: Define __memrchr to memrchr.
86237         Guard weak_alias use with `#ifdef weak_alias'.
86238
86239 2000-10-21  Jim Meyering  <meyering@lucent.com>
86240
86241         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86242         (dir_name): Use dir_name_r.
86243         * lib/dirname.h (dir_name_r): Declare it.
86244
86245 2000-10-17  Jim Meyering  <meyering@lucent.com>
86246
86247         * lib/quote.h (PARAMS): Define and use.
86248         Reported by Akim Demaille.
86249
86250         * lib/getopt.c: Update from libc.
86251
86252 2000-10-16  Jim Meyering  <meyering@lucent.com>
86253
86254         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86255         setlocale.
86256         From Jan Fedak.
86257
86258 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86259
86260         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86261
86262 2000-09-25  Jim Meyering  <meyering@lucent.com>
86263
86264         * lib/md5.h (rol): Define (from GnuPG).
86265
86266         * lib/sha.c: Give credit (GnuPG) where due.
86267         (M): Use rol rather than open-coding it.
86268         Add a FIXME comment.
86269
86270 2000-09-21  Jim Meyering  <meyering@lucent.com>
86271
86272         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86273         Reported by Michael Stone.
86274
86275 2000-09-20  Jim Meyering  <meyering@lucent.com>
86276
86277         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86278         (noinst_HEADERS): Add sha.h.
86279         Based on code from Scott G. Miller and from GnuPG.
86280
86281 2000-09-18  Jim Meyering  <meyering@lucent.com>
86282
86283         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86284         LIBS. Otherwise, everyone ends up linking with -lelf for some
86285         configurations.
86286         Reported by Mike Stone.
86287
86288 2000-09-15  Jim Meyering  <meyering@lucent.com>
86289
86290         * lib/regex.c: Update from libc.
86291
86292 2000-09-10  Jim Meyering  <meyering@lucent.com>
86293
86294         * lib/getopt.c (_getopt_internal): Update from glibc.
86295
86296 2000-09-09  Jim Meyering  <meyering@lucent.com>
86297
86298         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86299         think it should be used as a general replacement for isascii.
86300         * lib/fnmatch.c: Likewise.
86301         * lib/mbswidth.c: Likewise
86302         * lib/regex.c: Likewise.
86303
86304         Don't use atoi.
86305         * lib/userspec.c: Include sys/param.h and limits.h.
86306         Include xstrtol.h.
86307         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86308         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86309         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86310         UID, GID.  Check range.
86311
86312 2000-09-06  Jim Meyering  <meyering@lucent.com>
86313
86314         * lib/getopt.c (_getopt_internal): Update from glibc.
86315
86316 2000-08-30  Jim Meyering  <meyering@lucent.com>
86317
86318         * lib/strftime.c: Merge in changes from GNU libc.
86319
86320 2000-08-26  Jim Meyering  <meyering@lucent.com>
86321
86322         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86323         * m4/fpending.m4: New file.
86324
86325 2000-08-26  Jim Meyering  <meyering@lucent.com>
86326
86327         * lib/closeout.c: Include "__fpending.h".
86328         (close_stdout_status): Return right away if there's nothing to flush.
86329
86330         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86331         * lib/__fpending.c: New file.
86332         * lib/__fpending.h: New file.
86333
86334 2000-08-20  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86337         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86338         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86339
86340 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86341
86342         Improve fileutils installation on systems where running
86343         programs (like install) can't be unlinked.
86344         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86345         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86346
86347 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86348
86349         Standardize on "memory exhausted" instead of "Memory exhausted"
86350         or "virtual memory exhausted".
86351         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86352         "virtual memory exhausted".
86353         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86354         our own message.
86355         * lib/userspec.c (parse_user_spec): Likewise.
86356         * lib/bumpalloc.h: comment fix
86357         * lib/same.c, userspec.c: Include xalloc.h.
86358
86359         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86360         not char *const and pointing to a constant array.
86361         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86362         (xrealloc): Comment fix.
86363
86364         * lib/userspec.c (parse_user_spec):
86365         Don't translate a message until just before returning,
86366         to avoid unnecessary translation.
86367
86368 2000-08-07  Jim Meyering  <meyering@lucent.com>
86369
86370         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86371         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86372         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86373         getgroups.c, gethostname.c, getopt.h, group-member.c,
86374         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86375         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86376         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86377         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86378         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86379         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86380         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86381         yesno.c: Back out Copyright date changes for each file with no change
86382         this year.  This eases coordination with other programs using the same
86383         source code modules.  From Paul Eggert.
86384
86385 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86386
86387         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86388         not char, for compatibility with glibc 2.1.3 strftime.c.
86389
86390 2000-08-03  Greg McGary  <greg@mcgary.org>
86391
86392         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86393         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86394         (EXTEND_BUFFER): Use them.
86395
86396 2000-08-01  Jim Meyering  <meyering@lucent.com>
86397
86398         * lib/dirname.c (ISSLASH): Define.
86399         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86400         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86401         both `\' and `/' may be use as path separators.
86402         Based on a patch from Prashant TR.
86403
86404 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86405
86406         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86407         slot vector a constant, since it might get modified.
86408
86409 2000-07-31  Jim Meyering  <meyering@lucent.com>
86410
86411         * lib/xmalloc.c: Use `virtual memory exhausted', not
86412         `Memory exhausted'.
86413         * lib/obstack.c (print_and_abort): Likewise.
86414
86415 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86416
86417         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86418         buffer, so that the caller can always quote one small
86419         component of a "memory exhausted" message in slot 0.
86420         From a suggestion by Jim Meyering.
86421
86422 2000-07-30  Jim Meyering  <meyering@lucent.com>
86423
86424         * lib/makepath.c (make_path): Quote the other instance, too.
86425
86426         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86427         (STATIC_BUF_SIZE): Define.
86428         (quotearg_n_options): Use only statically allocated storage when
86429         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86430         than STATIC_BUF_SIZE.
86431
86432 2000-07-29  Jim Meyering  <meyering@lucent.com>
86433
86434         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86435         * lib/dirname.c (dir_name): Likewise.
86436
86437         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86438         `/'.
86439
86440         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86441         (dir_name): Assert that there are no trailing slashes.
86442
86443 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86444
86445         * lib/mbswidth.h (mbswidth): Add a flags argument.
86446         (mbswidth): New declaration.
86447         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86448         * lib/mbswidth.c (mbswidth): Add a flags argument.
86449         (mbsnwidth): New function.
86450
86451 2000-07-24  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86454
86455 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86456
86457         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86458
86459 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86460
86461         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86462         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86463         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86464         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86465         invoke multibyte primitives.
86466
86467 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86468
86469         * lib/quotearg.c:
86470         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86471         so that mbstate_t is always defined.
86472
86473         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86474         be 1 in at least one GCC installation, and this configuration
86475         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86476         performance on hosts that have mbrtowc but have only unibyte
86477         locales, but I assume these hosts are rare.
86478
86479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86480
86481         * lib/mbswidth.c (_XOPEN_SOURCE):
86482         Don't define; this causes problems on Solaris 7.
86483         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86484
86485 2000-07-23  Jim Meyering  <meyering@lucent.com>
86486
86487         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86488         too: getgrgid, getpwuid, getuid.
86489
86490 2000-07-23  Jim Meyering  <meyering@lucent.com>
86491
86492         * lib/basename.c (base_name): Add an assertion.
86493
86494 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86495
86496         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86497         shadow its mbsinit function.
86498
86499 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86500
86501         * lib/mbswidth.h: New file.
86502         * lib/mbswidth.c: New file.
86503         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86504         (noinst_HEADERS): Add mbswidth.h.
86505
86506 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86507
86508         * lib/config.charset: Add support for FreeBSD. Improve support for
86509         HP-UX and IRIX 6.
86510
86511 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86512
86513         * m4/mbswidth.m4: New file.
86514         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86515
86516 2000-07-15  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/makepath.c: Include quote.h.
86519         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86520         corresponding argument in a `quote (...)' call.
86521         Give better diagnostics.
86522
86523         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86524         (noinst_HEADERS): Add quote.h.
86525
86526         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86527         from tar's src/misc.c.
86528         * lib/quote.h: New file.  Prototypes for same.
86529
86530 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86531
86532         From a suggestion by Bruno Haible.
86533         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86534         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86535         to decide whether to define the BeOS workaround macro;
86536         this adjusts to the change to AC_MBSTATE_T.
86537
86538 2000-07-14  Jim Meyering  <meyering@lucent.com>
86539
86540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86541         jm_AC_TYPE_UINTMAX_T.
86542
86543 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86544
86545         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86546
86547         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86548         quotearg_buffer_restyled): Add support for
86549         clocale_quoting_style.  Undo previous change to
86550         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86551         and "{RIGHT QUOTATION MARK}" msgids.
86552
86553 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86554
86555         From a suggestion by Bruno Haible.
86556         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86557         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86558         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86559         and mbstate_t, to a single-part test that simply defines mbstate_t.
86560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86561         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86562
86563 2000-07-10  Jim Meyering  <meyering@lucent.com>
86564
86565         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86566
86567         * m4/gnu-source.m4: Output to confdefs.h directly.
86568         Suggestion from Akim Demaille.
86569
86570 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86571
86572         The old behavior of quoting `like this' doesn't look good with
86573         newer, ISO-style fonts.  See:
86574         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86575
86576         Instead, quote "like this" by default.  Let the translator
86577         tailor the locale-specific quoting behavior by providing
86578         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86579
86580         * lib/quotearg.c (N_): New macro.
86581         (gettext_default): New function.
86582         (quotearg_buffer_restyled): Use
86583         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86584         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86585
86586 2000-07-09  Jim Meyering  <meyering@lucent.com>
86587
86588         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86589         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86590
86591         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86593
86594 2000-07-09  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/Most files: Update copyright dates to include 2000.
86597
86598 2000-07-08  Jim Meyering  <meyering@lucent.com>
86599
86600         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86601         if not defined.
86602         (xgethostname): Remove now-unnecessary #ifdef.
86603         Move declaration of `err' into loop where it's used.
86604
86605 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86606         and Bruno Haible  <haible@clisp.cons.org>
86607
86608         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86609         only if the test for an object-type mbstate_t fails.  This
86610         prevents us from mistakenly reporting that mbstate_t is a
86611         system object type after we "#define mbstate_t int" to work
86612         around its lack.
86613
86614 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86615         and Bruno Haible  <haible@clisp.cons.org>
86616
86617         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86618
86619 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86620
86621         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86622         to strerror_r.
86623         Include <ctype.h> for use of isalpha.
86624
86625 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86626
86627         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86628         by allocating a larger buffer. Test the gethostname return value for
86629         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86630         returns an error and ENAMETOOLONG isn't defined.
86631
86632 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86633
86634         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86635         dimension.
86636
86637 2000-07-04  Jim Meyering  <meyering@lucent.com>
86638
86639         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86640         of the deprecated AC_CHECKING.
86641
86642 2000-07-04  Jim Meyering  <meyering@lucent.com>
86643
86644         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86645         Reported by Bruno Haible.
86646
86647 2000-07-04  Jim Meyering  <meyering@lucent.com>
86648
86649         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86650         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86651         lacks mbrtowc.
86652
86653 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86654
86655         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86656         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86657
86658 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86659         and Bruno Haible  <haible@clisp.cons.org>
86660
86661         * lib/quotearg.c (mbrtowc):
86662         Assign to *pwc, and return 1 only if result is nonzero.
86663         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86664
86665 2000-07-03  Jim Meyering  <meyering@lucent.com>
86666
86667         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86668
86669 2000-07-03  Jim Meyering  <meyering@lucent.com>
86670
86671         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86672         This is necessary to get a definition of e.g., UTMP_FILE on
86673         HP-UX 10.20.
86674         From Bob Proulx.
86675
86676 2000-07-02  Jim Meyering  <meyering@lucent.com>
86677
86678         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86679
86680         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86681         AC_LIBOBJ(function_name).
86682         * m4/chown.m4: Likewise.
86683         * m4/fnmatch.m4: Likewise.
86684         * m4/ftruncate.m4: Likewise.
86685         * m4/getgroups.m4: Likewise.
86686         * m4/getline.m4: Likewise.
86687         * m4/group-member.m4: Likewise.
86688         * m4/jm-macros.m4: Likewise.
86689         * m4/lstat.m4: Likewise.
86690         * m4/malloc.m4: Likewise.
86691         * m4/memcmp.m4: Likewise.
86692         * m4/nanosleep.m4: Likewise.
86693         * m4/putenv.m4: Likewise.
86694         * m4/realloc.m4: Likewise.
86695         * m4/regex.m4: Likewise.
86696         * m4/stat.m4: Likewise.
86697         * m4/strftime.m4: Likewise.
86698
86699 2000-07-02  Jim Meyering  <meyering@lucent.com>
86700
86701         * lib/quotearg.c (mbstate_t): Don't define here.
86702
86703 2000-07-02  Jim Meyering  <meyering@lucent.com>
86704
86705         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86706
86707 2000-07-01  Jim Meyering  <meyering@lucent.com>
86708
86709         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86710
86711 2000-07-01  Jim Meyering  <meyering@lucent.com>
86712
86713         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86714         problem.
86715
86716 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86717
86718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86719         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86720
86721 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86722
86723         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86724         per change in ../m4/ls-mntd-fs.m4.
86725         (read_filesystem_list): Ignore symbolic links.
86726
86727 2000-06-29  Jim Meyering  <meyering@lucent.com>
86728
86729         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86730         for declaration of strcmp.
86731
86732         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86733
86734         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86735         Avoid warning by casting result to `char *' to remove `const'.
86736
86737 2000-06-28  Jim Meyering  <meyering@lucent.com>
86738
86739         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86740         included by quotearg.c, for which we perform this test.  From
86741         Bruno Haible.
86742
86743 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86744
86745         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86746         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86747         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86748
86749 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86750
86751         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86752
86753 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86754
86755         savedir now sets errno on failure and invokes xmalloc to get memory.
86756         Fix a couple of other minor bugs while we're at it.
86757
86758         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86759         (NAMLEN): Remove macro.
86760         (malloc, realloc): Remove decls.
86761         (stpcpy): Likewise.
86762         ("xalloc.h"): Include.
86763         (NAME_SIZE_DEFAULT): New macro.
86764         (savedir): Use xmalloc / xrealloc to allocate memory.
86765         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86766         Skip "" directory entries.
86767         Use strlen to calculate directory entry length, since the old method
86768         is rarely used these days and isn't worth supporting.
86769         Don't use a pointer after freeing it.
86770         Check for integer overflow when calculating allocation size.
86771         Use memcpy to copy entries, instead of stpcpy.
86772         Set errno properly when returning NULL.
86773         Check for readdir error.
86774
86775 2000-06-26  Jim Meyering  <meyering@lucent.com>
86776
86777         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86778
86779 2000-06-25  Jim Meyering  <meyering@lucent.com>
86780
86781         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86782         Linux header bug when _XOPEN_SOURCE is defined to 500.
86783
86784 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86785
86786         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86787         deficiency.
86788
86789 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86790
86791         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86792         Include xalloc.h.
86793         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86794
86795 2000-06-24  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86798         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86799         for which strerror does return char*, but which lacks a conveniently
86800         accessible declaration of the function.  If the compile-test says
86801         strerror_r doesn't work, then resort to a `run'-test that works on
86802         BeOS and segfaults on DEC Unix.
86803
86804 2000-06-24  Jim Meyering  <meyering@lucent.com>
86805
86806         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86807
86808 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86809
86810         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86811         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86812
86813 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86814
86815         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86816         (mbrtowc, mbstate_t): Define substitutes if
86817         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86818         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86819         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86820
86821 2000-06-23  Jim Meyering  <meyering@lucent.com>
86822
86823         * m4/afs.m4: Add missing AC_MSG_RESULT.
86824         Reported by Bruno Haible.
86825
86826         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86827         Suggestion from Bruno Haible.
86828
86829 2000-06-23  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86832
86833 2000-06-21  Jim Meyering  <meyering@lucent.com>
86834
86835         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86836
86837 2000-06-21  Jim Meyering  <meyering@lucent.com>
86838
86839         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86840         (noinst_HEADERS): Add getstr.h.
86841
86842         * lib/getline.c (getstr): Move into a separate file.
86843         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86844         the following changes: new parameter, delim2; both delim[12]
86845         parameters have type `int', not `char'.  The latter would lose
86846         with 8-bit delimiters.
86847         * lib/getstr.h: New file.
86848
86849 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86850
86851         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86852         than 1024, return a memory chunk of least possible size, instead
86853         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86854         Use free/xmalloc instead of xrealloc to avoid copying for very long
86855         paths.
86856
86857 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86858
86859         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86860         the empty string.
86861
86862 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86863
86864         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86865         address, not strdup.  Include <stdlib.h> and don't declare free().
86866
86867 2000-06-19  Jim Meyering  <meyering@lucent.com>
86868
86869         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86870
86871 2000-06-18  Jim Meyering  <meyering@lucent.com>
86872
86873         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86874
86875         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86876         `checking whether...' message to be consistent with that of the
86877         lstat test.
86878
86879 2000-06-18  Jim Meyering  <meyering@lucent.com>
86880
86881         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86882         Besides, these days every porting target provides a mkdir function.
86883
86884         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86885         needed. (this snippet comes from src/system.h).
86886
86887 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86888
86889         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86890
86891 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86892
86893         * lib/human.c (adjust_value): New function.
86894         (human_readable_inexact): Apply rounding style even when
86895         printing approximate values.
86896
86897 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86898
86899         * lib/human.c (human_readable_inexact): Allow an input block
86900         size that is not a multiple of the output block size, and vice versa.
86901         Reported by Piergiorgio Sartor.
86902
86903 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86904
86905         * lib/getdate.y (get_date): Apply relative times after time
86906         zone indicator, not before.  Reported by Todd A. Jacobs.
86907
86908 2000-06-13  Jim Meyering  <meyering@lucent.com>
86909
86910         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86911
86912         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86913
86914 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86915
86916         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86917
86918 2000-06-12  Jim Meyering  <meyering@lucent.com>
86919
86920         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86921         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86922         optional argument.
86923         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86924         the optional argument, `lib'.
86925
86926 2000-06-08  Jim Meyering  <meyering@lucent.com>
86927
86928         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86929
86930 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86931
86932         Rewrite largefile configuration so that we don't need to run
86933         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86934         AC_CANONICAL_HOST in configure.in -- jmm]
86935
86936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86937         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86938         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86939         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86940         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86941         All uses changed.
86942         Instead of inspecting the output of getconf, try to compile the
86943         test program without and with the macro definition.
86944         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86945         for getconf.  Instead, check for the needed flags by compiling
86946         test programs.
86947
86948 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86949
86950         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86951
86952 2000-06-04  Jim Meyering  <meyering@lucent.com>
86953
86954         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86955         SunOS 4.1.4 for which gid_t is an unsigned type.
86956
86957 2000-06-03  Jim Meyering  <meyering@lucent.com>
86958
86959         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86960         now that autoconf requires that.
86961
86962         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86963         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86964         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86965
86966 2000-06-03  Jim Meyering  <meyering@lucent.com>
86967
86968         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86969
86970 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86971
86972         * m4/glibc21.m4: New file.
86973         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86974
86975 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86976
86977         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86978         newer, don't install charset.alias.
86979         * lib/config.charset: Change the Linux/glibc rules so they become empty
86980         on glibc-2.1 or newer.
86981
86982 2000-06-02  Jim Meyering  <meyering@lucent.com>
86983
86984         * lib/mountlist.c: Back out last change.  Instead, do this...
86985         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86986         me_dummy member using the same `ignore'-testing code.
86987         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86988         fs_type strings.
86989         From Mark D. Roth.
86990
86991 2000-05-29  Jim Meyering  <meyering@lucent.com>
86992
86993         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86994         mounts with the `ignore' attribute.  Based on a patch from
86995         Mark D. Roth.
86996
86997 2000-05-28  Jim Meyering  <meyering@lucent.com>
86998
86999         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87000         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87001         * m4/stat.m4: Likewise.
87002         * m4/lstat.m4: Likewise.
87003         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87004
87005         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87006         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87007
87008 2000-05-26  Jim Meyering  <meyering@lucent.com>
87009
87010         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87011
87012 2000-05-24  Jim Meyering  <meyering@lucent.com>
87013
87014         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87015         autoconf requires that.
87016         * m4/lib-check.m4: Likewise.
87017         * m4/jm-macros.m4: Likewise.
87018         * m4/strftime.m4: Likewise.
87019
87020         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87021         AC_CHECK_DECLS, now that autoconf requires that.
87022
87023 2000-05-22  Jim Meyering  <meyering@lucent.com>
87024
87025         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87026         * m4/lstat.m4: Likewise.
87027
87028 2000-05-22  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87031
87032 2000-05-20  Jim Meyering  <meyering@lucent.com>
87033
87034         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87035         (jm_PREREQ): Use it.
87036
87037 2000-05-18  Jim Meyering  <meyering@lucent.com>
87038
87039         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87040         back, too, since it may have been modified by allocate_entry.
87041         (hash_delete): Rewrite to use neither the assignment operator
87042         nor the comma operator in an if-expression.
87043
87044 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/closeout.c:
87047         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87048         Remove; no longer needed.
87049         "quotearg.h": Add include.
87050         (file_name): Do not bother to explicitly initialize to NULL; it's less
87051         efficient on some hosts.
87052         (close_stdout_status): Remove test as to whether stdout was already
87053         closed; it breaks for the case "echo x | sort >&-".
87054         Quote file name colons.
87055         Do not assume that _("write error") lacks format strings.
87056
87057 2000-05-15  Jim Meyering  <meyering@lucent.com>
87058
87059         * lib/version-etc.c (version_etc_copyright): Update the copyright
87060         string used in all --version output.
87061
87062 2000-05-14  Jim Meyering  <meyering@lucent.com>
87063
87064         * lib/closeout.c (close_stdout_set_file_name): New function.
87065         (close_stdout_status): Use new file-scoped global.
87066         Return right away if fstat says the stdout file descriptor is invalid.
87067         * lib/closeout.h (close_stdout_set_file_name): Declare.
87068
87069 2000-05-10  Jim Meyering  <meyering@lucent.com>
87070
87071         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87072         (close_stdout_set_status): New function.
87073         * lib/closeout.h (close_stdout_set_status): Declare.
87074
87075 2000-05-09  Jim Meyering  <meyering@lucent.com>
87076
87077         * m4/gettext.m4: Rename this...
87078         * m4/libintl.m4: ...to this.
87079
87080 2000-05-08  Jim Meyering  <meyering@lucent.com>
87081
87082         * lib/long-options.c: Don't include closeout.h.
87083         (parse_long_options): Don't call close_stdout for --version.
87084
87085 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87086
87087         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87088         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87089         2.1.3 bug.  This avoids a clash when files like regex.c define
87090         _GNU_SOURCE.
87091
87092 2000-05-06  Jim Meyering  <meyering@lucent.com>
87093
87094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87095         (AC_REPLACE_FUNCS): Add strnlen.
87096
87097         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87098         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87099
87100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87101         AC_SEARCH_LIBS call for nanosleep.
87102         (LIB_NANOSLEEP): Set and AC_SUBST.
87103
87104 2000-05-06  Jim Meyering  <meyering@lucent.com>
87105
87106         * lib/strnlen.c: Undefine __strnlen and strnlen.
87107         [!weak_alias]: Define __strnlen to strnlen.
87108
87109         * lib/atexit.c: New file, from libiberty.
87110
87111 2000-05-06  Jim Meyering  <meyering@lucent.com>
87112
87113         * lib/closeout.c (close_stdout_status): Also check for errors on the
87114         stderr stream.
87115
87116 2000-05-05  Jim Meyering  <meyering@lucent.com>
87117
87118         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87119         AC_SEARCH_LIBS call for clock_gettime.
87120         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87121
87122         * m4/search-libs.m4: Update from autoconf.
87123
87124         su doesn't work on Solaris 2.6.
87125         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87126         <shadow.h>.  Reported by Dragos Harabor.
87127
87128 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87129
87130         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87131         memcpy instead of xmalloc, xrealloc, path_concat.
87132         (locale_charset): Treat empty environment variables as absent.
87133         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87134
87135 2000-05-04  Jim Meyering  <meyering@lucent.com>
87136
87137         * lib/getopt.c: Update from glibc.
87138         * lib/obstack.c: Likewise.
87139         * lib/obstack.h: Likewise.
87140         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87141         file
87142
87143         * lib/regex.h: Likewise.
87144         * lib/strndup.c: Likewise.
87145         * lib/strnlen.c: New file, from glibc.
87146
87147 2000-05-03  Jim Meyering  <meyering@lucent.com>
87148
87149         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87150
87151 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87152
87153         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87154         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87155         compile-time test, rather than inspecting host and OS, to
87156         decide whether to define _LARGEFILE_SOURCE.
87157
87158 2000-05-01  Jim Meyering  <meyering@lucent.com>
87159
87160         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87161
87162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87163         Based on a patch from Bruno Haible.
87164
87165 2000-05-01  Jim Meyering  <meyering@lucent.com>
87166
87167         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87168
87169 2000-04-29  Jim Meyering  <meyering@lucent.com>
87170
87171         * lib/path-concat.c: Declare strdup only if it's not defined.
87172         * lib/canon-host.c: Likewise.
87173
87174 2000-04-28  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87177         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87178         is included first, then limits.h is included by locale.h by libintl.h.
87179         From John David Anglin.
87180
87181 2000-04-25  Jim Meyering  <meyering@lucent.com>
87182
87183         * lib/makepath.c (S_IRWXUGO): Define.
87184         (make_path): Always perform explicit chmod if MODE specifies any
87185         of the `special' permission bits.  Prompted by a bug report against
87186         install from Mate Wierdl and Joost van Baal.
87187
87188 2000-04-18  Jim Meyering  <meyering@lucent.com>
87189
87190         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87191         (jm_PREREQ): Use it.
87192
87193 2000-04-18  Jim Meyering  <meyering@lucent.com>
87194
87195         * lib/README: New file.
87196
87197         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87198         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87199
87200 2000-04-17  Jim Meyering  <meyering@lucent.com>
87201
87202         Get it right :-)
87203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87204         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87205         Suggestion from Akim Demaille.
87206
87207 2000-04-17  Jim Meyering  <meyering@lucent.com>
87208
87209         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87210         the definition of it to rpl_strftime also defined-away the system's
87211         declaration.
87212
87213 2000-04-15  Jim Meyering  <meyering@lucent.com>
87214
87215         Use `C' to denote so-called `contiguous' files, the same way
87216         that tar does.
87217         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87218         (ftypelet): Use S_ISCTG.
87219         From Michael Deutschmann.
87220
87221 2000-04-14  Jim Meyering  <meyering@lucent.com>
87222
87223         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87224         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87225         clobbered.
87226
87227 2000-04-14  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87230
87231 2000-04-13  Jim Meyering  <meyering@lucent.com>
87232
87233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87234         AH_VERBATIM to insert required #ifndef into config.h.in.
87235         Suggestion from Akim Demaille.
87236
87237 2000-04-12  Jim Meyering  <meyering@lucent.com>
87238
87239         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87240         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87241         Christian Krackowizer.
87242
87243         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87244         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87245         (AC_SYS_LARGEFILE): Require.
87246         (AM_C_PROTOTYPES): Require.
87247
87248 2000-04-08  Jim Meyering  <meyering@lucent.com>
87249
87250         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87251         names don't conflict.  Reported by Eli Zaretskii.
87252
87253 2000-04-07  Jim Meyering  <meyering@lucent.com>
87254
87255         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87256         sys/types.h, to work around system header problems on AIX 3.2.5.
87257         From Bruno Haible.
87258
87259 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87260
87261         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87262         bug.  Deal with the different error behavior of Irix iconv.
87263
87264 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87265
87266         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87267         IRIX if the installer said otherwise.
87268
87269 2000-04-05  Jim Meyering  <meyering@lucent.com>
87270
87271         Portability tweaks required for ultrix4.3.
87272         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87273         (jm_CHECK_DECLS): Add getutent to the list of functions.
87274         (_jm_DECL_HEADERS): Add utmpx.h.
87275         From John David Anglin.
87276
87277         * m4/strftime.m4: Back out the 2000-04-02 change.
87278         Instead of that change, simply undefine putenv in the test program.
87279
87280 2000-04-05  Jim Meyering  <meyering@lucent.com>
87281
87282         Portability tweaks required for ultrix4.3.
87283         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87284         getutent.
87285         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87286         * lib/canon-host.c: Declare strdup.
87287         * lib/path-concat.c: Likewise.
87288         From John David Anglin.
87289
87290 2000-04-04  Jim Meyering  <meyering@lucent.com>
87291
87292         Be more DOS 8.3-friendly.
87293         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87294         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87295         * lib/Makefile.am: Reflect renaming.
87296         Reported by Eli Zaretskii.
87297
87298         Use a temporary file name that won't clash with `charset.alias'
87299         in the DOS 8.3 name space.
87300         * lib/Makefile.am (charset_tmp): Define.
87301         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87302         (uninstall-local): Likewise.
87303         Reported by Eli Zaretskii.
87304
87305 2000-04-03  Jim Meyering  <meyering@lucent.com>
87306
87307         * m4/gettext.m4: Fix typo in comment.
87308
87309         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87310         textutils/configure.in).  Suggestion from Paul Eggert.
87311         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87312
87313 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87314
87315         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87316         variable in the shell rather than using putenv, which isn't
87317         portable.  This avoids the configure-time inter-test dependency
87318         on the potentially-renamed putenv function.
87319
87320 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87321
87322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87323         before checking struct stat.st_blksize, so that
87324         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87325
87326 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87327
87328         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87329         since strftime.c uses HAVE_STRFTIME to decide whether to use
87330         the underlying strftime.
87331
87332 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87333
87334         * lib/time/strftime.c (my_strftime): Make sure we call the system
87335         strftime, not ourselves, when invoking the underlying strftime.
87336
87337 2000-03-24  Jim Meyering  <meyering@lucent.com>
87338
87339         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87340         (charset_alias): Define.
87341         (install-exec-local): Factor out common code.
87342         (uninstall-local): Split lines longer than 80.
87343         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87344         (SUFFIXES): Define.
87345         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87346         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87347
87348 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87349
87350         * lib/config.charset: Output a line containing "Packages using this
87351         file".
87352         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87353         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87354         ref-del.sed): New rules.
87355
87356 2000-03-17  Jim Meyering  <meyering@lucent.com>
87357
87358         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87359         Otherwise, include <strings.h>
87360
87361 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87362
87363         * lib/unicodeio.c (utf8_wctomb): New function.
87364         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87365         format instead of in UCS-4 with platform dependent endianness.
87366
87367 2000-03-10  Jim Meyering  <meyering@lucent.com>
87368
87369         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87370         From Marco Franzen.
87371
87372 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87373
87374         * lib/savedir.c (savedir): Work even if directory size is
87375         negative; this can happen with some screwy NFS configurations.
87376
87377 2000-03-06  Jim Meyering  <meyering@lucent.com>
87378
87379         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87380         if it's NULL (because we ran out of memory).  From Bruno Haible.
87381
87382 2000-03-05  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/localcharset.c ("path-concat.h"): Include.
87385         (get_charset_aliases): Use path_concat instead of ANSI string
87386         concatenation.
87387
87388         * lib/unicodeio.h (PARAMS): Define.
87389         Use it to guard prototype.
87390
87391 2000-03-04  Jim Meyering  <meyering@lucent.com>
87392
87393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87394         for lib/localcharset.c.
87395
87396 2000-03-04  Jim Meyering  <meyering@lucent.com>
87397
87398         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87399         installing into it.
87400         (uninstall-local): Uncomment this rule so `make distcheck' works
87401         once again.
87402
87403         * lib/unicodeio.c (<errno.h>): Include it.
87404         (errno): Declare if not defined.
87405
87406         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87407
87408         * lib/config.charset: New version, incorporating remarks from a linux
87409         i18n mailing list.  From Bruno Haible.
87410
87411 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87412
87413         * m4/codeset.m4: New file.
87414         * m4/iconv.m4: New file.
87415         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87416
87417 2000-03-03  Jim Meyering  <meyering@lucent.com>
87418
87419         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87420
87421 2000-03-02  Jim Meyering  <meyering@lucent.com>
87422
87423         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87424         the messages come out on separate lines.
87425
87426         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87427         rather than jm_CHECK_DECLARATIONS.
87428         * m4/decl.m4: Remove now-unused file.
87429
87430         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87431         geteuid.
87432
87433 2000-03-02  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87436
87437 2000-03-01  Jim Meyering  <meyering@lucent.com>
87438
87439         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87440         * lib/unicodeio.c: Likewise.
87441
87442 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87443
87444         * lib/config.charset: New file.
87445         * lib/localcharset.c: New file.
87446         * lib/unicodeio.h, lib/unicodeio.c: New files.
87447         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87448         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87449         (noinst_HEADERS): Add unicodeio.h.
87450         (all-local, install-exec-local, charset.alias): New targets.
87451
87452 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87453
87454         * lib/quotearg.c (ALERT_CHAR): New macro.
87455         (quotearg_buffer_restyled): Use it.
87456
87457 2000-02-27  Jim Meyering  <meyering@lucent.com>
87458
87459         * m4/check-decl.m4: Add getenv to the list.
87460
87461 2000-02-27  Jim Meyering  <meyering@lucent.com>
87462
87463         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87464         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87465
87466         * lib/backupfile.c: Guard inclusion of stdlib.h with
87467         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87468         Declare malloc if needed.
87469
87470         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87471         `#ifndef HAVE_DECL..'
87472         now that autoconf always defines the HAVE_DECL_ symbols.
87473         * lib/human.c: Likewise.
87474         * lib/same.c: Likewise.
87475         * lib/strtoumax.c: Likewise.
87476
87477         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87478         declaration check was not run.
87479         * lib/hash.c: Likewise.
87480         * lib/human.c: Likewise.
87481         * lib/same.c: Likewise.
87482         * lib/strtoumax.c: Likewise.
87483
87484         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87485         `.', then first look up the entire `.'-containing string as a login
87486         name.
87487
87488 2000-02-23  Jim Meyering  <meyering@lucent.com>
87489
87490         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87491         in place of my hack.
87492
87493 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87494
87495         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87496         (textint): New typedef.
87497         (parser_control): Member year changed from int to textint.
87498         All uses changed.
87499         (YYSTYPE): Removed; replaced by %union with int and textint members.
87500         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87501         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87502         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87503         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87504         (date, number, to_year): Use width of number in digits, not its value,
87505         to determine whether it's a 2-digit year, or a 2-digit time.
87506         (yylex): Store number of digits of numeric tokens.
87507         Reported by John Kendall.
87508
87509         (parser_control): Changed from struct parser_control to typedef (for
87510         consistency).  All uses changed.
87511
87512         (tID): Removed; not used.
87513         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87514
87515 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87516
87517         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87518         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87519
87520 2000-02-12  Jim Meyering  <meyering@lucent.com>
87521
87522         * lib/userspec.c (ISDIGIT): Define it.
87523         (isdigit): Remove definition.
87524         (is_number): Use ISDIGIT, not isdigit.
87525         <libintl.h>: Include.
87526         (_ and N_): Define.
87527         (parse_user_spec): Mark translatable strings.
87528
87529 2000-02-10  Jim Meyering  <meyering@lucent.com>
87530
87531         With these changes, nanosleep.[ch] are finally enough like the other
87532         lib/* replacement files to compile on a few more losing systems.
87533
87534         * lib/nanosleep.h: Don't include config.h.
87535         Remove prototype from declaration of nanosleep.
87536         (PARAMS): Remove now-unneeded definition.
87537         * lib/nanosleep.c: #undef nanosleep.
87538         (rpl_nanosleep): Rename from nanosleep.
87539
87540 2000-02-10  Jim Meyering  <meyering@lucent.com>
87541
87542         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87543         gnu_nanosleep to rpl_nanosleep.
87544
87545 2000-02-09  Jim Meyering  <meyering@lucent.com>
87546
87547         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87548         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87549
87550 2000-02-08  Akim Demaille  <akim@epita.fr>
87551
87552         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87553         `[' and `]' and remove uses of `changequote'.
87554         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87555         (AC_SYS_LARGEFILE): Likewise.
87556         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87558         of changequote.
87559         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87560         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87561         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87562         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87563
87564 2000-02-05  Jim Meyering  <meyering@lucent.com>
87565
87566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87567         Remove explicit use of AC_HEADER_TIME.  It is required by
87568         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87569         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87570         in autoconf whereby the expansion of the latter ended up preceding
87571         the expansion of its prerequisite, AC_HEADER_TIME.
87572         Reported by Volker Borchert.
87573
87574 2000-02-03  Jim Meyering  <meyering@lucent.com>
87575
87576         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87577
87578 2000-02-03  Jim Meyering  <meyering@lucent.com>
87579
87580         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87581         rather than with `#if HAVE_UTMPNAME'.
87582
87583 2000-02-02  Jim Meyering  <meyering@lucent.com>
87584
87585         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87586         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87587         Reported by Eli Zaretskii.
87588
87589 2000-02-01  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87592
87593 2000-01-31  Jim Meyering  <meyering@lucent.com>
87594
87595         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87596         functions.  Add the time.h and sys/time.h headers along with the
87597         AC_REQUIRE'ment of AC_HEADER_TIME.
87598
87599 2000-01-31  Jim Meyering  <meyering@lucent.com>
87600
87601         * lib/nanosleep.h (nanosleep): Guard declaration with
87602         `#if ! HAVE_DECL_NANOSLEEP'.
87603         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87604         the declaration in that vendor's sys/timers.h.
87605         Reported by Christian Krackowizer.
87606
87607         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87608         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87609         (ISPRINT): Likewise.
87610         Reported by Tom Tromey.
87611
87612 2000-01-30  Jim Meyering  <meyering@lucent.com>
87613
87614         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87615
87616         * m4/prereq.m4 (utmp_includes): Define.
87617         Check for ut_user and ut_name members in both struct utmpx
87618         and struct utmp.
87619
87620 2000-01-30  Jim Meyering  <meyering@lucent.com>
87621
87622         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87623         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87624         header files where only utmpx.ut_user is declared.
87625
87626         * lib/readutmp.h (UT_USER): Define.
87627
87628 2000-01-29  Jim Meyering  <meyering@lucent.com>
87629
87630         * m4/lib-check.m4: New file containing library-related checks from
87631         fileutils and sh-utils (textutils had none).
87632
87633 2000-01-28  Jim Meyering  <meyering@lucent.com>
87634
87635         * m4/perl.m4: Change format of warning message to look more like that
87636         from the missing script.  Suggestion from François Pinard.
87637
87638 2000-01-25  Jim Meyering  <meyering@lucent.com>
87639
87640         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87641         well as time.h in the compile check.
87642         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87643         Fix typo in cross-compiling case: s/yes/no/.
87644
87645 2000-01-23  Jim Meyering  <meyering@lucent.com>
87646
87647         * m4/jm-macros.m4: Move df-related tests here from
87648         fileutils/configure.in
87649
87650         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87651         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87652
87653         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87654         s/space/ac_fsusage_space/.
87655         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87656
87657         * m4/ftruncate.m4: New file (derived from part of
87658         fileutils/configure.in).
87659         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87660         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87661
87662         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87663         AC_SUBST these here, rather than just in sh-util/configure.in, so
87664         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87665         all the same.
87666         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87667         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87668         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87669         (AC_SUBST(POW_LIBM)): Likewise.
87670         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87671
87672 2000-01-23  Jim Meyering  <meyering@lucent.com>
87673
87674         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87675         obstack.c.
87676
87677 2000-01-22  Jim Meyering  <meyering@lucent.com>
87678
87679         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87680
87681         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87682
87683         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87684         configure.in
87685         (AC_CHECK_HEADERS): Likewise for sh-utils.
87686         (AC_CHECK_HEADERS): Likewise for textutils.
87687         Merge the three lists of headers.
87688
87689         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87690         from fileutils' configure.in.
87691
87692         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87693         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87694         check-decl.m4.
87695
87696         * m4/check-decl.m4: Use #if rather than #ifdef.
87697         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87698         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87699         (_jm_DECL_HEADERS): Define new function.
87700         (jm_CHECK_DECLARATIONS): Require it.
87701
87702 2000-01-22  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87705         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87706         Required for some AIX systems.  Reported by Christian Krackowizer.
87707         [TESTING] (main): New function.
87708
87709         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87710         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87711         letters.
87712
87713         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87714         iswprint.
87715
87716         * lib/strverscmp.c (ISDIGIT): Define.
87717         (strverscmp): Use ISDIGIT, not isdigit.
87718
87719 2000-01-19  Jim Meyering  <meyering@lucent.com>
87720
87721         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87722         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87723         defines `struct timespec' in <sys/time.h>
87724
87725         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87726         Thanks to Akim for explaining.
87727
87728 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87729
87730         * lib/nanosleep.c (nanosleep):
87731         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87732         POSIX.1 doesn't require SA_INTERRUPT and some systems
87733         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87734         it's been part of POSIX.1 since day 1 (in 1988).
87735
87736 2000-01-17  Jim Meyering  <meyering@lucent.com>
87737
87738         * lib/interlock: Remove unused file.  Reported by François Pinard.
87739
87740 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87741
87742         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87743         alert, backslash, formfeed, and vertical tab unnecessarily in
87744         shell quoting style.
87745
87746 2000-01-16  Jim Meyering  <meyering@lucent.com>
87747
87748         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87749         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87750         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87751         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87752
87753 2000-01-16  Jim Meyering  <meyering@lucent.com>
87754
87755         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87756         because the latter didn't work.
87757
87758 2000-01-15  Jim Meyering  <meyering@lucent.com>
87759
87760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87761         (AC_REPLACE_FUNCS): Add memcpy and memset.
87762         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87763         Add strpbrk.
87764         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87765
87766 2000-01-12  Jim Meyering  <meyering@lucent.com>
87767
87768         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87769         (jm_PREREQ): Use it.
87770         (jm_PREREQ_READUTMP): New macro.
87771         (jm_PREREQ): Use it.
87772
87773 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87774
87775         Quote multibyte characters correctly.
87776         * m4/c-bs-a.m4: New file.
87777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87778         (jm_PREREQ): Use it.
87779
87780 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87781
87782         * m4/uintmax_t.m4: Port to autoconf 2.13.
87783
87784 2000-01-08  Jim Meyering  <meyering@ascend.com>
87785
87786         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87787         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87788
87789 2000-01-04  Jim Meyering  <meyering@ascend.com>
87790
87791         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87792         jm_STRUCT_DIRENT_D_TYPE.
87793         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87794         jm_STRUCT_DIRENT_D_INO.
87795         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87796         jm_STRUCT_UTIMBUF.
87797         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87798         renamings.
87799         * m4/utime.m4: Likewise.
87800
87801         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87802         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87803
87804 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87805
87806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87807         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87808
87809 2000-01-02  Jim Meyering  <meyering@ascend.com>
87810
87811         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87812         remember if this is necessary.
87813
87814 1999-12-26  Jim Meyering  <meyering@ascend.com>
87815
87816         * m4/jm-macros.m4: Use it here.
87817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87818
87819 1999-12-23  Jim Meyering  <meyering@ascend.com>
87820
87821         * m4/jm-macros.m4: Check for clock_gettime (moved from
87822         fileutils/configure.in)
87823         Check for gettimeofday.
87824
87825 1999-12-20  Jim Meyering  <meyering@ascend.com>
87826
87827         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87828         autoconf-2.14a-1999-12-20.
87829
87830 1999-12-19  Jim Meyering  <meyering@ascend.com>
87831
87832         * m4/lstat-slash.m4: New file.
87833         * m4/jm-macros.m4: Use the new macro:
87834         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87835
87836 1999-12-07  Jim Meyering  <meyering@ascend.com>
87837
87838         * m4/perl.m4: Require that File::Compare be available, too.
87839         Too many systems seem to lack it.
87840
87841         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87842         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87843
87844 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87845
87846         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87847         problem with the QNX 4.25 shell, which doesn't propagate exit
87848         status of failed commands inside shell assignments.
87849
87850 1999-11-17  Jim Meyering  <meyering@ascend.com>
87851
87852         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87853
87854 1999-11-07  Jim Meyering  <meyering@ascend.com>
87855
87856         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87857
87858 1999-11-06  Jim Meyering  <meyering@ascend.com>
87859
87860         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87861         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87862
87863 1999-11-05  Jim Meyering  <meyering@ascend.com>
87864
87865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87866         configure.in of textutils, fileutils, and sh-utils into this one
87867         (shared between those packages) file.
87868         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87869         AC_STRUCT_ST_BLKSIZE.
87870
87871 1999-11-03  Jim Meyering  <meyering@ascend.com>
87872
87873         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87874         of AC_CHECK_TYPE checks includes unistd.h.
87875         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87876         Suggestion from Akim Demaille.
87877
87878 1999-10-30  Jim Meyering  <meyering@ascend.com>
87879
87880         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87881         m4-quoted string.
87882         * m4/ls-mntd-fs.m4: Likewise.
87883         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87884         * m4/jm-winsz1.m4: Likewise.
87885
87886         * m4/const.m4: Remove file, since the fix made it into the experimental
87887         version of autoconf.
87888         * m4/mktime.m4: Likewise.
87889
87890         * m4/check-type.m4: Remove file, now that the latest version of
87891         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87892
87893         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87894         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87895         AC_CHECK_TYPE.
87896
87897 1999-10-04  Jim Meyering  <meyering@ascend.com>
87898
87899         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87900
87901 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87902
87903         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87904         2.95.1 bug with HP-UX 10.20.
87905
87906 1999-09-17  Jim Meyering  <meyering@ascend.com>
87907
87908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87909         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87910         due to missing strdup (against sh-utils-2.0).
87911
87912 1999-08-29  Jim Meyering  <meyering@ascend.com>
87913
87914         * m4/jm-macros.m4: Require jm_BISON.
87915         * m4/bison.m4: New file.
87916
87917 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87918
87919         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87920         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87921
87922 1999-08-05  Jim Meyering  <meyering@ascend.com>
87923
87924         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87925         to avoid conflicts with `conftest' on 8+3 filesystems.
87926         Suggestion from Eli Zaretskii.
87927
87928 1999-08-04  Jim Meyering  <meyering@ascend.com>
87929
87930         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87931         fileutils and sh-utils (textutils's getline test was inadequate).
87932         (AM_FUNC_GETLINE): Run this test.
87933         (AC_CHECK_FUNCS): Check for getdelim.
87934         Reported by Bob Proulx.
87935
87936 1999-08-02  Jim Meyering  <meyering@ascend.com>
87937
87938         * m4/jm-macros.m4: Add a comment.
87939
87940 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87941
87942         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87943         <inttypes.h> defines strtoumax as a macro (and not as a
87944         function).
87945
87946 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87947
87948         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87949         that we can shift, multiply and divide unsigned long long
87950         values; Ultrix cc can't do it.
87951
87952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87953
87954         * m4/mktime.m4: New file, which is a preview of what should appear
87955         in the next public autoconf release.
87956
87957 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87958
87959         * m4/lfs.m4: Remove this file.
87960         * m4/largefile.m4: New file.  It contains the old contents of
87961         lfs.m4, except that all names with prefix AC_LFS have been
87962         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87963         compatible with future autoconf versions.  Also, some minor m4
87964         quoting problems have been fixed.
87965
87966 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87967
87968         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87969         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87970         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87971         and simplify the shell code.
87972
87973 1999-08-01  Jim Meyering  <meyering@ascend.com>
87974
87975         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87976         m4.
87977
87978 1999-07-20  Jim Meyering  <meyering@ascend.com>
87979
87980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87981
87982 1999-07-15  Jim Meyering  <meyering@ascend.com>
87983
87984         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87985
87986 1999-05-22  Jim Meyering  <meyering@ascend.com>
87987
87988         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87989
87990 1999-05-20  Jim Meyering  <meyering@ascend.com>
87991
87992         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87993         Add a colon after each `then' in case $4 is empty.
87994
87995 1999-05-16  Jim Meyering  <meyering@ascend.com>
87996
87997         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87998
87999 1999-05-10  Jim Meyering  <meyering@ascend.com>
88000
88001         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88002
88003         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88004         AC_FUNC_MKTIME.
88005
88006 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88007
88008         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88009
88010 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88011
88012         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88013         not CPPFLAGS, so that linking works correctly in IRIX.
88014
88015 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88016
88017         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88018
88019 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88020
88021         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88022         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88024         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88025         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88026
88027         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88028
88029 1999-04-20  Jim Meyering  <meyering@ascend.com>
88030
88031         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88032         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88033         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88034
88035 1999-04-18  Jim Meyering  <meyering@ascend.com>
88036
88037         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88038         * m4/jm-macros.m4: Use it.
88039
88040 1999-04-06  Jim Meyering  <meyering@ascend.com>
88041
88042         * m4/strftime.m4: Remove test for %f.
88043
88044 1999-03-29  Jim Meyering  <meyering@ascend.com>
88045
88046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88047         superset of the AC_TYPE_* checks in the textutils, fileutils,
88048         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88049         AC_TYPE_PID_T.
88050
88051 1999-03-28  Jim Meyering  <meyering@ascend.com>
88052
88053         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88054         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88055         replaced e.g., in the *.sh files of the sh-utils.
88056
88057 1999-03-20  Jim Meyering  <meyering@ascend.com>
88058
88059         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88060         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88061         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88062
88063 1999-03-19  Jim Meyering  <meyering@ascend.com>
88064
88065         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88066
88067 1999-03-12  Jim Meyering  <meyering@ascend.com>
88068
88069         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88070
88071 1999-03-07  Jim Meyering  <meyering@ascend.com>
88072
88073         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88074         declared.
88075
88076 1999-02-17  Jim Meyering  <meyering@ascend.com>
88077
88078         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88079         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88080
88081 1999-02-07  Jim Meyering  <meyering@ascend.com>
88082
88083         * m4/group-member.m4: New file -- extracted from sh-utils'
88084         configure.in.
88085
88086         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88087         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88088
88089 1999-02-06  Jim Meyering  <meyering@ascend.com>
88090
88091         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88092         * m4/fnmatch.m4: Likewise.
88093         * m4/getgroups.m4: Likewise.
88094         * m4/lstat.m4: Likewise.
88095         * m4/malloc.m4: Likewise.
88096         * m4/putenv.m4: Likewise.
88097         * m4/realloc.m4: Likewise.
88098         * m4/regex.m4: Likewise.
88099         * m4/stat.m4: Likewise.
88100         * m4/strftime.m4: Likewise.
88101         Suggestion from Alain Magloire.
88102
88103         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88104         * m4/fnmatch.m4: Likewise.
88105         * m4/getgroups.m4: Likewise.
88106         * m4/getline.m4: Likewise.
88107         * m4/lstat.m4: Likewise.
88108         * m4/malloc.m4: Likewise.
88109         * m4/memcmp.m4: Likewise.
88110         * m4/putenv.m4: Likewise.
88111         * m4/realloc.m4: Likewise.
88112         * m4/regex.m4: Likewise.
88113         * m4/stat.m4: Likewise.
88114         * m4/strftime.m4: Likewise.
88115         Suggestion from Alain Magloire.
88116
88117         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88118         an argument.
88119
88120         * m4/regex.m4: Add a run-time Test for proper operation of
88121         re_compile_pattern.
88122
88123 1999-01-31  Jim Meyering  <meyering@ascend.com>
88124
88125         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88126
88127 1999-01-30  Jim Meyering  <meyering@ascend.com>
88128
88129         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88130
88131         * m4/jm-mktime.m4: Make this a wrapper around the official
88132         AM_FUNC_MKTIME rather than my private copy, now that the official one
88133         is up to date.
88134         * m4/mktime.m4: Remove file.
88135
88136         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88137         * m4/uptime.m4: Likewise.
88138         * m4/uintmax_t.m4: Likewise.
88139
88140 1999-01-28  Jim Meyering  <meyering@ascend.com>
88141
88142         * m4/jm-macros.m4: Use jm_AFS.
88143         * m4/afs.m4: New file (from fileutils' configure.in).
88144
88145         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88146         * m4/chown.m4: Likewise.
88147         * m4/d-ino.m4: Likewise.
88148         * m4/d-type.m4: Likewise.
88149         * m4/fnmatch.m4: Likewise.
88150         * m4/getgroups.m4: Likewise.
88151         * m4/gettext.m4: Likewise.
88152         * m4/jm-mktime.m4: Likewise.
88153         * m4/jm-winsz2.m4: Likewise.
88154         * m4/lcmessage.m4: Likewise.
88155         * m4/ls-mntd-fs.m4: Likewise.
88156         * m4/malloc.m4: Likewise.
88157         * m4/memcmp.m4: Likewise.
88158         * m4/putenv.m4: Likewise.
88159         * m4/realloc.m4: Likewise.
88160         * m4/st_mtim.m4: Likewise.
88161         * m4/strftime.m4: Likewise.
88162
88163 1999-01-16  Jim Meyering  <meyering@ascend.com>
88164
88165         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88166         (ARGMATCH_DIE_DECL): Define.
88167
88168 1999-01-12  Jim Meyering  <meyering@ascend.com>
88169
88170         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88171         Reported by Lars Hecking.
88172
88173 1999-01-10  Jim Meyering  <meyering@ascend.com>
88174
88175         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88176         gross kludge.
88177         * m4/inttypes_h.m4: Likewise.
88178         * m4/lstat.m4: Likewise.
88179         * m4/malloc.m4: Likewise.
88180         * m4/readdir.m4: Likewise.
88181         * m4/realloc.m4: Likewise.
88182         * m4/st_dm_mode.m4: Likewise.
88183         * m4/stat.m4: Likewise.
88184         * m4/utimbuf.m4: Likewise.
88185         * m4/utimes.m4: Likewise.
88186
88187         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88188         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88189         comments in config.h.in are meaningful.
88190
88191         * m4/jm-macros.m4: Require autoconf-2.13 here.
88192
88193         * m4/regex.m4: By default, don't use the included regex.c on systems
88194         with glibc 2.  Suggestion from Uli Drepper.
88195
88196 1999-01-02  Jim Meyering  <meyering@ascend.com>
88197
88198         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88199
88200 1998-12-18  Jim Meyering  <meyering@ascend.com>
88201
88202         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88203         Based on a suggestion from Lars Hecking.
88204
88205 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88206
88207         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88208
88209 1998-11-16  Jim Meyering  <meyering@ascend.com>
88210
88211         * m4/lfs.m4: Double-quote the `uname...` expression.
88212
88213 1998-11-14  Jim Meyering  <meyering@ascend.com>
88214
88215         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88216         * m4/stat.m4: Likewise.
88217
88218 1998-11-03  Jim Meyering  <meyering@ascend.com>
88219
88220         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88221         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88222
88223 1998-10-18  Jim Meyering  <meyering@ascend.com>
88224
88225         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88226
88227 1998-10-17  Jim Meyering  <meyering@ascend.com>
88228
88229         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88230         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88231         calls for those previously hard-coded headers.  Instead, take a new
88232         parameter.
88233         (jm_CHECK_DECLARATIONS): Reflect interface change.
88234         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88235         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88236
88237         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88238
88239 1998-10-14  Jim Meyering  <meyering@ascend.com>
88240
88241         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88242         instead of "TZ=America/Vancouver".  From Paul Eggert.
88243
88244 1998-10-11  Jim Meyering  <meyering@ascend.com>
88245
88246         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88247         This adds a test for a recently added compatibility fix for mktime.c.
88248         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88249
88250 1998-09-27  Jim Meyering  <meyering@ascend.com>
88251
88252         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88253
88254         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88255         ../configure.in, including a change from Gordon Matzigkeit to allow
88256         cross-compiling for the Hurd.
88257
88258         * m4/glibc.m4: New file/macro to test for the GNU C Library
88259         versions 1 and 2.  From Gordon Matzigkeit.
88260         Indent.
88261
88262 1998-09-21  Jim Meyering  <meyering@ascend.com>
88263
88264         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88265
88266 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88267
88268         Port nanosecond-resolution times to UnixWare 2.1.2 and
88269         pedantic Solaris 2.6.
88270
88271         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88272         AC_STRUCT_ST_MTIM.
88273         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88274         Generate name of ns member, instead of just 1 or undef.
88275         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88276
88277 1998-08-15  Jim Meyering  <meyering@ascend.com>
88278
88279         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88280         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88281         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88282         instead of jm_TYPE_SSIZE_T.
88283
88284 1998-08-12  Jim Meyering  <meyering@ascend.com>
88285
88286         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88287
88288 1998-08-02  Jim Meyering  <meyering@ascend.com>
88289
88290         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88291         in acconfig.h manually.
88292
88293 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88294
88295         * m4/st_mtim.m4: New file.
88296
88297 1998-07-28  Jim Meyering  <meyering@ascend.com>
88298
88299         * m4/utimes.m4: Undef stat.
88300
88301 1998-07-25  Jim Meyering  <meyering@ascend.com>
88302
88303         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88304         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88305
88306 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88307
88308         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88309         uid and gid actually remain unchanged.
88310
88311 1998-07-07  Jim Meyering  <meyering@ascend.com>
88312
88313         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88314
88315 1998-07-04  Jim Meyering  <meyering@ascend.com>
88316
88317         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88318         to prove that this macro can be used in packages without regex.c.
88319
88320 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88321
88322         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88323         is to be used.
88324
88325 1998-07-03  Jim Meyering  <meyering@ascend.com>
88326
88327         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88328
88329         * m4/gettext.m4: New file -- from gettext-0.10.35.
88330         * m4/lcmessage.m4: Likewise.
88331         * m4/progtest.m4: Likewise.
88332
88333         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88334         * m4/jm-macros.m4: Require the new macro.
88335
88336 1998-06-29  Jim Meyering  <meyering@ascend.com>
88337
88338         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88339         for the definition of NGROUPS (used in a system header included
88340         by sys/mount.h).
88341
88342 1998-06-28  Jim Meyering  <meyering@ascend.com>
88343
88344         * m4/ls-mntd-fs.m4: New file.
88345         * m4/fstypename.m4: New file.
88346
88347         * m4/jm-macros.m4: Require the new macro.
88348         * m4/jm-glibc-io.m4: New file.
88349
88350 1998-05-19  Jim Meyering  <meyering@ascend.com>
88351
88352         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88353         * m4/lchown.m4: New file.
88354
88355         * m4/Makefile.am.in: New file.
88356         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88357
88358 1998-05-14  Jim Meyering  <meyering@ascend.com>
88359
88360         * m4/Makefile.am (EXTRA_DIST): Add them.
88361         * m4/jm-macros.m4: New file.
88362         * m4/utimbuf.m4: New file.
88363
88364 1998-05-12  Jim Meyering  <meyering@ascend.com>
88365
88366         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88367
88368 1998-05-11  Jim Meyering  <meyering@ascend.com>
88369
88370         * m4/isc-posix.m4: New file.
88371
88372 1998-05-10  Jim Meyering  <meyering@ascend.com>
88373
88374         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88375
88376 1998-05-09  Jim Meyering  <meyering@ascend.com>
88377
88378         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88379         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88380         with automake.
88381
88382         * m4/ssize_t.m4: New file.
88383         * m4/mktime.m4: Remove file -- the new automake has this now.
88384
88385 1998-04-26  Jim Meyering  <meyering@ascend.com>
88386
88387         * m4/assert.m4: New file.
88388         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88389
88390 1998-04-05  Jim Meyering  <meyering@ascend.com>
88391
88392         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88393         (jm_PREREQ): Use it here.
88394
88395 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88396
88397         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88398         in acconfig.h.
88399
88400 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88401
88402         * m4/prereq.m4: New file.
88403         * m4/error.m4: New file.
88404         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88405
88406 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88407
88408         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88409         cache-check for the same variable -- that defeated the purpose of
88410         the test; the test program was never run.  This was a problem only
88411         on systems with losing getline functions -- HP-UX 10.20 is one.
88412         Reported by Bjorn Helgaas.
88413
88414 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88415
88416         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88417
88418 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88419
88420         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88421
88422         * m4/const.m4: New file.  Use an initializer in this declaration
88423         typedef int charset[2]; const charset x;
88424         Reported by Bob Glickstein.
88425
88426 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88427
88428         * m4/chown.m4: Fix reversed types on -1 args to chown.
88429         From Kaveh Ghazi.
88430
88431 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88432
88433         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88434         Add lseek and memchr.
88435
88436         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88437         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88438         have a 20-character limit on names.
88439
88440 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88441
88442         * m4/inttypes_h.m4: New file.
88443         * m4/uintmax_t.m4: New file.
88444         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88445
88446
88447         -----
88448
88449         Local Variables:
88450         coding: utf-8
88451         End:
88452
88453         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88454
88455         Copying and distribution of this file, with or without
88456         modification, are permitted provided the copyright notice
88457         and this notice are preserved.