atanl: Simplify for platforms where 'long double' == 'double'.
[gnulib.git] / ChangeLog
1 2011-10-10  Bruno Haible  <bruno@clisp.org>
2
3         atanl: Simplify for platforms where 'long double' == 'double'.
4         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5         alternative implementation.
6         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8         * modules/atanl (Depends-on): Add atan. Update conditions.
9
10 2011-10-10  Bruno Haible  <bruno@clisp.org>
11
12         acosl: Simplify for platforms where 'long double' == 'double'.
13         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
14         alternative implementation.
15         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
16         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
17         * modules/acosl (Depends-on): Add acos. Update conditions.
18
19 2011-10-10  Bruno Haible  <bruno@clisp.org>
20
21         asinl: Simplify for platforms where 'long double' == 'double'.
22         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23         alternative implementation.
24         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26         * modules/asinl (Depends-on): Add asin. Update conditions.
27
28 2011-10-10  Bruno Haible  <bruno@clisp.org>
29
30         tanl: Simplify for platforms where 'long double' == 'double'.
31         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
32         implementation.
33         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
34         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35         * modules/tanl (Depends-on): Add tan. Update conditions.
36         (configure.ac): Don't compile trigl.c if
37         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38
39 2011-10-10  Bruno Haible  <bruno@clisp.org>
40
41         cosl: Simplify for platforms where 'long double' == 'double'.
42         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43         implementation.
44         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46         * modules/cosl (Depends-on): Add cos. Update conditions.
47         (configure.ac): Don't compile sincosl.c and trigl.c if
48         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
49
50 2011-10-10  Bruno Haible  <bruno@clisp.org>
51
52         sinl: Simplify for platforms where 'long double' == 'double'.
53         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
54         implementation.
55         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
56         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
57         * modules/sinl (Depends-on): Add sin. Update conditions.
58         (configure.ac): Don't compile sincosl.c and trigl.c if
59         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
60
61 2011-10-10  Bruno Haible  <bruno@clisp.org>
62
63         logl: Simplify for platforms where 'long double' == 'double'.
64         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
65         implementation.
66         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
67         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
68         * modules/logl (Depends-on): Add log. Update conditions.
69
70 2011-10-10  Bruno Haible  <bruno@clisp.org>
71
72         expl: Simplify for platforms where 'long double' == 'double'.
73         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
74         implementation.
75         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
76         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
77         * modules/expl (Depends-on): Add exp. Update conditions.
78
79 2011-10-10  Bruno Haible  <bruno@clisp.org>
80
81         sqrtl: Simplify for platforms where 'long double' == 'double'.
82         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
83         alternative implementation.
84         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
85         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
86         * modules/sqrtl (Depends-on): Update conditions.
87
88 2011-10-10  Bruno Haible  <bruno@clisp.org>
89
90         ldexpl: Simplify for platforms where 'long double' == 'double'.
91         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
92         alternative implementation.
93         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
94         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
95         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
96
97 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
98
99         ffsll: set correct witness
100         * modules/ffsll (configure.ac): Fix typo.
101
102 2011-10-10  Bruno Haible  <bruno@clisp.org>
103
104         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
105         * lib/printf-frexpl.c: Include <config.h>.
106         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
107         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
108         second time.
109         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
110         gl_LONG_DOUBLE_VS_DOUBLE.
111         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
112         conditions.
113
114 2011-10-10  Bruno Haible  <bruno@clisp.org>
115
116         frexpl: Simplify for platforms where 'long double' == 'double'.
117         * lib/frexpl.c: Include <config.h>.
118         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
119         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
120         time.
121         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
122         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
123         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
124         * modules/frexpl (Depends-on): Add frexp. Update conditions.
125         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
126         conditions.
127
128 2011-10-10  Jim Meyering  <meyering@redhat.com>
129
130         test-renameat: don't leave behind a temporary file
131         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
132           ERROR: files left in build directory after distclean:
133           ./gltests/test-renameat.too
134           make[1]: *** [distcleancheck] Error 1
135         Reported by Tom G. Christensen.
136
137 2011-10-09  Bruno Haible  <bruno@clisp.org>
138
139         rint: Determine RINT_LIBM correctly on AIX 7.
140         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
141         directly, not only through a function pointer. Also accept an optional
142         4th argument with extra code.
143         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
144         rintf() call by gcc when optimizing.
145
146         mathfunc.m4: Refactor.
147         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
148         m4 variable.
149
150 2011-10-09  Bruno Haible  <bruno@clisp.org>
151
152         rintl: Simplify for platforms where 'long double' == 'double'.
153         * lib/rintl.c: Include <config.h>.
154         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
155         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
156         time.
157         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
158         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
159         * modules/rintl (Depends-on): Add rint. Update conditions.
160
161 2011-10-09  Bruno Haible  <bruno@clisp.org>
162
163         roundl: Simplify for platforms where 'long double' == 'double'.
164         * lib/roundl.c: Include <config.h>.
165         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
166         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
167         time.
168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
169         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
170         * modules/roundl (Depends-on): Add round. Update conditions.
171
172 2011-10-09  Bruno Haible  <bruno@clisp.org>
173
174         truncl: Simplify for platforms where 'long double' == 'double'.
175         * lib/truncl.c: Include <config.h>.
176         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
177         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
178         time.
179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
180         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
181         * modules/truncl (Depends-on): Add trunc. Update conditions.
182
183 2011-10-09  Bruno Haible  <bruno@clisp.org>
184
185         ceill: Simplify for platforms where 'long double' == 'double'.
186         * lib/ceill.c: Include <config.h>.
187         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
188         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
189         time.
190         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
191         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
192         * modules/ceill (Depends-on): Add ceil. Update conditions.
193
194 2011-10-09  Bruno Haible  <bruno@clisp.org>
195
196         floorl: Simplify for platforms where 'long double' == 'double'.
197         * lib/floorl.c: Include <config.h>.
198         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
199         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
200         time.
201         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
202         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
203         * modules/floorl (Depends-on): Add floor. Update conditions.
204
205 2011-10-09  Bruno Haible  <bruno@clisp.org>
206
207         rint: Fix ordering constraints.
208         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
209         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
210         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
211
212 2011-10-09  Bruno Haible  <bruno@clisp.org>
213
214         copysignl: Simplify for platforms where 'long double' == 'double'.
215         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
216         alternative.
217         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
218         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
219         * modules/copysignl (Depends-on): Add copysign. Update conditions.
220
221 2011-10-09  Bruno Haible  <bruno@clisp.org>
222
223         Tests for module 'rintl'.
224         * modules/rintl-tests: New file.
225         * tests/test-rintl.c: New file.
226
227         New module 'rintl'.
228         * lib/math.in.h (rintl): New declaration.
229         * lib/rintl.c: New file.
230         * m4/rintl.m4: New file.
231         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
233         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
234         * modules/rintl: New file.
235         * tests/test-math-c++.cc: Check the declaration of rintl.
236         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
237         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
238         * doc/posix-functions/rintl.texi: Mention the new module.
239
240 2011-10-09  Bruno Haible  <bruno@clisp.org>
241
242         Tests for module 'rintf'.
243         * modules/rintf-tests: New file.
244         * tests/test-rintf.c: New file.
245
246         New module 'rintf'.
247         * lib/math.in.h (rintf): New declaration.
248         * lib/rintf.c: New file.
249         * m4/rintf.m4: New file.
250         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
252         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
253         * modules/rintf: New file.
254         * tests/test-math-c++.cc: Check the declaration of rintf.
255         * doc/posix-functions/rintf.texi: Mention the new module.
256
257 2011-10-09  Bruno Haible  <bruno@clisp.org>
258
259         rint: Support for MSVC.
260         * lib/math.in.h (rint): New declaration.
261         * lib/rint.c: New file.
262         * m4/rint.m4: New file.
263         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
265         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
266         * modules/rint (Description): Fix.
267         (Files): Add lib/rint.c, m4/rint.m4.
268         (Depends-on): Add math.
269         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
270         gl_MATH_MODULE_INDICATOR.
271         * tests/test-math-c++.cc: Check the declaration of rint.
272         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
273         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
274         * doc/posix-functions/rint.texi: Mention the replacement provided by
275         the module.
276
277         rint tests: More tests.
278         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
279         minus-zero.h, infinity.h, nan.h.
280         (main): Skip the test if the current rounding mode is not standard. Add
281         tests for negative numbers, minus zero, infinity, NaN.
282         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
283         tests/nan.h.
284         (Depends-on): Add isnand-nolibm.
285
286 2011-10-09  Bruno Haible  <bruno@clisp.org>
287
288         Tests for module 'copysignl'.
289         * modules/copysignl-tests: New file.
290         * tests/test-copysignl.c: New file.
291
292         New module 'copysignl'.
293         * lib/math.in.h (copysignl): New declaration.
294         * lib/copysignl.c: New file.
295         * m4/copysignl.m4: New file.
296         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
298         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
299         HAVE_COPYSIGNL.
300         * modules/copysignl: New file.
301         * tests/test-math-c++.cc: Check the declaration of copysignl.
302         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
303         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
304         * doc/posix-functions/copysignl.texi: Mention the new module.
305
306 2011-10-09  Bruno Haible  <bruno@clisp.org>
307
308         Tests for module 'copysignf'.
309         * modules/copysignf-tests: New file.
310         * tests/test-copysignf.c: New file.
311
312         New module 'copysignf'.
313         * lib/math.in.h (copysignf): New declaration.
314         * lib/copysignf.c: New file.
315         * m4/copysignf.m4: New file.
316         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
318         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
319         HAVE_COPYSIGNF.
320         * modules/copysignf: New file.
321         * tests/test-math-c++.cc: Check the declaration of copysignf.
322         * doc/posix-functions/copysignf.texi: Mention the new module.
323
324 2011-10-09  Bruno Haible  <bruno@clisp.org>
325
326         Ensure that HAVE_* variables are set to 1 before they are set to 0.
327         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
328         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
329         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
331         gl_SIGNAL_H_DEFAULTS.
332
333 2011-10-09  Bruno Haible  <bruno@clisp.org>
334
335         poll: Make macro safer.
336         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
337         ac_cv_header_poll_h is not set.
338
339 2011-10-09  Bruno Haible  <bruno@clisp.org>
340
341         copysign: Provide replacement.
342         * lib/math.in.h (copysign): New declaration.
343         * lib/copysign.c: New file.
344         * m4/copysign.m4: New file.
345         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
347         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
348         HAVE_COPYSIGN.
349         * modules/copysign (Description): Clarify.
350         (Files): Add lib/copysign.c, m4/copysign.m4.
351         (Depends-on): Add math, signbit.
352         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
353         gl_MATH_MODULE_INDICATOR.
354         * tests/test-math-c++.cc: Check the declaration of copysign.
355         * doc/posix-functions/copysign.texi: Mention the effects of the module
356         on Minix and MSVC.
357
358 2011-10-09  Bruno Haible  <bruno@clisp.org>
359
360         isinf: Ensure macro on AIX 5.1.
361         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
362         macro.
363         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
364
365 2011-10-09  Bruno Haible  <bruno@clisp.org>
366
367         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
368         * modules/snprintf-posix-tests (configure.ac): Require
369         gl_LONG_DOUBLE_VS_DOUBLE.
370         * modules/sprintf-posix-tests (configure.ac): Likewise.
371         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
372         * modules/vasprintf-posix-tests (configure.ac): Likewise.
373         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
374         * modules/vsprintf-posix-tests (configure.ac): Likewise.
375         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
376         tests on platforms where 'long double' is the same as 'double'.
377         * tests/test-sprintf-posix.h (test_function): Likewise.
378         * tests/test-vasnprintf-posix.c (test_function): Likewise.
379         * tests/test-vasprintf-posix.c (test_function): Likewise.
380
381         *printf: Fix for platforms where 'long double' == 'double'.
382         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
383         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
384         * modules/dprintf-posix (Files): Add m4/math_h.m4.
385         * modules/fprintf-posix (Files): Likewise.
386         * modules/obstack-printf-posix (Files): Likewise.
387         * modules/snprintf-posix (Files): Likewise.
388         * modules/sprintf-posix (Files): Likewise.
389         * modules/vasnprintf (Files): Likewise.
390         * modules/vasnprintf-posix (Files): Likewise.
391         * modules/vasprintf-posix (Files): Likewise.
392         * modules/vdprintf-posix (Files): Likewise.
393         * modules/vfprintf-posix (Files): Likewise.
394         * modules/vsnprintf-posix (Files): Likewise.
395         * modules/vsprintf-posix (Files): Likewise.
396         * modules/unistdio/u8-vasnprintf (Files): Likewise.
397         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
398         * modules/unistdio/u16-vasnprintf (Files): Likewise.
399         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
400         * modules/unistdio/u32-vasnprintf (Files): Likewise.
401         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
402         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
403
404         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
405         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
406         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
407         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
408         'long double'.
409         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
410
411         isinf: Fix for platforms where 'long double' == 'double'.
412         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
413         Don't blindly assume 80-bit 'long double'.
414
415         isfinite: Fix for platforms where 'long double' == 'double'.
416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
417         Don't blindly assume 80-bit 'long double'.
418
419         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
420         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
421         * modules/isfinite-tests (configure.ac): Require
422         gl_LONG_DOUBLE_VS_DOUBLE.
423         * modules/isinf-tests (configure.ac): Likewise.
424         * modules/isnan-tests (configure.ac): Likewise.
425         * modules/isnanl-tests (configure.ac): Likewise.
426         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
427         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
428         tests on platforms where 'long double' is the same as 'double'.
429         * tests/test-isinf.c (test_isinfl): Likewise.
430         * tests/test-isnan.c (test_long_double): Likewise.
431         * tests/test-isnanl.h (main): Likewise.
432
433 2011-10-08  Bruno Haible  <bruno@clisp.org>
434
435         Tests for module 'tanhf'.
436         * modules/tanhf-tests: New file.
437         * tests/test-tanhf.c: New file.
438
439         New module 'tanhf'.
440         * lib/math.in.h (tanhf): New declaration.
441         * lib/tanhf.c: New file.
442         * m4/tanhf.m4: New file.
443         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
445         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
446         * modules/tanhf: New file.
447         * tests/test-math-c++.cc: Check the declaration of tanhf.
448         * doc/posix-functions/tanhf.texi: Mention the new module.
449
450         tanh: Use a .m4 file.
451         * m4/tanh.m4: New file.
452         * modules/tanh (Files): Add it.
453         (configure.ac): Just invoke gl_FUNC_TANH.
454
455 2011-10-08  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'coshf'.
458         * modules/coshf-tests: New file.
459         * tests/test-coshf.c: New file.
460
461         New module 'coshf'.
462         * lib/math.in.h (coshf): New declaration.
463         * lib/coshf.c: New file.
464         * m4/coshf.m4: New file.
465         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
467         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
468         * modules/coshf: New file.
469         * tests/test-math-c++.cc: Check the declaration of coshf.
470         * doc/posix-functions/coshf.texi: Mention the new module.
471
472         cosh: Use a .m4 file.
473         * m4/cosh.m4: New file.
474         * modules/cosh (Files): Add it.
475         (configure.ac): Just invoke gl_FUNC_COSH.
476
477 2011-10-08  Bruno Haible  <bruno@clisp.org>
478
479         Tests for module 'sinhf'.
480         * modules/sinhf-tests: New file.
481         * tests/test-sinhf.c: New file.
482
483         New module 'sinhf'.
484         * lib/math.in.h (sinhf): New declaration.
485         * lib/sinhf.c: New file.
486         * m4/sinhf.m4: New file.
487         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
489         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
490         * modules/sinhf: New file.
491         * tests/test-math-c++.cc: Check the declaration of sinhf.
492         * doc/posix-functions/sinhf.texi: Mention the new module.
493
494         sinh: Use a .m4 file.
495         * m4/sinh.m4: New file.
496         * modules/sinh (Files): Add it.
497         (configure.ac): Just invoke gl_FUNC_SINH.
498
499 2011-10-08  Bruno Haible  <bruno@clisp.org>
500
501         Tests for module 'atan2f'.
502         * modules/atan2f-tests: New file.
503         * tests/test-atan2f.c: New file.
504
505         New module 'atan2f'.
506         * lib/math.in.h (atan2f): New declaration.
507         * lib/atan2f.c: New file.
508         * m4/atan2f.m4: New file.
509         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
511         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
512         * modules/atan2f: New file.
513         * tests/test-math-c++.cc: Check the declaration of atan2f.
514         * doc/posix-functions/atan2f.texi: Mention the new module.
515
516         atan2: Use a .m4 file.
517         * m4/atan2.m4: New file.
518         * modules/atan2 (Files): Add it.
519         (configure.ac): Just invoke gl_FUNC_ATAN2.
520
521 2011-10-08  Bruno Haible  <bruno@clisp.org>
522
523         Tests for module 'atanf'.
524         * modules/atanf-tests: New file.
525         * tests/test-atanf.c: New file.
526
527         New module 'atanf'.
528         * lib/math.in.h (atanf): New declaration.
529         * lib/atanf.c: New file.
530         * m4/atanf.m4: New file.
531         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
533         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
534         * modules/atanf: New file.
535         * tests/test-math-c++.cc: Check the declaration of atanf.
536         * doc/posix-functions/atanf.texi: Mention the new module.
537
538         atan: Use a .m4 file.
539         * m4/atan.m4: New file.
540         * modules/atan (Files): Add it.
541         (configure.ac): Just invoke gl_FUNC_ATAN.
542
543 2011-10-08  Bruno Haible  <bruno@clisp.org>
544
545         Tests for module 'acosf'.
546         * modules/acosf-tests: New file.
547         * tests/test-acosf.c: New file.
548
549         New module 'acosf'.
550         * lib/math.in.h (acosf): New declaration.
551         * lib/acosf.c: New file.
552         * m4/acosf.m4: New file.
553         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
555         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
556         * modules/acosf: New file.
557         * tests/test-math-c++.cc: Check the declaration of acosf.
558         * doc/posix-functions/acosf.texi: Mention the new module.
559
560         acos: Use a .m4 file.
561         * m4/acos.m4: New file.
562         * modules/acos (Files): Add it.
563         (configure.ac): Just invoke gl_FUNC_ACOS.
564
565 2011-10-08  Bruno Haible  <bruno@clisp.org>
566
567         Tests for module 'asinf'.
568         * modules/asinf-tests: New file.
569         * tests/test-asinf.c: New file.
570
571         New module 'asinf'.
572         * lib/math.in.h (asinf): New declaration.
573         * lib/asinf.c: New file.
574         * m4/asinf.m4: New file.
575         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
577         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
578         * modules/asinf: New file.
579         * tests/test-math-c++.cc: Check the declaration of asinf.
580         * doc/posix-functions/asinf.texi: Mention the new module.
581
582         asin: Use a .m4 file.
583         * m4/asin.m4: New file.
584         * modules/asin (Files): Add it.
585         (configure.ac): Just invoke gl_FUNC_ASIN.
586
587 2011-10-08  Bruno Haible  <bruno@clisp.org>
588
589         Tests for module 'tanf'.
590         * modules/tanf-tests: New file.
591         * tests/test-tanf.c: New file.
592
593         New module 'tanf'.
594         * lib/math.in.h (tanf): New declaration.
595         * lib/tanf.c: New file.
596         * m4/tanf.m4: New file.
597         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
599         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
600         * modules/tanf: New file.
601         * tests/test-math-c++.cc: Check the declaration of tanf.
602         * doc/posix-functions/tanf.texi: Mention the new module.
603
604         tan: Use a .m4 file.
605         * m4/tan.m4: New file.
606         * modules/tan (Files): Add it.
607         (configure.ac): Just invoke gl_FUNC_TAN.
608
609 2011-10-08  Bruno Haible  <bruno@clisp.org>
610
611         Tests for module 'cosf'.
612         * modules/cosf-tests: New file.
613         * tests/test-cosf.c: New file.
614
615         New module 'cosf'.
616         * lib/math.in.h (cosf): New declaration.
617         * lib/cosf.c: New file.
618         * m4/cosf.m4: New file.
619         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
621         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
622         * modules/cosf: New file.
623         * tests/test-math-c++.cc: Check the declaration of cosf.
624         * doc/posix-functions/cosf.texi: Mention the new module.
625
626         cos: Use a .m4 file.
627         * m4/cos.m4: New file.
628         * modules/cos (Files): Add it.
629         (configure.ac): Just invoke gl_FUNC_COS.
630
631 2011-10-08  Bruno Haible  <bruno@clisp.org>
632
633         Tests for module 'sinf'.
634         * modules/sinf-tests: New file.
635         * tests/test-sinf.c: New file.
636
637         New module 'sinf'.
638         * lib/math.in.h (sinf): New declaration.
639         * lib/sinf.c: New file.
640         * m4/sinf.m4: New file.
641         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
643         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
644         * modules/sinf: New file.
645         * tests/test-math-c++.cc: Check the declaration of sinf.
646         * doc/posix-functions/sinf.texi: Mention the new module.
647
648         sin: Use a .m4 file.
649         * m4/sin.m4: New file.
650         * modules/sin (Files): Add it.
651         (configure.ac): Just invoke gl_FUNC_SIN.
652
653 2011-10-08  Bruno Haible  <bruno@clisp.org>
654
655         Tests for module 'powf'.
656         * modules/powf-tests: New file.
657         * tests/test-powf.c: New file.
658
659         New module 'powf'.
660         * lib/math.in.h (powf): New declaration.
661         * lib/powf.c: New file.
662         * m4/powf.m4: New file.
663         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
665         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
666         * modules/powf: New file.
667         * tests/test-math-c++.cc: Check the declaration of powf.
668         * doc/posix-functions/powf.texi: Mention the new module.
669
670         pow: Use a .m4 file.
671         * m4/pow.m4: New file.
672         * modules/pow (Files): Add it.
673         (configure.ac): Just invoke gl_FUNC_POW.
674
675 2011-10-08  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'log10f'.
678         * modules/log10f-tests: New file.
679         * tests/test-log10f.c: New file.
680
681         New module 'log10f'.
682         * lib/math.in.h (log10f): New declaration.
683         * lib/log10f.c: New file.
684         * m4/log10f.m4: New file.
685         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
687         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
688         * modules/log10f: New file.
689         * tests/test-math-c++.cc: Check the declaration of log10f.
690         * doc/posix-functions/log10f.texi: Mention the new module.
691
692         log10: Use a .m4 file.
693         * m4/log10.m4: New file.
694         * modules/log10 (Files): Add it.
695         (configure.ac): Just invoke gl_FUNC_LOG10.
696
697 2011-10-08  Bruno Haible  <bruno@clisp.org>
698
699         Tests for module 'logf'.
700         * modules/logf-tests: New file.
701         * tests/test-logf.c: New file.
702
703         New module 'logf'.
704         * lib/math.in.h (logf): New declaration.
705         * lib/logf.c: New file.
706         * m4/logf.m4: New file.
707         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
709         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
710         * modules/logf: New file.
711         * tests/test-math-c++.cc: Check the declaration of logf.
712         * doc/posix-functions/logf.texi: Mention the new module.
713
714         log: Use a .m4 file.
715         * m4/log.m4: New file.
716         * modules/log (Files): Add it.
717         (configure.ac): Just invoke gl_FUNC_LOG.
718
719 2011-10-08  Bruno Haible  <bruno@clisp.org>
720
721         Tests for module 'expf'.
722         * modules/expf-tests: New file.
723         * tests/test-expf.c: New file.
724
725         New module 'expf'.
726         * lib/math.in.h (expf): New declaration.
727         * lib/expf.c: New file.
728         * m4/expf.m4: New file.
729         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
731         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
732         * modules/expf: New file.
733         * tests/test-math-c++.cc: Check the declaration of expf.
734         * doc/posix-functions/expf.texi: Mention the new module.
735
736         exp: Use a .m4 file.
737         * m4/exp.m4: New file.
738         * modules/exp (Files): Add it.
739         (configure.ac): Just invoke gl_FUNC_EXP.
740
741 2011-10-08  Bruno Haible  <bruno@clisp.org>
742
743         Tests for module 'sqrtf'.
744         * modules/sqrtf-tests: New file.
745         * tests/test-sqrtf.c: New file.
746
747         New module 'sqrtf'.
748         * lib/math.in.h (sqrtf): New declaration.
749         * lib/sqrtf.c: New file.
750         * m4/sqrtf.m4: New file.
751         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
753         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
754         * modules/sqrtf: New file.
755         * tests/test-math-c++.cc: Check the declaration of sqrtf.
756         * doc/posix-functions/sqrtf.texi: Mention the new module.
757
758 2011-10-08  Bruno Haible  <bruno@clisp.org>
759
760         Tests: Avoid link failures w.r.t. libintl.
761         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
762         $(LIBINTL).
763         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
764         $(LIBINTL).
765         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
766         against $(LIBINTL).
767         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
768         $(LIBINTL).
769         * modules/openat-tests (Makefile.am): Link test-fchmodat against
770         $(LIBINTL).
771         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
772
773 2011-10-08  Bruno Haible  <bruno@clisp.org>
774
775         pow tests: Defeat compiler optimizations.
776         * tests/test-pow.c (main): Assign arguments to x and y before use.
777
778 2011-10-08  Bruno Haible  <bruno@clisp.org>
779
780         gnulib-tool: Improve last commit.
781         * gnulib-tool (func_modules_transitive_closure): Simplify code.
782         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
783         ignore dependencies that are not among the modules list.
784
785 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
786
787         gnulib-tool: don't follow dependencies to avoided modules
788         This fixes a bug that is related to the previous one.
789         * gnulib-tool (func_modules_transitive_closure)
790         (func_emit_autoconf_snippets):
791         Check whether a dependency is acceptable before using it.
792         (--extract-dependencies): Report an error if --avoid is also used,
793         since this combination of options is not yet supported.
794
795         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
796         Problem reported by Peter Dyballa in
797         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
798         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
799         when echoing "$condition".
800
801 2011-10-07  Bruno Haible  <bruno@clisp.org>
802
803         Fix documentation about math functions on MacOS X.
804         * doc/posix-functions/exp2.texi: Don't say the function is missing on
805         MacOS X 10.5.
806         * doc/posix-functions/fdim.texi: Likewise.
807         * doc/posix-functions/feclearexcept.texi: Likewise.
808         * doc/posix-functions/fegetenv.texi: Likewise.
809         * doc/posix-functions/fegetround.texi: Likewise.
810         * doc/posix-functions/feholdexcept.texi: Likewise.
811         * doc/posix-functions/feraiseexcept.texi: Likewise.
812         * doc/posix-functions/fesetenv.texi: Likewise.
813         * doc/posix-functions/fesetround.texi: Likewise.
814         * doc/posix-functions/fetestexcept.texi: Likewise.
815         * doc/posix-functions/feupdateenv.texi: Likewise.
816         * doc/posix-functions/fmax.texi: Likewise.
817         * doc/posix-functions/fmin.texi: Likewise.
818         * doc/posix-functions/log2.texi: Likewise.
819         * doc/posix-functions/modff.texi: Likewise.
820         * doc/posix-functions/nan.texi: Likewise.
821         * doc/posix-functions/nanf.texi: Likewise.
822         * doc/posix-functions/nextafterf.texi: Likewise.
823         * doc/posix-functions/remquo.texi: Likewise.
824
825 2011-10-07  Bruno Haible  <bruno@clisp.org>
826
827         modff: Drop assumption about library that defines modff.
828         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
829         AC_CHECK_FUNCS.
830         * modules/modff (Files): Add m4/mathfunc.m4.
831
832 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
833
834         raise tests: Avoid a GCC warning.
835         * tests/test-raise.c (handler): Use _Noreturn.
836
837 2011-10-07  Bruno Haible  <bruno@clisp.org>
838
839         Tests for module 'ldexpf'.
840         * modules/ldexpf-tests: New file.
841         * tests/test-ldexpf.c: New file.
842
843         New module 'ldexpf'.
844         * lib/math.in.h (ldexpf): New declaration.
845         * lib/ldexpf.c: New file.
846         * m4/ldexpf.m4: New file.
847         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
849         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
850         * modules/ldexpf: New file.
851         * tests/test-math-c++.cc: Check the declaration of ldexpf.
852         * doc/posix-functions/ldexpf.texi: Mention the new module.
853
854 2011-10-06  Bruno Haible  <bruno@clisp.org>
855
856         frexpf: Work around problems on IRIX and mingw.
857         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
859         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
860         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
861         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
862         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
863         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
864
865 2011-10-06  Bruno Haible  <bruno@clisp.org>
866
867         fabsf: Drop assumption about library that defines fabsf.
868         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
869         AC_CHECK_FUNCS.
870         * modules/fabsf (Files): Add m4/mathfunc.m4.
871
872 2011-10-06  Bruno Haible  <bruno@clisp.org>
873
874         frexpf: Drop assumption about library that defines frexpf.
875         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
876         'int *', 'float *', 'long double *', 'float', 'long double'.
877         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
878         AC_CHECK_FUNCS.
879         * modules/frexpf (Files): Add m4/mathfunc.m4.
880
881         Tests for module 'frexpf'.
882         * modules/frexpf-tests: New file.
883         * tests/test-frexpf.c: New file.
884
885         New module 'frexpf'.
886         * lib/math.in.h (frexpf): New declaration.
887         * lib/frexpf.c: New file.
888         * m4/frexpf.m4: New file.
889         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
891         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
892         * modules/frexpf: New file.
893         * tests/test-math-c++.cc: Check the declaration of frexpf.
894         * doc/posix-functions/frexpf.texi: Mention the new module.
895
896 2011-10-06  Bruno Haible  <bruno@clisp.org>
897
898         math: Sort function declarations of math.in.h.
899         * lib/math.in.h (frexp, logb): Move declarations.
900
901 2011-10-05  Bruno Haible  <bruno@clisp.org>
902
903         Tests for module 'modff'.
904         * modules/modff-tests: New file.
905         * tests/test-modff.c: New file.
906
907         New module 'modff'.
908         * lib/math.in.h (modff): New declaration.
909         * lib/modff.c: New file.
910         * m4/modff.m4: New file.
911         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
913         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
914         * modules/modff: New file.
915         * tests/test-math-c++.cc: Check the declaration of modff.
916         * doc/posix-functions/modff.texi: Mention the new module.
917
918         modf tests: Make test sharper.
919         * tests/test-modf.c (main): Strengthen upper bound.
920
921         modf: Use a .m4 file.
922         * m4/modf.m4: New file.
923         * modules/modf (Files): Add it.
924         (configure.ac): Just invoke gl_FUNC_MODF.
925
926 2011-10-05  Bruno Haible  <bruno@clisp.org>
927
928         Tests for module 'fmodf'.
929         * modules/fmodf-tests: New file.
930         * tests/test-fmodf.c: New file.
931
932         New module 'fmodf'.
933         * lib/math.in.h (fmodf): New declaration.
934         * lib/fmodf.c: New file.
935         * m4/fmodf.m4: New file.
936         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
938         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
939         * modules/fmodf: New file.
940         * tests/test-math-c++.cc: Check the declaration of fmodf.
941         * doc/posix-functions/fmodf.texi: Mention the new module.
942
943         fmod: Use a .m4 file.
944         * m4/fmod.m4: New file.
945         * modules/fmod (Files): Add it.
946         (configure.ac): Just invoke gl_FUNC_FMOD.
947
948 2011-10-05  Bruno Haible  <bruno@clisp.org>
949
950         Tests for module 'fabsf'.
951         * modules/fabsf-tests: New file.
952         * tests/test-fabsf.c: New file.
953
954         New module 'fabsf'.
955         * lib/math.in.h (fabsf): New declaration.
956         * lib/fabsf.c: New file.
957         * m4/fabsf.m4: New file.
958         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
960         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
961         * modules/fabsf: New file.
962         * tests/test-math-c++.cc: Check the declaration of fabsf.
963         * doc/posix-functions/fabsf.texi: Mention the new module.
964
965         fabs: Use a .m4 file.
966         * m4/fabs.m4: New file.
967         * modules/fabs (Files): Add it.
968         (configure.ac): Just invoke gl_FUNC_FABS.
969
970 2011-10-05  Jim Meyering  <meyering@redhat.com>
971
972         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
973         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
974         ls -lL regression introduced in coreutils-8.12, it does so at the
975         cost of an additional stat call in the common case.  Besides, now
976         that the kernel change that prompted commit 95f7c57f has been reverted
977         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
978         we have no use for commit 95f7c57f, "file-has-acl: use
979         acl_extended_file_nofollow if available".
980
981 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
982
983         file-has-acl: revert unintended change in behavior of ls -L
984         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
985         derived from...
986         (file_has_acl): ...code here.  Call it.
987         This problem was introduced with 2011-07-22 commit 95f7c57f,
988         "file-has-acl: use acl_extended_file_nofollow if available".
989         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
990
991 2011-10-03  Bruno Haible  <bruno@clisp.org>
992
993         poll: Avoid link errors on MSVC.
994         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
995         * modules/poll (Depends-on): Add sockets.
996         (Link): New section.
997         * NEWS: Mention the change.
998         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
999         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1000         $(LIB_POLL) instead of $(LIBSOCKET).
1001
1002 2011-10-03  Bruno Haible  <bruno@clisp.org>
1003
1004         sys_select tests: Fix link error on MSVC 9.
1005         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1006         with $(LIB_SELECT) instead of $(LIBSOCKET).
1007
1008 2011-10-03  Bruno Haible  <bruno@clisp.org>
1009
1010         sys_select: Fix compilation error on mingw.
1011         * lib/sys_select.in.h: On native Windows, include <io.h>.
1012
1013 2011-10-03  Bruno Haible  <bruno@clisp.org>
1014
1015         wmemset: Support for MSVC.
1016         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1017         whether wmemset() exists.
1018
1019 2011-10-03  Bruno Haible  <bruno@clisp.org>
1020
1021         wmemmove: Support for MSVC.
1022         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1023         whether wmemmove() exists.
1024
1025 2011-10-03  Bruno Haible  <bruno@clisp.org>
1026
1027         wmemcpy: Support for MSVC.
1028         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1029         whether wmemcpy() exists.
1030
1031 2011-10-03  Bruno Haible  <bruno@clisp.org>
1032
1033         wmemcmp: Support for MSVC.
1034         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1035         whether wmemcmp() exists.
1036
1037 2011-10-03  Bruno Haible  <bruno@clisp.org>
1038
1039         wmemchr: Support for MSVC.
1040         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1041         whether wmemchr() exists.
1042
1043 2011-10-03  Bruno Haible  <bruno@clisp.org>
1044
1045         glthread/*, strsignal: Support for MSVC.
1046         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1047         including <winsock.h> on MSVC 9.
1048         * lib/glthread/lock.h: Likewise.
1049         * lib/glthread/thread.h: Likewise.
1050         * lib/glthread/tls.h: Likewise.
1051         * lib/glthread/yield.h: Likewise.
1052         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1053         if HAVE_UNISTD_H is false.
1054         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1055
1056 2011-10-03  Bruno Haible  <bruno@clisp.org>
1057
1058         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1059         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1060         Set to 100000.
1061
1062 2011-10-03  Bruno Haible  <bruno@clisp.org>
1063
1064         acl: Fix specification.
1065         * lib/file-has-acl.c (file_has_acl): Fix specification.
1066
1067 2011-10-03  Bruno Haible  <bruno@clisp.org>
1068
1069         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1070         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1071         (compute_curr_prefix, shared_library_fullname,
1072         find_shared_library_fullname, get_shared_library_fullname, relocate):
1073         Use it together with PIC && INSTALLDIR.
1074         Reported by <jojelino@gmail.com>
1075         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1076
1077 2011-10-01  Jim Meyering  <meyering@redhat.com>
1078
1079         maint.mk: adjust a release-related rule not to require use of gzip
1080         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1081         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1082         projects that build only .tar.xz files.  Also fix an erroneous test.
1083
1084         test-linkat: don't leave behind a temporary file
1085         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1086         Otherwise, coreutils' "make distcheck" would fail with this:
1087           Only in /c/cu/tests/torture/coreutils/test/\
1088             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1089           make[2]: *** [my-distcheck] Error 1
1090
1091         float, math: add omitted file
1092         * lib/itold.c: Add file, required for yesterday's float change.
1093
1094 2011-10-01  Bruno Haible  <bruno@clisp.org>
1095
1096         isinf: Fix for OpenBSD/x86.
1097         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1098         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1099         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1100
1101 2011-10-01  Bruno Haible  <bruno@clisp.org>
1102
1103         isfinite: Fix syntax error in configure test.
1104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1105
1106         isfinite: Fix typo.
1107         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1108         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1109
1110 2011-10-01  Bruno Haible  <bruno@clisp.org>
1111
1112         nonblocking tests: Fix test failure on Linux/IA-64.
1113         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1114         Set to 270000.
1115
1116 2011-10-01  Bruno Haible  <bruno@clisp.org>
1117
1118         mkfifoat tests: Fix a test failure on mingw.
1119         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1120         with error ENOSYS.
1121
1122 2011-09-30  Bruno Haible  <bruno@clisp.org>
1123
1124         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1125         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1126         'long double'. Set REPLACE_ITOLD.
1127         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1128         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1129         * lib/itold.c: New file.
1130         * modules/float (Files): Add lib/itold.c.
1131         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1132         (Makefile.am): Substitute REPLACE_ITOLD.
1133         * modules/math (Depends-on): Add float.
1134         (Makefile.am): Substitute REPLACE_ITOLD.
1135         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1136         * doc/posix-headers/math.texi: Likewise.
1137         * doc/posix-functions/logl.texi: Likewise.
1138
1139 2011-09-30  Bruno Haible  <bruno@clisp.org>
1140
1141         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1142         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1143         Set to 140000.
1144
1145 2011-09-30  Bruno Haible  <bruno@clisp.org>
1146
1147         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1148         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1149         invocation, say "right after AC_PROG_CC_STDC", not "right after
1150         AC_PROG_CC".
1151         Reported by Gary V. Vaughan <gary@gnu.org>.
1152
1153 2011-09-30  Bruno Haible  <bruno@clisp.org>
1154
1155         Centralize C99 requirement.
1156         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1157         * modules/stdarg (configure.ac-early): Invoke it instead of
1158         AC_PROG_CC_STDC.
1159         Reported by Gary V. Vaughan and Paul Eggert.
1160
1161 2011-09-29  Bruno Haible  <bruno@clisp.org>
1162
1163         float: Fix LDBL_MAX value on Linux/PowerPC.
1164         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1165         on Linux/PowerPC.
1166         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1167         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1168         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1169         platform.
1170         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1171
1172 2011-09-29  Bruno Haible  <bruno@clisp.org>
1173
1174         doc: Improve doc about gl_EARLY.
1175         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1176         AC_PROG_CC_STDC invocation.
1177         Reported by Gary V. Vaughan <gary@gnu.org>.
1178
1179 2011-09-28  Bruno Haible  <bruno@clisp.org>
1180
1181         fgetc, fputc, fread, fwrite tests: Fix link error.
1182         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1183         on non-MSVC platforms.
1184         * tests/test-fputc.c (main): Likewise.
1185         * tests/test-fread.c (main): Likewise.
1186         * tests/test-fwrite.c (main): Likewise.
1187         Reported by Jim Meyering.
1188
1189 2011-09-27  Bruno Haible  <bruno@clisp.org>
1190
1191         fputc, fwrite tests: Avoid test failure on MSVC.
1192         * tests/test-fgetc.c: Include msvc-inval.h.
1193         (main): Invoke gl_msvc_inval_ensure_handler.
1194         * tests/test-fputc.c: Include msvc-inval.h.
1195         (main): Invoke gl_msvc_inval_ensure_handler.
1196         * tests/test-fread.c: Include msvc-inval.h.
1197         (main): Invoke gl_msvc_inval_ensure_handler.
1198         * tests/test-fwrite.c: Include msvc-inval.h.
1199         (main): Invoke gl_msvc_inval_ensure_handler.
1200         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1201         * modules/fputc-tests (Depends-on): Likewise.
1202         * modules/fread-tests (Depends-on): Likewise.
1203         * modules/fwrite-tests (Depends-on): Likewise.
1204
1205 2011-09-27  Bruno Haible  <bruno@clisp.org>
1206
1207         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1208         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1209         (raise): Remove older, duplicated declaration.
1210         (_gl_raise_SIGPIPE): New declaration.
1211         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1212         (rpl_raise): Remove function.
1213         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1214         a gnulib-defined SIGPIPE here.
1215         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1216         'sigprocmask' has detected missing signal-blocking and the module
1217         'sigpipe' is enabled.
1218         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1219
1220 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1221
1222         base64-tests: avoid memory leak
1223         * tests/test-base64.c (main): Plug memory leak.
1224
1225         base32: new module
1226         * modules/base32: New module.
1227         * lib/base32.c: New file.
1228         * lib/base32.h: Likewise.
1229         * m4/base32.m4: Likewise.
1230         * modules/base32-tests: New test.
1231         * tests/test-base32.c: Likewise.
1232         * MODULES.html.sh (Misc): Mention it.
1233
1234 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         gnulib: use more-standard license notice wording
1237         * gnulib-tool (func_emit_copyright_notice): When emitting a
1238         license notice into a file, use the standard wording as suggested
1239         by the current information for GNU maintainers, except say "file"
1240         rather than "program".  The new wording gives a license version
1241         number, which addresses an issue raised by Glenn Morris in
1242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1243         * m4/onceonly.m4: Use that same wording here, too.
1244
1245         dup2: minor simplification
1246         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1247         as lib/dup2.c no longer uses 'inline'.
1248
1249 2011-09-25  Bruno Haible  <bruno@clisp.org>
1250
1251         strings: Fix compilation error on MSVC.
1252         * lib/strings.in.h: Include <stddef.h> for size_t.
1253
1254 2011-09-25  Bruno Haible  <bruno@clisp.org>
1255
1256         fflush et al.: Document limitation on MSVC.
1257         * doc/posix-functions/fflush.texi: Document possible crash in handling
1258         mode other than DEFAULT_HANDLING.
1259         * doc/posix-functions/fgetc.texi: Likewise.
1260         * doc/posix-functions/fputc.texi: Likewise.
1261         * doc/posix-functions/fread.texi: Likewise.
1262         * doc/posix-functions/fwrite.texi: Likewise.
1263
1264 2011-09-25  Bruno Haible  <bruno@clisp.org>
1265
1266         msvc-inval: Allow three invalid parameter handling modes.
1267         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1268         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1269         macros.
1270         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1271         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1272         SANE_LIBRARY_HANDLING as a no-op.
1273         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1274         <stdlib.h>.
1275         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1276
1277 2011-09-25  Bruno Haible  <bruno@clisp.org>
1278
1279         msvc-inval: Make handler multithread-safe.
1280         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1281         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1282         declarations.
1283         (gl_msvc_inval_current): New declaration.
1284         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1285         Operate on the structure returned by gl_msvc_inval_current().
1286         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1287         Remove varaiables.
1288         (tls_index, tls_initialized): New variables.
1289         (not_per_thread): New variable.
1290         (gl_msvc_inval_current): New function.
1291         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1292         returned by gl_msvc_inval_current().
1293
1294 2011-09-25  Bruno Haible  <bruno@clisp.org>
1295
1296         msvc-inval: Install handler globally.
1297         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1298         !_MSC_VER.
1299         (gl_msvc_invalid_parameter_handler): Remove declaration.
1300         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1301         declarations.
1302         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1303         Install the handler globally, don't uninstall it.
1304         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1305         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1306         currently valid, call RaiseException instead.
1307         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1308         for !_MSC_VER.
1309
1310 2011-09-25  Bruno Haible  <bruno@clisp.org>
1311
1312         strerror_r-posix: Fix for MSVC 9.
1313         * lib/strerror_r.c (local_snprintf): New function.
1314         (snprintf): Define to local_snprintf, not to _snprintf.
1315
1316 2011-09-25  Bruno Haible  <bruno@clisp.org>
1317
1318         ftruncate: Support for MSVC 9.
1319         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1320         (chsize_nothrow): New function.
1321         (chsize): Redefine as a macro.
1322         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1323         * modules/ftruncate (Depends-on): Add msvc-inval.
1324
1325 2011-09-25  Bruno Haible  <bruno@clisp.org>
1326
1327         New module 'fstat'.
1328         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1329         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1330         * lib/fchdir.c (rpl_fstat): Remove function.
1331         * m4/fstat.m4: New file.
1332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1334         declared.
1335         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1336         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1337         * modules/fstat: New file.
1338         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1339         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1340         is set.
1341         * doc/posix-functions/fstat.texi: Mention the new module and the
1342         problem on MSVC.
1343         * NEWS: Mention the change.
1344         * modules/acl (Depends-on): Add fstat.
1345         * modules/chdir-safer (Depends-on): Likewise.
1346         * modules/chown (Depends-on): Likewise.
1347         * modules/copy-file (Depends-on): Likewise.
1348         * modules/fchdir (Depends-on): Likewise.
1349         * modules/fdopendir (Depends-on): Likewise.
1350         * modules/fopen (Depends-on): Likewise.
1351         * modules/fts (Depends-on): Likewise.
1352         * modules/getcwd (Depends-on): Likewise.
1353         * modules/isapipe (Depends-on): Likewise.
1354         * modules/linkat (Depends-on): Likewise.
1355         * modules/lseek (Depends-on): Likewise.
1356         * modules/mkdir-p (Depends-on): Likewise.
1357         * modules/open (Depends-on): Likewise.
1358         * modules/openat (Depends-on): Likewise.
1359         * modules/read-file (Depends-on): Likewise.
1360         * modules/renameat (Depends-on): Likewise.
1361         * modules/utimens (Depends-on): Likewise.
1362
1363 2011-09-25  Bruno Haible  <bruno@clisp.org>
1364
1365         linkat: Fix compilation on MSVC 9.
1366         * lib/linkat.c: Don't include <stdint.h>.
1367
1368 2011-09-25  Bruno Haible  <bruno@clisp.org>
1369
1370         fclose: Support for MSVC 9.
1371         * lib/fclose.c: Include msvc-inval.h.
1372         (fclose_nothrow): New function.
1373         (rpl_fclose): Use it.
1374         * modules/fclose (Depends-on): Add msvc-inval.
1375         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1376
1377 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1378
1379         dup2: minor simplifications
1380         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1381         that it's a performance win.
1382         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1383         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1384
1385 2011-09-24  Jim Meyering  <meyering@redhat.com>
1386
1387         test-futimens: avoid a warning from gcc -Wshadow
1388         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1389         to avoid a shadowing warning.
1390
1391 2011-09-24  Bruno Haible  <bruno@clisp.org>
1392
1393         fdopen: Support for MSVC 9.
1394         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1395         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1396         * lib/fdopen.c: Include msvc-inval.h.
1397         (fdopen_nothrow): New function.
1398         (rpl_fdopen): Use it.
1399         * modules/fdopen (Depends-on): Add msvc-inval.
1400         * modules/fclose-tests (Depends-on): Add fdopen.
1401         * modules/fflush-tests (Depends-on): Likewise.
1402         * modules/fgetc-tests (Depends-on): Likewise.
1403         * modules/fputc-tests (Depends-on): Likewise.
1404         * modules/fread-tests (Depends-on): Likewise.
1405         * modules/freopen-tests (Depends-on): Likewise.
1406         * modules/fseeko-tests (Depends-on): Likewise.
1407         * modules/ftello-tests (Depends-on): Likewise.
1408         * modules/fwrite-tests  (Depends-on): Likewise.
1409         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1410
1411 2011-09-24  Bruno Haible  <bruno@clisp.org>
1412
1413         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1414         * modules/fgetc-tests (Depends-on): Add unistd.
1415         * modules/fputc-tests (Depends-on): Likewise.
1416         * modules/fread-tests (Depends-on): Likewise.
1417         * modules/fwrite-tests (Depends-on): Likewise.
1418
1419 2011-09-24  Bruno Haible  <bruno@clisp.org>
1420
1421         dup: Simplify autoconf test.
1422         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1423         on gl_MSVC_INVAL's result.
1424
1425 2011-09-24  Bruno Haible  <bruno@clisp.org>
1426
1427         Tests for function fwrite().
1428         * modules/fwrite-tests: New file.
1429         * tests/test-fwrite.c: New file.
1430         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1431
1432         Tests for function fread().
1433         * modules/fread-tests: New file.
1434         * tests/test-fread.c: New file.
1435         * modules/stdio-tests (Depends-on): Add fread-tests.
1436
1437         Activate fputc tests.
1438         * modules/stdio-tests (Depends-on): Add fputc-tests.
1439
1440         Enhance fgetc, fputc tests.
1441         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1442         * tests/test-fputc.c (main): Likewise.
1443
1444 2011-09-24  Bruno Haible  <bruno@clisp.org>
1445
1446         write: Support for MSVC 9.
1447         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1448         is not 1.
1449         * lib/write.c (write_nothrow): New function.
1450         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1451         not 1. Use write_nothrow.
1452         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1453         invalid parameter handler.
1454         (gl_PREREQ_WRITE): New macro.
1455         * modules/write (Depends-on): Add msvc-inval.
1456         (configure.ac): Invoke gl_PREREQ_WRITE.
1457         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1458
1459 2011-09-24  Bruno Haible  <bruno@clisp.org>
1460
1461         read: Fix last commit.
1462         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1463
1464 2011-09-24  Bruno Haible  <bruno@clisp.org>
1465
1466         dup2: Fix last commit.
1467         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1468         (rpl_dup2): Disable fcntl workaround on native Windows.
1469
1470         sigprocmask: Make code safer.
1471         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1472         section that changes macro definitions for this compilation unit.
1473
1474 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1475
1476         dup2: clarify by coalescing Windows-specific material
1477         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1478         "msvc-nothrow.h"' to the Windows-specific section, so that the
1479         Emacs source need not contain these include files.
1480         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1481         Windows-specific fixes into this function rather than just the
1482         nothrow fix, as this shortens and clarifies the code.  Always
1483         define as a function, as that's a bit cleaner than having it be
1484         sometimes a function and sometimes a macro.
1485         (rpl_dup2): Move the Windows-specific stuff out of here and into
1486         ms_windows_dup2.  Don't protect the Haiku-related fix with
1487         "#if !defined __linux__", as the same code also works around
1488         a Linux kernel bug, and it doesn't add any system calls on any
1489         platform.  Add comment about FreeBSD 6.1.
1490
1491         sigprocmask: move #include directive
1492         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1493         Windows-specific section, so that the Emacs source need not
1494         contain msvc-inval.h.
1495
1496 2011-09-23  Bruno Haible  <bruno@clisp.org>
1497
1498         read: Support for MSVC 9.
1499         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1500         is not 1.
1501         * lib/read.c (read_nothrow): New function.
1502         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1503         read_nothrow.
1504         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1505         invalid parameter handler.
1506         (gl_PREREQ_READ): New macro.
1507         * modules/read (Depends-on): Add msvc-inval.
1508         (configure.ac): Invoke gl_PREREQ_READ.
1509         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1510
1511 2011-09-23  Bruno Haible  <bruno@clisp.org>
1512
1513         close: Support for MSVC 9.
1514         * lib/close.c: Include <errno.h>, msvc-inval.h.
1515         (close_nothrow): New function.
1516         (rpl_close): Use it.
1517         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1518         invalid parameter handler.
1519         * modules/close (Depends-on): Add msvc-inval.
1520         * modules/dup2-tests (Depends-on): Add close.
1521         * modules/dup3-tests (Depends-on): Likewise.
1522         * modules/fcntl-tests (Depends-on): Likewise.
1523         * modules/spawn-pipe-tests (Depends-on): Likewise.
1524         * modules/unistd-safer-tests (Depends-on): Likewise.
1525         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1526
1527 2011-09-23  Bruno Haible  <bruno@clisp.org>
1528
1529         New module 'dup'.
1530         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1531         Allow replacement.
1532         * lib/dup.c: New file.
1533         * lib/fchdir.c (rpl_dup): Remove function.
1534         * m4/dup.m4: New file.
1535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1536         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1538         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1539         * modules/dup: New file.
1540         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1541         'dup' module is in use.
1542         * modules/fdopendir (Depends-on): Add dup.
1543         * modules/fdutimensat-tests (Depends-on): Likewise.
1544         * modules/fts (Depends-on): Likewise.
1545         * modules/futimens-tests (Depends-on): Likewise.
1546         * modules/posix_spawnp-tests (Depends-on): Likewise.
1547         * modules/unistd-safer-tests (Depends-on): Likewise.
1548         * modules/utimens-tests (Depends-on): Likewise.
1549         * doc/posix-functions/dup.texi: Mention the new module and the problem
1550         on MSVC.
1551
1552 2011-09-23  Bruno Haible  <bruno@clisp.org>
1553
1554         getdtablesize: Support for MSVC 9.
1555         * lib/getdtablesize.c: Include msvc-inval.h.
1556         (_setmaxstdio_nothrow): New function.
1557         (_setmaxstdio): Redefine it.
1558         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1559         * modules/getdtablesize (Depends-on): Add msvc-inval.
1560         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1561
1562 2011-09-23  Bruno Haible  <bruno@clisp.org>
1563
1564         signal-h: Rename from signal.
1565         * modules/signal-h: Renamed from modules/signal.
1566         * modules/pthread_sigmask (Depends-on): Update.
1567         * modules/raise (Depends-on): Likewise.
1568         * modules/sigaction (Depends-on): Likewise.
1569         * modules/sigpipe (Depends-on): Likewise.
1570         * modules/sigprocmask (Depends-on): Likewise.
1571         * modules/sys_select (Depends-on): Likewise.
1572         * modules/signal-h-tests: Renamed from modules/signal-tests.
1573         (Files, Depends-on, Makefile.am): Update.
1574         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1575         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1576         (Files, Makefile.am): Update.
1577         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1578         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1579         * modules/signal: New placeholder file.
1580         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1581         * doc/posix-headers/signal.texi: Update.
1582         * NEWS: Mention the change.
1583
1584 2011-09-23  Bruno Haible  <bruno@clisp.org>
1585
1586         sigprocmask: Avoid crashes through signal() on MSVC 9.
1587         * lib/sigprocmask.c: Include msvc-inval.h.
1588         (signal_nothrow): New function.
1589         (signal): Redefine it.
1590         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1591         * modules/sigprocmask (Depends-on): Add msvc-inval.
1592         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1593
1594 2011-09-23  Bruno Haible  <bruno@clisp.org>
1595
1596         Tests for module 'raise'.
1597         * modules/raise-tests: New file.
1598         * tests/test-raise.c: New file.
1599
1600         raise: Support for MSVC.
1601         * lib/signal.in.h (raise): New declaration.
1602         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1603         for native Windows platforms.
1604         * m4/raise.m4: New file.
1605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1606         HAVE_RAISE, REPLACE_RAISE.
1607         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1608         REPLACE_RAISE.
1609         * modules/raise (Status, Notice): Remove fields.
1610         (Files): Add m4/raise.m4.
1611         (Depends-on): Add signal, msvc-inval.
1612         (configure.ac): Use the common idioms.
1613         (Maintainer): Add me.
1614         * tests/test-signal-c++.cc: Check the signature of raise.
1615         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1616
1617 2011-09-23  Bruno Haible  <bruno@clisp.org>
1618
1619         pipe2: Fix compilation on pre-C99 compilers.
1620         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1621
1622 2011-09-23  Bruno Haible  <bruno@clisp.org>
1623
1624         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1625         * lib/msvc-nothrow.h: New file.
1626         * lib/msvc-nothrow.c: New file.
1627         * m4/msvc-nothrow.m4: New file.
1628         * modules/msvc-nothrow: New file.
1629         * lib/dup2.c: Include msvc-nothrow.h.
1630         (rpl_dup2): No need to protect _get_osfhandle call here.
1631         * lib/accept4.c: Include msvc-nothrow.h.
1632         * lib/error.c: Likewise.
1633         * lib/fcntl.c: Likewise.
1634         * lib/lseek.c: Likewise.
1635         * lib/nonblocking.c: Likewise.
1636         * lib/poll.c: Likewise.
1637         * lib/read.c: Likewise.
1638         * lib/select.c: Likewise.
1639         * lib/sockets.h: Likewise.
1640         * lib/sockets.c: Likewise.
1641         * lib/stdio-read.c: Likewise.
1642         * lib/stdio-write.c: Likewise.
1643         * lib/write.c: Likewise.
1644         * lib/w32sock.h: Likewise.
1645         * lib/w32spawn.h: Likewise.
1646         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1647         * lib/fsync.c: Likewise.
1648         * lib/isapipe.c: Likewise.
1649         * modules/dup2 (Depends-on): Add msvc-nothrow.
1650         * modules/accept4 (Depends-on): Likewise.
1651         * modules/error (Depends-on): Likewise.
1652         * modules/fcntl (Depends-on): Likewise.
1653         * modules/lseek (Depends-on): Likewise.
1654         * modules/nonblocking (Depends-on): Likewise.
1655         * modules/poll (Depends-on): Likewise.
1656         * modules/read (Depends-on): Likewise.
1657         * modules/select (Depends-on): Likewise.
1658         * modules/sockets (Depends-on): Likewise.
1659         * modules/sigpipe (Depends-on): Likewise.
1660         * modules/write (Depends-on): Likewise.
1661         * modules/accept (Depends-on): Likewise.
1662         * modules/bind (Depends-on): Likewise.
1663         * modules/connect (Depends-on): Likewise.
1664         * modules/gethostname (Depends-on): Likewise.
1665         * modules/getpeername (Depends-on): Likewise.
1666         * modules/getsockname (Depends-on): Likewise.
1667         * modules/getsockopt (Depends-on): Likewise.
1668         * modules/ioctl (Depends-on): Likewise.
1669         * modules/listen (Depends-on): Likewise.
1670         * modules/recv (Depends-on): Likewise.
1671         * modules/recvfrom (Depends-on): Likewise.
1672         * modules/send (Depends-on): Likewise.
1673         * modules/sendto (Depends-on): Likewise.
1674         * modules/setsockopt (Depends-on): Likewise.
1675         * modules/shutdown (Depends-on): Likewise.
1676         * modules/socket (Depends-on): Likewise.
1677         * modules/execute (Depends-on): Likewise.
1678         * modules/spawn-pipe (Depends-on): Likewise.
1679         * modules/flock (Depends-on): Likewise.
1680         * modules/fsync (Depends-on): Likewise.
1681         * modules/isapipe (Depends-on): Likewise.
1682         * tests/test-cloexec.c: Include msvc-nothrow.h.
1683         * tests/test-dup-safer.c: Likewise.
1684         * tests/test-dup2.c: Likewise.
1685         * tests/test-dup3.c: Likewise.
1686         * tests/test-fcntl.c: Likewise.
1687         * tests/test-pipe.c: Likewise.
1688         * tests/test-pipe2.c: Likewise.
1689         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1690         * modules/unistd-safer-tests (Depends-on): Likewise.
1691         * modules/dup2-tests (Depends-on): Likewise.
1692         * modules/dup3-tests (Depends-on): Likewise.
1693         * modules/fcntl-tests (Depends-on): Likewise.
1694         * modules/pipe-posix-tests (Depends-on): Likewise.
1695         * modules/pipe2-tests (Depends-on): Likewise.
1696
1697 2011-09-23  Bruno Haible  <bruno@clisp.org>
1698
1699         dup2: Make code more maintainable.
1700         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1701         (rpl_dup2): Use it.
1702         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1703         * modules/dup2 (configure.ac): Invoke it.
1704         Reported by Paul Eggert.
1705
1706 2011-09-23  Bruno Haible  <bruno@clisp.org>
1707
1708         msvc-inval: Fix compilation error.
1709         * lib/msvc-inval.h: Include <excpt.h>.
1710
1711 2011-09-23  Bruno Haible  <bruno@clisp.org>
1712
1713         mkdir: Tweak for MSVC 9.
1714         * lib/sys_stat.in.h: Update comments.
1715         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1716
1717         Tests for module 'chdir'.
1718         * modules/chdir-tests: New file.
1719         * tests/test-chdir.c: New file.
1720
1721         New module 'chdir'.
1722         * modules/chdir: New file.
1723         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1724         (chdir): New declaration.
1725         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1726         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1727         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1728         * tests/test-unistd-c++.cc: Check signature of chdir.
1729         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1730         * modules/chdir-long (Depends-on): Add chdir.
1731         * modules/fchdir (Depends-on): Likewise.
1732         * modules/rename (Depends-on): Likewise.
1733         * modules/savewd (Depends-on): Likewise.
1734
1735         rmdir: Support for mingw, MSVC 9.
1736         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1737         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1738
1739         getcwd: Tweak for MSVC 9.
1740         * lib/unistd.in.h: Update comments.
1741         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1742
1743 2011-09-22  Bruno Haible  <bruno@clisp.org>
1744
1745         strerror_r-posix: Avoid a link error on MSVC.
1746         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1747         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1748
1749 2011-09-22  Bruno Haible  <bruno@clisp.org>
1750
1751         select: Avoid link errors on MSVC.
1752         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1753         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1754         * modules/pselect (Link): Likewise.
1755         * NEWS: Mention the change.
1756         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1757         test-select-stdin against $(LIB_SELECT).
1758         * modules/pselect-tests (Makefile.am): Link test-pselect against
1759         $(LIB_SELECT).
1760
1761 2011-09-22  Bruno Haible  <bruno@clisp.org>
1762
1763         select: Avoid compilation error on MSVC.
1764         * lib/select.c: Don't include <stdbool.h>.
1765
1766 2011-09-21  Bruno Haible  <bruno@clisp.org>
1767
1768         Consolidate all uses of PATH_MAX in *.m4 files.
1769         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1770         macros.
1771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1772         and gl_PATHMAX_SNIPPET.
1773         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1774         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1775         * modules/chdir-long (Files): Add m4/pathmax.m4.
1776         * modules/getcwd (Files): Likewise.
1777
1778 2011-09-21  Bruno Haible  <bruno@clisp.org>
1779
1780         ftruncate: Un-deprecate, concentrate on Win32 support.
1781         * modules/ftruncate (Status, Notice): Remove sections.
1782         (Depends-on): Add largefile.
1783         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1784         non-mingw platforms.
1785         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1786         include <io.h>.
1787         * modules/perror-tests (Depends-on): Add ftruncate.
1788         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1789         'ftruncate' module.
1790
1791 2011-09-21  Bruno Haible  <bruno@clisp.org>
1792
1793         Add dependencies to new dirent related modules.
1794         * modules/opendir (Depends-on): Add closedir.
1795         * modules/getcwd (Depends-on): Add opendir, closedir.
1796         * modules/dirent-safer-tests (Depends-on): Likewise.
1797         * modules/fdopendir-tests (Depends-on): Likewise.
1798         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1799         * modules/renameat-tests (Depends-on): Likewise.
1800
1801 2011-09-21  Bruno Haible  <bruno@clisp.org>
1802
1803         opendir: Avoid compilation error on mingw.
1804         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1805         * modules/opendir (Depends-on): Add unistd.
1806
1807 2011-09-21  Bruno Haible  <bruno@clisp.org>
1808
1809         ftruncate tests: Avoid a test failure on mingw.
1810         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1811
1812 2011-09-21  Bruno Haible  <bruno@clisp.org>
1813
1814         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1815         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1816         native Windows.
1817
1818 2011-09-21  Bruno Haible  <bruno@clisp.org>
1819
1820         New module 'fdopen'.
1821         * lib/stdio.in.h (fdopen): New declaration.
1822         * lib/fdopen.c: New file.
1823         * m4/fdopen.m4: New file.
1824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1825         REPLACE_FDOPEN.
1826         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1827         REPLACE_FDOPEN.
1828         * modules/fdopen: New file.
1829         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1830         * tests/test-stdio-c++.cc: Check signature of fdopen.
1831         * doc/posix-functions/fdopen.texi: Mention the new module.
1832
1833 2011-09-21  Bruno Haible  <bruno@clisp.org>
1834
1835         unlockpt tests: Avoid test failure on NetBSD 5.1.
1836         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1837         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1838
1839 2011-09-21  Bruno Haible  <bruno@clisp.org>
1840
1841         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1842         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1843         * tests/test-getlogin_r.c (main): Likewise.
1844
1845 2011-09-20  Bruno Haible  <bruno@clisp.org>
1846
1847         time tests: Don't require pid_t.
1848         * doc/posix-headers/time.texi: Revert last change.
1849         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1850         * tests/test-time.c: Comment out the check for pid_t.
1851
1852 2011-09-20  Bruno Haible  <bruno@clisp.org>
1853
1854         fsync tests: Avoid a test failure on mingw.
1855         * tests/test-fsync.c (main): Allow a failure with EIO.
1856
1857 2011-09-20  Bruno Haible  <bruno@clisp.org>
1858
1859         euidaccess: Update comments.
1860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1861
1862 2011-09-20  Bruno Haible  <bruno@clisp.org>
1863
1864         Ensure EBADF returns for socket functions on mingw.
1865         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1866         descriptor is invalid.
1867         * lib/bind.c (rpl_bind): Likewise.
1868         * lib/connect.c (rpl_connect): Likewise.
1869         * lib/getpeername.c (rpl_getpeername): Likewise.
1870         * lib/getsockname.c (rpl_getsockname): Likewise.
1871         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1872         * lib/listen.c (rpl_listen): Likewise.
1873         * lib/recv.c (rpl_recv): Likewise.
1874         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1875         * lib/send.c (rpl_send): Likewise.
1876         * lib/sendto.c (rpl_sendto): Likewise.
1877         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1878         * lib/shutdown.c (rpl_shutdown): Likewise.
1879
1880 2011-09-20  Bruno Haible  <bruno@clisp.org>
1881
1882         select tests: EBADF tests.
1883         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1884         test_bad_fd): New functions.
1885         (test_function): Invoke also test_bad_fd.
1886
1887 2011-09-20  Bruno Haible  <bruno@clisp.org>
1888
1889         Tests for module 'posix_spawn_file_actions_addopen.
1890         * modules/posix_spawn_file_actions_addopen-tests: New file.
1891         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1892
1893         Tests for module 'posix_spawn_file_actions_adddup2'.
1894         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1895         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1896
1897         Tests for module 'posix_spawn_file_actions_addclose'.
1898         * modules/posix_spawn_file_actions_addclose-tests: New file.
1899         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1900
1901 2011-09-20  Bruno Haible  <bruno@clisp.org>
1902
1903         Tests for module 'unlockpt'.
1904         * modules/unlockpt-tests: New file.
1905         * tests/test-unlockpt.c: New file.
1906         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1907
1908         Tests for module 'grantpt'.
1909         * modules/grantpt-tests: New file.
1910         * tests/test-grantpt.c: New file.
1911         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1912
1913 2011-09-20  Bruno Haible  <bruno@clisp.org>
1914
1915         freopen tests: EBADF tests.
1916         * tests/test-freopen.c: Include errno.h, unistd.h.
1917         (main): Add tests for EBADF, commented out for the moment.
1918
1919         fclose tests: EBADF tests.
1920         * tests/test-fclose.c (main): Add tests for EBADF.
1921
1922         fflush tests: EBADF tests.
1923         * tests/test-fflush.c: Include errno.h, macros.h.
1924         (main): Add tests for EBADF.
1925
1926         ftello tests: EBADF tests.
1927         * tests/test-ftello4.sh: New file.
1928         * tests/test-ftello4.c: New file.
1929         * modules/ftello-tests (Files): Add them.
1930         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1931
1932         fseeko tests: EBADF tests.
1933         * tests/test-fseeko4.sh: New file.
1934         * tests/test-fseeko4.c: New file.
1935         * modules/fseeko-tests (Files): Add them.
1936         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1937
1938         Tests for function fputc().
1939         * modules/fputc-tests: New file.
1940         * tests/test-fputc.c: New file.
1941         * modules/stdio-tests (Depends-on): Add fputc-tests.
1942
1943         Tests for function fgetc().
1944         * modules/fgetc-tests: New file.
1945         * tests/test-fgetc.c: New file.
1946         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1947
1948         Tests for function fdopen().
1949         * modules/fdopen-tests: New file.
1950         * tests/test-fdopen.c: New file.
1951         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1952
1953         Tests for module 'vdprintf'.
1954         * modules/vdprintf-tests: New file.
1955         * tests/test-vdprintf.c: New file.
1956
1957         Tests for module 'dprintf'.
1958         * modules/dprintf-tests: New file.
1959         * tests/test-dprintf.c: New file.
1960
1961 2011-09-20  Bruno Haible  <bruno@clisp.org>
1962
1963         Tests for module 'ioctl'.
1964         * modules/ioctl-tests: New file.
1965         * tests/test-ioctl.c: New file.
1966
1967 2011-09-20  Bruno Haible  <bruno@clisp.org>
1968
1969         fcntl tests: EBADF tests.
1970         * tests/test-fcntl.c (main): Add more tests for EBADF.
1971
1972 2011-09-20  Bruno Haible  <bruno@clisp.org>
1973
1974         utimensat tests: EBADF tests.
1975         * tests/test-utimensat.c (main): Add tests for EBADF.
1976
1977         renameat tests: EBADF tests.
1978         * tests/test-renameat.c (main): Add tests for EBADF.
1979
1980         mkfifoat tests: EBADF tests.
1981         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1982
1983         readlinkat tests: EBADF tests.
1984         * tests/test-readlinkat.c (main): Add tests for EBADF.
1985
1986         symlinkat tests: EBADF tests.
1987         * tests/test-symlinkat.c (main): Add tests for EBADF.
1988
1989         linkat tests: EBADF tests.
1990         * tests/test-linkat.c (main): Add tests for EBADF.
1991
1992         Tests for module 'faccessat'.
1993         * modules/faccessat-tests: New file.
1994         * tests/test-faccessat.c: New file.
1995
1996         fdopendir tests: EBADF tests.
1997         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1998
1999         openat tests: EBADF tests.
2000         * tests/test-fchownat.c (main): Add tests for EBADF.
2001         * tests/test-fstatat.c (main): Likewise.
2002         * tests/test-mkdirat.c (main): Likewise.
2003         * tests/test-openat.c (main): Likewise.
2004         * tests/test-unlinkat.c (main): Likewise.
2005         * tests/test-fchmodat.c: New file.
2006         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2007         (Makefile.am): Also run 'test-fchmodat'.
2008
2009 2011-09-20  Bruno Haible  <bruno@clisp.org>
2010
2011         utimens, futimens, fdutimensat tests: EBADF tests.
2012         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2013
2014         Tests for function fstat().
2015         * modules/fstat-tests: New file.
2016         * tests/test-fstat.c: New file.
2017         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2018
2019 2011-09-20  Bruno Haible  <bruno@clisp.org>
2020
2021         test-ttyname_r tests: EBADF tests.
2022         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2023
2024         Tests for module 'isatty'.
2025         * modules/isatty-tests: New file.
2026         * tests/test-isatty.c: New file.
2027
2028         Tests for module 'write'.
2029         * modules/write-tests: New file.
2030         * tests/test-write.c: New file.
2031
2032         Tests for module 'read'.
2033         * modules/read-tests: New file.
2034         * tests/test-read.c: New file.
2035
2036         pwrite tests: EBADF tests.
2037         * tests/test-pwrite.c (main): Add tests for EBADF.
2038
2039         pread tests: EBADF tests.
2040         * tests/test-pread.c (main): Add tests for EBADF.
2041
2042         lseek tests: EBADF tests.
2043         * tests/test-lseek.c (main): Add more tests for EBADF.
2044
2045         Tests for module 'ftruncate'.
2046         * modules/ftruncate-tests: New file.
2047         * tests/test-ftruncate.sh: New file.
2048         * tests/test-ftruncate.c: New file.
2049
2050         fsync tests: EBADF tests.
2051         * tests/test-fsync.c (main): Add more tests for EBADF.
2052
2053         fdatasync tests: EBADF tests.
2054         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2055
2056         Tests for module 'fchown'.
2057         * modules/fchown-tests: New file.
2058         * tests/test-fchown.c: New file.
2059
2060         Tests for module 'fchmod'.
2061         * modules/fchmod-tests: New file.
2062         * tests/test-fchmod.c: New file.
2063
2064         fchdir tests: EBADF tests.
2065         * tests/test-fchdir.c (main): Add more tests for EBADF.
2066
2067         dup2 tests: EBADF tests.
2068         * tests/test-dup2.c (main): Add more tests for EBADF.
2069
2070         Tests for module 'dup'.
2071         * modules/dup-tests: New file.
2072         * tests/test-dup.c: New file.
2073
2074         Tests for module 'close'.
2075         * modules/close-tests: New file.
2076         * tests/test-close.c: New file.
2077
2078 2011-09-20  Bruno Haible  <bruno@clisp.org>
2079
2080         Tests for module 'shutdown'.
2081         * modules/shutdown-tests: New file.
2082         * tests/test-shutdown.c: New file.
2083
2084         Tests for module 'setsockopt'.
2085         * modules/setsockopt-tests: New file.
2086         * tests/test-setsockopt.c: New file.
2087
2088         Tests for module 'sendto'.
2089         * modules/sendto-tests: New file.
2090         * tests/test-sendto.c: New file.
2091
2092         Tests for module 'send'.
2093         * modules/send-tests: New file.
2094         * tests/test-send.c: New file.
2095
2096         Tests for module 'recvfrom'.
2097         * modules/recvfrom-tests: New file.
2098         * tests/test-recvfrom.c: New file.
2099
2100         Tests for module 'recv'.
2101         * modules/recv-tests: New file.
2102         * tests/test-recv.c: New file.
2103
2104         Tests for module 'listen'.
2105         * modules/listen-tests: New file.
2106         * tests/test-listen.c: New file.
2107
2108         Tests for module 'getsockopt'.
2109         * modules/getsockopt-tests: New file.
2110         * tests/test-getsockopt.c: New file.
2111
2112         Tests for module 'getsockname'.
2113         * modules/getsockname-tests: New file.
2114         * tests/test-getsockname.c: New file.
2115
2116         Tests for module 'getpeername'.
2117         * modules/getpeername-tests: New file.
2118         * tests/test-getpeername.c: New file.
2119
2120         Tests for module 'connect'.
2121         * modules/connect-tests: New file.
2122         * tests/test-connect.c: New file.
2123
2124         Tests for module 'bind'.
2125         * modules/bind-tests: New file.
2126         * tests/test-bind.c: New file.
2127
2128         accept4 tests: Fix for native Windows.
2129         * tests/test-accept4.c: Include sockets.h.
2130         (main): Invoke gl_sockets_startup.
2131         * modules/accept4-tests (Depends-on): Add sockets.
2132
2133         accept tests: Fix for native Windows.
2134         * tests/test-accept.c: Include sockets.h.
2135         (main): Invoke gl_sockets_startup.
2136         * modules/accept-tests (Depends-on): Add sockets.
2137
2138 2011-09-19  Bruno Haible  <bruno@clisp.org>
2139
2140         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2141         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2142         do...while(0).
2143         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2144         Suggested by Paul Eggert.
2145
2146 2011-09-19  Bruno Haible  <bruno@clisp.org>
2147
2148         sched: Ensure pid_t is defined.
2149         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2150         not define pid_t.
2151         * lib/sched.in.h: Include <sys/types.h>.
2152         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2154
2155 2011-09-19  Bruno Haible  <bruno@clisp.org>
2156
2157         msvc-inval: Ensure the entire expansion is a single statement.
2158         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2159         of braces.
2160
2161 2011-09-19  Jim Meyering  <meyering@redhat.com>
2162
2163         tests: use printf, not echo in init.sh's warn_ function
2164         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2165         misbehave when given strings containing a backslash or starting
2166         with e.g., -n.  James Youngman suggested setting IFS.
2167
2168 2011-09-19  Eric Blake  <eblake@redhat.com>
2169
2170         futimens: enhance test
2171         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2172         closed non-negative fd.
2173
2174         date: accept 'hence' as opposite of 'ago'
2175         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2176         * tests/test-parse-datetime.c (main): Enhance test.
2177         Suggested by Jesse Wilson.
2178
2179 2011-09-19  Jim Meyering  <meyering@redhat.com>
2180
2181         getcwd: don't fail in a deep directory on a system without openat
2182         Before this change, getcwd would fail when called from a directory
2183         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2184         the non-openat implementation used "..", "../..", "../../..", etc.
2185         to access ancestor directories.  With too many, that string would
2186         be longer than PATH_MAX.
2187         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2188         using gnulib's openat replacement.
2189         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2190         we're using the replacement function.
2191
2192 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2193
2194         maint.mk: avoid warnings from perl about missing files
2195         * top/maint.mk (def_sym_regex): Ignore files listed in
2196         $(gl_other_headers_) that do not exist, say because a project
2197         does not use a corresponding module.
2198
2199 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2200
2201         stat: use pathmax.h only if needed
2202         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2203         This is better for Emacs, which does not have a mingw port and
2204         therefore can avoid the pathmax module.
2205
2206         utimens: remove dependency on dup2
2207         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2208         to work around the Linux kernel bug.
2209         * modules/utimens (Depends-on): Remove dup2.
2210
2211 2011-09-18  Bruno Haible  <bruno@clisp.org>
2212
2213         inet_ntop, inet_pton: Look for it also in libresolv.
2214         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2215         libnsl, search for it in libresolv.
2216         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2217         Needed on Solaris 7.
2218
2219 2011-09-18  Bruno Haible  <bruno@clisp.org>
2220
2221         accept, accept4 tests: Avoid link error on Solaris.
2222         * modules/accept-tests (Makefile.am): Link test-accept against
2223         $(LIBSOCKET).
2224         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2225         $(LIBSOCKET).
2226
2227         accept4: Avoid link error on Solaris.
2228         * modules/accept4 (Link): New section.
2229
2230         socket functions: Avoid link errors on Solaris.
2231         * modules/accept (Depends-on): Add socketlib.
2232         (Link): New section.
2233         * modules/bind (Depends-on): Add socketlib.
2234         (Link): New section.
2235         * modules/connect (Depends-on): Add socketlib.
2236         (Link): New section.
2237         * modules/getpeername (Depends-on): Add socketlib.
2238         (Link): New section.
2239         * modules/getsockname (Depends-on): Add socketlib.
2240         (Link): New section.
2241         * modules/getsockopt (Depends-on): Add socketlib.
2242         (Link): New section.
2243         * modules/listen (Depends-on): Add socketlib.
2244         (Link): New section.
2245         * modules/recv (Depends-on): Add socketlib.
2246         (Link): New section.
2247         * modules/recvfrom (Depends-on): Add socketlib.
2248         (Link): New section.
2249         * modules/send (Depends-on): Add socketlib.
2250         (Link): New section.
2251         * modules/sendto (Depends-on): Add socketlib.
2252         (Link): New section.
2253         * modules/setsockopt (Depends-on): Add socketlib.
2254         (Link): New section.
2255         * modules/shutdown (Depends-on): Add socketlib.
2256         (Link): New section.
2257         * modules/socket (Depends-on): Add socketlib.
2258         (Link): New section.
2259
2260 2011-09-18  Bruno Haible  <bruno@clisp.org>
2261
2262         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2263         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2264         than 5 seconds.
2265         * modules/ptsname-tests (configure.ac): Test for alarm.
2266
2267 2011-09-18  Bruno Haible  <bruno@clisp.org>
2268
2269         posix_spawn_file_actions_add*: Fix module dependencies.
2270         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2271         posix_spawn_file_actions_init.
2272         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2273         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2274
2275 2011-09-18  Bruno Haible  <bruno@clisp.org>
2276
2277         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2278         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2279         * tests/test-renameat.c (main): Likewise.
2280
2281 2011-09-18  Bruno Haible  <bruno@clisp.org>
2282
2283         Tests for module 'accept4'.
2284         * modules/accept4-tests: New file.
2285         * tests/test-accept4.c: New file.
2286
2287 2011-09-18  Bruno Haible  <bruno@clisp.org>
2288
2289         Tests for module 'accept'.
2290         * modules/accept-tests: New file.
2291         * tests/test-accept.c: New file.
2292
2293 2011-09-18  Bruno Haible  <bruno@clisp.org>
2294
2295         dup2: Support for MSVC.
2296         * lib/dup2.c: Include msvc-inval.h.
2297         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2298         _get_osfhandle calls.
2299         * modules/dup2 (Depends-on): Add msvc-inval.
2300         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2301
2302         New module 'msvc-inval'.
2303         * lib/msvc-inval.h: New file.
2304         * lib/msvc-inval.c: New file.
2305         * m4/msvc-inval.m4: New file.
2306         * modules/msvc-inval: New file.
2307
2308 2011-09-17  Bruno Haible  <bruno@clisp.org>
2309
2310         Tests for module 'pclose'.
2311         * modules/pclose-tests: New file.
2312
2313         New module 'pclose'.
2314         * lib/stdio.in.h (pclose): New declaration.
2315         * lib/pclose.c: New file.
2316         * m4/pclose.m4: New file.
2317         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2318         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2319         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2320         * modules/pclose: New file.
2321         * modules/popen-tests (Depends-on): Add pclose.
2322         * modules/popen-safer-tests (Depends-on): Likewise.
2323         * doc/posix-functions/pclose.texi: Mention the new module.
2324
2325 2011-09-17  Bruno Haible  <bruno@clisp.org>
2326
2327         popen: Support for MSVC.
2328         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2329         * lib/popen.c (popen): Provide alternate definition for native Windows.
2330         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2332         * modules/popen (Depends-on, configure.ac): Update condition.
2333         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2334         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2335         fixed.
2336
2337 2011-09-17  Bruno Haible  <bruno@clisp.org>
2338
2339         isnanl, isnand, isnanf: Work around MSVC bug.
2340         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2341
2342 2011-09-17  Bruno Haible  <bruno@clisp.org>
2343
2344         sys_socket tests: Fix recent mistake.
2345         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2346
2347 2011-09-17  Bruno Haible  <bruno@clisp.org>
2348
2349         putenv: Support for MSVC.
2350         * modules/putenv (Depends-on): Add environ.
2351         * lib/putenv.c (environ): Disable declaration.
2352         * lib/unistd.in.h: Update comment.
2353
2354 2011-09-17  Bruno Haible  <bruno@clisp.org>
2355
2356         math: Avoid macro redefinition warnings on MSVC.
2357         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2358         Undefine before redefining.
2359
2360 2011-09-17  Bruno Haible  <bruno@clisp.org>
2361
2362         doc: Mention functions which are declared as macros.
2363         * doc/posix-functions/*[fl].texi: Mention that some functions are
2364         defined as macros with arguments only.
2365
2366 2011-09-17  Bruno Haible  <bruno@clisp.org>
2367
2368         Add dependencies to new dirent related modules.
2369         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2370         * modules/fts (Depends-on): Likewise.
2371         * modules/glob (Depends-on): Likewise.
2372         * modules/savedir (Depends-on): Likewise.
2373         * modules/scandir (Depends-on): Likewise.
2374         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2375         * modules/fdopendir (Depends-on): Add opendir.
2376
2377 2011-09-17  Bruno Haible  <bruno@clisp.org>
2378
2379         inet_pton: Support for MSVC on Windows Vista or newer.
2380         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2381         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2382         HAVE_DECL_INET_PTON is defined.
2383         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2384         On platforms with <winsock2.h>, test whether inet_pton is declared in
2385         <ws2tcpip.h>. If so, arrange to replace it.
2386         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2387         REPLACE_INET_PTON.
2388         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2389         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2390         (Depends-on, configure.ac): Update condition.
2391         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2392
2393 2011-09-17  Bruno Haible  <bruno@clisp.org>
2394
2395         inet_ntop: Support for MSVC on Windows Vista or newer.
2396         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2397         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2398         HAVE_DECL_INET_NTOP is defined.
2399         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2400         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2401         <ws2tcpip.h>. If so, arrange to replace it.
2402         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2403         REPLACE_INET_NTOP.
2404         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2405         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2406         (Depends-on, configure.ac): Update condition.
2407         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2408
2409 2011-09-16  Eric Blake  <eblake@redhat.com>
2410
2411         test-fsync: yet another enhancement
2412         * tests/test-fsync.c (main): Also test behavior on read-only text
2413         file.
2414
2415 2011-09-16  Bruno Haible  <bruno@clisp.org>
2416
2417         Enhance fsync, fdatasync tests.
2418         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2419         * tests/test-fdatasync.c (main): Likewise.
2420
2421 2011-09-16  Bruno Haible  <bruno@clisp.org>
2422
2423         Support for MSVC compiler: Ensure mode_t gets defined.
2424         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2425         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2427         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2428         * tests/test-fcntl-h.c: Check that mode_t is defined.
2429         * tests/test-sys_stat.c: Likewise.
2430         * tests/test-sys_types.c: Likewise.
2431         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2432         * doc/posix-headers/sys_stat.texi: Likewise.
2433         * doc/posix-headers/sys_types.texi: Likewise.
2434
2435 2011-09-16  Bruno Haible  <bruno@clisp.org>
2436
2437         sys_stat: Support for MSVC.
2438         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2439         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2440         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2441         MSVC.
2442
2443 2011-09-16  Bruno Haible  <bruno@clisp.org>
2444
2445         Support for MSVC compiler: Ensure off_t gets defined.
2446         * lib/unistd.in.h: Include <sys/types.h>.
2447         * tests/test-fcntl-h.c: Check that off_t is defined.
2448         * tests/test-sys_stat.c: Likewise.
2449         * tests/test-sys_types.c: Likewise.
2450
2451 2011-09-16  Eric Blake  <eblake@redhat.com>
2452
2453         fdatasync: port to Solaris
2454         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2455         * modules/fdatasync (Link): Document it.
2456         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2457
2458         fdatasync: port to MacOS X 10.7
2459         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2460         declared.
2461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2462         * modules/unistd (Makefile.am): Substitute it.
2463         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2464         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2465
2466         fdatasync: minor improvements
2467         * modules/fdatasync (Depends-on): Add condition for fsync.
2468         * lib/fdatasync.c (fdatasync): Add comment.
2469         * tests/test-unistd-c++.cc: Test fdatasync.
2470
2471         unistd: update refs to newer POSIX
2472         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2473         Suggested by Bruno Haible.
2474
2475         fdatasync: new module
2476         * modules/fsync (Description): Document difference to fdatasync.
2477         * modules/fdatasync: New module.
2478         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2479         * lib/fdatasync.c (fdatasync): Likewise.
2480         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2481         defaults.
2482         * modules/unistd (Makefile.am): Set witnesses.
2483         * lib/unistd.in.h (fdatasync): Declare.
2484         * MODULES.html.sh: Document it.
2485         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2486         * modules/fdatasync-tests: New test.
2487         * tests/test-fdatasync.c: Likewise.
2488
2489 2011-09-16  Eric Blake  <eblake@redhat.com>
2490
2491         test-fsync: enhance tests
2492         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2493         * tests/test-fsync.c (main): Enhance test.
2494
2495 2011-09-15  Bruno Haible  <bruno@clisp.org>
2496
2497         Support for MSVC compiler: Ensure ssize_t gets defined.
2498         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2499         * doc/posix-headers/stdio.texi: Likewise.
2500         * modules/stdio (Depends-on): Add ssize_t.
2501         * modules/sys_socket (Depends-on): Likewise.
2502         * modules/sys_types (Depends-on): Likewise.
2503         * modules/sys_uio (Depends-on): Likewise.
2504         * modules/unistd (Depends-on): Likewise.
2505         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2506         * tests/test-sys_types.c: Check that ssize_t is defined.
2507
2508 2011-09-14  Bruno Haible  <bruno@clisp.org>
2509
2510         Avoid using #, the m4 comment starter character, near brackets.
2511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2512         delimiter character in sed expressions.
2513         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2514         Suggested by Eric Blake.
2515
2516         Properly quote AC_CHECK_DECLS' 4th argument.
2517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2518         argument.
2519         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2520         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2522         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2523         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2524         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2526         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2527         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2528         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2529         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2530         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2531         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2532         * m4/isinf.m4 (gl_ISINF): Likewise.
2533         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2534         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2535         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2538         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2539         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2540         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2541         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2542         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2543         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2544         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2546         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2548         Reported by Eric Blake.
2549
2550         Properly quote AC_CHECK_DECL's 4th argument.
2551         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2552         argument.
2553         * m4/argp.m4 (gl_ARGP): Likewise.
2554         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2555         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2556         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2557         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2558         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2559         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2561         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2563         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2564         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2565         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2566         Reported by Eric Blake.
2567
2568 2011-09-14  Eric Blake  <eblake@redhat.com>
2569
2570         opendir: avoid compile warning
2571         * lib/opendir.c (includes): Always include errno.h.
2572         Reported by Tatsuro MATSUOKA.
2573
2574 2011-09-14  Jim Meyering  <meyering@redhat.com>
2575
2576         maint.mk: sc_tight_scope: propagate failure from sub-make
2577         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2578         Reported by Martin von Gagern.
2579
2580 2011-09-13  Bruno Haible  <bruno@clisp.org>
2581
2582         tempname: Support for MSVC.
2583         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2584         MSVC.
2585         * modules/tempname (Depends-on): Add fcntl-h.
2586
2587 2011-09-13  Bruno Haible  <bruno@clisp.org>
2588
2589         sys_time: Support for MSVC.
2590         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2591         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2592         include <winsock2.h>.
2593         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2594         function declarations that collide with POSIX.
2595         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2596         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2597
2598 2011-09-13  Bruno Haible  <bruno@clisp.org>
2599
2600         stat: Support for MSVC.
2601         * lib/stat.c: Include pathmax.h.
2602         * modules/stat (Depends-on): Add pathmax.
2603
2604         pathmax: Support for native Windows.
2605         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2606
2607 2011-09-12  Bruno Haible  <bruno@clisp.org>
2608
2609         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2610         * lib/dirent.in.h (struct dirent): New type.
2611         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2612         DT_WHT): New macros.
2613         (DIR): New type.
2614         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2615         (readdir, rewinddir): New declarations.
2616         * lib/dirent-private.h: New file.
2617         * lib/opendir.c: New file.
2618         * lib/readdir.c: New file.
2619         * lib/rewinddir.c: New file.
2620         * lib/closedir.c: New file.
2621         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2622         * m4/opendir.m4: New file.
2623         * m4/readdir.m4: New file.
2624         * m4/rewinddir.m4: New file.
2625         * m4/closedir.m4: New file.
2626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2627         REPLACE_CLOSEDIR here.
2628         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2629         readdir, rewinddir are declared.
2630         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2631         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2632         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2633         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2634         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2635         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2636         * modules/opendir: New file.
2637         * modules/readdir: New file.
2638         * modules/rewinddir: New file.
2639         * modules/closedir: New file.
2640         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2641         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2642         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2643         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2644         * NEWS: Mention the 'fchdir' change.
2645
2646 2011-09-11  Bruno Haible  <bruno@clisp.org>
2647
2648         asm-underscore.m4: Support for MSVC.
2649         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2650         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2651
2652 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2653
2654         Doc about crypt functions.
2655         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2656         needing for _GNU_SOURCE to get crypt.
2657         * doc/posix-functions/encrypt.texi: Likewise.
2658         * doc/posix-functions/setkey.texi: Likewise.
2659
2660 2011-09-11  Bruno Haible  <bruno@clisp.org>
2661
2662         doc: Update regarding MSVC 9.
2663         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2664         tested".
2665         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2666         * doc/posix-headers/*.texi: Likewise.
2667         * doc/pastposix-functions/*.texi: Likewise.
2668         * doc/glibc-functions/*.texi: Likewise.
2669         * doc/glibc-headers/*.texi: Likewise.
2670
2671 2011-09-11  Bruno Haible  <bruno@clisp.org>
2672
2673         unistd et al.: Don't assume <unistd.h> exists.
2674         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2675         does not exist.
2676         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2677         exist. But include <stdlib.h>.
2678         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2679         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2680         symlink() does not exist.
2681         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2682         include <io.h> instead.
2683         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2685         include <direct.h> instead.
2686         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2688         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2689         <io.h> instead.
2690         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2691         correctly if the system does not have hard links.
2692         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2693         <direct.h> instead.
2694         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2695         it when looking for function declarations.
2696         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2697         <direct.h> and <io.h> instead.
2698         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2699
2700 2011-09-11  Bruno Haible  <bruno@clisp.org>
2701
2702         strcase: Support for MSVC.
2703         * modules/strcase (Status, Notice): Remove obsoletion mark.
2704         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2705         * doc/posix-functions/strncasecmp.texi: Likewise.
2706
2707         strings: Don't assume <strings.h> exists.
2708         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2709         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2710         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2711         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2712
2713 2011-09-11  Bruno Haible  <bruno@clisp.org>
2714
2715         dirent: Don't assume <dirent.h> exists.
2716         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2717         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2718         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2719         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2720
2721 2011-09-11  Bruno Haible  <bruno@clisp.org>
2722
2723         Fix wint_t on MSVC.
2724         * lib/wchar.in.h (wint_t): On MSVC, override it.
2725         * lib/wctype.in.h (wint_t): Likewise.
2726         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2727         MSVC.
2728         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2729         * doc/posix-headers/wctype.texi: Likewise.
2730
2731 2011-09-11  Bruno Haible  <bruno@clisp.org>
2732
2733         sys_types: Fix typo.
2734         * lib/sys_types.in.h: Fix typo in comment.
2735         Reported by Paul Eggert.
2736
2737         Support for MSVC compiler: Ensure size_t gets defined.
2738         * modules/strings (Depends-on): Add 'sys_types'.
2739         * modules/sys_uio (Depends-on): Likewise.
2740         * lib/sys_uio.in.h: Update comment.
2741
2742         C++ tests for module 'sys_types'.
2743         * modules/sys_types-c++-tests: New file.
2744         * tests/test-sys_types-c++.cc: New file.
2745
2746         Tests for module 'sys_types'.
2747         * modules/sys_types-tests: New file.
2748         * tests/test-sys_types.c: New file.
2749
2750         New module 'sys_types'.
2751         * lib/sys_types.in.h: New file.
2752         * m4/sys_types_h.m4: New file.
2753         * modules/sys_types: New file.
2754         * doc/posix-headers/sys_types.texi: Mention the new module and the
2755         size_t problem on MSVC 9.
2756
2757 2011-09-11  Bruno Haible  <bruno@clisp.org>
2758
2759         Support for MSVC compiler: Avoid division by a literal 0.
2760         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2762         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2763         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2764         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2765         * tests/infinity.h: New file.
2766         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2767         on MSVC.
2768         * tests/test-ceilf1.c: Include infinity.h.
2769         (main): Use Infinityf.
2770         * tests/test-ceil1.c: Include infinity.h.
2771         (main): Use Infinityd.
2772         * tests/test-ceill.c: Include infinity.h.
2773         (main): Use Infinityl.
2774         * tests/test-dprintf-posix.c: Include infinity.h.
2775         (test_function): Use Infinityd.
2776         * tests/test-floorf1.c: Include infinity.h.
2777         (main): Use Infinityf.
2778         * tests/test-floor1.c: Include infinity.h.
2779         (main): Use Infinityd.
2780         * tests/test-floorl.c: Include infinity.h.
2781         (main): Use Infinityl.
2782         * tests/test-fprintf-posix.c: Include infinity.h.
2783         (test_function): Use Infinityd.
2784         * tests/test-frexp.c: Include infinity.h.
2785         (main): Use Infinityd.
2786         * tests/test-frexpl.c: Include infinity.h.
2787         (main): Use Infinityl.
2788         * tests/test-isfinite.c: Include infinity.h.
2789         (test_isfinitef): Use Infinityf.
2790         (test_isfinited): Use Infinityd.
2791         (test_isfinitel): Use Infinityl.
2792         * tests/test-isinf.c: Include infinity.h.
2793         (test_isinff): Use Infinityf.
2794         (test_isinfd): Use Infinityd.
2795         (test_isinfl): Use Infinityl.
2796         * tests/test-isnan.c: Include infinity.h.
2797         (test_float): Use Infinityf.
2798         (test_double): Use Infinityd.
2799         (test_long_double): Use Infinityl.
2800         * tests/test-isnanf.h: Include infinity.h.
2801         (main): Use Infinityf.
2802         * tests/test-isnand.h: Include infinity.h.
2803         (main): Use Infinityd.
2804         * tests/test-isnanl.h: Include infinity.h.
2805         (main): Use Infinityl.
2806         * tests/test-ldexpl.c: Include infinity.h.
2807         (main): Use Infinityl.
2808         * tests/test-printf-posix.h: Include infinity.h.
2809         (test_function): Use Infinityd.
2810         * tests/test-roundf1.c: Include infinity.h.
2811         (main): Use Infinityf.
2812         * tests/test-round1.c: Include infinity.h.
2813         (main): Use Infinityd.
2814         * tests/test-roundl.c: Include infinity.h.
2815         (main): Use Infinityl.
2816         * tests/test-signbit.c: Include infinity.h.
2817         (test_signbitf): Use Infinityf.
2818         (test_signbitd): Use Infinityd.
2819         (test_signbitl): Use Infinityl.
2820         * tests/test-snprintf-posix.h: Include infinity.h.
2821         (test_function): Use Infinityd, Infinityl.
2822         * tests/test-sprintf-posix.h: Include infinity.h.
2823         (test_function): Use Infinityd, Infinityl.
2824         * tests/test-truncf1.c: Include infinity.h.
2825         (main): Use Infinityf.
2826         * tests/test-trunc1.c: Include infinity.h.
2827         (main): Use Infinityd.
2828         * tests/test-truncl.c: Include infinity.h.
2829         (main): Use Infinityl.
2830         * tests/test-vasnprintf-posix.c: Include infinity.h.
2831         (test_function): Use Infinityd, Infinityl.
2832         * tests/test-vasprintf-posix.c: Include infinity.h.
2833         (test_function): Use Infinityd, Infinityl.
2834         * modules/ceilf-tests (Files): Add tests/infinity.h.
2835         * modules/ceil-tests (Files): Likewise.
2836         * modules/ceill-tests (Files): Likewise.
2837         * modules/dprintf-posix-tests (Files): Likewise.
2838         * modules/floorf-tests (Files): Likewise.
2839         * modules/floor-tests (Files): Likewise.
2840         * modules/floorl-tests (Files): Likewise.
2841         * modules/fprintf-posix-tests (Files): Likewise.
2842         * modules/frexp-tests (Files): Likewise.
2843         * modules/frexp-nolibm-tests (Files): Likewise.
2844         * modules/frexpl-tests (Files): Likewise.
2845         * modules/frexpl-nolibm-tests (Files): Likewise.
2846         * modules/isfinite-tests (Files): Likewise.
2847         * modules/isinf-tests (Files): Likewise.
2848         * modules/isnan-tests (Files): Likewise.
2849         * modules/isnanf-tests (Files): Likewise.
2850         * modules/isnanf-nolibm-tests (Files): Likewise.
2851         * modules/isnand-tests (Files): Likewise.
2852         * modules/isnand-nolibm-tests (Files): Likewise.
2853         * modules/isnanl-tests (Files): Likewise.
2854         * modules/isnanl-nolibm-tests (Files): Likewise.
2855         * modules/ldexpl-tests (Files): Likewise.
2856         * modules/printf-posix-tests (Files): Likewise.
2857         * modules/roundf-tests (Files): Likewise.
2858         * modules/round-tests (Files): Likewise.
2859         * modules/roundl-tests (Files): Likewise.
2860         * modules/signbit-tests (Files): Likewise.
2861         * modules/snprintf-posix-tests (Files): Likewise.
2862         * modules/sprintf-posix-tests (Files): Likewise.
2863         * modules/truncf-tests (Files): Likewise.
2864         * modules/trunc-tests (Files): Likewise.
2865         * modules/truncl-tests (Files): Likewise.
2866         * modules/vasnprintf-posix-tests (Files): Likewise.
2867         * modules/vasprintf-posix-tests (Files): Likewise.
2868         * modules/vdprintf-posix-tests (Files): Likewise.
2869         * modules/vfprintf-posix-tests (Files): Likewise.
2870         * modules/vprintf-posix-tests (Files): Likewise.
2871         * modules/vsnprintf-posix-tests (Files): Likewise.
2872         * modules/vsprintf-posix-tests (Files): Likewise.
2873         * modules/xprintf-posix-tests (Files): Likewise.
2874
2875 2011-09-11  Bruno Haible  <bruno@clisp.org>
2876
2877         Ensure pid_t gets defined.
2878         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2879         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2880         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2881         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2882         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2883         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2884         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2885         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2886         * tests/test-fcntl-h.c: Check that pid_t is defined.
2887         * tests/test-sched.c: Likewise.
2888         * tests/test-termios.c: Likewise.
2889         * tests/test-time.c: Likewise.
2890         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2891         * doc/posix-headers/signal.texi: Likewise.
2892         * doc/posix-headers/sys_types.texi: Likewise.
2893         * doc/posix-headers/time.texi: Likewise.
2894
2895 2011-09-11  Bruno Haible  <bruno@clisp.org>
2896
2897         acl: Fix compilation on Solaris 10 (older version).
2898         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2899         of ACE_EVERYONE.
2900         * lib/set-mode-acl.c (qset_acl): Likewise.
2901         Reported by Christian Jullien <eligis@orange.fr>.
2902
2903 2011-09-10  Bruno Haible  <bruno@clisp.org>
2904
2905         iconv, unsetenv: Add support for MSVC compiler.
2906         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2907         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2908
2909 2011-09-10  Bruno Haible  <bruno@clisp.org>
2910
2911         *printf: Add support for MSVC compiler.
2912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2913         handles the exception caused by the %n directive. When cross-compiling,
2914         guess no on native Windows.
2915         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2916         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2917         emulate it through vsnprintf.
2918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2919         * doc/posix-functions/dprintf.texi: Update documentation regarding
2920         MSVC 9.
2921         * doc/posix-functions/fprintf.texi: Likewise.
2922         * doc/posix-functions/printf.texi: Likewise.
2923         * doc/posix-functions/snprintf.texi: Likewise.
2924         * doc/posix-functions/sprintf.texi: Likewise.
2925         * doc/posix-functions/swprintf.texi: Likewise.
2926         * doc/posix-functions/vdprintf.texi: Likewise.
2927         * doc/posix-functions/vfprintf.texi: Likewise.
2928         * doc/posix-functions/vprintf.texi: Likewise.
2929         * doc/posix-functions/vsnprintf.texi: Likewise.
2930         * doc/posix-functions/vsprintf.texi: Likewise.
2931         * doc/glibc-functions/asprintf.texi: Likewise.
2932         * doc/glibc-functions/obstack_printf.texi: Likewise.
2933         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2934         * doc/glibc-functions/vasprintf.texi: Likewise.
2935
2936 2011-09-10  Bruno Haible  <bruno@clisp.org>
2937
2938         nocrash: Add support for native Windows.
2939         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2940
2941 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2942             Bruno Haible  <bruno@clisp.org>
2943
2944         absolute-header, include-next: Add support for MSVC compiler.
2945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2946         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2947         directory separator in #line directives.
2948         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2949         recognize also backslash as directory separator in #line directives.
2950
2951 2011-09-08  Jim Meyering  <meyering@redhat.com>
2952
2953         maint.mk: mark the post-release commit log with "maint: " prefix
2954         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2955         one-line commit-log summary.
2956
2957 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2958             Bruno Haible  <bruno@clisp.org>
2959
2960         Doc about crypt functions.
2961         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2962         systems.
2963         * doc/posix-functions/encrypt.texi: Likewise.
2964         * doc/posix-functions/setkey.texi: Likewise.
2965
2966 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2967
2968         * lib/gc.h: Fix copyright header.
2969
2970 2011-09-07  Bruno Haible  <bruno@clisp.org>
2971
2972         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2973         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2974         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2975
2976 2011-09-07  Bruno Haible  <bruno@clisp.org>
2977
2978         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2979         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2980         * lib/freopen.c: Likewise.
2981         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2982         * lib/lstat.c: Likewise.
2983         * lib/stat.c: Likewise.
2984         * lib/open.c: Use different syntax for include of <fcntl.h>.
2985         * lib/openat.c: Include fcntl.h again, explicitly.
2986
2987 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2988
2989         parse-datetime: document the newly accepted format
2990         * doc/parse-datetime.texi (Combined date and time of day items):
2991         New section.
2992
2993 2011-09-06  Bruno Haible  <bruno@clisp.org>
2994
2995         acl: Fix a test failure on newer Solaris 10 with ZFS.
2996         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2997         ENOSYS as no ACL.
2998         Reported by Jim Meyering.
2999
3000 2011-09-06  Bruno Haible  <bruno@clisp.org>
3001
3002         acl: Update for AIX >= 5.3 with NFS.
3003         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3004         ENOSYS as no ACL.
3005
3006         acl: Fix a test failure on AIX >= 5.3 with NFS.
3007         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3008         as no ACL.
3009
3010 2011-09-06  Bruno Haible  <bruno@clisp.org>
3011
3012         acl: Fix a test failure on IRIX 6.5 with NFS.
3013         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3014         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3015         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3016         * lib/copy-acl.c (qcopy_acl): Likewise.
3017
3018 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3019
3020         openat: port to AIX 7.1 with large files
3021         AIX 7.1 does a "#define openat open64at" if large files are in use,
3022         so we can't simply #undef openat.  Use the orig_openat trick (similar
3023         to orig_open in lib/open.c) to work around the problem.  Problem
3024         reported by Kevin Brott for GNU tar, in the thread containing
3025         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3026         * lib/openat.c (__need_system_fcntl_h): Define first.
3027         Include <fcntl.h> and <sys/types.h> before undefining.
3028         (orig_openat) [HAVE_OPENAT]: New inline function.
3029         (openat) [HAVE_OPENAT]: Do not undef.
3030         (rpl_openat): Use orig_openat, not openat.
3031
3032 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3033             Bruno Haible  <bruno@clisp.org>
3034
3035         acl: Avoid errors on NonStop Kernel.
3036         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3037         ENOTSUP errors.
3038
3039 2011-09-05  Bruno Haible  <bruno@clisp.org>
3040
3041         acl: Clean up Solaris code.
3042         * lib/acl-internal.h: Remove no-op #if.
3043         * lib/file-has-acl.c: Likewise.
3044         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3045         * lib/copy-acl.c (qcopy_acl): Likewise.
3046
3047 2011-09-05  Bruno Haible  <bruno@clisp.org>
3048
3049         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3050         binaries built on the original Solaris 10.
3051         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3052         trivial.
3053
3054 2011-09-05  Bruno Haible  <bruno@clisp.org>
3055
3056         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3057         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3058         10.
3059         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3060         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3061         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3062         instead of acl_get, facl_get, acl_set, facl_set.
3063
3064 2011-09-05  Bruno Haible  <bruno@clisp.org>
3065
3066         copy-file: Try unit tests on more file systems.
3067         * tests/test-copy-file-1.sh: New file.
3068         * tests/test-copy-file-2.sh: New file.
3069         * modules/copy-file-tests (Files): Add them.
3070         (Makefile.am): Add them to TESTS.
3071
3072         acl: Try unit tests on more file systems.
3073         * tests/test-file-has-acl-1.sh: New file.
3074         * tests/test-file-has-acl-2.sh: New file.
3075         * tests/test-set-mode-acl-1.sh: New file.
3076         * tests/test-set-mode-acl-2.sh: New file.
3077         * tests/test-copy-acl-1.sh: New file.
3078         * tests/test-copy-acl-2.sh: New file.
3079         * modules/acl-tests (Files): Add them.
3080         (Makefile.am): Add them to TESTS.
3081
3082 2011-09-04  Bruno Haible  <bruno@clisp.org>
3083
3084         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3085         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3086         10.
3087         (OLD_ALLOW, OLD_DENY): New macros.
3088         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3089         ACE_ACCESS_ALLOWED_ACE_TYPE.
3090         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3091         ACE_ACCESS_DENIED_ACE_TYPE.
3092         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3093         (NEW_ACE_EXECUTE): Fix value.
3094         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3095         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3096         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3097         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3098         NEW_ACE_SYNCHRONIZE): New macros.
3099         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3100         instead of acl_fromtext, acl_set, facl_set.
3101         Fixes a coreutils/tests/cp/perm failure.
3102
3103 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3104
3105         openat: test for fstatat (..., 0) bug
3106         Further testing with tar suggests that fstatat (..., 0)
3107         does not work in general, on AIX 7.1; see
3108         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3109         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3110         replacement fstatat (which is what older AIX releases were using
3111         anyway).
3112         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3113         use is now changed to orig_fstatat.  This was probably the right
3114         thing to do anyway.
3115         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3116         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3117         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3118         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3119         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3120         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3121         if the bug is found.
3122
3123         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3124         This tests for another fstatat bug on AIX 7.1:
3125         fstatat (AT_FDCWD, ..., 0) does not work.  See
3126         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3127         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3128         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3129         (rpl_fstatat): Adjust so that it works around either (or both)
3130         bugs if present.
3131         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3132
3133 2011-09-03  Karl Berry  <karl@gnu.org>
3134
3135         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3136         in index entries.
3137
3138 2011-09-02  Bruno Haible  <bruno@clisp.org>
3139
3140         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3141         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3142         values of AR, ARFLAGS, RANLIB.
3143         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3144
3145 2011-09-02  Bruno Haible  <bruno@clisp.org>
3146
3147         Find 'ar' program that fits with --host argument.
3148         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3149
3150 2011-09-02  Bruno Haible  <bruno@clisp.org>
3151
3152         tests: init.sh: Support any non-GNU diff.
3153         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3154         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3155         Solaris 8.
3156
3157 2011-09-02  Bruno Haible  <bruno@clisp.org>
3158
3159         tests: init.sh: work also with any non-GNU diff that supports -u
3160         * tests/init.sh: Relax check for diff -u support.
3161         Rather than checking for GNU diff via --version, simply check
3162         for support for -u itself.  Useful at least on OpenBSD 4.9,
3163         AIX 7.1, IRIX 6.5, and Solaris 10.
3164
3165 2011-09-01  Bruno Haible  <bruno@clisp.org>
3166
3167         strtoimax, strtoumax: Document problem on HP-UX 11.
3168         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3169         * doc/posix-functions/strtoumax.texi: Likewise.
3170
3171 2011-09-01  Bruno Haible  <bruno@clisp.org>
3172
3173         strtoumax: Avoid link error on OSF/1 with DTK cc.
3174         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3175         defined as a function.
3176         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3177         strtoumax is defined, not whether it is declared.
3178
3179 2011-09-01  Bruno Haible  <bruno@clisp.org>
3180
3181         strtoimax: Avoid link error on OSF/1 with DTK cc.
3182         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3183         defined as a function.
3184         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3185         strtoimax is defined, not whether it is declared.
3186
3187 2011-09-01  Bruno Haible  <bruno@clisp.org>
3188
3189         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3190         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3191         as a function.
3192         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3193         whether it is declared.
3194
3195 2011-09-01  Bruno Haible  <bruno@clisp.org>
3196
3197         imaxabs: Avoid link error on OSF/1 with DTK cc.
3198         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3199         as a function.
3200         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3201         whether it is declared.
3202
3203 2011-09-01  Bruno Haible  <bruno@clisp.org>
3204
3205         Tests for module 'strtoumax'.
3206         * modules/strtoumax-tests: New file.
3207         * tests/test-strtoumax.c: New file.
3208
3209         Tests for module 'strtoimax'.
3210         * modules/strtoimax-tests: New file.
3211         * tests/test-strtoimax.c: New file.
3212
3213         Tests for module 'imaxdiv'.
3214         * modules/imaxdiv-tests: New file.
3215         * tests/test-imaxdiv.c: New file.
3216
3217         Tests for module 'imaxabs'.
3218         * modules/imaxabs-tests: New file.
3219         * tests/test-imaxabs.c: New file.
3220
3221 2011-09-01  Bruno Haible  <bruno@clisp.org>
3222
3223         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3225         pthread_create.
3226
3227 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         openat: work around AIX 7.1 fstatat issue
3230         This should fix the problem that was not properly fixed
3231         in the previous change, dated 2011-08-30.
3232         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3233         __need_system_stat_h defined.
3234         (orig_fstatat) [HAVE_FSTATAT]: New function.
3235         (rpl_fstatat): Go back to the old way of doing things,
3236         except call orig_fstatat instead of fstatat.
3237         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3238         Remove unnecessary check whether fstatat fills in st_size etc.
3239
3240 2011-09-01  Bruno Haible  <bruno@clisp.org>
3241
3242         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3243         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3244         just include the system's header.
3245
3246 2011-08-31  Jim Meyering  <meyering@redhat.com>
3247
3248         tests: avoid spurious assertion failure in test-float.c on ppc64
3249         * tests/test-float.c (test_long_double): Comment out an assertion,
3250         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3251         with gcc-4.4.4.
3252
3253         maint: indent with spaces, not TABs
3254         I need to get in the habit of running gnulib's "make check".
3255         Both of these would have been caught.
3256         * m4/largefile.m4: Indent with spaces, not TABs.
3257         * lib/parse-datetime.y (iso_8601_time): Likewise.
3258         Spotted by Pádraig Brady.
3259
3260         test-parse-datetime.c: accommodate a relatively strict gcc warning
3261         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3262         to avoid a warning from gcc's -Werror=missing-declarations.
3263         Insert a few spaces-before-funcall-parenthesis.
3264
3265 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3266
3267         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3268         The parser now accepts ISO 8601 date-time strings with "T" as the
3269         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3270         with a space between the date and time strings.  Now it also parses
3271         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3272         variants like "2004-02-29T16:21:42.333-07:00"
3273         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3274         of day representation using the 'T' separator character.
3275         * doc/parse-datetime.texi (General date syntax): replace use of
3276         deprecated --iso-8601 option with --rfc-3339 in example of date
3277         command output formats that can be parsed.
3278         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3279         lib/parse-datetime.y.
3280         (gmt_offset): New function.
3281         (main): Add additional test cases to validate ISO8601 extended
3282         date and time of day parsing.
3283
3284 2011-08-31  Bruno Haible  <bruno@clisp.org>
3285
3286         freopen: Documentation.
3287         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3288         name.
3289         Reported by Claudio Bley <claudio.bley@gmail.com>.
3290
3291 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3292
3293         freopen: Don't crash if the filename argument is NULL.
3294         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3295         NULL.
3296
3297 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3298
3299         openat: work around AIX 7.1 fstatat bug
3300         Problem reported by Kevin Brott for GNU tar, in the thread containing
3301         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3302         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3303         FSTATAT_ST_SIZE_ETC_BROKEN.
3304         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3305         rpl_fstatat.
3306         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3307         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3308         AC_CHECK_FUNCS_ONCE for fstatat.
3309         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3310         fchmodat, mkdirat, openat and unlinkat.
3311
3312 2011-08-30  Bruno Haible  <bruno@clisp.org>
3313
3314         Avoid endless recursions if config.h includes some header files.
3315         * lib/fopen.c (__need_FILE): Define already before including config.h.
3316         * lib/freopen.c (__need_FILE): Likewise.
3317         * lib/open.c (__need_system_fcntl_h): Likewise.
3318         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3319         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3320         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3321
3322 2011-08-25  Karl Berry  <karl@gnu.org>
3323
3324         * config/srclist.txt (ylwrap): new try.
3325         * build-aux/ylwrap: new file.
3326
3327 2011-08-23  Bruno Haible  <bruno@clisp.org>
3328
3329         tmpdir: Use a good default directory on native Windows.
3330         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3331         (P_tmpdir): Default to _P_tmpdir on native Windows.
3332         (path_search): On native Windows, try the value returned by GetTempPath
3333         before trying P_tmpdir.
3334         * modules/tmpdir (Depends-on): Add pathmax.
3335         Suggested by John Darrington <john@darrington.wattle.id.au>.
3336
3337 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3338
3339         doc: fix typo in README-release
3340         * top/README-release: Capitalize first word of a sentence.
3341
3342 2011-08-19  Jim Meyering  <meyering@redhat.com>
3343
3344         fts: do not exhaust memory when processing million-entry directories
3345         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3346         directory would require about 256*N bytes of memory.  Thus, it was
3347         easy to construct a directory too large to be processed by any of
3348         those tools.  With this change, fts' maximum memory utilization is
3349         now limited to around 30MB.
3350         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3351         (fts_read): When we've processed the final entry (i.e., when
3352         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3353         using the parent entry to read any remaining entries.  Dispatch
3354         depending on what fts_build returns:
3355         - NULL+stop, aka failure: stop
3356         - NULL otherwise: move up in the dir hierarchy
3357         - non-NULL: handle this new entry
3358         (fts_build): Declare and use new local, continue_readdir.
3359         Prepare to be called from fts_read, when the entries
3360         from a partially-read directory have just been exhausted.
3361         In that case, we'll skip the opendir and instead use the parent's
3362         fts_dirp and derive dir_fd from that.
3363         Finally, in the readdir loop, if we read max_entries entries,
3364         exit the loop ensuring *not* to call closedir.  This is required
3365         so that fts_dirp can be reused on a subsequent call.
3366         Prompted by Ben England's report of memory exhaustion in find
3367         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3368
3369         maint: fts: move decl of `dp' down into while loop; split a long line
3370         * lib/fts.c (fts_build): No semantic change.
3371
3372         fts: add/use new struct member, fts_dirp
3373         We are about to use this to manage any directory with
3374         too many entries to read all of them into memory at once.
3375         To do that, we'll need to save the DIR* pointer in each
3376         affected FTSENT struct.
3377         * lib/fts_.h: Include <dirent.h>.
3378         (struct FTSENT) [fts_dirp]: New member.
3379         * lib/fts.c (closedir_and_clear): Define.
3380         Use it in place of closedir so that we are sure to
3381         clear the new fts_dirp member when done with it.
3382         (fts_alloc): Initialize the new member.
3383         (fts_lfree): Free, if needed.
3384
3385         maint: fts: give __opendir2 a new parameter and rename
3386         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3387         than surreptitiously using sole caller's "dir_fd".
3388         (fts_opendir): Rename from __opendir2.
3389
3390         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3391         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3392
3393         maint: fts.c: correct off-by-one indentation
3394         * lib/fts.c (fts_build): Correct indentation, change style
3395         of a couple of block comments, and bracing style.
3396
3397         maint: fts.c: move __opendir2 #define "up" out of function body
3398         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3399
3400         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3401         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3402         out for a long time and besides was useful only on BSD systems.
3403
3404 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         regex: port to Stratus OpenVOS
3407         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3408         define to empty, rather than attempting nonportable optimizations.
3409         Problem reported by Paul Green in:
3410         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3411         and fix suggested by Eric Blake in:
3412         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3413
3414 2011-08-17  Eric Blake  <eblake@redhat.com>
3415
3416         getcwd: fix test failures on mingw
3417         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3418         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3419         test if long directory cannot be created, and allow mingw errno.
3420
3421         getcwd-lgpl: fix m4 to match relaxed test for BSD
3422         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3423         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3424         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3425         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3426         signature problem.
3427
3428         getcwd: fix compilation on mingw64
3429         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3430         getcwd.
3431         Reported by Marc-André Lureau.
3432
3433         pipe2: silence compiler warning
3434         * lib/pipe2.c (pipe2): Hide label if it is not used.
3435
3436 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3437
3438         relocatable-prog: fix link error
3439         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3440         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3441         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3442         into modules/relocatable-lib without noticing that
3443         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3444         also needs to build relocatable.c.
3445
3446 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3447
3448         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3450         shell code: it contained a 'break' that was not in a loop.
3451         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3452         via a shell-language loop; this may have been true in old Autoconf
3453         versions, but it's not true in Autoconf 2.68.  I found this bug
3454         when testing coreutils git on Solaris 8, whose shell complains
3455         about the syntax error.
3456
3457 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3458
3459         * lib/base64.c: Fix comment to reference RFC 4648.
3460         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3461         <gvtulder@gmail.com>.
3462
3463 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3466
3467         po/Makefile.in.in: fix make -q problem
3468         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3469         rule, since there's no file named 'check-macro-version' and its
3470         use as a file breaks make -q.
3471         (all): Don't depend on check-macro-version.
3472         (CHECK_MACRO_VERSION): New macro.
3473         (stamp-po): Use it.
3474
3475         configmake: fix make -q problem
3476         * modules/configmake (configmake.h): Update configmake.h's time stamp
3477         even if the file does not change.  Otherwise, 'make -q' fails.
3478         Problem reported by Simon Josefsson in
3479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3480
3481 2011-08-11  Jim Meyering  <meyering@redhat.com>
3482
3483         git-version-gen: correct the advice in a comment
3484         * build-aux/git-version-gen: Correct comment.
3485         Don't recommend to list .tarball-version in .gitignore.
3486
3487 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3488
3489         base64: fix off-by-one buffer size bug
3490         Problem and (trivial) fix reported by Gijs van Tulder in
3491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3492         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3493         * tests/test-base64.c (main): Catch the bug.
3494
3495 2011-08-10  Eric Blake  <eblake@redhat.com>
3496
3497         closein: correct comments
3498         * lib/closein.c (close_stdin): Improve comments.
3499
3500 2011-08-09  Bruno Haible  <bruno@clisp.org>
3501
3502         More tests for 'fseeko'.
3503         * tests/test-fseeko3.c: New file, from Eric Blake.
3504         * tests/test-fseeko3.sh: New file.
3505         * modules/fseeko-tests (Files): Add them.
3506         (TESTS): Add test-fseeko3.sh.
3507         (check_PROGRAMS): Add test-fseeko3.
3508
3509 2011-08-09  Eric Blake  <eblake@redhat.com>
3510
3511         fseeko: remove unneeded hack
3512         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3513
3514         fseeko: fix bug on glibc
3515         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3516         Reported by John W. Eaton.
3517
3518 2011-08-08  Bruno Haible  <bruno@clisp.org>
3519
3520         unictype/base: Fix interoperability with preinstalled libunistring.
3521         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3522         Reported by Simon Josefsson.
3523
3524 2011-08-08  Bruno Haible  <bruno@clisp.org>
3525
3526         iswblank: Detect declaration correctly.
3527         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3528         AC_CHECK_DECLS invocation.
3529
3530 2011-08-08  Bruno Haible  <bruno@clisp.org>
3531
3532         tcgetsid: Detect declaration correctly.
3533         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3534         AC_CHECK_DECLS invocation.
3535         Reported by Simon Josefsson.
3536
3537 2011-08-08  Eric Blake  <eblake@redhat.com>
3538
3539         largefile: fix typo that regressed large file support
3540         * modules/largefile (configure.ac-early): Fix section name.
3541
3542 2011-08-06  Karl Berry  <karl@gnu.org>
3543
3544         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3545         a separate module.
3546
3547 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3548
3549         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3550         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3551         get prototype for free.
3552
3553 2011-08-04  Bruno Haible  <bruno@clisp.org>
3554
3555         Tests for module 'pathmax'.
3556         * modules/pathmax-tests: New file.
3557         * tests/test-pathmax.c: New file.
3558
3559         canonicalize-lgpl: Support larger filenames on the Hurd.
3560         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3561         Reported by Paul Eggert.
3562
3563         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3564         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3565         * lib/chdir-long.h: Include pathmax.h.
3566         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3567         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3568         (PATH_MAX): Remove code that is done by pathmax.h.
3569         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3570         * lib/tmpfile.c: Add a comment.
3571         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3572         * modules/chdir-long (Depends-on): Add pathmax.
3573         * modules/getcwd (Depends-on): Add pathmax.
3574         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3575         is not defined.
3576         * doc/posix-headers/limits.texi: Mention the pathmax module.
3577         * NEWS: Mention the change.
3578
3579 2011-08-02  Bruno Haible  <bruno@clisp.org>
3580
3581         pthread_sigmask: Actually use results of gl_THREADLIB.
3582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3583         gl_THREADLIB, not gl_[]THREADLIB.
3584         Reported by Eric Blake.
3585
3586 2011-08-02  Jim Meyering  <meyering@redhat.com>
3587
3588         maint.mk: relax the default _gl_TS_function_match regexp
3589         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3590         space between function name and "(" in an "extern" declaration.
3591         That would fail to match a decl with no space there: extern void foo();
3592
3593 2011-07-31  Iain Nicol  <iain@thenicols.net>
3594
3595         git-version-gen: document that EXTRA_DIST must include .version
3596         * build-aux/git-version-gen: In the how-to-use comment, document
3597         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3598         will fail when run from an unpacked distribution tarball.
3599
3600 2011-08-01  Bruno Haible  <bruno@clisp.org>
3601
3602         wctype-h: Fix last change.
3603         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3604         REPLACE_TOWLOWER to 0.
3605         Reported by Sam Steingold <sds@gnu.org>.
3606
3607 2011-07-31  Bruno Haible  <bruno@clisp.org>
3608
3609         frexpl: Update autoconf test.
3610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3611         according to changes of 2011-06-20.
3612
3613 2011-07-31  Bruno Haible  <bruno@clisp.org>
3614
3615         sys_utsname: Add support for Minix.
3616         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3617         <sys/utsname.h>.
3618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3619         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3620
3621 2011-07-31  Bruno Haible  <bruno@clisp.org>
3622
3623         strings: Add support for Minix.
3624         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3625         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3626         * doc/posix-headers/strings.texi: Document the Minix problem.
3627
3628 2011-07-31  Bruno Haible  <bruno@clisp.org>
3629
3630         wctype-h: Add support for Minix.
3631         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3632         REPLACE_TOWLOWER.
3633         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3634         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3635         REPLACE_ISWCNTRL.
3636
3637 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3638
3639         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3640         This is a performance improvement for 64-bit hosts: it causes the
3641         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3642
3643 2011-07-31  Bruno Haible  <bruno@clisp.org>
3644
3645         stdioext: Add support for Minix.
3646         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3647         * lib/fpurge.c (fpurge): Likewise.
3648         * lib/freadahead.c (freadahead): Likewise.
3649         * lib/freadable.c (freadable): Likewise.
3650         * lib/freading.c (freading): Likewise.
3651         * lib/freadptr.c (freadptr): Likewise.
3652         * lib/freadseek.c (freadptrinc): Likewise.
3653         * lib/fseeko.c (rpl_fseeko): Likewise.
3654         * lib/fseterr.c (fseterr): Likewise.
3655         * lib/fwritable.c (fwritable): Likewise.
3656         * lib/fwriting.c (fwriting): Likewise.
3657         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3658         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3659
3660 2011-07-31  Bruno Haible  <bruno@clisp.org>
3661
3662         errno: Port to Minix.
3663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3664         ECONNABORTED are defined.
3665         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3666         GNULIB_defined_ECONNABORTED): New macros.
3667         * lib/strerror-override.h (strerror_override): Test also
3668         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3669         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3670         ECONNABORTED.
3671         * doc/posix-headers/errno.texi: Mention the Minix problem.
3672
3673 2011-07-31  Bruno Haible  <bruno@clisp.org>
3674
3675         Work around declaration collisions on Minix.
3676         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3677         defined, set REPLACE_MBSINIT.
3678         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3679         defined, set REPLACE_MBRTOWC.
3680         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3681         set REPLACE_MBRLEN.
3682         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3683         defined, set REPLACE_MBSRTOWCS.
3684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3685         defined, set REPLACE_WCRTOMB.
3686         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3687         defined, set REPLACE_WCSRTOMBS.
3688
3689 2011-07-31  Bruno Haible  <bruno@clisp.org>
3690
3691         Add support for Minix with ACK compiler.
3692         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3693         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3694         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3695
3696 2011-07-31  Bruno Haible  <bruno@clisp.org>
3697
3698         Documentation about Minix.
3699         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3700         * doc/glibc-headers/*.texi: Likewise.
3701         * doc/posix-functions/*.texi: Likewise.
3702         * doc/glibc-functions/*.texi: Likewise.
3703
3704 2011-07-31  Bruno Haible  <bruno@clisp.org>
3705
3706         snippet/warn-on-use: Fix indentation.
3707         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3708
3709 2011-07-25  Jim Meyering  <meyering@redhat.com>
3710
3711         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3712         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3713         commands.
3714
3715 2011-07-27  Jim Meyering  <meyering@redhat.com>
3716
3717         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3718         * top/maint.mk (gl_extract_significant_defines_): Now that
3719         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3720         gnulib/lib/signal.in.h, and now that we recommend to
3721         define-if-undefined those two symbols in application code,
3722         we must filter them out of the "significant" list.
3723         This avoids a "make syntax-check" failure in coreutils.
3724
3725 2011-07-26  Eric Blake  <eblake@redhat.com>
3726
3727         warnings: add comments about previous patch
3728         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3729         * m4/include_next.m4: Likewise.
3730         * m4/warn-on-use.m4: Likewise.
3731         * m4/warnings.m4: Likewise, and simplify use.
3732         Suggested by Stefano Lattarini.
3733
3734         include-next, warnings: support older autoconf
3735         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3736         AS_VAR_PUSHDEF in a way that works with older autoconf.
3737         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3738         Reported by Daniel P. Berrange.
3739
3740 2011-07-25  Bruno Haible  <bruno@clisp.org>
3741
3742         fseek, ftell: Fix doc.
3743         * doc/posix-functions/fseek.texi: Reword statement about
3744         AC_SYS_LARGEFILE.
3745         * doc/posix-functions/ftell.texi: Likewise.
3746
3747 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3748             Bruno Haible  <bruno@clisp.org>
3749
3750         Add dependencies to the 'largefile' module.
3751         * modules/fopen (Depends-on): Add 'largefile'.
3752         * modules/freopen (Depends-on): Likewise.
3753         * modules/fseeko (Depends-on): Likewise.
3754         * modules/ftello (Depends-on): Likewise.
3755         * modules/glob (Depends-on): Likewise.
3756         * modules/lseek (Depends-on): Likewise.
3757         * modules/lstat (Depends-on): Likewise.
3758         * modules/mkostemp (Depends-on): Likewise.
3759         * modules/mkostemps (Depends-on): Likewise.
3760         * modules/mkstemp (Depends-on): Likewise.
3761         * modules/mkstemps (Depends-on): Likewise.
3762         * modules/open (Depends-on): Likewise.
3763         * modules/openat (Depends-on): Likewise.
3764         * modules/pread (Depends-on): Likewise.
3765         * modules/pwrite (Depends-on): Likewise.
3766         * modules/scandir (Depends-on): Likewise.
3767         * modules/stat (Depends-on): Likewise.
3768         * modules/tmpfile (Depends-on): Likewise.
3769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3770         since the containing module now depends on the largefile module.
3771         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3772         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3773         off_t is fixed by gnulib.
3774         * doc/posix-functions/freopen.texi: Likewise.
3775         * doc/posix-functions/fseeko.texi: Likewise.
3776         * doc/posix-functions/fstatat.texi: Likewise.
3777         * doc/posix-functions/ftello.texi: Likewise.
3778         * doc/posix-functions/glob.texi: Likewise.
3779         * doc/posix-functions/lseek.texi: Likewise.
3780         * doc/posix-functions/lstat.texi: Likewise.
3781         * doc/posix-functions/mkstemp.texi: Likewise.
3782         * doc/posix-functions/open.texi: Likewise.
3783         * doc/posix-functions/openat.texi: Likewise.
3784         * doc/posix-functions/pread.texi: Likewise.
3785         * doc/posix-functions/pwrite.texi: Likewise.
3786         * doc/posix-functions/scandir.texi: Likewise.
3787         * doc/posix-functions/stat.texi: Likewise.
3788         * doc/posix-functions/tmpfile.texi: Likewise.
3789         * doc/glibc-functions/mkostemp.texi: Likewise.
3790         * doc/glibc-functions/mkostemps.texi: Likewise.
3791         * doc/glibc-functions/mkstemps.texi: Likewise.
3792
3793 2011-07-25  Bruno Haible  <bruno@clisp.org>
3794
3795         fcntl: Move AC_LIBOBJ invocation to module description.
3796         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3797         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3798
3799         fcntl: Remove call-in from fchdir.m4.
3800         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3802
3803         dup3: Remove potential call-in from fchdir.m4.
3804         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3806
3807         dup2: Move AC_LIBOBJ invocation to module description.
3808         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3809         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3810         Don't invoke AC_LIBOBJ.
3811         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3812
3813         dup2: Remove call-in from fchdir.m4.
3814         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3816
3817         fclose: Move AC_LIBOBJ invocation to module description.
3818         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3819         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3820         to 1.
3821         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3822
3823         fclose: Remove call-in from close.m4.
3824         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3825         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3826
3827         close: Move AC_LIBOBJ invocation to module description.
3828         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3829         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3830         1.
3831         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3832
3833         close: Remove call-in from fchdir.m4.
3834         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3836
3837         open: Move AC_LIBOBJ invocation to module description.
3838         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3839         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3840         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3841
3842         open: Remove call-in from fchdir.m4.
3843         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3845
3846         fchdir: Start to remove gl_REPLACE_* idiom.
3847         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3848         (gl_FUNC_FCHDIR): Invoke it.
3849
3850 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         * lib/ftell.c (ftell): Comment out cast.
3853
3854         close: use gl_REPLACE_FCLOSE only if defined
3855         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3856         is defined.  The close module doesn't depend on the fclose module
3857         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3859         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3860
3861 2011-07-24  Jim Meyering  <meyering@redhat.com>
3862
3863         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3864         * tests/test-select.h (test_function): Declare as "static".
3865
3866 2011-07-24  Bruno Haible  <bruno@clisp.org>
3867
3868         doc: Mention the effects of AC_SYS_LARGEFILE.
3869         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3870         on this function.
3871         * doc/posix-functions/aio_error.texi: Likewise.
3872         * doc/posix-functions/aio_fsync.texi: Likewise.
3873         * doc/posix-functions/aio_read.texi: Likewise.
3874         * doc/posix-functions/aio_return.texi: Likewise.
3875         * doc/posix-functions/aio_suspend.texi: Likewise.
3876         * doc/posix-functions/aio_write.texi: Likewise.
3877         * doc/posix-functions/fgetpos.texi: Likewise.
3878         * doc/posix-functions/fopen.texi: Likewise.
3879         * doc/posix-functions/freopen.texi: Likewise.
3880         * doc/posix-functions/fsetpos.texi: Likewise.
3881         * doc/posix-functions/fstatvfs.texi: Likewise.
3882         * doc/posix-functions/ftruncate.texi: Likewise.
3883         * doc/posix-functions/ftw.texi: Likewise.
3884         * doc/posix-functions/getrlimit.texi: Likewise.
3885         * doc/posix-functions/glob.texi: Likewise.
3886         * doc/posix-functions/lio_listio.texi: Likewise.
3887         * doc/posix-functions/lockf.texi: Likewise.
3888         * doc/posix-functions/mkstemp.texi: Likewise.
3889         * doc/posix-functions/mmap.texi: Likewise.
3890         * doc/posix-functions/nftw.texi: Likewise.
3891         * doc/posix-functions/openat.texi: Likewise.
3892         * doc/posix-functions/opendir.texi: Likewise.
3893         * doc/posix-functions/posix_fadvise.texi: Likewise.
3894         * doc/posix-functions/posix_fallocate.texi: Likewise.
3895         * doc/posix-functions/pread.texi: Likewise.
3896         * doc/posix-functions/pwrite.texi: Likewise.
3897         * doc/posix-functions/readdir.texi: Likewise.
3898         * doc/posix-functions/readdir_r.texi: Likewise.
3899         * doc/posix-functions/rewinddir.texi: Likewise.
3900         * doc/posix-functions/scandir.texi: Likewise.
3901         * doc/posix-functions/seekdir.texi: Likewise.
3902         * doc/posix-functions/setrlimit.texi: Likewise.
3903         * doc/posix-functions/statvfs.texi: Likewise.
3904         * doc/posix-functions/telldir.texi: Likewise.
3905         * doc/posix-functions/tmpfile.texi: Likewise.
3906         * doc/posix-functions/truncate.texi: Likewise.
3907         * doc/glibc-functions/fallocate.texi: Likewise.
3908         * doc/glibc-functions/fstatfs.texi: Likewise.
3909         * doc/glibc-functions/fts_children.texi: Likewise.
3910         * doc/glibc-functions/fts_read.texi: Likewise.
3911         * doc/glibc-functions/getdirentries.texi: Likewise.
3912         * doc/glibc-functions/mkostemp.texi: Likewise.
3913         * doc/glibc-functions/mkostemps.texi: Likewise.
3914         * doc/glibc-functions/mkstemps.texi: Likewise.
3915         * doc/glibc-functions/preadv.texi: Likewise.
3916         * doc/glibc-functions/pwritev.texi: Likewise.
3917         * doc/glibc-functions/sendfile.texi: Likewise.
3918         * doc/glibc-functions/statfs.texi: Likewise.
3919
3920 2011-07-24  Bruno Haible  <bruno@clisp.org>
3921
3922         doc: Fix typo.
3923         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3924
3925 2011-07-24  Bruno Haible  <bruno@clisp.org>
3926
3927         doc: Mention fsusage.
3928         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3929
3930 2011-07-24  Bruno Haible  <bruno@clisp.org>
3931
3932         doc: Mention new glibc headers and functions.
3933         * doc/glibc-headers/gshadow.texi: New file.
3934         * doc/glibc-functions/endsgent.texi: New file.
3935         * doc/glibc-functions/fgetsgent.texi: New file.
3936         * doc/glibc-functions/fgetsgent_r.texi: New file.
3937         * doc/glibc-functions/getsgent.texi: New file.
3938         * doc/glibc-functions/getsgent_r.texi: New file.
3939         * doc/glibc-functions/getsgnam.texi: New file.
3940         * doc/glibc-functions/getsgnam_r.texi: New file.
3941         * doc/glibc-functions/putsgent.texi: New file.
3942         * doc/glibc-functions/setsgent.texi: New file.
3943         * doc/glibc-functions/sgetsgent.texi: New file.
3944         * doc/glibc-functions/sgetsgent_r.texi: New file.
3945         * doc/glibc-functions/malloc_info.texi: New file.
3946         * doc/glibc-functions/preadv.texi: New file.
3947         * doc/glibc-functions/pwritev.texi: New file.
3948         * doc/glibc-functions/register_printf_modifier.texi: New file.
3949         * doc/glibc-functions/register_printf_specifier.texi: New file.
3950         * doc/glibc-functions/register_printf_type.texi: New file.
3951         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3952         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3953         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3954         * doc/glibc-functions/pthread_getname_np.texi: New file.
3955         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3956         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3957         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3958         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3959         * doc/glibc-functions/pthread_setname_np.texi: New file.
3960         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3961         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3962         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3963         * doc/glibc-functions/qsort_r.texi: New file.
3964         * doc/glibc-functions/quick_exit.texi: New file.
3965         * doc/glibc-functions/syncfs.texi: New file.
3966         * doc/gnulib.texi: Include them.
3967         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3968         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3969         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3970         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3971         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3972         * doc/glibc-functions/execvpe.texi: Likewise.
3973
3974 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3975
3976         ftell: don't include <unistd.h>
3977         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3978         guaranteed to define off_t, and the ftell module depends on the
3979         stdio module.
3980
3981         ftell: do not assume wraparound signed arithmetic
3982         * lib/ftell.c: Include <limits.h>.
3983         (ftell): Don't assume wraparound signed arithmetic.
3984
3985 2011-07-24  Bruno Haible  <bruno@clisp.org>
3986
3987         close: No longer depend on module 'fclose'.
3988         * modules/close (Depends-on): Remove fclose.
3989         * NEWS: Mention the change.
3990         Suggested by Sam Steingold <sds@gnu.org>.
3991
3992 2011-07-24  Bruno Haible  <bruno@clisp.org>
3993
3994         fsusage: Enable large volume support on AIX >= 5.2.
3995         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3996         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3997         instead of STAT_STATVFS.
3998         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3999
4000         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4002         f_blocks field only on MacOS X.
4003
4004         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4005         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4006         * modules/fsusage (Depends-on): Add largefile.
4007
4008 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4009
4010         * README: Modernize discussion of signed integers.
4011         Assuming overflow wraparound is no longer safe.
4012         Mention ones' complement and signed magnitude.
4013
4014 2011-07-22  Bruno Haible  <bruno@clisp.org>
4015
4016         select tests, pselect tests: Refactor.
4017         * tests/test-select.h: New file, extracted from tests/test-select.c.
4018         (select_fn): New type.
4019         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4020         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4021         test_pipe): Add my_select argument.
4022         (test_function): Renamed from main. Add my_select argument.
4023         * tests/test-select.c: Move most code to tests/test-select.h. Include
4024         test-select.h.
4025         * modules/select-tests (Files): Add tests/test-select.h.
4026         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4027         (my_select, main): New functions.
4028         * modules/pselect-tests (Files): Add tests/test-select.h,
4029         tests/macros.h, tests/signature.h.
4030         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4031         (configure.ac): Check for <sys/wait.h>.
4032
4033 2011-07-22  Bruno Haible  <bruno@clisp.org>
4034
4035         sys_select tests: Check the signature of FD_*.
4036         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4037         signature tests from here...
4038         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4039         here.
4040         * modules/sys_select-tests (Files): Add tests/signature.h.
4041
4042 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4043
4044         largefile: new module, replacing large-inode
4045         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4046         * MODULES.html.sh: Add largefile, remove large-inode.
4047         * modules/largefile, m4/largefile.m4: New files.
4048         * modules/large-inode, m4/large-inode.m4: Remove.
4049
4050         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4051         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4052         implementations that use only 32 bits to count blocks.
4053         On typical hosts with 1024-byte blocks, this fails with file
4054         systems as small as 4 TiB.  Problem reported by Herb Wartens
4055         <http://debbugs.gnu.org/9140> and this should also fix a similar
4056         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4057
4058         large-inode: New module
4059         * MODULES.html.sh: Add it.
4060         * modules/large-inode, m4/large-inode.m4: New files.
4061
4062         extensions: Enable extensions on MacOS X 10.5 and later.
4063         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4064
4065 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4066
4067         file-has-acl: use acl_extended_file_nofollow if available
4068         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4069         (acl_extended_file): New macro.
4070         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4071         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4072
4073 2011-07-21  Bruno Haible  <bruno@clisp.org>
4074
4075         Declare system functions in a way that works with C++.
4076         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4077         declare fdopendir as extern "C".
4078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4079         declare frexpl as extern "C".
4080         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4081         declare gai_strerror as extern "C".
4082         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4083         programs, declare gai_strerror as extern "C".
4084         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4085         declare getlogin_r as extern "C".
4086         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4087         as extern "C".
4088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4089         declare ldexpl as extern "C".
4090         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4091         as extern "C".
4092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4093         program, declare getmntinfo as extern "C".
4094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4095         stpncpy as extern "C".
4096         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4097         program, declare __xpg_strerror_r as extern "C".
4098         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4099         strndup as extern "C".
4100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4101         declare memset and bzero as extern "C".
4102         Reported by Sam Steingold <sds@gnu.org>.
4103
4104 2011-07-12  Jim Meyering  <meyering@redhat.com>
4105
4106         maint.mk: prohibit inclusion of "verify.h" without use
4107         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4108
4109 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4110
4111         timer-time: A new module to check for timer_settime()
4112         * m4/timer_time.m4: Check for the posix function.
4113         * modules/timer-time: Add the new module.
4114         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4115         Mention it.
4116
4117 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4118             Bruno Haible  <bruno@clisp.org>
4119
4120         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4121         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4122         not defined, assume POSIX threads and look for pthread_sigmask in
4123         $LIBS, without changing $CPPFLAGS.
4124
4125 2011-07-19  Bruno Haible  <bruno@clisp.org>
4126
4127         strstr: Update cross-compilation guess.
4128         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4129         CPUs, guess no, in view of glibc
4130         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4131         Suggested by Eric Blake. Reported by Reuben Thomas.
4132
4133 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4134
4135         getopt-gnu: suppress core dumps from detection code
4136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4137         to suppress core dumps that may well occur on glibc systems.
4138         * modules/getopt-gnu: Depend on nocrash.
4139
4140 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4141
4142         pthread_sigmask: ensure usleep is declared
4143         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4144         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4145
4146 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4147
4148         doc: Document NonStop portability issues.
4149         * doc/posix-functions/sigaction.texi (sigaction):
4150         * doc/posix-headers/signal.texi (signal.h):
4151         Document NonStop.  See Joachim Schmitz in
4152         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4153
4154 2011-07-15  Bruno Haible  <bruno@clisp.org>
4155
4156         ffsl, ffsll: Avoid unportable behaviour.
4157         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4158
4159 2011-07-15  Bruno Haible  <bruno@clisp.org>
4160
4161         ffs: More tests.
4162         * tests/test-ffs.c (NBITS): New macro.
4163         (main): Add more tests.
4164         * tests/test-ffsl.c (NBITS): New macro.
4165         (main): Add more tests.
4166         * tests/test-ffsll.c (NBITS): New macro.
4167         (main): Add more tests.
4168
4169 2011-07-15  Eric Blake  <eblake@redhat.com>
4170
4171         ffsl, ffsll: new modules
4172         * modules/ffsl: New file.
4173         * modules/ffsll: Likewise.
4174         * m4/ffsl.m4: Likewise.
4175         * m4/ffsll.m4: Likewise.
4176         * lib/ffsl.c: Likewise.
4177         * lib/ffsl.h: Likewise.
4178         * lib/ffsll.c: Likewise.
4179         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4180         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4181         * modules/string (Makefile.am): Substitute witnesses.
4182         * lib/strings.in.h (ffsl, ffsll): Declare.
4183         * modules/ffsl-tests: New test file.
4184         * modules/ffsll-tests: Likewise.
4185         * tests/test-ffsl.c: Likewise.
4186         * tests/test-ffsll.c: Likewise.
4187         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4188         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4189         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4190
4191         ffs: fix m4 prerequisite
4192         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4193
4194         ffs: avoid undefined behavior
4195         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4196         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4197         Reported by Bruno Haible.
4198
4199 2011-07-12  Bruno Haible  <bruno@clisp.org>
4200
4201         pthread_sigmask: Rely on module 'threadlib'.
4202         * modules/pthread_sigmask (Depends-on): Add threadlib.
4203         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4204         is defined.
4205
4206 2011-07-12  Bruno Haible  <bruno@clisp.org>
4207
4208         regex: Depend on module 'strcase'.
4209         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4210
4211 2011-07-12  Jim Meyering  <meyering@redhat.com>
4212
4213         warn-on-use: fix typo in file name
4214         * modules/snippet/warn-on-use (Files): Correct file name:
4215         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4216
4217 2011-07-12  Bruno Haible  <bruno@clisp.org>
4218
4219         strings: Document module.
4220         * doc/posix-headers/strings.texi: Mention module 'strings'.
4221
4222 2011-07-12  Bruno Haible  <bruno@clisp.org>
4223
4224         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4225         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4226         (Files, Makefile.am): Update.
4227         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4228         * modules/stdlib (Depends-on): Update.
4229
4230 2011-07-12  Bruno Haible  <bruno@clisp.org>
4231
4232         * NEWS: Mention the changes.
4233
4234         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4235         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4236         (Files, Makefile.am): Update.
4237         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4238         * modules/arpa_inet (Depends-on): Update.
4239         * modules/ctype (Depends-on): Update.
4240         * modules/dirent (Depends-on): Update.
4241         * modules/fcntl-h (Depends-on): Update.
4242         * modules/glob (Depends-on): Update.
4243         * modules/iconv-h (Depends-on): Update.
4244         * modules/inttypes-incomplete (Depends-on): Update.
4245         * modules/langinfo (Depends-on): Update.
4246         * modules/locale (Depends-on): Update.
4247         * modules/math (Depends-on): Update.
4248         * modules/netdb (Depends-on): Update.
4249         * modules/poll-h (Depends-on): Update.
4250         * modules/pty (Depends-on): Update.
4251         * modules/search (Depends-on): Update.
4252         * modules/signal (Depends-on): Update.
4253         * modules/spawn (Depends-on): Update.
4254         * modules/stdio (Depends-on): Update.
4255         * modules/stdlib (Depends-on): Update.
4256         * modules/string (Depends-on): Update.
4257         * modules/strings (Depends-on): Update.
4258         * modules/sys_file (Depends-on): Update.
4259         * modules/sys_ioctl (Depends-on): Update.
4260         * modules/sys_select (Depends-on): Update.
4261         * modules/sys_socket (Depends-on): Update.
4262         * modules/sys_stat (Depends-on): Update.
4263         * modules/sys_time (Depends-on): Update.
4264         * modules/sys_times (Depends-on): Update.
4265         * modules/sys_utsname (Depends-on): Update.
4266         * modules/sys_wait (Depends-on): Update.
4267         * modules/termios (Depends-on): Update.
4268         * modules/time (Depends-on): Update.
4269         * modules/unistd (Depends-on): Update.
4270         * modules/wchar (Depends-on): Update.
4271         * modules/wctype-h (Depends-on): Update.
4272         * MODULES.html.sh (Support for building libraries and executables):
4273         Update.
4274
4275         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4276         * modules/snippet/unused-parameter: Renamed from
4277         modules/unused-parameter.
4278         (Files, Makefile.am): Update.
4279         * build-aux/snippet/unused-parameter.h: Renamed from
4280         build-aux/unused-parameter.h.
4281         * modules/selinux-h (Depends-on): Update.
4282         * modules/unistr/base (Depends-on): Update.
4283         * MODULES.html.sh (Core language properties): Update.
4284
4285         Rename module 'link-warning' to 'snippet/link-warning'.
4286         * modules/snippet/link-warning: Renamed from modules/link-warning.
4287         (Files, Makefile.am): Update.
4288         * build-aux/snippet/link-warning.h: Renamed from
4289         build-aux/link-warning.h.
4290         * MODULES.html.sh (Support for building libraries and executables):
4291         Update.
4292
4293         Rename module 'c++defs' to 'snippet/c++defs'.
4294         * modules/snippet/c++defs: Renamed from modules/c++defs.
4295         (Files, Makefile.am): Update.
4296         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4297         * modules/arpa_inet (Depends-on): Update.
4298         * modules/ctype (Depends-on): Update.
4299         * modules/dirent (Depends-on): Update.
4300         * modules/fcntl-h (Depends-on): Update.
4301         * modules/glob (Depends-on): Update.
4302         * modules/iconv-h (Depends-on): Update.
4303         * modules/langinfo (Depends-on): Update.
4304         * modules/locale (Depends-on): Update.
4305         * modules/math (Depends-on): Update.
4306         * modules/netdb (Depends-on): Update.
4307         * modules/poll-h (Depends-on): Update.
4308         * modules/pty (Depends-on): Update.
4309         * modules/search (Depends-on): Update.
4310         * modules/signal (Depends-on): Update.
4311         * modules/spawn (Depends-on): Update.
4312         * modules/stdio (Depends-on): Update.
4313         * modules/stdlib (Depends-on): Update.
4314         * modules/string (Depends-on): Update.
4315         * modules/strings (Depends-on): Update.
4316         * modules/sys_ioctl (Depends-on): Update.
4317         * modules/sys_select (Depends-on): Update.
4318         * modules/sys_socket (Depends-on): Update.
4319         * modules/sys_stat (Depends-on): Update.
4320         * modules/sys_time (Depends-on): Update.
4321         * modules/sys_wait (Depends-on): Update.
4322         * modules/termios (Depends-on): Update.
4323         * modules/time (Depends-on): Update.
4324         * modules/unistd (Depends-on): Update.
4325         * modules/wchar (Depends-on): Update.
4326         * modules/wctype-h (Depends-on): Update.
4327
4328         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4329         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4330         (Files, Makefile.am): Update.
4331         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4332         * modules/argv-iter (Depends-on): Update.
4333         * modules/arpa_inet (Depends-on): Update.
4334         * modules/dirent (Depends-on): Update.
4335         * modules/fcntl-h (Depends-on): Update.
4336         * modules/fnmatch (Depends-on): Update.
4337         * modules/getopt-posix (Depends-on): Update.
4338         * modules/glob (Depends-on): Update.
4339         * modules/iconv-h (Depends-on): Update.
4340         * modules/inttypes-incomplete (Depends-on): Update.
4341         * modules/locale (Depends-on): Update.
4342         * modules/math (Depends-on): Update.
4343         * modules/netdb (Depends-on): Update.
4344         * modules/search (Depends-on): Update.
4345         * modules/signal (Depends-on): Update.
4346         * modules/spawn (Depends-on): Update.
4347         * modules/stdio (Depends-on): Update.
4348         * modules/stdlib (Depends-on): Update.
4349         * modules/string (Depends-on): Update.
4350         * modules/strings (Depends-on): Update.
4351         * modules/sys_socket (Depends-on): Update.
4352         * modules/sys_stat (Depends-on): Update.
4353         * modules/sys_time (Depends-on): Update.
4354         * modules/sys_times (Depends-on): Update.
4355         * modules/sys_utsname (Depends-on): Update.
4356         * modules/time (Depends-on): Update.
4357         * modules/unistd (Depends-on): Update.
4358         * modules/wchar (Depends-on): Update.
4359         * MODULES.html.sh (Support for building libraries and executables):
4360         Update.
4361
4362 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4363
4364         Improvements on _Noreturn and related modules.
4365
4366         modules/_Exit-tests: test _Noreturn too
4367         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4368         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4369         (main): Use them.
4370
4371         stdnoreturn, stdnoreturn-tests: remove modules
4372         They're not needed here and a bit premature for use elsewhere.  See
4373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4374         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4375         * tests/test-stdnoreturn.c: Remove files.
4376         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4377         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4378         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4379         and using noreturn.
4380         * modules/openat, modules/sigpipe-die, modules/xalloc:
4381         * modules/xmemdup0, modules/xstrtol:
4382         Remove dependency on stdnoreturn.
4383
4384         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4385         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4386         Reparenthesize to avoid GCC warning.
4387         Support Microsoft's syntax.
4388         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4389
4390         _Noreturn-tests: remove module
4391         * modules/_Noreturn-tests: Remove.
4392         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4393         * tests/test-_Noreturn.c: Remove.
4394         * tests/test-stdnoreturn.c: Merge from the old
4395         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4396
4397 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4398
4399         _Noreturn, stdnoreturn, and related modules.
4400
4401         * top/maint.mk: Adjust to new noreturn support.
4402         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4403         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4404
4405         xalloc: use stdnoreturn.h
4406         * lib/xalloc.h: Include <stdnoreturn.h>.
4407         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4408         * modules/xalloc (Depends-on): Add stdnoreturn.
4409
4410         xstrtol: use stdnoreturn.h
4411         * lib/xstrtol.h: Include <stdnoreturn.h>.
4412         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4413         * modules/xstrtol (Depends-on): Add stdnoreturn.
4414
4415         xmemdup0: use stdnoreturn.h
4416         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4417         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4418         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4419
4420         sigpipe-die: use stdnoreturn.h
4421         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4422         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4423         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4424
4425         openat: use stdnoreturn.h
4426         * lib/openat.h: Include <stdnoreturn.h>.
4427         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4428         * modules/openat (Depends-on): Add stdnoreturn.
4429
4430         * lib/openat-die.c (openat_save_fail): Modernize comment.
4431
4432         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4433
4434         * lib/glthread/thread.h: Modernize comment.
4435
4436         obstack: use _Noreturn
4437         * lib/obstack.c (__attribute__): Remove macro.
4438         (print_and_abort): Use _Noreturn.
4439
4440         c-stack: use _Noreturn
4441         * lib/c-stack.c (die, overflow_handler, segv_handler):
4442         Use _Noreturn rather than __attribute__((noreturn)).
4443
4444         argmatch-tests, exclude_tests: use _Noreturn
4445         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4446         Remove.
4447         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4448
4449         stdlib: use _Noreturn
4450         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4451         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4452         * modules/stdlib (Depends-on): Add _Noreturn.
4453         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4454
4455         stdnoreturn-tests: new module
4456         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4457
4458         stdnoreturn: new module
4459         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4460         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4461
4462         _Noreturn-tests: new module
4463         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4464
4465         _Noreturn: new module
4466         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4467         New section, mentioning it.
4468         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4469
4470         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4471
4472 2011-07-11  Eric Blake  <eblake@redhat.com>
4473
4474         ffs: new module
4475         * modules/ffs: New file.
4476         * m4/ffs.m4: Likewise.
4477         * lib/ffs.c: Likewise.
4478         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4479         * modules/strings (Makefile.am): Substitute witness.
4480         (Depends-on): Add c++defs.
4481         * lib/strings.in.h (ffs): Declare.
4482         * modules/ffs-tests: New test file.
4483         * tests/test-ffs.c: Test new module.
4484         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4485         * doc/posix-functions/ffs.texi (ffs): Likewise.
4486
4487         regex: avoid compiler warning
4488         * lib/regex.c (includes): Include <strings.h>, for use of
4489         strcasecmp in regcomp.c.
4490         Reported by Joachim Schmitz.
4491
4492 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         stdint: respect system's intmax_t if INTMAX_MAX
4495         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4496         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4497         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4498         long but int64_t is long long, and where we will clash with the
4499         system intmax_t if we override it.  See
4500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4501         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4502         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4503         similarly for UINTMAX_C.
4504
4505 2011-07-08  Bruno Haible  <bruno@clisp.org>
4506
4507         pthread_sigmask tests: Avoid a compiler warning.
4508         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4509         non-zero.
4510
4511         sigprocmask tests: A better way to avoid a compiler warning.
4512         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4513         (main): Complain if system() returns non-zero.
4514         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4515
4516 2011-07-08  Bruno Haible  <bruno@clisp.org>
4517
4518         pthread_sigmask: Work around IRIX bug.
4519         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4520         bug.
4521         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4522         there may be unblocked pending signals.
4523         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4524
4525 2011-07-08  Bruno Haible  <bruno@clisp.org>
4526
4527         pthread_sigmask: Work around Cygwin bug.
4528         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4529         bug.
4530         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4531         the system's pthread_sigmask function.
4532         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4533
4534 2011-07-08  Bruno Haible  <bruno@clisp.org>
4535
4536         pthread_sigmask: Work around bug in single-threaded implementation.
4537         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4538         FreeBSD, HP-UX, Solaris bug.
4539         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4540         * lib/pthread_sigmask.c: Include <stddef.h>.
4541         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4542         the system's pthread_sigmask function.
4543         * modules/pthread_sigmask (configure.ac): Invoke
4544         gl_PREREQ_PTHREAD_SIGMASK.
4545         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4546         HP-UX, Solaris.
4547
4548 2011-07-08  Eric Blake  <eblake@redhat.com>
4549
4550         test-sigprocmask: avoid compiler warning
4551         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4552         * tests/test-sigprocmask.c (main): Use it to silence warning.
4553         Reported by Jim Meyering.
4554
4555         test-snprintf: avoid compiler warning
4556         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4557         * tests/test-vsnprintf.c (main): Likewise.
4558         Reported by Jim Meyering.
4559
4560 2011-07-08  Bruno Haible  <bruno@clisp.org>
4561
4562         Tests for module 'pthread_sigmask'.
4563         * modules/pthread_sigmask-tests: New file.
4564         * tests/test-pthread_sigmask1.c: New file, based on
4565         tests/test-sigprocmask.c.
4566         * tests/test-pthread_sigmask2.c: New file.
4567
4568 2011-07-08  Jim Meyering  <meyering@redhat.com>
4569
4570         test-getopt.h: avoid warning about an unused variable
4571         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4572
4573 2011-07-07  Jim Meyering  <meyering@redhat.com>
4574
4575         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4576         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4577         now that it no longer contains leading TABs.
4578         Remove unused "url=FIXME" statement.
4579
4580 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4581
4582         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4583         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4584         When gl_THREADLIB is not in use, assume that the POSIX sematics
4585         are desired.  This is better for Emacs, which uses POSIX semantics
4586         on GNUish and/or POSIXish platforms, and does not use threads at
4587         all otherwise.
4588
4589         pthread_sigmask: fix typo when testing for libraries
4590         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4591         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4592
4593 2011-07-08  Eric Blake  <eblake@redhat.com>
4594
4595         fts: introduce FTS_NOATIME
4596         * lib/fts_.h (FTS_NOATIME): New bit flag.
4597         (FTS_OPTIONMASK): Adjust.
4598         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4599         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4600
4601 2011-07-08  Bruno Haible  <bruno@clisp.org>
4602
4603         Tests for module 'thread'.
4604         * modules/thread-tests: New file.
4605         * tests/test-thread_self.c: New file.
4606         * tests/test-thread_create.cc: New file.
4607
4608 2011-07-08  Bruno Haible  <bruno@clisp.org>
4609
4610         thread: Avoid gcc warnings when using gl_thread_self().
4611         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4612         'void *'.
4613         (gl_thread_self_pointer): Update.
4614
4615 2011-07-07  Bruno Haible  <bruno@clisp.org>
4616
4617         signal-c++-tests: Check declaration of pthread_sigmask.
4618         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4619         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4620         $(LIB_PTHREAD_SIGMASK).
4621
4622 2011-07-07  Bruno Haible  <bruno@clisp.org>
4623
4624         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4625         * lib/signal.in.h (pthread_sigmask): Override if
4626         REPLACE_PTHREAD_SIGMASK is 1.
4627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4628         REPLACE_PTHREAD_SIGMASK.
4629         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4630         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4631         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4632         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4633         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4634
4635 2011-07-07  Bruno Haible  <bruno@clisp.org>
4636
4637         pthread_sigmask: Ensure declaration in <signal.h>.
4638         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4639         include <pthread.h>.
4640         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4641         problem.
4642
4643 2011-07-07  Bruno Haible  <bruno@clisp.org>
4644
4645         pthread_sigmask: Document the module.
4646         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4647
4648 2011-07-07  Bruno Haible  <bruno@clisp.org>
4649
4650         pthread_sigmask: Follow gnulib conventions.
4651         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4652         gl_PTHREAD_SIGMASK.
4653         * modules/pthread_sigmask (configure.ac): Update.
4654
4655 2011-07-07  Bruno Haible  <bruno@clisp.org>
4656
4657         pthread_sigmask: Make declaration C++ safe.
4658         * lib/signal.in.h: In two special conditions, just do an #include_next.
4659         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4660         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4662         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4663         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4664         not REPLACE_PTHREAD_MASK.
4665         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4666         not REPLACE_PTHREAD_MASK.
4667         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4668
4669 2011-07-07  Bruno Haible  <bruno@clisp.org>
4670
4671         pthread_sigmask: Fix return value.
4672         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4673         * lib/pthread_sigmask.c: New file.
4674         * modules/pthread_sigmask (Files): Add it.
4675         (configure.ac): Invoke AC_LIBOBJ.
4676
4677 2011-07-07  Eric Blake  <eblake@redhat.com>
4678
4679         getopt: more portable argv creation
4680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4681         const, use char arrays rather than strings.
4682         Suggested by Paul Eggert.
4683
4684 2011-07-07  Bruno Haible  <bruno@clisp.org>
4685
4686         Tests for module 'sigprocmask'.
4687         * modules/sigprocmask-tests: New file.
4688         * tests/test-sigprocmask.c: New file.
4689
4690 2011-07-07  Bruno Haible  <bruno@clisp.org>
4691
4692         float tests: Tweak.
4693         * tests/test-float.c (main): Tweak skip message.
4694
4695 2011-07-07  Eric Blake  <eblake@redhat.com>
4696
4697         getopt: avoid compiler warning during configure
4698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4699         assigning string literals to non-const pointer.
4700
4701         getopt-gnu: avoid crash in glibc getopt
4702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4703         * tests/test-getopt.h (test_getopt): Enhance test.
4704         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4705         * doc/posix-functions/getopt.texi (getopt): Document it.
4706         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4707         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4708         Likewise.
4709
4710 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4711
4712         getopt: handle W; without long options in getopt [BZ #12922]
4713         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4714         but no long options are defined, just return 'W'.
4715
4716 2011-07-07  Bruno Haible  <bruno@clisp.org>
4717
4718         Avoid literal tabs.
4719         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4720         variable containing a tab instead of a literal tab.
4721         Reported by Jim Meyering.
4722
4723 2011-07-07  Bruno Haible  <bruno@clisp.org>
4724
4725         Comments.
4726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4727
4728 2011-07-06  Bruno Haible  <bruno@clisp.org>
4729
4730         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4731         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4732         <winsock2.h>.
4733         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4734         lib/sys_socket.in.h.
4735         (close, gethostname): Hide declarations from <winsock2.h>.
4736         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4737         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4738         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4739         (select): Don't override if gnulib's <sys/select.h> was already
4740         included.
4741         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4742         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4743         setsockopt, shutdown, select): Tweak indentation.
4744
4745 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4746
4747         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4748         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4749         in an application that does not use the sys_select module.
4750
4751 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4752
4753         poll: do not return 0 on timeout=-1
4754         * lib/poll.c: Loop with yield if no events occured
4755
4756 2011-07-06  Eric Blake  <eblake@redhat.com>
4757
4758         pthread_sigmask: always replace when not using pthread
4759         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4760         replacement when using some threading other than pthread.  Fix
4761         logic bug.
4762
4763 2011-07-06  Bruno Haible  <bruno@clisp.org>
4764
4765         Comments.
4766         * m4/printf.m4: Update comments about mingw.
4767
4768 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         sys_select: define sigset_t more portably
4771         * lib/sys_select.in.h: Always include <sys/types.h>, since
4772         we now need sigset_t and mingw defines it there.
4773         Include <signal.h> before split inclusion guard, to avoid
4774         mishaps on Solaris, whose <signal.h> eventually includes us.
4775         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4776         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4777         which come from ...
4778         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4779         gl_CHECK_TYPE_SIGSET_T.
4780         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4781         does the real work.
4782         * modules/sys_select (Depends-on): Add 'signal'.
4783
4784         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4785         Suggested by Bruno Haible.
4786
4787         pselect: Use pthread_sigmask, not sigprocmask.
4788         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4789         multithreaded apps better than sigprocmask does.
4790         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4791         sigprocmask directly.
4792
4793 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4796         Don't #undef,  since we don't need any underlying pselect.
4797         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4798         (Depends-on): Add select.
4799         (Link): Add $(LIBSOCKET).
4800         These changes suggested by Bruno Haible.
4801
4802         pselect: document better
4803         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4804         * doc/posix-functions/pselect.texi (pselect): Document new module.
4805
4806         pthread_sigmask: new module
4807         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4808         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4809         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4810         This is done only as a macro; I don't know how well that'll
4811         work for C++.  Move <sys/types.h> include before the include_next,
4812         to avoid mishap on Solaris.
4813         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4814         * modules/signal (Makefile.am): Substitute the check's results.
4815         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4816
4817         test-pselect: new module
4818         * modules/pselect-tests, tests/test-pselect.c: New files.
4819         * tests/test-select.c, tests/test-sys_select-c++.cc:
4820         If TEST_PSELECT is defined, test pselect instead of testing select.
4821
4822         * tests/test-sys_select.c (sigset_t): Test for it, too.
4823         Suggested by Bruno Haible.
4824
4825 2011-07-05  Eric Blake  <eblake@redhat.com>
4826
4827         snprintf: guarantee %1$d, for libintl
4828         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4829         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4830         * doc/posix-functions/snprintf.texi (snprintf): Update.
4831         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4832         * tests/test-snprintf.c (main): Enhance test.
4833         * tests/test-vsnprintf.c (main): Likewise.
4834
4835 2011-07-05  Jim Meyering  <meyering@redhat.com>
4836
4837         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4838         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4839         per Bruno's request, to accommodate this idiom (no space after "#")
4840         even when the function is inside an #if block:
4841         char *
4842         gets (char *s)
4843         #undef gets
4844         {
4845           ...
4846         }
4847
4848 2011-07-04  Jim Meyering  <meyering@redhat.com>
4849
4850         maint: indent with spaces, not TABs, and add a rule to check this
4851         * tests/test-userspec.c: Indent with spaces, not TABs.
4852         * tests/test-argp.c: Likewise.
4853         * tests/test-c-stack2.sh: Likewise.
4854         * tests/test-parse-duration.sh: Likewise
4855         * m4/strtod.m4: Likewise.
4856         * m4/alloca.m4: Likewise.
4857         * m4/pselect.m4: Likewise.
4858         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4859
4860 2011-07-03  Jim Meyering  <meyering@redhat.com>
4861
4862         maint.mk: correct omissions in prohibit_argmatch_without_use check
4863         This rule would mistakenly report that argmatch.h is included without
4864         use even when both the argmatch and invalid_arg macro were used.
4865         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4866         of argmatch and invalid_arg.
4867
4868 2011-07-03  Bruno Haible  <bruno@clisp.org>
4869
4870         Comments about EINTR.
4871         * lib/safe-read.h: Explain the purpose of this module.
4872         * lib/safe-write.h: Likewise.
4873         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4874         module.
4875         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4876         module.
4877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4878
4879 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4880
4881         xnanosleep: Rewrite to use new dtotimespec module.
4882         It has the conversion code that used to be in xnanosleep.
4883         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4884         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4885         (TIME_T_MAX): Remove.
4886         (xnanosleep): Rewrite in terms of dtotimespec.
4887         * modules/xnanosleep (Depends-on): Add dtotimespec.
4888         Remove intprops, stdbool.
4889
4890         timespec-add, timespec-sub: new modules
4891         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4892         * lib/timespec-add.c, lib/timespec-sub.c:
4893         * modules/timespec-add, modules/timespec-sub: New files.
4894
4895         dtotimespec: new module
4896         * lib/timespec.h (dtotimespec): New decl.
4897         * lib/dtotimespec.c, modules/dtotimespec: New files.
4898
4899         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4900
4901         pselect: new module
4902         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4903         (pselect): New decls.
4904         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4905         since the standard pselect decl uses 'restrict'.
4906         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4907         HAVE_PSELECT, REPLACE_PSELECT.
4908         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4909         HAVE_PSELECT, REPLACE_PSELECT.
4910         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4911
4912         sys_select: don't depend on sys_socket
4913         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4915         This fix works on GNU and GNU-like platforms, but has not been tested
4916         on native Windows.
4917         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4918         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4919         gl_HEADER_SYS_SOCKET.
4920         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4921         gl_PREREQ_SYS_H_WINSOCK2.
4922
4923 2011-06-29  Eric Blake  <eblake@redhat.com>
4924
4925         pipe2: fix C89 compile problem
4926         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4927         Reported by Bruno Haible.
4928
4929         pipe, pipe2: don't corrupt fd on error
4930         * lib/pipe.c (pipe): Leave fd unchanged on error.
4931         * lib/pipe2.c (pipe2): Likewise.
4932         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4933         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4934
4935 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4936
4937         mmap-anon: do not use regular expressions inadvertently
4938         * m4/mmap-anon.m4: Remove trailing period from strings sought
4939         in the output.
4940
4941 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4942
4943         nanosleep: fix integer overflow problem
4944         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4945         arithmetic wraps around on overflow.
4946
4947         nanosleep: simplify carrying
4948         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4949         first call to the underyling nanosleep, not for the last one.
4950         This doesn't fix any bugs, but it simplifies the computation of
4951         the remaining delay.  Found while auditing integer overflow issues.
4952
4953         dup2: remove test for existence of fcntl
4954         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4955         "#if HAVE_FCNTL", in the configure-time test program.
4956         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4957         and therefore speeds up "configure" a bit.  Found while
4958         adding the dup2 module to Emacs.
4959
4960 2011-06-24  Eric Blake  <eblake@redhat.com>
4961
4962         maint.mk: enhance useless header checks
4963         * top/maint.mk (_sc_header_without_use): Check both include
4964         styles.
4965         (sc_prohibit_assert_without_use)
4966         (sc_prohibit_close_stream_without_use)
4967         (sc_prohibit_getopt_without_use)
4968         (sc_prohibit_quotearg_without_use)
4969         (sc_prohibit_quote_without_use)
4970         (sc_prohibit_long_options_without_use)
4971         (sc_prohibit_inttostr_without_use)
4972         (sc_prohibit_ignore_value_without_use)
4973         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4974         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4975         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4976         (sc_prohibit_hash_pjw_without_use)
4977         (sc_prohibit_safe_read_without_use)
4978         (sc_prohibit_argmatch_without_use)
4979         (sc_prohibit_canonicalize_without_use)
4980         (sc_prohibit_root_dev_ino_without_use)
4981         (sc_prohibit_openat_without_use)
4982         (sc_prohibit_c_ctype_without_use)
4983         (sc_prohibit_signal_without_use)
4984         (sc_prohibit_stdio--_without_use)
4985         (sc_prohibit_stdio-safer_without_use)
4986         (sc_prohibit_strings_without_use)
4987         (sc_prohibit_intprops_without_use)
4988         (sc_prohibit_stddef_without_use)
4989         (sc_prohibit_xfreopen_without_use): Update clients.
4990
4991 2011-06-24  Jim Meyering  <meyering@redhat.com>
4992
4993         syntax-check: keep one maint.mk rule in sync with its header
4994         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4995         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4996         I prefer to avoid temporary files here, so use <(...), but that
4997         is not supported by /bin/sh, so...
4998         (SHELL): Define to /bin/bash.
4999
5000 2011-06-24  Eric Blake  <eblake@redhat.com>
5001
5002         maint.mk: update sc_prohibit_intprops_without_use
5003         * top/maint.mk (_intprops_names): Match recent changes.
5004
5005 2011-06-24  Bruno Haible  <bruno@clisp.org>
5006
5007         strerror-override: No-op tweak.
5008         * lib/strerror-override.h (strerror_override): Reorder conditions,
5009         for consistency with lib/strerror-override.c.
5010
5011 2011-06-23  Eric Blake  <eblake@redhat.com>
5012
5013         maint.mk: test further PATH_MAX issues
5014         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5015         (sc_prohibit_path_max_allocation): ...and also test alloca.
5016         Suggested by Jim Meyering.
5017
5018 2011-06-22  Eric Blake  <eblake@redhat.com>
5019
5020         maint.mk: add syntax-check to avoid char[PATH_MAX]
5021         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5022
5023         stat: be robust to PATH_MAX definition
5024         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5025         * modules/stat (Depends-on): Add verify.
5026
5027         link: work around IRIX bug
5028         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5029         * lib/link.c (rpl_link): Work around it.
5030         * tests/test-link.h (test_link): Enhance test.
5031         * doc/posix-functions/link.texi (link): Document the bug.
5032
5033         getopt: silence clang warning
5034         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5035         dereference.
5036         Reported by Gustavo Martin Domato.
5037
5038 2011-06-22  Jim Meyering  <meyering@redhat.com>
5039
5040         bootstrap: do not insert a blank line into each .gitignore file
5041         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5042
5043 2011-06-21  Eric Blake  <eblake@redhat.com>
5044
5045         perror: test for output mismatch
5046         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5047         perror on IRIX.
5048
5049         strerror_r: fix OpenBSD behavior on out-of-range
5050         * lib/strerror_r.c (strerror_r): Always use maximal string.
5051         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5052
5053         strerror_r: fix OpenBSD behavior on 0
5054         * lib/strerror-override.c (strerror_override): Also override 0
5055         when needed.
5056         * lib/strerror-override.h (strerror_override): Likewise.
5057         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5058         earlier.
5059         * lib/strerror_r.c (strerror_r): Likewise.
5060         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5061         behavior...
5062         (gl_FUNC_STRERROR_0): ...into new macro.
5063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5064         is overridden.
5065         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5066         * modules/strerror-override (Files): Add strerror.m4.
5067         (configure.ac): Also provide override for 0 when needed.
5068         * doc/posix-functions/strerror.texi (strerror): Document this.
5069         * doc/posix-functions/perror.texi (perror): Likewise.
5070
5071         perror: adjust array size
5072         * modules/perror (Depends-on): Add strerror-override.
5073         * lib/perror.c (perror): Use it to avoid magic number.
5074
5075         strerror-override: reduce size
5076         * lib/strerror-override.c (strerror_override): Use fewer lines.
5077
5078 2011-06-20  Bruno Haible  <bruno@clisp.org>
5079
5080         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5081         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5082
5083 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         alloca: port to compilers that can optimize like GCC 4.6.0
5086         * lib/alloca.c (find_stack_direction): New signature, taken from
5087         Autoconf git.  This works with GCC 4.6.0.  This code should never
5088         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5089         be used with other compilers that optimize as well as GCC 4.6.0 does.
5090         (alloca): Adjust to new signature.
5091         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5092         New macro, which patches Autoconf in a similar way.
5093
5094         c-stack: stop worrying about stack direction
5095         * lib/c-stack.c (find_stack_direction): Remove.
5096         (segv_handler): Don't worry about stack direction growth, as it's
5097         too much of a pain to configure this correctly, given how compilers
5098         are optimizing-away our stack-growth detection code.  Instead, assume
5099         that any access to just before or just after the stack is OK.
5100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5101         Don't require AC_FUNC_ALLOCA; no longer needed.
5102
5103 2011-06-20  Eric Blake  <eblake@redhat.com>
5104
5105         test-stat: don't allocate PATH_MAX bytes
5106         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5107         PATH_MAX-sized buffer.
5108         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5109         * modules/stat-tests (Depends-on): Likewise.
5110         * tests/test-fstatat.c (includes): Drop pathmax.h.
5111         * tests/test-stat.c (includes): Likewise.
5112         Reported by Bruno Haible.
5113
5114 2011-06-20  Bruno Haible  <bruno@clisp.org>
5115
5116         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5117         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5118         * lib/float.c: New file.
5119         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5120         REPLACE_FLOAT_LDBL.
5121         * modules/float (Files): Add lib/float.c.
5122         (configure.ac): Invoke AC_LIBOBJ.
5123         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5124
5125 2011-06-20  Bruno Haible  <bruno@clisp.org>
5126
5127         Tests for module 'float'.
5128         * modules/float-tests: New file.
5129         * tests/test-float.c: New file.
5130
5131 2011-06-19  Bruno Haible  <bruno@clisp.org>
5132
5133         isinf: Coding style.
5134         * lib/isinf.c: Use GNU coding style.
5135
5136 2011-06-19  Bruno Haible  <bruno@clisp.org>
5137
5138         linkat test: Avoid test failure on AIX 7.1.
5139         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5140         * tests/test-link.h (test_link): Likewise.
5141
5142 2011-06-19  Bruno Haible  <bruno@clisp.org>
5143
5144         pread test: Avoid test failure on OpenBSD 4.9.
5145         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5146
5147 2011-06-19  Bruno Haible  <bruno@clisp.org>
5148
5149         sprintf-posix: Fix test failure on AIX 7.1.
5150         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5151         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5152         on AIX.
5153         * doc/posix-functions/fprintf.texi: Likewise.
5154         * doc/posix-functions/printf.texi: Likewise.
5155         * doc/posix-functions/snprintf.texi: Likewise.
5156         * doc/posix-functions/sprintf.texi: Likewise.
5157         * doc/posix-functions/vdprintf.texi: Likewise.
5158         * doc/posix-functions/vfprintf.texi: Likewise.
5159         * doc/posix-functions/vprintf.texi: Likewise.
5160         * doc/posix-functions/vsnprintf.texi: Likewise.
5161         * doc/posix-functions/vsprintf.texi: Likewise.
5162
5163 2011-06-19  Bruno Haible  <bruno@clisp.org>
5164
5165         roundl-ieee: Fix test failure on AIX 7.1.
5166         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5167         * doc/posix-functions/roundl.texi: Mention problem with negative
5168         arguments.
5169
5170 2011-06-19  Bruno Haible  <bruno@clisp.org>
5171
5172         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5173         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5174         * doc/posix-functions/round.texi: Mention problem with negative
5175         arguments.
5176         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5177
5178 2011-06-19  Bruno Haible  <bruno@clisp.org>
5179
5180         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5181         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5182         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5183         * doc/posix-functions/roundf.texi: Mention problem with negative
5184         arguments.
5185         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5186
5187 2011-06-19  Bruno Haible  <bruno@clisp.org>
5188
5189         ceilf-ieee: Work around bug on MacOS X 10.5.
5190         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5191
5192         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5193         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5194         IEEE compliant, avoid compiler optimizations.
5195         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5196         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5197         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5198         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5199         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5200         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5202         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5203         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5205
5206 2011-06-19  Bruno Haible  <bruno@clisp.org>
5207
5208         ceilf-ieee: Work around bug on AIX 7.1.
5209         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5210         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5211
5212 2011-06-19  Bruno Haible  <bruno@clisp.org>
5213
5214         ceil-ieee: Work around bug on AIX 7.1.
5215         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5216         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5217
5218 2011-06-18  Bruno Haible  <bruno@clisp.org>
5219
5220         fsync test: Avoid test failure on MacOS X and AIX.
5221         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5222         EINVAL.
5223
5224 2011-06-18  Bruno Haible  <bruno@clisp.org>
5225
5226         openat, fdopendir tests: Fix link errors.
5227         * modules/openat-tests (Depends-on): Add progname.
5228         * modules/fdopendir-tests (Depends-on): Likewise.
5229         * tests/test-fchownat.c: Include progname.h.
5230         (main): Call set_program_name.
5231         * tests/test-fstatat.c: Include progname.h.
5232         (main): Call set_program_name.
5233         * tests/test-mkdirat.c: Include progname.h.
5234         (main): Call set_program_name.
5235         * tests/test-openat.c: Include progname.h.
5236         (main): Call set_program_name.
5237         * tests/test-unlinkat.c: Include progname.h.
5238         (main): Call set_program_name.
5239         * tests/test-fdopendir.c: Include progname.h.
5240         (main): Call set_program_name.
5241
5242 2011-06-18  Bruno Haible  <bruno@clisp.org>
5243
5244         Doc update.
5245         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5246         HP-UX.
5247         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5248
5249 2011-06-18  Bruno Haible  <bruno@clisp.org>
5250
5251         getcwd tests: Avoid compilation error on HP-UX 11.31.
5252         * modules/getcwd-tests (Depends-on): Add pathmax.
5253         * tests/test-getcwd.c: Include pathmax.h.
5254
5255 2011-06-18  Bruno Haible  <bruno@clisp.org>
5256
5257         isfinite, isinf: Fix link error on AIX 6 and 7.
5258         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5259         needed, also test the macro with a 'float' argument.
5260         * m4/isinf.m4 (gl_ISINF): Likewise.
5261
5262 2011-06-18  Bruno Haible  <bruno@clisp.org>
5263
5264         getloadavg: Don't clobber LIBS. Regression from previous commit.
5265         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5266         AC_CHECK_LIB from here...
5267         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5268         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5269         gl_func_getloadavg_done.
5270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5271
5272 2011-06-18  Bruno Haible  <bruno@clisp.org>
5273
5274         clean-temp: Improve documentation.
5275         * lib/clean-temp.h: Explain better how to use this module.
5276         Reported by John Darrington <john@darrington.wattle.id.au>.
5277
5278 2011-06-17  Bruno Haible  <bruno@clisp.org>
5279
5280         pread, pwrite: Avoid cc warning on AIX.
5281         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5282         (pwrite): Likewise.
5283
5284 2011-06-17  Bruno Haible  <bruno@clisp.org>
5285
5286         spawn-pipe tests: Fix link error.
5287         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5289
5290 2011-06-17  Bruno Haible  <bruno@clisp.org>
5291
5292         Tests: Remove unnecessary dependency.
5293         * modules/canonicalize-tests (Depends-on): Remove progname.
5294         * modules/chown-tests (Depends-on): Likewise.
5295         * modules/dirname-tests (Depends-on): Likewise.
5296         * modules/fdopendir-tests (Depends-on): Likewise.
5297         * modules/fdutimensat-tests (Depends-on): Likewise.
5298         * modules/hash-tests (Depends-on): Likewise.
5299         * modules/lchown-tests (Depends-on): Likewise.
5300         * modules/linkat-tests (Depends-on): Likewise.
5301         * modules/renameat-tests (Depends-on): Likewise.
5302         * modules/spawn-pipe-tests (Depends-on): Likewise.
5303         * modules/utimensat-tests (Depends-on): Likewise.
5304
5305 2011-06-17  Bruno Haible  <bruno@clisp.org>
5306
5307         spawn-pipe tests: Fix link error.
5308         * tests/test-spawn-pipe-child.c: Undefine fflush.
5309
5310 2011-06-17  Bruno Haible  <bruno@clisp.org>
5311
5312         Fix tests link errors.
5313         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5314         * modules/chown-tests (Makefile.am): Don't link test-chown with
5315         LIBINTL.
5316         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5317         LIBINTL.
5318         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5319         LIBINTL.
5320         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5321         LIBINTL.
5322
5323 2011-06-16  Bruno Haible  <bruno@clisp.org>
5324
5325         crypto/gc-sha1: Fix recent regression.
5326         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5327         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5328
5329         crypto/gc-md5: Fix recent regression.
5330         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5331
5332         crypto/gc-md4: Fix recent regression.
5333         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5334         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5335
5336         crypto/gc-arctwo: Fix recent regression.
5337         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5338         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5339
5340         crypto/gc-rijndael: Fix recent regression.
5341         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5342         (configure.ac): Invoke AC_LIBOBJ here.
5343         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5345
5346         crypto/gc-hmac-sha1: Fix recent regression.
5347         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5348         (configure.ac): Invoke AC_LIBOBJ here.
5349         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5351
5352         crypto/gc-hmac-md5: Fix recent regression.
5353         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5354         (configure.ac): Invoke AC_LIBOBJ here.
5355         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5357
5358         crypto/gc-des: Fix recent regression.
5359         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5360         (configure.ac): Invoke AC_LIBOBJ here.
5361         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5363
5364         crypto/gc-arcfour: Fix recent regression.
5365         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5366         (configure.ac): Invoke AC_LIBOBJ here.
5367         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5369
5370 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5371
5372         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5373         After the 2011-05-21 change, this macro requires
5374         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5375         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5376
5377 2011-06-16  Bruno Haible  <bruno@clisp.org>
5378
5379         fprintftime: Move AC_LIBOBJ invocations to module description.
5380         * m4/fprintftime.m4: Remove file.
5381         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5382         (configure.ac): Remove gl_FPRINTFTIME call.
5383         (Makefile.am): Augment lib_SOURCES.
5384         Reported by Jim Meyering.
5385
5386 2011-06-16  Bruno Haible  <bruno@clisp.org>
5387
5388         tmpfile-safer: Finish 2011-05-23 commit.
5389         * m4/stdio-safer.m4: Really remove file.
5390         Reported by Jim Meyering.
5391
5392 2011-06-16  Bruno Haible  <bruno@clisp.org>
5393
5394         syntax-check: Fix typo.
5395         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5396         printf-posix.m4.
5397         Reported by Jim Meyering.
5398
5399 2011-06-13  Jim Meyering  <meyering@redhat.com>
5400
5401         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5402         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5403
5404 2011-05-23  Bruno Haible  <bruno@clisp.org>
5405
5406         yesno: Move AC_LIBOBJ invocations to module description.
5407         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5408         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5409
5410 2011-05-23  Bruno Haible  <bruno@clisp.org>
5411
5412         xstrtol: Move AC_LIBOBJ invocations to module description.
5413         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5414         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5415
5416 2011-05-23  Bruno Haible  <bruno@clisp.org>
5417
5418         xstrtold: Move AC_LIBOBJ invocations to module description.
5419         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5420         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5421
5422 2011-05-23  Bruno Haible  <bruno@clisp.org>
5423
5424         xstrtod: Move AC_LIBOBJ invocations to module description.
5425         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5426         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5427
5428 2011-05-23  Bruno Haible  <bruno@clisp.org>
5429
5430         xnanosleep: Move AC_LIBOBJ invocations to module description.
5431         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5432         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5433
5434 2011-05-23  Bruno Haible  <bruno@clisp.org>
5435
5436         xgetcwd: Move AC_LIBOBJ invocations to module description.
5437         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5438         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5439
5440 2011-05-23  Bruno Haible  <bruno@clisp.org>
5441
5442         xalloc: Move AC_LIBOBJ invocations to module description.
5443         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5444         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5445
5446 2011-05-23  Bruno Haible  <bruno@clisp.org>
5447
5448         write-any-file: Move AC_LIBOBJ invocations to module description.
5449         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5450         invocation.
5451         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5452
5453 2011-05-23  Bruno Haible  <bruno@clisp.org>
5454
5455         utimens: Move AC_LIBOBJ invocations to module description.
5456         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5457         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5458
5459 2011-05-23  Bruno Haible  <bruno@clisp.org>
5460
5461         utimecmp: Move AC_LIBOBJ invocations to module description.
5462         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5463         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5464
5465 2011-05-23  Bruno Haible  <bruno@clisp.org>
5466
5467         userspec: Move AC_LIBOBJ invocations to module description.
5468         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5469         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5470
5471 2011-05-23  Bruno Haible  <bruno@clisp.org>
5472
5473         unlinkdir: Move AC_LIBOBJ invocations to module description.
5474         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5475         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5476
5477 2011-05-23  Bruno Haible  <bruno@clisp.org>
5478
5479         unistd-safer: Move AC_LIBOBJ invocations to module description.
5480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5481         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5482
5483 2011-05-23  Bruno Haible  <bruno@clisp.org>
5484
5485         tempname: Move AC_LIBOBJ invocations to module description.
5486         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5487         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5488
5489 2011-05-23  Bruno Haible  <bruno@clisp.org>
5490
5491         strftime: Move AC_LIBOBJ invocations to module description.
5492         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5493         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5494
5495 2011-05-23  Bruno Haible  <bruno@clisp.org>
5496
5497         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5498         * m4/stdlib-safer.m4: Remove file.
5499         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5500         (configure.ac): Remove gl_STDLIB_SAFER call.
5501         (Makefile.am): Augment lib_SOURCES.
5502
5503 2011-05-23  Bruno Haible  <bruno@clisp.org>
5504
5505         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5506         * m4/stdio-safer.m4: Remove file.
5507         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5508         (configure.ac): Remove gl_TMPFILE_SAFER call.
5509         (Makefile.am): Augment lib_SOURCES.
5510
5511 2011-05-23  Bruno Haible  <bruno@clisp.org>
5512
5513         popen-safer: Move AC_LIBOBJ invocations to module description.
5514         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5515         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5516         (configure.ac): Remove gl_POPEN_SAFER call.
5517         (Makefile.am): Augment lib_SOURCES.
5518
5519 2011-05-23  Bruno Haible  <bruno@clisp.org>
5520
5521         freopen-safer: Move AC_LIBOBJ invocations to module description.
5522         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5523         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5524         (configure.ac): Remove gl_FREOPEN_SAFER call.
5525         (Makefile.am): Augment lib_SOURCES.
5526
5527 2011-05-23  Bruno Haible  <bruno@clisp.org>
5528
5529         fopen-safer: Move AC_LIBOBJ invocations to module description.
5530         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5531         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5532         (configure.ac): Remove gl_FOPEN_SAFER call.
5533         (Makefile.am): Augment lib_SOURCES.
5534
5535 2011-05-23  Bruno Haible  <bruno@clisp.org>
5536
5537         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5538         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5539         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5540
5541 2011-05-23  Bruno Haible  <bruno@clisp.org>
5542
5543         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5544         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5545         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5546
5547 2011-05-23  Bruno Haible  <bruno@clisp.org>
5548
5549         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5550         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5551         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5552
5553 2011-05-23  Bruno Haible  <bruno@clisp.org>
5554
5555         settime: Move AC_LIBOBJ invocations to module description.
5556         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5557         * modules/settime (Makefile.am): Augment lib_SOURCES.
5558
5559 2011-05-23  Bruno Haible  <bruno@clisp.org>
5560
5561         savedir: Move AC_LIBOBJ invocations to module description.
5562         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5563         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5564
5565 2011-05-23  Bruno Haible  <bruno@clisp.org>
5566
5567         save-cwd: Move AC_LIBOBJ invocations to module description.
5568         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5569         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5570
5571 2011-05-23  Bruno Haible  <bruno@clisp.org>
5572
5573         same: Move AC_LIBOBJ invocations to module description.
5574         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5575         * modules/same (Makefile.am): Augment lib_SOURCES.
5576
5577 2011-05-23  Bruno Haible  <bruno@clisp.org>
5578
5579         safe-write: Move AC_LIBOBJ invocations to module description.
5580         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5581         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5582         instead of gl_SAFE_WRITE.
5583         (Makefile.am): Augment lib_SOURCES.
5584
5585 2011-05-23  Bruno Haible  <bruno@clisp.org>
5586
5587         safe-read: Move AC_LIBOBJ invocations to module description.
5588         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5589         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5590         of gl_SAFE_READ.
5591         (Makefile.am): Augment lib_SOURCES.
5592
5593 2011-05-23  Bruno Haible  <bruno@clisp.org>
5594
5595         safe-alloc: Move AC_LIBOBJ invocations to module description.
5596         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5597         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5598
5599 2011-05-23  Bruno Haible  <bruno@clisp.org>
5600
5601         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5602         * m4/rijndael.m4: Remove file.
5603         * modules/crypto/rijndael (Files): Remove it.
5604         (configure.ac): Remove gl_RIJNDAEL call.
5605         (Makefile.am): Augment lib_SOURCES.
5606
5607 2011-05-23  Bruno Haible  <bruno@clisp.org>
5608
5609         readtokens: Move AC_LIBOBJ invocations to module description.
5610         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5611         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5612
5613 2011-05-23  Bruno Haible  <bruno@clisp.org>
5614
5615         read-file: Move AC_LIBOBJ invocations to module description.
5616         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5617         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5618         of gl_FUNC_READ_FILE.
5619         (Makefile.am): Augment lib_SOURCES.
5620
5621 2011-05-23  Bruno Haible  <bruno@clisp.org>
5622
5623         quotearg: Move AC_LIBOBJ invocations to module description.
5624         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5625         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5626
5627 2011-05-23  Bruno Haible  <bruno@clisp.org>
5628
5629         quote: Move AC_LIBOBJ invocations to module description.
5630         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5631         * modules/quote (Makefile.am): Augment lib_SOURCES.
5632
5633 2011-05-23  Bruno Haible  <bruno@clisp.org>
5634
5635         posixver: Move AC_LIBOBJ invocations to module description.
5636         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5637         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5638
5639 2011-05-23  Bruno Haible  <bruno@clisp.org>
5640
5641         posixtm: Move AC_LIBOBJ invocations to module description.
5642         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5643         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5644
5645 2011-05-23  Bruno Haible  <bruno@clisp.org>
5646
5647         physmem: Move AC_LIBOBJ invocations to module description.
5648         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5649         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5650
5651 2011-05-23  Bruno Haible  <bruno@clisp.org>
5652
5653         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5654         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5655         invocation.
5656         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5657
5658 2011-05-23  Bruno Haible  <bruno@clisp.org>
5659
5660         mpsort: Move AC_LIBOBJ invocations to module description.
5661         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5662         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5663
5664 2011-05-23  Bruno Haible  <bruno@clisp.org>
5665
5666         modechange: Move AC_LIBOBJ invocations to module description.
5667         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5668         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5669
5670 2011-05-23  Bruno Haible  <bruno@clisp.org>
5671
5672         mkdir-p: Move AC_LIBOBJ invocations to module description.
5673         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5674         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5675
5676 2011-05-23  Bruno Haible  <bruno@clisp.org>
5677
5678         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5679         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5680         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5681
5682 2011-05-23  Bruno Haible  <bruno@clisp.org>
5683
5684         mgetgroups: Move AC_LIBOBJ invocations to module description.
5685         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5686         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5687
5688 2011-05-23  Bruno Haible  <bruno@clisp.org>
5689
5690         memxor: Move AC_LIBOBJ invocations to module description.
5691         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5692         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5693
5694 2011-05-23  Bruno Haible  <bruno@clisp.org>
5695
5696         memcoll: Move AC_LIBOBJ invocations to module description.
5697         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5698         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5699
5700 2011-05-23  Bruno Haible  <bruno@clisp.org>
5701
5702         memcasecmp: Move AC_LIBOBJ invocations to module description.
5703         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5704         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5705
5706 2011-05-23  Bruno Haible  <bruno@clisp.org>
5707
5708         crypto/md5: Move AC_LIBOBJ invocations to module description.
5709         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5710         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5711
5712 2011-05-23  Bruno Haible  <bruno@clisp.org>
5713
5714         crypto/md4: Move AC_LIBOBJ invocations to module description.
5715         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5716         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5717
5718 2011-05-23  Bruno Haible  <bruno@clisp.org>
5719
5720         crypto/md2: Move AC_LIBOBJ invocations to module description.
5721         * m4/md2.m4: Remove file.
5722         * modules/crypto/md2 (Files): Remove it.
5723         (configure.ac): Remove gl_MD2 call.
5724         (Makefile.am): Augment lib_SOURCES.
5725
5726 2011-05-23  Bruno Haible  <bruno@clisp.org>
5727
5728         long-options: Move AC_LIBOBJ invocations to module description.
5729         * m4/long-options.m4: Remove file.
5730         * modules/long-options (Files): Remove it.
5731         (configure.ac): Remove gl_LONG_OPTIONS call.
5732         (Makefile.am): Augment lib_SOURCES.
5733
5734 2011-05-23  Bruno Haible  <bruno@clisp.org>
5735
5736         i-ring: Move AC_LIBOBJ invocations to module description.
5737         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5738         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5739
5740 2011-05-23  Bruno Haible  <bruno@clisp.org>
5741
5742         idcache: Move AC_LIBOBJ invocations to module description.
5743         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5744         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5745
5746 2011-05-23  Bruno Haible  <bruno@clisp.org>
5747
5748         human: Move AC_LIBOBJ invocations to module description.
5749         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5750         * modules/human (Makefile.am): Augment lib_SOURCES.
5751
5752 2011-05-23  Bruno Haible  <bruno@clisp.org>
5753
5754         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5755         * m4/hmac-sha1.m4: Remove file.
5756         * modules/crypto/hmac-sha1 (Files): Remove it.
5757         (configure.ac): Remove gl_HMAC_SHA1 call.
5758         (Makefile.am): Augment lib_SOURCES.
5759
5760 2011-05-23  Bruno Haible  <bruno@clisp.org>
5761
5762         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5763         * m4/hmac-md5.m4: Remove file.
5764         * modules/crypto/hmac-md5 (Files): Remove it.
5765         (configure.ac): Remove gl_HMAC_MD5 call.
5766         (Makefile.am): Augment lib_SOURCES.
5767
5768 2011-05-23  Bruno Haible  <bruno@clisp.org>
5769
5770         hash: Move AC_LIBOBJ invocations to module description.
5771         * m4/hash.m4: Remove file.
5772         * modules/hash (Files): Remove it.
5773         (configure.ac): Remove gl_HASH call.
5774         (Makefile.am): Augment lib_SOURCES.
5775
5776 2011-05-23  Bruno Haible  <bruno@clisp.org>
5777
5778         hard-locale: Move AC_LIBOBJ invocations to module description.
5779         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5780         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5781
5782 2011-05-23  Bruno Haible  <bruno@clisp.org>
5783
5784         getugroups: Move AC_LIBOBJ invocations to module description.
5785         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5786         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5787
5788 2011-05-23  Bruno Haible  <bruno@clisp.org>
5789
5790         gettime: Move AC_LIBOBJ invocations to module description.
5791         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5792         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5793
5794 2011-05-23  Bruno Haible  <bruno@clisp.org>
5795
5796         getndelim2: Move AC_LIBOBJ invocations to module description.
5797         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5798         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5799
5800 2011-05-23  Bruno Haible  <bruno@clisp.org>
5801
5802         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5803         * m4/gc-pbkdf2-sha1.m4: Remove file.
5804         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5805         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5806         (Makefile.am): Augment lib_SOURCES.
5807
5808 2011-05-23  Bruno Haible  <bruno@clisp.org>
5809
5810         fts: Move AC_LIBOBJ invocations to module description.
5811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5812         * modules/fts (configure.ac): ... to here.
5813
5814 2011-05-23  Bruno Haible  <bruno@clisp.org>
5815
5816         file-type: Move AC_LIBOBJ invocations to module description.
5817         * m4/file-type.m4: Remove file.
5818         * modules/file-type (Files): Remove it.
5819         (configure.ac): Remove gl_FILE_TYPE call.
5820         (Makefile.am): Augment lib_SOURCES.
5821
5822 2011-05-23  Bruno Haible  <bruno@clisp.org>
5823
5824         filenamecat*: Respect rules for use of AC_LIBOBJ.
5825         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5826         Remove AC_LIBOBJ invocation.
5827         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5828         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         filemode: Move AC_LIBOBJ invocations to module description.
5833         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5834         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5835
5836 2011-05-23  Bruno Haible  <bruno@clisp.org>
5837
5838         openat-safer: Move AC_LIBOBJ invocations to module description.
5839         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5840         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5841
5842 2011-05-23  Bruno Haible  <bruno@clisp.org>
5843
5844         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5846         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5847
5848 2011-05-23  Bruno Haible  <bruno@clisp.org>
5849
5850         exclude: Move AC_LIBOBJ invocations to module description.
5851         * m4/exclude.m4: Remove file.
5852         * modules/exclude (Files): Remove it.
5853         (configure.ac): Remove gl_EXCLUDE call.
5854         (Makefile.am): Augment lib_SOURCES.
5855
5856 2011-05-23  Bruno Haible  <bruno@clisp.org>
5857
5858         dirname*: Respect rules for use of AC_LIBOBJ.
5859         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5860         invocations.
5861         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5862         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5863
5864 2011-05-23  Bruno Haible  <bruno@clisp.org>
5865
5866         dirent-safer: Move AC_LIBOBJ invocations to module description.
5867         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5868         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5869
5870 2011-05-23  Bruno Haible  <bruno@clisp.org>
5871
5872         crypto/des: Move AC_LIBOBJ invocations to module description.
5873         * m4/des.m4: Remove file.
5874         * modules/crypto/des (Files): Remove it.
5875         (configure.ac): Remove gl_DES call.
5876         (Makefile.am): Augment lib_SOURCES.
5877
5878 2011-05-23  Bruno Haible  <bruno@clisp.org>
5879
5880         cycle-check: Move AC_LIBOBJ invocations to module description.
5881         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5882         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5883
5884 2011-05-23  Bruno Haible  <bruno@clisp.org>
5885
5886         c-strtold: Move AC_LIBOBJ invocations to module description.
5887         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5888         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5889
5890 2011-05-23  Bruno Haible  <bruno@clisp.org>
5891
5892         c-strtod: Move AC_LIBOBJ invocations to module description.
5893         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5894         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5895
5896 2011-05-23  Bruno Haible  <bruno@clisp.org>
5897
5898         crc: Move AC_LIBOBJ invocations to module description.
5899         * m4/crc.m4: Remove file.
5900         * modules/crc (Files): Remove it.
5901         (configure.ac): Remove gl_CRC call.
5902         (Makefile.am): Augment lib_SOURCES.
5903
5904 2011-05-23  Bruno Haible  <bruno@clisp.org>
5905
5906         close-stream: Move AC_LIBOBJ invocations to module description.
5907         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5908         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5909
5910 2011-05-23  Bruno Haible  <bruno@clisp.org>
5911
5912         closeout: Move AC_LIBOBJ invocations to module description.
5913         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5914         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5915
5916 2011-05-23  Bruno Haible  <bruno@clisp.org>
5917
5918         closein: Move AC_LIBOBJ invocations to module description.
5919         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5920         * modules/closein (Makefile.am): Augment lib_SOURCES.
5921
5922 2011-05-23  Bruno Haible  <bruno@clisp.org>
5923
5924         cloexec: Move AC_LIBOBJ invocations to module description.
5925         * m4/cloexec.m4: Remove file.
5926         * modules/cloexec (Files): Remove it.
5927         (configure.ac): Remove gl_CLOEXEC call.
5928         (Makefile.am): Augment lib_SOURCES.
5929
5930 2011-05-23  Bruno Haible  <bruno@clisp.org>
5931
5932         check-version: Move AC_LIBOBJ invocations to module description.
5933         * m4/check-version.m4: Remove file.
5934         * modules/check-version (Files): Remove it.
5935         (configure.ac): Remove gl_CHECK_VERSION call.
5936         (Makefile.am): Augment lib_SOURCES.
5937
5938 2011-05-23  Bruno Haible  <bruno@clisp.org>
5939
5940         chdir-safer: Move AC_LIBOBJ invocations to module description.
5941         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5942         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5943
5944 2011-05-23  Bruno Haible  <bruno@clisp.org>
5945
5946         canonicalize: Move AC_LIBOBJ invocations to module description.
5947         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5948         AC_LIBOBJ invocation.
5949         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5950
5951 2011-05-23  Bruno Haible  <bruno@clisp.org>
5952
5953         canon-host: Move AC_LIBOBJ invocations to module description.
5954         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5955         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5956         instead of gl_CANON_HOST.
5957         (Makefile.am): Augment lib_SOURCES.
5958
5959 2011-05-23  Bruno Haible  <bruno@clisp.org>
5960
5961         backupfile: Move AC_LIBOBJ invocations to module description.
5962         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5963         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5964
5965 2011-05-23  Bruno Haible  <bruno@clisp.org>
5966
5967         argmatch: Move AC_LIBOBJ invocations to module description.
5968         * m4/argmatch.m4: Remove file.
5969         * modules/argmatch (Files): Remove it.
5970         (configure.ac): Remove gl_ARGMATCH call.
5971         (Makefile.am): Augment lib_SOURCES.
5972
5973 2011-05-23  Bruno Haible  <bruno@clisp.org>
5974
5975         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5976         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5977         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5978
5979 2011-05-23  Bruno Haible  <bruno@clisp.org>
5980
5981         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5982         * m4/arcfour.m4: Remove file.
5983         * modules/crypto/arcfour (Files): Remove it.
5984         (configure.ac): Remove gl_ARCFOUR call.
5985         (Makefile.am): Augment lib_SOURCES.
5986
5987 2011-05-22  Bruno Haible  <bruno@clisp.org>
5988
5989         write: Move AC_LIBOBJ invocations to module description.
5990         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5991         * modules/write (configure.ac): ... to here.
5992
5993 2011-05-22  Bruno Haible  <bruno@clisp.org>
5994
5995         wmemset: Move AC_LIBOBJ invocations to module description.
5996         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5997         here...
5998         * modules/wmemset (configure.ac): ... to here.
5999
6000 2011-05-22  Bruno Haible  <bruno@clisp.org>
6001
6002         wmemmove: Move AC_LIBOBJ invocations to module description.
6003         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6004         here...
6005         * modules/wmemmove (configure.ac): ... to here.
6006
6007 2011-05-22  Bruno Haible  <bruno@clisp.org>
6008
6009         wmemcpy: Move AC_LIBOBJ invocations to module description.
6010         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6011         here...
6012         * modules/wmemcpy (configure.ac): ... to here.
6013
6014 2011-05-22  Bruno Haible  <bruno@clisp.org>
6015
6016         wmemcmp: Move AC_LIBOBJ invocations to module description.
6017         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6018         here...
6019         * modules/wmemcmp (configure.ac): ... to here.
6020
6021 2011-05-22  Bruno Haible  <bruno@clisp.org>
6022
6023         wmemchr: Move AC_LIBOBJ invocations to module description.
6024         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6025         here...
6026         * modules/wmemchr (configure.ac): ... to here.
6027
6028 2011-05-22  Bruno Haible  <bruno@clisp.org>
6029
6030         wcswidth: Move AC_LIBOBJ invocations to module description.
6031         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6032         here...
6033         * modules/wcswidth (configure.ac): ... to here.
6034
6035 2011-05-22  Bruno Haible  <bruno@clisp.org>
6036
6037         wcwidth: Respect rules for use of AC_LIBOBJ.
6038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6039         invocation from here...
6040         * modules/wcwidth (configure.ac): ... to here.
6041         (Depends-on): Update conditions.
6042
6043 2011-05-22  Bruno Haible  <bruno@clisp.org>
6044
6045         wctype: Move AC_LIBOBJ invocations to module description.
6046         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6047         invocation from here...
6048         * modules/wctype (configure.ac): ... to here.
6049         (Depends-on): Update conditions.
6050
6051 2011-05-22  Bruno Haible  <bruno@clisp.org>
6052
6053         wctrans: Move AC_LIBOBJ invocations to module description.
6054         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6055         invocation from here...
6056         * modules/wctrans (configure.ac): ... to here.
6057
6058 2011-05-22  Bruno Haible  <bruno@clisp.org>
6059
6060         wctomb: Move AC_LIBOBJ invocations to module description.
6061         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6062         invocations from here...
6063         * modules/wctomb (configure.ac): ... to here.
6064
6065 2011-05-22  Bruno Haible  <bruno@clisp.org>
6066
6067         wctob: Move AC_LIBOBJ invocations to module description.
6068         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6069         gl_PREREQ_WCTOB invocations from here...
6070         * modules/wctob (configure.ac): ... to here.
6071         (Depends-on): Update conditions.
6072
6073 2011-05-22  Bruno Haible  <bruno@clisp.org>
6074
6075         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6076         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6077         here...
6078         * modules/wcsxfrm (configure.ac): ... to here.
6079
6080 2011-05-22  Bruno Haible  <bruno@clisp.org>
6081
6082         wcstok: Move AC_LIBOBJ invocations to module description.
6083         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6084         * modules/wcstok (configure.ac): ... to here.
6085
6086 2011-05-22  Bruno Haible  <bruno@clisp.org>
6087
6088         wcsstr: Move AC_LIBOBJ invocations to module description.
6089         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6090         * modules/wcsstr (configure.ac): ... to here.
6091
6092 2011-05-22  Bruno Haible  <bruno@clisp.org>
6093
6094         wcsspn: Move AC_LIBOBJ invocations to module description.
6095         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6096         * modules/wcsspn (configure.ac): ... to here.
6097
6098 2011-05-22  Bruno Haible  <bruno@clisp.org>
6099
6100         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6101         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6102         gl_PREREQ_WCSRTOMBS invocations from here...
6103         * modules/wcsrtombs (configure.ac): ... to here.
6104
6105 2011-05-22  Bruno Haible  <bruno@clisp.org>
6106
6107         wcsrchr: Move AC_LIBOBJ invocations to module description.
6108         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6109         here...
6110         * modules/wcsrchr (configure.ac): ... to here.
6111
6112 2011-05-22  Bruno Haible  <bruno@clisp.org>
6113
6114         wcspbrk: Move AC_LIBOBJ invocations to module description.
6115         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6116         here...
6117         * modules/wcspbrk (configure.ac): ... to here.
6118
6119 2011-05-22  Bruno Haible  <bruno@clisp.org>
6120
6121         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6122         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6123         gl_PREREQ_WCSNRTOMBS invocations from here...
6124         * modules/wcsnrtombs (configure.ac): ... to here.
6125
6126 2011-05-22  Bruno Haible  <bruno@clisp.org>
6127
6128         wcsnlen: Move AC_LIBOBJ invocations to module description.
6129         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6130         here...
6131         * modules/wcsnlen (configure.ac): ... to here.
6132
6133 2011-05-22  Bruno Haible  <bruno@clisp.org>
6134
6135         wcsncpy: Move AC_LIBOBJ invocations to module description.
6136         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6137         here...
6138         * modules/wcsncpy (configure.ac): ... to here.
6139
6140 2011-05-22  Bruno Haible  <bruno@clisp.org>
6141
6142         wcsncmp: Move AC_LIBOBJ invocations to module description.
6143         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6144         here...
6145         * modules/wcsncmp (configure.ac): ... to here.
6146
6147 2011-05-22  Bruno Haible  <bruno@clisp.org>
6148
6149         wcsncat: Move AC_LIBOBJ invocations to module description.
6150         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6151         here...
6152         * modules/wcsncat (configure.ac): ... to here.
6153
6154 2011-05-22  Bruno Haible  <bruno@clisp.org>
6155
6156         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6157         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6158         from here...
6159         * modules/wcsncasecmp (configure.ac): ... to here.
6160
6161 2011-05-22  Bruno Haible  <bruno@clisp.org>
6162
6163         wcslen: Move AC_LIBOBJ invocations to module description.
6164         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6165         * modules/wcslen (configure.ac): ... to here.
6166
6167 2011-05-22  Bruno Haible  <bruno@clisp.org>
6168
6169         wcsdup: Move AC_LIBOBJ invocations to module description.
6170         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6171         * modules/wcsdup (configure.ac): ... to here.
6172
6173 2011-05-22  Bruno Haible  <bruno@clisp.org>
6174
6175         wcscspn: Move AC_LIBOBJ invocations to module description.
6176         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6177         here...
6178         * modules/wcscspn (configure.ac): ... to here.
6179
6180 2011-05-22  Bruno Haible  <bruno@clisp.org>
6181
6182         wcscpy: Move AC_LIBOBJ invocations to module description.
6183         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6184         * modules/wcscpy (configure.ac): ... to here.
6185
6186 2011-05-22  Bruno Haible  <bruno@clisp.org>
6187
6188         wcscoll: Move AC_LIBOBJ invocations to module description.
6189         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6190         here...
6191         * modules/wcscoll (configure.ac): ... to here.
6192
6193 2011-05-22  Bruno Haible  <bruno@clisp.org>
6194
6195         wcscmp: Move AC_LIBOBJ invocations to module description.
6196         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6197         * modules/wcscmp (configure.ac): ... to here.
6198
6199 2011-05-22  Bruno Haible  <bruno@clisp.org>
6200
6201         wcschr: Move AC_LIBOBJ invocations to module description.
6202         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6203         * modules/wcschr (configure.ac): ... to here.
6204
6205 2011-05-22  Bruno Haible  <bruno@clisp.org>
6206
6207         wcscat: Move AC_LIBOBJ invocations to module description.
6208         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6209         * modules/wcscat (configure.ac): ... to here.
6210
6211 2011-05-22  Bruno Haible  <bruno@clisp.org>
6212
6213         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6214         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6215         here...
6216         * modules/wcscasecmp (configure.ac): ... to here.
6217
6218 2011-05-22  Bruno Haible  <bruno@clisp.org>
6219
6220         wcrtomb: Move AC_LIBOBJ invocations to module description.
6221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6222         invocations from here...
6223         * modules/wcrtomb (configure.ac): ... to here.
6224
6225 2011-05-22  Bruno Haible  <bruno@clisp.org>
6226
6227         wcpncpy: Move AC_LIBOBJ invocations to module description.
6228         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6229         here...
6230         * modules/wcpncpy (configure.ac): ... to here.
6231
6232 2011-05-22  Bruno Haible  <bruno@clisp.org>
6233
6234         wcpcpy: Move AC_LIBOBJ invocations to module description.
6235         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6236         * modules/wcpcpy (configure.ac): ... to here.
6237
6238 2011-05-22  Bruno Haible  <bruno@clisp.org>
6239
6240         waitpid: Move AC_LIBOBJ invocations to module description.
6241         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6242         invocation from here...
6243         * modules/waitpid (configure.ac): ... to here.
6244
6245 2011-05-22  Bruno Haible  <bruno@clisp.org>
6246
6247         utimensat: Move AC_LIBOBJ invocations to module description.
6248         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6249         here...
6250         * modules/utimensat (configure.ac): ... to here.
6251
6252 2011-05-22  Bruno Haible  <bruno@clisp.org>
6253
6254         usleep: Move AC_LIBOBJ invocations to module description.
6255         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6256         here...
6257         * modules/usleep (configure.ac): ... to here.
6258
6259 2011-05-22  Bruno Haible  <bruno@clisp.org>
6260
6261         unlockpt: Move AC_LIBOBJ invocations to module description.
6262         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6263         gl_PREREQ_UNLOCKPT invocations from here...
6264         * modules/unlockpt (configure.ac): ... to here.
6265
6266 2011-05-22  Bruno Haible  <bruno@clisp.org>
6267
6268         unlink: Respect rules for use of AC_LIBOBJ.
6269         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6270         * modules/unlink (configure.ac): ... to here.
6271
6272 2011-05-22  Bruno Haible  <bruno@clisp.org>
6273
6274         uname: Move AC_LIBOBJ invocations to module description.
6275         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6277         here...
6278         * modules/uname (configure.ac): ... to here.
6279
6280 2011-05-22  Bruno Haible  <bruno@clisp.org>
6281
6282         ttyname_r: Move AC_LIBOBJ invocations to module description.
6283         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6284         gl_PREREQ_TTYNAME_R invocations from here...
6285         * modules/ttyname_r (configure.ac): ... to here.
6286
6287 2011-05-22  Bruno Haible  <bruno@clisp.org>
6288
6289         tsearch: Move AC_LIBOBJ invocations to module description.
6290         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6291         invocations from here...
6292         * modules/tsearch (configure.ac): ... to here.
6293
6294 2011-05-22  Bruno Haible  <bruno@clisp.org>
6295
6296         towctrans: Move AC_LIBOBJ invocations to module description.
6297         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6298         AC_LIBOBJ invocation from here...
6299         * modules/towctrans (configure.ac): ... to here.
6300
6301 2011-05-22  Bruno Haible  <bruno@clisp.org>
6302
6303         tmpfile: Move AC_LIBOBJ invocations to module description.
6304         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6305         invocations from here...
6306         * modules/tmpfile (configure.ac): ... to here.
6307
6308 2011-05-22  Bruno Haible  <bruno@clisp.org>
6309
6310         times: Move AC_LIBOBJ invocations to module description.
6311         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6312         * modules/times (configure.ac): ... to here.
6313
6314 2011-05-22  Bruno Haible  <bruno@clisp.org>
6315
6316         time_r: Move AC_LIBOBJ invocations to module description.
6317         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6318         invocations from here...
6319         * modules/time_r (configure.ac): ... to here.
6320
6321 2011-05-22  Bruno Haible  <bruno@clisp.org>
6322
6323         timegm: Move AC_LIBOBJ invocations to module description.
6324         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6325         invocations from here...
6326         * modules/timegm (configure.ac): ... to here.
6327
6328 2011-05-22  Bruno Haible  <bruno@clisp.org>
6329
6330         tcgetsid: Move AC_LIBOBJ invocations to module description.
6331         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6332         and gl_PREREQ_TCGETSID invocations from here...
6333         * modules/tcgetsid (configure.ac): ... to here.
6334         (Depends-on): Update conditions.
6335
6336 2011-05-22  Bruno Haible  <bruno@clisp.org>
6337
6338         symlinkat: Move AC_LIBOBJ invocations to module description.
6339         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6340         here...
6341         * modules/symlinkat (configure.ac): ... to here.
6342
6343 2011-05-22  Bruno Haible  <bruno@clisp.org>
6344
6345         symlink: Move AC_LIBOBJ invocations to module description.
6346         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6347         here...
6348         * modules/symlink (configure.ac): ... to here.
6349
6350 2011-05-22  Bruno Haible  <bruno@clisp.org>
6351
6352         strverscmp: Move AC_LIBOBJ invocations to module description.
6353         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6355         from here...
6356         * modules/strverscmp (configure.ac): ... to here.
6357
6358 2011-05-22  Bruno Haible  <bruno@clisp.org>
6359
6360         strtok_r: Move AC_LIBOBJ invocations to module description.
6361         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6362         and gl_PREREQ_STRTOK_R invocations from here...
6363         * modules/strtok_r (configure.ac): ... to here.
6364         (Depends-on): Update conditions.
6365
6366 2011-05-22  Bruno Haible  <bruno@clisp.org>
6367
6368         strtoumax: Move AC_LIBOBJ invocations to module description.
6369         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6371         from here...
6372         * modules/strtoumax (configure.ac): ... to here.
6373
6374 2011-05-22  Bruno Haible  <bruno@clisp.org>
6375
6376         strtoimax: Move AC_LIBOBJ invocations to module description.
6377         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6379         from here...
6380         * modules/strtoimax (configure.ac): ... to here.
6381
6382 2011-05-22  Bruno Haible  <bruno@clisp.org>
6383
6384         strtoull: Move AC_LIBOBJ invocations to module description.
6385         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6386         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6387         from here...
6388         * modules/strtoull (configure.ac): ... to here.
6389
6390 2011-05-22  Bruno Haible  <bruno@clisp.org>
6391
6392         strtoll: Move AC_LIBOBJ invocations to module description.
6393         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6395         here...
6396         * modules/strtoll (configure.ac): ... to here.
6397
6398 2011-05-22  Bruno Haible  <bruno@clisp.org>
6399
6400         strtoul: Move AC_LIBOBJ invocations to module description.
6401         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6402         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6403         * modules/strtoul (configure.ac): ... to here.
6404
6405 2011-05-22  Bruno Haible  <bruno@clisp.org>
6406
6407         strtol: Move AC_LIBOBJ invocations to module description.
6408         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6409         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6410         * modules/strtol (configure.ac): ... to here.
6411
6412 2011-05-22  Bruno Haible  <bruno@clisp.org>
6413
6414         strtod: Move AC_LIBOBJ invocations to module description.
6415         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6416         invocations from here...
6417         * modules/strtod (configure.ac): ... to here.
6418
6419 2011-05-22  Bruno Haible  <bruno@clisp.org>
6420
6421         strstr*: Move AC_LIBOBJ invocations to module description.
6422         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6423         invocations from here...
6424         * modules/strstr-simple (configure.ac): ... to here.
6425         * modules/strstr (configure.ac): ... and here.
6426
6427 2011-05-22  Bruno Haible  <bruno@clisp.org>
6428
6429         strsignal: Move AC_LIBOBJ invocations to module description.
6430         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6431         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6432         * modules/strsignal (configure.ac): ... to here.
6433         (Depends-on): Update conditions.
6434
6435 2011-05-22  Bruno Haible  <bruno@clisp.org>
6436
6437         strsep: Move AC_LIBOBJ invocations to module description.
6438         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6440         here...
6441         * modules/strsep (configure.ac): ... to here.
6442
6443 2011-05-22  Bruno Haible  <bruno@clisp.org>
6444
6445         strptime: Move AC_LIBOBJ invocations to module description.
6446         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6447         gl_PREREQ_STRPTIME invocations from here...
6448         * modules/strptime (configure.ac): ... to here.
6449
6450 2011-05-22  Bruno Haible  <bruno@clisp.org>
6451
6452         strpbrk: Move AC_LIBOBJ invocations to module description.
6453         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6455         here...
6456         * modules/strpbrk (configure.ac): ... to here.
6457
6458 2011-05-22  Bruno Haible  <bruno@clisp.org>
6459
6460         strnlen: Move AC_LIBOBJ invocations to module description.
6461         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6462         invocations from here...
6463         * modules/strnlen (configure.ac): ... to here.
6464
6465 2011-05-22  Bruno Haible  <bruno@clisp.org>
6466
6467         strndup: Move AC_LIBOBJ invocations to module description.
6468         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6469         invocations from here...
6470         * modules/strndup (configure.ac): ... to here.
6471         (Depends-on): Update conditions.
6472
6473 2011-05-22  Bruno Haible  <bruno@clisp.org>
6474
6475         strncat: Move AC_LIBOBJ invocations to module description.
6476         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6477         invocations from here...
6478         * modules/strncat (configure.ac): ... to here.
6479
6480 2011-05-22  Bruno Haible  <bruno@clisp.org>
6481
6482         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6483         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6484         invocations from here...
6485         * modules/strdup (configure.ac): ... to here.
6486         * modules/strdup-posix (configure.ac): ... and here.
6487
6488 2011-05-22  Bruno Haible  <bruno@clisp.org>
6489
6490         strcspn: Move AC_LIBOBJ invocations to module description.
6491         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6492         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6493         here...
6494         * modules/strcspn (configure.ac): ... to here.
6495
6496 2011-05-22  Bruno Haible  <bruno@clisp.org>
6497
6498         strchrnul: Move AC_LIBOBJ invocations to module description.
6499         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6500         gl_PREREQ_STRCHRNUL invocations from here...
6501         * modules/strchrnul (configure.ac): ... to here.
6502
6503 2011-05-22  Bruno Haible  <bruno@clisp.org>
6504
6505         strcasestr*: Move AC_LIBOBJ invocations to module description.
6506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6507         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6508         * modules/strcasestr-simple (configure.ac): ... to here.
6509         * modules/strcasestr (configure.ac): ... and here.
6510
6511 2011-05-22  Bruno Haible  <bruno@clisp.org>
6512
6513         strcase: Move AC_LIBOBJ invocations to module description.
6514         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6515         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6516         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6517         gl_PREREQ_STRNCASECMP invocations from here...
6518         * modules/strcase (configure.ac): ... to here.
6519
6520 2011-05-22  Bruno Haible  <bruno@clisp.org>
6521
6522         stpncpy: Move AC_LIBOBJ invocations to module description.
6523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6524         here...
6525         * modules/stpncpy (configure.ac): ... to here.
6526
6527 2011-05-22  Bruno Haible  <bruno@clisp.org>
6528
6529         stpcpy: Move AC_LIBOBJ invocations to module description.
6530         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6532         here...
6533         * modules/stpcpy (configure.ac): ... to here.
6534
6535 2011-05-21  Bruno Haible  <bruno@clisp.org>
6536
6537         stat: Move AC_LIBOBJ invocations to module description.
6538         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6539         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6540         here...
6541         * modules/stat (configure.ac): ... to here.
6542
6543 2011-05-21  Bruno Haible  <bruno@clisp.org>
6544
6545         sleep: Move AC_LIBOBJ invocations to module description.
6546         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6547         * modules/sleep (configure.ac): ... to here.
6548
6549 2011-05-21  Bruno Haible  <bruno@clisp.org>
6550
6551         signbit: Move AC_LIBOBJ invocations to module description.
6552         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6553         * modules/signbit (configure.ac): ... to here.
6554
6555 2011-05-21  Bruno Haible  <bruno@clisp.org>
6556
6557         sigprocmask: Move AC_LIBOBJ invocations to module description.
6558         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6559         gl_PREREQ_SIGPROMASK invocations from here...
6560         * modules/sigprocmask (configure.ac): ... to here.
6561
6562 2011-05-21  Bruno Haible  <bruno@clisp.org>
6563
6564         sigaction: Move AC_LIBOBJ invocations to module description.
6565         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6566         gl_PREREQ_SIGACTION invocations from here...
6567         * modules/sigaction (configure.ac): ... to here.
6568
6569 2011-05-21  Bruno Haible  <bruno@clisp.org>
6570
6571         sig2str: Move AC_LIBOBJ invocations to module description.
6572         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6574         here...
6575         * modules/sig2str (configure.ac): ... to here.
6576
6577 2011-05-21  Bruno Haible  <bruno@clisp.org>
6578
6579         setlocale: Move AC_LIBOBJ invocations to module description.
6580         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6581         gl_PREREQ_SETLOCALE invocations from here...
6582         * modules/setlocale (configure.ac): ... to here.
6583
6584 2011-05-21  Bruno Haible  <bruno@clisp.org>
6585
6586         unsetenv: Move AC_LIBOBJ invocations to module description.
6587         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6588         and gl_PREREQ_UNSETENV invocations from here...
6589         * modules/unsetenv (configure.ac): ... to here.
6590         (Depends-on): Update.
6591
6592 2011-05-21  Bruno Haible  <bruno@clisp.org>
6593
6594         setenv: Move AC_LIBOBJ invocations to module description.
6595         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6596         here...
6597         * modules/setenv (configure.ac): ... to here.
6598
6599 2011-05-21  Bruno Haible  <bruno@clisp.org>
6600
6601         selinux-h: Move AC_LIBOBJ invocations to module description.
6602         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6603         AC_LIBOBJ invocation from here...
6604         * modules/selinux-h (configure.ac): ... to here.
6605
6606 2011-05-21  Bruno Haible  <bruno@clisp.org>
6607
6608         select: Respect rules for use of AC_LIBOBJ.
6609         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6610         here...
6611         * modules/select (configure.ac): ... to here.
6612
6613 2011-05-21  Bruno Haible  <bruno@clisp.org>
6614
6615         scandir: Move AC_LIBOBJ invocations to module description.
6616         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6617         invocations from here...
6618         * modules/scandir (configure.ac): ... to here.
6619
6620 2011-05-21  Bruno Haible  <bruno@clisp.org>
6621
6622         rpmatch: Move AC_LIBOBJ invocations to module description.
6623         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6625         here...
6626         * modules/rpmatch (configure.ac): ... to here.
6627
6628 2011-05-21  Bruno Haible  <bruno@clisp.org>
6629
6630         rmdir: Respect rules for use of AC_LIBOBJ.
6631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6632         * modules/rmdir (configure.ac): ... to here.
6633
6634 2011-05-21  Bruno Haible  <bruno@clisp.org>
6635
6636         renameat: Move AC_LIBOBJ invocations to module description.
6637         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6638         here...
6639         * modules/renameat (configure.ac): ... to here.
6640
6641 2011-05-21  Bruno Haible  <bruno@clisp.org>
6642
6643         rename: Respect rules for use of AC_LIBOBJ.
6644         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6645         here...
6646         * modules/rename (configure.ac): ... to here.
6647
6648 2011-05-21  Bruno Haible  <bruno@clisp.org>
6649
6650         remove: Move AC_LIBOBJ invocations to module description.
6651         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6652         here...
6653         * modules/remove (configure.ac): ... to here.
6654
6655 2011-05-21  Bruno Haible  <bruno@clisp.org>
6656
6657         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6658         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6659         macro.
6660         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6661         * modules/relocatable-lib (configure.ac): ... to here.
6662         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6663         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6664
6665 2011-05-21  Bruno Haible  <bruno@clisp.org>
6666
6667         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6668         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6669         here...
6670         * modules/relocatable-prog (configure.ac): ... to here.
6671
6672 2011-05-21  Bruno Haible  <bruno@clisp.org>
6673
6674         regex: Move AC_LIBOBJ invocations to module description.
6675         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6676         invocations from here...
6677         * modules/regex (configure.ac): ... to here.
6678
6679 2011-05-21  Bruno Haible  <bruno@clisp.org>
6680
6681         realloc-*: Move AC_LIBOBJ invocations to module description.
6682         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6683         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6684         AC_LIBOBJ invocations from here...
6685         * modules/realloc-gnu (configure.ac): ... to here.
6686         * modules/realloc-posix (configure.ac): ... and here.
6687
6688 2011-05-21  Bruno Haible  <bruno@clisp.org>
6689
6690         readutmp: Move AC_LIBOBJ invocations to module description.
6691         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6692         * modules/readutmp (configure.ac): ... to here.
6693
6694 2011-05-21  Bruno Haible  <bruno@clisp.org>
6695
6696         readlinkat: Move AC_LIBOBJ invocations to module description.
6697         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6698         here...
6699         * modules/readlinkat (configure.ac): ... to here.
6700
6701 2011-05-21  Bruno Haible  <bruno@clisp.org>
6702
6703         readlink: Move AC_LIBOBJ invocations to module description.
6704         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6705         gl_PREREQ_READLINK invocations from here...
6706         * modules/readlink (configure.ac): ... to here.
6707
6708 2011-05-21  Bruno Haible  <bruno@clisp.org>
6709
6710         readline: Move AC_LIBOBJ invocations to module description.
6711         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6712         gl_PREREQ_READLINE invocations from here...
6713         * modules/readline (configure.ac): ... to here.
6714
6715 2011-05-21  Bruno Haible  <bruno@clisp.org>
6716
6717         read: Move AC_LIBOBJ invocations to module description.
6718         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6719         * modules/read (configure.ac): ... to here.
6720
6721 2011-05-21  Bruno Haible  <bruno@clisp.org>
6722
6723         rawmemchr: Move AC_LIBOBJ invocations to module description.
6724         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6726         from here...
6727         * modules/rawmemchr (configure.ac): ... to here.
6728
6729 2011-05-21  Bruno Haible  <bruno@clisp.org>
6730
6731         random_r: Move AC_LIBOBJ invocations to module description.
6732         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6733         gl_PREREQ_RANDOM_R invocations from here...
6734         * modules/random_r (configure.ac): ... to here.
6735
6736 2011-05-21  Bruno Haible  <bruno@clisp.org>
6737
6738         pwrite: Move AC_LIBOBJ invocations to module description.
6739         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6740         * modules/pwrite (configure.ac): ... to here.
6741
6742 2011-05-21  Bruno Haible  <bruno@clisp.org>
6743
6744         putenv: Move AC_LIBOBJ invocations to module description.
6745         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6746         * modules/putenv (configure.ac): ... to here.
6747
6748 2011-05-21  Bruno Haible  <bruno@clisp.org>
6749
6750         login_tty: Move AC_LIBOBJ invocations to module description.
6751         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6752         * modules/login_tty (configure.ac): ... to here.
6753
6754 2011-05-21  Bruno Haible  <bruno@clisp.org>
6755
6756         openpty: Move AC_LIBOBJ invocations to module description.
6757         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6758         * modules/openpty (configure.ac): ... to here.
6759
6760 2011-05-21  Bruno Haible  <bruno@clisp.org>
6761
6762         forkpty: Move AC_LIBOBJ invocations to module description.
6763         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6764         * modules/forkpty (configure.ac): ... to here.
6765
6766 2011-05-21  Bruno Haible  <bruno@clisp.org>
6767
6768         ptsname: Move AC_LIBOBJ invocations to module description.
6769         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6770         invocations from here...
6771         * modules/ptsname (configure.ac): ... to here.
6772
6773 2011-05-21  Bruno Haible  <bruno@clisp.org>
6774
6775         pread: Move AC_LIBOBJ invocations to module description.
6776         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6777         * modules/pread (configure.ac): ... to here.
6778
6779 2011-05-21  Bruno Haible  <bruno@clisp.org>
6780
6781         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6782         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6783         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6784         * modules/posix_spawn (configure.ac): ... to here.
6785         * modules/posix_spawnp (configure.ac): ... and here.
6786
6787 2011-05-21  Bruno Haible  <bruno@clisp.org>
6788
6789         popen: Move AC_LIBOBJ invocations to module description.
6790         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6791         invocations from here...
6792         * modules/popen (configure.ac): ... to here.
6793
6794 2011-05-21  Bruno Haible  <bruno@clisp.org>
6795
6796         poll: Move AC_LIBOBJ invocations to module description.
6797         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6798         invocations from here...
6799         * modules/poll (configure.ac): ... to here.
6800
6801 2011-05-21  Bruno Haible  <bruno@clisp.org>
6802
6803         pipe-posix: Move AC_LIBOBJ invocations to module description.
6804         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6805         * modules/pipe-posix (configure.ac): ... to here.
6806
6807 2011-05-21  Bruno Haible  <bruno@clisp.org>
6808
6809         openat: Respect rules for use of AC_LIBOBJ.
6810         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6811         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6812         * modules/openat (configure.ac): ... to here.
6813
6814 2011-05-21  Bruno Haible  <bruno@clisp.org>
6815
6816         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6817         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6818         invocation from here...
6819         * modules/obstack-printf (configure.ac): ... to here.
6820         * modules/obstack-printf-posix (configure.ac): ... and here.
6821
6822 2011-05-21  Bruno Haible  <bruno@clisp.org>
6823
6824         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6825         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6826         from here...
6827         * modules/nl_langinfo (configure.ac): ... to here.
6828
6829 2011-05-21  Bruno Haible  <bruno@clisp.org>
6830
6831         nanosleep: Move AC_LIBOBJ invocations to module description.
6832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6833         gl_PREREQ_NANOSLEEP invocations from here...
6834         * modules/nanosleep (configure.ac): ... to here.
6835
6836 2011-05-21  Bruno Haible  <bruno@clisp.org>
6837
6838         mountlist: Move AC_LIBOBJ invocations to module description.
6839         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6840         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6841         * modules/mountlist (configure.ac): ... to here.
6842
6843 2011-05-21  Bruno Haible  <bruno@clisp.org>
6844
6845         mktime: Respect rules for use of AC_LIBOBJ.
6846         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6847         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6848         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6849         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6850         * modules/mktime (configure.ac): ... to here.
6851         * modules/mktime-internal (configure.ac): ... and here.
6852         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6853
6854 2011-05-21  Bruno Haible  <bruno@clisp.org>
6855
6856         mkstemps: Move AC_LIBOBJ invocations to module description.
6857         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6858         here...
6859         * modules/mkstemps (configure.ac): ... to here.
6860
6861 2011-05-21  Bruno Haible  <bruno@clisp.org>
6862
6863         mkstemp: Move AC_LIBOBJ invocations to module description.
6864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6865         gl_PREREQ_MKSTEMP invocations from here...
6866         * modules/mkstemp (configure.ac): ... to here.
6867
6868 2011-05-21  Bruno Haible  <bruno@clisp.org>
6869
6870         mkostemps: Move AC_LIBOBJ invocations to module description.
6871         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6872         here...
6873         * modules/mkostemps (configure.ac): ... to here.
6874
6875 2011-05-21  Bruno Haible  <bruno@clisp.org>
6876
6877         mkostemp: Move AC_LIBOBJ invocations to module description.
6878         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6879         gl_PREREQ_MKOSTEMP invocations from here...
6880         * modules/mkostemp (configure.ac): ... to here.
6881
6882 2011-05-21  Bruno Haible  <bruno@clisp.org>
6883
6884         mknod: Move AC_LIBOBJ invocations to module description.
6885         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6886         * modules/mknod (configure.ac): ... to here.
6887
6888 2011-05-21  Bruno Haible  <bruno@clisp.org>
6889
6890         mkfifoat: Move AC_LIBOBJ invocations to module description.
6891         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6892         here...
6893         * modules/mkfifoat (configure.ac): ... to here.
6894
6895 2011-05-21  Bruno Haible  <bruno@clisp.org>
6896
6897         mkfifo: Respect rules for use of AC_LIBOBJ.
6898         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6899         here...
6900         * modules/mkfifo (configure.ac): ... to here.
6901
6902 2011-05-21  Bruno Haible  <bruno@clisp.org>
6903
6904         mkdtemp: Move AC_LIBOBJ invocations to module description.
6905         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6906         invocations from here...
6907         * modules/mkdtemp (configure.ac): ... to here.
6908
6909 2011-05-21  Bruno Haible  <bruno@clisp.org>
6910
6911         mkdir: Move AC_LIBOBJ invocations to module description.
6912         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6913         * modules/mkdir (configure.ac): ... to here.
6914
6915 2011-05-21  Bruno Haible  <bruno@clisp.org>
6916
6917         memset: Move AC_LIBOBJ invocations to module description.
6918         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6920         here...
6921         * modules/memset (configure.ac): ... to here.
6922
6923 2011-05-21  Bruno Haible  <bruno@clisp.org>
6924
6925         memrchr: Move AC_LIBOBJ invocations to module description.
6926         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6928         here...
6929         * modules/memrchr (configure.ac): ... to here.
6930
6931 2011-05-21  Bruno Haible  <bruno@clisp.org>
6932
6933         mempcpy: Move AC_LIBOBJ invocations to module description.
6934         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6936         here...
6937         * modules/mempcpy (configure.ac): ... to here.
6938
6939 2011-05-21  Bruno Haible  <bruno@clisp.org>
6940
6941         memmove: Move AC_LIBOBJ invocations to module description.
6942         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6944         here...
6945         * modules/memmove (configure.ac): ... to here.
6946
6947 2011-05-21  Bruno Haible  <bruno@clisp.org>
6948
6949         memmem*: Move AC_LIBOBJ invocations to module description.
6950         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6951         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6952         here...
6953         (gl_FUNC_MEMMEM): ... and here...
6954         * modules/memmem-simple (configure.ac): ... to here.
6955         * modules/memmem (configure.ac): ... and here.
6956
6957 2011-05-21  Bruno Haible  <bruno@clisp.org>
6958
6959         memcpy: Move AC_LIBOBJ invocations to module description.
6960         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6962         here...
6963         * modules/memcpy (configure.ac): ... to here.
6964
6965 2011-05-21  Bruno Haible  <bruno@clisp.org>
6966
6967         memcmp: Simplify autoconf macro.
6968         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6969         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6970         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6971
6972 2011-05-21  Bruno Haible  <bruno@clisp.org>
6973
6974         memcmp: Move AC_LIBOBJ invocations to module description.
6975         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6976         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6977         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6978         * modules/memcmp (configure.ac): ... to here.
6979         (Depends-on): Update conditions.
6980
6981 2011-05-21  Bruno Haible  <bruno@clisp.org>
6982
6983         memchr: Respect rules for use of AC_LIBOBJ.
6984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6985         invocations from here...
6986         * modules/memchr (configure.ac): ... to here.
6987
6988 2011-05-21  Bruno Haible  <bruno@clisp.org>
6989
6990         mbtowc: Move AC_LIBOBJ invocations to module description.
6991         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6992         invocations from here...
6993         * modules/mbtowc (configure.ac): ... to here.
6994
6995 2011-05-21  Bruno Haible  <bruno@clisp.org>
6996
6997         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6998         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6999         gl_PREREQ_MBSRTOWCS invocations from here...
7000         * modules/mbsrtowcs (configure.ac): ... to here.
7001
7002 2011-05-21  Bruno Haible  <bruno@clisp.org>
7003
7004         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7005         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7006         gl_PREREQ_MBSNRTOWCS invocations from here...
7007         * modules/mbsnrtowcs (configure.ac): ... to here.
7008
7009 2011-05-21  Bruno Haible  <bruno@clisp.org>
7010
7011         mbsinit: Move AC_LIBOBJ invocations to module description.
7012         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7013         invocations from here...
7014         * modules/mbsinit (configure.ac): ... to here.
7015
7016 2011-05-21  Bruno Haible  <bruno@clisp.org>
7017
7018         mbrlen: Move AC_LIBOBJ invocations to module description.
7019         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7020         invocations from here...
7021         * modules/mbrlen (configure.ac): ... to here.
7022
7023 2011-05-21  Bruno Haible  <bruno@clisp.org>
7024
7025         mbrtowc: Respect rules for use of AC_LIBOBJ.
7026         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7027         invocations from here...
7028         * modules/mbrtowc (configure.ac): ... to here.
7029
7030 2011-05-21  Bruno Haible  <bruno@clisp.org>
7031
7032         malloc-*: Move AC_LIBOBJ invocations to module description.
7033         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7034         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7035         AC_LIBOBJ invocations from here...
7036         * modules/malloc-gnu (configure.ac): ... to here.
7037         * modules/malloc-posix (configure.ac): ... and here.
7038
7039 2011-05-21  Bruno Haible  <bruno@clisp.org>
7040
7041         lstat, openat: Respect rules for use of AC_LIBOBJ.
7042         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7043         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7044         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7045         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7046         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7047         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7048         here.
7049         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         lseek: Move AC_LIBOBJ invocations to module description.
7054         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7055         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7056         * modules/lseek (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         linkat: Move AC_LIBOBJ invocations to module description.
7061         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7062         here...
7063         * modules/linkat (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         link: Respect rules for use of AC_LIBOBJ.
7068         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7069         * modules/link (configure.ac): ... to here.
7070
7071 2011-05-21  Bruno Haible  <bruno@clisp.org>
7072
7073         lchown: Move AC_LIBOBJ invocations to module description.
7074         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7075         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7076         * modules/lchown (configure.ac): ... to here.
7077
7078 2011-05-21  Bruno Haible  <bruno@clisp.org>
7079
7080         iswctype: Move AC_LIBOBJ invocations to module description.
7081         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7082         here...
7083         * modules/iswctype (configure.ac): ... to here.
7084
7085 2011-05-21  Bruno Haible  <bruno@clisp.org>
7086
7087         iswblank: Move AC_LIBOBJ invocations to module description.
7088         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7089         here...
7090         * modules/iswblank (configure.ac): ... to here.
7091
7092 2011-05-21  Bruno Haible  <bruno@clisp.org>
7093
7094         atanl: Move AC_LIBOBJ invocations to module description.
7095         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7096         * modules/atanl (configure.ac): ... to here.
7097
7098 2011-05-21  Bruno Haible  <bruno@clisp.org>
7099
7100         acosl: Move AC_LIBOBJ invocations to module description.
7101         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7102         * modules/acosl (configure.ac): ... to here.
7103
7104 2011-05-21  Bruno Haible  <bruno@clisp.org>
7105
7106         asinl: Respect rules for use of AC_LIBOBJ.
7107         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7108         * modules/asinl (configure.ac): ... to here.
7109
7110 2011-05-21  Bruno Haible  <bruno@clisp.org>
7111
7112         tanl: Move AC_LIBOBJ invocations to module description.
7113         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7114         * modules/tanl (configure.ac): ... to here.
7115
7116 2011-05-21  Bruno Haible  <bruno@clisp.org>
7117
7118         cosl: Move AC_LIBOBJ invocations to module description.
7119         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7120         * modules/cosl (configure.ac): ... to here.
7121
7122 2011-05-21  Bruno Haible  <bruno@clisp.org>
7123
7124         sinl: Move AC_LIBOBJ invocations to module description.
7125         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7126         * modules/sinl (configure.ac): ... to here.
7127
7128 2011-05-21  Bruno Haible  <bruno@clisp.org>
7129
7130         logl: Move AC_LIBOBJ invocations to module description.
7131         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7132         * modules/logl (configure.ac): ... to here.
7133
7134 2011-05-21  Bruno Haible  <bruno@clisp.org>
7135
7136         expl: Move AC_LIBOBJ invocations to module description.
7137         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7138         * modules/expl (configure.ac): ... to here.
7139
7140 2011-05-21  Bruno Haible  <bruno@clisp.org>
7141
7142         roundl: Move AC_LIBOBJ invocations to module description.
7143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7144         * modules/roundl (configure.ac): ... to here.
7145
7146 2011-05-21  Bruno Haible  <bruno@clisp.org>
7147
7148         round: Move AC_LIBOBJ invocations to module description.
7149         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7150         * modules/round (configure.ac): ... to here.
7151
7152 2011-05-21  Bruno Haible  <bruno@clisp.org>
7153
7154         roundf: Move AC_LIBOBJ invocations to module description.
7155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7156         * modules/roundf (configure.ac): ... to here.
7157
7158 2011-05-21  Bruno Haible  <bruno@clisp.org>
7159
7160         truncl: Move AC_LIBOBJ invocations to module description.
7161         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7162         * modules/truncl (configure.ac): ... to here.
7163
7164 2011-05-21  Bruno Haible  <bruno@clisp.org>
7165
7166         trunc: Move AC_LIBOBJ invocations to module description.
7167         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7168         * modules/trunc (configure.ac): ... to here.
7169
7170 2011-05-21  Bruno Haible  <bruno@clisp.org>
7171
7172         truncf: Move AC_LIBOBJ invocations to module description.
7173         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7174         * modules/truncf (configure.ac): ... to here.
7175
7176 2011-05-21  Bruno Haible  <bruno@clisp.org>
7177
7178         ceill: Move AC_LIBOBJ invocations to module description.
7179         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7180         * modules/ceill (configure.ac): ... to here.
7181
7182 2011-05-21  Bruno Haible  <bruno@clisp.org>
7183
7184         ceil: Move AC_LIBOBJ invocations to module description.
7185         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7186         * modules/ceil (configure.ac): ... to here.
7187
7188 2011-05-21  Bruno Haible  <bruno@clisp.org>
7189
7190         ceilf: Move AC_LIBOBJ invocations to module description.
7191         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7192         * modules/ceilf (configure.ac): ... to here.
7193
7194 2011-05-21  Bruno Haible  <bruno@clisp.org>
7195
7196         floorl: Respect rules for use of AC_LIBOBJ.
7197         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7198         * modules/floorl (configure.ac): ... to here.
7199
7200 2011-05-21  Bruno Haible  <bruno@clisp.org>
7201
7202         floor: Respect rules for use of AC_LIBOBJ.
7203         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7204         * modules/floor (configure.ac): ... to here.
7205
7206 2011-05-21  Bruno Haible  <bruno@clisp.org>
7207
7208         floorf: Move AC_LIBOBJ invocations to module description.
7209         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7210         * modules/floorf (configure.ac): ... to here.
7211
7212 2011-05-20  Bruno Haible  <bruno@clisp.org>
7213
7214         sqrtl: Respect rules for use of AC_LIBOBJ.
7215         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7216         * modules/sqrtl (configure.ac): ... to here.
7217
7218 2011-05-20  Bruno Haible  <bruno@clisp.org>
7219
7220         ldexpl: Respect rules for use of AC_LIBOBJ.
7221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7222         * modules/ldexpl (configure.ac): ... to here.
7223
7224 2011-05-20  Bruno Haible  <bruno@clisp.org>
7225
7226         frexpl*: Respect rules for use of AC_LIBOBJ.
7227         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7228         invocation from here...
7229         * modules/frexpl (configure.ac): ... to here.
7230         * modules/frexpl-nolibm (configure.ac): ... and here.
7231
7232 2011-05-20  Bruno Haible  <bruno@clisp.org>
7233
7234         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7235         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7236         invocation from here...
7237         * modules/frexp (configure.ac): ... to here.
7238         * modules/frexp-nolibm (configure.ac): ... and here.
7239
7240 2011-05-20  Bruno Haible  <bruno@clisp.org>
7241
7242         isnan: Respect rules for use of AC_LIBOBJ.
7243         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7244         invocations here.
7245         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7246         REPLACE_ISNAN.
7247         * modules/isnand (configure.ac): Likewise.
7248         * modules/isnanl (configure.ac): Likewise.
7249
7250 2011-05-20  Bruno Haible  <bruno@clisp.org>
7251
7252         isnanl*: Respect rules for use of AC_LIBOBJ.
7253         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7254         invocation from here...
7255         * modules/isnanl (configure.ac): ... to here.
7256         * modules/isnanl-nolibm (configure.ac): ... and here.
7257
7258 2011-05-20  Bruno Haible  <bruno@clisp.org>
7259
7260         isnand*: Move AC_LIBOBJ invocations to module description.
7261         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7262         invocation from here...
7263         * modules/isnand (configure.ac): ... to here.
7264         * modules/isnand-nolibm (configure.ac): ... and here.
7265
7266 2011-05-20  Bruno Haible  <bruno@clisp.org>
7267
7268         isnanf*: Move AC_LIBOBJ invocations to module description.
7269         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7270         invocation from here...
7271         * modules/isnanf (configure.ac): ... to here.
7272         * modules/isnanf-nolibm (configure.ac): ... and here.
7273
7274 2011-05-20  Bruno Haible  <bruno@clisp.org>
7275
7276         isnan*: Separate the AC_LIBOBJ invocations.
7277         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7278         AC_LIBOBJ invocation.
7279         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7280         here.
7281         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7282         AC_LIBOBJ invocation.
7283         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7284         here.
7285         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7286         AC_LIBOBJ invocation.
7287         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7288         here.
7289         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7290
7291 2011-05-08  Bruno Haible  <bruno@clisp.org>
7292
7293         isinf: Move AC_LIBOBJ invocations to module description.
7294         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7295         * modules/isinf (configure.ac): ... to here.
7296
7297 2011-05-08  Bruno Haible  <bruno@clisp.org>
7298
7299         isfinite: Move AC_LIBOBJ invocations to module description.
7300         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7301         * modules/isfinite (configure.ac): ... to here.
7302
7303 2011-05-08  Bruno Haible  <bruno@clisp.org>
7304
7305         isblank: Move AC_LIBOBJ invocations to module description.
7306         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7307         here...
7308         * modules/isblank (configure.ac): ... to here.
7309
7310 2011-05-08  Bruno Haible  <bruno@clisp.org>
7311
7312         isapipe: Move AC_LIBOBJ invocations to module description.
7313         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7314         gl_PREREQ_ISAPIPE invocations from here...
7315         * modules/isapipe (configure.ac): ... to here.
7316         (Depends-on): Update condition.
7317
7318 2011-05-08  Bruno Haible  <bruno@clisp.org>
7319
7320         ioctl: Move AC_LIBOBJ invocations to module description.
7321         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7322         invocations from here...
7323         * modules/ioctl (configure.ac): ... to here.
7324         (Depends-on): Update condition.
7325
7326 2011-05-08  Bruno Haible  <bruno@clisp.org>
7327
7328         imaxdiv: Move AC_LIBOBJ invocations to module description.
7329         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7330         invocations from here...
7331         * modules/imaxdiv (configure.ac): ... to here.
7332
7333 2011-05-08  Bruno Haible  <bruno@clisp.org>
7334
7335         imaxabs: Move AC_LIBOBJ invocations to module description.
7336         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7337         invocations from here...
7338         * modules/imaxabs (configure.ac): ... to here.
7339
7340 2011-05-08  Bruno Haible  <bruno@clisp.org>
7341
7342         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7344         AC_LIBOBJ invocations from here...
7345         * modules/getaddrinfo (configure.ac): ... to here.
7346         (Depends-on): Add conditions.
7347
7348 2011-05-08  Bruno Haible  <bruno@clisp.org>
7349
7350         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7351         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7352         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7353         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7354         (gl_PREREQ_INET_PTON): ... from here.
7355         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7356         gl_PREREQ_INET_PTON here.
7357         (Depends-on): Update condition.
7358
7359 2011-05-08  Bruno Haible  <bruno@clisp.org>
7360
7361         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7362         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7363         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7364         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7365         (gl_PREREQ_INET_NTOP): ... from here.
7366         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7367         gl_PREREQ_INET_NTOP here.
7368         (Depends-on): Update condition.
7369
7370 2011-05-08  Bruno Haible  <bruno@clisp.org>
7371
7372         iconv_open: Move AC_LIBOBJ invocations to module description.
7373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7374         AC_LIBOBJ invocations from here...
7375         * modules/iconv_open (configure.ac): ... to here.
7376
7377 2011-05-08  Bruno Haible  <bruno@clisp.org>
7378
7379         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7380         If module 'iconv_open' is among the main modules and module
7381         'iconv_open-utf' is among the tests dependencies, then
7382         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7383         return the special iconv_t values. Therefore iconv() and iconv_close()
7384         must support these special iconv_t values, already in lib, not only in
7385         tests.
7386         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7387         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7388         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7389         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7390         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7391         (Depends-on): Add the dependencies of iconv_open-utf.
7392         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7393         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7394         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7395
7396 2011-05-08  Bruno Haible  <bruno@clisp.org>
7397
7398         group-member: Move AC_LIBOBJ invocations to module description.
7399         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7400         gl_PREREQ_GROUP_MEMBER invocations from here...
7401         * modules/group-member (configure.ac): ... to here.
7402
7403 2011-05-08  Bruno Haible  <bruno@clisp.org>
7404
7405         grantpt: Move AC_LIBOBJ invocations to module description.
7406         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7407         invocations from here...
7408         * modules/grantpt (configure.ac): ... to here.
7409
7410 2011-05-08  Bruno Haible  <bruno@clisp.org>
7411
7412         glob: Move AC_LIBOBJ invocations to module description.
7413         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7414         from here...
7415         * modules/glob (configure.ac): ... to here.
7416
7417 2011-05-08  Bruno Haible  <bruno@clisp.org>
7418
7419         getusershell: Move AC_LIBOBJ invocations to module description.
7420         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7421         Move AC_LIBOBJ invocation from here...
7422         * modules/getusershell (configure.ac): ... to here.
7423         (Depends-on): Update condition.
7424
7425 2011-05-08  Bruno Haible  <bruno@clisp.org>
7426
7427         gettimeofday: Move AC_LIBOBJ invocations to module description.
7428         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7429         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7430         gl_PREREQ_GETTIMEOFDAY invocations from here...
7431         * modules/gettimeofday (configure.ac): ... to here.
7432
7433 2011-05-08  Bruno Haible  <bruno@clisp.org>
7434
7435         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7436         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7437         just gl_FUNC_TZSET.
7438         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7439         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7441         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7442
7443 2011-05-08  Bruno Haible  <bruno@clisp.org>
7444
7445         getsubopt: Move AC_LIBOBJ invocations to module description.
7446         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7447         gl_PREREQ_GETSUBOPT invocations from here...
7448         * modules/getsubopt (configure.ac): ... to here.
7449
7450 2011-05-08  Bruno Haible  <bruno@clisp.org>
7451
7452         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7453         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7454         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7455         * modules/getpass-gnu (configure.ac): ... to here.
7456
7457 2011-05-08  Bruno Haible  <bruno@clisp.org>
7458
7459         getpass: Move AC_LIBOBJ invocations to module description.
7460         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7461         gl_PREREQ_GETPASS invocations from here...
7462         * modules/getpass (configure.ac): ... to here.
7463
7464 2011-05-08  Bruno Haible  <bruno@clisp.org>
7465
7466         getpagesize: Move AC_LIBOBJ invocations to module description.
7467         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7468         from here...
7469         * modules/getpagesize (configure.ac): ... to here.
7470
7471 2011-05-08  Bruno Haible  <bruno@clisp.org>
7472
7473         getopt: Move AC_LIBOBJ invocations to module description.
7474         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7475         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7476         invocations from here...
7477         * modules/getopt-gnu (configure.ac): ... to here.
7478         * modules/getopt-posix (configure.ac): ... and here.
7479         (Depends-on): Update condition.
7480
7481 2011-05-08  Bruno Haible  <bruno@clisp.org>
7482
7483         getopt, argp: Respect rules for use of AC_LIBOBJ.
7484         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7485         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7486         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7487         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7488
7489 2011-05-08  Bruno Haible  <bruno@clisp.org>
7490
7491         getlogin_r: Move AC_LIBOBJ invocations to module description.
7492         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7493         gl_PREREQ_GETLOGIN_R invocations from here...
7494         * modules/getlogin_r (configure.ac): ... to here.
7495
7496 2011-05-08  Bruno Haible  <bruno@clisp.org>
7497
7498         getlogin: Move AC_LIBOBJ invocations to module description.
7499         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7500         here...
7501         * modules/getlogin (configure.ac): ... to here.
7502
7503 2011-05-08  Bruno Haible  <bruno@clisp.org>
7504
7505         getloadavg: Move AC_LIBOBJ invocations to module description.
7506         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7507         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7508         * modules/getloadavg (configure.ac): ... to here.
7509
7510 2011-05-08  Bruno Haible  <bruno@clisp.org>
7511
7512         gethrxtime: Move AC_LIBOBJ invocations to module description.
7513         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7514         LIB_GETHRXTIME from here...
7515         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7516         invocations from here...
7517         * modules/gethrxtime (configure.ac): ... to here.
7518
7519 2011-05-08  Bruno Haible  <bruno@clisp.org>
7520
7521         gethostname: Move AC_LIBOBJ invocations to module description.
7522         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7523         gl_PREREQ_GETHOSTNAME invocations from here...
7524         * modules/gethostname (configure.ac): ... to here.
7525
7526 2011-05-08  Bruno Haible  <bruno@clisp.org>
7527
7528         getgroups: Move AC_LIBOBJ invocations to module description.
7529         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7530         here...
7531         * modules/getgroups (configure.ac): ... to here.
7532
7533 2011-05-08  Bruno Haible  <bruno@clisp.org>
7534
7535         getdtablesize: Move AC_LIBOBJ invocations to module description.
7536         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7537         invocation from here...
7538         * modules/getdtablesize (configure.ac): ... to here.
7539
7540 2011-05-08  Bruno Haible  <bruno@clisp.org>
7541
7542         getdomainname: Move AC_LIBOBJ invocations to module description.
7543         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7544         gl_PREREQ_GETDOMAINNAME invocations from here...
7545         * modules/getdomainname (configure.ac): ... to here.
7546
7547 2011-05-08  Bruno Haible  <bruno@clisp.org>
7548
7549         getline: Move AC_LIBOBJ invocations to module description.
7550         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7551         invocations from here...
7552         * modules/getline (configure.ac): ... to here.
7553
7554 2011-05-08  Bruno Haible  <bruno@clisp.org>
7555
7556         getline: Simplify.
7557         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7558         It's already handled through the module dependency.
7559
7560 2011-05-08  Bruno Haible  <bruno@clisp.org>
7561
7562         getdelim: Move AC_LIBOBJ invocations to module description.
7563         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7564         and gl_PREREQ_GETDELIM invocations from here...
7565         * modules/getdelim (configure.ac): ... to here.
7566         (Depends-on): Fix condition.
7567
7568 2011-05-08  Bruno Haible  <bruno@clisp.org>
7569
7570         getcwd: Move AC_LIBOBJ invocations to module description.
7571         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7572         invocations from here...
7573         * modules/getcwd (configure.ac): ... to here.
7574
7575 2011-05-08  Bruno Haible  <bruno@clisp.org>
7576
7577         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7578         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7579         here...
7580         * modules/getcwd-lgpl (configure.ac): ... to here.
7581
7582 2011-05-07  Bruno Haible  <bruno@clisp.org>
7583
7584         crypto/gc: Move AC_LIBOBJ invocations to module description.
7585         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7586         * modules/crypto/gc (configure.ac): ... to here.
7587
7588 2011-05-07  Bruno Haible  <bruno@clisp.org>
7589
7590         fwriting: Move AC_LIBOBJ invocations to module description.
7591         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7592         here...
7593         * modules/fwriting (configure.ac): ... to here.
7594
7595 2011-05-07  Bruno Haible  <bruno@clisp.org>
7596
7597         fwritable: Move AC_LIBOBJ invocations to module description.
7598         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7599         here...
7600         * modules/fwritable (configure.ac): ... to here.
7601
7602 2011-05-07  Bruno Haible  <bruno@clisp.org>
7603
7604         futimens: Move AC_LIBOBJ invocations to module description.
7605         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7606         here...
7607         * modules/futimens (configure.ac): ... to here.
7608
7609 2011-05-07  Bruno Haible  <bruno@clisp.org>
7610
7611         ftruncate: Move AC_LIBOBJ invocations to module description.
7612         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7613         gl_PREREQ_FTRUNCATE invocations from here...
7614         * modules/ftruncate (configure.ac): ... to here.
7615
7616 2011-05-07  Bruno Haible  <bruno@clisp.org>
7617
7618         fsync: Move AC_LIBOBJ invocations to module description.
7619         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7620         invocations from here...
7621         * modules/fsync (configure.ac): ... to here.
7622
7623 2011-05-07  Bruno Haible  <bruno@clisp.org>
7624
7625         fsusage: Move AC_LIBOBJ invocations to module description.
7626         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7627         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7628         * modules/fsusage (configure.ac): ... to here.
7629
7630 2011-05-07  Bruno Haible  <bruno@clisp.org>
7631
7632         freopen: Move AC_LIBOBJ invocations to module description.
7633         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7634         invocations from here...
7635         * modules/freopen (configure.ac): ... to here.
7636
7637 2011-05-07  Bruno Haible  <bruno@clisp.org>
7638
7639         free: Move AC_LIBOBJ invocations to module description.
7640         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7641         invocations from here...
7642         * modules/free (configure.ac): ... to here.
7643
7644 2011-05-07  Bruno Haible  <bruno@clisp.org>
7645
7646         freadable: Move AC_LIBOBJ invocations to module description.
7647         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7648         here...
7649         * modules/freadable (configure.ac): ... to here.
7650
7651 2011-05-07  Bruno Haible  <bruno@clisp.org>
7652
7653         fpurge: Move AC_LIBOBJ invocations to module description.
7654         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7655         invocations from here...
7656         * modules/fpurge (configure.ac): ... to here.
7657
7658 2011-05-07  Bruno Haible  <bruno@clisp.org>
7659
7660         fpending: Move AC_LIBOBJ invocations to module description.
7661         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7662         gl_FUNC_FPENDING.
7663         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7664         invocations from here...
7665         * modules/fpending (configure.ac): ... to here.
7666
7667 2011-05-07  Bruno Haible  <bruno@clisp.org>
7668
7669         fopen: Move AC_LIBOBJ invocations to module description.
7670         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7671         invocations from here...
7672         * modules/fopen (configure.ac): ... to here.
7673
7674 2011-05-07  Bruno Haible  <bruno@clisp.org>
7675
7676         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7677         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7678         gl_FUNC_FNMATCH_POSIX.
7679         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7680         invocations from here...
7681         * modules/fnmatch (configure.ac): ... to here.
7682         * modules/fnmatch-gnu (configure.ac): ... and here.
7683
7684 2011-05-07  Bruno Haible  <bruno@clisp.org>
7685
7686         flock: Move AC_LIBOBJ invocations to module description.
7687         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7688         invocations from here...
7689         * modules/flock (configure.ac): ... to here.
7690
7691 2011-05-07  Bruno Haible  <bruno@clisp.org>
7692
7693         fileblocks: Move AC_LIBOBJ invocations to module description.
7694         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7695         gl_PREREQ_FILEBLOCKS invocations from here...
7696         * modules/fileblocks (configure.ac): ... to here.
7697
7698 2011-05-06  Bruno Haible  <bruno@clisp.org>
7699
7700         fflush: Move AC_LIBOBJ invocations to module description.
7701         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7702         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7703         invocations from here...
7704         * modules/fflush (configure.ac): ... to here.
7705
7706 2011-05-06  Bruno Haible  <bruno@clisp.org>
7707
7708         fdopendir: Move AC_LIBOBJ invocations to module description.
7709         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7710         here...
7711         * modules/fdopendir (configure.ac): ... to here.
7712         (Depends-on): Improve conditions.
7713
7714 2011-05-06  Bruno Haible  <bruno@clisp.org>
7715
7716         _Exit: Move AC_LIBOBJ invocations to module description.
7717         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7718         invocations from here...
7719         * modules/_Exit (configure.ac): ... to here.
7720
7721 2011-05-21  Bruno Haible  <bruno@clisp.org>
7722
7723         euidaccess: Respect rules for use of AC_LIBOBJ.
7724         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7726         from here...
7727         * modules/euidaccess (configure.ac): ... to here.
7728
7729 2011-05-06  Bruno Haible  <bruno@clisp.org>
7730
7731         error: Move AC_LIBOBJ invocations to module description.
7732         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7733         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7734         invocations from here...
7735         * modules/error (configure.ac): ... to here.
7736
7737 2011-05-06  Bruno Haible  <bruno@clisp.org>
7738
7739         duplocale: Move AC_LIBOBJ invocations to module description.
7740         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7741         gl_PREREQ_DUPLOCALE invocations from here...
7742         * modules/duplocale (configure.ac): ... to here.
7743
7744 2011-05-05  Bruno Haible  <bruno@clisp.org>
7745
7746         dirfd: Move AC_LIBOBJ invocations to module description.
7747         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7748         gl_FUNC_DIRFD.
7749         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7750         here...
7751         * modules/dirfd (configure.ac): ... to here.
7752         (Depends-on): Fix condition.
7753
7754 2011-05-05  Bruno Haible  <bruno@clisp.org>
7755
7756         chown: Respect rules for use of AC_LIBOBJ.
7757         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7758         * modules/chown (configure.ac): ... to here.
7759
7760 2011-05-05  Bruno Haible  <bruno@clisp.org>
7761
7762         chdir-long: Move AC_LIBOBJ invocations to module description.
7763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7764         gl_PREREQ_CHDIR_LONG invocations from here...
7765         * modules/chdir-long (configure.ac): ... to here.
7766
7767 2011-05-05  Bruno Haible  <bruno@clisp.org>
7768
7769         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7770         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7771         from here...
7772         * modules/canonicalize-lgpl (configure.ac): ... to here.
7773
7774 2011-05-05  Bruno Haible  <bruno@clisp.org>
7775
7776         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7777         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7778         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7779         REPLACE_CALLOC.
7780         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7781         * modules/calloc-gnu (configure.ac): Likewise.
7782
7783 2011-05-05  Bruno Haible  <bruno@clisp.org>
7784
7785         btowc: Move AC_LIBOBJ invocations to module description.
7786         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7787         invocations from here...
7788         * modules/btowc (configure.ac): ... to here.
7789
7790 2011-05-21  Bruno Haible  <bruno@clisp.org>
7791
7792         atexit: Move AC_LIBOBJ invocations to module description.
7793         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7795         here...
7796         * modules/atexit (configure.ac): ... to here.
7797
7798 2011-05-05  Bruno Haible  <bruno@clisp.org>
7799
7800         atoll: Move AC_LIBOBJ invocations to module description.
7801         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7802         invocations from here...
7803         * modules/atoll (configure.ac): ... to here.
7804
7805 2011-05-05  Bruno Haible  <bruno@clisp.org>
7806
7807         argz: Move AC_LIBOBJ invocations to module description.
7808         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7809         * modules/argz (configure.ac): ... to here.
7810
7811 2011-05-05  Bruno Haible  <bruno@clisp.org>
7812
7813         alphasort: Move AC_LIBOBJ invocations to module description.
7814         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7815         gl_PREREQ_ALPHASORT invocations from here...
7816         * modules/alphasort (configure.ac): ... to here.
7817
7818 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7819
7820         verify: new macro verify_expr; verify_true deprecated
7821         * NEWS: Mention this.
7822         * doc/verify.texi (Compile-time Assertions): Document this.
7823         * lib/verify.h (verify_true): Deprecate.
7824         (verify_expr): New macro.
7825         * tests/test-verify.c (function): Test verify_expr.
7826
7827 2011-06-14  Jim Meyering  <meyering@redhat.com>
7828
7829         init.sh: give more portable redirection-related advice in a comment
7830         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7831         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7832         for lots of discussion.  Stefano Lattarini suggested the solution
7833         of putting "9>&2" after the command.  Reported by Bruno Haible.
7834
7835 2011-06-13  Bruno Haible  <bruno@clisp.org>
7836
7837         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7838         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7839         'none'.
7840
7841 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7842
7843         ftoastr: use strtof only if HAVE_STRTOF
7844         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7846         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7847         * modules/ftoastr (configure.ac): Check for strtof.
7848
7849 2011-06-13  Bruno Haible  <bruno@clisp.org>
7850
7851         gnulib-tool: Addendum to 2011-06-08 commit.
7852         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7853         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7854
7855 2011-06-13  Bruno Haible  <bruno@clisp.org>
7856
7857         fseeko: Provide a non-inline replacement of fseek().
7858         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7859         * modules/fseeko (Depends-on): Add fseek.
7860         * modules/fseek (License): Change to LGPLv2+.
7861
7862 2011-06-13  Bruno Haible  <bruno@clisp.org>
7863
7864         ftello: Provide a non-inline replacement of ftell().
7865         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7866         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7867         not have ftello() (such as on mingw).
7868         * modules/ftello (Depends-on): Add ftell.
7869         * modules/ftell (License): Change to LGPLv2+.
7870
7871 2011-05-07  Bruno Haible  <bruno@clisp.org>
7872
7873         ftell: Move AC_LIBOBJ invocations to module description.
7874         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7875         * modules/ftell (configure.ac): ... to here.
7876
7877 2011-05-07  Bruno Haible  <bruno@clisp.org>
7878
7879         ftello: Respect rules for use of AC_LIBOBJ.
7880         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7881         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7882         here...
7883         * modules/ftello (configure.ac): ... to here.
7884
7885 2011-05-07  Bruno Haible  <bruno@clisp.org>
7886
7887         fseeko: Simplify.
7888         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7889         (gl_FUNC_FSEEKO): Inline it here.
7890
7891 2011-05-07  Bruno Haible  <bruno@clisp.org>
7892
7893         fseek: Move AC_LIBOBJ invocations to module description.
7894         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7895         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7896         * modules/fseek (configure.ac): ... to here.
7897
7898 2011-05-07  Bruno Haible  <bruno@clisp.org>
7899
7900         fseek: Respect rules for use of AC_LIBOBJ.
7901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7902         here...
7903         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7904
7905 2011-05-07  Bruno Haible  <bruno@clisp.org>
7906
7907         fseeko: Respect rules for use of AC_LIBOBJ.
7908         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7909         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7910         here...
7911         * modules/fseeko (configure.ac): ... to here.
7912
7913 2011-06-13  Bruno Haible  <bruno@clisp.org>
7914
7915         gnulib-tool: Allow comments in the 'Depends-on' section.
7916         * doc/gnulib.texi (Module description): Mention comment syntax in the
7917         Depends-on section.
7918         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7919
7920 2011-06-13  Bruno Haible  <bruno@clisp.org>
7921
7922         file-set.h: guard __attibute__ use, now that it's not always defined
7923         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7924         versions that support it.  This fixes a coreutils build failure with
7925         the vendor cc on HP-UX 11.31.
7926
7927 2011-06-12  Bruno Haible  <bruno@clisp.org>
7928
7929         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7930         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7931         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7932         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7933         (acl, aclsort): New declarations.
7934         (aclv_nontrivial): New declaration.
7935         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7936         (file_has_acl): Read also the second kind of HP-UX ACLs.
7937         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7938         kind of HP-UX ACLs if the first kind fails.
7939         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7940         second kind of HP-UX ACLs.
7941         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7942         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7943         agree.
7944         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7945         hpuxjfs.
7946         Handle hpuxjfs.
7947         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7948         hpuxjfs.
7949         Handle hpuxjfs.
7950         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7951         (func_test_same_acls): Use both lsacl and getacl.
7952         Handle hpuxjfs.
7953         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7954         (func_test_same_acls): Use both lsacl and getacl.
7955         Handle hpuxjfs.
7956
7957 2011-06-12  Bruno Haible  <bruno@clisp.org>
7958
7959         acl: Complete the 2010-08-10 fix.
7960         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7961         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7962         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7963         explicitly.
7964         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7965         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7966
7967 2011-06-12  Bruno Haible  <bruno@clisp.org>
7968
7969         spawn-pipe tests: Comments.
7970         * tests/test-spawn-pipe-child.c (main): Update comment.
7971         Reported by James Youngman <jay@gnu.org>.
7972
7973 2011-06-11  James Youngman  <jay@gnu.org>
7974
7975         New module 'stat-size'.
7976         * modules/stat-size: New module.  Provides macros for accessing
7977         file size information in instances of struct stat.  Depends on the
7978         fileblocks module because it calls st_blocks.
7979         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7980         * doc/gnulib.texi: Include stat-size.texi.
7981         * doc/stat-size.texi: Documentation for this module.
7982         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7983         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7984         AC_STRUCT_ST_BLOCKS.
7985
7986 2011-06-09  Bruno Haible  <bruno@clisp.org>
7987
7988         thread: Support pthreads-win32.
7989         * lib/glthread/thread.h (gl_thread_self): Define differently on
7990         pthreads-win32.
7991         (gl_null_thread): New declaration.
7992         (gl_thread_self_pointer): New macro.
7993         * lib/glthread/thread.c (gl_null_thread): New constant.
7994         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7995         gl_thread_self.
7996         * tests/test-tls.c: Likewise.
7997         Suggested by Paul Eggert. Reported by Eric Blake.
7998
7999 2011-06-09  Bruno Haible  <bruno@clisp.org>
8000
8001         thread: Fix confusion between NULL and 0.
8002         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8003         Reported by Paul Eggert.
8004
8005 2011-06-09  Bruno Haible  <bruno@clisp.org>
8006
8007         spawn-pipe tests: Avoid test failure on HP-UX 11.
8008         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8009         is closed.
8010
8011 2011-06-09  Bruno Haible  <bruno@clisp.org>
8012
8013         acl tests: Fix compilation error on HP-UX 11.
8014         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8015
8016 2011-06-09  Bruno Haible  <bruno@clisp.org>
8017
8018         rmdir: Avoid test failure on HP-UX 10.20.
8019         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8020         EEXIST.
8021
8022 2011-06-08  Eric Blake  <eblake@redhat.com>
8023
8024         perror: fix test on mingw
8025         * modules/perror-tests (Depends-on): Add dup2.
8026
8027         strerror_r-posix: fix on MacOS
8028         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8029         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8030         logic bug.
8031         * lib/strerror_r.c (strerror_r): Fix the bug.
8032         * lib/strerror.c (strerror): Likewise.
8033         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8034         problem.
8035         * doc/posix-functions/strerror.texi (strerror): Likewise.
8036         * doc/posix-functions/perror.texi (perror): Likewise.
8037         * tests/test-strerror.c (main): Enhance test.
8038         * tests/test-strerror_r.c (main): Likewise.
8039
8040 2011-06-08  Bruno Haible  <bruno@clisp.org>
8041
8042         gnulib-tool: Better isolation between different gnulib-tool invocations.
8043         * gnulib-tool: New option --witness-c-macro.
8044         (witness_c_macro): New variable.
8045         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8046         AM_CPPFLAGS define it as a C macro.
8047         (func_emit_tests_Makefile_am): Likewise.
8048         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8049         read it from there.
8050         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8051         m4_define, not AC_DEFUN.
8052         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8053         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8054         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8055         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8056         s|...|...|, to substitute the values of the GNULIB_* module indicator
8057         variables.
8058         * modules/dirent (Makefile.am): Likewise.
8059         * modules/fcntl-h (Makefile.am): Likewise.
8060         * modules/iconv-h (Makefile.am): Likewise.
8061         * modules/langinfo (Makefile.am): Likewise.
8062         * modules/locale (Makefile.am): Likewise.
8063         * modules/math (Makefile.am): Likewise.
8064         * modules/netdb (Makefile.am): Likewise.
8065         * modules/poll-h (Makefile.am): Likewise.
8066         * modules/pty (Makefile.am): Likewise.
8067         * modules/search (Makefile.am): Likewise.
8068         * modules/signal (Makefile.am): Likewise.
8069         * modules/spawn (Makefile.am): Likewise.
8070         * modules/stdio (Makefile.am): Likewise.
8071         * modules/stdlib (Makefile.am): Likewise.
8072         * modules/string (Makefile.am): Likewise.
8073         * modules/sys_ioctl (Makefile.am): Likewise.
8074         * modules/sys_select (Makefile.am): Likewise.
8075         * modules/sys_socket (Makefile.am): Likewise.
8076         * modules/sys_stat (Makefile.am): Likewise.
8077         * modules/sys_times (Makefile.am): Likewise.
8078         * modules/sys_utsname (Makefile.am): Likewise.
8079         * modules/sys_wait (Makefile.am): Likewise.
8080         * modules/termios (Makefile.am): Likewise.
8081         * modules/time (Makefile.am): Likewise.
8082         * modules/unistd (Makefile.am): Likewise.
8083         * modules/wchar (Makefile.am): Likewise.
8084
8085 2011-06-08  Eric Blake  <eblake@redhat.com>
8086
8087         strerror: simplify replacement
8088         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8089         * modules/strerror (configure.ac): No prereqs needed here...
8090         * modules/strerror-override (configure.ac): ...but this needs it.
8091         (Files): Add file for needed prereq macro.
8092
8093 2011-06-08  Bruno Haible  <bruno@clisp.org>
8094
8095         strerror_r-posix: Tweaks.
8096         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8097         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8099         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8100         (gl_FUNC_STRERROR_R): ... to here.
8101         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8102
8103 2011-06-07  Eric Blake  <eblake@redhat.com>
8104
8105         perror: document fixed bugs
8106         * doc/posix-functions/perror.texi (perror): Document recent
8107         patches.
8108
8109 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         stat-time: get_stat_birthtime failure is better-defined
8112         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8113         return a timestamp whose tv_sec and tv_nsec values are both -1.
8114         Previously, the spec said only that the tv_nsec value was negative.
8115         This upward-compatible change simplifies GNU tar a bit.
8116
8117 2011-06-07  Eric Blake  <eblake@redhat.com>
8118
8119         strerror_r-posix: work around cygwin 1.7.9
8120         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8121         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8122         bug without replacing strerror_r.
8123         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8124         strerror_r is buggy, but without requiring strerror_r compilation.
8125         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8126
8127         test-perror: relax test to ignore cygwin bug
8128         * tests/test-perror2.c (main): Relax test on requiring detection
8129         of stream errors, and use unbuffered stream.
8130         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8131         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8132         * doc/posix-functions/fputc.texi (fputc): Likewise.
8133         * doc/posix-functions/fputs.texi (fputs): Likewise.
8134         * doc/posix-functions/fputws.texi (fputws): Likewise.
8135         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8136         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8137         * doc/posix-functions/getopt.texi (getopt): Likewise.
8138         * doc/posix-functions/perror.texi (perror): Likewise.
8139         * doc/posix-functions/printf.texi (printf): Likewise.
8140         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8141         * doc/posix-functions/psignal.texi (psignal): Likewise.
8142         * doc/posix-functions/putc.texi (putc): Likewise.
8143         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8144         Likewise.
8145         * doc/posix-functions/putchar.texi (putchar): Likewise.
8146         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8147         Likewise.
8148         * doc/posix-functions/puts.texi (puts): Likewise.
8149         * doc/posix-functions/putwc.texi (putwc): Likewise.
8150         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8151         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8152         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8153         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8154         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8155         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8156         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8157         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8158
8159 2011-05-22  Bruno Haible  <bruno@clisp.org>
8160
8161         strerror: Move AC_LIBOBJ invocations to module description.
8162         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8163         gl_PREREQ_STRERROR invocations from here...
8164         * modules/strerror (configure.ac): ... to here.
8165
8166 2011-05-21  Bruno Haible  <bruno@clisp.org>
8167
8168         perror: Use common idiom.
8169         * modules/perror (configure.ac): Reorder statements.
8170
8171 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8172
8173         tests: fix usage message in 'mktempd_'
8174         * tests/init.sh (mktempd_): In the usage message, use literal
8175         'mktempd_', not '$ME' (which is even undefined), as the name of
8176         the subroutine.
8177
8178 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8179
8180         tests init: new function 'fatal_', for hard errors
8181         Before this patch, the only way offered by tests/init.sh to
8182         properly signal a hard error was the `framework_failure_'
8183         function.  But the error message issued by that function,
8184         as its name would suggest, refers to a set-up failure in the
8185         testsuite, while hard errors can obviously also be due to
8186         other reasons.  The best way to fix this inconsistency is to
8187         introduce a new function with a more general error message.
8188         * tests/init.sh (fatal_): New function.
8189
8190 2011-06-06  Eric Blake  <eblake@redhat.com>
8191
8192         canonicalize-lgpl: use common idiom
8193         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8194         over newer POSIX -Rf.
8195         Reported by Bruno Haible.
8196
8197         canonicalize-lgpl: work around AIX realpath bug
8198         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8199         * doc/posix-functions/realpath.texi (realpath): Document it.
8200         Reported by Bruno Haible.
8201
8202         strerror: work around FreeBSD bug
8203         * lib/strerror.c (strerror): Special case 0.
8204         Reported by Bruno Haible.
8205
8206         strerror-override: avoid bloating errno module
8207         * modules/errno (Files, configure.ac): Move replacement strings...
8208         * modules/strerror-override: ...to new module.
8209         * modules/strerror (Depends-on): Add strerror-override.
8210         * modules/strerror_r-posix (Depends-on): Likewise.
8211         * MODULES.html.sh: Document new module.
8212         Reported by Bruno Haible.
8213
8214 2011-06-06  Bruno Haible  <bruno@clisp.org>
8215
8216         spawn-pipe tests: Rename program.
8217         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8218         * tests/test-spawn-pipe-child.c: Update comment.
8219         * tests/test-spawn-pipe.sh: Update.
8220         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8221
8222         spawn-pipe tests: Link the child program only against libc.
8223         * tests/test-spawn-pipe-child.c: New file, extracted from
8224         tests/test-spawn-pipe.c.
8225         (main): Expect only one argument.
8226         (is_open): New function, copied from tests/test-pipe.c.
8227         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8228         (child_main): Remove function.
8229         (test_pipe): Pass only one argument to the child program.
8230         (main): Remove child process code. Expect the child program's name as
8231         first argument.
8232         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8233         argument.
8234         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8235         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8236         test-spawn-pipe-child against no libraries.
8237
8238 2011-06-06  Bruno Haible  <bruno@clisp.org>
8239
8240         careadlinkat: Avoid mismatch between ssize_t and int.
8241         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8242         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8243
8244 2011-06-06  Jim Meyering  <meyering@redhat.com>
8245
8246         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8247         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8248         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8249
8250 2011-06-05  Bruno Haible  <bruno@clisp.org>
8251
8252         ansi-c++-opt: Interoperability with libtool.
8253         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8254         set the variable to "no", not to ":".
8255         * NEWS: Mention the change.
8256
8257 2011-06-05  Bruno Haible  <bruno@clisp.org>
8258
8259         acl: Fix test failure on AIX 7.
8260         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8261         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8262
8263 2011-06-05  Bruno Haible  <bruno@clisp.org>
8264
8265         pipe-filter-ii: Fix test failure on AIX and IRIX.
8266         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8267         with EAGAIN, retry with a smaller buffer size.
8268
8269 2011-06-05  Bruno Haible  <bruno@clisp.org>
8270
8271         localename: Fix link dependencies.
8272         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8273         * modules/localename-tests (Makefile.am): Link test-localename with
8274         $(LIBTHREAD).
8275
8276 2011-06-05  Bruno Haible  <bruno@clisp.org>
8277
8278         error: Avoid gcc warning.
8279         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8280
8281 2011-06-05  Bruno Haible  <bruno@clisp.org>
8282
8283         unsetenv: Avoid gcc warning.
8284         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8285
8286 2011-06-05  Bruno Haible  <bruno@clisp.org>
8287
8288         setenv: Avoid gcc warning.
8289         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8290
8291 2011-06-05  Bruno Haible  <bruno@clisp.org>
8292
8293         sys_select: Ensure memset is declared also on AIX 7.
8294         * lib/sys_select.in.h: Include <string.h> also on AIX.
8295         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8296         self-contained also on AIX 7.1.
8297
8298 2011-06-04  Jim Meyering  <meyering@redhat.com>
8299
8300         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8301         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8302         function name, "error".
8303         (_gl_translatable_diag_func_re): New configurable variable.
8304
8305 2011-06-04  Bruno Haible  <bruno@clisp.org>
8306
8307         getopt: Avoid gcc warning.
8308         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8309
8310 2011-06-04  Bruno Haible  <bruno@clisp.org>
8311
8312         strerror_r: Fix comments.
8313         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8314         commit.
8315
8316 2011-06-04  Bruno Haible  <bruno@clisp.org>
8317
8318         perror: Fix compilation error.
8319         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8320         Undefine fprintf, not sprintf.
8321         * modules/perror (Depends-on): Remove intprops, verify.
8322
8323 2011-06-04  Bruno Haible  <bruno@clisp.org>
8324
8325         setlocale: Enable replacement on Cygwin 1.5.
8326         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8327         Cygwin 1.5.x.
8328         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8329         LC_CTYPE category also exists on Cygwin 1.5.x.
8330
8331 2011-06-04  Bruno Haible  <bruno@clisp.org>
8332
8333         strerror-override: Don't disable symbol renamings.
8334         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8335         * lib/strerror-override.c: Include config.h.
8336         (strerror_override): Don't undefine.
8337
8338 2011-06-03  Bruno Haible  <bruno@clisp.org>
8339
8340         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8341         * lib/localename.h: Update copyright header.
8342         * lib/localename.c: Likewise.
8343         * lib/relocatable.h: Likewise.
8344         * lib/relocatable.c: Likewise.
8345
8346 2011-06-02  Bruno Haible  <bruno@clisp.org>
8347
8348         doc: Fix a module name.
8349         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8350
8351 2011-06-02  Bruno Haible  <bruno@clisp.org>
8352
8353         pipe2: Remove dependency on 'nonblocking' module.
8354         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8355         O_NONBLOCK is defined by gnulib.
8356         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8357         is zero.
8358         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8359         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8360         defined by gnulib.
8361         (get_nonblocking_flag): New function.
8362         (main): Test O_NONBLOCK flag only if it is nonzero.
8363         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8364
8365 2011-06-03  Jim Meyering  <meyering@redhat.com>
8366
8367         maint: three new prohibit-header-without-use rules
8368         Prohibit use of cloexec.h, posixver.h, same.h without use.
8369         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8370         (sc_prohibit_posixver_without_use): Likewise.
8371         (sc_prohibit_same_without_use): Likewise.
8372
8373 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         allocator: 'die' routine is now given requested size
8376         * lib/allocator.h (struct allocator.die): New size arg.
8377         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8378         If the actual problem is an ssize_t limitation, not a size_t or
8379         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8380
8381 2011-06-01  Eric Blake  <eblake@redhat.com>
8382
8383         strerror: drop strerror_r dependency
8384         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8385         * lib/strerror-override.c (strerror_override): ...to new file.
8386         * lib/strerror-override.h: Add prototype.
8387         * lib/strerror-impl.h: Delete.
8388         * lib/strerror.c (strerror): New implementation.
8389         * modules/errno (Files): Add new files.
8390         (configure.ac): Compile new file as appropriate.
8391         * modules/strerror (Files): Drop unused file.
8392         (Depends-on): Drop strerror_r-posix.
8393         * MODULES.html.sh: Document strerror_r-posix.
8394         Requested by Sam Steingold.
8395
8396         perror: call strerror_r directly
8397         * modules/perror (Files): Drop strerror-impl.h.
8398         * lib/perror.c (perror): Use our own stack buffer, rather than
8399         calling a wrapper that uses static storage.
8400         * doc/posix-functions/perror.texi (perror): Document a limitation
8401         of our replacement.
8402
8403         strerror_r: fix includes for FreeBSD
8404         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8405         since we use abort on some platforms.
8406         Reported by Matthias Bolte.
8407
8408 2011-05-31  Bruno Haible  <bruno@clisp.org>
8409
8410         Fix link errors in tests: openat-die uses gettext-h.
8411         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8412         against $(LIBINTL).
8413         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8414         against $(LIBINTL).
8415         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8416         $(LIBINTL).
8417         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8418         against $(LIBINTL).
8419         * modules/linkat-tests (Makefile.am): Link test-linkat against
8420         $(LIBINTL).
8421         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8422         $(LIBINTL).
8423         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8424         against $(LIBINTL).
8425         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8426         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8427         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8428         $(LIBINTL).
8429         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8430         $(LIBINTL).
8431         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8432         $(LIBINTL).
8433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8434
8435 2011-05-31  Bruno Haible  <bruno@clisp.org>
8436
8437         Fix link errors in tests: wait-process uses gettext-h.
8438         * modules/nonblocking-pipe-tests (Makefile.am): Set
8439         test_nonblocking_pipe_main_LDADD.
8440         * modules/nonblocking-socket-tests (Makefile.am): Link
8441         test-nonblocking-socket-main against $(LIBINTL).
8442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8443
8444 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8445
8446         assert-h: work around 'verify' incompatibility
8447         * lib/verify.h: Use @...@ directives, not ifdef.
8448         * modules/assert-h (assert.h): Implement the directives.
8449         (assert.h): Substitute the symbol-prefix more consistently.
8450
8451 2011-05-29  Jim Meyering  <meyering@redhat.com>
8452
8453         trim: remove three superfluous assignments
8454         * lib/trim.c (trim2): Remove three superfluous assignments
8455         and correct brace positioning.
8456
8457 2011-05-29  Bruno Haible  <bruno@clisp.org>
8458
8459         wctype-h: Avoid namespace pollution on Solaris 2.6.
8460         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8461         identifiers.
8462         * doc/posix-headers/wctype.texi: Mention the problem.
8463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8464
8465 2011-05-28  Jim Meyering  <meyering@redhat.com>
8466
8467         parse-datetime.y: accommodate -Wstrict-overflow
8468         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8469         placate -Wstrict-overflow.
8470
8471         trim: avoid a warning from -O2 -Wstrict-overflow
8472         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8473
8474 2011-05-29  Bruno Haible  <bruno@clisp.org>
8475
8476         gnulib-tool: Fix bug in yesterday's commit.
8477         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8478         twice.
8479
8480 2011-05-29  Bruno Haible  <bruno@clisp.org>
8481
8482         Allow multiple gnulib generated include files to be combined.
8483         * gnulib-tool (func_compute_include_guard_prefix): New function.
8484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8485         ${gl_include_guard_prefix} references.
8486         (func_import, func_create_testdir): Invoke
8487         func_compute_include_guard_prefix.
8488         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8489         * lib/ctype.in.h: Likewise.
8490         * lib/dirent.in.h: Likewise.
8491         * lib/errno.in.h: Likewise.
8492         * lib/fcntl.in.h: Likewise.
8493         * lib/float.in.h: Likewise.
8494         * lib/getopt.in.h: Likewise.
8495         * lib/iconv.in.h: Likewise.
8496         * lib/langinfo.in.h: Likewise.
8497         * lib/locale.in.h: Likewise.
8498         * lib/math.in.h: Likewise.
8499         * lib/netdb.in.h: Likewise.
8500         * lib/netinet_in.in.h: Likewise.
8501         * lib/poll.in.h: Likewise.
8502         * lib/pthread.in.h: Likewise.
8503         * lib/pty.in.h: Likewise.
8504         * lib/sched.in.h: Likewise.
8505         * lib/se-selinux.in.h: Likewise.
8506         * lib/search.in.h: Likewise.
8507         * lib/signal.in.h: Likewise.
8508         * lib/spawn.in.h: Likewise.
8509         * lib/stdarg.in.h: Likewise.
8510         * lib/stddef.in.h: Likewise.
8511         * lib/stdint.in.h: Likewise.
8512         * lib/stdio.in.h: Likewise.
8513         * lib/stdlib.in.h: Likewise.
8514         * lib/string.in.h: Likewise.
8515         * lib/strings.in.h: Likewise.
8516         * lib/sys_file.in.h: Likewise.
8517         * lib/sys_ioctl.in.h: Likewise.
8518         * lib/sys_select.in.h: Likewise.
8519         * lib/sys_socket.in.h: Likewise.
8520         * lib/sys_stat.in.h: Likewise.
8521         * lib/sys_time.in.h: Likewise.
8522         * lib/sys_times.in.h: Likewise.
8523         * lib/sys_uio.in.h: Likewise.
8524         * lib/sys_utsname.in.h: Likewise.
8525         * lib/sys_wait.in.h: Likewise.
8526         * lib/sysexits.in.h: Likewise.
8527         * lib/termios.in.h: Likewise.
8528         * lib/time.in.h: Likewise.
8529         * lib/unistd.in.h: Likewise.
8530         * lib/wchar.in.h: Likewise.
8531         * lib/wctype.in.h: Likewise.
8532         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8533         * modules/ctype (Makefile.am): Likewise.
8534         * modules/dirent (Makefile.am): Likewise.
8535         * modules/errno (Makefile.am): Likewise.
8536         * modules/fcntl-h (Makefile.am): Likewise.
8537         * modules/float (Makefile.am): Likewise.
8538         * modules/getopt-posix (Makefile.am): Likewise.
8539         * modules/iconv-h (Makefile.am): Likewise.
8540         * modules/langinfo (Makefile.am): Likewise.
8541         * modules/locale (Makefile.am): Likewise.
8542         * modules/math (Makefile.am): Likewise.
8543         * modules/netdb (Makefile.am): Likewise.
8544         * modules/netinet_in (Makefile.am): Likewise.
8545         * modules/poll-h (Makefile.am): Likewise.
8546         * modules/pthread (Makefile.am): Likewise.
8547         * modules/pty (Makefile.am): Likewise.
8548         * modules/sched (Makefile.am): Likewise.
8549         * modules/search (Makefile.am): Likewise.
8550         * modules/selinux-h (Makefile.am): Likewise.
8551         * modules/signal (Makefile.am): Likewise.
8552         * modules/spawn (Makefile.am): Likewise.
8553         * modules/stdarg (Makefile.am): Likewise.
8554         * modules/stddef (Makefile.am): Likewise.
8555         * modules/stdint (Makefile.am): Likewise.
8556         * modules/stdio (Makefile.am): Likewise.
8557         * modules/stdlib (Makefile.am): Likewise.
8558         * modules/string (Makefile.am): Likewise.
8559         * modules/strings (Makefile.am): Likewise.
8560         * modules/sys_file (Makefile.am): Likewise.
8561         * modules/sys_ioctl (Makefile.am): Likewise.
8562         * modules/sys_select (Makefile.am): Likewise.
8563         * modules/sys_socket (Makefile.am): Likewise.
8564         * modules/sys_stat (Makefile.am): Likewise.
8565         * modules/sys_time (Makefile.am): Likewise.
8566         * modules/sys_times (Makefile.am): Likewise.
8567         * modules/sys_uio (Makefile.am): Likewise.
8568         * modules/sys_utsname (Makefile.am): Likewise.
8569         * modules/sys_wait (Makefile.am): Likewise.
8570         * modules/sysexits (Makefile.am): Likewise.
8571         * modules/termios (Makefile.am): Likewise.
8572         * modules/time (Makefile.am): Likewise.
8573         * modules/unistd (Makefile.am): Likewise.
8574         * modules/wchar (Makefile.am): Likewise.
8575         * modules/wctype-h (Makefile.am): Likewise.
8576         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8577
8578 2011-05-29  Bruno Haible  <bruno@clisp.org>
8579
8580         assert-h: Allow multiple gnulib generated replacements to coexist.
8581         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8582
8583 2011-05-29  Bruno Haible  <bruno@clisp.org>
8584
8585         argp: Allow coexistence with strerror_r-posix module.
8586         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8587         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8588         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8589         not the glibc signature.
8590
8591 2011-05-28  Bruno Haible  <bruno@clisp.org>
8592
8593         gnulib-tool: Alternative structure of testdirs, similar to --import.
8594         * gnulib-tool: New option --single-configure.
8595         (func_usage): Document it.
8596         (single_configure): New variable.
8597         (func_modules_transitive_closure_separately,
8598         func_modules_transitive_closure_separately,
8599         func_determine_use_libtests, func_modules_add_dummy_separately,
8600         func_modules_to_filelist_separately): New functions, extracted from
8601         func_import.
8602         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8603         (func_import): Use the new functions.
8604         (func_create_testdir): Set final_modules. Handle $single_configure =
8605         true case.
8606
8607 2011-05-28  Bruno Haible  <bruno@clisp.org>
8608
8609         getloadavg: Remove an unreliable safety check.
8610         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8611         getloadavg.c is in place.
8612         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8613         Reported by Sam Steingold <sds@gnu.org>.
8614
8615 2011-05-28  Bruno Haible  <bruno@clisp.org>
8616
8617         doc: Cleanup yet another file produced by texinfo.tex.
8618         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8619
8620 2011-05-28  Bruno Haible  <bruno@clisp.org>
8621
8622         Finish the conditional dependencies mechanism.
8623         * gnulib-tool: New option --no-conditional-dependencies.
8624         (func_usage): Document it. Don't mark --conditional-dependencies as
8625         experimental.
8626         (cond_dependencies): The possible values can now be true, false, empty.
8627         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8628         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8629         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8630
8631 2011-05-28  Bruno Haible  <bruno@clisp.org>
8632
8633         doc: Use a recent texinfo.tex.
8634         * doc/Makefile (tex_opts): New variable.
8635         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8636
8637 2011-05-28  Jim Meyering  <meyering@redhat.com>
8638
8639         intprops.h: adjust comment to match code change
8640         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8641         only once, it *may* have side effects.  Also fix an unrelated typo.
8642         (_GL_INT_SIGNED): Likewise.
8643
8644 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8645
8646         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8647
8648 2011-05-26  Bruno Haible  <bruno@clisp.org>
8649
8650         mbsrchr: Avoid collision with system function on Interix.
8651         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8652         Reported by Markus Duft <mduft@gentoo.org>.
8653
8654 2011-05-15  James Youngman  <jay@gnu.org>
8655
8656         getopt: for ambiguous options, enumerate the possibilities.
8657         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8658         the ambiguous options when an ambiguous prefix is given. This was
8659         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8660         glibc change was
8661         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8662
8663 2011-05-25  Eric Blake  <eblake@redhat.com>
8664
8665         getcwd: work around mingw bug
8666         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8667         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8668         Reported by Matthias Bolte.
8669
8670 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8671
8672         test-intprops: disable -Wtype-limits diagnostics
8673         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8674         diagnostics.  Otherwise, the integer overflow macros generate many
8675         diagnostics.  Reported by Jim Meyering in
8676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8677
8678         intprops: shorten, to pacify gcc -Woverlength-strings
8679         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8680         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8681         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8682         likely to run afoul of C compiler limits for string constant lengths.
8683         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8684
8685 2011-05-24  Eric Blake  <eblake@redhat.com>
8686
8687         docs: document recently fixed glibc printf bug
8688         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8689         * doc/posix-functions/printf.texi (printf): Likewise.
8690         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8691         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8692
8693         closein-tests: convert to init.sh
8694         * modules/closein-tests (Files): Add init.sh
8695         * tests/test-closein.sh Use it.
8696
8697         yesno-tests: convert to init.sh
8698         * modules/yesno-tests (Files): Add init.sh.
8699         * tests/test-yesno.sh: Use it.
8700
8701         atexit-tests: ensure reliable exit status
8702         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8703         Reported by Bruno Haible.
8704
8705 2011-05-24  Bruno Haible  <bruno@clisp.org>
8706
8707         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8709         gl_PREREQ_STRERROR_R invocations from here...
8710         * modules/strerror_r-posix (configure.ac): ... to here.
8711
8712 2011-05-24  Eric Blake  <eblake@redhat.com>
8713
8714         strerror_r: fix missing header
8715         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8716
8717         strerror_r: fix AIX test failures
8718         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8719         ERANGE failure.
8720
8721         strerror_r: fix Solaris test failures
8722         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8723         failures.
8724         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8725
8726         strerror_r: enforce POSIX recommendations
8727         * lib/strerror_r.c (safe_copy): New helper method.
8728         (strerror_r): Guarantee a non-empty string.
8729         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8730         recent POSIX rulings and to match our strerror guarantees.
8731         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8732
8733 2011-05-24  Jim Meyering  <meyering@redhat.com>
8734
8735         test-perror2.c: avoid warning about unused variable
8736         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8737
8738 2011-05-24  Eric Blake  <eblake@redhat.com>
8739
8740         perror: avoid spurious test failure on HP-UX
8741         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8742
8743         tests: fix logic bug in init.sh
8744         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8745         shell.
8746
8747 2011-05-24  Jim Meyering  <meyering@redhat.com>
8748
8749         utimensat: do not reference an out-of-scope buffer
8750         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8751         declared in an inner scope, yet "times" would be dereferenced outside
8752         the scope in which "ts" was valid.
8753         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8754         of ts[2] "out/up", so that the use of aliased "times" (via
8755         "times = ts;") does not end up referencing an out-of-scope "ts"
8756
8757         opendir-safer.c: don't clobber errno; don't close negative FD
8758         * lib/opendir-safer.c (opendir_safer):
8759         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8760         file descriptor, and more importantly, don't clobber the
8761         offending errno value with EINVAL.  Before, upon failure
8762         of dup_safer, we would pass the negative file descriptor to
8763         fdopendir, which would clobber errno.
8764
8765 2011-05-23  Bruno Haible  <bruno@clisp.org>
8766
8767         idcache: Fix module description.
8768         * modules/idcache (Include): Set to "idcache.h".
8769
8770 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8771
8772         gnulib-tool: fix portability problem with MacOS sed
8773         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8774         before the "}".  Problem reported by Leo in
8775         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8776         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8777         sed_extract_condition1, sed_extract_condition2.
8778
8779 2011-05-23  Bruno Haible  <bruno@clisp.org>
8780
8781         hash: Simplify autoconf macro.
8782         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8783
8784 2011-05-23  Bruno Haible  <bruno@clisp.org>
8785
8786         getugroups: Fix module description.
8787         * modules/getugroups (Include): Set to "getugroups.h".
8788
8789 2011-05-23  Bruno Haible  <bruno@clisp.org>
8790
8791         linkat: Simplify autoconf macro.
8792         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8793
8794 2011-05-23  Bruno Haible  <bruno@clisp.org>
8795             Eric Blake  <eblake@redhat.com>
8796
8797         linkat, renameat: Update dependencies.
8798         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8799         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8800         symlinkat.
8801
8802 2011-05-23  Jim Meyering  <meyering@redhat.com>
8803
8804         maint.mk: more tight_scope improvements
8805         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8806         (_gl_TS_headers): Define only in if-0'd block.
8807         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8808         sometimes we must *not* use it.  Adjust uses accordingly.
8809         (sc_tight_scope): Use much simpler grep-based test to determine
8810         whether we skip this rule.
8811
8812         maint.mk: generalize/improve the tight-scope rule
8813         * top/maint.mk: Emit a warning when the test is skipped.
8814         (_gl_TS_dir): Add $(srcdir)/ prefix.
8815         (_gl_TS_function_match): Simplify, rather than trying
8816         to enumerate common types.  Otherwise, it would fail to match an
8817         "extern unsigned char const *" declaration in idutils.
8818         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8819         a way to support use of that type of macro.
8820         (_gl_TS_var_match): Simplify regexp.
8821         (_gl_TS_obj_files): New configurable variable.
8822         (_gl_TS_headers): Likewise.
8823
8824 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         verify: fix bug when gnulib <assert.h> is also included
8827         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8828         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8829         Perhaps there's a better way, but this fixes the immediate problem.
8830         Problem reported by Bruno Haible in
8831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8832
8833 2011-05-22  Bruno Haible  <bruno@clisp.org>
8834
8835         xgetcwd: Simplify autoconf macro.
8836         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8837
8838 2011-05-22  Bruno Haible  <bruno@clisp.org>
8839
8840         New module 'mktime-internal'.
8841         * modules/mktime-internal: New file.
8842         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8843         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8844         mktime_internal as a C macro if libc has __mktime_internal.
8845         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8846         conditions.
8847         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8848
8849 2011-05-22  Bruno Haible  <bruno@clisp.org>
8850
8851         timegm: Correct mktime replacement statements.
8852         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8853         defining mktime as a C macro. This completes a 2009-07-28 commit.
8854
8855 2011-05-22  Bruno Haible  <bruno@clisp.org>
8856
8857         timegm: Simplify autoconf macro.
8858         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8859
8860 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8861
8862         clock-time: change to LGPLv2+.
8863         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8864         BSD-like but we have no mark for that; this is good enough for now.
8865
8866 2011-05-21  Bruno Haible  <bruno@clisp.org>
8867
8868         strerror_r: Fix comments.
8869         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8870
8871 2011-05-21  Bruno Haible  <bruno@clisp.org>
8872
8873         relocatable-prog-wrapper: Fix possible link error.
8874         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8875         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8876         (gl_FUNC_SETENV): ... to here.
8877         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8878         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8879
8880 2011-05-21  Bruno Haible  <bruno@clisp.org>
8881
8882         relocatable-prog-wrapper: Assume strerror() exists.
8883         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8884         m4/strerror.m4.
8885         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8886         * lib/relocwrapper.c: Remove mention of strerror module.
8887         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8888         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8889         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8890         C macro.
8891
8892 2011-05-21  Bruno Haible  <bruno@clisp.org>
8893
8894         select: Simplify replacement idiom.
8895         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8896         Win32 platforms.
8897         * lib/sys_select.in.h (select): Simplify accordingly.
8898         * modules/select (Depends-on): Likewise.
8899
8900 2011-05-21  Bruno Haible  <bruno@clisp.org>
8901
8902         mkdir-p: Simplify autoconf macro.
8903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8904         gl_FUNC_LCHOWN.
8905
8906 2011-05-21  Eric Blake  <eblake@redhat.com>
8907
8908         strerror_r: avoid clobbering strerror on cygwin
8909         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8910         fall back instead to sys_errlist.
8911         * modules/strerror (configure.ac): Add witness.
8912         * tests/test-strerror_r.c (main): Enhance test.
8913         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8914         * tests/test-perror2.c (main): Free memory before exit.
8915
8916 2011-05-21  Bruno Haible  <bruno@clisp.org>
8917
8918         mkdtemp: Use gnulib naming conventions.
8919         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8920         * modules/mkdtemp (configure.ac): Update.
8921
8922 2011-05-20  Eric Blake  <eblake@redhat.com>
8923
8924         strerror_r: avoid corrupting errno on Solaris
8925         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8926         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8927
8928         strerror_r: avoid compiler warning
8929         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8930
8931         strerror_r: simplify AIX code
8932         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8933
8934         test-perror: avoid spurious failure on FreeBSD
8935         * modules/perror-tests (Depends-on): Add strerror, now that
8936         strerror_r no longer pulls it in.
8937
8938 2011-05-20  Bruno Haible  <bruno@clisp.org>
8939
8940         strerror_r-posix: Remove unused dependencies.
8941         * modules/strerror_r-posix (Depends-on): Remove strerror.
8942         Reported by Eric Blake.
8943
8944 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8945
8946         intprops: remove assumption about A|B representation
8947         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8948         is a valid integer if both A and B are.  Although this is true for
8949         all known practical hosts, the C standard doesn't guarantee it,
8950         and the code need not assume it.  Also, this change may work around
8951         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8953
8954 2011-05-20  Eric Blake  <eblake@redhat.com>
8955
8956         perror: work around FreeBSD bug
8957         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8958         is broken.  Move AC_LIBOBJ...
8959         * modules/perror (configure.ac): Here.
8960         * doc/posix-functions/perror.texi (perror): Document this.
8961         * tests/test-perror2.c (main): Enhance test.
8962
8963         test-perror: check for strerror interactions
8964         * tests/macros.h (STREQ): Add macro.
8965         * modules/perror-tests (Files): Add second test.
8966         * tests/test-perror2.c (main): New file.
8967         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8968
8969         test-perror: rewrite to use init script
8970         * modules/perror-tests (Files): Add init.sh.
8971         * tests/test-perror.sh: Use temporary directory.
8972
8973 2011-05-20  Jim Meyering  <meyering@redhat.com>
8974
8975         maint: replace misused "a" with "an"
8976         * doc/intprops.texi: "a integer"
8977         * doc/regex.texi: "a explanation"
8978         * lib/alignof.h: "a object"
8979         * lib/argmatch.h: "a explanation"
8980         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8981         * lib/stdint.in.h: "a integer"
8982         * lib/userspec.c: "a owner"
8983         * doc/gnulib.texi: Fix "a idea", and reword.
8984
8985 2011-05-19  Jim Meyering  <meyering@redhat.com>
8986
8987         maint: correct misuse of "a" and "an"
8988         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8989         * lib/argp-help.c: "an docum...": s/an/a/
8990         * lib/argp-parse.c: "An vector": s/An/A/
8991         * lib/execute.c: "an native": s/an/a/
8992         * lib/spawn-pipe.c: Likewise.
8993         * lib/gc.h: "an Gc_rc": s/an/a/
8994         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8995         * lib/fts.c: "an stat.st_dev": s/an/a/
8996
8997 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         intprops-tests: work around HP-UX 11.23 cc bug with constants
9000         * tests/test-intprops.c (VERIFY): New macro.
9001         (main): Use it, instead of verify, to work around the compiler bug; see
9002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9003
9004         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9005         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9006         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9007         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9008         (_GL_REMAINDER_OVERFLOW): Use it.
9009
9010         intprops-tests: revert unsigned part of previous change
9011         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9012         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9013         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9015
9016 2011-05-19  Bruno Haible  <bruno@clisp.org>
9017
9018         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9019         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9020         strerror_r() returned without filling the buffer.
9021         Reported by Eric Blake.
9022
9023 2011-05-19  Eric Blake  <eblake@redhat.com>
9024
9025         strerror_r: guarantee unchanged errno
9026         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9027         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9028         failure.
9029         * tests/test-strerror_r.c (main): Enhance test.
9030
9031 2011-05-19  Bruno Haible  <bruno@clisp.org>
9032
9033         strerror_r: Reorder #if blocks.
9034         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9035         for consistency with the previous commit.
9036
9037 2011-05-19  Bruno Haible  <bruno@clisp.org>
9038
9039         perror: Avoid clobbering the strerror buffer when possible.
9040         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9041         * lib/strerror.c: Include it.
9042         * modules/strerror (Files): Add lib/strerror-impl.h.
9043         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9044         (my_strerror): New function, defined through lib/strerror-impl.h.
9045         (perror): Use it instead of strerror.
9046         * modules/perror (Files): Add lib/strerror-impl.h.
9047         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9048
9049 2011-05-19  Eric Blake  <eblake@redhat.com>
9050
9051         strerror_r: fix on newer cygwin
9052         * lib/strerror_r.c (strerror_r): Cygwin now has
9053         __xpg_strerror_r, use it.
9054
9055 2011-05-19  Bruno Haible  <bruno@clisp.org>
9056
9057         strerror_r: Avoid clobbering the strerror buffer when possible.
9058         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9059         (sys_nerr, sys_errlist): New declarations.
9060         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9061         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9062         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9063
9064 2011-05-19  Bruno Haible  <bruno@clisp.org>
9065
9066         strerror_r: Fix test failure on mingw.
9067         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9068         EXTEND_STRERROR_R.
9069         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9070         macros from errno.in.h instead.
9071
9072 2011-05-19  Eric Blake  <eblake@redhat.com>
9073
9074         strerror: relax test for Solaris
9075         * tests/test-strerror.c (main): Permit Solaris behavior.
9076         * tests/test-strerror_r.c (main): Likewise.
9077
9078         strerror: enforce POSIX ruling on strerror(0)
9079         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9080         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9081         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9082         * doc/posix-functions/strerror.texi (strerror): Document it.
9083         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9084         * tests/test-strerror.c (main): Strengthen test.
9085         * tests/test-strerror_r.c (main): Likewise.
9086
9087 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9088
9089         intprop-tests: port to older and more-pedantic compilers
9090         * modules/intprops-tests (Files): Add tests/macros.h.
9091         * tests/test-intprops.c: Include macros.h.
9092         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9093         it's no longer documented to expand to an integer constant expression.
9094         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9095         argument is floating point, as it's no longer documented to expand
9096         to an integer constant expression in that case.
9097         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9098         compiler bugs reported by Bruno Haible.  See
9099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9100         (U0, U1): New constants, to work around the same bugs.  Also,
9101         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9102
9103         intprops: work around C compiler bugs
9104         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9105         bug in Sun C 5.11 2010/08/13 and other compilers; see
9106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9107
9108         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9109         * doc/intprops.texi (Integer Type Determination): Fix
9110         documentation for TYPE_IS_INTEGER: it returns an constant
9111         expression, not an integer constant expression.  Fix doc for
9112         TYPE_SIGNED: it returns an integer constant expression only if its
9113         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9114         hardly worth documented that way....)
9115
9116 2011-05-18  Bruno Haible  <bruno@clisp.org>
9117
9118         strerror_r: Avoid clobbering the strerror buffer when possible.
9119         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9120         Handle gnulib defined errno values here. When strerror() returns NULL
9121         or an empty string, return EINVAL.
9122         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9123         gnulib defined errno values here.
9124         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9125
9126 2011-05-18  Eric Blake  <eblake@redhat.com>
9127
9128         fnmatch: avoid compiler warning
9129         * lib/fnmatch_loop.c (FCT): Use correct type.
9130         Reported by Matthias Bolte.
9131
9132 2011-05-13  Jim Meyering  <meyering@redhat.com>
9133
9134         maint.mk: three new prohibit_<HDR>_without_use rules
9135         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9136         (sc_prohibit_stdio-safer_without_use): Likewise.
9137         (sc_prohibit_xfreopen_without_use): Likewise.
9138
9139 2011-05-17  Jim Meyering  <meyering@redhat.com>
9140
9141         announce-gen: fail if the NEWS delta is empty
9142         If there's nothing noteworthy in NEWS, then either you forgot
9143         or you shouldn't be releasing.
9144         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9145
9146 2011-05-17  Pádraig Brady <P@draigBrady.com>
9147
9148         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9149         reserved symbols starting with double underscore from the check.
9150
9151 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9152
9153         intprops: add doc
9154         * doc/intprops.texi: New file, documenting intprops.
9155         * doc/gnulib.texi (Particular Modules): Include it.
9156
9157         verify: add doc to gnulib manual and fix example
9158         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9159         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9160         (Compile-time Assertions): Fix example so it can't overflow.
9161
9162 2011-05-17  Jim Meyering  <meyering@redhat.com>
9163
9164         warnings.m4: don't usurp save_CPPFLAGS variable name
9165         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9166
9167         doc: fix typo
9168         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9169
9170 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9171             Bruno Haible  <bruno@clisp.org>
9172
9173         doc: Tweak recent change.
9174         * README (Portability guidelines): Tweak new text.
9175         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9176         Interix 6.1.
9177
9178 2011-05-16  Eric Blake  <eblake@redhat.com>
9179
9180         inttypes: avoid autoconf warning
9181         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9182         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9183
9184 2011-05-16  Sam Steingold <sds@gnu.org>
9185         and Eric Blake  <eblake@redhat.com>
9186
9187         vc-list-files: accept multiple directory operands
9188         * build-aux/vc-list-files: Iterate over all remaining operands.
9189
9190 2011-05-16  Bruno Haible  <bruno@clisp.org>
9191
9192         Fix confusion regarding deprecated modules.
9193         * modules/calloc (Status, Notice): Mark module as deprecated, not
9194         obsolete.
9195         * modules/fnmatch-posix (Status, Notice): Likewise.
9196         * modules/getdate (Status, Notice): Likewise.
9197         * modules/getopt (Status, Notice): Likewise.
9198         * modules/malloc (Status, Notice): Likewise.
9199         * modules/pipe (Status, Notice): Likewise.
9200         * modules/realloc (Status, Notice): Likewise.
9201         * modules/rename-dest-slash (Status, Notice): Likewise.
9202         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9203         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9204         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9205         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9206         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9207
9208 2011-05-16  Bruno Haible  <bruno@clisp.org>
9209
9210         doc: List the target platforms.
9211         * doc/gnulib-intro.texi (Target Platforms): New section.
9212         * doc/gnulib.texi (Introduction): Update menu.
9213         * README (Portability guidelines): Refer to the new section. Update
9214         statement about oldest supported environment. Remove rationale why
9215         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9216         unportable C89 function.
9217         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9218         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9219
9220 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9221
9222         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9223
9224 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9225
9226         intprops-tests: new module
9227         * modules/intprops-tests, tests/test-intprops.c: New files.
9228
9229         intprops: add safe, portable integer overflow checking
9230         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9231         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9232         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9233         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9234         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9235         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9236         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9237         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9238         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9239         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9240         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9241
9242 2011-05-12  James Youngman  <jay@gnu.org>
9243
9244         Add a test for glibc's Bugzilla bug #12378.
9245         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9246         doesn't allow the literal matching of a lone "[" (which is
9247         required by POSIX).
9248         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9249
9250 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9251
9252         Sync glibc change fixing Bugzilla bug #12378.
9253         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9254         beginning and fall back to matching as normal character if the
9255         string ends before the matching ']' is found.  This is what POSIX
9256         requires.
9257
9258 2011-05-13  Eric Blake  <eblake@redhat.com>
9259
9260         getcwd-lgpl: relax test for FreeBSD
9261         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9262         issue.
9263         * tests/test-getcwd-lgpl.c (main): Relax test.
9264         Reported by Matthias Bolte.
9265
9266 2011-05-11  Eric Blake  <eblake@redhat.com>
9267
9268         test-fflush: silence compiler warning
9269         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9270
9271 2011-05-11  Bruno Haible  <bruno@clisp.org>
9272
9273         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9274         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9275         * modules/canonicalize (Depends-on): Add 'nocrash'.
9276         * modules/canonicalize-lgpl (Depends-on): Likewise.
9277         * doc/posix-functions/realpath.texi: Update platforms list.
9278         Reported by Ryan Schmidt <ryandesign@macports.org>.
9279
9280 2011-05-11  Bruno Haible  <bruno@clisp.org>
9281
9282         group-member: Declare function in <unistd.h>.
9283         * lib/unistd.in.h (group_member): New declaration.
9284         * lib/group-member.h: Remove file.
9285         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9286         * tests/test-unistd-c++.cc: Check signature of group_member.
9287         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9288         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9289         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9290         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9291         HAVE_GROUP_MEMBER.
9292         * modules/group-member (Files): Remove lib/group-member.h.
9293         (Depends-on): Add unistd. Specify conditions.
9294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9295         (Include): Change to <unistd.h>.
9296         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9297         HAVE_GROUP_MEMBER.
9298         * NEWS: Mention the change.
9299         * lib/euidaccess.c: Don't include group-member.h.
9300
9301 2011-05-11  Bruno Haible  <bruno@clisp.org>
9302
9303         group-member: Document module.
9304         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9305         module.
9306
9307 2011-05-11  Bruno Haible  <bruno@clisp.org>
9308
9309         fclose: Fix mistake earlier today.
9310         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9311
9312 2011-05-11  Eric Blake  <eblake@redhat.com>
9313
9314         fclose: preserve fflush errors
9315         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9316         Reported by Jim Meyering.
9317
9318         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9319         * build-aux/bootstrap (check_versions): When no specific version
9320         is required, merely check that the app produces an exit status
9321         that indicates its existence.
9322
9323         maint.mk: drop redundant check
9324         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9325         the same but better.
9326
9327 2011-05-11  Bruno Haible  <bruno@clisp.org>
9328
9329         fclose: Fix possible link error.
9330         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9331         unregister_shadow_fd. Improve comments.
9332         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9333         Eric Blake.
9334
9335 2011-05-11  Jim Meyering  <meyering@redhat.com>
9336
9337         maint.mk: improve "can not" detection and generalize rule name
9338         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9339         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9340         Use the same technique as in sc_prohibit_doubled_word, so that
9341         we recognize "can not" also when the words are separated by a newline.
9342         Suggested by Eric Blake.
9343         (perl_filename_lineno_text_): Define.  Factored out of...
9344         (prohibit_doubled_word_): ...here.  Use the new definition.
9345         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9346         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9347         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9348
9349 2011-05-10  Eric Blake  <eblake@redhat.com>
9350
9351         fclose: avoid double close race when possible
9352         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9353         all but WINDOWS_SOCKETS.
9354
9355 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9356
9357         openat: correct new comment
9358         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9359
9360 2011-05-10  Jim Meyering  <meyering@redhat.com>
9361
9362         openat: add comments
9363         * lib/openat-proc.c (openat_proc_name): Add comments,
9364         mostly from Eric Blake.
9365
9366 2011-05-09  Eric Blake  <eblake@redhat.com>
9367
9368         openat: reduce syscalls in first probe of /proc
9369         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9370         be a directory.  Simplify the probe for .. bugs.
9371         * modules/openat (Depends-on): Drop same-inode.
9372         Reported by Bastien ROUCARIES.
9373
9374 2011-05-09  Jim Meyering  <meyering@redhat.com>
9375
9376         maint.mk: change semantics/name of tight_scope variables
9377         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9378         Rename variables to align with semantics that make them more useful.
9379
9380         maint.mk: tweak new rule's name not to impinge
9381         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9382         (sc_tight_scope): Use new rule name rather than $@-0.
9383
9384         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9385         * top/maint.mk (sc_tight_scope): New rule.
9386         (sc_tight_scope-0): New rule, ifdef'd out.
9387         (_gl_TS_dir): Default.
9388         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9389         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9390
9391 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9392
9393         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9394         Haible <bruno@clisp.org>.
9395
9396 2011-05-08  Bruno Haible  <bruno@clisp.org>
9397
9398         Comments.
9399         * m4/isnanf.m4: Add comment.
9400         * m4/isnanl.m4: Likewise.
9401
9402 2011-05-08  Bruno Haible  <bruno@clisp.org>
9403
9404         glob: Remove obsolete macro.
9405         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9406
9407 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9408
9409         intprops: Sun C 5.11 supports __typeof__
9410         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9411         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9412         which is new.
9413         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9414
9415         intprops: switch to usual gnulib indenting and naming
9416         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9417         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9418
9419         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9420
9421 2011-05-08  Jim Meyering  <meyering@redhat.com>
9422
9423         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9424         * top/maint.mk (release-prep): Use make's --no-print-directory
9425         option when generating the announcement.  This eliminates the
9426         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9427         generated announcement template.
9428
9429 2011-05-08  Bruno Haible  <bruno@clisp.org>
9430
9431         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9432         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9433         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9434
9435 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9436
9437         ignore-value, verify: Omit include files from lib_SOURCES.
9438         * modules/ignore-value, modules/verify (Makefile.am):
9439         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9440         that leads Automake to duplicate use of am__objects_... variables
9441         in Makefile.in.  See
9442         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9443
9444 2011-05-07  Bruno Haible  <bruno@clisp.org>
9445
9446         fclose: Simplify autoconf macro.
9447         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9448         defined.
9449
9450 2011-05-07  Bruno Haible  <bruno@clisp.org>
9451
9452         canonicalize-lgpl: Fix autoconf macro ordering bug.
9453         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9454         gl_STDLIB_H_DEFAULTS.
9455
9456 2011-05-06  Eric Blake  <eblake@redhat.com>
9457
9458         maintainer-makefile: make sc_po_check easier to tune
9459         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9460         to probe for strings, such as an alternate location for gnulib.
9461
9462         fclose: guarantee behavior on seekable stdin
9463         * modules/fclose (Depends-on): Add fflush.
9464         * doc/posix-functions/fclose.texi (fclose): Document this.
9465         * tests/test-fclose.c (main): Make test for this unconditional.
9466
9467 2011-05-06  Bruno Haible  <bruno@clisp.org>
9468
9469         fflush, fpurge: Relicense under LGPLv2+.
9470         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9471         * modules/fpurge (License): Likewise.
9472         With permission from Eric Blake and Jim Meyering.
9473         Suggested by Eric Blake.
9474
9475 2011-05-06  Karl Berry  <karl@gnu.org>
9476
9477         * MODULES.html.sh (func_all_modules): remove exit.
9478
9479 2011-05-06  Jim Meyering  <meyering@redhat.com>
9480
9481         maint.mk: use info-gnu@ as the default only for a stable release
9482         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9483         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9484         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9485         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9486
9487 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9488
9489         assert-h: new module, which supports C1X-style static_assert
9490         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9491         * lib/verify.h: Revamp so that this can be copied into assert.h,
9492         while retaining the ability to use it standalone as before.
9493         Rename private identifiers so as not to encroach on the
9494         standard C namespace, since this is now used by assert.h.
9495         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9496         the old verify_true.
9497         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9498         the old verify_true.  Use _GL_VERIFY_TYPE.
9499         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9500         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9501         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9502         defined when this file is copied into the replacement assert.h.
9503         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9504         and _Static_assert is not built in.
9505         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9506         defined, and use the new macros mentioned above.
9507         * doc/posix-headers/assert.texi: Document this.
9508
9509 2011-05-05  Bruno Haible  <bruno@clisp.org>
9510
9511         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9512         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9513         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9514         gl_REPLACE_FCLOSE here.
9515         * modules/fflush (Depends-on): Remove fclose.
9516         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9517         combination with module 'fclose'.
9518
9519 2011-05-05  Bruno Haible  <bruno@clisp.org>
9520
9521         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9522         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9523         gl_FUNC_FFLUSH.
9524         (gl_FUNC_FFLUSH): Use it.
9525         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9527         gl_REPLACE_FSEEKO here.
9528
9529 2011-05-05  Bruno Haible  <bruno@clisp.org>
9530
9531         tzset: Relicense under LGPL.
9532         * modules/tzset (License): Change to LGPL.
9533         No agreement needed; it's a no-op.
9534
9535         strtoimax, strtoumax: Relicense under LGPL.
9536         * modules/strtoimax (License): Change to LGPL.
9537         * modules/strtoumax (License): Likewise.
9538         With permission from Jim Meyering, Paul Eggert:
9539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9541
9542         getgroups: Relicense under LGPL.
9543         * modules/getgroups (License): Change to LGPL.
9544         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9548
9549         nanosleep: Relicense under LGPL.
9550         * modules/nanosleep (License): Change to LGPL.
9551         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9552         Haible:
9553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9557
9558         futimens: Relicense under LGPL.
9559         * modules/futimens (License): Change to LGPL.
9560         With permission from Eric Blake:
9561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9562
9563         fflush: Relicense under LGPL.
9564         * modules/fflush (License): Change to LGPL.
9565         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9569
9570         tmpfile: Relicense under LGPL.
9571         * modules/tmpfile (License): Change to LGPL.
9572         With permission from Ben Pfaff:
9573         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9574
9575         isfinite: Relicense under LGPL.
9576         * modules/isfinite (License): Change to LGPL.
9577         With permission from Ben Pfaff, Bruno Haible:
9578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9580
9581         acosl..tanl: Relicense under LGPL.
9582         * modules/acosl (License): Change to LGPL.
9583         * modules/asinl (License): Likewise.
9584         * modules/atanl (License): Likewise.
9585         * modules/cosl (License): Likewise.
9586         * modules/expl (License): Likewise.
9587         * modules/logl (License): Likewise.
9588         * modules/sinl (License): Likewise.
9589         * modules/sqrtl (License): Likewise.
9590         * modules/tanl (License): Likewise.
9591         Source code originally from glibc and Paolo Bonzini. Agreements:
9592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9594
9595 2011-05-05  Bruno Haible  <bruno@clisp.org>
9596
9597         signal: Define sighandler_t.
9598         * lib/signal.in.h (sighandler_t): New type.
9599         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9600         whether sighandler_t is defined.
9601         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9602         * modules/signal (Depends-on): Add extensions.
9603         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9604         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9605         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9606
9607 2011-05-05  Eric Blake  <eblake@redhat.com>
9608
9609         maint: remove useless REPLACE_*_H macros
9610         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9611         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9612         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9613         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9614         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9615         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9616         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9617         * m4/btowc.m4: Update callers.
9618         * m4/dirfd.m4: Likewise.
9619         * m4/duplocale.m4: Likewise.
9620         * m4/fchdir.m4: Likewise.
9621         * m4/fdopendir.m4: Likewise.
9622         * m4/inet_ntop.m4: Likewise.
9623         * m4/inet_pton.m4: Likewise.
9624         * m4/ioctl.m4: Likewise.
9625         * m4/mbrlen.m4: Likewise.
9626         * m4/mbrtowc.m4: Likewise.
9627         * m4/mbsinit.m4: Likewise.
9628         * m4/mbsnrtowcs.m4: Likewise.
9629         * m4/mbsrtowcs.m4: Likewise.
9630         * m4/poll.m4: Likewise.
9631         * m4/setlocale.m4: Likewise.
9632         * m4/wcrtomb.m4: Likewise.
9633         * m4/wcsnrtombs.m4: Likewise.
9634         * m4/wcsrtombs.m4: Likewise.
9635         * m4/wctob.m4: Likewise.
9636         * m4/wcwidth.m4: Likewise.
9637         * modules/posix_spawn: Likewise.
9638         * modules/posix_spawn_file_actions_addclose: Likewise.
9639         * modules/posix_spawn_file_actions_adddup2: Likewise.
9640         * modules/posix_spawn_file_actions_addopen: Likewise.
9641         * modules/posix_spawn_file_actions_destroy: Likewise.
9642         * modules/posix_spawn_file_actions_init: Likewise.
9643         * modules/posix_spawnattr_destroy: Likewise.
9644         * modules/posix_spawnattr_getflags: Likewise.
9645         * modules/posix_spawnattr_getpgroup: Likewise.
9646         * modules/posix_spawnattr_getschedparam: Likewise.
9647         * modules/posix_spawnattr_getschedpolicy: Likewise.
9648         * modules/posix_spawnattr_getsigdefault: Likewise.
9649         * modules/posix_spawnattr_getsigmask: Likewise.
9650         * modules/posix_spawnattr_init: Likewise.
9651         * modules/posix_spawnattr_setflags: Likewise.
9652         * modules/posix_spawnattr_setpgroup: Likewise.
9653         * modules/posix_spawnattr_setschedparam: Likewise.
9654         * modules/posix_spawnattr_setschedpolicy: Likewise.
9655         * modules/posix_spawnattr_setsigdefault: Likewise.
9656         * modules/posix_spawnattr_setsigmask: Likewise.
9657         * modules/posix_spawnp: Likewise.
9658
9659 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9660
9661         Add option to do-release-commit-and-tag to specify branch.
9662         * build-aux/do-release-commit-and-tag: Add --branch.
9663
9664 2011-05-03  Bruno Haible  <bruno@clisp.org>
9665
9666         Avoid unnecessary compilation units, through conditional dependencies.
9667         * modules/accept (Depends-on): Add conditions to the dependencies.
9668         * modules/acosl (Depends-on): Likewise.
9669         * modules/argz (Depends-on): Likewise.
9670         * modules/asinl (Depends-on): Likewise.
9671         * modules/atanl (Depends-on): Likewise.
9672         * modules/atoll (Depends-on): Likewise.
9673         * modules/bind (Depends-on): Likewise.
9674         * modules/btowc (Depends-on): Likewise.
9675         * modules/canonicalize-lgpl (Depends-on): Likewise.
9676         * modules/ceil (Depends-on): Likewise.
9677         * modules/ceilf (Depends-on): Likewise.
9678         * modules/ceill (Depends-on): Likewise.
9679         * modules/chdir-long (Depends-on): Likewise.
9680         * modules/chown (Depends-on): Likewise.
9681         * modules/close (Depends-on): Likewise.
9682         * modules/connect (Depends-on): Likewise.
9683         * modules/cosl (Depends-on): Likewise.
9684         * modules/dirfd (Depends-on): Likewise.
9685         * modules/dprintf (Depends-on): Likewise.
9686         * modules/dprintf-posix (Depends-on): Likewise.
9687         * modules/error (Depends-on): Likewise.
9688         * modules/euidaccess (Depends-on): Likewise.
9689         * modules/expl (Depends-on): Likewise.
9690         * modules/faccessat (Depends-on): Likewise.
9691         * modules/fchdir (Depends-on): Likewise.
9692         * modules/fclose (Depends-on): Likewise.
9693         * modules/fcntl (Depends-on): Likewise.
9694         * modules/fdopendir (Depends-on): Likewise.
9695         * modules/fflush (Depends-on): Likewise.
9696         * modules/floor (Depends-on): Likewise.
9697         * modules/floorf (Depends-on): Likewise.
9698         * modules/floorl (Depends-on): Likewise.
9699         * modules/fnmatch (Depends-on): Likewise.
9700         * modules/fopen (Depends-on): Likewise.
9701         * modules/fprintf-posix (Depends-on): Likewise.
9702         * modules/frexp (Depends-on): Likewise.
9703         * modules/frexp-nolibm (Depends-on): Likewise.
9704         * modules/frexpl (Depends-on): Likewise.
9705         * modules/frexpl-nolibm (Depends-on): Likewise.
9706         * modules/fseek (Depends-on): Likewise.
9707         * modules/fsusage (Depends-on): Likewise.
9708         * modules/ftell (Depends-on): Likewise.
9709         * modules/ftello (Depends-on): Likewise.
9710         * modules/futimens (Depends-on): Likewise.
9711         * modules/getcwd (Depends-on): Likewise.
9712         * modules/getcwd-lgpl (Depends-on): Likewise.
9713         * modules/getdelim (Depends-on): Likewise.
9714         * modules/getdomainname (Depends-on): Likewise.
9715         * modules/getgroups (Depends-on): Likewise.
9716         * modules/gethostname (Depends-on): Likewise.
9717         * modules/getline (Depends-on): Likewise.
9718         * modules/getlogin_r (Depends-on): Likewise.
9719         * modules/getopt-posix (Depends-on): Likewise.
9720         * modules/getpeername (Depends-on): Likewise.
9721         * modules/getsockname (Depends-on): Likewise.
9722         * modules/getsockopt (Depends-on): Likewise.
9723         * modules/getsubopt (Depends-on): Likewise.
9724         * modules/getusershell (Depends-on): Likewise.
9725         * modules/glob (Depends-on): Likewise.
9726         * modules/grantpt (Depends-on): Likewise.
9727         * modules/iconv_open (Depends-on): Likewise.
9728         * modules/iconv_open-utf (Depends-on): Likewise.
9729         * modules/inet_ntop (Depends-on): Likewise.
9730         * modules/inet_pton (Depends-on): Likewise.
9731         * modules/ioctl (Depends-on): Likewise.
9732         * modules/isapipe (Depends-on): Likewise.
9733         * modules/isfinite (Depends-on): Likewise.
9734         * modules/isinf (Depends-on): Likewise.
9735         * modules/lchown (Depends-on): Likewise.
9736         * modules/ldexpl (Depends-on): Likewise.
9737         * modules/link (Depends-on): Likewise.
9738         * modules/linkat (Depends-on): Likewise.
9739         * modules/listen (Depends-on): Likewise.
9740         * modules/logl (Depends-on): Likewise.
9741         * modules/lstat (Depends-on): Likewise.
9742         * modules/mbrlen (Depends-on): Likewise.
9743         * modules/mbrtowc (Depends-on): Likewise.
9744         * modules/mbsinit (Depends-on): Likewise.
9745         * modules/mbsnrtowcs (Depends-on): Likewise.
9746         * modules/mbsrtowcs (Depends-on): Likewise.
9747         * modules/mbtowc (Depends-on): Likewise.
9748         * modules/memcmp (Depends-on): Likewise.
9749         * modules/mkdir (Depends-on): Likewise.
9750         * modules/mkdtemp (Depends-on): Likewise.
9751         * modules/mkfifo (Depends-on): Likewise.
9752         * modules/mkfifoat (Depends-on): Likewise.
9753         * modules/mknod (Depends-on): Likewise.
9754         * modules/mkostemp (Depends-on): Likewise.
9755         * modules/mkostemps (Depends-on): Likewise.
9756         * modules/mkstemp (Depends-on): Likewise.
9757         * modules/mkstemps (Depends-on): Likewise.
9758         * modules/mktime (Depends-on): Likewise.
9759         * modules/nanosleep (Depends-on): Likewise.
9760         * modules/open (Depends-on): Likewise.
9761         * modules/openat (Depends-on): Likewise.
9762         * modules/perror (Depends-on): Likewise.
9763         * modules/poll (Depends-on): Likewise.
9764         * modules/popen (Depends-on): Likewise.
9765         * modules/posix_spawn (Depends-on): Likewise.
9766         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9767         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9768         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9769         * modules/posix_spawnp (Depends-on): Likewise.
9770         * modules/pread (Depends-on): Likewise.
9771         * modules/printf-posix (Depends-on): Likewise.
9772         * modules/ptsname (Depends-on): Likewise.
9773         * modules/putenv (Depends-on): Likewise.
9774         * modules/pwrite (Depends-on): Likewise.
9775         * modules/readline (Depends-on): Likewise.
9776         * modules/readlink (Depends-on): Likewise.
9777         * modules/readlinkat (Depends-on): Likewise.
9778         * modules/recv (Depends-on): Likewise.
9779         * modules/recvfrom (Depends-on): Likewise.
9780         * modules/regex (Depends-on): Likewise.
9781         * modules/remove (Depends-on): Likewise.
9782         * modules/rename (Depends-on): Likewise.
9783         * modules/renameat (Depends-on): Likewise.
9784         * modules/rmdir (Depends-on): Likewise.
9785         * modules/round (Depends-on): Likewise.
9786         * modules/roundf (Depends-on): Likewise.
9787         * modules/roundl (Depends-on): Likewise.
9788         * modules/rpmatch (Depends-on): Likewise.
9789         * modules/select (Depends-on): Likewise.
9790         * modules/send (Depends-on): Likewise.
9791         * modules/sendto (Depends-on): Likewise.
9792         * modules/setenv (Depends-on): Likewise.
9793         * modules/setlocale (Depends-on): Likewise.
9794         * modules/setsockopt (Depends-on): Likewise.
9795         * modules/shutdown (Depends-on): Likewise.
9796         * modules/sigaction (Depends-on): Likewise.
9797         * modules/signbit (Depends-on): Likewise.
9798         * modules/sigprocmask (Depends-on): Likewise.
9799         * modules/sinl (Depends-on): Likewise.
9800         * modules/sleep (Depends-on): Likewise.
9801         * modules/snprintf (Depends-on): Likewise.
9802         * modules/snprintf-posix (Depends-on): Likewise.
9803         * modules/socket (Depends-on): Likewise.
9804         * modules/sprintf-posix (Depends-on): Likewise.
9805         * modules/sqrtl (Depends-on): Likewise.
9806         * modules/stat (Depends-on): Likewise.
9807         * modules/strchrnul (Depends-on): Likewise.
9808         * modules/strdup-posix (Depends-on): Likewise.
9809         * modules/strerror (Depends-on): Likewise.
9810         * modules/strerror_r-posix (Depends-on): Likewise.
9811         * modules/strndup (Depends-on): Likewise.
9812         * modules/strnlen (Depends-on): Likewise.
9813         * modules/strptime (Depends-on): Likewise.
9814         * modules/strsep (Depends-on): Likewise.
9815         * modules/strsignal (Depends-on): Likewise.
9816         * modules/strstr-simple (Depends-on): Likewise.
9817         * modules/strtod (Depends-on): Likewise.
9818         * modules/strtoimax (Depends-on): Likewise.
9819         * modules/strtok_r (Depends-on): Likewise.
9820         * modules/strtoumax (Depends-on): Likewise.
9821         * modules/symlink (Depends-on): Likewise.
9822         * modules/symlinkat (Depends-on): Likewise.
9823         * modules/tanl (Depends-on): Likewise.
9824         * modules/tcgetsid (Depends-on): Likewise.
9825         * modules/tmpfile (Depends-on): Likewise.
9826         * modules/trunc (Depends-on): Likewise.
9827         * modules/truncf (Depends-on): Likewise.
9828         * modules/truncl (Depends-on): Likewise.
9829         * modules/uname (Depends-on): Likewise.
9830         * modules/unlink (Depends-on): Likewise.
9831         * modules/unlockpt (Depends-on): Likewise.
9832         * modules/unsetenv (Depends-on): Likewise.
9833         * modules/usleep (Depends-on): Likewise.
9834         * modules/utimensat (Depends-on): Likewise.
9835         * modules/vasprintf (Depends-on): Likewise.
9836         * modules/vdprintf (Depends-on): Likewise.
9837         * modules/vdprintf-posix (Depends-on): Likewise.
9838         * modules/vfprintf-posix (Depends-on): Likewise.
9839         * modules/vprintf-posix (Depends-on): Likewise.
9840         * modules/vsnprintf (Depends-on): Likewise.
9841         * modules/vsnprintf-posix (Depends-on): Likewise.
9842         * modules/vsprintf-posix (Depends-on): Likewise.
9843         * modules/wcrtomb (Depends-on): Likewise.
9844         * modules/wcscasecmp (Depends-on): Likewise.
9845         * modules/wcscspn (Depends-on): Likewise.
9846         * modules/wcsdup (Depends-on): Likewise.
9847         * modules/wcsncasecmp (Depends-on): Likewise.
9848         * modules/wcsnrtombs (Depends-on): Likewise.
9849         * modules/wcspbrk (Depends-on): Likewise.
9850         * modules/wcsrtombs (Depends-on): Likewise.
9851         * modules/wcsspn (Depends-on): Likewise.
9852         * modules/wcsstr (Depends-on): Likewise.
9853         * modules/wcstok (Depends-on): Likewise.
9854         * modules/wcswidth (Depends-on): Likewise.
9855         * modules/wctob (Depends-on): Likewise.
9856         * modules/wctomb (Depends-on): Likewise.
9857         * modules/wctype (Depends-on): Likewise.
9858         * modules/wcwidth (Depends-on): Likewise.
9859         * modules/write (Depends-on): Likewise.
9860
9861 2011-05-03  Bruno Haible  <bruno@clisp.org>
9862
9863         Support for conditional dependencies.
9864         * doc/gnulib.texi (Module description): Document the syntax of
9865         conditional dependencies.
9866         * gnulib-tool: New option --conditional-dependencies.
9867         (func_usage): Document it.
9868         (cond_dependencies): New variable.
9869         (func_get_automake_snippet_conditional,
9870         func_get_automake_snippet_unconditional): New functions, extracted from
9871         func_get_automake_snippet.
9872         (func_get_automake_snippet): Use them.
9873         (sed_first_32_chars): New variable.
9874         (func_module_shellfunc_name): New function.
9875         (func_module_shellvar_name): New function.
9876         (func_module_conditional_name): New function.
9877         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9878         func_cond_module_condition): New functions.
9879         (func_modules_transitive_closure): Add support for conditional
9880         dependencies.
9881         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9882         conditional automake snippet in an automake conditional.
9883         (func_emit_autoconf_snippets): Emit shell functions that contain the
9884         code for conditional modules.
9885         (func_import, func_create_testdir): Update specification.
9886
9887 2011-05-03  Eric Blake  <eblake@redhat.com>
9888
9889         test-getaddrinfo: report error information
9890         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9891
9892 2011-05-03  Jim Meyering  <meyering@redhat.com>
9893
9894         bootstrap: avoid build failure when $GZIP is set
9895         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9896         program name.  If defined at all, it is supposed to list gzip options.
9897         Reported by Alan Curry in http://debbugs.gnu.org/8609
9898
9899 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9900
9901         readme-release: new module with release instructions
9902         * modules/readme-release: New module.
9903         * top/README-release: New file, from coreutils, grep, diffutils.
9904         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9905
9906 2011-05-02  Eric Blake  <eblake@redhat.com>
9907
9908         fflush: also replace fclose when fixing fflush
9909         * modules/fflush (Depends-on): Add fclose.
9910         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9911         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9912         memstreams with no backing fd.
9913         * doc/posix-functions/fclose.texi (fclose): Document the use of
9914         fflush module to fix the bug.
9915         * tests/test-fclose.c (main): Relax test when fclose is used in
9916         isolation.
9917
9918         fclose: add some tests
9919         * modules/fclose-tests: New test module.
9920         * tests/test-fclose.c: New file.
9921         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9922
9923         fclose: reduced dependencies
9924         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9925         simpler lseek.
9926         * lib/fclose.c (rpl_fclose): Likewise.
9927         Reported by Simon Josefsson.
9928
9929         exit: drop remaining clients
9930         * modules/argmatch (Depends-on): Replace exit with stdlib.
9931         * modules/copy-file (Depends-on): Likewise.
9932         * modules/execute (Depends-on): Likewise.
9933         * modules/exitfail (Depends-on): Likewise.
9934         * modules/obstack (Depends-on): Likewise.
9935         * modules/pagealign_alloc (Depends-on): Likewise.
9936         * modules/pipe-filter-gi (Depends-on): Likewise.
9937         * modules/pipe-filter-ii (Depends-on): Likewise.
9938         * modules/savewd (Depends-on): Likewise.
9939         * modules/spawn-pipe (Depends-on): Likewise.
9940         * modules/wait-process (Depends-on): Likewise.
9941         * modules/xsetenv (Depends-on): Likewise.
9942         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9943         * modules/git-merge-changelog (Depends-on): Likewise.
9944         * modules/long-options (Depends-on): Likewise.
9945         * modules/pt_chown (Depends-on): Likewise.
9946         * modules/sysexits (Depends-on): Likewise.
9947
9948         freading: relax license from LGPLv3+ to LGPLv2+
9949         * modules/freading (License): Relax LGPL version.
9950
9951 2011-05-02  Bruno Haible  <bruno@clisp.org>
9952
9953         fchdir: Remove unused dependencies.
9954         * modules/fchdir (Depends-on): Remove include_next.
9955
9956 2011-05-02  Bruno Haible  <bruno@clisp.org>
9957
9958         gnulib-tool: Refactor.
9959         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9960         from func_emit_autoconf_snippets.
9961         (func_emit_autoconf_snippets): Use it.
9962
9963 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9964
9965         * NEWS: Document removal of 'exit'.
9966         * modules/exit: Remove file.
9967
9968 2011-05-01  Bruno Haible  <bruno@clisp.org>
9969
9970         Update DEPENDENCIES.
9971         * DEPENDENCIES (gettext): Recommend the newest release.
9972         Reported by Simon Josefsson.
9973
9974 2011-05-01  Bruno Haible  <bruno@clisp.org>
9975
9976         gnulib-tool: Reduce code duplication.
9977         * gnulib-tool (func_emit_autoconf_snippets): New function.
9978         (func_import, func_create_testdir): Use it.
9979
9980 2011-04-30  Eric Blake  <eblake@redhat.com>
9981
9982         fclose: don't fail on non-seekable input stream
9983         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9984         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9985         since fflush is allowed to fail in that case.
9986
9987 2011-04-30  Bruno Haible  <bruno@clisp.org>
9988
9989         dup3: cleanup
9990         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9991
9992 2011-04-30  Bruno Haible  <bruno@clisp.org>
9993
9994         netdb: Make it work in C++ mode.
9995         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9996         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9997         module.
9998         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9999         gl_MODULE_INDICATOR_FOR_TESTS.
10000         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10001         * modules/netdb-c++-tests: New file.
10002         * tests/test-netdb-c++.cc: New file.
10003
10004 2011-04-30  Bruno Haible  <bruno@clisp.org>
10005
10006         New modules 'vfscanf', 'vscanf'.
10007         * modules/vfscanf: New file.
10008         * modules/vscanf: New file.
10009         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10010         here.
10011         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10012         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10013
10014 2011-04-30  Bruno Haible  <bruno@clisp.org>
10015
10016         passfd: Add comments.
10017         * lib/passfd.c: Add comments about platforms.
10018
10019 2011-04-30  Bruno Haible  <bruno@clisp.org>
10020
10021         sys_uio: Make <sys/uio.h> self-contained.
10022         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10023         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10024
10025 2011-04-30  Bruno Haible  <bruno@clisp.org>
10026
10027         sys_socket: Ensure 'struct iovec' definition.
10028         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10029         <sys/socket.h>.
10030         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10031
10032 2011-04-30  Bruno Haible  <bruno@clisp.org>
10033
10034         sys_uio: Protect definition of 'struct iovec'.
10035         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10036         it as a C struct.
10037
10038 2011-04-30  Bruno Haible  <bruno@clisp.org>
10039
10040         manywarnings: fix indentation
10041         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10042
10043 2011-04-30  Pádraig Brady <P@draigBrady.com>
10044
10045         manywarnings: add -Wno-missing-field-initializers if needed.
10046         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10047         option if it's needed to allow initialization with { 0, }
10048
10049 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10050
10051         announce-gen: cosmetic improvement
10052         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10053
10054 2011-04-29  Jim Meyering  <meyering@redhat.com>
10055
10056         vc-list-files: indent with spaces, not TABs
10057         * build-aux/vc-list-files: Convert leading TABs to spaces,
10058         to match the style of most other files in gnulib.
10059
10060         announce-gen: indent with spaces, not TABs
10061         * build-aux/announce-gen: Convert all TABs to spaces, to match
10062         the style of most other files in gnulib.
10063
10064 2011-04-29  Eric Blake  <eblake@redhat.com>
10065
10066         quotearg: avoid uninitialized variable use
10067         * lib/quotearg.c (quoting_options_from_style): Initialize
10068         remaining fields, and ensure that custom styles are only used via
10069         quoting_options rather than quoting_style.
10070
10071 2011-04-29  Jim Meyering  <meyering@redhat.com>
10072
10073         maint.mk: remove unused VC-tag variable
10074         * top/maint.mk (VC-tag): Remove unused variable.
10075
10076 2011-04-29  Bruno Haible  <bruno@clisp.org>
10077
10078         netdb: fix gai_strerror replacements
10079         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10080         * modules/netdb: Substitute it.
10081
10082 2011-04-29  Jim Meyering  <meyering@redhat.com>
10083
10084         test-getcwd.c: avoid new set-but-not-used warning
10085         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10086         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10087         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10088         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10089
10090         test-hash.c: avoid a new shadowing warning
10091         * tests/test-hash.c (main): Don't shadow "dup".
10092
10093 2011-04-28  Eric Blake  <eblake@redhat.com>
10094
10095         getaddrinfo: fix gai_strerror signature
10096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10097         and work around mingw with UNICODE defined.
10098         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10099         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10100         * modules/netdb (Makefile.am): Substitute it.
10101         * lib/netdb.in.h (gai_strerror): Declare replacement.
10102         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10103         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10104         the fix.
10105
10106         getsockopt: avoid compiler warning
10107         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10108         Reported by Matthias Bolte.
10109
10110         tests: drop unused link dependency
10111         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10112         * modules/dirent-safer-tests (Makefile.am): Likewise.
10113         * modules/fdopendir-tests (Makefile.am): Likewise.
10114         * modules/mkfifoat-tests (Makefile.am): Likewise.
10115         * modules/openat-safer-tests (Makefile.am): Likewise.
10116         * modules/openat-tests (Makefile.am): Likewise.
10117         * modules/readlinkat-tests (Makefile.am): Likewise.
10118         * modules/symlinkat-tests (Makefile.am): Likewise.
10119         * modules/linkat-tests (Makefile.am): Likewise.
10120         (Depends-on): Switch to filenamecat-lgpl.
10121         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10122         LIBINTL.
10123         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10124         * tests/test-linkat.c (main): Don't require xalloc.
10125
10126         hash, mgetgroups: drop xalloc dependency
10127         * lib/hash.c (includes): Adjust includes.
10128         * lib/mgetgroups.c (includes): Likewise.
10129         (xgetgroups): Move...
10130         * lib/xgetgroups.c: ...to new file.
10131         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10132         * modules/xgetgroups: New file, split from...
10133         * modules/mgetgroups: ...here.
10134         (Depends-on): Add xalloc-oversized.
10135         * modules/hash (Depends-on): Likewise.
10136         * modules/hash-tests (Depends-on): Drop xalloc.
10137         (test_hash_LDADD): Drop unused library.
10138         * tests/test-hash.c (main): Break xalloc dependency.
10139         (includes): Drop unused include.
10140
10141         xalloc-oversized: new module
10142         * modules/xalloc-oversized: New module.
10143         * modules/xalloc (Depends-on): Add it.
10144         * lib/xalloc.h (xalloc_oversized): Move...
10145         * lib/xalloc-oversized.h: ...into new file.
10146
10147         utimecmp: drop dependency on xmalloc
10148         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10149         due to memory pressure.
10150         * modules/utimecmp (Depends-on): Drop xalloc.
10151
10152 2011-04-27  Eric Blake  <eblake@redhat.com>
10153
10154         getcwd: fix mingw bugs
10155         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10156         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10157         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10158
10159 2011-04-27  Bruno Haible  <bruno@clisp.org>
10160
10161         mkstemps: Ensure declaration on MacOS X 10.5.
10162         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10163         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10164         MacOS X.
10165
10166 2011-04-27  Bruno Haible  <bruno@clisp.org>
10167
10168         mkstemp: More documentation.
10169         * doc/posix-functions/mkstemp.texi: Document header file problem on
10170         MacOS X.
10171
10172 2011-04-27  Bruno Haible  <bruno@clisp.org>
10173
10174         mkstemp: Tweak configure message when cross-compiling.
10175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10176         result as a guess.
10177
10178 2011-04-27  Bruno Haible  <bruno@clisp.org>
10179
10180         clean-temp: Clarify what it does.
10181         * lib/clean-temp.h: Add more comments.
10182         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10183         module.
10184         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10185         * doc/glibc-functions/mkstemps.texi: Likewise.
10186         * doc/glibc-functions/mkostemps.texi: Likewise.
10187
10188 2011-04-27  Eric Blake  <eblake@redhat.com>
10189
10190         fchdir: avoid extra chdir and fix test
10191         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10192         getcwd-lgpl.
10193         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10194         have to be canonical.
10195         (canonicalize_file_name): Drop unused macro.
10196         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10197
10198         filenamecat-lgpl: fix licence
10199         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10200         when it was first created.
10201
10202         linkat, renameat: add missing dependency
10203         * modules/linkat (Depends-on): Require getcwd-lgpl.
10204         * modules/renameat (Depends-on): Likewise.
10205
10206         tests: reduce dependencies
10207         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10208         * tests/test-renameat.c (main): Likewise.
10209         * modules/linkat-tests (Depends-on): Relax dependency.
10210         * modules/renameat-tests (Depends-on): Likewise.
10211         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10212         dependency explicit.
10213
10214         save-cwd: reduce default dependency
10215         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10216         * lib/save-cwd.c: Update comments.
10217         * NEWS: Document the semantic change.
10218
10219         getcwd: enhance tests
10220         * tests/test-getcwd-lgpl.c: New file, taken from...
10221         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10222         repeat long path stress tests from m4 probe.
10223         * modules/getcwd-lgpl-tests: New module.
10224         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10225         * m4/getcwd-abort-bug.m4: Update comment.
10226         * m4/getcwd-path-max.m4: Likewise.
10227
10228         getcwd-lgpl: new module
10229         * modules/getcwd-lgpl: New module.
10230         * lib/getcwd-lgpl.c: New file.
10231         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10232         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10233         * modules/getcwd (configure.ac): Set C witness.
10234         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10235
10236         getcwd: tweak comments
10237         * m4/getcwd-abort-bug.m4: Fix comments.
10238         * m4/getcwd-path-max.m4: Likewise.
10239         * m4/getcwd.m4: Likewise.
10240
10241 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10242         and Eric Blake  <eblake@redhat.com>
10243
10244         mkstemp: replace if system version uses wrong permissions
10245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10246         read/write mode bits set in file created by mkstemp.
10247         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10248
10249 2011-04-27  Eric Blake  <eblake@redhat.com>
10250
10251         passfd: avoid compiler warning
10252         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10253         Reported by Laine Stump.
10254
10255 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10256
10257         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10258         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10259
10260 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10261         and Eric Blake  <eblake@redhat.com>
10262
10263         mkstemp: mention clean-temp module
10264         * lib/mkstemp.c: Add comment.
10265         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10266
10267 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10268
10269         inttypes: also provide default values for 32-bit tests
10270         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10271         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10272
10273 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         strtoumax: remove dependency on strtoimax
10276         This is like the strtoull change of yesterday.
10277         * modules/strtoumax (Files): Add lib/strtoimax.c.
10278         (Depends-on): Remove strtoimax and add verify.
10279
10280         inttypes-incomplete: new module
10281         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10282         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10283         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10284         of gl_INTTYPES_H.
10285         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10286         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10287         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10288         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10289         * modules/strtoumax, modules/xstrtol (Depends-on):
10290         Depend on inttypes-incomplete, not inttypes.
10291         * modules/inttypes-incomplete: New module, containing the contents
10292         of the old modules/inttypes module, except that the Files: section
10293         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10294         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10295         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10296         (Depends-on): Depend only on inttypes-incomplete.
10297         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10298
10299         inttypes: omit now-redundant strtoimax and strtoumax work
10300         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10301         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10302
10303         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10304         This supports apps that need pointers to strtoimax and strtoumax,
10305         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10306         nonexistent functions.  See
10307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10308         et seq.
10309         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10310         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10311         a macro.
10312         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10313
10314 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10315
10316         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10317
10318 2011-04-25  Bruno Haible  <bruno@clisp.org>
10319
10320         strtol, strtoul: Mark modules as obsolete.
10321         * modules/strtol (Status, Notice): New sections.
10322         * modules/strtoul (Status, Notice): New sections.
10323
10324 2011-04-25  Bruno Haible  <bruno@clisp.org>
10325
10326         strtod: Remove check for strtod, unless supporting old platforms.
10327         * modules/strtod-obsolete: New file.
10328         * m4/strtod-obsolete.m4: New file.
10329         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10330         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10331         * modules/strtod (Depends-on): Add strtod-obsolete.
10332         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10333
10334 2011-04-25  Bruno Haible  <bruno@clisp.org>
10335
10336         strcase: Make module obsolete.
10337         * modules/strcase (Status, Notice): New sections.
10338
10339 2011-04-25  Bruno Haible  <bruno@clisp.org>
10340
10341         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10342         * modules/dup2-obsolete: New file.
10343         * m4/dup2-obsolete.m4: New file.
10344         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10345         gl_FUNC_DUP2_OBSOLETE is not also defined.
10346         * modules/dup2 (Depends-on): Add dup2-obsolete.
10347         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10348
10349 2011-04-25  Bruno Haible  <bruno@clisp.org>
10350
10351         strnlen: Avoid memchr related link error on old obsolete platforms.
10352         * modules/memchr-obsolete: New file.
10353         * m4/memchr-obsolete.m4: New file.
10354         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10355         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10356         * modules/memchr (Depends-on): Add memchr-obsolete.
10357         * modules/strnlen (Depends-on): Likewise.
10358         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10359
10360 2011-04-25  Jim Meyering  <meyering@redhat.com>
10361
10362         maint.mk: makefile_at_at_check extend and clean up
10363         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10364         in addition to */Makefile.am.
10365         Exempt legitimate uses of @VAR@ notation, e.g.,
10366         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10367         Remove obsolete coreutils-specific comment.
10368         Prompted by discussion here:
10369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10370
10371 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10372
10373         strtoul: remove dependency on strtol
10374         This is so that 'configure' need not check for strtol merely because
10375         the application needs strtoul.
10376         * modules/strtoul (Files): Add lib/strtol.c.
10377         (Depends-on): Remove strtol.
10378
10379         strtoull: remove dependency on strtoul
10380         This is like the strtoll change.
10381         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10382         (Depends-on): Remove strtoul.
10383
10384         strtoll: remove dependency on strtol
10385         This is so that 'configure' need not check for strtol merely because
10386         the application needs strtoll.
10387         * modules/strtoll (Files): Add lib/strtol.c.
10388         (Depends-on): Remove strtol.
10389
10390 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10391
10392         inttypes: Move some configure check to module 'imaxdiv'.
10393         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10394         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10395         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10396
10397 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         inttypes: Move some configure check to module 'imaxabs'.
10400         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10401         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10402         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10403
10404 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10405
10406         inttypes: Remove configure tests that are not needed since 2009-12-31.
10407         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10408         gl_cv_header_working_inttypes_h.
10409
10410 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10411
10412         * modules/strnlen (Depends-on): Remove memchr.
10413         The strnlen implementation doesn't need the memchr module's fixes; see
10414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10415
10416         strtol: remove dependency on wchar
10417         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10418         * modules/strtol (Depends-on): Remove wchar.
10419
10420 2011-04-21  Eric Blake  <eblake@redhat.com>
10421
10422         passfd: fix test regression on Linux
10423         * modules/passfd-tests (configure.ac): Correct socketpair check.
10424
10425         passfd: speed up configure and drop unused code
10426         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10427         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10428         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10429         Instead of probing at configure for unix_scm_rights_bsd44_way,
10430         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10431         check to a struct member probe.
10432         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10433         (sendfd, recvfd): Update preprocessor checks.
10434         * modules/passfd (Files): Reflect rename, and drop unused file.
10435         (Depends-on): Drop unused dependency.
10436
10437         passfd: allow compilation on mingw
10438         * modules/sys_socket (Depends-on): Add sys_uio.
10439         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10440         iovec and a minimal struct msghdr.
10441         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10442         * tests/test-sys_socket.c (main): Enhance test.
10443         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10444         guaranteed to provide what we need.
10445         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10446         * modules/passfd-tests (Depends-on): Add sys_wait.
10447         * tests/test-passfd.c (main): Skip test on mingw, for now.
10448         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10449         partial 'struct msghdr' implementation.
10450
10451         sys_uio: new module
10452         * modules/sys_uio: New module.
10453         * modules/sys_uio-tests: Likewise.
10454         * lib/sys_uio.in.h: New file.
10455         * m4/sys_uio_h.m4: Likewise.
10456         * tests/test-sys_uio.c: Likewise.
10457         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10458         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10459
10460 2011-04-20  Jim Meyering  <meyering@redhat.com>
10461
10462         useless-if-before-free: avoid false-positive
10463         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10464         disjunct so that it too requires a terminating ";".  Without that,
10465         this script would identify as useless one statement from gcc that
10466         was not:
10467           if (aligned_ptr)
10468             free (((void **) aligned_ptr) [-1]);
10469
10470 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10471
10472         doc: update users.txt.
10473         * users.txt: Add barcode.
10474
10475 2011-04-19  Bruno Haible  <bruno@clisp.org>
10476
10477         ioctl: Remove link dependency on native Windows.
10478         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10479         (gl_close_fn, gl_ioctl_fn): New types.
10480         (struct fd_hook): Renamed from struct close_hook. Change type of
10481         private_close_fn field. Add private_ioctl_fn field.
10482         (close_hook_fn): Add parameter for primary close method.
10483         (execute_close_hooks, execute_all_close_hooks): Likewise.
10484         (ioctl_hook_fn): New type.
10485         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10486         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10487         argument.
10488         (unregister_fd_hook): Renamed from unregister_close_hook.
10489         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10490         Don't include <unistd.h>.
10491         (close): Remove undef.
10492         (anchor): Update.
10493         (execute_close_hooks): Add argument for primary close method.
10494         (execute_all_close_hooks): Likewise.
10495         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10496         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10497         argument. Allow each argument to be NULL.
10498         (unregister_fd_hook): Renamed from unregister_close_hook.
10499         * lib/close.c (rpl_close): Pass 'close' function pointer to
10500         execute_all_close_hooks.
10501         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10502         (primary_ioctl): New function.
10503         (ioctl): Don't call ioctlsocket here. Instead, call
10504         execute_all_ioctl_hooks.
10505         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10506         close method.
10507         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10508         (fd_sockets_hook): Renamed from close_sockets_hook.
10509         (gl_sockets_startup, gl_sockets_cleanup): Update.
10510         * modules/fd-hook: Renamed from modules/close-hook. Update.
10511         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10512         * modules/sockets (Depends-on): Likewise.
10513         * modules/ioctl (Depends-on): Add fd-hook.
10514         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10515         GNULIB_SOCKET.
10516
10517 2011-04-19  Bruno Haible  <bruno@clisp.org>
10518
10519         Move the support of O_NONBLOCK in open() to the 'open' module.
10520         * modules/nonblocking (Depends-on): Remove 'open'.
10521         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10522         gl_cv_have_open_O_NONBLOCK.
10523         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10524         O_NONBLOCK support.
10525         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10526
10527 2011-04-17  Bruno Haible  <bruno@clisp.org>
10528
10529         pipe2: Simplify code.
10530         * lib/pipe2.c (pipe2): Reduce code duplication.
10531
10532 2011-04-17  Bruno Haible  <bruno@clisp.org>
10533
10534         nonblocking: Add comment.
10535         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10536
10537 2011-04-17  Bruno Haible  <bruno@clisp.org>
10538
10539         nonblocking: Add tests for sockets.
10540         * tests/test-nonblocking-socket.sh: New file.
10541         * tests/test-nonblocking-socket-main.c: New file.
10542         * tests/test-nonblocking-socket-child.c: New file.
10543         * tests/test-nonblocking-socket.h: New file.
10544         * tests/socket-server.h: New file.
10545         * tests/socket-client.h: New file.
10546         * modules/nonblocking-socket-tests: New file.
10547         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10548
10549 2011-04-17  Bruno Haible  <bruno@clisp.org>
10550
10551         nonblocking: Add tests for pipes.
10552         * tests/test-nonblocking-pipe.sh: New file.
10553         * tests/test-nonblocking-pipe-main.c: New file.
10554         * tests/test-nonblocking-pipe-child.c: New file.
10555         * tests/test-nonblocking-pipe.h: New file.
10556         * tests/test-nonblocking-writer.h: New file.
10557         * tests/test-nonblocking-reader.h: New file.
10558         * tests/test-nonblocking-misc.h: New file.
10559         * modules/nonblocking-pipe-tests: New file.
10560         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10561
10562 2011-04-16  Bruno Haible  <bruno@clisp.org>
10563
10564         gettext: Clarify the needed programmer actions.
10565         * modules/gettext (Notice): New field.
10566         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10567
10568 2011-04-16  Bruno Haible  <bruno@clisp.org>
10569
10570         strchrnul: Tweak last commit.
10571         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10572         bug.
10573         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10574         as in _GL_FUNCDECL_SYS.
10575         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10576         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10577
10578 2011-04-15  Eric Blake  <eblake@redhat.com>
10579
10580         strchrnul: work around cygwin bug
10581         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10582         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10584         * modules/string (Makefile.am): Substitute it.
10585         * lib/string.in.h (strchrnul): Use it.
10586
10587 2011-04-15  Bruno Haible  <bruno@clisp.org>
10588
10589         Don't require lib/stdio-write.c when only module 'stdio' is used.
10590         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10591         invocation.
10592         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10593
10594 2011-04-14  Bruno Haible  <bruno@clisp.org>
10595
10596         Support non-blocking pipe I/O in read() on native Windows.
10597         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10598         (read): New declaration.
10599         * lib/read.c: New file.
10600         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10601         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10602         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10603         vscanf): New declarations.
10604         * lib/stdio-read.c: New file.
10605         * m4/read.m4: New file.
10606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10607         REPLACE_READ.
10608         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10609         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10610         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10611         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10612         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10613         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10614         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10615         * modules/read: New file.
10616         * modules/nonblocking (Files): Add lib/stdio-read.c.
10617         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10618         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10619         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10620         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10621         * modules/pread (Depends-on): Add read.
10622         * modules/safe-read (Depends-on): Likewise.
10623         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10624         gets, scanf, vfscanf, vscanf): Verify signatures.
10625         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10626         problem with non-blocking pipes.
10627         * doc/posix-functions/fgetc.texi: Likewise.
10628         * doc/posix-functions/fgets.texi: Likewise.
10629         * doc/posix-functions/fread.texi: Likewise.
10630         * doc/posix-functions/fscanf.texi: Likewise.
10631         * doc/posix-functions/getc.texi: Likewise.
10632         * doc/posix-functions/getchar.texi: Likewise.
10633         * doc/posix-functions/gets.texi: Likewise.
10634         * doc/posix-functions/scanf.texi: Likewise.
10635         * doc/posix-functions/vfscanf.texi: Likewise.
10636         * doc/posix-functions/vscanf.texi: Likewise.
10637
10638 2011-04-14  Bruno Haible  <bruno@clisp.org>
10639
10640         Support non-blocking pipe I/O in write() on native Windows.
10641         * lib/write.c (rpl_write): Split a write request that failed merely
10642         because the byte count was larger than the pipe buffer's size.
10643         * doc/posix-functions/write.texi: Mention the problem with large byte
10644         counts.
10645
10646 2011-04-14  Bruno Haible  <bruno@clisp.org>
10647
10648         wchar: Ensure that wchar_t gets defined on uClibc.
10649         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10650         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10651
10652 2011-04-13  Bruno Haible  <bruno@clisp.org>
10653
10654         safe-write, full-read: Avoid unnecessary compilation units.
10655         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10656         (Depends-on): Remove safe-read. Add ssize_t.
10657         * modules/full-read (Files): Add lib/full-write.c.
10658         (Depends-on): Add full-write.
10659
10660 2011-04-13  Bruno Haible  <bruno@clisp.org>
10661
10662         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10663         * modules/pwrite (Depends-on): Add 'write'.
10664
10665 2011-04-13  Bruno Haible  <bruno@clisp.org>
10666
10667         Support non-blocking pipe I/O in write() on native Windows.
10668         * lib/unistd.in.h (write): Enable replacement also if
10669         GNULIB_UNISTD_H_NONBLOCKING is 1.
10670         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10671         (rpl_write): When failing to write on a non-blocking pipe, change
10672         errno from ENOSPC to EAGAIN.
10673         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10674         putchar, puts, vfprintf, vprintf): Enable replacement also if
10675         GNULIB_STDIO_H_NONBLOCKING is 1.
10676         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10677         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10678         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10679         CALL_WITH_SIGPIPE_EMULATION.
10680         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10681         * m4/nonblocking.m4: New file.
10682         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10683         for non-blocking I/O support.
10684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10685         GNULIB_UNISTD_H_NONBLOCKING.
10686         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10687         required for non-blocking I/O support.
10688         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10689         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10690         lib/stdio-write.c, m4/asm-underscore.m4.
10691         (Depends-on): Add stdio, unistd.
10692         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10693         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10694         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10695         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10696         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10697         problem with non-blocking pipes.
10698         * doc/posix-functions/fputc.texi: Likewise.
10699         * doc/posix-functions/fputs.texi: Likewise.
10700         * doc/posix-functions/fwrite.texi: Likewise.
10701         * doc/posix-functions/printf.texi: Likewise.
10702         * doc/posix-functions/putc.texi: Likewise.
10703         * doc/posix-functions/putchar.texi: Likewise.
10704         * doc/posix-functions/puts.texi: Likewise.
10705         * doc/posix-functions/vfprintf.texi: Likewise.
10706         * doc/posix-functions/vprintf.texi: Likewise.
10707         * doc/posix-functions/write.texi: Likewise.
10708
10709 2011-04-10  Jim Meyering  <meyering@redhat.com>
10710
10711         maint.mk: prohibit doubled words
10712         Detect them also when they're separated by a newline.
10713         There are 3 ways to customize it:
10714           - disable the test on a per file basis, as usual with rules using
10715             $(VC_LIST_EXCEPT)
10716           - replace the default doubled-word-selecting regexp (affects all files)
10717           - ignore a particular file-vs-doubled-word match
10718         I nearly used that last one to ignore the "is is" match in
10719         coreutils' NEWS file, since the text was "ls -is is ..."
10720         To do that, I would have added this line to cfg.mk:
10721           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10722         but it would have ignored any "is is" match in NEWS.
10723         Low probability, but still...
10724         Instead, I changed the text, slightly:
10725           -  ls -is is now consistent with ls -lis in ignoring values returned
10726           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10727         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10728         (prohibit_doubled_word_): Define.
10729         (sc_prohibit_doubled_word): New rule.
10730         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10731
10732 2011-04-10  Jim Meyering  <meyering@redhat.com>
10733
10734         maint: fix doubled-word typo in comment
10735         * m4/gethostname.m4: s/is is/it is/
10736         * m4/getdomainname.m4: Likewise.
10737
10738 2011-04-10  Jim Meyering  <meyering@redhat.com>
10739
10740         maint: remove doubled word: s/it it/it/
10741         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10742
10743 2011-04-10  Jim Meyering  <meyering@redhat.com>
10744
10745         maint.mk: remove useless semicolon and backslash
10746         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10747         semicolon and backslash.
10748
10749 2011-04-10  Bruno Haible  <bruno@clisp.org>
10750
10751         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10752         * modules/stdint-tests (Depends-on): Add wchar.
10753
10754 2011-04-10  Jim Meyering  <meyering@redhat.com>
10755
10756         maint: remove doubled words in comments, e.g., s/a a/a/
10757         * lib/strptime.c (day_of_the_week): s/the the/the/
10758         * tests/test-chown.h (test_chown): s/a a/a/
10759
10760         test-chown.h: correct a cast
10761         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10762         when the destination is a stat.st_gid.
10763
10764 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10765
10766         getaddrinfo: Fix test for sa_len member.
10767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10768         include <sys/types.h> before <sys/socket.h>.
10769
10770 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10771
10772         maint: change "can not" to "cannot"
10773         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10774         boundaries.
10775
10776 2011-04-09  Jim Meyering  <meyering@redhat.com>
10777
10778         maint: change "a a" to "a"
10779         * tests/test-lchown.h (test_lchown): s/a a/a/
10780
10781         maint.mk: prohibit \<the the\>
10782         * top/maint.mk (sc_prohibit_the_the): New rule.
10783
10784         maint: fix "the the" in comment
10785         * lib/count-one-bits.h: s/the the/the/
10786
10787         maint: change "can not" to "cannot"
10788         But do not change the occurrences in maintain.texi or in
10789         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10790         * doc/gnulib-tool.texi: s/can not/cannot/
10791         * doc/posix-functions/accept.texi (accept): Likewise.
10792         * doc/posix-functions/socket.texi (socket): Likewise.
10793         * lib/mbrtowc.c: Likewise.
10794
10795         maint.mk: prohibit use of "can not"
10796         * top/maint.mk (sc_prohibit_can_not): New rule.
10797         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10798
10799 2011-04-09  Bruno Haible  <bruno@clisp.org>
10800
10801         careadlinkat: Guard against misuse of careadlinkatcwd.
10802         * lib/careadlinkat.c: Include <stdlib.h>.
10803         (careadlinkatcwd): Check that the fd argument is as expected.
10804
10805 2011-04-09  Bruno Haible  <bruno@clisp.org>
10806
10807         careadlinkat: Use common coding style.
10808         * lib/careadlinkat.c: Move gnulib includes after system includes.
10809
10810 2011-04-09  Bruno Haible  <bruno@clisp.org>
10811
10812         careadlinkat: Clarify specification.
10813         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10814         (careadlinkatcwd): Add comment.
10815         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10816
10817 2011-04-09  Bruno Haible  <bruno@clisp.org>
10818
10819         areadlinkat: Avoid link error on many platforms.
10820         * modules/areadlinkat (Depends-on): Add areadlink.
10821
10822 2011-04-09  Bruno Haible  <bruno@clisp.org>
10823
10824         allocator, careadlinkat: Fix double-inclusion guard.
10825         * lib/allocator.h: Fix double-inclusion guard.
10826         * lib/careadlinkat.h: Likewise.
10827
10828 2011-04-09  Bruno Haible  <bruno@clisp.org>
10829
10830         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10831         * lib/relocwrapper.c: Update dependencies hierarchy.
10832         * build-aux/install-reloc: Update list of files to be compiled.
10833         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10834         lib/allocator.[hc].
10835
10836 2011-04-08  Eric Blake  <eblake@redhat.com>
10837
10838         strftime: silence gnulib-tool warning
10839         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10840
10841 2011-04-08  Bruno Haible  <bruno@clisp.org>
10842
10843         verify: Fix syntax error with GCC 4.6 in C++ mode.
10844         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10845         (HAVE_STATIC_ASSERT): New macro.
10846         (verify_true, verify): Use 'static_assert' if it is supported and
10847         '_Static_assert' is not supported.
10848
10849 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10850
10851         allocator: New module.
10852         * modules/allocator, lib/allocator.c: New files.
10853         * lib/allocator.h (stdlib_allocator): New decl.
10854         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10855         Remove.  Do not include <stdlib.h>.
10856         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10857         * modules/careadlinkat (Files): Remove lib/allocator.h.
10858         (Depends-on): Add allocator.
10859
10860         stdlib: let modules use system malloc, realloc
10861         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10862         if !_GL_USE_STDLIB_ALLOC.
10863         (malloc, realloc): Limit this change to a smaller scope.
10864
10865         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10866         (malloc, realloc): Don't #undef; no longer needed.
10867         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10868         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10869         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10870         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10871         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10872         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10873         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10874         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10875
10876         careadlinkat: rename members to avoid problem
10877         * lib/allocator.h (struct allocator): Rename members from
10878         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10879         and realloc are #define'd.  Reported by Eric Blake in
10880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10881         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10882
10883 2011-04-08  Eric Blake  <eblake@redhat.com>
10884
10885         nonblocking: reduce dependency
10886         * tests/test-nonblocking.c: Only test sockets when in use.
10887         * modules/nonblocking-tests (Depends-on): Drop socket.
10888         (Makefile.am): Link even if sockets are not present.
10889         * modules/pipe2-tests (Makefile.am): Likewise.
10890         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10891
10892         pipe2: fix O_NONBLOCK support on mingw
10893         * modules/pipe2 (Depends-on): Add nonblocking.
10894         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10895         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10896         * tests/test-nonblocking.c (main): Likewise.
10897         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10898
10899         fcntl-h: fix O_ACCMODE on cygwin
10900         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10901         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10902
10903         pipe-filter: drop O_NONBLOCK workarounds
10904         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10905         * modules/pipe-filter-ii (Depends-on): Likewise.
10906         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10907
10908         nonblocking: provide O_NONBLOCK for mingw
10909         * modules/nonblocking (Depends-on): Add open.
10910         (configure.ac): Set new witness macro.
10911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10912         * modules/fcntl-h (Makefile.am): Substitute it.
10913         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10914         nonblocking module is in use.
10915         * lib/nonblocking.c: Adjust portability test.
10916         * lib/open.c (open): Don't let native open see gnulib flag.
10917         * tests/test-fcntl-h.c (main): Enhance test.
10918         * tests/test-open.h (test_open): Likewise.
10919         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10920
10921         careadlinkat: fix compilation error on mingw
10922         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10923         within struct allocator.
10924
10925 2011-04-06  Eric Blake  <eblake@redhat.com>
10926
10927         binary-io: relicense under LGPLv2+
10928         * modules/binary-io (License): Relax to LGPLv2+.
10929         Requested for libvirt, and required by pipe2.
10930
10931 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10932
10933         verify: use _Static_assert if available
10934         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10935         (verify_true, verify): Use it if available.  This generates better
10936         diagnostics with GCC 4.6.0 and later.
10937
10938 2011-04-05  Bruno Haible  <bruno@clisp.org>
10939
10940         Remove leftover generated .h files after config.status changed.
10941
10942         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10943         GL_GENERATE_ALLOCA_H.
10944         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10945         GL_GENERATE_ALLOCA_H evaluates to false.
10946
10947         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10948         GL_GENERATE_ARGZ_H.
10949         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10950         evaluates to false.
10951
10952         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10953         GL_GENERATE_BYTESWAP_H.
10954         * modules/byteswap (Makefile.am): Remove byteswap.h if
10955         GL_GENERATE_BYTESWAP_H evaluates to false.
10956
10957         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10958         GL_GENERATE_ERRNO_H.
10959         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10960         evaluates to false.
10961
10962         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10963         GL_GENERATE_FLOAT_H.
10964         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10965         evaluates to false.
10966
10967         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10968         GL_GENERATE_FNMATCH_H.
10969         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10970         GL_GENERATE_FNMATCH_H evaluates to false.
10971
10972         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10973         GL_GENERATE_GLOB_H.
10974         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10975         evaluates to false.
10976
10977         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10978         automake conditional GL_GENERATE_ICONV_H.
10979         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10980         evaluates to false.
10981
10982         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10983         GL_GENERATE_NETINET_IN_H.
10984         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10985         GL_GENERATE_NETINET_IN_H evaluates to false.
10986
10987         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10988         conditional GL_GENERATE_PTHREAD_H.
10989         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10990         * modules/pthread (Makefile.am): Remove pthread.h if
10991         GL_GENERATE_PTHREAD_H evaluates to false.
10992
10993         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10994         GL_GENERATE_SCHED_H.
10995         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10996         evaluates to false.
10997
10998         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10999         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11000         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11001         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11002
11003         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11004         GL_GENERATE_STDARG_H.
11005         * modules/stdarg (Makefile.am): Remove stdarg.h if
11006         GL_GENERATE_STDARG_H evaluates to false.
11007
11008         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11009         GL_GENERATE_STDBOOL_H.
11010         * modules/stdbool (Makefile.am): Remove stdbool.h if
11011         GL_GENERATE_STDBOOL_H evaluates to false.
11012
11013         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11014         conditional GL_GENERATE_STDDEF_H.
11015         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11016         * modules/stddef (Makefile.am): Remove stddef.h if
11017         GL_GENERATE_STDDEF_H evaluates to false.
11018
11019         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11020         GL_GENERATE_STDINT_H.
11021         * modules/stdint (Makefile.am): Remove stdint.h if
11022         GL_GENERATE_STDINT_H evaluates to false.
11023
11024         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11025         GL_GENERATE_SYSEXITS_H.
11026         * modules/sysexits (Makefile.am): Remove sysexits.h if
11027         GL_GENERATE_SYSEXITS_H evaluates to false.
11028
11029         Reported by Karl Berry and Ralf Wildenhues.
11030
11031 2011-04-05  Bruno Haible  <bruno@clisp.org>
11032
11033         Ensure to rebuild generated .h files when config.status has changed.
11034         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11035         config.status.
11036         * modules/ctype (Makefile.am): Likewise.
11037         * modules/dirent (Makefile.am): Likewise.
11038         * modules/errno (Makefile.am): Likewise.
11039         * modules/fcntl-h (Makefile.am): Likewise.
11040         * modules/float (Makefile.am): Likewise.
11041         * modules/getopt-posix (Makefile.am): Likewise.
11042         * modules/glob (Makefile.am): Likewise.
11043         * modules/iconv-h (Makefile.am): Likewise.
11044         * modules/inttypes (Makefile.am): Likewise.
11045         * modules/langinfo (Makefile.am): Likewise.
11046         * modules/locale (Makefile.am): Likewise.
11047         * modules/math (Makefile.am): Likewise.
11048         * modules/netdb (Makefile.am): Likewise.
11049         * modules/netinet_in (Makefile.am): Likewise.
11050         * modules/poll-h (Makefile.am): Likewise.
11051         * modules/pthread (Makefile.am): Likewise.
11052         * modules/pty (Makefile.am): Likewise.
11053         * modules/sched (Makefile.am): Likewise.
11054         * modules/search (Makefile.am): Likewise.
11055         * modules/selinux-h (Makefile.am): Likewise.
11056         * modules/signal (Makefile.am): Likewise.
11057         * modules/spawn (Makefile.am): Likewise.
11058         * modules/stdarg (Makefile.am): Likewise.
11059         * modules/stdbool (Makefile.am): Likewise.
11060         * modules/stddef (Makefile.am): Likewise.
11061         * modules/stdint (Makefile.am): Likewise.
11062         * modules/stdio (Makefile.am): Likewise.
11063         * modules/stdlib (Makefile.am): Likewise.
11064         * modules/string (Makefile.am): Likewise.
11065         * modules/strings (Makefile.am): Likewise.
11066         * modules/sys_file (Makefile.am): Likewise.
11067         * modules/sys_ioctl (Makefile.am): Likewise.
11068         * modules/sys_select (Makefile.am): Likewise.
11069         * modules/sys_socket (Makefile.am): Likewise.
11070         * modules/sys_stat (Makefile.am): Likewise.
11071         * modules/sys_time (Makefile.am): Likewise.
11072         * modules/sys_times (Makefile.am): Likewise.
11073         * modules/sys_utsname (Makefile.am): Likewise.
11074         * modules/sys_wait (Makefile.am): Likewise.
11075         * modules/sysexits (Makefile.am): Likewise.
11076         * modules/termios (Makefile.am): Likewise.
11077         * modules/time (Makefile.am): Likewise.
11078         * modules/unistd (Makefile.am): Likewise.
11079         * modules/wchar (Makefile.am): Likewise.
11080         * modules/wctype-h (Makefile.am): Likewise.
11081         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11082
11083 2011-04-05  Bruno Haible  <bruno@clisp.org>
11084
11085         pipe2: Relicense under LGPLv2+.
11086         * modules/pipe2 (License): Change to LGPLv2+.
11087         Requested by Eric Blake, for libvirt.
11088
11089 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11090
11091         bootstrap: compute gnulib_extra_files after updating build_aux
11092         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11093         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11094
11095 2011-04-05  Eric Blake  <eblake@redhat.com>
11096
11097         bootstrap: preserve git whitelist item sorting
11098         * build-aux/bootstrap (sort_patterns): New function.
11099         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11100
11101 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11102
11103         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11104         sc_space_tab check.
11105
11106 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11107
11108         areadlink, areadlinkat: rewrite in terms of careadlinkat
11109         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11110         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11111         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11112         (malloc, realloc): Remove #undefs.
11113         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11114         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11115         readlink, ssize_t, stdint, unistd.
11116         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11117         areadlink, stdint.
11118
11119         careadlinkat: new module
11120         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11121         * modules/careadlinkat: New files, written by me with
11122         a review and feedback from Ben Pfaff in
11123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11124
11125 2011-04-01  Bruno Haible  <bruno@clisp.org>
11126
11127         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11128         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11129         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11130         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11131         Reported by Bruce Korb <bruce.korb@gmail.com>.
11132
11133 2011-04-01  Bruno Haible  <bruno@clisp.org>
11134
11135         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11136         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11137         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11138         * modules/wcpcpy (Depends-on): Add extensions.
11139         * modules/wcpncpy (Depends-on): Likewise.
11140         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11141         systems.
11142         * doc/posix-functions/wcpncpy.texi: Likewise.
11143         * doc/posix-functions/wcwidth.texi: Likewise.
11144
11145 2011-03-31  Eric Blake  <eblake@redhat.com>
11146
11147         nonblocking: fix mingw test failures
11148         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11149         non-blocking flag on regular file.
11150         (get_nonblocking_flag): Set errno on invalid fd.
11151         * tests/test-nonblocking.c (main): Avoid test failure on
11152         directories if fchdir is not active.
11153         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11154
11155 2011-03-31  Bruno Haible  <bruno@clisp.org>
11156
11157         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11158         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11159         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11160         Reported by Simon Josefsson <simon@josefsson.org>.
11161
11162 2011-03-31  Bruno Haible  <bruno@clisp.org>
11163         and Eric Blake  <eblake@redhat.com>
11164
11165         nonblocking: new module
11166         * modules/nonblocking: New module.
11167         * modules/nonblocking-tests: Likewise.
11168         * lib/nonblocking.h: New file.
11169         * lib/nonblocking.c: Likewise.
11170         * tests/test-nonblocking.c: New test.
11171         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11172
11173 2011-03-30  Bruno Haible  <bruno@clisp.org>
11174
11175         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11176         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11177         instead of 'printf' format for GCC >= 4.4.
11178         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11179         (fprintf, printf, vfprintf, vprintf): Declare with
11180         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11181         the system's vfprintf() function.
11182         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11183
11184 2011-03-30  Eric Blake  <eblake@redhat.com>
11185
11186         passfd: fix scoping bug
11187         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11188         before sendmsg/recvmsg.
11189
11190         passfd: standardize coding conventions
11191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11192         can be learned at compile time.
11193         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11194         ifdefs.
11195         (sendfd, recvfd): Follow gnulib code conventions.
11196
11197         passfd: fix incorrect sendmsg arguments
11198         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11199         incorrect msg_controllen value.
11200         * modules/passfd-tests (Depends-on): Check for alarm.
11201         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11202         Reported by Bastien ROUCARIES.
11203
11204 2011-03-30  Bruno Haible  <bruno@clisp.org>
11205
11206         c-strcasestr: Relicense under LGPLv2+.
11207         * modules/c-strcasestr (License): Change to LGPLv2+.
11208         Requested by Eric Blake, for libvirt.
11209
11210 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11211
11212         * users.txt: Add libidn2.  Fix libtasn1 link.
11213
11214 2011-03-30  Jim Meyering  <meyering@redhat.com>
11215
11216         tests: readlink* ("",... fails with EINVAL on newer kernels
11217         readlink and readlinkat have typically failed with ENOENT for
11218         the invalid, empty file name,  "".  However, with the advent
11219         of linux-2.6.39, they fail with EINVAL.
11220         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11221         when operating on the empty file name.
11222         * tests/test-readlink.h (test_readlink): Likewise.
11223
11224 2011-03-29  Bruno Haible  <bruno@clisp.org>
11225
11226         Relicense some modules under LGPLv2+, for libidn2.
11227         * modules/array-mergesort (License): Change to LGPLv2+.
11228         * modules/c-strcaseeq (License): Likewise.
11229         * modules/striconveh (License): Likewise.
11230         * modules/striconveha (License): Likewise.
11231         * modules/uniconv/base (License): Likewise.
11232         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11233         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11234         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11235         * modules/unictype/base (License): Likewise.
11236         * modules/unictype/bidiclass-of (License): Likewise.
11237         * modules/unictype/category-M (License): Likewise.
11238         * modules/unictype/category-none (License): Likewise.
11239         * modules/unictype/category-of (License): Likewise.
11240         * modules/unictype/category-test (License): Likewise.
11241         * modules/unictype/category-test-withtable (License): Likewise.
11242         * modules/unictype/combining-class (License): Likewise.
11243         * modules/unictype/joiningtype-of (License): Likewise.
11244         * modules/unictype/scripts (License): Likewise.
11245         * modules/uninorm/base (License): Likewise.
11246         * modules/uninorm/canonical-decomposition (License): Likewise.
11247         * modules/uninorm/composition (License): Likewise.
11248         * modules/uninorm/decompose-internal (License): Likewise.
11249         * modules/uninorm/decomposition-table (License): Likewise.
11250         * modules/uninorm/nfc (License): Likewise.
11251         * modules/uninorm/nfd (License): Likewise.
11252         * modules/uninorm/u32-normalize (License): Likewise.
11253         * modules/unistr/base (License): Likewise.
11254         * modules/unistr/u32-cpy (License): Likewise.
11255         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11256         * modules/unistr/u32-to-u8 (License): Likewise.
11257         * modules/unistr/u32-uctomb (License): Likewise.
11258         * modules/unistr/u8-check (License): Likewise.
11259         * modules/unistr/u8-mblen (License): Likewise.
11260         * modules/unistr/u8-mbtouc (License): Likewise.
11261         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11262         * modules/unistr/u8-mbtoucr (License): Likewise.
11263         * modules/unistr/u8-prev (License): Likewise.
11264         * modules/unistr/u8-strlen (License): Likewise.
11265         * modules/unistr/u8-to-u32 (License): Likewise.
11266         * modules/unistr/u8-uctomb (License): Likewise.
11267         * modules/unitypes (License): Likewise.
11268         Requested by Simon Josefsson.
11269
11270 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11271
11272         lib-symbol-visibility: Add a notice.
11273         * modules/lib-symbol-visibility (Notice): New field.
11274
11275 2011-03-29  Bruno Haible  <bruno@clisp.org>
11276
11277         getaddrinfo: Doc fix.
11278         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11279         section "fixed in Gnulib".
11280
11281 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11282
11283         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11284         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11285
11286 2011-03-26  Bruno Haible  <bruno@clisp.org>
11287
11288         unictype/property-byname: Reduce the number of load-time relocations.
11289         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11290         (UC_PROPERTY_INDEX_*): New enumeration values.
11291         (uc_property_byname): Convert an index from the lookup table to an
11292         uc_property_t.
11293         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11294         values.
11295
11296 2011-03-26  Bruno Haible  <bruno@clisp.org>
11297
11298         unictype/property-byname: Allow omitted word separators and aliases.
11299         * lib/unictype/pr_byname.gperf: Add property names without word
11300         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11301         for 'space'.
11302
11303 2011-03-26  Bruno Haible  <bruno@clisp.org>
11304
11305         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11306         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11307         also hyphens to space.
11308         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11309         without spaces.
11310         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11311
11312 2011-03-26  Bruno Haible  <bruno@clisp.org>
11313
11314         unictype/joiningtype-byname: Recognize long names as well.
11315         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11316         a long name.
11317         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11318         unictype/joiningtype_byname.h.
11319         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11320         * lib/unictype/joiningtype_byname.gperf: New file.
11321         * modules/unictype/joiningtype-byname (Files): Add
11322         lib/unictype/joiningtype_byname.gperf.
11323         (Depends-on): Add gperf.
11324         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11325         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11326         long names.
11327
11328         Tests for module 'unictype/joiningtype-longname'.
11329         * modules/unictype/joiningtype-longname-tests: New file.
11330         * tests/unictype/test-joiningtype_longname.c: New file.
11331
11332         New module 'unictype/joiningtype-longname'.
11333         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11334         * lib/unictype/joiningtype_longname.c: New file.
11335         * modules/unictype/joiningtype-longname: New file.
11336         * modules/unictype/joiningtype-all (Depends-on): Add
11337         unictype/joiningtype-longname.
11338
11339 2011-03-26  Bruno Haible  <bruno@clisp.org>
11340
11341         unictype/bidiclass-byname: Recognize long names as well.
11342         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11343         name.
11344         * lib/unictype/bidi_byname.c: Include <string.h>,
11345         unictype/bidi_byname.h.
11346         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11347         * lib/unictype/bidi_byname.gperf: New file.
11348         * modules/unictype/bidiclass-byname (Files): Add
11349         lib/unictype/bidi_byname.gperf.
11350         (Depends-on): Add gperf.
11351         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11352         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11353         long names.
11354
11355         Tests for module 'unictype/bidiclass-longname'.
11356         * modules/unictype/bidiclass-longname-tests: New file.
11357         * tests/unictype/test-bidi_longname.c: New file.
11358
11359         New module 'unictype/bidiclass-longname'.
11360         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11361         * lib/unictype/bidi_longname.c: New file.
11362         * modules/unictype/bidiclass-longname: New file.
11363         * modules/unictype/bidiclass-all (Depends-on): Add
11364         unictype/bidiclass-longname.
11365
11366 2011-03-26  Bruno Haible  <bruno@clisp.org>
11367
11368         unictype/bidi*: Rename modules.
11369         * modules/unictype/bidiclass-all: Renamed from
11370         modules/unictype/bidicategory-all.
11371         * modules/unictype/bidiclass-name: Renamed from
11372         modules/unictype/bidiclass-name.
11373         (Description): Update.
11374         * modules/unictype/bidiclass-name-tests: Renamed from
11375         modules/unictype/bidicategory-name-tests.
11376         * modules/unictype/bidiclass-byname: Renamed from
11377         modules/unictype/bidicategory-byname.
11378         (Description): Update.
11379         * modules/unictype/bidiclass-byname-tests: Renamed from
11380         modules/unictype/bidicategory-byname-tests.
11381         * modules/unictype/bidiclass-of: Renamed from
11382         modules/unictype/bidicategory-of.
11383         (Description): Update.
11384         * modules/unictype/bidiclass-of-tests: Renamed from
11385         modules/unictype/bidicategory-of-tests.
11386         * modules/unictype/bidiclass-test: Renamed from
11387         modules/unictype/bidicategory-test.
11388         (Description): Update.
11389         * modules/unictype/bidiclass-test-tests: Renamed from
11390         modules/unictype/bidicategory-test-tests.
11391         * modules/unictype/bidicategory-all: New file, a simple redirection.
11392         * modules/unictype/bidicategory-name: Likewise.
11393         * modules/unictype/bidicategory-byname: Likewise.
11394         * modules/unictype/bidicategory-of: Likewise.
11395         * modules/unictype/bidicategory-test: Likewise.
11396         * modules/unictype/property-bidi-* (Dependencies): Update.
11397         * lib/unictype/bidi_*.c: Update comment.
11398
11399 2011-03-26  Bruno Haible  <bruno@clisp.org>
11400
11401         unictype/bidi*: Rename functions, part 2.
11402         * modules/unictype/bidicategory-name (configure.ac): Update required
11403         libunistring version.
11404         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11405
11406 2011-03-25  Bruno Haible  <bruno@clisp.org>
11407
11408         New module 'unictype/combining-class-all'.
11409         * modules/unictype/combining-class-all: New file.
11410
11411         Tests for module 'unictype/combining-class-byname'.
11412         * modules/unictype/combining-class-byname-tests: New file.
11413         * tests/unictype/test-combiningclass_byname.c: New file.
11414
11415         New module 'unictype/combining-class-byname'.
11416         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11417         * lib/unictype/combiningclass_byname.c: New file.
11418         * lib/unictype/combiningclass_byname.gperf: New file.
11419         * modules/unictype/combining-class-byname: New file.
11420
11421         Tests for module 'unictype/combining-class-longname'.
11422         * modules/unictype/combining-class-longname-tests: New file.
11423         * tests/unictype/test-combiningclass_longname.c: New file.
11424
11425         New module 'unictype/combining-class-longname'.
11426         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11427         * lib/unictype/combiningclass_longname.c: New file.
11428         * modules/unictype/combining-class-longname: New file.
11429
11430         Tests for module 'unictype/combining-class-name'.
11431         * modules/unictype/combining-class-name-tests: New file.
11432         * tests/unictype/test-combiningclass_name.c: New file.
11433
11434         New module 'unictype/combining-class-name'.
11435         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11436         * lib/unictype/combiningclass_name.c: New file.
11437         * modules/unictype/combining-class-name: New file.
11438
11439 2011-03-25  Bruno Haible  <bruno@clisp.org>
11440
11441         unictype/combining-class: Rename source files.
11442         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11443         of unictype/combining.h.
11444         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11445         Update.
11446         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11447         * modules/unictype/combining-class (Description): Fix.
11448         (Files, Makefile.am): Update.
11449         * tests/unictype/test-combiningclass.c: Renamed from
11450         tests/unictype/test-combining.c.
11451         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11452
11453 2011-03-25  Bruno Haible  <bruno@clisp.org>
11454
11455         unictype: Update list of canonical combining classes.
11456         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11457
11458 2011-03-25  Bruno Haible  <bruno@clisp.org>
11459
11460         unictype/category-byname: Recognize long names as well.
11461         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11462         a long name.
11463         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11464         unictype/categ_byname.h.
11465         (UC_CATEGORY_INDEX_*): New enumeration values.
11466         (uc_general_category_byname): Use uc_general_category_lookup and
11467         convert from index to value.
11468         * lib/unictype/categ_byname.gperf: New file.
11469         * modules/unictype/category-byname (Files): Add
11470         lib/unictype/categ_byname.gperf.
11471         (Depends-on): Add gperf.
11472         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11473         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11474         long names.
11475
11476         Tests for module 'unictype/category-longname'.
11477         * modules/unictype/category-longname-tests: New file.
11478         * tests/unictype/test-categ_longname.c: New file.
11479
11480         New module 'unictype/category-longname'.
11481         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11482         * lib/unictype/categ_longname.c: New file.
11483         * modules/unictype/category-longname: New file.
11484         * modules/unictype/category-all (Depends-on): Add it.
11485
11486 2011-03-25  Bruno Haible  <bruno@clisp.org>
11487
11488         Tests for module 'unictype/category-LC'.
11489         * modules/unictype/category-LC-tests: New file.
11490         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11491
11492         New module 'unictype/category-LC'.
11493         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11494         (UC_CATEGORY_LC): New declaration.
11495         (UC_CASED_LETTER): New macro.
11496         * lib/gen-uni-tables.c (is_category_LC): New function.
11497         (output_categories): Also handle category LC.
11498         (UC_CATEGORY_MASK_LC): New enumeration value.
11499         (general_category_byname): Also handle category LC.
11500         * lib/unictype/categ_LC.c: New file.
11501         * lib/unictype/categ_LC.h: New file, automatically generated.
11502         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11503         category LC.
11504         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11505         * modules/unictype/category-LC: New file.
11506         * modules/unictype/category-byname (Depends-on): Add
11507         unictype/category-LC.
11508         * modules/unictype/category-all (Depends-on): Likewise.
11509
11510 2011-03-25  Eric Blake  <eblake@redhat.com>
11511
11512         xmalloc: revert yesterday's regression
11513         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11514         realloc's underlying behavior (allowing allocation of zero-size
11515         objects, especially if malloc-gnu is also in use).
11516
11517 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11518
11519         maint.mk: add missing version to VC-tag
11520         * top/maint.mk: git tag was missing actual tag name; add it.
11521
11522         valgrind: do leak checking, and exit with code 1 on error (not 0)
11523         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11524         to VALGRIND.
11525
11526 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11527
11528         posix-modules: say what it does.
11529         * posix-modules: Add a line to the --help output saying what it does.
11530
11531 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11532
11533         xmalloc: Do not leak if underlying realloc is C99 compatible.
11534         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11535         This avoids a leak on C99-based systems.  See
11536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11537
11538 2011-03-24  Eric Blake  <eblake@redhat.com>
11539
11540         realloc: document portability problem
11541         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11542         passing 0 size to realloc.
11543
11544 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11545
11546         doc: update users.txt
11547         * users.txt: Add cvsps, tmpwatch
11548
11549 2011-03-23  Matt Rice  <ratmice@gmail.com>
11550
11551         doc: update users.txt
11552         * users.txt: Add gdb.
11553
11554 2011-03-23  Jim Meyering  <meyering@redhat.com>
11555
11556         doc: update users.txt
11557         Looking through matches up to the following URL (there are still
11558         several more pages), I found several projects that use gnulib:
11559         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11560         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11561         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11562
11563 2011-03-22  Bruno Haible  <bruno@clisp.org>
11564
11565         unictype/bidi*: Rename functions.
11566         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11567         uc_bidi_class, uc_is_bidi_class): New declarations.
11568         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11569         uc_bidi_category_byname.
11570         (uc_bidi_category_byname): New function.
11571         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11572         u_bidi_category_name.
11573         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11574         (uc_bidi_category_name): New function.
11575         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11576         uc_bidi_category.
11577         (uc_bidi_category): New function.
11578         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11579         uc_is_bidi_category. Invoke uc_bidi_class.
11580         (uc_is_bidi_category): New function.
11581         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11582         instead of uc_bidi_category_byname.
11583         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11584         instead of uc_bidi_category_name.
11585         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11586         uc_bidi_category.
11587         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11588         instead of uc_is_bidi_category.
11589
11590 2011-03-21  Bruno Haible  <bruno@clisp.org>
11591
11592         New module 'unictype/joininggroup-all'.
11593         * modules/unictype/joininggroup-all: New file.
11594
11595         Tests for module 'unictype/joininggroup-of'.
11596         * modules/unictype/joininggroup-of-tests: New file.
11597         * tests/unictype/test-joininggroup_of.c: New file.
11598         * tests/unictype/test-joininggroup_of.h: New file, automatically
11599         generated by gen-uni-tables.
11600
11601         New module 'unictype/joininggroup-of'.
11602         * modules/unictype/joininggroup-of: New file.
11603         * lib/unictype/joininggroup_of.c: New file.
11604         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11605         gen-uni-tables.
11606
11607         Tests for module 'unictype/joininggroup-byname'.
11608         * modules/unictype/joininggroup-byname-tests: New file.
11609         * tests/unictype/test-joininggroup_byname.c: New file.
11610
11611         New module 'unictype/joininggroup-byname'.
11612         * modules/unictype/joininggroup-byname: New file.
11613         * lib/unictype/joininggroup_byname.c: New file.
11614         * lib/unictype/joininggroup_byname.gperf: New file.
11615
11616         Tests for module 'unictype/joininggroup-name'.
11617         * modules/unictype/joininggroup-name-tests: New file.
11618         * tests/unictype/test-joininggroup_name.c: New file.
11619
11620         New module 'unictype/joininggroup-name'.
11621         * modules/unictype/joininggroup-name: New file.
11622         * lib/unictype/joininggroup_name.c: New file.
11623         * lib/unictype/joininggroup_name.h: New file.
11624
11625         New module 'unictype/joiningtype-all'.
11626         * modules/unictype/joiningtype-all: New file.
11627
11628         Tests for module 'unictype/joiningtype-of'.
11629         * modules/unictype/joiningtype-of-tests: New file.
11630         * tests/unictype/test-joiningtype_of.c: New file.
11631         * tests/unictype/test-joiningtype_of.h: New file, automatically
11632         generated by gen-uni-tables.
11633
11634         New module 'unictype/joiningtype-of'.
11635         * modules/unictype/joiningtype-of: New file.
11636         * lib/unictype/joiningtype_of.c: New file.
11637         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11638         gen-uni-tables.
11639
11640         Tests for module 'unictype/joiningtype-byname'.
11641         * modules/unictype/joiningtype-byname-tests: New file.
11642         * tests/unictype/test-joiningtype_byname.c: New file.
11643
11644         New module 'unictype/joiningtype-byname'.
11645         * modules/unictype/joiningtype-byname: New file.
11646         * lib/unictype/joiningtype_byname.c: New file.
11647
11648         Tests for module 'unictype/joiningtype-name'.
11649         * modules/unictype/joiningtype-name-tests: New file.
11650         * tests/unictype/test-joiningtype_name.c: New file.
11651
11652         New module 'unictype/joiningtype-name'.
11653         * modules/unictype/joiningtype-name: New file.
11654         * lib/unictype/joiningtype_name.c: New file.
11655
11656         unictype: Add support for Arabic shaping properties.
11657         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11658         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11659         declarations.
11660         (UC_JOINING_GROUP_*): New enumeration values.
11661         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11662         declarations.
11663         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11664         (unicode_joining_type): New variable.
11665         (UC_JOINING_GROUP_*): New enumeration values.
11666         (unicode_joining_group): New variable.
11667         (fill_arabicshaping, joining_type_as_c_identifier,
11668         output_joining_type_test, output_joining_type,
11669         joining_group_as_c_identifier, output_joining_group_test,
11670         output_joining_group): New functions.
11671         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11672         fill_arabicshaping and output_joining_type_test, output_joining_type,
11673         output_joining_group_test, output_joining_group.
11674         Reported by Simon Josefsson.
11675
11676 2011-03-21  Jim Meyering  <meyering@redhat.com>
11677
11678         strftime: fix a bug in yesterday's change
11679         * lib/strftime.c (add): Accommodate width's initial value of -1.
11680         Otherwise, nstrftime would copy uninitialized data into
11681         the result buffer.
11682
11683 2011-03-21  Jim Meyering  <meyering@redhat.com>
11684
11685         tests: add strftime-tests module
11686         * tests/test-strftime.c: New file.
11687         * modules/strftime-tests: New module.
11688
11689 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         strftime: don't assume a byte count fits in 'int'
11692         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11693         found this problem by static analysis, using gcc -Wstrict-overflow
11694         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11695         on an integer overflow having undefined behavior, but it turns out
11696         that the argument is a size, which might not fit in 'int' anyway,
11697
11698 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         stdio: don't require ignore_value around fwrite
11701
11702         This patch works around libc bug 11959
11703         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11704         Without this patch, applications must often write
11705         ignore_value (fwrite (...)) even though the ignore_value is
11706         not helpful here.  It's common to write many objects, using
11707         fwrite/printf/etc., and then use ferror to detect output error.
11708
11709         I considered making this patch optional, but decided against it,
11710         because libc is obviously being inconsistent here: there is no
11711         reason libc should insist that user code must inspect fwrite
11712         return's value without also insisting that it inspect printf's,
11713         putchar's, etc.  If user code wants to have a strict style where
11714         all these functions' values are checked (so that ferror need not
11715         be checked), we could add support for that style in a new gnulib
11716         module, but in the meantime it's better to be consistent and to
11717         support common usage.
11718
11719         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11720         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11721         that we are compiling in checking mode, and if not C++, and
11722         if not already wrapping fwrite for some other reason.
11723         (fwrite): #define to rpl_fwrite if the latter is defined.
11724
11725 2011-03-20  Bruno Haible  <bruno@clisp.org>
11726
11727         verror: Fix compilation error introduced on 2011-02-13.
11728         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11729         instead of __attribute__.
11730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11731
11732 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11733             Bruno Haible  <bruno@clisp.org>
11734
11735         socklen: do not depend on sys_socket
11736         While trying to modify Emacs to use gnulib's socklen module,
11737         I discovered a circular dependency: socklen depends on sys_socket
11738         and vice versa.  Emacs can use socklen, but it does not need
11739         sys_socket because it has its own substitute for sys/socket.h.
11740         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11741         gl_TYPE_SOCKLEN_T.
11742         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11743         gl_PREREQ_SYS_H_SOCKET.
11744         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11745         gl_PREREQ_SYS_H_SOCKET.
11746         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11747         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11748         * modules/socklen (Depends-on): Do not depend on sys_socket.
11749         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11750
11751 2011-03-20  Jim Meyering  <meyering@redhat.com>
11752
11753         maint.mk: sort file names *after* new transformation
11754         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11755         prefix would have led to an unwarranted failure in GNU parted.
11756         Sort after that transformation.
11757
11758 2011-03-19  Jim Meyering  <meyering@redhat.com>
11759
11760         maint.mk: fix po-file syntax-check rule
11761         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11762         Patch by Bruno Haible.
11763
11764 2011-03-19  Bruno Haible  <bruno@clisp.org>
11765
11766         socklen: Update comment.
11767         * m4/socklen.m4: Update comment about platforms.
11768
11769 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11770             Bruno Haible  <bruno@clisp.org>
11771
11772         inet_ntop, inet_pton: Simplify.
11773         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11774         documented to provide socklen_t and we already depend on sys_socket.
11775         * modules/inet_pton (Depends-on): Likewise.
11776         * lib/arpa_inet.in.h: Adjust comment.
11777
11778 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11779             Bruno Haible  <bruno@clisp.org>
11780
11781         netdb: Simplify.
11782         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11783         documented to provide socklen_t and we already depend on sys_socket.
11784         * lib/netdb.in.h: Adjust comment.
11785
11786 2011-03-19  Bruno Haible  <bruno@clisp.org>
11787
11788         sys_socket, netdb: Document problem with socklen_t.
11789         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11790         platforms.
11791         * doc/posix-headers/netdb.texi: Likewise.
11792
11793 2011-03-18  Eric Blake  <eblake@redhat.com>
11794
11795         maint.mk: let po check work in VPATH build
11796         * top/maint.mk (po_file): Allow cfg.mk override.
11797         (sc_po_check): Allow VPATH use.
11798         Reported by Jiri Denemark.
11799
11800 2011-03-16  Jim Meyering  <meyering@redhat.com>
11801
11802         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11803         Before, you would have had to create one .x-sc_ file per rule in order
11804         to exempt offending files.  Now, you may instead use a Make variable --
11805         usually defined in cfg.mk -- whose name identifies the affected rule.
11806         * top/maint.mk (_sc_excl): Define.
11807         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11808         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11809
11810 2011-03-13  Bruno Haible  <bruno@clisp.org>
11811
11812         ignore-value tests: Avoid warnings.
11813         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11814         empty for gcc < 3.4.
11815
11816 2011-03-13  Bruno Haible  <bruno@clisp.org>
11817
11818         passfd: Fix link error on Solaris.
11819         * modules/passfd (Description): Correct.
11820         (Depends-on): Add socketlib.
11821         (Link): New section.
11822         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11823
11824 2011-03-13  Bruno Haible  <bruno@clisp.org>
11825
11826         passfd: Fix link error on AIX 5.2.
11827         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11828
11829 2011-03-13  Bruno Haible  <bruno@clisp.org>
11830
11831         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11832         * lib/sys_socket.in.h: Include <stddef.h>.
11833         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11834         CMSG_FIRSTHDR. Remove unused variable.
11835
11836 2011-03-13  Bruno Haible  <bruno@clisp.org>
11837
11838         passfd: Fix compilation error on OpenBSD.
11839         * lib/passfd.c: Include <sys/uio.h>.
11840
11841 2011-03-13  Bruno Haible  <bruno@clisp.org>
11842
11843         passfd test: Fix warnings.
11844         * tests/test-passfd.c: Include <sys/wait.h>.
11845         (main): Fix typo.
11846
11847 2011-03-13  Bruno Haible  <bruno@clisp.org>
11848
11849         passfd module, part 4, tweaks.
11850         * tests/test-passfd.c: Reorder includes.
11851         (main): Fix perror and printf calls.
11852
11853 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11854
11855         passfd module, part 4.
11856         * modules/passfd-tests: New file.
11857         * tests/test-passfd.c: New file.
11858
11859 2011-03-13  Jim Meyering  <meyering@redhat.com>
11860
11861         Makefile: rely on GNU make; derive syntax-check rule names
11862         Rather than requiring that each sc_ rule be listed as a dependent
11863         of "check", use features of GNU make to derive the list.
11864         * Makefile (syntax-check-rules): Define.
11865         (check): Depend on the new variable, not the hard-coded list.
11866
11867 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11868             Bruno Haible  <bruno@clisp.org>
11869
11870         passfd module, part 3.
11871         * lib/passfd.h (recvfd): Add a flags argument.
11872         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11873         (recvfd): Add a flags argument.
11874         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11875         exists.
11876         * modules/passfd (Depends-on): Add cloexec.
11877         Suggested by Eric Blake.
11878
11879 2011-03-13  Bruno Haible  <bruno@clisp.org>
11880
11881         passfd module, part 2, tweaks.
11882         * modules/passfd (Files): Reorder.
11883         (Depends-on): Remove errno.
11884         (Include): Remove <sys/socket.h>, <sys/un.h>.
11885         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11886         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11887         specification header. Include <sys/socket.h> always. Don't include
11888         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11889         (sendfd): Clarify that it sets errno when it fails.
11890         (recvfd): Fix specification.
11891
11892 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11893
11894         passfd module, part 2.
11895         * modules/passfd: New file.
11896         * lib/passfd.h: New file.
11897         * lib/passfd.c: New file.
11898
11899 2011-03-12  Bruno Haible  <bruno@clisp.org>
11900
11901         wcswidth, mbswidth: Avoid integer overflow.
11902         * lib/wcswidth.c: Include <limits.h>.
11903         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11904         * lib/mbswidth.c: Include <limits.h>.
11905         (mbsnwidth): Avoid 'int' overflow.
11906         Reported by Jim Meyering.
11907
11908 2011-03-12  Bruno Haible  <bruno@clisp.org>
11909
11910         futimens, utimensat: Avoid endless recursion on Solaris 10.
11911         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11912         Solaris.
11913         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11914         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11915
11916 2011-03-11  Jim Meyering  <meyering@redhat.com>
11917
11918         maint.mk: relax a regexp to accommodate other formatting styles
11919         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11920         between "ngettext" and the following "(".
11921
11922 2011-03-11  Pádraig Brady <P@draigBrady.com>
11923
11924         maint.mk: suppress a false positive warning
11925         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11926         diagnostics are marked with ngettext.
11927
11928 2011-03-10  Eric Blake  <eblake@redhat.com>
11929
11930         wchar: add explicit dependencies, for Tru64
11931         * modules/mbmemcasecoll (Depends-on): Add wchar.
11932         * modules/mbtowc (Depends-on): Likewise.
11933         * modules/vasnprintf (Depends-on): Likewise.
11934         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11935         * modules/wctomb (Depends-on): Likewise.
11936         Reported by Peter O'Gorman.
11937
11938 2011-03-08  Bruno Haible  <bruno@clisp.org>
11939
11940         passfd module, part 1, tweaks.
11941         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11942         Improve indentation. Improve AC_MSG_CHECKING messages.
11943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11944         gl_SOCKET_FAMILIES.
11945
11946 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11947
11948         passfd module, part 1.
11949         * m4/afunix.m4: New file.
11950         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11951         sockets.
11952
11953 2011-03-08  Bruno Haible  <bruno@clisp.org>
11954
11955         regex-quote: New API.
11956         * lib/regex-quote.h: Include <stdbool.h>.
11957         (struct regex_quote_spec): New type.
11958         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11959         New declarations.
11960         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11961         'const struct regex_quote_spec *' argument.
11962         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11963         (pcre_special): New constant.
11964         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11965         New functions.
11966         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11967         'const struct regex_quote_spec *' argument.
11968         * modules/regex-quote (Depends-on): Add stdbool.
11969         * tests/test-regex-quote.c (check): Update for new API. Add test for
11970         anchored results.
11971         * NEWS: Mention the API change.
11972         Reported by Reuben Thomas and Eric Blake.
11973
11974 2011-03-06  Bruno Haible  <bruno@clisp.org>
11975
11976         regex-quote: Fix creation of POSIX extended regular expressions.
11977         * lib/regex-quote.c (ere_special): Add grouping and alternation
11978         operators.
11979
11980 2011-03-05  Bruno Haible  <bruno@clisp.org>
11981
11982         doc: Improve doc regarding autopoint vs. gnulib.
11983         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11984         disable autopoint while running autoreconf.
11985         Suggested by Ralf Wildenhues.
11986
11987 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11988
11989         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11990         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11991
11992 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11993
11994         parse-duration: remove xalloc.h dependency
11995         * lib/parse-duration.c (parse_period): handle NULL return from
11996         strdup instead of calling xstrdup().
11997         * modules/parse-duration: remove "xalloc" dependency
11998
11999 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12000
12001         bootstrap: honor m4_base when running aclocal
12002         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12003
12004 2011-03-02  Jim Meyering  <meyering@redhat.com>
12005
12006         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12007         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12008         on request from Matt Booth.
12009
12010 2011-03-01  Eric Blake  <eblake@redhat.com>
12011
12012         test-link: work on Hurd
12013         * tests/test-link.h (test_link): Hurd rejects linking directories
12014         with EISDIR instead of the POSIX-mandated EPERM.
12015
12016 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         stdio: simplify by moving files to printf-posix, sigpipe
12019         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12020         since this symbol is needed only if printf is replaced.
12021         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12022         Require gl_ASM_SYMBOL_PREFIX.
12023         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12024         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12025         (Depends-on): Add 'raise'.
12026         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12027         * modules/stdio (Files): Remove lib/stdio-write.c,
12028         m4/asm-underscore.m4.
12029         (Depends-on): Remove 'raise'.
12030
12031         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12032         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12033         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12034         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12035
12036 2011-02-28  Bruno Haible  <bruno@clisp.org>
12037
12038         localcharset: Assume ANSI C behaviour of free().
12039         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12040         calling free().
12041         Suggested by Simon Josefsson <simon@josefsson.org>.
12042
12043 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12044             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12045             Bruno Haible  <bruno@clisp.org>  (tiny change)
12046
12047         On Cygwin, use /proc file system instead of win32 API.
12048         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12049         Win32 file names.
12050         (DllMain): Simplify by removing Cygwin specific code.
12051         (find_shared_library_fullname): Use Linux specific implementation also
12052         for Cygwin.
12053         (get_shared_library_fullname): Update accordingly.
12054         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12055         Win32 file names.
12056         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12057         Cygwin specific code.
12058
12059 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12060             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12061
12062         Fix OpenMP flag detection for various Fortran compilers.
12063         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12064         OpenMP-conditional compilation construct, to force compile
12065         failure with missing OpenMP flag.
12066         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12067
12068 2011-02-25  Eric Blake  <eblake@redhat.com>
12069
12070         strstr: expand test coverage
12071         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12072         compilation.
12073         * tests/test-memmem.c (main): Duplicate tests.
12074         * tests/test-strcasestr.c (main): Likewise.
12075         * tests/test-c-strcasestr.c (main): Likewise.
12076
12077 2011-02-25  Jim Meyering  <meyering@redhat.com>
12078
12079         maint.mk: detect missing-NL-at-EOF, too
12080         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12081         it also detects when a file lacks a newline at EOF.
12082         (require_exactly_one_NL_at_EOF_): Renamed from
12083         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12084         since people may well have .x-sc_... file names tied to the
12085         existing name.  Suggested by Eric Blake.
12086
12087 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         dirname: move m4/dos.m4 functionality into lib/dosname.h
12090
12091         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12092         extracts symbols from it, puts them into config.h; but it's much
12093         easier to use the symbols directly.  filename.h already does this,
12094         but it disagrees with dos.m4 in some respects.  This patch
12095         introduces a different include file dosname.h that packages up
12096         dos.m4, and then later we can work on merging filename.h and
12097         dosname.h.  Applications that need only the easy-to-configure
12098         symbols should consider including dosname.h rather than dirname.h.
12099         * NEWS: Mention incompatible changes.
12100         * m4/dos.m4: Remove.
12101         * lib/dosname.h, modules/dosname: New files.
12102         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12103         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12104         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12105         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12106         Include dosname.h, not dirname.h.
12107         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12108         Include dosname.h, for definitions of symbols like ISSLASH
12109         that used to be in config.h.
12110         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12111         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12112         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12113         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12114         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12115         * modules/rmdir (Files): Likewise.
12116         * modules/stat (Files): Likewise.
12117         * modules/unlink (Files): Likewise.
12118         * modules/dirname-lgpl (Depends-on): Add dosname.
12119         * modules/lstat (Depends-on): Likewise.
12120         * modules/openat (Depends-on): Likewise.
12121         * modules/rmdir (Depends-on): Likewise.
12122         * modules/savewd (Depends-on): Likewise.
12123         * modules/stat (Depends-on): Likewise.
12124         * modules/unlink (Depends-on): Likewise.
12125         * modules/openat (Depends-on): Remove dirname-lgpl.
12126         * modules/savewd (Depends-on): Likewise.
12127         * tests/test-dirname.c: Do not use removed symbols like
12128         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12129         the remaining symbols, e.g., ISSLASH ('\\').
12130
12131 2011-02-25  Eric Blake  <eblake@redhat.com>
12132
12133         strstr: revert patches that introduced bug and pessimization
12134         * lib/str-two-way.h: Add another reference.
12135         (two_way_short_needle, two_way_long_needle): Revert changes from
12136         2011-02-24; they pessimize search speed.
12137         (critical_factorization): Partially revert changes from
12138         2010-06-22; they violate the requirement that the left half of the
12139         needle be smaller than the period of the needle.
12140
12141 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12142
12143         filenamecat: remove unnecessary dependency on dirname-lgpl
12144         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12145         is no direct dependency, just an indirect one via filenamecat-lgpl.
12146
12147         remove: remove unnecessary use of m4/dos.m4
12148         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12149         * modules/remove (FILES): Remove m4/dos.m4.
12150
12151         * lib/openat-proc.c: Don't include dirname.h; not needed.
12152
12153         backupfile: remove unnecessary use of m4/dos.m4
12154         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12155         of its symbols are used by the backupfile code.  backupfile.c does
12156         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12157         for the rare case of programs that want all their backup file
12158         names to live within 8+3 limits, and dos.m4 doesn't address that.
12159         * modules/backupfile (Files): Remove m4/dos.m4.
12160
12161 2011-02-24  Jim Meyering  <meyering@redhat.com>
12162
12163         strstr: fix a bug whereby strstr would mistakenly return NULL
12164         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12165         in period calculation.
12166         (two_way_long_needle): Likewise.
12167         The original problem was reported by Mike Stump in
12168         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12169         Ralf Wildenhues provided the short needle and haystack.
12170         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12171         Add a more involved test to trigger the bug in two_way_long_needle.
12172
12173 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12174
12175         gnulib-tool: remove use of bold display in help screen
12176         * gnulib-tool (func_usage): Do not use bold display anymore in the
12177         help screen.  That was just meant to be a temporary emphasis for a
12178         backward-incompatible change.
12179
12180 2011-02-23  Bruno Haible  <bruno@clisp.org>
12181
12182         Fix misindentation of preprocessor directives.
12183         * lib/argp-namefrob.h: Reindent preprocessor directives.
12184         * lib/getopt_int.h (struct _getopt_data): Likewise.
12185         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12186         * lib/vasnprintf.c (decode_long_double): Likewise.
12187         * tests/test-argmatch.c: Insert blank lines, for clarity.
12188         * tests/test-exclude.c: Likewise.
12189
12190 2011-02-22  Bruno Haible  <bruno@clisp.org>
12191
12192         ioctl: Fix for MacOS X in 64-bit mode.
12193         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12194         value.
12195         Suggested by Eric Blake.
12196         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12197
12198 2011-02-22  Jim Meyering  <meyering@redhat.com>
12199
12200         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12201         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12202         in lib/.
12203
12204 2011-02-22  Eric Blake  <eblake@redhat.com>
12205
12206         maint: avoid any CDPATH issue
12207         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12208
12209         maint: adjust cpp indentation for my modules, as well
12210         * Makefile (sc_cpp_indent_check): Add my name.
12211         * lib/fbufmode.c: Filter through cppi.
12212         * lib/fpurge.c: Likewise.
12213         * lib/freadable.c: Likewise.
12214         * lib/freading.c: Likewise.
12215         * lib/fwritable.c: Likewise.
12216         * lib/fwriting.c: Likewise.
12217         * lib/sigaction.c: Likewise.
12218
12219 2011-02-22  Jim Meyering  <meyering@redhat.com>
12220
12221         maint: adjust cpp indentation to reflect nesting depth
12222         I.e., in a block of code that begins with an unnested "#if",
12223         put one space between the "#" in column 1 and following token.
12224         For example,
12225         -#include <sys/vfs.h>
12226         +# include <sys/vfs.h>
12227         Do this only in .c files that are part of a module I maintain.
12228         * lib/linkat.c: Filter through cppi.
12229         * lib/nanosleep.c: Likewise.
12230         * lib/openat.c: Likewise.
12231         * lib/openat-die.c: Likewise.
12232         * lib/dup3.c: Likewise.
12233         * lib/fchownat.c: Likewise.
12234         * lib/flock.c: Likewise.
12235         * lib/fsync.c: Likewise.
12236         * lib/fts.c: Likewise.
12237         * lib/getpass.c: Likewise.
12238         * lib/gettimeofday.c: Likewise.
12239         * lib/userspec.c: Likewise.
12240         * Makefile (sc_cpp_indent_check): New rule, to check this.
12241
12242 2011-02-22  Bruno Haible  <bruno@clisp.org>
12243
12244         New module 'wctomb'.
12245         * lib/stdlib.in.h (wctomb): New declaration.
12246         * lib/wctomb.c: New file.
12247         * lib/wctomb-impl.h: New file.
12248         * m4/wctomb.m4: New file.
12249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12250         REPLACE_WCTOMB.
12251         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12252         REPLACE_WCTOMB.
12253         * modules/wctomb: New file.
12254         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12255         * doc/posix-functions/wctomb.texi: Mention the new module.
12256         * modules/wctob (Depends-on): Add wctomb.
12257
12258 2011-02-22  Bruno Haible  <bruno@clisp.org>
12259
12260         New module 'mbtowc'.
12261         * lib/stdlib.in.h (mbtowc): New declaration.
12262         * lib/mbtowc.c: New file.
12263         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12264         * m4/mbtowc.m4: New file.
12265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12266         REPLACE_MBTOWC.
12267         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12268         REPLACE_MBTOWC.
12269         * modules/mbtowc: New file.
12270         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12271         * doc/posix-functions/mbtowc.texi: Mention the new module.
12272         * modules/btowc (Depends-on): Add mbtowc.
12273
12274 2011-02-22  Bruno Haible  <bruno@clisp.org>
12275
12276         wcrtomb: Add more tests for native Windows platforms.
12277         * tests/test-wcrtomb-w32-1.sh: New file.
12278         * tests/test-wcrtomb-w32-2.sh: New file.
12279         * tests/test-wcrtomb-w32-3.sh: New file.
12280         * tests/test-wcrtomb-w32-4.sh: New file.
12281         * tests/test-wcrtomb-w32-5.sh: New file.
12282         * tests/test-wcrtomb-w32.c: New file.
12283         * modules/wcrtomb-tests (Files): Add them.
12284         (Makefile.am): Arrange to run these tests.
12285         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12286         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12287
12288 2011-02-20  Bruno Haible  <bruno@clisp.org>
12289
12290         wcrtomb: Enhance test.
12291         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12292
12293 2011-02-20  Bruno Haible  <bruno@clisp.org>
12294
12295         mbrtowc: Tiny optimization.
12296         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12297
12298 2011-02-20  Jim Meyering  <meyering@redhat.com>
12299
12300         test-exclude.c: remove unmatched #endif
12301         * tests/test-exclude.c: Remove stray #endif, left over from
12302         the change of a week ago.
12303
12304 2011-02-19  Jim Meyering  <meyering@redhat.com>
12305
12306         git-version-gen: skip "-dirty" check when appropriate
12307         * build-aux/git-version-gen: Don't run any git commands when the
12308         version string comes from .tarball-version.  Prior to this, we
12309         would run git update-index --refresh even from a just-unpacked
12310         tarball directory, and that could affect a .git/ directory in a
12311         parent of the build directory.  Reported by Mike Frysinger.
12312
12313 2011-02-19  Bruno Haible  <bruno@clisp.org>
12314
12315         unictype/property-byname: Reduce the size of the 'data' segment.
12316         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12317
12318 2011-02-19  Bruno Haible  <bruno@clisp.org>
12319
12320         unictype/scripts: Reduce the size of the 'data' segment.
12321         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12322         '%pic'.
12323         * lib/unictype/scripts_byname.gperf: Regenerated.
12324
12325 2011-02-19  Bruno Haible  <bruno@clisp.org>
12326
12327         stdint: Update documentation.
12328         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12329
12330 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12331
12332         stdint: omit redundant check for wchar.h
12333         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12334         always tests whether wchar.h exists, so remove the now-redundant test.
12335
12336 2011-02-18  Bruno Haible  <bruno@clisp.org>
12337
12338         stdint: Cut dependency to module 'wchar'.
12339         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12340         include the necessary prerequisites.
12341         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12342         * modules/stdint (Depends-on): Remove wchar.
12343         (Makefile.am): Substitute HAVE_WCHAR_H.
12344         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12345
12346 2011-02-18  Eric Blake  <eblake@redhat.com>
12347
12348         longlong: skip, rather than fail, on cross-compilation
12349         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12350         when cross-compiling; regression from 2011-02-16.
12351
12352 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12353
12354         * NEWS: Mention 2011-02-08 change to stdlib.
12355
12356 2011-02-17  Bruno Haible  <bruno@clisp.org>
12357
12358         getloadavg: Add comments about platforms.
12359         * m4/getloadavg.m4: Add comment.
12360         * lib/getloadavg.c: Likewise.
12361
12362 2011-02-17  Bruno Haible  <bruno@clisp.org>
12363
12364         getloadavg: Fix link error on Solaris 2.6.
12365         * modules/getloadavg (Link): New section.
12366         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12367         linking test-getloadavg.
12368         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12369         getloadavg.
12370
12371 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12372
12373         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12374         It was 'int', but this doesn't match the IRIX 6.5 manual.
12375         Suggested by Bruno Haible in
12376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12377
12378 2011-02-17  Bruno Haible  <bruno@clisp.org>
12379
12380         havelib: Fix comments.
12381         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12382         change.
12383
12384 2011-02-17  Bruno Haible  <bruno@clisp.org>
12385
12386         havelib: Update config.rpath.
12387         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12388
12389 2011-02-17  Bruno Haible  <bruno@clisp.org>
12390
12391         getloadavg test: Add some plausibility checks.
12392         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12393         is improbable.
12394
12395 2011-02-16  Eric Blake  <eblake@redhat.com>
12396
12397         maintainer-makefile: make syntax-check a no-op from tarballs
12398         * top/maint.mk (no-vc-detected): New rule.
12399         (local-checks-available): Use it to avoid hanging if someone tries
12400         'make syntax-check' from a tarball.  Also append to any non-syntax
12401         checks already defined in cfg.mk.
12402
12403 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         longlong: tune, particularly for common case of c99
12406
12407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12408         or running anything if c99, or if unsigned long long int does not
12409         work.  In either case, we know the answer without further tests.
12410         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12411         it at most once, and use its results for both long long int and
12412         unsigned long long int.  This is more likely to be efficient in
12413         the common case where the program wants to check for both long
12414         long int and unsigned long long int.
12415         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12416         since the answer is already known.
12417
12418 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12419
12420         getloadavg: set errno
12421         * lib/getloadavg.c: Set errno when returning -1.  If no other
12422         error number looks appropriate, set it to ENOSYS if the getloadavg
12423         looks like it can't possibly ever work, ENOTSUP otherwise.
12424         Suggested by Bruno Haible in
12425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12426
12427         getloadavg: trim unused parts and speed up 'configure'
12428         * NEWS: Document this.
12429         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12430         always compiled if getloadavg is absent.
12431         Move test code to ...
12432         * tests/test-getloadavg.c: New file, containing previous
12433         contents of test from lib/getloadavg.c.  It also contains
12434         suggestions by Bruno Haible in
12435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12436         * modules/getloadavg-tests: New file.
12437         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12438         Do tests in the same order as they're needed for getloadavg.c.
12439         Omit setgid-related tests that generate symbols KMEM_GROUP,
12440         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12441         Do only the tests that are needed to see whether the system has
12442         getloadavg, moving the other tests into ...
12443         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12444         NLIST_NAME_UNION; nobody should be using it.  Do not define
12445         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12446         relevant, as the user of this module shouldn't care how getloadavg
12447         is implemented.
12448
12449         getloadavg: omit unused var
12450         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12451
12452 2011-02-15  Jim Meyering  <meyering@redhat.com>
12453
12454         doc: update users.txt
12455         * users.txt: Update iwhd's URL.
12456
12457 2011-02-13  Bruno Haible  <bruno@clisp.org>
12458
12459         Consistent macro naming for macros that use GCC __attribute__.
12460         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12461         _ATTRIBUTE_NONNULL_.
12462         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12463         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12464         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12465         ATTRIBUTE_DEPRECATED.
12466         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12467         ATTRIBUTE_NORETURN.
12468         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12469         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12470         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12471         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12472         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12473         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12474         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12475         ATTRIBUTE_SENTINEL.
12476         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12477         ATTRIBUTE_RETURN_CHECK.
12478         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12479         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12480         ATTRIBUTE_NORETURN.
12481         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12482         Reported by Paul Eggert.
12483
12484 2011-02-13  Bruno Haible  <bruno@clisp.org>
12485
12486         Don't interfere with a program's definition of __attribute__.
12487         * lib/argp.h (__attribute__): Remove definition.
12488         (_GL_ATTRIBUTE_FORMAT): New macro.
12489         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12490         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12491         (_GL_ATTRIBUTE_FORMAT): New macro.
12492         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12493         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12494         GCC 3 or newer.
12495         * lib/error.h (__attribute__): Remove definition.
12496         (_GL_ATTRIBUTE_FORMAT): New macro.
12497         (error, error_at_line): Use it.
12498         * lib/hash.h (__attribute__): Remove definition.
12499         (ATTRIBUTE_WUR): Update definition. Define always.
12500         * lib/openat.h (__attribute__): Remove definition.
12501         (ATTRIBUTE_NORETURN): Update definition. Define always.
12502         * lib/sigpipe-die.h (__attribute__): Remove definition.
12503         (ATTRIBUTE_NORETURN): Update definition. Define always.
12504         * lib/vasnprintf.h (__attribute__): Remove definition.
12505         (_GL_ATTRIBUTE_FORMAT): New macro.
12506         (asnprintf, vasnprintf): Use it.
12507         * lib/xalloc.h (__attribute__): Remove definition.
12508         (ATTRIBUTE_NORETURN): Update definition. Define always.
12509         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12510         * lib/xmemdup0.h (__attribute__): Remove definition.
12511         (ATTRIBUTE_NORETURN): Update definition. Define always.
12512         * lib/xprintf.h (__attribute__): Remove definition.
12513         (_GL_ATTRIBUTE_FORMAT): New macro.
12514         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12515         * lib/xstrtol.h (__attribute__): Remove definition.
12516         (ATTRIBUTE_NORETURN): Update definition. Define always.
12517         * lib/xvasprintf.h (__attribute__): Remove definition.
12518         (_GL_ATTRIBUTE_FORMAT): New macro.
12519         (xasprintf, xvasprintf): Use it.
12520         * tests/test-argmatch.c (__attribute__): Remove definition.
12521         (ATTRIBUTE_NORETURN): Update definition. Define always.
12522         * tests/test-exclude.c (__attribute__): Remove definition.
12523         (ATTRIBUTE_NORETURN): Update definition. Define always.
12524         Reported by Paul Eggert.
12525
12526 2011-02-13  Bruno Haible  <bruno@clisp.org>
12527
12528         mbrtowc: Add more tests for native Windows platforms.
12529         * tests/test-mbrtowc-w32-1.sh: New file.
12530         * tests/test-mbrtowc-w32-2.sh: New file.
12531         * tests/test-mbrtowc-w32-3.sh: New file.
12532         * tests/test-mbrtowc-w32-4.sh: New file.
12533         * tests/test-mbrtowc-w32-5.sh: New file.
12534         * tests/test-mbrtowc-w32.c: New file.
12535         * modules/mbrtowc-tests (Files): Add them.
12536         (Makefile.am): Arrange to run these tests.
12537         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12538         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12539
12540 2011-02-13  Bruno Haible  <bruno@clisp.org>
12541
12542         mbrtowc: Work around native Windows bug.
12543         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12544         guess when no suitable locale for testing was found.
12545         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12546
12547 2011-02-13  Bruno Haible  <bruno@clisp.org>
12548
12549         mbsinit: Work around mingw bug.
12550         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12551         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12552         Windows.
12553         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12554
12555 2011-02-13  Bruno Haible  <bruno@clisp.org>
12556
12557         mbsinit: Don't crash for a NULL argument.
12558         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12559         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12560
12561 2011-02-13  Bruno Haible  <bruno@clisp.org>
12562
12563         Don't interfere with a program's definition of __attribute__.
12564         * lib/stdio.in.h (__attribute__): Remove definition.
12565         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12566         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12567         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12568         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12569         * lib/string.in.h (__attribute__): Remove definition.
12570         Reported by Paul Eggert.
12571
12572 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12573
12574         stdlib: don't get in the way of non-GCC __attribute__
12575         See thread starting at
12576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12577         Revert previous stdlib change, installing the following instead:
12578         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12579         to get in the way of a non-GCC compiler that supports __attribute__.
12580         (_GL_ATTRIBUTE_RETURN): New macro.
12581         (_Exit): Use it instead of __attribute__.
12582
12583 2011-02-12  Bruno Haible  <bruno@clisp.org>
12584
12585         quotearg test: Avoid test failure on mingw.
12586         * tests/test-quotearg.sh: Convert the locale identifier from native
12587         Windows syntax to Unix syntax.
12588
12589 2011-02-12  Bruno Haible  <bruno@clisp.org>
12590
12591         setlocale: Prefer gnulib's override over libintl's override.
12592         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12593         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12594         GNULIB_defined_setlocale is set.
12595
12596 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12597
12598         stdlib: support non-GCC __attribute__
12599
12600         Fix a serious and tricky problem encountered when attempting to
12601         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12602         5.5, but it crashed due to memory corruption on Solaris 10 with
12603         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12604         bits that are otherwise zero.  This tagging is optional inside
12605         Emacs but is preferred and is used when __attribute__ ((__aligned
12606         (8))) works, as it does with both recent-enough GCC and with Sun C
12607         5.11.  However, Sun C 5.11 is not GCC and does not #define
12608         __GNUC__ and __GNUC_MINOR__.
12609
12610         When I added the getloadavg module to Emacs, it brought in
12611         stdlib.in.h, which contained this fragment:
12612
12613            #ifndef __attribute__
12614            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12615            #  define __attribute__(Spec)   /* empty */
12616            # endif
12617            #endif
12618
12619         When files that include <stdlib.h> were compiled with Sun C 5.11,
12620         the above code disabled __attribute__ ((__aligned (8))), which
12621         caused variables to not be properly aligned, which eventually led
12622         to the pointer corruption mentioned above.  (This was a bit hard
12623         to diagnose, unfortunately.)
12624
12625         Several "#define __attribute__(X) /* empty */" code snippets need
12626         to be eradicated from Gnulib to work with non-GCC compilers that
12627         support __attribute__.  The Autoconf way to do this is to test for
12628         each kind of attribute that we want support for, and selectively
12629         enable that in source code.
12630
12631         Fix this problem just for stdlib.h, by adding a test for the
12632         __noreturn__ attribute, and change stdlib.in.h to use that test
12633         when needed.  This technique can be easily generalized to the
12634         other *.in.h files and attributes, and a similar technique can be
12635         used for *.h and *.c files.  This patch is enough to solve the
12636         problem for Emacs + getloadavg, and I thought I'd publish it for
12637         feedback before undertaking further, similar fixes in other
12638         modules.
12639
12640         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12641         because it's not needed for stdlib.h.  It merely substitutes the
12642         value directly into stdlib.h.  We may well need to #define it, or
12643         similar symbols, for other modules, but it's nice to also have an
12644         option to not #define it for applications like Emacs that do not
12645         need it.
12646
12647         * lib/stdlib.in.h (__attribute__): Do not #define.
12648         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12649         be defined only if the _Exit module is also used.
12650         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12652         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12653         platforms.
12654         * modules/_Exit (Files): Add m4/attribute.m4.
12655         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12656         * m4/attribute.m4: New file.
12657
12658 2011-02-12  Bruno Haible  <bruno@clisp.org>
12659
12660         wcsrtombs: Work around bug on native Windows.
12661         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12662         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12663         instead of len.
12664         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12665
12666 2011-02-12  Bruno Haible  <bruno@clisp.org>
12667
12668         mbsrtowcs: Work around bug on native Windows.
12669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12670         against mingw bug.
12671         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12672
12673 2011-02-12  Bruno Haible  <bruno@clisp.org>
12674
12675         Avoid setlocale bugs in tests.
12676         * modules/btowc (Dependencies): Add setlocale.
12677         * modules/c-strcase (Dependencies): Likewise.
12678         * modules/mbmemcasecmp (Dependencies): Likewise.
12679         * modules/mbmemcasecoll (Dependencies): Likewise.
12680         * modules/mbrtowc (Dependencies): Likewise.
12681         * modules/mbscasecmp (Dependencies): Likewise.
12682         * modules/mbscasestr (Dependencies): Likewise.
12683         * modules/mbschr (Dependencies): Likewise.
12684         * modules/mbscspn (Dependencies): Likewise.
12685         * modules/mbsinit (Dependencies): Likewise.
12686         * modules/mbsncasecmp (Dependencies): Likewise.
12687         * modules/mbsnrtowcs (Dependencies): Likewise.
12688         * modules/mbspbrk (Dependencies): Likewise.
12689         * modules/mbspcasecmp (Dependencies): Likewise.
12690         * modules/mbsrchr (Dependencies): Likewise.
12691         * modules/mbsrtowcs (Dependencies): Likewise.
12692         * modules/mbsspn (Dependencies): Likewise.
12693         * modules/mbsstr (Dependencies): Likewise.
12694         * modules/nl_langinfo (Dependencies): Likewise.
12695         * modules/quotearg (Dependencies): Likewise.
12696         * modules/unicase/locale-language (Dependencies): Likewise.
12697         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12698         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12699         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12700         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12701         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12702         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12703         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12704         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12705         * modules/vasnprintf-posix (Dependencies): Likewise.
12706         * modules/wcrtomb (Dependencies): Likewise.
12707         * modules/wcsnrtombs (Dependencies): Likewise.
12708         * modules/wcsrtombs (Dependencies): Likewise.
12709
12710 2011-02-12  Bruno Haible  <bruno@clisp.org>
12711
12712         setlocale: Workaround native Windows bug.
12713         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12714         succeeds but sets LC_CTYPE to "C", report a failure.
12715         * tests/test-setlocale2.sh: New file.
12716         * tests/test-setlocale2.c: New file.
12717         * modules/setlocale-tests (Files): Add the new files.
12718         (Makefile.am): Enable test-setlocale2.sh test.
12719         * doc/posix-functions/setlocale.texi: Mention workaround.
12720
12721 2011-02-11  Bruno Haible  <bruno@clisp.org>
12722
12723         Tests for module 'setlocale'.
12724         * modules/setlocale-tests: New file.
12725         * tests/test-setlocale1.sh: New file.
12726         * tests/test-setlocale1.c: New file.
12727
12728         New module 'setlocale'.
12729         * lib/locale.in.h (setlocale): New declaration.
12730         * lib/setlocale.c: New file, based on
12731         gettext/gettext-runtime/intl/setlocale.c.
12732         * m4/setlocale.m4: New file.
12733         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12734         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12735         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12736         REPLACE_SETLOCALE.
12737         * modules/setlocale: New file.
12738         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12739         * doc/posix-functions/setlocale.texi: Mention the new module.
12740
12741 2011-02-11  Bruno Haible  <bruno@clisp.org>
12742
12743         Prepare for locale dependent tests on mingw.
12744         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12745         because it has the wrong locale encoding.
12746         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12747         French_France.1252 instead of "fr".
12748         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12749         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12750         because it has the wrong locale encoding.
12751         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12752         native Windows, try Turkish_Turkey.65001.
12753         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12754         Chinese_China.54936.
12755
12756         Prepare for locale dependent tests on mingw.
12757         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12758         differently.
12759         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12760         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12761         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12762         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12763
12764 2011-02-11  Eric Blake  <eblake@redhat.com>
12765
12766         strptime: avoid compiler warnings
12767         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12768         compiler warnings about dead code.
12769         Reported by Daniel P. Berrange.
12770
12771 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12772
12773         doc: update users.txt
12774         * users.txt: Add rcs.
12775
12776 2011-02-10  John W. Eaton  <jwe@gnu.org>
12777
12778         doc: update users.txt
12779         * users.txt: Add octave.
12780
12781 2011-02-10  Jim Meyering  <meyering@redhat.com>
12782
12783         doc: update users.txt
12784         * users.txt: Add iwhd.
12785
12786 2011-02-09  Bruno Haible  <bruno@clisp.org>
12787
12788         gnulib-tool: Make copyright notice adjustment more robust.
12789         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12790         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12791         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12792         License".
12793         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12794
12795 2011-02-06  Bruno Haible  <bruno@clisp.org>
12796
12797         New module 'towctrans'.
12798         * modules/towctrans: New file.
12799         * lib/wctype.in.h (towctrans): New declaration.
12800         * lib/towctrans.c: New file.
12801         * lib/towctrans-impl.h: New file.
12802         * m4/towctrans.m4: New file.
12803         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12804         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12805         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12806         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12807         * doc/posix-functions/towctrans.texi: Mention the new module.
12808
12809 2011-02-06  Bruno Haible  <bruno@clisp.org>
12810
12811         New module 'wctrans'.
12812         * modules/wctrans: New file.
12813         * lib/wctype.in.h (wctrans): New declaration.
12814         * lib/wctrans.c: New file.
12815         * lib/wctrans-impl.h: New file.
12816         * m4/wctrans.m4: New file.
12817         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12818         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12819         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12820         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12821         * doc/posix-functions/wctrans.texi: Mention the new module.
12822
12823 2011-02-06  Bruno Haible  <bruno@clisp.org>
12824
12825         New module 'iswctype'.
12826         * modules/iswctype: New file.
12827         * lib/wctype.in.h (iswctype): New declaration.
12828         * lib/iswctype.c: New file.
12829         * lib/iswctype-impl.h: New file.
12830         * m4/iswctype.m4: New file.
12831         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12832         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12833         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12834         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12835         * doc/posix-functions/iswctype.texi: Mention the new module and the
12836         HP-UX 11.00 problem.
12837
12838 2011-02-06  Bruno Haible  <bruno@clisp.org>
12839
12840         New module 'wctype'.
12841         * modules/wctype: Change to represent the wctype() substitute.
12842         * lib/wctype.in.h (wctype): New declaration.
12843         * lib/wctype.c: New file.
12844         * lib/wctype-impl.h: New file.
12845         * m4/wctype.m4: New file.
12846         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12847         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12848         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12849         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12850         * doc/posix-functions/wctype.texi: Mention the new module and the
12851         HP-UX 11.00 problem.
12852
12853 2011-02-06  Bruno Haible  <bruno@clisp.org>
12854
12855         wctype-h: Ensure wctype_t and wctrans_t are defined.
12856         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12857         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12858         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12859         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12860         HAVE_WCTRANS_T.
12861         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12862
12863 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12864
12865         flock: fix license typo
12866
12867         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12868         omitted.
12869
12870 2011-02-08  Bruno Haible  <bruno@clisp.org>
12871
12872         Split large sed scripts, for HP-UX sed.
12873         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12874         to avoid HP-UX limit of 99 commands, in the near future.
12875         * modules/stdlib (Makefile.am): Likewise.
12876         * modules/unistd (Makefile.am): Likewise.
12877         * modules/wchar (Makefile.am): Likewise.
12878         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12879         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12881
12882 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12883             Bruno Haible  <bruno@clisp.org>
12884
12885         stdlib: improve random_r modularization
12886         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12887         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12888         you also need the random_r module to get this material right.
12889         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12890         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12891         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12892
12893 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12894
12895         stdlib: don't depend on stdint
12896         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12897         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12898         be independent of whether stdint.h is needed.
12899         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12900         here, instead of ...
12901         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12902         struct random_data should be using the random_r module, not just
12903         the stdlib module (which wouldn't make sense: what package needs
12904         just struct random_data without also needing random_r?).
12905         * modules/stdlib (Depends-on): Remove stdint.
12906
12907         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12908         See the thread rooted at
12909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12910         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12911         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12912         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12913         __VMS)); previously it was always included (via fcntl--.h).
12914         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12915         hand; this is good enough for load averages.  Also, do not use
12916         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12917         flags directly if available and don't bother otherwise.  (Packages
12918         that need the extra reliability should use the modules that define
12919         these flags on older platforms that lack them.)
12920         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12921         fcntl-safer.
12922
12923 2011-02-08  Jim Meyering  <meyering@redhat.com>
12924
12925         di-set.h, ino-map.h: add multiple-inclusion guard
12926         Technically, the guard is required only for ino-map.h, due to its
12927         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12928         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12929         * lib/ino-map.h: Likewise.
12930
12931 2011-02-06  Bruno Haible  <bruno@clisp.org>
12932
12933         iswblank: Ensure declaration on glibc systems.
12934         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12935         * modules/iswblank (Dependencies): Add 'extensions'.
12936         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12937
12938 2011-02-06  Bruno Haible  <bruno@clisp.org>
12939
12940         New module 'iswblank'.
12941         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12942         * modules/iswblank: New file.
12943         * modules/wctype-h (Files): Remove lib/iswblank.c.
12944         (Makefile.am): Substitute GNULIB_ISWBLANK.
12945         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12946         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12947         (gl_WCTYPE_H_DEFAULTS): New macro.
12948         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12949         * modules/iswblank-tests: New file.
12950         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12951         * tests/test-wctype-h.c (main): Remove iswblank tests.
12952         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12953         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12954         of 'wctype-h'.
12955         * NEWS: Mention the change.
12956         * modules/mbchar (Depends-on): Add iswblank.
12957
12958 2011-02-08  Bruno Haible  <bruno@clisp.org>
12959
12960         di-set tests: Refactor.
12961         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12962         unnecessary includes.
12963         (ASSERT): Remove macro.
12964         (main): Make C90 compliant by avoiding variable declaration after
12965         statement.
12966         * modules/di-set-tests (Files): Add tests/macros.h.
12967
12968 2011-02-08  Bruno Haible  <bruno@clisp.org>
12969
12970         ino-map tests: Refactor.
12971         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12972         unnecessary includes.
12973         (ASSERT): Remove macro.
12974         (main): Make C90 compliant by avoiding variable declaration after
12975         statement.
12976         * modules/ino-map-tests (Files): Add tests/macros.h.
12977
12978 2011-02-08  Jim Meyering  <meyering@redhat.com>
12979
12980         di-set: add "const" to a cast
12981         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12982         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12983
12984 2011-02-06  Bruno Haible  <bruno@clisp.org>
12985
12986         Rename module 'wctype' to 'wctype-h'.
12987         * modules/wctype-h: Renamed from modules/wctype.
12988         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12989         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12990         (Files, Depends-on, Makefile.am): Update.
12991         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12992         (Files, Makefile.am): Update.
12993         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12994         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12995         * doc/posix-headers/wctype.texi: Update.
12996         * doc/posix-functions/iswalnum.texi: Update.
12997         * doc/posix-functions/iswalpha.texi: Update.
12998         * doc/posix-functions/iswblank.texi: Update.
12999         * doc/posix-functions/iswcntrl.texi: Update.
13000         * doc/posix-functions/iswdigit.texi: Update.
13001         * doc/posix-functions/iswgraph.texi: Update.
13002         * doc/posix-functions/iswlower.texi: Update.
13003         * doc/posix-functions/iswprint.texi: Update.
13004         * doc/posix-functions/iswpunct.texi: Update.
13005         * doc/posix-functions/iswspace.texi: Update.
13006         * doc/posix-functions/iswupper.texi: Update.
13007         * doc/posix-functions/iswxdigit.texi: Update.
13008         * doc/posix-functions/towlower.texi: Update.
13009         * doc/posix-functions/towupper.texi: Update.
13010         * NEWS: Mention the change.
13011         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13012         * modules/mbchar (Dependencies): Likewise.
13013         * modules/mbswidth (Dependencies): Likewise.
13014         * modules/quotearg (Dependencies): Likewise.
13015         * modules/regex (Dependencies): Likewise.
13016         * modules/wcscasecmp (Dependencies): Likewise.
13017         * modules/wcsncasecmp (Dependencies): Likewise.
13018         * modules/wcwidth (Dependencies): Likewise.
13019
13020 2011-02-06  Bruno Haible  <bruno@clisp.org>
13021
13022         New module 'wcswidth'.
13023         * modules/wcswidth: New file.
13024         * lib/wchar.in.h (wcswidth): New declaration.
13025         * lib/wcswidth.c: New file.
13026         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13027         * m4/wcswidth.m4: New file.
13028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13030         REPLACE_WCSWIDTH.
13031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13032         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13033         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13034         * doc/posix-functions/wcswidth.texi: Mention the new module.
13035
13036 2011-02-06  Bruno Haible  <bruno@clisp.org>
13037
13038         New module 'wcstok'.
13039         * modules/wcstok: New file.
13040         * lib/wchar.in.h (wcstok): New declaration.
13041         * lib/wcstok.c: New file.
13042         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13043         * m4/wcstok.m4: New file.
13044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13047         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13048         * doc/posix-functions/wcstok.texi: Mention the new module.
13049
13050 2011-02-06  Bruno Haible  <bruno@clisp.org>
13051
13052         New module 'wcsstr'.
13053         * modules/wcsstr: New file.
13054         * lib/wchar.in.h (wcsstr): New declaration.
13055         * lib/wcsstr.c: New file.
13056         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13057         * m4/wcsstr.m4: New file.
13058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13061         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13062         * doc/posix-functions/wcsstr.texi: Mention the new module.
13063
13064 2011-02-06  Bruno Haible  <bruno@clisp.org>
13065
13066         New module 'wcspbrk'.
13067         * modules/wcspbrk: New file.
13068         * lib/wchar.in.h (wcspbrk): New declaration.
13069         * lib/wcspbrk.c: New file.
13070         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13071         * m4/wcspbrk.m4: New file.
13072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13075         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13076         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13077
13078 2011-02-06  Bruno Haible  <bruno@clisp.org>
13079
13080         New module 'wcsspn'.
13081         * modules/wcsspn: New file.
13082         * lib/wchar.in.h (wcsspn): New declaration.
13083         * lib/wcsspn.c: New file.
13084         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13085         * m4/wcsspn.m4: New file.
13086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13089         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13090         * doc/posix-functions/wcsspn.texi: Mention the new module.
13091
13092 2011-02-06  Bruno Haible  <bruno@clisp.org>
13093
13094         New module 'wcscspn'.
13095         * modules/wcscspn: New file.
13096         * lib/wchar.in.h (wcscspn): New declaration.
13097         * lib/wcscspn.c: New file.
13098         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13099         * m4/wcscspn.m4: New file.
13100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13103         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13104         * doc/posix-functions/wcscspn.texi: Mention the new module.
13105
13106 2011-02-06  Bruno Haible  <bruno@clisp.org>
13107
13108         New module 'wcsrchr'.
13109         * modules/wcsrchr: New file.
13110         * lib/wchar.in.h (wcsrchr): New declaration.
13111         * lib/wcsrchr.c: New file.
13112         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13113         * m4/wcsrchr.m4: New file.
13114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13117         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13118         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13119
13120 2011-02-06  Bruno Haible  <bruno@clisp.org>
13121
13122         New module 'wcschr'.
13123         * modules/wcschr: New file.
13124         * lib/wchar.in.h (wcschr): New declaration.
13125         * lib/wcschr.c: New file.
13126         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13127         * m4/wcschr.m4: New file.
13128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13131         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13132         * doc/posix-functions/wcschr.texi: Mention the new module.
13133
13134 2011-02-06  Bruno Haible  <bruno@clisp.org>
13135
13136         New module 'wcsdup'.
13137         * modules/wcsdup: New file.
13138         * lib/wchar.in.h (wcsdup): New declaration.
13139         * lib/wcsdup.c: New file.
13140         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13141         * m4/wcsdup.m4: New file.
13142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13145         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13146         * doc/posix-functions/wcsdup.texi: Mention the new module.
13147
13148 2011-02-06  Bruno Haible  <bruno@clisp.org>
13149
13150         New module 'wcsxfrm'.
13151         * modules/wcsxfrm: New file.
13152         * lib/wchar.in.h (wcsxfrm): New declaration.
13153         * lib/wcsxfrm.c: New file.
13154         * lib/wcsxfrm-impl.h: New file.
13155         * m4/wcsxfrm.m4: New file.
13156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13159         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13160         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13161
13162 2011-02-06  Bruno Haible  <bruno@clisp.org>
13163
13164         New module 'wcscoll'.
13165         * modules/wcscoll: New file.
13166         * lib/wchar.in.h (wcscoll): New declaration.
13167         * lib/wcscoll.c: New file.
13168         * lib/wcscoll-impl.h: New file.
13169         * m4/wcscoll.m4: New file.
13170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13173         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13174         * doc/posix-functions/wcscoll.texi: Mention the new module.
13175
13176 2011-02-06  Bruno Haible  <bruno@clisp.org>
13177
13178         New module 'wcsncasecmp'.
13179         * modules/wcsncasecmp: New file.
13180         * lib/wchar.in.h (wcsncasecmp): New declaration.
13181         * lib/wcsncasecmp.c: New file.
13182         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13183         * m4/wcsncasecmp.m4: New file.
13184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13187         HAVE_WCSNCASECMP.
13188         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13189         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13190
13191 2011-02-06  Bruno Haible  <bruno@clisp.org>
13192
13193         New module 'wcscasecmp'.
13194         * modules/wcscasecmp: New file.
13195         * lib/wchar.in.h (wcscasecmp): New declaration.
13196         * lib/wcscasecmp.c: New file.
13197         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13198         * m4/wcscasecmp.m4: New file.
13199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13202         HAVE_WCSCASECMP.
13203         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13204         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13205
13206 2011-02-05  Bruno Haible  <bruno@clisp.org>
13207
13208         New module 'wcsncmp'.
13209         * modules/wcsncmp: New file.
13210         * lib/wchar.in.h (wcsncmp): New declaration.
13211         * lib/wcsncmp.c: New file.
13212         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13213         * m4/wcsncmp.m4: New file.
13214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13217         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13218         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13219
13220 2011-02-05  Bruno Haible  <bruno@clisp.org>
13221
13222         New module 'wcscmp'.
13223         * modules/wcscmp: New file.
13224         * lib/wchar.in.h (wcscmp): New declaration.
13225         * lib/wcscmp.c: New file.
13226         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13227         * m4/wcscmp.m4: New file.
13228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13231         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13232         * doc/posix-functions/wcscmp.texi: Mention the new module.
13233
13234 2011-02-05  Bruno Haible  <bruno@clisp.org>
13235
13236         New module 'wcsncat'.
13237         * modules/wcsncat: New file.
13238         * lib/wchar.in.h (wcsncat): New declaration.
13239         * lib/wcsncat.c: New file.
13240         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13241         * m4/wcsncat.m4: New file.
13242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13245         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13246         * doc/posix-functions/wcsncat.texi: Mention the new module.
13247
13248 2011-02-05  Bruno Haible  <bruno@clisp.org>
13249
13250         New module 'wcscat'.
13251         * modules/wcscat: New file.
13252         * lib/wchar.in.h (wcscat): New declaration.
13253         * lib/wcscat.c: New file.
13254         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13255         * m4/wcscat.m4: New file.
13256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13259         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13260         * doc/posix-functions/wcscat.texi: Mention the new module.
13261
13262 2011-02-05  Bruno Haible  <bruno@clisp.org>
13263
13264         New module 'wcpncpy'.
13265         * modules/wcpncpy: New file.
13266         * lib/wchar.in.h (wcpncpy): New declaration.
13267         * lib/wcpncpy.c: New file.
13268         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13269         * m4/wcpncpy.m4: New file.
13270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13272         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13273         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13274         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13275
13276 2011-02-05  Bruno Haible  <bruno@clisp.org>
13277
13278         New module 'wcsncpy'.
13279         * modules/wcsncpy: New file.
13280         * lib/wchar.in.h (wcsncpy): New declaration.
13281         * lib/wcsncpy.c: New file.
13282         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13283         * m4/wcsncpy.m4: New file.
13284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13287         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13288         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13289
13290 2011-02-05  Bruno Haible  <bruno@clisp.org>
13291
13292         New module 'wcpcpy'.
13293         * modules/wcpcpy: New file.
13294         * lib/wchar.in.h (wcpcpy): New declaration.
13295         * lib/wcpcpy.c: New file.
13296         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13297         * m4/wcpcpy.m4: New file.
13298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13300         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13301         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13302         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13303
13304 2011-02-05  Bruno Haible  <bruno@clisp.org>
13305
13306         New module 'wcscpy'.
13307         * modules/wcscpy: New file.
13308         * lib/wchar.in.h (wcscpy): New declaration.
13309         * lib/wcscpy.c: New file.
13310         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13311         * m4/wcscpy.m4: New file.
13312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13315         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13316         * doc/posix-functions/wcscpy.texi: Mention the new module.
13317
13318 2011-02-05  Bruno Haible  <bruno@clisp.org>
13319
13320         New module 'wcsnlen'.
13321         * modules/wcsnlen: New file.
13322         * lib/wchar.in.h (wcsnlen): New declaration.
13323         * lib/wcsnlen.c: New file.
13324         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13325         * m4/wcsnlen.m4: New file.
13326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13329         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13330         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13331
13332 2011-02-05  Bruno Haible  <bruno@clisp.org>
13333
13334         New module 'wcslen'.
13335         * modules/wcslen: New file.
13336         * lib/wchar.in.h (wcslen): New declaration.
13337         * lib/wcslen.c: New file.
13338         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13339         * m4/wcslen.m4: New file.
13340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13343         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13344         * doc/posix-functions/wcslen.texi: Mention the new module.
13345
13346 2011-02-05  Bruno Haible  <bruno@clisp.org>
13347
13348         New module 'wmemset'.
13349         * modules/wmemset: New file.
13350         * lib/wchar.in.h (wmemset): New declaration.
13351         * lib/wmemset.c: New file.
13352         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13353         * m4/wmemset.m4: New file.
13354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13356         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13357         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13358         * doc/posix-functions/wmemset.texi: Mention the new module.
13359
13360 2011-02-05  Bruno Haible  <bruno@clisp.org>
13361
13362         New module 'wmemmove'.
13363         * modules/wmemmove: New file.
13364         * lib/wchar.in.h (wmemmove): New declaration.
13365         * lib/wmemmove.c: New file.
13366         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13367         * m4/wmemmove.m4: New file.
13368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13370         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13371         HAVE_WMEMMOVE.
13372         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13373         * doc/posix-functions/wmemmove.texi: Mention the new module.
13374
13375 2011-02-05  Bruno Haible  <bruno@clisp.org>
13376
13377         New module 'wmemcpy'.
13378         * modules/wmemcpy: New file.
13379         * lib/wchar.in.h (wmemcpy): New declaration.
13380         * lib/wmemcpy.c: New file.
13381         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13382         * m4/wmemcpy.m4: New file.
13383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13385         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13386         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13387         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13388
13389 2011-02-05  Bruno Haible  <bruno@clisp.org>
13390
13391         New module 'wmemcmp'.
13392         * modules/wmemcmp: New file.
13393         * lib/wchar.in.h (wmemcmp): New declaration.
13394         * lib/wmemcmp.c: New file.
13395         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13396         * m4/wmemcmp.m4: New file.
13397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13399         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13400         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13401         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13402
13403 2011-02-07  Jim Meyering  <meyering@redhat.com>
13404
13405         di-set, ino-map: new modules, from coreutils
13406         * lib/di-set.c: New file.
13407         * lib/di-set.h: Likewise.
13408         * lib/ino-map.c: Likewise.
13409         * lib/ino-map.h: Likewise.
13410         * modules/di-set: Likewise.
13411         * modules/di-set-tests: Likewise.
13412         * modules/ino-map: Likewise.
13413         * modules/ino-map-tests: Likewise.
13414         * tests/test-di-set.c: Likewise.
13415         * tests/test-ino-map.c: Likewise.
13416
13417 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13418
13419         getloadavg: merge minor changes from Emacs
13420
13421         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13422         (getloadavg): Use memset, not bzero.
13423
13424         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13425         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13426         clash (bug#86).
13427
13428 2010-11-14  Bruno Haible  <bruno@clisp.org>
13429
13430         Allow multiple gnulib generated replacements to coexist.
13431         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13432         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13433         * lib/langinfo.in.h (nl_item): Likewise.
13434         * lib/math.in.h (_NaN, NAN): Likewise.
13435         * lib/netdb.in.h (struct addrinfo): Likewise.
13436         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13437         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13438         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13439         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13440         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13441         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13442         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13443         pthread_mutexattr_init, pthread_mutexattr_settype,
13444         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13445         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13446         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13447         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13448         * lib/sched.in.h (struct sched_param): Likewise.
13449         * lib/se-selinux.in.h (security_class_t, security_context_t,
13450         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13451         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13452         lsetfilecon, fsetfilecon, security_check_context,
13453         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13454         Likewise.
13455         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13456         Likewise.
13457         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13458         _gl_function_taking_int_returning_void_t, union sigval,
13459         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13460         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13461         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13462         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13463         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13464         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13465         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13466         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13467         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13468         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13469         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13470         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13471         socklen_t, rpl_fd_isset): Likewise.
13472         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13473         * lib/sys_time.in.h (struct timeval): Likewise.
13474         * lib/sys_times.in.h (struct tms): Likewise.
13475         * lib/sys_utsname.in.h (struct utsname):
13476         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13477         * lib/unistd.in.h (getpagesize): Likewise.
13478         * lib/wchar.in.h (mbstate_t): Likewise.
13479         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13480         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13481         towlower, towupper): Likewise.
13482         Reported by Sam Steingold <sds@gnu.org>.
13483
13484 2011-02-05  Eric Blake  <eblake@redhat.com>
13485
13486         unsetenv: work around Haiku issues
13487         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13488         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13489
13490 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13491
13492         libposix: avoid calling error() within libposix
13493         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13494         is defined.
13495
13496 2011-02-05  Eric Blake  <eblake@redhat.com>
13497
13498         strerror_r-posix: port to cygwin
13499         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13500         implementation.
13501         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13502         * tests/test-strerror_r.c (main): Fix test.
13503         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13504         issue.
13505
13506 2011-02-05  Bruno Haible  <bruno@clisp.org>
13507
13508         New module 'wmemchr'.
13509         * modules/wmemchr: New file.
13510         * lib/wchar.in.h (wmemchr): New declaration.
13511         * lib/wmemchr.c: New file.
13512         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13513         * m4/wmemchr.m4: New file.
13514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13516         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13517         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13518         * doc/posix-functions/wmemchr.texi: Mention the new module.
13519
13520 2011-02-04  Eric Blake  <eblake@redhat.com>
13521
13522         fdopendir: detect FreeBSD bug
13523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13524         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13525
13526 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13527
13528         stdbool: do not define HAVE_STDBOOL_H
13529         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13530         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13531         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13532         imported from the latest Autoconf git.  It was motivated by Emacs,
13533         which uses gnulib but does not need HAVE_STDBOOL_H.
13534
13535 2011-02-04  Bruno Haible  <bruno@clisp.org>
13536
13537         wcsnrtombs: Prepare for new module wwcsnrtombs.
13538         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13539         * lib/wcsnrtombs.c: Include it.
13540         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13541
13542         wcsrtombs: Prepare for new module wwcsrtombs.
13543         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13544         * lib/wcsrtombs.c: Include it.
13545         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13546
13547         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13548         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13549         * lib/mbsnrtowcs.c: Include it.
13550         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13551
13552         mbsrtowcs: Prepare for new module mbsrtowwcs.
13553         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13554         * lib/mbsrtowcs.c: Include it.
13555         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13556
13557 2011-02-04  Bruno Haible  <bruno@clisp.org>
13558
13559         vasnprintf: Reduce use of malloc for small format strings.
13560         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13561         (arguments): Add room for the first 7 arguments.
13562         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13563         (char_directives, u8_directives, u16_directives, u32_directives): Add
13564         room for the first 7 directives.
13565         * lib/printf-parse.c: Include <string.h>.
13566         (PRINTF_PARSE): Change memory handling code so that it uses the first
13567         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13568         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13569         Reported by Pádraig Brady <P@draigbrady.com>.
13570
13571 2011-01-31  Eric Blake  <eblake@redhat.com>
13572
13573         dup2: work around Haiku bug
13574         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13575         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13576         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13577         * tests/test-dup2.c (main): Enhance test.
13578
13579 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13580
13581         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13582         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13583         declared by eglibc 2.11.2.
13584         * lib/stdio.in.h: Likewise.
13585
13586 2011-01-31  Eric Blake  <eblake@redhat.com>
13587
13588         ignore-value: add missing test dependency
13589         * tests/test-ignore-value.c: Revert previous change; stdio.h
13590         provides off_t.
13591         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13592
13593 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         mktime: clarify long_int width checking
13596         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13597         the top level, to make it clearer that the assumption about
13598         long_int width is being checked.  See
13599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13600
13601 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13602
13603         ignore-value: Fix self-test.
13604         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13605
13606 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13607
13608         TYPE_MAXIMUM: avoid theoretically undefined behavior
13609         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13610         negative number, which the C Standard says has undefined behavior.
13611         In practice this is not a problem, but might as well do it by the book.
13612         Reported by Rich Felker and Eric Blake; see
13613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13614         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13615         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13617         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13618         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13619         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13620
13621         mktime: #undef mktime before #defining it
13622         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13623
13624         mktime: systematically normalize tm_isdst comparisons
13625         * lib/mktime.c (isdst_differ): New function.
13626         (__mktime_internal): Use it systematically for all isdst comparisons.
13627         This completes the fix for libc BZ #6723, and removes the need for
13628         normalizing tm_isdst.  See
13629         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13630         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13631
13632         mktime: fix some integer overflow issues and sidestep the rest
13633
13634         This was prompted by a bug report by Benjamin Lindner for MinGW
13635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13636         His bug is due to signed integer overflow (0 - INT_MIN), and I
13637         I scanned through mktime.c looking for other integer overflow
13638         problems, fixing all the bugs I found.
13639
13640         Although the C Standard says the resulting code is still not safe
13641         in the presence of integer overflow, in practice it should be good
13642         enough for all real-world two's-complement implementations, except
13643         for debugging environments that deliberately trap on integer
13644         overflow (e.g., gcc -ftrapv).
13645
13646         * lib/mktime.c (WRAPV): New macro.
13647         (SHR): Also check that long_int and time_t shift right in the
13648         usual way, before using the fast-but-unportable method.
13649         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13650         used.  The code already assumed two's complement, so there's
13651         no need to test for alternatives.  All uses removed.
13652         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13653         the C standard.  Problem reported by Rich Felker in
13654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13655         (twos_complement_arithmetic): Also check long_int and time_t.
13656         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13657         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13658         (__mktime_internal): Avoid integer overflow with unary subtraction
13659         in two instances where -1 - X is an adequate replacement for -X,
13660         since the calculations are approximate.
13661
13662 2011-01-29  Eric Blake  <eblake@redhat.com>
13663
13664         mktime: avoid infinite loop
13665         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13666         type; behavior is still undefined but portable to all known targets.
13667         Reported by Rich Felker.
13668
13669 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13670
13671         rename, unlink, same-inode: Relicense.
13672         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13673         * modules/unlink (License): Likewise.
13674         * modules/same-inode (License): Likewise.
13675
13676 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13677
13678         mktime: avoid problems on NetBSD 5 / i386
13679         * lib/mktime.c (long_int): New type.  This works around a problem
13680         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13681         but time_t is 64 bits, and where I expect the existing code is
13682         wrong in some cases.
13683         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13684         (ydhms_diff): Bring back the compile-time check for wide-enough
13685         year and yday.
13686
13687         mktime: fix misspelling in comment
13688         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13689         This merges all recent glibc changes of importance.
13690
13691 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13692
13693         move-if-change: cope with concurrent mv of identical file.
13694         * build-aux/move-if-change (CMPPROG): Accept environment
13695         variable as an override for `cmp'.
13696         (usage): Document CMPPROG.
13697         Adjust comparison to drop stdout.  Cope with failure of mv if
13698         the target file exists and is identical to the source, for
13699         parallel builds.
13700         Report from H.J. Lu against binutils in PR binutils/12283.
13701
13702 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13703
13704         * users.txt: Mention sharutils.
13705
13706 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13707
13708         * users.txt: Mention OATH Toolkit.
13709
13710 2011-01-27  Bruno Haible  <bruno@clisp.org>
13711
13712         Prepare for supporting FreeBSD 10.
13713         * build-aux/config.libpath: Remove handling of freebsd1*.
13714
13715 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13716
13717         Prepare for supporting FreeBSD 10.
13718         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13719         match FreeBSD 10.0.
13720
13721 2011-01-27  Bruno Haible  <bruno@clisp.org>
13722
13723         vma-iter, get-rusage-as: Add OpenBSD support.
13724         * modules/vma-iter (configure.ac): Test for mquery.
13725         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13726         * lib/vma-iter.c: Include <sys/mman.h>.
13727         (vma_iterate): Add an implementation based on mquery().
13728         * lib/resource-ext.h (get_rusage_as): Update comments.
13729         * lib/get-rusage-as.c: Likewise.
13730         * lib/get-rusage-data.c: Likewise.
13731
13732 2011-01-26  Karl Berry  <karl@gnu.org>
13733
13734         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13735         variables to make it easier to override the makeinfo program used.
13736
13737 2011-01-26  Eric Blake  <eblake@redhat.com>
13738
13739         fcntl: work around Haiku F_DUPFD bugs
13740         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13741         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13742         cloexec bit on duplication.
13743         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13744
13745 2011-01-26  Bruno Haible  <bruno@clisp.org>
13746
13747         Enable memory leak tests on AIX.
13748         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13749         * tests/test-fprintf-posix3.c (main): Likewise.
13750
13751 2011-01-26  Bruno Haible  <bruno@clisp.org>
13752
13753         Tests for module 'get-rusage-data'.
13754         * modules/get-rusage-data-tests: New file.
13755         * tests/test-get-rusage-data.c: New file.
13756
13757         New module 'get-rusage-data'.
13758         * lib/resource-ext.h (get_rusage_data): New declaration.
13759         * lib/get-rusage-data.c: New file.
13760         * modules/get-rusage-data: New file.
13761
13762 2011-01-25  Bruno Haible  <bruno@clisp.org>
13763
13764         get-rusage-as: Allow for easier testing.
13765         * lib/resource-ext.h (get_rusage_as): Add comment.
13766         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13767         (main): New function for interactive testing.
13768
13769 2011-01-25  Bruno Haible  <bruno@clisp.org>
13770
13771         vma-iter: Treat Haiku like BeOS.
13772         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13773         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13774
13775 2011-01-25  Eric Blake  <eblake@redhat.com>
13776
13777         c-stack: fix regression on cygwin when libsigsegv is present
13778         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13779
13780 2011-01-24  Bruno Haible  <bruno@clisp.org>
13781
13782         vma-iter: Avoid empty intervals.
13783         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13784         on an empty interval.
13785
13786 2011-01-24  Jim Meyering  <meyering@redhat.com>
13787
13788         u64: remove unnecessary #include
13789         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13790
13791 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13792
13793         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13794         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13795
13796 2011-01-23  Bruno Haible  <bruno@clisp.org>
13797
13798         New module 'vma-iter'.
13799         * lib/vma-iter.h: New file.
13800         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13801         * modules/vma-iter: New file.
13802         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13803         for get_rusage_as_via_iterator.
13804         (vma_iterate_callback): New function.
13805         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13806         * modules/get-rusage-as (Depends-on): Add vma-iter.
13807
13808 2011-01-23  Bruno Haible  <bruno@clisp.org>
13809
13810         uninorm: Tweak includes.
13811         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13812         Reported by Jim Meyering.
13813
13814 2011-01-23  Bruno Haible  <bruno@clisp.org>
13815
13816         get-rusage-as: Improve on NetBSD.
13817         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13818         /proc, like on FreeBSD.
13819
13820 2011-01-23  Jim Meyering  <meyering@redhat.com>
13821
13822         xreadlink.h: remove unnecessary #include
13823         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13824
13825         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13826         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13827
13828 2011-01-23  Bruno Haible  <bruno@clisp.org>
13829
13830         get-rusage-as: Fix bug.
13831         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13832         original limit when aborting the first loop.
13833
13834 2011-01-23  Bruno Haible  <bruno@clisp.org>
13835
13836         wctype: Ensure valid C syntax.
13837         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13838         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13839
13840 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13844         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13845         as they are needed only for configure's test case.
13846         This removes two unnecessary symbols from config.h.
13847
13848         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13849         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13851         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13852         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13853         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13854         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13855         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13856         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13857         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13858         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13860         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13861         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13862         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13863         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13864         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13865         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13866
13867 2011-01-21  Eric Blake  <eblake@redhat.com>
13868
13869         maintainer-makefile: work with older git for submodule check
13870         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13871         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13872         Reported by Matthias Bolte.
13873
13874         bootstrap: minor portability fixes
13875         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13876         (usage): Omit leading capital and trailing . on help phrases, per
13877         GNU Coding Standards.
13878         (check_versions, top level): Prefix messages with script name.
13879
13880 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13881
13882         bootstrap: support --no-git option
13883         * build-aux/bootstrap: Add --no-git option, to be used when
13884         --gnulib-srcdir points to the exact desired checkout.
13885
13886 2011-01-21  Eric Blake  <eblake@redhat.com>
13887
13888         strerror_r-posix: work with glibc 2.13
13889         * lib/strerror_r.c (strerror_r): Fix return type.
13890
13891 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13892             Bruno Haible  <bruno@clisp.org>
13893
13894         uN_strstr: New unit tests.
13895         * modules/unistr/u8-strstr-tests: New file.
13896         * modules/unistr/u16-strstr-tests: New file.
13897         * modules/unistr/u32-strstr-tests: New file.
13898         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13899         * tests/unistr/test-u8-strstr.c: New file.
13900         * tests/unistr/test-u16-strstr.c: New file.
13901         * tests/unistr/test-u32-strstr.c: New file.
13902
13903 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13904             Bruno Haible  <bruno@clisp.org>
13905
13906         Make uN_strstr functions O(n) worst-case.
13907         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13908         16-bit and 32-bit unit cases, use the unibyte algorithm from
13909         lib/mbsstr.c.
13910         * lib/unistr/u8-strstr.c: Include <string.h>.
13911         (UNIT_IS_UINT8_T): New macro.
13912         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13913         (U_STRLEN, U_STRNLEN): New macros.
13914         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13915         (U_STRLEN, U_STRNLEN): New macros.
13916         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13917         (configure.ac): Update required libunistring version.
13918         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13919         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13920         malloca.
13921         (configure.ac): Update required libunistring version.
13922         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13923         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13924         malloca.
13925         (configure.ac): Update required libunistring version.
13926
13927 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13928             Bruno Haible  <bruno@clisp.org>
13929
13930         Prepare for faster uN_strstr functions.
13931         * lib/str-kmp.h: Support definable UNITs.
13932         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13933         needle_len argument.
13934         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13935         * lib/mbscasestr.c (mbscasestr): Likewise.
13936
13937 2011-01-21  Pádraig Brady <P@draigBrady.com>
13938
13939         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13940         * tests/test-malloca.c (main): Unset the environment variable
13941         to greatly speed up the test.
13942         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13943         * modules/malloca-tests: Depend on unsetenv.
13944
13945 2011-01-21  Pádraig Brady <P@draigBrady.com>
13946
13947         ignore-value: remove stdint dependency
13948         * lib/ignore-value.h: Remove <stdint.h>
13949         * modules/ignore-value: Remove stdint dependency.
13950
13951 2011-01-21  Jim Meyering  <meyering@redhat.com>
13952
13953         maint.mk: adjust variable name to be consistent with other gl_ vars
13954         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13955         to be lower case.
13956
13957 2011-01-20  Jim Meyering  <meyering@redhat.com>
13958
13959         maint.mk: make "check" depend on public-submodule-commit by default
13960         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13961
13962 2011-01-20  Bruno Haible  <bruno@clisp.org>
13963
13964         mbfile, mbiter: Complete change from 2008-12-21.
13965         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13966         * m4/mbiter.m4 (gl_MBITER): Likewise.
13967
13968 2011-01-20  Jim Meyering  <meyering@redhat.com>
13969
13970         init.sh: insert space between each function name and "()"
13971         * tests/init.sh: Make it a little easier to see that a function's
13972         name is "warn_", and not "warn" when looking at the first part of
13973         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13974
13975 2011-01-20  Jim Meyering  <meyering@redhat.com>
13976
13977         mountlist: clean up code formatting
13978         * lib/mountlist.c (read_file_system_list): Split a long line,
13979         correct bracing style, use NULL in place of "(struct statfs *)0",
13980         don't parenthesize return value, add spaces around "=" and after
13981         ";-in-for-stmt".
13982
13983 2011-01-14  Markus Duft <mduft@gentoo.org>
13984
13985         mountlist: add support for Interix
13986         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13987         Apply statvfs to all entries of /dev/fs.
13988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13989         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13990
13991 2011-01-20  Jim Meyering  <meyering@redhat.com>
13992
13993         maint.mk: improve the public-submodule-commit rule
13994         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13995         to suppress printing of its commands... unless V=1.
13996         Add git submodule's --quiet option to suppress printing of e.g.,
13997         "Entering gnulib" output.
13998         "cd" into $(srcdir) before running git submodule.
13999
14000 2011-01-20  Bruno Haible  <bruno@clisp.org>
14001
14002         include_next: Fix bug introduced on 2011-01-18.
14003         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14004         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14005         ac_cv_header_... variable if the second argument is not 'check'.
14006         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14007         gl_NEXT_HEADERS_INTERNAL.
14008
14009 2011-01-20  Bruno Haible  <bruno@clisp.org>
14010
14011         Allow the user to avoid the GNULIB_TEST_* macros.
14012         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14013         Suggested by Paul Eggert.
14014
14015 2011-01-14  Jim Meyering  <meyering@redhat.com>
14016
14017         bootstrap: avoid failure when there is no .gitmodules file
14018         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14019         has been assigned to, even when its value is the empty string.
14020         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14021         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14022         Reported by John W. Eaton <jwe@gnu.org>.
14023
14024 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14025
14026         assume <ctype.h>, ..., <time.h> exist
14027         For years gnulib has been assuming the existence of the headers
14028         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14029         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14030         them, since they don't appear to be needed.
14031         * README (Portability guidelines): Document this.
14032         * lib/flock.c: Assume <fcntl.h> exists.
14033         * lib/regex_internal.h: Assume <locale.h> exists.
14034         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14035         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14036         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14037         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14038         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14039         * m4/regex.m4 (gl_REGEX): Likewise.
14040         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14041         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14042         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14043         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14044         * tests/test-argp.c: Likewise.
14045         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14046
14047         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14048         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14049         AA_APPLE_UNIVERSAL_BUILD.  See
14050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14051         * NEWS: Document this.
14052
14053 2011-01-19  Eric Blake  <eblake@redhat.com>
14054
14055         c-stack: assume stack overflow if SA_SIGINFO unsupported
14056         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14057         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14058         sigaction will work.
14059         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14060         behavior match Linux.
14061         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14062
14063         stdbool-tests: accomodate Haiku
14064         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14065
14066         binary-io: fix O_TEXT on Haiku
14067         * modules/binary-io (Depends-on): Add fcntl-h.
14068         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14069         than blindly undefining O_TEXT.
14070         Reported by Scott McCreary.
14071
14072 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14073
14074         include_next: do not check for standard headers like stddef.h
14075
14076         I found this problem when modifying Emacs to use gnulib.
14077         I noticed that it added HAVE_STDDEF_H to config.h, even though
14078         gnulib always assumes <stddef.h> exists as per README and this
14079         symbol is unnecessary.
14080         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14081         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14082         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14083         faster for headers like stddef.h that are known to exist.
14084         (gl_CHECK_NEXT_HEADERS): Use it.
14085         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14086         rather than gl_CHECK_NEXT_HEADERS.
14087         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14088         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14089
14090 2011-01-18  Eric Blake  <eblake@redhat.com>
14091
14092         ansi-c++-opt: skip C++ dependency style if C++ is unused
14093         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14094         tests when we know C++ compilation is not desired.
14095         Reported by Scott McCreary.
14096
14097 2011-01-18  Bruno Haible  <bruno@clisp.org>
14098
14099         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14100         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14101         (main): Perform test also when getrlimit and setrlimit don't exist or
14102         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14103         limiting the address space size using setrlimit, compare the address
14104         space size before and after the the test.
14105         * tests/test-dprintf-posix2.c: Likewise.
14106         * tests/test-fprintf-posix3.sh: Update skip messages.
14107         * tests/test-dprintf-posix2.sh: Likewise.
14108         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14109         * modules/dprintf-posix-tests (Depends-on): Likewise.
14110         Reported by Bruce Korb <bkorb@gnu.org> and
14111         Gary V. Vaughan <gary@gnu.org>.
14112
14113 2011-01-18  Bruno Haible  <bruno@clisp.org>
14114
14115         get-rusage-as: Improvement for Cygwin.
14116         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14117         areas that are merely reserved.
14118
14119 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14120
14121         strftime: remove dependencies on multibyte modules
14122
14123         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14124         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14125         only if __osf__ is defined, and I suspect OSF doesn't need these
14126         other modules.  If my guess is wrong, we'll need to come up with a
14127         variant of strftime that doesn't need the multibyte modules.
14128
14129         I discovered this problem when attempting modify Emacs to use the
14130         strftime module.  With the previous gnulib, this caused Emacs to
14131         need 31 new files, ranging from lib/config.charset to
14132         m4/wint_t.m4.  This was overkill and I expect would be offputting
14133         to the Emacs maintainers.  After this change, only 6 new files are
14134         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14135         stdbool.m4, and tm_gmtoff.m4.
14136
14137         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14138         Suggested by Bruno Haible in
14139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14140         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14141         and do not check for wchar.h.
14142         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14143         (Depends-on): Remove mbrlen, mbsinit, wchar.
14144
14145 2011-01-18  Bruno Haible  <bruno@clisp.org>
14146
14147         Tests for module 'get-rusage-as'.
14148         * modules/get-rusage-as-tests: New file.
14149         * tests/test-get-rusage-as.c: New file.
14150
14151         New module 'get-rusage-as'.
14152         * modules/get-rusage-as: New file.
14153         * lib/resource-ext.h: New file.
14154         * lib/get-rusage-as.c: New file.
14155
14156 2011-01-17  Eric Blake  <eblake@redhat.com>
14157
14158         sigaction: relax license from LGPLv3+ to LGPLv2+
14159         * modules/sigaction (License): Relax to LGPLv2+.
14160
14161 2011-01-14  Bruno Haible  <bruno@clisp.org>
14162
14163         filemode: Make function declarations usable in C++ mode.
14164         * lib/filemode.h: Enclose function declarations in extern "C" block.
14165         Reported by John W. Eaton <jwe@gnu.org>.
14166
14167 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14168
14169         save-cwd: no longer include "xgetcwd.h"
14170         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14171         This avoids a compilation failure in projects that use save-cwd
14172         without also using the xgetcwd module.
14173
14174 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14175
14176         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14177         This is so that a program like Emacs, which needs only dtoastr,
14178         does not have to bother with distributing and compiling ftoastr
14179         and ldtoastr.
14180         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14181         * modules/dtoastr, modules/ldtoastr: New files.
14182         * modules/ftoastr: Now works just for 'float'.
14183         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14184         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14185         dtoastr.c, ldtoastr.c.
14186
14187 2011-01-11  Jim Meyering  <meyering@redhat.com>
14188
14189         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14190         There is no need to work around the lack of the fchdir function,
14191         since gnulib can now provide a replacement when required.
14192         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14193         * modules/save-cwd (Depends-on): Add fchdir.
14194
14195 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14196
14197         openat, save-cwd: avoid xmalloc
14198
14199         This removes a direct (but undocumented) dependency of openat on
14200         xalloc, along with an indirect dependency via save-cwd.  It also
14201         removes a dependency of save-cwd on xgetcwd, and thereby
14202         indirectly on xalloc.  This change causes the openat substitute
14203         to fall back on save_cwd when memory is tight, and for save_cwd to
14204         fail instead of dying when memory is tight, but that's good enough.
14205         Problem and initial idea for fix reported by Bastien Roucaries in
14206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14207
14208         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14209         xalloc.h (for xmalloc).
14210         (openat_proc_name): Use malloc, not xmalloc.
14211         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14212         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14213
14214         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14215         This avoids heap allocation for file names whose lengths are in
14216         the range 512..1023, with the upper bound increasing to at most
14217         4031 depending on the platform's PATH_MAX.  (We do not want
14218         pathmax.h here as it might supply a non-constant PATH_MAX.)
14219         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14220         Perhaps they should be moved to malloca.h?
14221         (OPENAT_BUFFER_SIZE): Use them.
14222
14223 2011-01-10  Bruno Haible  <bruno@clisp.org>
14224
14225         doc: Update users.txt.
14226         * users.txt: Add recutils.
14227
14228 2011-01-09  Karl Berry  <karl@gnu.org>
14229
14230         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14231
14232         * doc/configmake.texi: New file.
14233         * doc/gnulib.texi: Include it.
14234         * modules/configmake: Move documentation from here.
14235
14236 2011-01-09  Bruno Haible  <bruno@clisp.org>
14237
14238         Update to Unicode 6.0.0.
14239         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14240         (get_lbp): Update for Unicode 6.0.0.
14241         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14242         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14243         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14244         U+11001, U+11038..U+11046. Remove U+06DE.
14245         (uc_width): Fix bounds of planes.
14246         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14247         lib/uniwidth/width.c.
14248         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14249         trailing whitespace removed.
14250         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14251         without comments, but with the original copyright notice.
14252         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14253         * lib/unicase/ignorable.h: Likewise.
14254         * lib/unicase/tocasefold.h: Likewise.
14255         * lib/unicase/tolower.h: Likewise.
14256         * lib/unicase/totitle.h: Likewise.
14257         * lib/unicase/toupper.h: Likewise.
14258         * lib/unictype/bidi_of.h: Likewise.
14259         * lib/unictype/blocks.h: Likewise.
14260         * lib/unictype/categ_C.h: Likewise.
14261         * lib/unictype/categ_Cn.h: Likewise.
14262         * lib/unictype/categ_L.h: Likewise.
14263         * lib/unictype/categ_Ll.h: Likewise.
14264         * lib/unictype/categ_Lm.h: Likewise.
14265         * lib/unictype/categ_Lo.h: Likewise.
14266         * lib/unictype/categ_Lu.h: Likewise.
14267         * lib/unictype/categ_M.h: Likewise.
14268         * lib/unictype/categ_Mc.h: Likewise.
14269         * lib/unictype/categ_Me.h: Likewise.
14270         * lib/unictype/categ_Mn.h: Likewise.
14271         * lib/unictype/categ_N.h: Likewise.
14272         * lib/unictype/categ_Nd.h: Likewise.
14273         * lib/unictype/categ_No.h: Likewise.
14274         * lib/unictype/categ_P.h: Likewise.
14275         * lib/unictype/categ_Po.h: Likewise.
14276         * lib/unictype/categ_S.h: Likewise.
14277         * lib/unictype/categ_Sc.h: Likewise.
14278         * lib/unictype/categ_Sk.h: Likewise.
14279         * lib/unictype/categ_Sm.h: Likewise.
14280         * lib/unictype/categ_So.h: Likewise.
14281         * lib/unictype/categ_of.h: Likewise.
14282         * lib/unictype/combining.h: Likewise.
14283         * lib/unictype/ctype_alnum.h: Likewise.
14284         * lib/unictype/ctype_alpha.h: Likewise.
14285         * lib/unictype/ctype_graph.h: Likewise.
14286         * lib/unictype/ctype_lower.h: Likewise.
14287         * lib/unictype/ctype_print.h: Likewise.
14288         * lib/unictype/ctype_punct.h: Likewise.
14289         * lib/unictype/ctype_upper.h: Likewise.
14290         * lib/unictype/decdigit.h: Likewise.
14291         * lib/unictype/digit.h: Likewise.
14292         * lib/unictype/numeric.h: Likewise.
14293         * lib/unictype/pr_alphabetic.h: Likewise.
14294         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14295         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14296         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14297         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14298         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14299         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14300         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14301         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14302         * lib/unictype/pr_case_ignorable.h: Likewise.
14303         * lib/unictype/pr_cased.h: Likewise.
14304         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14305         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14306         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14307         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14308         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14309         * lib/unictype/pr_combining.h: Likewise.
14310         * lib/unictype/pr_composite.h: Likewise.
14311         * lib/unictype/pr_currency_symbol.h: Likewise.
14312         * lib/unictype/pr_decimal_digit.h: Likewise.
14313         * lib/unictype/pr_deprecated.h: Likewise.
14314         * lib/unictype/pr_format_control.h: Likewise.
14315         * lib/unictype/pr_grapheme_base.h: Likewise.
14316         * lib/unictype/pr_grapheme_extend.h: Likewise.
14317         * lib/unictype/pr_grapheme_link.h: Likewise.
14318         * lib/unictype/pr_id_continue.h: Likewise.
14319         * lib/unictype/pr_id_start.h: Likewise.
14320         * lib/unictype/pr_ideographic.h: Likewise.
14321         * lib/unictype/pr_lowercase.h: Likewise.
14322         * lib/unictype/pr_math.h: Likewise.
14323         * lib/unictype/pr_numeric.h: Likewise.
14324         * lib/unictype/pr_other_alphabetic.h: Likewise.
14325         * lib/unictype/pr_other_id_continue.h: Likewise.
14326         * lib/unictype/pr_other_math.h: Likewise.
14327         * lib/unictype/pr_punctuation.h: Likewise.
14328         * lib/unictype/pr_sentence_terminal.h: Likewise.
14329         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14330         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14331         * lib/unictype/pr_unified_ideograph.h: Likewise.
14332         * lib/unictype/pr_uppercase.h: Likewise.
14333         * lib/unictype/pr_xid_continue.h: Likewise.
14334         * lib/unictype/pr_xid_start.h: Likewise.
14335         * lib/unictype/scripts.h: Likewise.
14336         * lib/unictype/scripts_byname.gperf: Likewise.
14337         * lib/unictype/sy_java_ident.h: Likewise.
14338         * lib/unigbrk/gbrkprop.h: Likewise.
14339         * lib/unilbrk/lbrkprop1.h: Likewise.
14340         * lib/unilbrk/lbrkprop2.h: Likewise.
14341         * lib/uninorm/decomposition-table2.h: Likewise.
14342         * lib/uniwbrk/wbrkprop.h: Likewise.
14343         * tests/unicase/test-cased.c: Likewise.
14344         * tests/unicase/test-ignorable.c: Likewise.
14345         * tests/unicase/test-uc_tolower.c: Likewise.
14346         * tests/unicase/test-uc_totitle.c: Likewise.
14347         * tests/unicase/test-uc_toupper.c: Likewise.
14348         * tests/unictype/test-categ_C.c: Likewise.
14349         * tests/unictype/test-categ_Cn.c: Likewise.
14350         * tests/unictype/test-categ_L.c: Likewise.
14351         * tests/unictype/test-categ_Ll.c: Likewise.
14352         * tests/unictype/test-categ_Lm.c: Likewise.
14353         * tests/unictype/test-categ_Lo.c: Likewise.
14354         * tests/unictype/test-categ_Lu.c: Likewise.
14355         * tests/unictype/test-categ_M.c: Likewise.
14356         * tests/unictype/test-categ_Mc.c: Likewise.
14357         * tests/unictype/test-categ_Me.c: Likewise.
14358         * tests/unictype/test-categ_Mn.c: Likewise.
14359         * tests/unictype/test-categ_N.c: Likewise.
14360         * tests/unictype/test-categ_Nd.c: Likewise.
14361         * tests/unictype/test-categ_No.c: Likewise.
14362         * tests/unictype/test-categ_P.c: Likewise.
14363         * tests/unictype/test-categ_Po.c: Likewise.
14364         * tests/unictype/test-categ_S.c: Likewise.
14365         * tests/unictype/test-categ_Sc.c: Likewise.
14366         * tests/unictype/test-categ_Sk.c: Likewise.
14367         * tests/unictype/test-categ_Sm.c: Likewise.
14368         * tests/unictype/test-categ_So.c: Likewise.
14369         * tests/unictype/test-ctype_alnum.c: Likewise.
14370         * tests/unictype/test-ctype_alpha.c: Likewise.
14371         * tests/unictype/test-ctype_graph.c: Likewise.
14372         * tests/unictype/test-ctype_lower.c: Likewise.
14373         * tests/unictype/test-ctype_print.c: Likewise.
14374         * tests/unictype/test-ctype_punct.c: Likewise.
14375         * tests/unictype/test-ctype_upper.c: Likewise.
14376         * tests/unictype/test-decdigit.h: Likewise.
14377         * tests/unictype/test-digit.h: Likewise.
14378         * tests/unictype/test-numeric.h: Likewise.
14379         * tests/unictype/test-pr_alphabetic.c: Likewise.
14380         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14381         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14382         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14383         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14384         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14385         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14386         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14387         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14388         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14389         * tests/unictype/test-pr_cased.c: Likewise.
14390         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14391         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14392         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14393         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14394         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14395         * tests/unictype/test-pr_combining.c: Likewise.
14396         * tests/unictype/test-pr_composite.c: Likewise.
14397         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14398         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14399         * tests/unictype/test-pr_deprecated.c: Likewise.
14400         * tests/unictype/test-pr_format_control.c: Likewise.
14401         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14402         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14403         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14404         * tests/unictype/test-pr_id_continue.c: Likewise.
14405         * tests/unictype/test-pr_id_start.c: Likewise.
14406         * tests/unictype/test-pr_ideographic.c: Likewise.
14407         * tests/unictype/test-pr_lowercase.c: Likewise.
14408         * tests/unictype/test-pr_math.c: Likewise.
14409         * tests/unictype/test-pr_numeric.c: Likewise.
14410         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14411         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14412         * tests/unictype/test-pr_other_math.c: Likewise.
14413         * tests/unictype/test-pr_punctuation.c: Likewise.
14414         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14415         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14416         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14417         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14418         * tests/unictype/test-pr_uppercase.c: Likewise.
14419         * tests/unictype/test-pr_xid_continue.c: Likewise.
14420         * tests/unictype/test-pr_xid_start.c: Likewise.
14421         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14422         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14423         changes.
14424         * lib/unictype/categ_Cc.h: Likewise.
14425         * lib/unictype/categ_Cf.h: Likewise.
14426         * lib/unictype/categ_Co.h: Likewise.
14427         * lib/unictype/categ_Cs.h: Likewise.
14428         * lib/unictype/categ_Lt.h: Likewise.
14429         * lib/unictype/categ_Nl.h: Likewise.
14430         * lib/unictype/categ_Pc.h: Likewise.
14431         * lib/unictype/categ_Pd.h: Likewise.
14432         * lib/unictype/categ_Pe.h: Likewise.
14433         * lib/unictype/categ_Pf.h: Likewise.
14434         * lib/unictype/categ_Pi.h: Likewise.
14435         * lib/unictype/categ_Ps.h: Likewise.
14436         * lib/unictype/categ_Z.h: Likewise.
14437         * lib/unictype/categ_Zl.h: Likewise.
14438         * lib/unictype/categ_Zp.h: Likewise.
14439         * lib/unictype/categ_Zs.h: Likewise.
14440         * lib/unictype/ctype_blank.h: Likewise.
14441         * lib/unictype/ctype_cntrl.h: Likewise.
14442         * lib/unictype/ctype_digit.h: Likewise.
14443         * lib/unictype/ctype_space.h: Likewise.
14444         * lib/unictype/ctype_xdigit.h: Likewise.
14445         * lib/unictype/mirror.h: Likewise.
14446         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14447         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14448         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14449         * lib/unictype/pr_bidi_control.h: Likewise.
14450         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14451         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14452         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14453         * lib/unictype/pr_bidi_pdf.h: Likewise.
14454         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14455         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14456         * lib/unictype/pr_dash.h: Likewise.
14457         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14458         * lib/unictype/pr_diacritic.h: Likewise.
14459         * lib/unictype/pr_extender.h: Likewise.
14460         * lib/unictype/pr_hex_digit.h: Likewise.
14461         * lib/unictype/pr_hyphen.h: Likewise.
14462         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14463         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14464         * lib/unictype/pr_ignorable_control.h: Likewise.
14465         * lib/unictype/pr_iso_control.h: Likewise.
14466         * lib/unictype/pr_join_control.h: Likewise.
14467         * lib/unictype/pr_left_of_pair.h: Likewise.
14468         * lib/unictype/pr_line_separator.h: Likewise.
14469         * lib/unictype/pr_logical_order_exception.h: Likewise.
14470         * lib/unictype/pr_non_break.h: Likewise.
14471         * lib/unictype/pr_not_a_character.h: Likewise.
14472         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14473         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14474         * lib/unictype/pr_other_id_start.h: Likewise.
14475         * lib/unictype/pr_other_lowercase.h: Likewise.
14476         * lib/unictype/pr_other_uppercase.h: Likewise.
14477         * lib/unictype/pr_paired_punctuation.h: Likewise.
14478         * lib/unictype/pr_paragraph_separator.h: Likewise.
14479         * lib/unictype/pr_pattern_syntax.h: Likewise.
14480         * lib/unictype/pr_pattern_white_space.h: Likewise.
14481         * lib/unictype/pr_private_use.h: Likewise.
14482         * lib/unictype/pr_quotation_mark.h: Likewise.
14483         * lib/unictype/pr_radical.h: Likewise.
14484         * lib/unictype/pr_soft_dotted.h: Likewise.
14485         * lib/unictype/pr_space.h: Likewise.
14486         * lib/unictype/pr_titlecase.h: Likewise.
14487         * lib/unictype/pr_variation_selector.h: Likewise.
14488         * lib/unictype/pr_white_space.h: Likewise.
14489         * lib/unictype/pr_zero_width.h: Likewise.
14490         * lib/unictype/sy_c_ident.h: Likewise.
14491         * lib/unictype/sy_c_whitespace.h: Likewise.
14492         * lib/unictype/sy_java_whitespace.h: Likewise.
14493         * lib/uninorm/composition-table.gperf: Likewise.
14494         * lib/uninorm/decomposition-table1.h: Likewise.
14495         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14496         LB8.
14497         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14498         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14499         * modules/unictype/*: Bump version number of expected libunistring
14500         version.
14501
14502 2011-01-09  Bruno Haible  <bruno@clisp.org>
14503
14504         Update to Unicode 5.2.0.
14505         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14506         trailing whitespace removed.
14507
14508 2011-01-09  Bruno Haible  <bruno@clisp.org>
14509
14510         New Unicode character properties, from Unicode 5.2.0.
14511         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14512         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14513         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14514         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14515         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14516         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14517         uc_is_property_cased, uc_is_property_case_ignorable,
14518         uc_is_property_changes_when_lowercased,
14519         uc_is_property_changes_when_uppercased,
14520         uc_is_property_changes_when_titlecased,
14521         uc_is_property_changes_when_casefolded,
14522         uc_is_property_changes_when_casemapped): New declarations.
14523         * lib/unictype/pr_byname.gperf: Add the new properties.
14524         * modules/unictype/property-byname (Depends-on): Depend on the new
14525         properties modules.
14526         * modules/unictype/property-all (Depends-on): Likewise.
14527         * MODULES.html.sh (Unicode string functions): Add
14528         unictype/property-case-ignorable, unictype/property-cased,
14529         unictype/property-changes-when-casefolded,
14530         unictype/property-changes-when-casemapped,
14531         unictype/property-changes-when-lowercased,
14532         unictype/property-changes-when-titlecased,
14533         unictype/property-changes-when-uppercased.
14534
14535         New module 'unictype/property-changes-when-casemapped'.
14536         * modules/unictype/property-changes-when-casemapped: New file.
14537         * lib/unictype/pr_changes_when_casemapped.c: New file.
14538         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14539         generated by gen-uni-tables.
14540         * modules/unictype/property-changes-when-casemapped-tests: New file.
14541         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14542         automatically generated by gen-uni-tables.
14543
14544         New module 'unictype/property-changes-when-casefolded'.
14545         * modules/unictype/property-changes-when-casefolded: New file.
14546         * lib/unictype/pr_changes_when_casefolded.c: New file.
14547         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14548         generated by gen-uni-tables.
14549         * modules/unictype/property-changes-when-casefolded-tests: New file.
14550         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14551         automatically generated by gen-uni-tables.
14552
14553         New module 'unictype/property-changes-when-titlecased'.
14554         * modules/unictype/property-changes-when-titlecased: New file.
14555         * lib/unictype/pr_changes_when_titlecased.c: New file.
14556         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14557         generated by gen-uni-tables.
14558         * modules/unictype/property-changes-when-titlecased-tests: New file.
14559         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14560         automatically generated by gen-uni-tables.
14561
14562         New module 'unictype/property-changes-when-uppercased'.
14563         * modules/unictype/property-changes-when-uppercased: New file.
14564         * lib/unictype/pr_changes_when_uppercased.c: New file.
14565         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14566         generated by gen-uni-tables.
14567         * modules/unictype/property-changes-when-uppercased-tests: New file.
14568         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14569         automatically generated by gen-uni-tables.
14570
14571         New module 'unictype/property-changes-when-lowercased'.
14572         * modules/unictype/property-changes-when-lowercased: New file.
14573         * lib/unictype/pr_changes_when_lowercased.c: New file.
14574         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14575         generated by gen-uni-tables.
14576         * modules/unictype/property-changes-when-lowercased-tests: New file.
14577         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14578         automatically generated by gen-uni-tables.
14579
14580         New module 'unictype/property-case-ignorable'.
14581         * modules/unictype/property-case-ignorable: New file.
14582         * lib/unictype/pr_case_ignorable.c: New file.
14583         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14584         by gen-uni-tables.
14585         * modules/unictype/property-case-ignorable-tests: New file.
14586         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14587         generated by gen-uni-tables.
14588
14589         New module 'unictype/property-cased'.
14590         * modules/unictype/property-cased: New file.
14591         * lib/unictype/pr_cased.c: New file.
14592         * lib/unictype/pr_cased.h: New file, automatically generated by
14593         gen-uni-tables.
14594         * modules/unictype/property-cased-tests: New file.
14595         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14596         gen-uni-tables.
14597
14598 2011-01-09  Bruno Haible  <bruno@clisp.org>
14599
14600         Update to Unicode 5.2.0.
14601         * lib/gen-uni-tables.c (output_predicate, output_category,
14602         output_combclass, output_bidi_category, output_decimal_digit_test,
14603         output_decimal_digit, output_digit_test, output_digit,
14604         output_numeric_test, output_numeric, output_mirror, output_scripts,
14605         output_scripts_byname, output_blocks, output_ident_category): Fix
14606         comment header.
14607         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14608         get_wbp.
14609         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14610         items.
14611         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14612         Changes_When_Lowercased, Changes_When_Uppercased,
14613         Changes_When_Titlecased, Changes_When_Casefolded,
14614         Changes_When_Casemapped.
14615         (is_property_alphabetic, is_property_default_ignorable_code_point):
14616         Update for Unicode 5.2.0.
14617         (is_property_cased, is_property_case_ignorable,
14618         is_property_changes_when_lowercased,
14619         is_property_changes_when_uppercased,
14620         is_property_changes_when_titlecased,
14621         is_property_changes_when_casefolded,
14622         is_property_changes_when_casemapped): New functions.
14623         (output_properties): Output also the properties cased, case_ignorable,
14624         changes_when_lowercased, changes_when_uppercased,
14625         changes_when_titlecased, changes_when_casefolded,
14626         changes_when_casemapped.
14627         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14628         Unicode TR#11 revision 17 -> 19.
14629         (LBP_CP): New enumeration value.
14630         (LBP_*): Adjust values accordingly.
14631         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14632         TR#14 revision 22 -> 24.
14633         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14634         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14635         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14636         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14637         is_WBP_MIDLETTER.
14638         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14639         the code1 and code2 of each composition rule.
14640         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14641         * lib/unicase/ignorable.h: Likewise.
14642         * lib/unicase/tocasefold.h: Likewise.
14643         * lib/unicase/tolower.h: Likewise.
14644         * lib/unicase/totitle.h: Likewise.
14645         * lib/unicase/toupper.h: Likewise.
14646         * lib/unictype/bidi_of.h: Likewise.
14647         * lib/unictype/blocks.h: Likewise.
14648         * lib/unictype/categ_C.h: Likewise.
14649         * lib/unictype/categ_Cf.h: Likewise.
14650         * lib/unictype/categ_Cn.h: Likewise.
14651         * lib/unictype/categ_L.h: Likewise.
14652         * lib/unictype/categ_Ll.h: Likewise.
14653         * lib/unictype/categ_Lm.h: Likewise.
14654         * lib/unictype/categ_Lo.h: Likewise.
14655         * lib/unictype/categ_Lu.h: Likewise.
14656         * lib/unictype/categ_M.h: Likewise.
14657         * lib/unictype/categ_Mc.h: Likewise.
14658         * lib/unictype/categ_Mn.h: Likewise.
14659         * lib/unictype/categ_N.h: Likewise.
14660         * lib/unictype/categ_Nd.h: Likewise.
14661         * lib/unictype/categ_Nl.h: Likewise.
14662         * lib/unictype/categ_No.h: Likewise.
14663         * lib/unictype/categ_P.h: Likewise.
14664         * lib/unictype/categ_Pd.h: Likewise.
14665         * lib/unictype/categ_Po.h: Likewise.
14666         * lib/unictype/categ_S.h: Likewise.
14667         * lib/unictype/categ_Sc.h: Likewise.
14668         * lib/unictype/categ_So.h: Likewise.
14669         * lib/unictype/categ_of.h: Likewise.
14670         * lib/unictype/combining.h: Likewise.
14671         * lib/unictype/ctype_alnum.h: Likewise.
14672         * lib/unictype/ctype_alpha.h: Likewise.
14673         * lib/unictype/ctype_graph.h: Likewise.
14674         * lib/unictype/ctype_lower.h: Likewise.
14675         * lib/unictype/ctype_print.h: Likewise.
14676         * lib/unictype/ctype_punct.h: Likewise.
14677         * lib/unictype/ctype_upper.h: Likewise.
14678         * lib/unictype/decdigit.h: Likewise.
14679         * lib/unictype/digit.h: Likewise.
14680         * lib/unictype/numeric.h: Likewise.
14681         * lib/unictype/pr_alphabetic.h: Likewise.
14682         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14683         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14684         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14685         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14686         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14687         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14688         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14689         * lib/unictype/pr_combining.h: Likewise.
14690         * lib/unictype/pr_composite.h: Likewise.
14691         * lib/unictype/pr_currency_symbol.h: Likewise.
14692         * lib/unictype/pr_dash.h: Likewise.
14693         * lib/unictype/pr_decimal_digit.h: Likewise.
14694         * lib/unictype/pr_deprecated.h: Likewise.
14695         * lib/unictype/pr_diacritic.h: Likewise.
14696         * lib/unictype/pr_extender.h: Likewise.
14697         * lib/unictype/pr_grapheme_base.h: Likewise.
14698         * lib/unictype/pr_grapheme_extend.h: Likewise.
14699         * lib/unictype/pr_grapheme_link.h: Likewise.
14700         * lib/unictype/pr_id_continue.h: Likewise.
14701         * lib/unictype/pr_id_start.h: Likewise.
14702         * lib/unictype/pr_ideographic.h: Likewise.
14703         * lib/unictype/pr_ignorable_control.h: Likewise.
14704         * lib/unictype/pr_logical_order_exception.h: Likewise.
14705         * lib/unictype/pr_lowercase.h: Likewise.
14706         * lib/unictype/pr_numeric.h: Likewise.
14707         * lib/unictype/pr_other_alphabetic.h: Likewise.
14708         * lib/unictype/pr_punctuation.h: Likewise.
14709         * lib/unictype/pr_sentence_terminal.h: Likewise.
14710         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14711         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14712         * lib/unictype/pr_unified_ideograph.h: Likewise.
14713         * lib/unictype/pr_uppercase.h: Likewise.
14714         * lib/unictype/pr_xid_continue.h: Likewise.
14715         * lib/unictype/pr_xid_start.h: Likewise.
14716         * lib/unictype/pr_zero_width.h: Likewise.
14717         * lib/unictype/scripts.h: Likewise.
14718         * lib/unictype/scripts_byname.gperf: Likewise.
14719         * lib/unictype/sy_java_ident.h: Likewise.
14720         * lib/unigbrk/gbrkprop.h: Likewise.
14721         * lib/unilbrk/lbrkprop1.h: Likewise.
14722         * lib/unilbrk/lbrkprop2.h: Likewise.
14723         * lib/unilbrk/lbrktables.h: Likewise.
14724         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14725         LBP_CP. Implement rule LB30.
14726         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14727         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14728         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14729         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14730         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14731         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14732         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14733         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14734         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14735         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14736         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14737         bits instead of 16 bits in the code1 and code2 of each composition
14738         rule.
14739         (uc_composition): Update for Unicode 5.2.0.
14740         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14741         * lib/uninorm/decomposition-table2.h: Likewise.
14742         * lib/uniwbrk/wbrkprop.h: Likewise.
14743         * tests/unicase/test-cased.c: Likewise.
14744         * tests/unicase/test-ignorable.c: Likewise.
14745         * tests/unicase/test-uc_tolower.c: Likewise.
14746         * tests/unicase/test-uc_totitle.c: Likewise.
14747         * tests/unicase/test-uc_toupper.c: Likewise.
14748         * tests/unictype/test-categ_C.c: Likewise.
14749         * tests/unictype/test-categ_Cf.c: Likewise.
14750         * tests/unictype/test-categ_Cn.c: Likewise.
14751         * tests/unictype/test-categ_L.c: Likewise.
14752         * tests/unictype/test-categ_Ll.c: Likewise.
14753         * tests/unictype/test-categ_Lm.c: Likewise.
14754         * tests/unictype/test-categ_Lo.c: Likewise.
14755         * tests/unictype/test-categ_Lu.c: Likewise.
14756         * tests/unictype/test-categ_M.c: Likewise.
14757         * tests/unictype/test-categ_Mc.c: Likewise.
14758         * tests/unictype/test-categ_Mn.c: Likewise.
14759         * tests/unictype/test-categ_N.c: Likewise.
14760         * tests/unictype/test-categ_Nd.c: Likewise.
14761         * tests/unictype/test-categ_Nl.c: Likewise.
14762         * tests/unictype/test-categ_No.c: Likewise.
14763         * tests/unictype/test-categ_P.c: Likewise.
14764         * tests/unictype/test-categ_Pd.c: Likewise.
14765         * tests/unictype/test-categ_Po.c: Likewise.
14766         * tests/unictype/test-categ_S.c: Likewise.
14767         * tests/unictype/test-categ_Sc.c: Likewise.
14768         * tests/unictype/test-categ_So.c: Likewise.
14769         * tests/unictype/test-ctype_alnum.c: Likewise.
14770         * tests/unictype/test-ctype_alpha.c: Likewise.
14771         * tests/unictype/test-ctype_graph.c: Likewise.
14772         * tests/unictype/test-ctype_lower.c: Likewise.
14773         * tests/unictype/test-ctype_print.c: Likewise.
14774         * tests/unictype/test-ctype_punct.c: Likewise.
14775         * tests/unictype/test-ctype_upper.c: Likewise.
14776         * tests/unictype/test-decdigit.h: Likewise.
14777         * tests/unictype/test-digit.h: Likewise.
14778         * tests/unictype/test-numeric.h: Likewise.
14779         * tests/unictype/test-pr_alphabetic.c: Likewise.
14780         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14781         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14782         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14783         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14784         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14785         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14786         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14787         * tests/unictype/test-pr_combining.c: Likewise.
14788         * tests/unictype/test-pr_composite.c: Likewise.
14789         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14790         * tests/unictype/test-pr_dash.c: Likewise.
14791         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14792         * tests/unictype/test-pr_deprecated.c: Likewise.
14793         * tests/unictype/test-pr_diacritic.c: Likewise.
14794         * tests/unictype/test-pr_extender.c: Likewise.
14795         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14796         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14797         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14798         * tests/unictype/test-pr_id_continue.c: Likewise.
14799         * tests/unictype/test-pr_id_start.c: Likewise.
14800         * tests/unictype/test-pr_ideographic.c: Likewise.
14801         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14802         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14803         * tests/unictype/test-pr_lowercase.c: Likewise.
14804         * tests/unictype/test-pr_numeric.c: Likewise.
14805         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14806         * tests/unictype/test-pr_punctuation.c: Likewise.
14807         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14808         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14809         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14810         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14811         * tests/unictype/test-pr_uppercase.c: Likewise.
14812         * tests/unictype/test-pr_xid_continue.c: Likewise.
14813         * tests/unictype/test-pr_xid_start.c: Likewise.
14814         * tests/unictype/test-pr_zero_width.c: Likewise.
14815         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14816         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14817         changed behaviour: line breaking is now disallowed between a letter
14818         or '=' and '('.
14819         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14820         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14821         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14822         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14823         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14824         lib/uniwidth/width.c.
14825         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14826         without comments, but with the original copyright notice.
14827         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14828         changes.
14829         * lib/unictype/categ_Cc.h: Likewise.
14830         * lib/unictype/categ_Co.h: Likewise.
14831         * lib/unictype/categ_Cs.h: Likewise.
14832         * lib/unictype/categ_Lt.h: Likewise.
14833         * lib/unictype/categ_Me.h: Likewise.
14834         * lib/unictype/categ_Pc.h: Likewise.
14835         * lib/unictype/categ_Pe.h: Likewise.
14836         * lib/unictype/categ_Pf.h: Likewise.
14837         * lib/unictype/categ_Pi.h: Likewise.
14838         * lib/unictype/categ_Ps.h: Likewise.
14839         * lib/unictype/categ_Sk.h: Likewise.
14840         * lib/unictype/categ_Sm.h: Likewise.
14841         * lib/unictype/categ_Z.h: Likewise.
14842         * lib/unictype/categ_Zl.h: Likewise.
14843         * lib/unictype/categ_Zp.h: Likewise.
14844         * lib/unictype/categ_Zs.h: Likewise.
14845         * lib/unictype/ctype_blank.h: Likewise.
14846         * lib/unictype/ctype_cntrl.h: Likewise.
14847         * lib/unictype/ctype_digit.h: Likewise.
14848         * lib/unictype/ctype_space.h: Likewise.
14849         * lib/unictype/ctype_xdigit.h: Likewise.
14850         * lib/unictype/mirror.h: Likewise.
14851         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14852         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14853         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14854         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14855         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14856         * lib/unictype/pr_bidi_control.h: Likewise.
14857         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14858         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14859         * lib/unictype/pr_bidi_pdf.h: Likewise.
14860         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14861         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14862         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14863         * lib/unictype/pr_format_control.h: Likewise.
14864         * lib/unictype/pr_hex_digit.h: Likewise.
14865         * lib/unictype/pr_hyphen.h: Likewise.
14866         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14867         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14868         * lib/unictype/pr_iso_control.h: Likewise.
14869         * lib/unictype/pr_join_control.h: Likewise.
14870         * lib/unictype/pr_left_of_pair.h: Likewise.
14871         * lib/unictype/pr_line_separator.h: Likewise.
14872         * lib/unictype/pr_math.h: Likewise.
14873         * lib/unictype/pr_non_break.h: Likewise.
14874         * lib/unictype/pr_not_a_character.h: Likewise.
14875         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14876         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14877         * lib/unictype/pr_other_id_continue.h: Likewise.
14878         * lib/unictype/pr_other_id_start.h: Likewise.
14879         * lib/unictype/pr_other_lowercase.h: Likewise.
14880         * lib/unictype/pr_other_math.h: Likewise.
14881         * lib/unictype/pr_other_uppercase.h: Likewise.
14882         * lib/unictype/pr_paired_punctuation.h: Likewise.
14883         * lib/unictype/pr_paragraph_separator.h: Likewise.
14884         * lib/unictype/pr_pattern_syntax.h: Likewise.
14885         * lib/unictype/pr_pattern_white_space.h: Likewise.
14886         * lib/unictype/pr_private_use.h: Likewise.
14887         * lib/unictype/pr_quotation_mark.h: Likewise.
14888         * lib/unictype/pr_radical.h: Likewise.
14889         * lib/unictype/pr_soft_dotted.h: Likewise.
14890         * lib/unictype/pr_space.h: Likewise.
14891         * lib/unictype/pr_titlecase.h: Likewise.
14892         * lib/unictype/pr_variation_selector.h: Likewise.
14893         * lib/unictype/pr_white_space.h: Likewise.
14894         * lib/unictype/sy_c_ident.h: Likewise.
14895         * lib/unictype/sy_c_whitespace.h: Likewise.
14896         * lib/unictype/sy_java_whitespace.h: Likewise.
14897         * modules/uni*/*: Bump version number of expected libunistring version.
14898         Reported by Simon Josefsson.
14899
14900 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14901
14902         useless-if-before-free: fix typo in --help and make the internal,
14903         automatic version date update process work once again.
14904         --help output contained a NUL character instead of the
14905         backslash-zero that was intended.  Also, the "must lie within
14906         the first 8 lines" line is on line 9, and hence not getting
14907         automatically updated.
14908         * build-aux/useless-if-before-free: Fix the former by adding a
14909         backslash, and the latter by condensing the three lines of what-it-does
14910         to a single line, leaving one line of slack for the future.
14911
14912 2011-01-09  Bruno Haible  <bruno@clisp.org>
14913
14914         uniwidth/width: Fix width of U+1D173..U+1D17A.
14915         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14916         symbolic_width, output_width_property_test): New functions.
14917         (main): Invoke output_nonspacing_property, output_width_property_test.
14918         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14919         U+1D173..U+1D17A.
14920         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14921         1.
14922         * modules/uniwidth/*: Bump version number of expected libunistring
14923         version.
14924         * modules/unilbrk/*: Likewise.
14925
14926 2011-01-08  Bruno Haible  <bruno@clisp.org>
14927
14928         uninorm tests: Preserve copyright of Unicode data file.
14929         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14930         Mention modifications.
14931
14932 2011-01-08  Bruno Haible  <bruno@clisp.org>
14933
14934         gen-uni-tables: Prepare for Unicode 5.2.0.
14935         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14936         (debug_output_lbp, output_lbp): Update.
14937
14938 2011-01-08  Bruno Haible  <bruno@clisp.org>
14939
14940         unilbrk: Clarify gen-uni-tables.c code.
14941         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14942         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14943         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14944
14945 2011-01-07  Bruno Haible  <bruno@clisp.org>
14946
14947         strtod: Restore errno when successfully parsing Infinity or NaN.
14948         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14949         restore the original errno.
14950
14951 2011-01-07  Bruno Haible  <bruno@clisp.org>
14952
14953         remove test: Avoid failure on HP-UX 11.
14954         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14955
14956 2011-01-07  Bruno Haible  <bruno@clisp.org>
14957
14958         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14959         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14960         error code.
14961
14962 2011-01-07  Pádraig Brady <P@draigBrady.com>
14963
14964         ignore-value: fixup comments, and add Eric Blake
14965         as an author since he rewrote the macros.
14966         * lib/ignore-value.h (ignore_value):  State that
14967         we now support aggregates.  Also specify exactly
14968         when the GCC warn_unused_result feature was added.
14969
14970 2011-01-06  Eric Blake  <eblake@redhat.com>
14971
14972         ignore-value: support aggregate types
14973         * lib/ignore-value.h (ignore_value): Provide separate gcc
14974         definition.
14975         * modules/ignore-value-tests: New test module.
14976         * tests/test-ignore-value.c: New test.
14977
14978         maint.mk: improve sc_prohibit_strcmp regex
14979         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14980         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14981         definition of STRNEQ.
14982
14983         signal: work around Haiku issue with SIGBUS
14984         * lib/siglist.h: Add comment.
14985         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14986         strsignal's favoring of SIGSEGV.
14987         * tests/test-signal.c (main): Avoid test failure.
14988         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14989         Reported by Scott McCreary.
14990
14991         maint.mk: add pre-release check to ensure submodule commits are public
14992         * top/maint.mk (public-submodule-commit): New rule.
14993         (submodule-checks): New variable.
14994         (alpha beta stable): Depend on the variable.
14995
14996 2011-01-05  Pádraig Brady <P@draigBrady.com>
14997         and Jim Meyering  <meyering@redhat.com>
14998
14999         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15000         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15001         (ATTRIBUTE_DEPRECATED): Define.
15002         (_ignore_case): New function.
15003         (ignore_value): New macro, to replace the old function.
15004         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15005         * modules/ignore-value (Depends-on): Add stdint.
15006
15007 2011-01-04  Eric Blake  <eblake@redhat.com>
15008
15009         doc: regenerate INSTALL
15010         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15011         @firstparagraphindent support, now that autoconf dropped it.
15012         (INSTALL_PRELUDE): Reinstate old macro.
15013         * doc/install.texi: Resync from autoconf.
15014         * doc/INSTALL: Reflect recent autoconf update.
15015         * doc/INSTALL.ISO: Likewise.
15016         * doc/INSTALL.UTF-8: Likewise.
15017         Reported by Karl Berry.
15018
15019 2011-01-04  Bruce Korb  <address@hidden>
15020
15021         git-version-gen: avoid a sub-shell
15022         * build-aux/git-version-gen: Redirect stderr in `...` via
15023         "exec 2>...", rather than via an added sub-shell.
15024
15025 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15026
15027         git-version-gen: use (...) rather than sh -c '...'
15028         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15029         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15030
15031 2011-01-03  Jim Meyering  <meyering@redhat.com>
15032
15033         git-version-gen: convert leading TABs to spaces
15034         * build-aux/git-version-gen: Expand leading TABs.
15035
15036         git-version-gen: handle failed "git rev-list"
15037         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15038         from git and proceeding as if it had succeeded but printed no SHA1
15039         checksums, suppress the diagnostic and handle the failure.
15040         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15041
15042         git-version-gen: include command name in one more diagnostic
15043         * build-aux/git-version-gen: When the required .tarball-version file
15044         was missing or unreadable, you might see the diagnostic from "cat",
15045         but no trace of the name of the invoking script.  Now, you still see
15046         the diagnostic from cat, but also get one from "git-version-gen: ".
15047         Inspired by a patch from Bruce Korb.
15048
15049         update-copyright: adjust test to match changed code
15050         * tests/test-update-copyright.sh: Change test's expected output
15051         to match new actual output.
15052
15053 2011-01-02  Bruno Haible  <bruno@clisp.org>
15054
15055         getlogin_r: Avoid test failure on HP-UX 11.
15056         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15057         ERANGE when the second argument is zero.
15058         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15059         portability problem.
15060
15061 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15062
15063         * build-aux/update-copyright: doc Simon's changes
15064
15065 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15066
15067         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15068         environment variable.
15069
15070 2011-01-02  Bruno Haible  <bruno@clisp.org>
15071
15072         unigbrk: Avoid gcc warnings.
15073         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15074         unused variable.
15075         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15076         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15077         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15078         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15079         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15080         Change type of first argument to 'const char *'.
15081         (main): Remove unused variable.
15082         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15083         type of first argument to 'const char *'.
15084         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15085         Likewise.
15086         (main): Change type of variable 's'.
15087         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15088         to 'int'.
15089
15090 2011-01-02  Bruno Haible  <bruno@clisp.org>
15091
15092         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15093         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15094         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15095         bug.
15096         * lib/pwrite.c: Undo 2010-12-31 patch.
15097         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15098
15099 2011-01-02  Bruno Haible  <bruno@clisp.org>
15100
15101         pread: Fix test whether it works.
15102         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15103
15104 2011-01-02  Bruno Haible  <bruno@clisp.org>
15105
15106         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15107         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15108         ends in "6". Don't require a specific month name. Try also the locale
15109         names found on HP-UX 11 and Solaris 7.
15110
15111 2011-01-02  Bruno Haible  <bruno@clisp.org>
15112
15113         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15114         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15115         C linkage.
15116         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15117
15118 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15119
15120         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15121         for consistency, since the "cluster" term is not used elsewhere.
15122         * lib/unigbrk.in.h: Update name.
15123         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15124         * lib/unigbrk/u16-grapheme-next.c: Update name.
15125         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15126         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15127         * lib/unigbrk/u32-grapheme-next.c: Update name.
15128         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15129         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15130         * lib/unigbrk/u8-grapheme-next.c: Update name.
15131         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15132         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15133         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15134         Suggested by Bruno Haible.
15135
15136 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15137
15138         Remove module 'u8-grapheme-len' as too redundant with
15139         'u8-grapheme-next'.
15140         * modules/unigbrk/u8-grapheme-len: Delete file.
15141         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15142         * lib/unigbrk.in.h: Remove prototype for deleted function.
15143         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15144         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15145
15146         Remove module 'u16-grapheme-len' as too redundant with
15147         'u16-grapheme-next'.
15148         * modules/unigbrk/u16-grapheme-len: Delete file.
15149         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15150         * lib/unigbrk.in.h: Remove prototype for deleted function.
15151         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15152         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15153
15154         Remove module 'u32-grapheme-len' as too redundant with
15155         'u32-grapheme-next'.
15156         * modules/unigbrk/u32-grapheme-len: Delete file.
15157         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15158         * lib/unigbrk.in.h: Remove prototype for deleted function.
15159         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15160         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15161
15162         Suggested by Bruno Haible.
15163
15164 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15165
15166         * unigbrk.in.h: Fix typo: "ben" => "been".
15167         Reported by Bruno Haible.
15168
15169 2011-01-01  Jim Meyering  <meyering@redhat.com>
15170
15171         maint: update almost all copyright ranges to include 2011
15172         Run the new "make update-copyright" rule.
15173
15174 2011-01-01  Jim Meyering  <meyering@redhat.com>
15175
15176         maint: update-copyright: exempt doc/INSTALL*
15177         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15178         since they are generated.  Suggested by Bruno Haible.
15179
15180 2011-01-01  Jim Meyering  <meyering@redhat.com>
15181
15182         maint: refine the update-copyright rule
15183         * Makefile (update-copyright): Also exclude any file that includes
15184         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15185         code that merely generates the comment.
15186
15187 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15188
15189         New module 'u8-grapheme-len'.
15190         * modules/unigbrk/u8-grapheme-len: New file.
15191         * modules/unigbrk/u8-grapheme-len-tests: New file.
15192         * lib/unigbrk.in.h: Add prototype for new function.
15193         * lib/unigbrk/u8-grapheme-len.c: New file.
15194         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15195
15196         New module 'u16-grapheme-len'.
15197         * modules/unigbrk/u16-grapheme-len: New file.
15198         * modules/unigbrk/u16-grapheme-len-tests: New file.
15199         * lib/unigbrk.in.h: Add prototype for new function.
15200         * lib/unigbrk/u16-grapheme-len.c: New file.
15201         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15202
15203         New module 'u32-grapheme-len'.
15204         * modules/unigbrk/u32-grapheme-len: New file.
15205         * modules/unigbrk/u32-grapheme-len-tests: New file.
15206         * lib/unigbrk.in.h: Add prototype for new function.
15207         * lib/unigbrk/u32-grapheme-len.c: New file.
15208         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15209
15210         New module 'u8-grapheme-next'.
15211         * modules/unigbrk/u8-grapheme-next: New file.
15212         * modules/unigbrk/u8-grapheme-next-tests: New file.
15213         * lib/unigbrk.in.h: Add prototype for new function.
15214         * lib/unigbrk/u8-grapheme-next.c: New file.
15215         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15216
15217         New module 'u16-grapheme-next'.
15218         * modules/unigbrk/u16-grapheme-next: New file.
15219         * modules/unigbrk/u16-grapheme-next-tests: New file.
15220         * lib/unigbrk.in.h: Add prototype for new function.
15221         * lib/unigbrk/u16-grapheme-next.c: New file.
15222         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15223
15224         New module 'u32-grapheme-next'.
15225         * modules/unigbrk/u32-grapheme-next: New file.
15226         * modules/unigbrk/u32-grapheme-next-tests: New file.
15227         * lib/unigbrk.in.h: Add prototype for new function.
15228         * lib/unigbrk/u32-grapheme-next.c: New file.
15229         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15230
15231         New module 'u8-grapheme-prev'.
15232         * modules/unigbrk/u8-grapheme-prev: New file.
15233         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15234         * lib/unigbrk.in.h: Add prototype for new function.
15235         * lib/unigbrk/u8-grapheme-prev.c: New file.
15236         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15237
15238         New module 'u16-grapheme-prev'.
15239         * modules/unigbrk/u16-grapheme-prev: New file.
15240         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15241         * lib/unigbrk.in.h: Add prototype for new function.
15242         * lib/unigbrk/u16-grapheme-prev.c: New file.
15243         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15244
15245         New module 'u32-grapheme-prev'.
15246         * modules/unigbrk/u32-grapheme-prev: New file.
15247         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15248         * lib/unigbrk.in.h: Add prototype for new function.
15249         * lib/unigbrk/u32-grapheme-prev.c: New file.
15250         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15251
15252         New module 'u8-grapheme-breaks'.
15253         * modules/unigbrk/u8-grapheme-breaks: New file.
15254         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15255         * lib/unigbrk.in.h: Add prototype for new function.
15256         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15257         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15258
15259         New module 'u16-grapheme-breaks'.
15260         * modules/unigbrk/u16-grapheme-breaks: New file.
15261         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15262         * lib/unigbrk.in.h: Add prototype for new function.
15263         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15264         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15265
15266         New module 'u32-grapheme-breaks'.
15267         * modules/unigbrk/u32-grapheme-breaks: New file.
15268         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15269         * lib/unigbrk.in.h: Add prototype for new function.
15270         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15271         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15272
15273         New module 'ulc-grapheme-breaks'.
15274         * modules/unigbrk/ulc-grapheme-breaks: New file.
15275         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15276         * m4/locale-ar.m4: New file.
15277         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15278         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15279         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15280
15281 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15282
15283         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15284         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15285         modified how this file was generated before I initially submitted
15286         the module, but failed to regenerate it.  This meant that several
15287         of the level2 entries were wrong.
15288         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15289         Remove the division-by-2 that is folded into the table now that
15290         gbrkprop.h has been regenerated properly.  Now -1 entries are
15291         handled correctly.
15292
15293         New module 'unigbrk/uc-gbrk-prop-tests'.
15294         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15295         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15296         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15297         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15298
15299 2011-01-01  Bruno Haible  <bruno@clisp.org>
15300
15301         Avoid use of hexadecimal escapes.
15302         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15303         instead of hexadecimal escapes.
15304
15305 2011-01-01  Jim Meyering  <meyering@redhat.com>
15306
15307         maint: new rule to update copyright year ranges
15308         * Makefile (update-copyright): New rule.
15309
15310         maint: indent with TABs in Makefile
15311         * Makefile: Expand leading sequences of spaces to TABs
15312
15313         version-etc: update the copyright year it reports
15314         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15315
15316 2010-12-31  Bruno Haible  <bruno@clisp.org>
15317
15318         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15319         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15320         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15321         zero.
15322
15323 2010-12-31  Bruno Haible  <bruno@clisp.org>
15324
15325         pwrite: Work around HP-UX 11.11 bug.
15326         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15327         works and set REPLACE_PWRITE if not.
15328         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15329         function.
15330         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15331
15332 2010-12-31  Bruno Haible  <bruno@clisp.org>
15333
15334         pread: Work around HP-UX 11 bugs.
15335         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15336         and set REPLACE_PREAD if not.
15337         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15338
15339 2010-12-31  Eric Blake  <eblake@redhat.com>
15340
15341         nl_langinfo: fix YESEXPR on Irix 6.5
15342         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15343         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15344         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15345         it.
15346
15347 2010-12-31  Bruno Haible  <bruno@clisp.org>
15348
15349         iconv: Document HP-UX 11 bug.
15350         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15351
15352 2010-12-31  Bruno Haible  <bruno@clisp.org>
15353
15354         ldexpl: Fix link error on HP-UX 11.
15355         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15356         LDEXPL_LIBM, using $ISNANL_LIBM.
15357
15358 2010-12-31  Eric Blake  <eblake@redhat.com>
15359
15360         ftello: avoid compilation failure with SunStudio c89
15361         * lib/ftello.c (ftello): Use lseek, not llseek.
15362
15363         tests: avoid failing coreutils tests on cygwin
15364         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15365         (create_exe_shims_): Return 0 when skipping.
15366
15367 2010-12-31  Bruno Haible  <bruno@clisp.org>
15368
15369         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15370         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15371
15372 2010-12-31  Bruno Haible  <bruno@clisp.org>
15373
15374         waitpid: Fix link error in C++ mode.
15375         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15376
15377 2010-12-31  Bruno Haible  <bruno@clisp.org>
15378
15379         isnan: Use GCC built-ins when possible.
15380         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15381         __builtin_isnan.
15382         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15383         (isnan): Define using GCC built-ins for GCC >= 4.0.
15384
15385 2010-12-31  Bruno Haible  <bruno@clisp.org>
15386
15387         isnand: Fix mistake.
15388         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15389         __builtin_isnand.
15390
15391 2010-12-31  Bruno Haible  <bruno@clisp.org>
15392
15393         open: Avoid C++ error on HP-UX 11.
15394         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15395
15396 2010-12-31  Bruno Haible  <bruno@clisp.org>
15397
15398         time_r: Add missing declarations on HP-UX 11.
15399         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15400         instead of HAVE_LOCALTIME_R.
15401         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15402         HAVE_LOCALTIME_R always.
15403         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15404         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15405         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15406         HAVE_LOCALTIME_R.
15407         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15408         * doc/posix-functions/localtime_r.texi: Likewise.
15409
15410 2010-12-29  Eric Blake  <eblake@redhat.com>
15411
15412         mountlist: tweak previous commit
15413         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15414         Reported by Paul Eggert.
15415
15416         mountlist: fix local drive detection on cygwin
15417         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15418         that works for cygwin.
15419
15420 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         ftoastr, snprintf: ftoastr + snprintf module
15423         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15424         since the snprintf module now should be good enough here.
15425         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15426         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15427         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15428         GNULIB_SNPRINTF only for the test directory, and the latter
15429         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15430         seems to suffice by itself.
15431
15432 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15433
15434         alloca: one step towards thread-safety
15435         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15436         need for a static variable.  All callers changed.  This does not
15437         make the alloca replacement thread-safe, but it's one step.
15438
15439         tests: minor indenting change
15440         * tests/init.sh: Sync from coreutils housekeeping patch
15441         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15442         to keep lines within 80 columns.
15443
15444 2010-12-28  Jim Meyering  <meyering@redhat.com>
15445
15446         regex: don't infloop on persistent failing calloc
15447         * lib/regexec.c (build_trtable): Return failure indication upon
15448         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15449         In glibc, this was fixed for version 2.13:
15450         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15451
15452 2010-12-28  Bruno Haible  <bruno@clisp.org>
15453             Paul Eggert <eggert@cs.ucla.edu>
15454
15455         linkat: Make implementation robust against system behaviour variations.
15456         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15457         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15458         way, and to -2 if it needs a generic runtime test.
15459         * lib/linkat.c (solaris_optimized_link_immediate,
15460         solaris_optimized_link_follow): New functions.
15461         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15462         (check_same_link): Use it.
15463
15464 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15465
15466         New module 'unigbrk/base'.
15467         * modules/unigbrk/base: New file.
15468         * lib/unigbrk.in.h: New file.
15469
15470         New module 'unigbrk/uc-gbrk-prop'.
15471         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15472         * modules/unigbrk/uc-gbrk-prop: New file.
15473         * lib/unigbrk/gbrkprop.h: New file.
15474         * lib/unigbrk/uc-gbrk-prop.c: New file.
15475
15476         New module 'unigbrk/uc-is-grapheme-break'.
15477         * modules/unigbrk/uc-is-grapheme-break: New file.
15478         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15479         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15480         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15481         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15482         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15483
15484         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15485
15486 2010-12-27  Bruno Haible  <bruno@clisp.org>
15487
15488         linkat test: Avoid failure on Solaris 11 2010-11.
15489         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15490
15491 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15492
15493         utimens: work around glibc rounding bug on more platforms
15494         * lib/utimens.c (fdutimens): Work around rounding bug even if
15495         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15497
15498 2010-12-27  Bruno Haible  <bruno@clisp.org>
15499
15500         select tests: Improve comments.
15501         * tests/test-select.c (do_select): Add comments.
15502
15503 2010-12-27  Bruno Haible  <bruno@clisp.org>
15504
15505         select tests: Safer way of handling timeout.
15506         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15507         at every invocation.
15508
15509 2010-12-27  Bruno Haible  <bruno@clisp.org>
15510
15511         select tests: Use 'bool' where appropriate.
15512         * tests/test-select.c (connect_to_socket): Change argument type to
15513         'bool'.
15514
15515 2010-12-27  Bruno Haible  <bruno@clisp.org>
15516
15517         select tests: Use existing modules.
15518         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15519         (configure.ac): Don't test for unistd.h.
15520         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15521         declared in <unistd.h>.
15522
15523 2010-12-27  Bruno Haible  <bruno@clisp.org>
15524
15525         mbrtowc: Work around a Solaris 7 bug.
15526         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15527         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15528         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15529         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15530         MBRTOWC_NULL_ARG1_BUG.
15531         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15532         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15533         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15534         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15535
15536 2010-12-27  Jim Meyering  <meyering@redhat.com>
15537
15538         read-file.c: tweak syntax
15539         * lib/read-file.c (fread_file): Remove space after "*" in function
15540         definitions.
15541
15542 2010-12-27  Bruno Haible  <bruno@clisp.org>
15543
15544         times test: Avoid gcc warnings on OSF/1.
15545         * tests/test-times.c (main): Cast printf arguments from clock_t to
15546         'long int'.
15547
15548 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15549
15550         utimens: work around glibc rounding bug on older Linux kernels
15551         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15552         on Linux with a glibc whose utimes might not work, then work
15553         around a longstanding glibc bug involving rounding rather than
15554         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15555         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15556
15557 2010-12-26  Bruno Haible  <bruno@clisp.org>
15558
15559         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15560         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15561         _GL_CXXALIAS_SYS.
15562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15563
15564 2010-12-26  Bruno Haible  <bruno@clisp.org>
15565
15566         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15567         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15568         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15569         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15570         looking for the declaration.
15571         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15572         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15573         problem.
15574         * doc/posix-functions/inet_pton.texi: Likewise.
15575
15576 2010-12-26  Bruno Haible  <bruno@clisp.org>
15577
15578         arpa_inet: Use the common idioms with C++ support.
15579         * lib/arpa_inet.in.h: Include c++defs.h.
15580         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15581         support.
15582         * modules/arpa_inet (Depends-on): Add c++defs.
15583         (Makefile.am): Substitute the contents of c++defs.h.
15584         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15585         * modules/arpa_inet-c++-tests: New file.
15586         * tests/test-arpa_inet-c++.cc: New file.
15587
15588 2010-12-25  Bruno Haible  <bruno@clisp.org>
15589
15590         Fix more C++ link errors on Solaris 8.
15591         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15592         $(LIB_EACCESS).
15593         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15594         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15595         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15596         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15597         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15598
15599 2010-12-25  Bruno Haible  <bruno@clisp.org>
15600
15601         printf-posix: Fix link error when a non-GCC compiler is used.
15602         * lib/stdio.in.h (printf): When not using GCC, override printf
15603         correctly.
15604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15605
15606 2010-12-25  Bruno Haible  <bruno@clisp.org>
15607
15608         strerror_r-posix: Update doc.
15609         * doc/posix-functions/strerror_r.texi: Update doc about the return
15610         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15611
15612 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15613
15614         utimens: simplify the logic of the previous change
15615         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15616         This should not affect whether the test succeeds or fails.
15617
15618         utimens: configure better on hosts with NFS clock skew
15619         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15620         uses the clock of the local host.  It might use the clock of the
15621         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15622         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15623
15624 2010-12-25  Bruno Haible  <bruno@clisp.org>
15625
15626         ptsname test: Avoid failure on Solaris.
15627         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15628         open a pseudo-terminal; don't use BSD-style ptys.
15629         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15630
15631 2010-12-25  Bruno Haible  <bruno@clisp.org>
15632
15633         ptsname: Avoid ERANGE failure on some systems.
15634         * lib/ptsname.c (buffer): Increase size.
15635
15636 2010-12-25  Bruno Haible  <bruno@clisp.org>
15637
15638         rename, renameat: Avoid test failures at NFS mounted locations.
15639         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15640         so that subsequent mkdir calls succeed.
15641
15642 2010-12-25  Bruno Haible  <bruno@clisp.org>
15643
15644         iswblank: Fix C++ link error on Solaris 8.
15645         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15646         _GL_FUNCDECL_SYS.
15647
15648 2010-12-25  Bruno Haible  <bruno@clisp.org>
15649
15650         unistd: Fix C++ link error on Solaris 8.
15651         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15652
15653 2010-12-25  Bruno Haible  <bruno@clisp.org>
15654
15655         readlink doc: Mention an old glibc bug.
15656         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15657
15658 2010-12-25  Bruno Haible  <bruno@clisp.org>
15659
15660         fcntl-h: Fix for use of C++ on glibc systems.
15661         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15662         also on glibc systems in C++ mode.
15663         Reported by Gary V. Vaughan <gary@gnu.org>.
15664
15665 2010-12-25  Bruno Haible  <bruno@clisp.org>
15666
15667         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15668         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15669
15670 2010-12-25  Bruno Haible  <bruno@clisp.org>
15671
15672         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15673         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15674         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15675         test whether truncl works according to ISO C 99 with IEC 60559.
15676         * m4/truncl-ieee.m4: New file.
15677         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15678         m4/signbit.m4.
15679         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15680
15681 2010-12-25  Bruno Haible  <bruno@clisp.org>
15682
15683         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15684         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15685         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15686         test whether ceill works according to ISO C 99 with IEC 60559.
15687         * m4/ceill-ieee.m4: New file.
15688         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15689         m4/signbit.m4.
15690         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15691
15692 2010-12-25  Bruno Haible  <bruno@clisp.org>
15693
15694         Ensure all prerequisites of <wchar.h> are included.
15695         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15696         before <wchar.h>.
15697         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15698         gl_MBRLEN_NUL_RETVAL): Likewise.
15699         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15700         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15701         AC_FUNC_MBRTOWC): Likewise.
15702         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15703         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15704         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15705         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15706         Likewise.
15707         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15708         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15709         (gl_WCHAR_H): Improve comments.
15710         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15711
15712 2010-12-25  Bruno Haible  <bruno@clisp.org>
15713
15714         strtok_r: Fix C syntax error in autoconf macro.
15715         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15716         characters in test program.
15717
15718 2010-12-24  Bruno Haible  <bruno@clisp.org>
15719
15720         ceil, trunc, round: Fix gcc warnings.
15721         * lib/ceil.c (MIN): Undefine before redefining.
15722         * lib/trunc.c (MIN): Likewise.
15723         * lib/round.c (MIN): Likewise.
15724         Include <math.h> first.
15725
15726 2010-12-24  Bruno Haible  <bruno@clisp.org>
15727
15728         select tests: Avoid failures on OSF/1 5.1.
15729         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15730         failure of closing the last socket; it may fail with ECONNRESET.
15731
15732 2010-12-24  Eric Blake  <eblake@redhat.com>
15733
15734         stdint: avoid HP-UX 10.20 preprocessor bug
15735         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15736         than #if.
15737         * tests/test-floor2.c (main): Likewise.
15738         Reported by Peter O'Gorman.
15739
15740         pipe: make obsoletion transition easier
15741         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15742         * modules/pipe (Files): Include revived file.
15743         (Include): Drop reference, to mirror getdate's behavior.
15744
15745 2010-12-24  Bruno Haible  <bruno@clisp.org>
15746
15747         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15748         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15749         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15750         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15751
15752 2010-12-24  Bruno Haible  <bruno@clisp.org>
15753
15754         gethostname: Ensure declaration on NonStop Kernel.
15755         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15756         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15757
15758 2010-12-24  Bruno Haible  <bruno@clisp.org>
15759
15760         sys_select: Ensure all necessary types on NonStop Kernel.
15761         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15762         include <sys/time.h>.
15763         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15764         NonStop Kernel.
15765         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15766
15767 2010-12-24  Bruno Haible  <bruno@clisp.org>
15768
15769         sys_select: Remove unneeded include.
15770         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15771         have <sys/select.h>.
15772
15773 2010-12-24  Bruno Haible  <bruno@clisp.org>
15774
15775         gethostname: Provide a fallback for HOST_NAME_MAX.
15776         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15777         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15778         instead.
15779         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15780
15781 2010-12-24  Bruno Haible  <bruno@clisp.org>
15782
15783         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15784         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15785         (SA_RESTART): Likewise.
15786         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15787
15788 2010-12-24  Bruno Haible  <bruno@clisp.org>
15789
15790         signal: Define NSIG.
15791         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15792         * tests/test-signal.c (nsig): New variable.
15793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15794
15795 2010-12-24  Bruno Haible  <bruno@clisp.org>
15796
15797         rename, renameat: Avoid test failures on OSF/1 5.1.
15798         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15799         alternative error codes.
15800         * tests/test-renameat.c (main): Likewise.
15801
15802 2010-12-24  Bruno Haible  <bruno@clisp.org>
15803
15804         *printf: Detect large precisions bug on Solaris 10/SPARC.
15805         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15806         by Paul Eggert.
15807         * tests/test-snprintf-posix.h (test_function): Add this test code here
15808         too.
15809         * tests/test-sprintf-posix.h (test_function): Likewise.
15810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15811         * tests/test-vasprintf-posix.c (test_function): Likewise.
15812         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15813         around by gnulib.
15814         * doc/posix-functions/printf.texi: Likewise.
15815         * doc/posix-functions/snprintf.texi: Likewise.
15816         * doc/posix-functions/sprintf.texi: Likewise.
15817         * doc/posix-functions/vfprintf.texi: Likewise.
15818         * doc/posix-functions/vprintf.texi: Likewise.
15819         * doc/posix-functions/vsnprintf.texi: Likewise.
15820         * doc/posix-functions/vsprintf.texi: Likewise.
15821         * doc/posix-functions/dprintf.texi: Undo last commit.
15822         * doc/posix-functions/vdprintf.texi: Likewise.
15823
15824 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15825
15826         tests: port test-fdutimensat.c to Solaris 8
15827         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15828         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15829         On Solaris 8, it fails with errno == ENOSYS, because there is no
15830         futimens (so it can't use the fd), and there is no lutimens (so it
15831         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15832
15833         vsnprintf: make more consistent with snprintf; doc fixes
15834
15835         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15836         the byte count return problem was promoted from the snprintf-posix
15837         to the snprintf module.
15838         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15839         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15840         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15841         * tests/test-snprintf.c (main): Check the byte count returned.
15842         * tests/test-vsnprintf.c (main): Likewise.
15843
15844 2010-12-23  Eric Blake  <eblake@redhat.com>
15845
15846         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15847         * modules/sigpipe (License): Relax license.
15848
15849 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15850
15851         doc: document Solaris printf bug with large float precisions
15852         * doc/posix-functions/dprintf.texi (dprintf):
15853         * doc/posix-functions/fprintf.texi (fprintf):
15854         * doc/posix-functions/printf.texi (printf):
15855         * doc/posix-functions/snprintf.texi (snprintf):
15856         * doc/posix-functions/sprintf.texi (sprintf):
15857         * doc/posix-functions/vdprintf.texi (vdprintf):
15858         * doc/posix-functions/vfprintf.texi (vfprintf):
15859         * doc/posix-functions/vprintf.texi (vprintf):
15860         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15861         * doc/posix-functions/vsprintf.texi (vsprintf):
15862         Mention that these functions mishandle large floating point
15863         precisions on Solaris 10.  The same bug is also present in Solaris
15864         8, and I assume earlier.  This causes "cd gnulib-tests; make
15865         check" to fail on Solaris 8 (and I assume, later) when building
15866         the latest coreutils, in test-vasprintf-posix's call to
15867         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15868         the wide flavors (e.g., wprintf) so this patch just updates the
15869         documentation for the narrow ones.
15870
15871         test-posixtm.c: add two tests
15872         * tests/test-posixtm.c: Add two tests, to highlight the
15873         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15874         around this bug; this is merely to document it.
15875
15876 2010-12-22  Bruno Haible  <bruno@clisp.org>
15877
15878         getlogin_r: Work around portability problem on OSF/1.
15879         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15880         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15881         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15882         test for a truncated result.
15883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15884         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15885         * modules/getlogin_r (Depends-on): Add memchr.
15886         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15887
15888 2010-12-22  Bruno Haible  <bruno@clisp.org>
15889
15890         ptsname: Avoid test failure on OSF/1 5.1.
15891         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15892         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15893         (same_slave): New function.
15894         (main): Use it to compare ptsname's result with the expected file name.
15895
15896 2010-12-22  Bruno Haible  <bruno@clisp.org>
15897
15898         Port extended stdio modules to HP NonStop Kernel.
15899         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15900         macros.
15901         * lib/fbufmode.c: Update comments.
15902         * lib/fflush.c: Likewise.
15903         * lib/fpurge.c: Likewise.
15904         * lib/freadable.c: Likewise.
15905         * lib/freadahead.c: Likewise.
15906         * lib/freading.c: Likewise.
15907         * lib/freadptr.c: Likewise.
15908         * lib/freadseek.c: Likewise.
15909         * lib/fseeko.c: Likewise.
15910         * lib/fseterr.c: Likewise.
15911         * lib/fwritable.c: Likewise.
15912         * lib/fwriting.c: Likewise.
15913         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15914
15915 2010-12-22  Bruno Haible  <bruno@clisp.org>
15916
15917         ttyname_r: Work around bug on OSF/1 5.1.
15918         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15919         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15920         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15921         present.
15922         * lib/ttyname_r.c (ttyname_r): Update comments.
15923
15924 2010-12-22  Bruno Haible  <bruno@clisp.org>
15925
15926         round: Implement result sign according to IEEE 754.
15927         * lib/round.c (MIN, MINUS_ZERO): New macros.
15928         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15929         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15930         * tests/test-round-ieee.c (main): Likewise.
15931         * tests/test-roundl-ieee.c (main): Likewise.
15932
15933         trunc: Implement result sign according to IEEE 754.
15934         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15935         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15936         * tests/test-trunc2.c: Include minus-zero.h.
15937         (MINUS_ZERO): New macro.
15938         (trunc_reference): Keep in sync with lib/trunc.c.
15939         * tests/test-truncf2.c: Include minus-zero.h.
15940         (MINUS_ZERO): New macro.
15941         (truncf_reference): Keep in sync with lib/trunc.c.
15942         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15943         * tests/test-trunc-ieee.c (main): Likewise.
15944         * tests/test-truncl-ieee.c (main): Likewise.
15945
15946         ceil: Implement result sign according to IEEE 754.
15947         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15948         (FUNC): Return -0.0 for -1 < x < 0.
15949         * tests/test-ceil2.c: Include minus-zero.h.
15950         (MINUS_ZERO): New macro.
15951         (ceil_reference): Keep in sync with lib/ceil.c.
15952         * tests/test-ceilf2.c: Include minus-zero.h.
15953         (MINUS_ZERO): New macro.
15954         (ceilf_reference): Keep in sync with lib/ceil.c.
15955         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15956         * tests/test-ceil-ieee.c (main): Likewise.
15957         * tests/test-ceill-ieee.c (main): Likewise.
15958
15959         floor: Implement result sign according to IEEE 754.
15960         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15961         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15962         * tests/test-floorf2.c (floorf_reference): Likewise.
15963         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15964         * tests/test-floor-ieee.c (main): Likewise.
15965         * tests/test-floorl-ieee.c (main): Likewise.
15966
15967 2010-12-22  Bruno Haible  <bruno@clisp.org>
15968
15969         getaddrinfo: Update doc.
15970         * doc/posix-functions/gai_strerror.texi: Return type is also different
15971         on AIX and HP-UX.
15972
15973 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         getaddrinfo, inet_ntop: Update doc for Solaris.
15976         * doc/posix-functions/gai_strerror.texi: Return type is also an
15977         issue on Solaris 9 and earlier.
15978         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15979         on Solaris 10 and earlier.
15980
15981 2010-12-21  Bruno Haible  <bruno@clisp.org>
15982
15983         New module 'roundl-ieee'.
15984         * modules/roundl-ieee: New file.
15985         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15986         test whether roundl works according to ISO C 99 with IEC 60559.
15987         * m4/roundl-ieee.m4: New file.
15988         * modules/roundl-ieee-tests: New file.
15989         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15990         * tests/test-roundl.c (main): Remove signbit tests.
15991         * modules/roundl-tests (Depends-on): Remove signbit.
15992         * doc/posix-functions/roundl.texi: Mention the new module.
15993
15994 2010-12-21  Bruno Haible  <bruno@clisp.org>
15995
15996         New module 'truncl-ieee'.
15997         * modules/truncl-ieee: New file.
15998         * modules/truncl-ieee-tests: New file.
15999         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16000         * tests/test-truncl.c (main): Remove signbit tests.
16001         * modules/truncl-tests (Depends-on): Remove signbit.
16002         * doc/posix-functions/truncl.texi: Mention the new module.
16003
16004 2010-12-21  Bruno Haible  <bruno@clisp.org>
16005
16006         New module 'ceill-ieee'.
16007         * modules/ceill-ieee: New file.
16008         * modules/ceill-ieee-tests: New file.
16009         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16010         * tests/test-ceill.c (main): Remove signbit tests.
16011         * modules/ceill-tests (Depends-on): Remove signbit.
16012         * doc/posix-functions/ceill.texi: Mention the new module.
16013
16014 2010-12-21  Bruno Haible  <bruno@clisp.org>
16015
16016         New module 'floorl-ieee'.
16017         * modules/floorl-ieee: New file.
16018         * modules/floorl-ieee-tests: New file.
16019         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16020         * tests/test-floorl.c (main): Remove signbit tests.
16021         * modules/floorl-tests (Depends-on): Remove signbit.
16022         * doc/posix-functions/floorl.texi: Mention the new module.
16023
16024 2010-12-21  Bruno Haible  <bruno@clisp.org>
16025
16026         New module 'round-ieee'.
16027         * modules/round-ieee: New file.
16028         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16029         whether round works according to ISO C 99 with IEC 60559.
16030         * m4/round-ieee.m4: New file.
16031         * modules/round-ieee-tests: New file.
16032         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16033         * tests/test-round1.c (main): Remove signbit tests.
16034         * modules/round-tests (Depends-on): Remove 'signbit'.
16035         * doc/posix-functions/round.texi: Mention the new module.
16036
16037 2010-12-21  Bruno Haible  <bruno@clisp.org>
16038
16039         New module 'trunc-ieee'.
16040         * modules/trunc-ieee: New file.
16041         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16042         whether trunc works according to ISO C 99 with IEC 60559.
16043         * m4/trunc-ieee.m4: New file.
16044         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16046         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16047         * modules/trunc-ieee-tests: New file.
16048         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16049         * tests/test-trunc1.c (main): Remove signbit tests.
16050         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16051         * doc/posix-functions/trunc.texi: Mention the new module.
16052
16053 2010-12-21  Bruno Haible  <bruno@clisp.org>
16054
16055         New module 'ceil-ieee'.
16056         * modules/ceil-ieee: New file.
16057         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16058         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16059         ISO C 99 with IEC 60559.
16060         * m4/ceil-ieee.m4: New file.
16061         * modules/ceil (Files): Add lib/ceil.c.
16062         (Depends-on): Add 'float'.
16063         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16064         * lib/math.in.h (ceil): New declaration.
16065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16066         REPLACE_CEIL.
16067         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16068         * modules/ceil-ieee-tests: New file.
16069         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16070         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16071         * doc/posix-functions/ceil.texi: Mention the new module.
16072
16073 2010-12-21  Bruno Haible  <bruno@clisp.org>
16074
16075         New module 'floor-ieee'.
16076         * modules/floor-ieee: New file.
16077         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16078         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16079         ISO C 99 with IEC 60559.
16080         * m4/floor-ieee.m4: New file.
16081         * modules/floor (Files): Add lib/floor.c.
16082         (Depends-on): Add 'float'.
16083         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16084         * lib/math.in.h (floor): New declaration.
16085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16086         REPLACE_FLOOR.
16087         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16088         * modules/floor-ieee-tests: New file.
16089         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16090         * tests/test-math-c++.cc: Check the signature of 'floor'.
16091         * doc/posix-functions/floor.texi: Mention the new module.
16092
16093 2010-12-21  Bruno Haible  <bruno@clisp.org>
16094
16095         New module 'roundf-ieee'.
16096         * modules/roundf-ieee: New file.
16097         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16098         test whether roundf works according to ISO C 99 with IEC 60559.
16099         * m4/roundf-ieee.m4: New file.
16100         * modules/roundf-ieee-tests: New file.
16101         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16102         * tests/test-roundf1.c (main): Remove signbit tests.
16103         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16104         * doc/posix-functions/roundf.texi: Mention the new module.
16105
16106 2010-12-21  Bruno Haible  <bruno@clisp.org>
16107
16108         New module 'truncf-ieee'.
16109         * modules/truncf-ieee: New file.
16110         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16111         test whether truncf works according to ISO C 99 with IEC 60559.
16112         * m4/truncf-ieee.m4: New file.
16113         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16115         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16116         * modules/truncf-ieee-tests: New file.
16117         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16118         * tests/test-truncf1.c (main): Remove signbit tests.
16119         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16120         * doc/posix-functions/truncf.texi: Mention the new module.
16121
16122 2010-12-21  Bruno Haible  <bruno@clisp.org>
16123
16124         New module 'ceilf-ieee'.
16125         * modules/ceilf-ieee: New file.
16126         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16127         test whether ceilf works according to ISO C 99 with IEC 60559.
16128         * m4/ceilf-ieee.m4: New file.
16129         * modules/ceilf-ieee-tests: New file.
16130         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16131         * tests/test-ceilf1.c (main): Remove signbit tests.
16132         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16133         * doc/posix-functions/ceilf.texi: Mention the new module.
16134
16135 2010-12-21  Bruno Haible  <bruno@clisp.org>
16136
16137         New module 'floorf-ieee'.
16138         * modules/floorf-ieee: New file.
16139         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16140         test whether floorf works according to ISO C 99 with IEC 60559.
16141         * m4/floorf-ieee.m4: New file.
16142         * modules/floorf-ieee-tests: New file.
16143         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16144         * tests/test-floorf1.c (main): Remove signbit tests.
16145         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16146         * doc/posix-functions/floorf.texi: Mention the new module.
16147
16148 2010-12-21  Bruno Haible  <bruno@clisp.org>
16149
16150         Support for minus zero in autoconf macros.
16151         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16152         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16153         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16154         * tests/minus-zero.h: Update comments.
16155
16156 2010-12-21  Bruno Haible  <bruno@clisp.org>
16157
16158         Tests for module 'ceil'.
16159         * modules/ceil-tests: New file.
16160         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16161         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16162
16163 2010-12-21  Bruno Haible  <bruno@clisp.org>
16164
16165         Tests for module 'floor'.
16166         * modules/floor-tests: New file.
16167         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16168         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16169
16170 2010-12-21  Bruno Haible  <bruno@clisp.org>
16171
16172         math: Fix indentation.
16173         * lib/math.in.h (floorf): Fix indentation.
16174
16175 2010-12-21  Bruno Haible  <bruno@clisp.org>
16176
16177         Fix cross-compilation guesses on Solaris.
16178         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16179         not match "solaris2.10".
16180         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16181         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16182         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16183
16184 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16185
16186         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16187         This fixes a problem observed with the latest coreutils snapshot
16188         that caused a test to fail on Solaris 8.  src/csplit.c's call
16189         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16190         earlier, instead of returning the number of bytes that would have
16191         been generated; this causes csplit to incorrectly report memory
16192         exhaustion.
16193         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16194         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16195         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16196         comments to match.
16197         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16198         Fix typo in matching older versions of Solaris: "solaris2.10"
16199         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16200         only for guessing while cross-compiling.
16201         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16202
16203 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16204
16205         ftoastr: fix comment again
16206         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16208         Also, simplify example a bit by using flags = 0.
16209
16210 2010-12-20  Bruno Haible  <bruno@clisp.org>
16211
16212         round*, trunc*: Update documentation regarding glibc.
16213         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16214         * doc/posix-functions/round.texi: Likewise.
16215         * doc/posix-functions/roundl.texi: Likewise.
16216         * doc/posix-functions/truncf.texi: Likewise.
16217         * doc/posix-functions/trunc.texi: Likewise.
16218         * doc/posix-functions/truncl.texi: Likewise.
16219
16220 2010-12-20  Bruno Haible  <bruno@clisp.org>
16221
16222         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16223         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16224         * doc/posix-functions/round.texi: Likewise.
16225         * doc/posix-functions/roundl.texi: Likewise.
16226
16227 2010-12-20  Bruno Haible  <bruno@clisp.org>
16228
16229         ttyname_r: Add missing declaration on HP-UX 11.
16230         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16231         HAVE_TTYNAME_R.
16232         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16233         declared. Set HAVE_TTYNAME_R always.
16234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16235         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16236         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16237         HAVE_TTYNAME_R.
16238         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16239
16240 2010-12-20  Bruno Haible  <bruno@clisp.org>
16241
16242         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16243         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16244         * doc/posix-functions/getlogin_r.texi: Likewise.
16245         * tests/test-getlogin.c: Include <errno.h>.
16246         (main): Avoid test failure on HP-UX 11.11.
16247         * tests/test-getlogin_r.c (main): Likewise.
16248
16249 2010-12-20  Bruno Haible  <bruno@clisp.org>
16250
16251         getlogin_r: Add missing declaration on HP-UX 11.
16252         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16253         declared also when it exists as a function.
16254         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16255
16256 2010-12-20  Bruno Haible  <bruno@clisp.org>
16257
16258         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16259         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16260         through wcrtomb.
16261
16262 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16263
16264         ftoastr: fix comment
16265         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16267
16268 2010-12-19  Bruno Haible  <bruno@clisp.org>
16269
16270         isnan: Ensure it is a macro.
16271         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16272         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16273         Solaris.
16274
16275 2010-12-19  Bruno Haible  <bruno@clisp.org>
16276
16277         ldexpl test: Fix link error on OSF/1 5.1.
16278         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16279
16280 2010-12-19  Bruno Haible  <bruno@clisp.org>
16281
16282         wctype: Make it work in C++ mode on OSF/1 5.1.
16283         * lib/wctype.in.h (iswblank): Declare but not define here.
16284         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16285         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16286         * modules/wctype (Files): Add lib/iswblank.c.
16287
16288 2010-12-19  Bruno Haible  <bruno@clisp.org>
16289
16290         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16291         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16292         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16293
16294 2010-12-19  Bruno Haible  <bruno@clisp.org>
16295
16296         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16298         _POSIX_PII_SOCKET.
16299         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16300         * doc/posix-functions/recvfrom.texi: Likewise.
16301         * doc/posix-functions/send.texi: Likewise.
16302         * doc/posix-functions/sendto.texi: Likewise.
16303
16304 2010-12-19  Bruno Haible  <bruno@clisp.org>
16305
16306         tcgetsid: Add missing declaration on OSF/1 5.1.
16307         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16308         HAVE_TCGETSID.
16309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16310         Don't set HAVE_TCGETSID.
16311         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16312         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16313         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16314         HAVE_TCGETSID.
16315         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16316
16317 2010-12-19  Bruno Haible  <bruno@clisp.org>
16318
16319         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16320         * lib/stdio.in.h: During the include_next statement, let recursive
16321         includes of this file include only the system header file.
16322
16323 2010-12-19  Bruno Haible  <bruno@clisp.org>
16324
16325         iconv_open: Fix regression from 2010-12-04.
16326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16327         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16328
16329 2010-12-19  Bruno Haible  <bruno@clisp.org>
16330
16331         stdbool test: Avoid a gcc warning.
16332         * tests/test-stdbool.c (main): Fail if e1 is false.
16333         Reported by Jim Meyering.
16334
16335 2010-12-19  Jim Meyering  <meyering@redhat.com>
16336
16337         setenv: restore to working order
16338         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16339         mistakenly removed.
16340         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16341         HAVE_SETENV.
16342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16343         HAVE_SETENV.
16344
16345 2010-12-19  Bruno Haible  <bruno@clisp.org>
16346
16347         Document some different function declarations on OSF/1 5.1.
16348         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16349         * doc/posix-functions/inet_ntop.texi: Likewise.
16350         * doc/posix-functions/gethostname.texi: Likewise.
16351         * lib/unistd.in.h (gethostname): Update comment.
16352
16353 2010-12-19  Bruno Haible  <bruno@clisp.org>
16354
16355         doc: Mention vasprintf-posix module.
16356         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16357         the 'vasprintf-posix' module.
16358         * doc/glibc-functions/vasprintf.texi: Likewise.
16359
16360 2010-12-19  Bruno Haible  <bruno@clisp.org>
16361
16362         unsetenv: Add missing declaration on OSF/1 5.1.
16363         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16364         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16365         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16367         not HAVE_UNSETENV.
16368         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16369         HAVE_UNSETENV.
16370         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16371
16372 2010-12-19  Bruno Haible  <bruno@clisp.org>
16373
16374         setenv: Add missing declaration on OSF/1 5.1.
16375         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16376         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16377         declared. Don't set HAVE_SETENV.
16378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16379         not HAVE_SETENV.
16380         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16381         HAVE_SETENV.
16382         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16383
16384 2010-12-19  Bruno Haible  <bruno@clisp.org>
16385
16386         nl_langinfo tests: Avoid gcc warning.
16387         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16388
16389 2010-12-19  Bruno Haible  <bruno@clisp.org>
16390
16391         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16392         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16393         _GL_CXXALIAS_SYS.
16394
16395 2010-12-19  Bruno Haible  <bruno@clisp.org>
16396
16397         stdbool: Relax test.
16398         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16399         address to 'bool' work in static initializer, for compilers other than
16400         GCC.
16401
16402 2010-12-19  Bruno Haible  <bruno@clisp.org>
16403
16404         ftello: Add missing declaration on OSF/1 5.1.
16405         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16406         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16408         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16409         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16410
16411 2010-12-19  Bruno Haible  <bruno@clisp.org>
16412
16413         fseeko: Add missing declaration on OSF/1 5.1.
16414         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16417         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16418         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16419
16420 2010-12-19  Bruno Haible  <bruno@clisp.org>
16421
16422         fchdir: Add missing declaration on OSF/1 5.1.
16423         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16426         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16427         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16428
16429 2010-12-19  Bruno Haible  <bruno@clisp.org>
16430
16431         relocatable-prog-wrapper: Separate from relocatable-prog.
16432         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16433         uninstall-relocwrapper rule here.
16434         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16435         Reported by Ian Beckwith <ianb@erislabs.net>.
16436
16437 2010-12-19  Bruno Haible  <bruno@clisp.org>
16438
16439         unistr/u8-mbsnlen: Add missing dependency.
16440         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16441         Reported by Ian Beckwith <ianb@erislabs.net>.
16442
16443 2010-12-19  Bruno Haible  <bruno@clisp.org>
16444
16445         iconv: Make it possible again to use this module without 'iconv-h'.
16446         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16447         if it is not defined.
16448         Reported by Ian Beckwith <ianb@erislabs.net>.
16449
16450 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16451
16452         acl: port to Solaris 8 when copying from tmpfs to ufs
16453         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16454         error number.  Problem observed on Solaris 8 with latest
16455         coreutils, with "mv A B", where A is on a tmpfs file system and B
16456         is on a ufs file system.  This caused coreutils' mv/part-symlink
16457         test to fail.
16458
16459         tests: set fail=0 at start
16460         * tests/init.sh (setup_): Move fail=0 initialization here ...
16461         (mktempd_): ... from here, so that tests can rely on fail being
16462         set to 0 initially.  This fixes a problem in coreutils; see:
16463         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16464
16465 2010-12-18  Bruno Haible  <bruno@clisp.org>
16466
16467         memmem-simple: Stylistic changes.
16468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16469         Fix preprocessor directive indentation.
16470
16471 2010-12-15  Pádraig Brady <P@draigBrady.com>
16472
16473         memmem, memmem-simple: reorganize and expand empty needle check
16474         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16475         functional checks to memmem-simple so that one has a fully functional
16476         memmem by using just this module.
16477         Restrict the performance only check to the memmem module.
16478         Also expand the empty needle check to ensure the correct
16479         pointer is returned, not just a non NULL pointer.
16480         * doc/glibc-functions/memmem.texi: Rearrange the portability
16481         documentation to correlate with the rearranged checks.
16482         Clarify exactly how the memmem and memmem-simple modules
16483         relate to each other.
16484
16485 2010-12-15  Pádraig Brady <P@draigBrady.com>
16486             Bruno Haible  <bruno@clisp.org>
16487
16488         Improve cross-compilation guesses for uClibc.
16489         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16490         that uClibc does not have the glibc bug.
16491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16492         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16493
16494 2010-12-14  Eric Blake  <eblake@redhat.com>
16495
16496         configmake: provide fallbacks for oldest supported autotools
16497         * m4/configmake.m4: New file.
16498         * modules/configmake (Files): Ship it.
16499         (configure.ac): Use it to guarantee fallbacks.
16500
16501 2010-12-13  Pádraig Brady <P@draigBrady.com>
16502
16503         read-file: Improve handling of large files
16504         * lib/read-file.c (fread_file): Minimize realloc()s
16505         for regular files, and better manage sizes around SIZE_MAX.
16506
16507 2010-12-13  Eric Blake  <eblake@redhat.com>
16508
16509         cloexec, fcntl: relax license
16510         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16511         consent from all contributors.
16512         * modules/fcntl (License): Likewise.
16513
16514 2010-12-10  Bruno Haible  <bruno@clisp.org>
16515
16516         Tests for module 'pipe-posix'.
16517         * modules/pipe-posix-tests: New file.
16518         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16519
16520 2010-12-10  Bruno Haible  <bruno@clisp.org>
16521
16522         pipe-posix: Make it work in C++ mode.
16523         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16524         (pipe): Use common idiom, not a macro definition.
16525         * lib/pipe.c: New file.
16526         * m4/pipe.m4: New file.
16527         * modules/pipe-posix (Description): Enhance.
16528         (Files): Add lib/pipe.c, m4/pipe.m4.
16529         (configure.ac): Invoke gl_FUNC_PIPE.
16530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16531         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16532         * tests/test-unistd-c++.cc: Check the signature of pipe.
16533
16534 2010-12-10  Bruno Haible  <bruno@clisp.org>
16535
16536         Rename module 'pipe' to 'spawn-pipe'.
16537         * modules/spawn-pipe: New file, renamed from modules/pipe.
16538         (Files, configure.ac, Makefile.am): Update.
16539         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16540         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16541         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16542         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16543         "spawn-pipe.h" instead of "pipe.h".
16544         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16545         to gl_SPAWN_PIPE.
16546         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16547         (Files, Makefile.am): Update.
16548         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16549         Update.
16550         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16551         Include "spawn-pipe.h" instead of "pipe.h".
16552         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16553         * lib/javacomp.c: Likewise.
16554         * lib/javaversion.c: Likewise.
16555         * lib/pipe-filter-gi.c: Likewise.
16556         * lib/pipe-filter-ii.c: Likewise.
16557         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16558         * modules/javacomp (Depends-on): Likewise.
16559         * modules/javaversion (Depends-on): Likewise.
16560         * modules/pipe-filter-gi (Depends-on): Likewise.
16561         * modules/pipe-filter-ii (Depends-on): Likewise.
16562         * MODULES.html.sh (Executing programs): Update.
16563         * NEWS: Mention the change.
16564
16565 2010-12-10  Eric Blake  <eblake@redhat.com>
16566
16567         pipe-posix: new module
16568         * modules/pipe-posix: New file.
16569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16570         (gl_UNISTD_H): Check for declaration.
16571         * modules/unistd (Makefile.am): Substitute it.
16572         * lib/unistd.in.h (pipe): Provide it for mingw.
16573         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16574         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16575
16576 2010-12-07  Bruno Haible  <bruno@clisp.org>
16577
16578         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16579         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16580         u8_strcmp_gnu.
16581         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16582
16583 2010-12-06  Bruno Haible  <bruno@clisp.org>
16584
16585         Update internal documentation.
16586         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16587
16588 2010-12-04  Bruno Haible  <bruno@clisp.org>
16589
16590         Put more information about failed tests into the test return codes.
16591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16592         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16593         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16594         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16595         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16597         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16598         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16599         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16602         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16603         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16604         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16605         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16606         returns a bit mask.
16607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16608         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16609         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16610         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16611         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16615         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16616         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16617         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16618         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16621         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16622         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16623         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16624         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16625         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16627         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16628         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16630         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16631         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16632         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16633         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16634         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16635         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16636         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16637         gl_PRINTF_PRECISION): Likewise.
16638         * m4/regex.m4 (gl_REGEX): Likewise.
16639         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16640         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16641         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16642         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16646         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16647         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16648         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16649         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16651         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16652         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16653         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16655         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16656         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16658         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16659         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16660         enumerated value.
16661         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16662
16663 2010-12-04  Bruno Haible  <bruno@clisp.org>
16664
16665         Update for Solaris 11 2010-11.
16666         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16667         Express, released in November 2010.
16668
16669 2010-12-04  Bruno Haible  <bruno@clisp.org>
16670
16671         nproc: Relax license.
16672         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16673         and Paul Eggert.
16674         Requested by Ludovic Courtès <ludo@gnu.org>.
16675
16676 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16677
16678         utimecmp: fine-grained src to nearby coarse-grained dest
16679
16680         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16681         and the source is on a file system with higher-resolution time
16682         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16683         not work, and the time stamps are close together, the algorithm to
16684         determine the exact resolution from the read-back mtime was buggy:
16685         it had a "!=" where it should have had an "==".  This bug has been
16686         in the code ever since it was introduced to gnulib.
16687         Problem reported by Dan Jacobson in
16688         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16689
16690 2010-11-30  Bruno Haible  <bruno@clisp.org>
16691
16692         strerror_r-posix: Fix autoconf test.
16693         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16694
16695 2010-11-28  Bruno Haible  <bruno@clisp.org>
16696             Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         Tests for module 'getdomainname'.
16699         * modules/getdomainname-tests: New file.
16700         * tests/test-getdomainname.c: New file, based on
16701         tests/test-gethostname.c.
16702
16703 2010-11-28  Bruno Haible  <bruno@clisp.org>
16704             Paul Eggert  <eggert@cs.ucla.edu>
16705
16706         getdomainname: Use the system function when possible.
16707         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16708         (getdomainname): Replace if needed. Provide the declaration if it is
16709         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16710         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16711         (getdomainname): When the system has getdomainname, call the system
16712         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16713         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16714         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16715         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16716         the function if its second argument is of type 'int' or if it is found
16717         in libnsl.
16718         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16719         <sys/systeminfo.h> and sysinfo().
16720         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16722         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16723         HAVE_GETDOMAINNAME.
16724         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16725         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16726         * doc/glibc-functions/getdomainname.texi: Document the problems with
16727         the getdomainname declaration.
16728
16729 2010-11-28  Bruno Haible  <bruno@clisp.org>
16730
16731         sys_socket: Ensure ss_family field on AIX.
16732         * lib/sys_socket.in.h (ss_family): New macro definition.
16733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16734         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16735         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16736         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16737         * modules/sys_socket (Makefile.am): Substitute
16738         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16739         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16740
16741 2010-11-27  Bruno Haible  <bruno@clisp.org>
16742
16743         readline: Improve configure output.
16744         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16745         "checking for readline..." result understandable.
16746
16747 2010-11-27  Bruno Haible  <bruno@clisp.org>
16748
16749         *printf-posix: Detect a bug on Solaris 10/x86.
16750         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16751         for floating-point output.
16752         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16753         directive.
16754         * tests/test-snprintf-posix.h (test_function): Likewise.
16755         * tests/test-sprintf-posix.h (test_function): Likewise.
16756         * tests/test-vasprintf-posix.c (test_function): Likewise.
16757         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16758         * doc/posix-functions/printf.texi: Likewise.
16759         * doc/posix-functions/snprintf.texi: Likewise.
16760         * doc/posix-functions/sprintf.texi: Likewise.
16761         * doc/posix-functions/vfprintf.texi: Likewise.
16762         * doc/posix-functions/vprintf.texi: Likewise.
16763         * doc/posix-functions/vsnprintf.texi: Likewise.
16764         * doc/posix-functions/vsprintf.texi: Likewise.
16765         * doc/glibc-functions/obstack_printf.texi: Likewise.
16766         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16767
16768 2010-11-27  Bruno Haible  <bruno@clisp.org>
16769
16770         Fix link error when module libunistring-optional is in use.
16771         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16772         * modules/striconveha-tests (Makefile.am): Likewise.
16773
16774 2010-11-27  Bruno Haible  <bruno@clisp.org>
16775
16776         regex: Mention link dependencies.
16777         * modules/regex (Link): New section.
16778         * modules/rpmatch (Link): Likewise.
16779         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16780
16781 2010-11-27  Bruno Haible  <bruno@clisp.org>
16782
16783         ftoastr: Fix compilation error on Solaris.
16784         * lib/ftoastr.c: Include <config.h>.
16785
16786 2010-11-27  Bruno Haible  <bruno@clisp.org>
16787
16788         getloadavg: Update documentation.
16789         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16790
16791 2010-11-27  Bruno Haible  <bruno@clisp.org>
16792
16793         sys_socket: Fix test whether the functions are declared.
16794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16795         not <sys/select.h>.
16796
16797 2010-11-27  Bruno Haible  <bruno@clisp.org>
16798
16799         getpass: Make sure to get system declaration on some platforms.
16800         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16801         gl_USE_SYSTEM_EXTENSIONS.
16802         * modules/getpass (Depends-on): Add extensions.
16803
16804 2010-11-26  Bruno Haible  <bruno@clisp.org>
16805
16806         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16807         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16808         'iconv' module is present.
16809         (ICONV_CONST): New macro.
16810         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16811         ICONV_CONST.
16812         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16813         set ICONV_CONST.
16814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16815         here.
16816         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16817         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16818         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16819         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16820         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16821         present.
16822
16823 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16824
16825         ftoastr: comment fix
16826         * lib/ftoastr.c: "little" -> "little or no" in comment
16827
16828 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16829
16830         stdint: port to GCC 4.3 + OSX + Octave
16831         On this platform, stdint.h is buggy and defines int64_t to long
16832         long int.  The replacement defined it to long int, causing
16833         problems with C++ style name mangling.  Instead, trust the system
16834         definition if INT64_MAX is defined, and likewise for the unsigned
16835         variant.   Problem reported by Jarno Rajahalme in
16836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16837         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16838         and don't mess with int64_t and INT64_MAX in this case.
16839         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16840
16841 2010-11-24  Bruno Haible  <bruno@clisp.org>
16842
16843         doc: Corrections regarding MacOS X 10.4 and 10.5.
16844         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16845         MacOS X.
16846         Reported by Simon Josefsson.
16847
16848 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16849
16850         Uninstall ".bin" files installed by relocwrapper.
16851         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16852         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16853         unless it is already there.
16854
16855 2010-11-21  Bruno Haible  <bruno@clisp.org>
16856
16857         Update for NetBSD 5.0.
16858         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16859         NetBSD; the test fails on NetBSD 5.0.
16860         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16861         about NetBSD.
16862
16863 2010-11-21  Bruno Haible  <bruno@clisp.org>
16864
16865         Update for HP-UX 11.23 and HP-UX 11.31.
16866         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16867         HP-UX.
16868
16869 2010-11-21  Bruno Haible  <bruno@clisp.org>
16870
16871         Update for MacOS X 10.5.
16872         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16873         MacOS X; the test fails on MacOS X 10.5.8.
16874         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16875         about MacOS X.
16876
16877 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16878
16879         bootstrap: add bootstrap_sync option.
16880         See discussion at
16881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16883         * build-aux/bootstrap: Accept --bootstrap-sync to update
16884         bootstrap if it is not identical to the local gnulib's
16885         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16886         enable this by default.  Accept --no-bootstrap-sync to disable
16887         it.
16888
16889 2010-11-20  Bruno Haible  <bruno@clisp.org>
16890
16891         Ensure that <features.h> is included before __GLIBC__ is tested.
16892         * lib/printf-parse.h: Include <features.h>.
16893         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16894         Reported by Mike Frysinger <vapier@gentoo.org>.
16895
16896         Ensure that <features.h> is included before __GLIBC__ is tested.
16897         * lib/wchar.in.h: Include <features.h>.
16898         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16899         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16900         Reported by Mike Frysinger <vapier@gentoo.org>.
16901
16902         Ensure that <features.h> is included before __GLIBC__ is tested.
16903         * lib/arpa_inet.in.h: Include <features.h>.
16904         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16905         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16906         Reported by Mike Frysinger <vapier@gentoo.org>.
16907
16908         Ensure that <features.h> is included before __GLIBC__ is tested.
16909         * build-aux/link-warning.h: Include <features.h>.
16910         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16911         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16912         Reported by Mike Frysinger <vapier@gentoo.org>.
16913
16914         Ensure that <features.h> is included before __GLIBC__ is tested.
16915         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16916         Reported by Mike Frysinger <vapier@gentoo.org>.
16917
16918 2010-11-20  Bruno Haible  <bruno@clisp.org>
16919
16920         memmem: Fix autoconf test.
16921         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16922
16923 2010-11-20  Bruno Haible  <bruno@clisp.org>
16924
16925         Port to uClibc.
16926         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16927         * lib/fcntl.in.h: Likewise.
16928         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16929         * lib/mbrtowc.c (mbrtowc): Likewise.
16930         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16931         * lib/strerror_r.c: Likewise.
16932         * lib/unistr/u8-strnlen.c: Likewise.
16933         * lib/vasnprintf.c (decimal_point_char): Likewise.
16934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16935         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16937         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16938         * tests/test-sigaction.c (handler, main): Likewise.
16939         * lib/freading.h: Treat uClibc like a non-glibc platform.
16940         * lib/freading.c: Likewise.
16941         * lib/gettext.h: Likewise.
16942         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16943         Likewise.
16944         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16945         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16946         * lib/propername.c (proper_name_utf8): Likewise.
16947         * lib/spawn.in.h: Likewise.
16948         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16949         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16950         mem_cd_iconveh_internal): Likewise.
16951         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16952         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16953         strstr, strcasestr): Likewise.
16954         * lib/unicodeio.c (unicode_to_mb): Likewise.
16955         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16956         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16957         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16958         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16959         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16960         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16961         * lib/unistr/u8-stpncpy.c: Likewise.
16962         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16963         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16964         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16965         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16966         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16967         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16968         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16970         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16971         Likewise.
16972         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16973         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16977         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16978         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16979         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16980         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16981         * tests/test-striconveha.c (main): Likewise.
16982         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16983         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16984         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16985         * doc/posix-functions/getline.texi: Likewise.
16986         Reported by Mike Frysinger <vapier@gentoo.org>.
16987
16988 2010-11-20  Bruno Haible  <bruno@clisp.org>
16989
16990         nproc: Fix condition.
16991         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16992         HAVE_PTHREAD_AFFINITY_NP.
16993
16994 2010-11-20  Bruno Haible  <bruno@clisp.org>
16995
16996         Fix a comment.
16997         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16998
16999 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17000
17001         ftoastr: don't assume snprintf
17002         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17003         Implement a subset of snprintf here, by using sprintf safely.
17004         * modules/ftoastr (Depends-on): Remove snprintf.
17005
17006 2010-11-19  Jim Meyering  <meyering@redhat.com>
17007
17008         test-rename.h: fix compilation failure
17009         * tests/test-rename.h (test_rename): Add omitted "}".
17010
17011 2010-11-17  Jim Meyering  <meyering@redhat.com>
17012
17013         maint.mk: add a URL discussing the no-@acronym policy
17014         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17015
17016 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17017
17018         ftoastr: depend on snprintf, improve comments
17019         * lib/ftoastr.c: Also mention Loitsch's draft.
17020         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17021         needed in the current implementation, but it might simplify
17022         speeding up the code later.
17023         * modules/ftoastr: Depend on snprintf; this improves portability.
17024         Suggested by Bruno Haible in the same email.
17025
17026         ftoastr: port to hosts lacking strtof and strtold
17027         Problem reported by Bruno Haible in
17028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17029         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17030         environment and strtold (and presumably strtof) are not available.
17031         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17032         (configure.ac): Require gl_C99_STRTOLD.
17033
17034 2010-11-18  Bruno Haible  <bruno@clisp.org>
17035
17036         c-strtold: Avoid link error on AIX 7.
17037         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17038         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17039         (gl_C_STRTOLD): Test whether strtold_l exists.
17040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17041
17042 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17043
17044         intprops: new macro INT_BITS_STRLEN_BOUND
17045         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17046         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17047         not exposed.  Also, it uses a slightly tighter bound than before;
17048         though this makes no practical difference, we might as well be as
17049         tight as we easily can.
17050
17051         ftoastr: new module, for lossless conversion of floats to short strings
17052         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17053         * modules/ftoastr: New files.
17054
17055 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17056
17057         bootstrap: port to Solaris sed
17058         * build-aux/bootstrap (get_version): Port to Solaris sed.
17059         See Ralf Wildenhues's note in
17060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17061
17062 2010-11-14  Jim Meyering  <meyering@redhat.com>
17063
17064         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17065         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17066         and move definition closer to sole use.
17067
17068 2010-11-13  Jim Meyering  <meyering@redhat.com>
17069
17070         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17071         Now we require at least autoconf-2.59, which means the work-around
17072         is no longer needed.
17073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17074         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17075         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17076         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17077         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17078
17079 2010-11-13  Bruno Haible  <bruno@clisp.org>
17080
17081         rename, renameat: Avoid test failures at NFS mounted locations.
17082         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17083         functions.
17084         (test_rename): Use assert_nonexistent.
17085         * tests/test-rename.c: Include <dirent.h>.
17086         * tests/test-renameat.c: Likewise.
17087         Reported by Gary V. Vaughan <gary@gnu.org>.
17088
17089         rename, renameat: Document Linux bug with NFS
17090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17091         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17092         * doc/posix-functions/renameat.texi: Likewise.
17093         Suggested by Eric Blake.
17094
17095 2010-11-13  Bruno Haible  <bruno@clisp.org>
17096
17097         rename test: Add comments.
17098         * tests/test-rename.h (test_rename): Add structure and comments.
17099
17100 2010-11-13  Eric Blake  <eblake@redhat.com>
17101
17102         maintainer-makefile: cover a few more files
17103         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17104         scripts generated within C files, for libvirt.
17105
17106 2010-11-13  Bruno Haible  <bruno@clisp.org>
17107
17108         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17109         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17110         character, return the number of bytes that belong together, not always
17111         1.
17112         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17113         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17114         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17115         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17116         number of bytes of an invalid character.
17117         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17118         (main): Invoke it.
17119         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17120         results.
17121         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17122         malformed byte sequences.
17123         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17124         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17125         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17126         Reported by Ben Pfaff and Paolo Bonzini.
17127
17128 2010-11-13  Bruno Haible  <bruno@clisp.org>
17129
17130         openat: Work around glibc bug with fchownat() and empty file names.
17131         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17132         (gl_FUNC_FCHOWNAT): Invoke it.
17133         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17134         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17135         Reported by Gary V. Vaughan <gary@gnu.org>.
17136
17137 2010-11-13  Bruno Haible  <bruno@clisp.org>
17138
17139         openat: Ensure autoconf macro ordering.
17140         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17141         gl_USE_SYSTEM_EXTENSIONS.
17142         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17143
17144 2010-11-13  Bruno Haible  <bruno@clisp.org>
17145
17146         Update comments.
17147         * lib/unistr/u8-check.c: Update file name in comments.
17148         * lib/unistr/u8-mblen.c: Likewise.
17149         * lib/unistr/u8-prev.c: Likewise.
17150         * lib/unistr/u8-strmblen.c: Likewise.
17151         * lib/unistr/u8-strmbtouc.c: Likewise.
17152
17153 2010-11-13  Jim Meyering  <meyering@redhat.com>
17154
17155         tests: avoid test failure on Solaris 10 due to lack of PATH export
17156         * tests/test-update-copyright.sh: Don't forget to export PATH.
17157
17158         init.sh: ensure that IFS is defined, just in case...
17159         * tests/init.sh (setup_): Ensure that IFS is defined,
17160         so that saving and restoring it works as expected.  This
17161         appears to be useful at least for an old version of dash
17162         from a long time ago (RH 6).  See here for details:
17163         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17164
17165         maint.mk: tighten "test a == b" check
17166         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17167         test to files that contain something like #!/bin/sh.
17168         Without this, coreutils would get two false positives in
17169         the comments of C source files.
17170
17171 2010-11-12  Eric Blake  <eblake@redhat.com>
17172
17173         bootstrap: fix typo in previous attempt
17174         * build-aux/bootstrap (buildreq): Correct the grouping.
17175         Reported by Paul Eggert.
17176
17177         maintainer-makefile: prohibit test x == x
17178         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17179         Based on a report by Matthias Bolte.
17180
17181         bootstrap: allow FreeBSD gzip
17182         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17183         which has no '.' and goes to stderr.
17184         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17185         Reported by Matthias Bolte.
17186
17187         maintainer-makefile: check for i18n setup
17188         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17189         will likely work.
17190
17191 2010-11-12  Bruno Haible  <bruno@clisp.org>
17192
17193         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17194         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17195         * lib/nanosleep.c (nanosleep): Likewise.
17196
17197 2010-11-11  Bruno Haible  <bruno@clisp.org>
17198
17199         fcntl-h: Fix for use of C++ on glibc systems.
17200         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17201         also on glibc systems in C++ mode.
17202         Reported by Gary V. Vaughan <gary@gnu.org>.
17203
17204 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17205
17206         mknod: avoid false failure with dash
17207         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17208
17209 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17210
17211         unlink: Fix "is it should" typo in diagnostic.
17212         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17214
17215 2010-11-11  Bruno Haible  <bruno@clisp.org>
17216
17217         Tests for module 'strerror_r-posix'.
17218         * modules/strerror_r-posix-tests: New file.
17219         * tests/test-strerror_r.c: New file.
17220         * tests/test-string-c++.cc: Check the signature of strerror_r.
17221
17222         New module 'strerror_r-posix'.
17223         * lib/string.in.h (strerror_r): New declaration.
17224         * lib/strerror_r.c: New file.
17225         * m4/strerror_r.m4: New file.
17226         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17227         of strerror_r.
17228         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17229         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17230         * modules/strerror_r-posix: New file.
17231         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17232         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17233         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17234         portability problems.
17235
17236 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17237
17238         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17239         line is also considered for output. Quoted function name in shell
17240         command, so temporary files for functions like MyClass::operator()
17241         are removed correctly without errors.
17242
17243 2010-11-09  Bruno Haible  <bruno@clisp.org>
17244
17245         * doc/posix-functions/strerror.texi: List more failing platforms.
17246
17247         * doc/posix-functions/strerror.texi: Add a comment.
17248
17249 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17250
17251         fdopendir: fix bug on MacOS X when low on file descriptors
17252
17253         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17254         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17255         All callers changed.
17256         (fdopendir): Invoke save_cwd at the top level, not after using
17257         multiple dup() calls to use up file descriptors.  Then retry
17258         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17259         less than the maximum number of open file descriptors, because
17260         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17261         on Mac OS X 10.6.4 for tar 1.24
17262         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17263         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17264         and for tar 1.25
17265         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17266
17267 2010-11-07  Bruno Haible  <bruno@clisp.org>
17268
17269         vasnprintf: Support I flag on glibc systems.
17270         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17271         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17272         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17273         snprintf function.
17274         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17275         glibc systems.
17276         * tests/test-vasnprintf-posix3.c: New file.
17277         * modules/vasnprintf-posix-tests (Files): Add it.
17278         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17279
17280 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17281
17282         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17283         * MODULES.html.sh: For compiler warnings, use name
17284         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17285
17286 2010-11-05  Eric Blake  <eblake@redhat.com>
17287
17288         ceil, floor: avoid spurious failure with icc
17289         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17290         [denormals-as-zero] when optimizing without -mieee-fp option.
17291         * tests/test-floorf2.c (floorf_reference): Likewise.
17292         * tests/test-ceilf1.c (dummy): New function.
17293         (main): Use it to outsmart icc's optimization.
17294         * tests/test-floorf1.c (dummy, main): Likewise.
17295
17296         tests: require working signbit
17297         * modules/ceilf-tests (Depends-on): Add signbit.
17298         * modules/ceill-tests (Depends-on): Likewise.
17299         * modules/floorf-tests (Depends-on): Likewise.
17300         * modules/floorl-tests (Depends-on): Likewise.
17301         * modules/round-tests (Depends-on): Likewise.
17302         * modules/roundf-tests (Depends-on): Likewise.
17303         * modules/roundl-tests (Depends-on): Likewise.
17304         * modules/trunc-tests (Depends-on): Likewise.
17305         * modules/truncf-tests (Depends-on): Likewise.
17306         * modules/truncl-tests (Depends-on): Likewise.
17307
17308         strtod: work around icc bug
17309         * lib/strtod.c (minus_zero): Define to working value.
17310         (strtod): Use it to avoid icc bug.
17311
17312         copysign: enhance tests
17313         * modules/copysign-tests (Files): Add minus-zero.h.
17314         * tests/test-copysign.c (main): Also test zeros.
17315
17316 2010-11-04  Eric Blake  <eblake@redhat.com>
17317
17318         ceil, floor, round, trunc: enhance tests of -0
17319         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17320         * tests/test-ceill.c (main): Likewise.
17321         * tests/test-floorf1.c (main): Likewise.
17322         * tests/test-floorl.c (main): Likewise.
17323         * tests/test-round1.c (main): Likewise.
17324         * tests/test-roundf1.c (main): Likewise.
17325         * tests/test-roundl.c (main): Likewise.
17326         * tests/test-trunc1.c (main): Likewise.
17327         * tests/test-truncf1.c (main): Likewise.
17328         * tests/test-truncl.c (main): Likewise.
17329
17330 2010-11-04  Eric Blake  <eblake@redhat.com>
17331
17332         frexp, tests: work around ICC bug with -zero
17333         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17334         works with more compilers.
17335         * tests/minus-zero.h: New file.
17336         * modules/ceilf-tests (Files): Include it.
17337         * modules/ceill-tests (Files): Likewise.
17338         * modules/floorf-tests (Files): Likewise.
17339         * modules/floorl-tests (Files): Likewise.
17340         * modules/frexp-nolibm-tests (Files): Likewise.
17341         * modules/frexp-tests (Files): Likewise.
17342         * modules/frexpl-nolibm-tests (Files): Likewise.
17343         * modules/frexpl-tests (Files): Likewise.
17344         * modules/isnan-tests (Files): Likewise.
17345         * modules/isnand-nolibm-tests (Files): Likewise.
17346         * modules/isnand-tests (Files): Likewise.
17347         * modules/isnanf-nolibm-tests (Files): Likewise.
17348         * modules/isnanf-tests (Files): Likewise.
17349         * modules/isnanl-nolibm-tests (Files): Likewise.
17350         * modules/isnanl-tests (Files): Likewise.
17351         * modules/round-tests (Files): Likewise.
17352         * modules/roundf-tests (Files): Likewise.
17353         * modules/roundl-tests (Files): Likewise.
17354         * modules/ldexpl-tests (Files): Likewise.
17355         * modules/signbit-tests (Files): Likewise.
17356         * modules/snprintf-posix-tests (Files): Likewise.
17357         * modules/sprintf-posix-tests (Files): Likewise.
17358         * modules/strtod-tests (Files): Likewise.
17359         * modules/trunc-tests (Files): Likewise.
17360         * modules/truncf-tests (Files): Likewise.
17361         * modules/truncl-tests (Files): Likewise.
17362         * modules/vsnprintf-posix-tests (Files): Likewise.
17363         * modules/vsprintf-posix-tests (Files): Likewise.
17364         * modules/vasnprintf-posix-tests (Files): Likewise.
17365         * modules/vasprintf-posix-tests (Files): Likewise.
17366         * tests/test-ceilf1.c (main): Use it.
17367         * tests/test-ceill.c (main): Likewise.
17368         * tests/test-floorf1.c (main): Likewise.
17369         * tests/test-floorl.c (main): Likewise.
17370         * tests/test-frexp.c (main): Likewise.
17371         * tests/test-frexpl.c (main): Likewise.
17372         * tests/test-isnan.c (main): Likewise.
17373         * tests/test-isnand.h (main): Likewise.
17374         * tests/test-isnanf.h (main): Likewise.
17375         * tests/test-isnanl.h (main): Likewise.
17376         * tests/test-ldexpl.c (main): Likewise.
17377         * tests/test-round.c (main): Likewise.
17378         * tests/test-roundf.c (main): Likewise.
17379         * tests/test-roundl.c (main): Likewise.
17380         * tests/test-signbit.c (test_signbitf, test_signbitd)
17381         (test_signbitl): Likewise.
17382         * tests/test-snprintf-posix.h (test_function): Likewise.
17383         * tests/test-sprintf-posix.h (test_function): Likewise.
17384         * tests/test-strtod.c (main): Likewise.
17385         * tests/test-trunc1.c (main): Likewise.
17386         * tests/test-truncf1.c (main): Likewise.
17387         * tests/test-truncl.c (main): Likewise.
17388
17389         isnanl: work around icc bug
17390         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17391
17392 2010-11-03  Eric Blake  <eblake@redhat.com>
17393
17394         tests: fix compiler warnings
17395         * tests/test-getopt.h (test_getopt): Fix condition.
17396         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17397         * tests/test-pipe2.c (main): Likewise.
17398         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17399
17400         utimens: fix broken m4 test
17401         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17402
17403 2010-10-28  Bruno Haible  <bruno@clisp.org>
17404
17405         posix_spawn*, getdtablesize: Relax license.
17406         * modules/posix_spawn (License): Change to LGPLv2+.
17407         * modules/posix_spawnp (License): Likewise.
17408         * modules/posix_spawn-internal (License): Likewise.
17409         * modules/posix_spawnattr_init (License): Likewise.
17410         * modules/posix_spawnattr_getflags (License): Likewise.
17411         * modules/posix_spawnattr_setflags (License): Likewise.
17412         * modules/posix_spawnattr_getpgroup (License): Likewise.
17413         * modules/posix_spawnattr_setpgroup (License): Likewise.
17414         * modules/posix_spawnattr_getschedparam (License): Likewise.
17415         * modules/posix_spawnattr_setschedparam (License): Likewise.
17416         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17417         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17418         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17419         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17420         * modules/posix_spawnattr_getsigmask (License): Likewise.
17421         * modules/posix_spawnattr_setsigmask (License): Likewise.
17422         * modules/posix_spawnattr_destroy (License): Likewise.
17423         * modules/posix_spawn_file_actions_init (License): Likewise.
17424         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17425         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17426         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17427         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17428         * modules/getdtablesize (License): Likewise.
17429         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17430
17431 2010-10-26  Bruno Haible  <bruno@clisp.org>
17432
17433         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17434         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17435         Cygwin and mingw.
17436         Suggested by Eric Blake.
17437
17438 2010-10-26  Bruno Haible  <bruno@clisp.org>
17439
17440         stdio: Work around compilation error due to renameat() on Solaris 10.
17441         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17442         * lib/renameat.c: Don't include <unistd.h> here.
17443         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17444         Reported by Paul Eggert and Eric Blake.
17445
17446 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17447
17448         renameat: port to Solaris 10, which declares renameat in unistd.h
17449
17450         * lib/renameat.c: Include unistd.h before stdio.h, because
17451         Solaris 10 declares renameat in unistd.h.  Problem encountered
17452         when building GNU tar 1.24 on Solaris 10.
17453
17454 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17455
17456         fdopendir: fix C89 compilation
17457         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17458         compilers.
17459
17460 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17461
17462         inttostr: simplify by removing unnecessary redundancy
17463         * lib/anytostr.c: Don't include verify.h.
17464         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17465         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17466         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17467         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17468         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17469         Likewise.
17470         * modules/inttostr (Depends-on): Remove 'verify'.
17471
17472 2010-10-23  Bruno Haible  <bruno@clisp.org>
17473
17474         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17475         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17476         Reported by Eric Blake.
17477
17478 2010-10-23  Bruno Haible  <bruno@clisp.org>
17479
17480         Tests: Fix LOCALE_JA on MirBSD 10.
17481         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17482         to an UTF-8 locale.
17483         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17485         Reported by Eric Blake.
17486
17487 2010-10-21  Bruno Haible  <bruno@clisp.org>
17488
17489         nl_langinfo test: Avoid test failure on NetBSD 5.
17490         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17491         Reported by Eric Blake.
17492
17493 2010-10-21  Eric Blake  <eblake@redhat.com>
17494
17495         c-stack: work around libsigsegv 2.8 bug
17496         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17497         overflow on at least PowerPC64.
17498
17499 2010-10-17  Bruno Haible  <bruno@clisp.org>
17500
17501         userspec: Drop redundant file.
17502         * modules/userspec (Files): Remove lib/inttostr.h.
17503
17504 2010-10-17  Bruno Haible  <bruno@clisp.org>
17505
17506         nl_langinfo tests: Silence some warnings.
17507         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17508         Reported by Jim Meyering.
17509
17510 2010-10-17  Bruno Haible  <bruno@clisp.org>
17511
17512         Make use of GCC's attribute __alloc_size__.
17513         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17514         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17515         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17516         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17517         __alloc_size__.
17518         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17519         Suggested by Jim Meyering.
17520
17521 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17522
17523         bootstrap: anchor .gitignore entries.
17524         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17525         with...
17526         (insert_vc_ignore): ... this new function, which prepends `/' to
17527         all .gitignore entries before passing them to
17528         insert_sorted_if_absent.
17529
17530 2010-10-16  Bruno Haible  <bruno@clisp.org>
17531
17532         nextafter: Fix configure check.
17533         * modules/nextafter (configure.ac): Correct expected prototype.
17534
17535 2010-10-16  Bruno Haible  <bruno@clisp.org>
17536
17537         termios: Update documentation.
17538         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17539
17540 2010-10-16  Bruno Haible  <bruno@clisp.org>
17541
17542         tests: Make them compile with TinyCC.
17543         * tests/test-strstr.c (main): Remove parentheses around array
17544         initializer.
17545
17546 2010-10-15  Eric Blake  <eblake@redhat.com>
17547
17548         ignore-value: make header idempotent
17549         * lib/ignore-value.h: Add double-inclusion guards.
17550         Reported by Stefan Berger.
17551
17552 2010-10-15  Jim Meyering  <meyering@redhat.com>
17553
17554         GNUmakefile: handle "stable" target, not "major"
17555         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17556         lists in maint.mk and announce-gen.  Without this, "make stable"
17557         would fail to ensure that $(VERSION) is up to date.
17558
17559 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17560
17561         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17562         & co.
17563
17564 2010-10-14  Bruno Haible  <bruno@clisp.org>
17565
17566         vasnprintf: Don't set errno to 0.
17567         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17568         block that sets it to 0.
17569         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17570
17571 2010-10-14  Bruno Haible  <bruno@clisp.org>
17572
17573         socketlib: Fix.
17574         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17575         gl_PREREQ_SYS_H_WINSOCK2.
17576         Reported by Ian Beckwith <ianb@erislabs.net>.
17577
17578 2010-10-13  Jim Meyering  <meyering@redhat.com>
17579
17580         test-select-stdin.c: avoid warn_unused_result warnings
17581         * tests/test-select-stdin.c: Include "macros.h".
17582         ASSERT that read and fflush succeed.
17583
17584 2010-10-13  Jim Meyering  <meyering@redhat.com>
17585
17586         git-version-gen: do require git-VC'd files in cwd
17587         * build-aux/git-version-gen: Reject a git version string
17588         if there are no commits associated with the current directory.
17589         This avoids an unlikely false-positive (unrelated dir whose parent
17590         repository also contains a tag matching v*), as pointed out
17591         by Giuseppe Scrivano in
17592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17593
17594 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17595
17596         argv-iter: omit nonconforming declaration
17597         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17598         enum arg_iter_err declaration, which doesn't conform to C99.
17599         Solaris 10 cc warns about this.
17600
17601 2010-10-13  Eric Blake  <eblake@redhat.com>
17602
17603         termios: fix compilation on mingw
17604         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17605         (gl_TERMIOS_H): Adjust it on mingw.
17606         * modules/termios (Makefile.am): Substitute new key.
17607         * lib/termios.in.h (includes): Make include_next conditional.
17608         * doc/posix-headers/termios.texi (termios.h): Update
17609         documentation.
17610         Reported by Daniel P. Berrange.
17611
17612 2010-10-13  Jim Meyering  <meyering@redhat.com>
17613
17614         git-version-gen: don't require that .git/ be in the current dir
17615         * build-aux/git-version-gen: Adjust this script so that it works
17616         when run from any working directory beneath the top-level .git/-
17617         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17618         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17619
17620         test-select: avoid warn_unused_result warnings
17621         * tests/test-select.c: Include "macros.h".
17622         ASSERT that each call to read, write, and pipe succeeds.
17623         While not technically required, also check each "close".
17624         * modules/select-tests (Files): Add tests/macros.h.
17625
17626         test-symlinkat: remove declaration of unused local
17627         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17628
17629         test-inttostr: avoid shadowing warnings
17630         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17631         and use malloc rather than the stack for the same reason as
17632         mentioned in the comment justifying the other allocation.
17633
17634 2010-10-11  Bruno Haible  <bruno@clisp.org>
17635
17636         stdlib: Allow multiple gnulib generated replacements to coexist.
17637         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17638         Reported by Sam Steingold <sds@gnu.org>.
17639
17640 2010-10-11  Jim Meyering  <meyering@redhat.com>
17641
17642         fix a documentation typo
17643         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17644
17645 2010-10-11  Eric Blake  <eblake@redhat.com>
17646
17647         futimens: work around Solaris 11 bug
17648         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17649         * tests/test-futimens.h (test_futimens): Enhance, rather than
17650         weaken test.
17651         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17652
17653 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17654
17655         Indentation.
17656         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17657         higher-level operators more to the left.
17658
17659 2010-10-11  Jim Meyering  <meyering@redhat.com>
17660
17661         test-futimens: avoid unwarranted test failure on Solaris 5.11
17662         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17663         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17664         because it tries to dereference the NULL name argument.
17665
17666 2010-10-11  Bruno Haible  <bruno@clisp.org>
17667
17668         Indentation.
17669         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17670         indentation.
17671
17672 2010-10-11  Jim Meyering  <meyering@redhat.com>
17673
17674         spawn.in.h: make indentation consistent with parentheses
17675         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17676         Make indentation consistent with parentheses.
17677
17678 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17679
17680         Fix mismatched parens in previous commit
17681         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17682         parens.
17683
17684 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17687
17688         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17689         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17690         * lib/malloca.c: Include "verify.h".
17691         (verify1): Remove, replacing with a verify call.
17692         * lib/relocwrapper.c (verify1): Likewise.
17693         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17694         Likewise.
17695         * modules/malloca (Depends-on): Add 'verify'.
17696         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17697         * modules/vasnprintf (Depends-on): Add 'verify'.
17698         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17699         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17700         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17701         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17702         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17703         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17704         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17705
17706         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17707
17708         Formerly the style was sometimes 2*X - 1, because the C standard
17709         was wrongly thought to disallow ?: in integral constant expressions.
17710         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17711         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17712         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17713         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17714         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17715         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17716         verify that time_t cannot be floating.
17717
17718 2010-10-08  Eric Blake  <eblake@redhat.com>
17719
17720         time: enforce recent POSIX ruling that time_t is integral
17721         * lib/time.in.h (__time_t_must_be_integral): Detect any
17722         problematic systems, allowing the rest of gnulib to assume POSIX.
17723
17724 2010-10-08  Jim Meyering  <meyering@redhat.com>
17725
17726         fdopendir: fix a bug on systems lacking openat and /proc support
17727         OpenBSD 4.7 is one such system.  The most noticeable effect was
17728         failure of any application making nontrivial use of fts: rm, du,
17729         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17730           ./rm: traversal failed: `a': Bad file descriptor
17731         Debugging that, you see that even though FD 6 was closed just
17732         prior to the opendir call in fd_clone_opendir, its resulting
17733         dir->dd_fd was 8, rather than the expected value of 6:
17734
17735         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17736         93                close (fd);
17737         (gdb) n
17738         94                dir = fd_clone_opendir (dupfd);
17739         (gdb) n
17740         95                saved_errno = errno;
17741         (gdb) p dir->dd_fd
17742         $11 = 8
17743
17744         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17745         The problem is that on OpenBSD, fd_clone_opendir has to resort
17746         to using the old-style save/restore CWD mechanism, due to its
17747         lack of openat/proc support, and *that* would steal the FD (6)
17748         that opendir was supposed to use.
17749
17750         The fix is to squirrel away the desired FD so that save_cwd uses a
17751         different one, and then free the dest FD right before calling opendir.
17752         That guarantees opendir will use the required file descriptor.
17753
17754         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17755
17756 2010-10-08  Bruno Haible  <bruno@clisp.org>
17757
17758         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17759         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17760
17761 2010-10-08  Bruno Haible  <bruno@clisp.org>
17762
17763         nanosleep: Make replacement POSIX compliant.
17764         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17765         is out of range.
17766         Reported by Jim Meyering.
17767
17768 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17769
17770         bootstrap: add hook for altering gnulib.mk, for Bison
17771         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17772         the Bison bootstrapping process can rewrite file names and variables
17773         in this file before later parts of 'bootstrap' use the file.
17774         Bison wants to include lib/gnulib.mk from the top-level makefile,
17775         so it needs the file names in this file to be relative to the top
17776         level, not relative to lib; plus it needs variable names to be
17777         rewritten.
17778         (slurp): Use the new function.
17779
17780         bootstrap: reformat for readability
17781         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17782
17783 2010-10-08  Eric Blake  <eblake@redhat.com>
17784
17785         docs: update cygwin progress
17786         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17787         1.7.7.
17788         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17789         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17790         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17791         * doc/posix-functions/carg.texi (carg): Likewise.
17792         * doc/posix-functions/cargf.texi (cargf): Likewise.
17793         * doc/posix-functions/casin.texi (casin): Likewise.
17794         * doc/posix-functions/casinf.texi (casinf): Likewise.
17795         * doc/posix-functions/casinh.texi (casinh): Likewise.
17796         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17797         * doc/posix-functions/catan.texi (catan): Likewise.
17798         * doc/posix-functions/catanf.texi (catanf): Likewise.
17799         * doc/posix-functions/catanh.texi (catanh): Likewise.
17800         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17801         * doc/posix-functions/ccos.texi (ccos): Likewise.
17802         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17803         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17804         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17805         * doc/posix-functions/cexp.texi (cexp): Likewise.
17806         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17807         * doc/posix-functions/cimag.texi (cimag): Likewise.
17808         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17809         * doc/posix-functions/clog.texi (clog): Likewise.
17810         * doc/posix-functions/clogf.texi (clogf): Likewise.
17811         * doc/posix-functions/conj.texi (conj): Likewise.
17812         * doc/posix-functions/conjf.texi (conjf): Likewise.
17813         * doc/posix-functions/cpow.texi (cpow): Likewise.
17814         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17815         * doc/posix-functions/cproj.texi (cproj): Likewise.
17816         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17817         * doc/posix-functions/creal.texi (creal): Likewise.
17818         * doc/posix-functions/crealf.texi (crealf): Likewise.
17819         * doc/posix-functions/csin.texi (csin): Likewise.
17820         * doc/posix-functions/csinf.texi (csinf): Likewise.
17821         * doc/posix-functions/csinh.texi (csinh): Likewise.
17822         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17823         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17824         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17825         * doc/posix-functions/ctan.texi (ctan): Likewise.
17826         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17827         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17828         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17829         * doc/posix-headers/complex.texi (complex.h): Likewise.
17830
17831 2010-10-07  Jim Meyering  <meyering@redhat.com>
17832
17833         parse-datetime: avoid compilation failure on OpenBSD 4.7
17834         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17835         This works around a compilation failure on OpenBSD 4.7:
17836         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17837
17838 2010-10-07  Eric Blake  <eblake@redhat.com>
17839
17840         docs: update cygwin progress
17841         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17842         1.7.6.
17843         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17844         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17845         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17846         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17847         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17848         Likewise.
17849         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17850         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17851         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17852         Likewise.
17853         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17854         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17855         Likewise.
17856         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17857         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17858         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17859         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17860         Likewise.
17861         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17862         Likewise.
17863         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17864
17865         docs: update parse-datetime history
17866         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17867         documentation of this function's history and alternatives.
17868
17869         cygwin: use more robust version check
17870         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17871         exclude an eventual cygwin 1.9.1.
17872         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17874         (gl_FUNC_STRCASESTR): Likewise.
17875         Reported by Bruno Haible.
17876
17877 2010-10-06  Bruno Haible  <bruno@clisp.org>
17878
17879         string, sys_select: Avoid #including large headers unless necessary.
17880         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17881         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17882         OSF/1, BeOS, Haiku.
17883         Reported by Jim Meyering.
17884
17885 2010-10-05  Eric Blake  <eblake@redhat.com>
17886
17887         memmem, strstr, strcasestr: fix bug with long periodic needle
17888         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17889         periodic needle having false positive.
17890         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17891         and cygwin 1.7.7.
17892         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17894         (gl_FUNC_STRCASESTR): Likewise.
17895         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17896         * tests/test-memmem.c (main): Expose the bug.
17897         * tests/test-strcasestr.c (main): Likewise.
17898         * tests/test-strstr.c (main): Likewise.
17899         * tests/test-c-strcasestr.c (main): Likewise.
17900         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17901         * doc/posix-functions/strstr.texi (strstr): Likewise.
17902         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17903         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17904
17905 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17906
17907         parse-datetime: do some more renaming
17908         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17909         parse_datetime, not get_date.  Mention the renaming.
17910         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17911         in comments.
17912         * m4/bison.m4: Likewise.
17913
17914 2010-10-05  Eric Blake  <eblake@redhat.com>
17915
17916         parse-datetime: better name than get_date
17917         * NEWS: Reword the deprecation notice.
17918         * modules/get_date: Rename to modules/parse-datetime.
17919         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17920         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17921         * lib/get_date.y: Rename to lib/parse-datetime.y.
17922         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17923         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17924         * doc/getdate.texi: Provide fallback wrapper.
17925         * lib/getdate.h: Move guts, and wrap...
17926         * lib/parse-datetime.h: ...new file.
17927         * lib/parse-datetime.y (get_date): Rename...
17928         (parse_datetime): ...to this.
17929         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17930         (gl_PARSE_DATETIME): ...to this.
17931         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17932         documentation.
17933         * modules/getdate (Files): Provide fallback docs and header.
17934         (Notice, Depends-on): Update references.
17935         * tests/test-parse-datetime.c: Likewise.
17936         * DEPENDENCIES: Likewise.
17937         * MODULES.html.sh (Date and time <time.h>): Likewise.
17938         * doc/parse-datetime.texi (Date input formats)
17939         (Authors of parse_datetime): Likewise.
17940         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17941         (Include): Likewise.
17942         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17943         * gnulib-tool: Likewise.
17944         * m4/bison.m4 (gl_BISON): Likewise.
17945         Suggested by Bruno Haible.
17946
17947 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17948
17949         more ports to Solaris tr, which needs [] around ranges
17950         * gnulib-tool: Solaris tr needs [] around ranges.
17951         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17952         * tests/test-pipe-filter-gi1.c (main): Likewise.
17953         * tests/test-pipe-filter-ii1.c (main): Likewise.
17954
17955 2010-10-05  Eric Blake  <eblake@redhat.com>
17956
17957         bootstrap: fix Solaris regression
17958         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17959         around ranges.
17960         Reported by Pádraig Brady.
17961
17962         bootstrap: work with pkg-config
17963         * build-aux/bootstrap (check_versions): Also transliterate - in
17964         prerequisite name.
17965         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17966         prerequisites that were already found, to avoid confusion.
17967         Reported by Justin Clift.
17968
17969         faccessat: remove unused wrappers
17970         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17971         presence of these wrappers dragged in -lgen on Solaris.
17972         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17973
17974 2010-10-05  Jim Meyering  <meyering@redhat.com>
17975
17976         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17977         * Makefile (sc_pragma_columns): New syntax-check rule.
17978
17979 2010-10-04  Bruno Haible  <bruno@clisp.org>
17980
17981         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17982         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17983         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17984         Reported by Bruce Korb and Eric Blake.
17985
17986 2010-10-04  Bruno Haible  <bruno@clisp.org>
17987
17988         threadlib: Make option --with-libpth-prefix work.
17989         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17990         use $LIBPTH, not just -lpth.
17991
17992 2010-10-04  Bruno Haible  <bruno@clisp.org>
17993
17994         Avoid line length limitation from HP NonStop system header files.
17995         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17996         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17997         * lib/ctype.in.h: Likewise.
17998         * lib/dirent.in.h: Likewise.
17999         * lib/errno.in.h: Likewise.
18000         * lib/fcntl.in.h: Likewise.
18001         * lib/float.in.h: Likewise.
18002         * lib/getopt.in.h: Likewise.
18003         * lib/iconv.in.h: Likewise.
18004         * lib/inttypes.in.h: Likewise.
18005         * lib/langinfo.in.h: Likewise.
18006         * lib/locale.in.h: Likewise.
18007         * lib/math.in.h: Likewise.
18008         * lib/netdb.in.h: Likewise.
18009         * lib/netinet_in.in.h: Likewise.
18010         * lib/poll.in.h: Likewise.
18011         * lib/pthread.in.h: Likewise.
18012         * lib/pty.in.h: Likewise.
18013         * lib/sched.in.h: Likewise.
18014         * lib/se-selinux.in.h: Likewise.
18015         * lib/search.in.h: Likewise.
18016         * lib/signal.in.h: Likewise.
18017         * lib/spawn.in.h: Likewise.
18018         * lib/stdarg.in.h: Likewise.
18019         * lib/stddef.in.h: Likewise.
18020         * lib/stdint.in.h: Likewise.
18021         * lib/stdio.in.h: Likewise.
18022         * lib/stdlib.in.h: Likewise.
18023         * lib/string.in.h: Likewise.
18024         * lib/strings.in.h: Likewise.
18025         * lib/sys_file.in.h: Likewise.
18026         * lib/sys_ioctl.in.h: Likewise.
18027         * lib/sys_select.in.h: Likewise.
18028         * lib/sys_socket.in.h: Likewise.
18029         * lib/sys_stat.in.h: Likewise.
18030         * lib/sys_time.in.h: Likewise.
18031         * lib/sys_times.in.h: Likewise.
18032         * lib/sys_utsname.in.h: Likewise.
18033         * lib/sys_wait.in.h: Likewise.
18034         * lib/sysexits.in.h: Likewise.
18035         * lib/termios.in.h: Likewise.
18036         * lib/time.in.h: Likewise.
18037         * lib/unistd.in.h: Likewise.
18038         * lib/wchar.in.h: Likewise.
18039         * lib/wctype.in.h: Likewise.
18040         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18041         * modules/ctype (Makefile.am): Likewise.
18042         * modules/dirent (Makefile.am): Likewise.
18043         * modules/errno (Makefile.am): Likewise.
18044         * modules/fcntl-h (Makefile.am): Likewise.
18045         * modules/float (Makefile.am): Likewise.
18046         * modules/getopt-posix (Makefile.am): Likewise.
18047         * modules/iconv-h (Makefile.am): Likewise.
18048         * modules/inttypes (Makefile.am): Likewise.
18049         * modules/langinfo (Makefile.am): Likewise.
18050         * modules/locale (Makefile.am): Likewise.
18051         * modules/math (Makefile.am): Likewise.
18052         * modules/netdb (Makefile.am): Likewise.
18053         * modules/netinet_in (Makefile.am): Likewise.
18054         * modules/poll-h (Makefile.am): Likewise.
18055         * modules/pthread (Makefile.am): Likewise.
18056         * modules/pty (Makefile.am): Likewise.
18057         * modules/sched (Makefile.am): Likewise.
18058         * modules/search (Makefile.am): Likewise.
18059         * modules/selinux-h (Makefile.am): Likewise.
18060         * modules/signal (Makefile.am): Likewise.
18061         * modules/spawn (Makefile.am): Likewise.
18062         * modules/stdarg (Makefile.am): Likewise.
18063         * modules/stddef (Makefile.am): Likewise.
18064         * modules/stdint (Makefile.am): Likewise.
18065         * modules/stdio (Makefile.am): Likewise.
18066         * modules/stdlib (Makefile.am): Likewise.
18067         * modules/string (Makefile.am): Likewise.
18068         * modules/strings (Makefile.am): Likewise.
18069         * modules/sys_file (Makefile.am): Likewise.
18070         * modules/sys_ioctl (Makefile.am): Likewise.
18071         * modules/sys_select (Makefile.am): Likewise.
18072         * modules/sys_socket (Makefile.am): Likewise.
18073         * modules/sys_stat (Makefile.am): Likewise.
18074         * modules/sys_time (Makefile.am): Likewise.
18075         * modules/sys_times (Makefile.am): Likewise.
18076         * modules/sys_utsname (Makefile.am): Likewise.
18077         * modules/sys_wait (Makefile.am): Likewise.
18078         * modules/sysexits (Makefile.am): Likewise.
18079         * modules/termios (Makefile.am): Likewise.
18080         * modules/time (Makefile.am): Likewise.
18081         * modules/unistd (Makefile.am): Likewise.
18082         * modules/wchar (Makefile.am): Likewise.
18083         * modules/wctype (Makefile.am): Likewise.
18084
18085 2010-10-04  Bruno Haible  <bruno@clisp.org>
18086
18087         read-file tests: Avoid a test failure on NonStop Kernel.
18088         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18089         a regular file.
18090         Reported by Joachim Schmitz <schmitz@hp.com>.
18091
18092 2010-10-03  Bruno Haible  <bruno@clisp.org>
18093
18094         gnulib-tool: Fixes for --create-testdir with --libtool.
18095         * gnulib-tool (func_get_automake_snippet): Don't augment
18096         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18097         an executable.
18098         (func_create_testdir): Handle module 'alloca' like func_import.
18099         Reported by Bruce Korb <bruce.korb@gmail.com>.
18100
18101 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18102
18103         Avoid some lines longer than 80 characters.
18104         * lib/stdint.in.h: Break long comment lines.
18105         * lib/math.in.h: Likewise.
18106         (_GL_NUM_UINT_WORDS): New macro, for readability.
18107         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18108         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18109         * lib/stdlib.in.h: Likewise.
18110         * lib/spawn.in.h: Likewise.
18111         * lib/sys_socket.in.h: Update an URL.
18112         * lib/sys_stat.in.h: Break long line.
18113
18114 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18115
18116         Improve pmccabe2html.
18117         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18118         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18119         when the sources change. Remove the line in the HTML about "Used
18120         ranges" (which implied that there might be other unused ranges),
18121         rename "Resume" to "Summary" (easier to understand for more users).
18122         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18123         styles, and some unnecessary blank lines.
18124
18125 2010-10-03  Bruno Haible  <bruno@clisp.org>
18126             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18127
18128         acl: Add support for ACLs on NonStop Kernel.
18129         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18130         Check whether the function aclsort() exists.
18131         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18132         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18133         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18134         (acl_nontrivial [HAVE_ACLSORT]: New function.
18135         (file_has_acl): Implement for NonStop Kernel.
18136         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18137         (qset_acl): Implement for NonStop Kernel.
18138         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18139         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18140         (main): Implement for NonStop Kernel.
18141         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18142         Kernel. Handle this flavor.
18143         * tests/test-set-mode-acl.sh: Likewise.
18144         * tests/test-copy-acl.sh: Likewise.
18145         * tests/test-copy-file.sh: Likewise.
18146
18147 2010-10-03  Bruno Haible  <bruno@clisp.org>
18148
18149         Info about ACLs on NonStop Kernel.
18150         * doc/acl-resources.txt: Add info about NonStop Kernel.
18151         References by Joachim Schmitz <schmitz@hp.com>.
18152
18153 2010-10-02  Bruno Haible  <bruno@clisp.org>
18154
18155         Define missing EDQUOT on NonStop Kernel.
18156         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18157         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18159         missing.
18160         * doc/posix-headers/errno.texi: Mention the NSK bug.
18161         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18162         Reported by Joachim Schmitz <schmitz@hp.com>.
18163
18164 2010-10-02  Bruno Haible  <bruno@clisp.org>
18165
18166         Update doc for POSIX:2008.
18167         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18168         Update URL of POSIX specification.
18169
18170 2010-10-02  Bruno Haible  <bruno@clisp.org>
18171
18172         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18173         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18174         from gnulib, not from Automake.
18175
18176 2010-10-02  Bruno Haible  <bruno@clisp.org>
18177
18178         New module 'system-posix'.
18179         * modules/system-posix: New file.
18180         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18181         module is present.
18182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18183         GNULIB_SYSTEM_POSIX.
18184         * modules/stdlib (Depends-on): Remove sys_wait.
18185         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18186         * doc/posix-functions/system.texi: Mention the new module.
18187         * doc/posix-headers/stdlib.texi: Likewise.
18188         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18189         define test_sys_wait_macros to a no-op.
18190         Reported by Sam Steingold <sds@gnu.org>.
18191
18192 2010-09-30  Bruno Haible  <bruno@clisp.org>
18193
18194         More renaming from 'getdate' to 'get_date'.
18195         * doc/get_date.texi: Renamed from doc/getdate.texi.
18196         * modules/get_date (Files): Update.
18197         * MODULES.html.sh (Date and time <time.h>): Update.
18198         * DEPENDENCIES: Update.
18199         * gnulib-tool: Update comment.
18200         * m4/bison.m4 (gl_BISON): Likewise.
18201         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18202
18203 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18204
18205         bootstrap: support ACLOCAL_FLAGS during aclocal
18206         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18207         can add additional -I dir for third-party .m4 files.
18208
18209 2010-09-30  Eric Blake  <eblake@redhat.com>
18210
18211         bootstrap: use glibtoolize on MacOS
18212         * build-aux/bootstrap (check_versions): Convert libtool into
18213         libtoolize.
18214         (tool search): Move libtool check earlier, and look for
18215         glibtoolize for MacOS.
18216         (gnulib_tool_options): Auto-add --libtool when appropriate.
18217         Reported by Justin Clift.
18218
18219         poll: fix typo that broke test on MacOS
18220         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18221         Reported by Justin Clift.
18222
18223         getdate: rename to get_date
18224         Note: getdate.h is not renamed, to minimize client impact.
18225         * modules/getdate: Mark obsolete.  Move old contents...
18226         * modules/get_date: ...to new module name.
18227         * modules/getdate-tests: Move...
18228         * modules/get_date-tests: ...here.
18229         * m4/getdate.m4: Move...
18230         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18231         * lib/getdate.y: Move...
18232         * lib/get_date.y: ...here.
18233         * tests/test-getdate.c: Move...
18234         * tests/test-get_date.c: ...here.
18235         * doc/posix-functions/getdate.texi (getdate): Update name.
18236         * NEWS: Mention the change.
18237
18238 2010-09-29  Bruno Haible  <bruno@clisp.org>
18239
18240         Separate the module 'waitpid' from the module 'sys_wait'.
18241         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18242         present.
18243         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18244         gl_MODULE_INDICATOR_FOR_TESTS.
18245         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18246         * modules/sys_wait (Depends-on): Remove waitpid.
18247         (Makefile.am): Substitute GNULIB_WAITPID.
18248         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18249         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18250         signature only if the 'waitpid' module is present.
18251         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18252         * NEWS: Mention the change.
18253         * modules/grantpt (Depends-on): Add waitpid.
18254         * modules/wait-process (Depends-on): Likewise.
18255
18256 2010-09-29  Bruno Haible  <bruno@clisp.org>
18257
18258         More tests for module 'sys_wait'.
18259         * modules/sys_wait-c++-tests: New file.
18260         * tests/test-sys_wait-c++.cc: New file.
18261         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18262         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18263
18264 2010-09-29  Bruno Haible  <bruno@clisp.org>
18265
18266         New module 'waitpid'.
18267         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18268         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18269         Don't include <process.h>.
18270         (waitpid): Declare only, using modern idiom.
18271         * m4/waitpid.m4: New file.
18272         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18273         * modules/waitpid: New file.
18274         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18275         (Makefile.am): Update.
18276         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18277
18278 2010-09-28  Bruno Haible  <bruno@clisp.org>
18279
18280         poll: Assume ANSI C.
18281         * lib/poll.c (poll): Use an ANSI C declaration.
18282
18283 2010-09-28  Bruno Haible  <bruno@clisp.org>
18284
18285         poll-h: Create poll.h on all platforms.
18286         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18287         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18288         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18289         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18290         (gl_REPLACE_POLL_H): Don't set POLL_H.
18291         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18292         * modules/poll-h (Depends-on): Add include_next.
18293         (Makefile.am): Create poll.h unconditionally. Substitute also
18294         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18295
18296 2010-09-28  Bruno Haible  <bruno@clisp.org>
18297
18298         Tests for module 'poll-h'.
18299         * modules/poll-h-c++-tests: New file.
18300         * tests/test-poll-h-c++.cc: New file.
18301
18302         Tests for module 'poll-h'.
18303         * modules/poll-h-tests: New file.
18304         * tests/test-poll-h.c: New file.
18305
18306 2010-09-28  Bruno Haible  <bruno@clisp.org>
18307
18308         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18309         * modules/poll-h (Depends-on): Add 'extensions'.
18310
18311 2010-09-28  Bruno Haible  <bruno@clisp.org>
18312
18313         New module 'poll-h'.
18314         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18315         (poll): Use modern idiom.
18316         * modules/poll-h: New file.
18317         * modules/poll (Files): Remove lib/poll.in.h.
18318         (Depends-on): Add poll-h.
18319         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18320         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18321         * m4/poll_h.m4: New file.
18322         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18323         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18324         and invoke gl_REPLACE_POLL_H.
18325         * lib/poll.c: Use common idiom.
18326         * tests/test-poll.c: Likewise.
18327         * doc/posix-headers/poll.texi: Mention the poll-h module.
18328         Suggested by Eric Blake.
18329
18330 2010-09-26  Bruno Haible  <bruno@clisp.org>
18331
18332         sys_wait: Implement WSTOPSIG.
18333         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18334         Reported by Simon Josefsson.
18335
18336 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18337
18338         stdlib, sys_wait: Avoid compilation error on mingw.
18339         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18340
18341 2010-09-26  Bruno Haible  <bruno@clisp.org>
18342
18343         stdlib tests: Avoid code duplication.
18344         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18345         * modules/sys_wait-tests (Files): Likewise.
18346         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18347         * tests/test-stdlib.c: Include test-sys_wait.h.
18348         (main): Invoke test_sys_wait_macros.
18349         * tests/test-sys_wait.c: Include test-sys_wait.h.
18350         (main): Invoke test_sys_wait_macros.
18351
18352 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18353
18354         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18355         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18356         sure Windows sockets are working before calling getaddrinfo.
18357         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18358         * doc/gnulib.texi (Windows sockets): Fix typo.
18359
18360 2010-09-25  Bruno Haible  <bruno@clisp.org>
18361
18362         Tests for module 'regex-quote'.
18363         * modules/regex-quote-tests: New file.
18364         * tests/test-regex-quote.c: New file.
18365
18366         New module 'regex-quote'.
18367         * lib/regex-quote.h: New file.
18368         * lib/regex-quote.c: New file.
18369         * modules/regex-quote: New file.
18370         Suggested by Reuben Thomas <rrt@sc3d.org>.
18371
18372 2010-09-24  Bruno Haible  <bruno@clisp.org>
18373
18374         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18375         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18376
18377 2010-09-23  Bruno Haible  <bruno@clisp.org>
18378
18379         setenv: Relax license.
18380         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18381         Blake.
18382         Requested by Eric Blake.
18383
18384 2010-09-22  Bruno Haible  <bruno@clisp.org>
18385
18386         termios: Relax license.
18387         * modules/termios (License): Change to LGPLv2+.
18388         Requested by Eric Blake.
18389
18390 2010-09-22  Bruno Haible  <bruno@clisp.org>
18391
18392         threadlib: Allow the package to change the default to 'no'.
18393         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18394         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18395         Reported by Paul Eggert.
18396
18397 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18398             Bruno Haible  <bruno@clisp.org>
18399
18400         Fix endless loop in mbmemcasecoll.
18401         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18402         byte.
18403         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18404
18405 2010-09-22  Bruno Haible  <bruno@clisp.org>
18406
18407         Tests for module 'memcoll'.
18408         * modules/memcoll-tests: New file.
18409         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18410
18411         memcoll, xmemcoll: Clarify size vs. length.
18412         * modules/memcoll.c (memcoll0): Clarify specification.
18413         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18414         passed to collate_error.
18415
18416 2010-09-22  Bruno Haible  <bruno@clisp.org>
18417
18418         Tests for module 'memcasecmp'.
18419         * modules/memcasecmp-tests: New file.
18420         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18421
18422 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18423
18424         * lib/pthread.in.h: Add split double-inclusion guard, and include
18425         system <pthread.h> if there is one.  Use @@-style as in other
18426         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18427         pthread.h doesn't.
18428         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18429         (pthread_mutexattr_settype, pthread_mutex_trylock):
18430         New static inline functions, if there's no system <pthread.h>.
18431         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18432         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18433         Approximate with mutexes if the system lacks spinlocks, as in
18434         MacOS.
18435         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18436         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18437         @@-style.  Check for spinlocks separately.
18438         (gl_PTHREAD_DEFAULTS): New macro.
18439         * modules/pthread: Redo to use a more typical style for in.h files.
18440
18441 2010-09-21  Eric Blake  <eblake@redhat.com>
18442
18443         net_if: enhance tests
18444         * tests/test-net_if.c (main): Move signature checks earlier.
18445         Print failures to stderr.
18446         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18447         Document the bug that we do not yet fix.
18448
18449 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18450
18451         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18452         about gnulib, not GSS.
18453
18454 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18455
18456         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18457         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18458         for Emacs.
18459         * build-aux/pmccabe2html: Make Makefile.am example code more
18460         cut-and-paste friendly.
18461
18462 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18463
18464         * tests/test-net_if.c: New file.
18465         * modules/net_if-tests: New file.
18466
18467 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18468
18469         pthread: add pthread_spin_destroy
18470         * lib/pthread.in.h (pthread_spin_destroy): New function.
18471
18472 2010-09-19  Bruno Haible  <bruno@clisp.org>
18473
18474         gnulib-tool: Fix --help output.
18475         * gnulib-tool (func_usage): Fix help message.
18476         Reported by Reuben Thomas <rrt@sc3d.org>.
18477
18478 2010-09-18  Jim Meyering  <meyering@redhat.com>
18479
18480         maint.mk: avoid unexpanded \n in two diagnostics
18481         * top/maint.mk (sc_prohibit_always_true_header_tests):
18482         Don't use a literal \n in a halt=... assignment.  It would not be
18483         expanded, and the two \n bytes would appear in the diagnostic output
18484         rather than the desired newline.  Use halt=$$(printf ... instead.
18485         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18486
18487 2010-09-18  Bruno Haible  <bruno@clisp.org>
18488
18489         netinet_in: Doc tweak.
18490         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18491         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18492
18493 2010-09-18  Jim Meyering  <meyering@redhat.com>
18494
18495         init.sh: correct an outdated comment
18496         * tests/init.sh (create_exe_shims_):  s/function/alias/
18497
18498         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18499         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18500         a file named "*.exe" is removed between the glob expansion and the
18501         processing of that oddly named file.
18502
18503 2010-09-17  Eric Blake  <eblake@redhat.com>
18504
18505         mirbsd: add some more support
18506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18507         in BSD family.
18508         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18509         devices as OpenBSD.
18510         * m4/host-os.m4 (mirbsd): Add MirBSD.
18511
18512         tests: fix unportable assumption on sys/wait.h
18513         * tests/test-sys_wait.c (main): Relax test.
18514         * tests/test-stdlib.c (main): Likewise.
18515
18516         init.sh: accomodate directory with no .exes
18517         * tests/init.sh: Accomodate directory containing only scripts.
18518
18519         tests: avoid compiler warning
18520         * tests/test-stdlib.c (main): Use the variable.
18521
18522         fdutimens, fdutimensat: update signature, again
18523         * lib/utimens.h (gl_futimens): Delete, and move signature...
18524         (fdutimens): ...here.
18525         (fdutimensat): Rearrange signature.
18526         (lutimensat): Rename variable for clarity.
18527         * lib/fdutimensat.c (fdutimensat): Update signature.
18528         * lib/utimens.c (fdutimens): Likewise.
18529         (gl_futimens): Delete.
18530         (utimens, lutimens): Update callers.
18531         * lib/futimens.c (futimens): Likewise.
18532         * tests/test-fdutimensat.c: Likewise.
18533         * tests/test-utimens.c: Likewise.
18534         * tests/test-futimens.h: Update comment.
18535         * NEWS: Mention this.
18536         Suggested by Paul Eggert.
18537
18538 2010-09-17  Bruno Haible  <bruno@clisp.org>
18539
18540         Take over the maintenance of some older macros from Autoconf.
18541         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18542         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18543         GNU Autoconf.
18544         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18545         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18546
18547 2010-09-17  Eric Blake  <eblake@redhat.com>
18548
18549         fdutimensat: drop atflag validation
18550         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18551         with valid fd, to close a race scenario where futimens is
18552         unsupported and FILE was replaced by a symlink.
18553         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18554         accordingly.
18555         Suggested by Paul Eggert.
18556
18557 2010-09-16  Bruno Haible  <bruno@clisp.org>
18558
18559         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18560         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18561
18562 2010-09-16  Bruno Haible  <bruno@clisp.org>
18563
18564         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18565         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18566         login_tty exists.
18567         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18568
18569 2010-09-16  Bruno Haible  <bruno@clisp.org>
18570
18571         login_tty: Make the replacement code work on BSD systems.
18572         * lib/login_tty.c: Include <sys/ioctl.h>.
18573         (login_tty): Use ioctl TIOCSCTTY when available.
18574         * modules/login_tty (Depends-on): Add sys_ioctl.
18575         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18576
18577 2010-09-16  Bruno Haible  <bruno@clisp.org>
18578
18579         login_tty: Stricter unit test.
18580         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18581         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18582         and tcgetsid() after login_tty.
18583         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18584
18585 2010-09-16  Bruno Haible  <bruno@clisp.org>
18586
18587         New module 'tcgetsid'.
18588         * lib/tcgetsid.c: New file.
18589         * m4/tcgetsid.m4: New file.
18590         * modules/tcgetsid: New file.
18591         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18592         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18593         GNULIB_TCGETSID, HAVE_TCGETSID.
18594         * lib/termios.in.h: Include <sys/types.h>.
18595         (tcgetsid): New declaration.
18596         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18597         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18598         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18599         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18600
18601 2010-09-16  Bruno Haible  <bruno@clisp.org>
18602
18603         Tests for module 'termios'.
18604         * modules/termios-c++-tests: New file.
18605         * modules/termios-tests: New file.
18606         * tests/test-termios-c++.cc: New file.
18607         * tests/test-termios.c: New file.
18608
18609         New module 'termios'.
18610         * modules/termios: New file.
18611         * lib/termios.in.h: New file.
18612         * m4/termios_h.m4: New file.
18613         * doc/posix-headers/termios.texi: Mention the new module.
18614
18615 2010-09-16  Eric Blake  <eblake@redhat.com>
18616
18617         fdutimensat: add an atflag parameter
18618         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18619         * lib/utimens.h (fdutimensat): Update prototype.
18620         * tests/test-fdutimensat.c: Adjust test to match.
18621         * NEWS: Document the change.
18622         Suggested by Paul Eggert.
18623
18624 2010-09-16  Bruno Haible  <bruno@clisp.org>
18625
18626         Fix typos in comments.
18627         * lib/striconveh.h: Fix typo in comment.
18628         * lib/login_tty.c (login_tty): Likewise.
18629
18630 2010-09-15  Bruno Haible  <bruno@clisp.org>
18631
18632         stdlib: clarify MirBSD WEXITSTATUS bug
18633         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18634         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18635
18636 2010-09-15  Eric Blake  <eblake@redhat.com>
18637
18638         stdlib: work around MirBSD WEXITSTATUS bug
18639         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18640         * modules/stdlib (Depends-on): Add sys_wait.
18641         * tests/test-sys_wait.c (main): Enhance test.
18642         * tests/test-stdlib.c (main): Likewise.
18643         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18644
18645         docs: mention MacOS issue with WEXITSTATUS(constant)
18646         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18647         issue.
18648         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18649
18650         strnlen: add tests
18651         * modules/strnlen-tests: New file.
18652         * tests/test-strnlen.c: Likewise.
18653
18654 2010-09-14  Bruno Haible  <bruno@clisp.org>
18655
18656         unistr/base: Avoid link errors when module 'libunistring' is also used.
18657         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18658         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18659         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18660         Declare also when HAVE_LIBUNISTRING is set.
18661         Reported by Pádraig Brady <P@draigbrady.com>.
18662
18663 2010-09-14  Eric Blake  <eblake@redhat.com>
18664
18665         test-rawmemchr: make more robust
18666         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18667         (Depends-on, configure.ac): Add needed prerequisites to use it.
18668         * modules/memchr-tests (Files, Depends-on, configure.ac):
18669         Likewise, to avoid implicit reliance on memchr module prereqs.
18670         * tests/test-memchr.c (main): Ensure proper masking.
18671         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18672         reads.
18673
18674         memchr: detect glibc Alpha bug
18675         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18676         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18677         Alpha.
18678         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18679         * tests/test-memchr.c (main): Enhance test.
18680         Reported by Nelson H. F. Beebe.
18681
18682 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18683
18684         fts, getcwd, glob: audit for dirfd returning -1
18685         * lib/fts.c (opendir): Remove #define; no longer used.
18686         (opendirat): New arg PDIR_FD.  All callers changed.
18687         (fts_build, _opendir2): Use new opendirat to avoid the need for
18688         dirfd, or for checking whether dirfd returns a negative value.
18689         Don't use opendir; always use openat followed by fdopendir.
18690         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18691         it.
18692         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18693         returns -1 here.
18694         * modules/fts (Depends-on): Remove dirfd.
18695         * modules/getcwd (Depends-on): Likewise.
18696
18697 2010-09-13  Eric Blake  <eblake@redhat.com>
18698
18699         float: fix broken MirBSD header
18700         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18701         * doc/posix-headers/float.texi (float.h): Document it.
18702
18703 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18704
18705         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18706         * lib/fts.c (opendirat): New arg extra_flags.
18707         (__opendir2): Use it to avoid following symlinks when opening
18708         a directory, if symlinks are not supposed to be followed.  See
18709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18710
18711         fdopendir: preserve argument fd before returning
18712         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18713         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18714         (fdopendir): Use them, arranging for FD to be open to the same
18715         directory that it was when it started.  (It might be temporarily
18716         closed while fdopendir is running, so this not thread- or
18717         signal-safe.)  Be careful to do the right thing even when file
18718         descriptors are scarce and dup fails with errno == EMFILE.  See
18719         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18720
18721 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18722
18723         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18724         * NEWS: Document change.
18725         * m4/regex.m4: Disable test for regoff_t size.
18726
18727 2010-09-13  Jim Meyering  <meyering@redhat.com>
18728
18729         fts: don't operate on an invalid file descriptor after failed dup
18730         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18731         negative file descriptor.
18732
18733 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18734
18735         savedir: add streamsavedir, deprecate fdsavedir
18736         * NEWS: Mention deprecation of fdsavedir.
18737         * lib/savedir.c (streamsavedir): New extern function, whose name
18738         ends in "savedir" to be consistent with the others.  This differs
18739         from savedirstream in that it doesn't close its argument.  The
18740         next version of GNU tar will use this instead of fdsavedir, to
18741         avoid some race conditions and conserve file descriptors.
18742         (savedirstream): Reimplement as a wrapper around streamsavedir.
18743         (fdsavedir): Add a comment deprecating this function.  As far as
18744         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18745         * lib/savedir.h (streamsavedir): New decl.
18746         (fdsavedir): Add a comment deprecating this.
18747
18748 2010-09-10  Bruno Haible  <bruno@clisp.org>
18749
18750         langinfo: Fix last commit.
18751         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18752         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18754
18755 2010-09-10  Bruno Haible  <bruno@clisp.org>
18756
18757         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18758         * lib/progreloc.c (O_EXEC): Define fallback.
18759
18760 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18761
18762         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18763         * NEWS: Document recent changes to fcntl-h.
18764         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18765         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18766         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18767         Similarly for O_SEARCH; this last was already true, but not documented.
18768         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18769         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18770         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18771         Likewise.
18772         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18773         is zero, not whether it is defined.
18774         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18775         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18776         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18777
18778 2010-09-10  Bruno Haible  <bruno@clisp.org>
18779
18780         langinfo, nl_langinfo: Fix for IRIX 5.3.
18781         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18782         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18783         HAVE_LANGINFO_YESEXPR.
18784         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18785         HAVE_LANGINFO_YESEXPR.
18786         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18787         HAVE_LANGINFO_T_FMT_AMPM is 0.
18788         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18789         HAVE_LANGINFO_YESEXPR is 0.
18790         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18791         NOEXPR.
18792         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18793         * doc/posix-functions/nl_langinfo.texi: Likewise.
18794         Reported by Eric Blake.
18795
18796 2010-09-10  Bruno Haible  <bruno@clisp.org>
18797
18798         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18799         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18800         on FreeBSD 8.0 and OpenBSD 4.6.
18801         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18802         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18803         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18804         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18805         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18806         ac_includes_default.
18807         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18808
18809 2010-09-09  Eric Blake  <eblake@redhat.com>
18810
18811         strsignal: work around NetBSD bug
18812         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18813         * lib/string.in.h (includes): Likewise.
18814         * doc/posix-functions/strsignal.texi (strsignal): Document the
18815         bug.
18816         Reported by Nelson H. F. Beebe.
18817
18818         gnulib-tool: work with NetBSD /bin/sh
18819         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18820         (func_get_description, func_get_comment, func_get_status)
18821         (func_get_notice, func_get_applicability, func_get_filelist)
18822         (func_get_dependencies, func_get_autoconf_early_snippet)
18823         (func_get_autoconf_snippet, func_get_automake_snippet)
18824         (func_get_include_directive, func_get_link_directive)
18825         (func_get_license, func_get_maintainer, func_import): Avoid
18826         shell syntax errors from parsing syntax extensions.
18827
18828 2010-09-09  Bruno Haible  <bruno@clisp.org>
18829
18830         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18831         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18832         a reliable way to determine whether the 'alias' command works.
18833
18834 2010-09-08  Jim Meyering  <meyering@redhat.com>
18835
18836         init.sh: penalize a set-x-impaired shell; don't disqualify it
18837         * tests/init.sh: Too many shells corrupt application stderr when
18838         you set -x, so we can't afford to disqualify them, since at least
18839         on Irix-6.5, that would disqualify all bourne shells.
18840         Instead, use a two-pass approach.
18841         On the first pass, try to find a shell that meets the stricter
18842         condition that set -x does not corrupt stderr.
18843         If no shell meets the stricter condition, retest each candidate
18844         shell, but without that extra condition.  Finally, when
18845         VERBOSE=yes is requested and set -x might cause trouble, simply
18846         issue a warning and refrain from enabling debug output.
18847
18848 2010-09-08  Eric Blake  <eblake@redhat.com>
18849
18850         unsetenv: fix OpenBSD bug
18851         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18852         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18853         documentation.
18854         Reported by Jim Meyering.
18855
18856         strtod: work around IRIX 6.5 bug
18857         * lib/strtod.c (strtod): Reparse number on shorter string if
18858         exponent parse was invalid.
18859         * tests/test-strtod.c (main): Add check for "0x1p 2".
18860         Reported by Tom G. Christensen.
18861
18862         getopt: optimize previous patch
18863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18864         empty variable.  Speed up awk script.
18865         Reported by Paolo Bonzini.
18866
18867 2010-09-08  Jim Meyering  <meyering@redhat.com>
18868
18869         test.sh: disqualify shells for which set -x corrupts stderr
18870         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18871         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18872         appear in stderr output.  For example, this command:
18873             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18874         prints "P=1" on those two systems:
18875
18876 2010-09-08  Bruno Haible  <bruno@clisp.org>
18877
18878         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18879         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18880         commands, because some shells ignore redirections when there is an
18881         error in the command lookup.
18882         Reported by Eric Blake.
18883
18884 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18885
18886         * lib/regex.h: Fix a mention of `regex_compile' (should be
18887         `re_compile_pattern').
18888         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18889         (re_set_registers): Correct name of parameter in comment.
18890
18891         * doc/regex.texi: Add documentation for missing syntax flags.
18892         Remove commented-out documentation of defunct syntax option
18893         RE_NO_EMPTY_ALTS.
18894         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18895         Add documentation of re_set_registers.
18896         Document trick to re-use a pattern buffer by setting fastmap manually.
18897         Update documentation of struct re_pattern_buffer per public members.
18898         Uncomment documentation of equivalence class operators and
18899         collating symbol operators, since they are now implemented,
18900         Explain leftmost-longest matching in relation to alternatives.
18901         Tidy documentation of substring matching.
18902         Remove POSIX documentation, which is done better in
18903         glibc, and refer the reader there. Keep BSD API documentation, as
18904         that is not readily available elsewhere.
18905
18906 2010-09-07  Eric Blake  <eblake@redhat.com>
18907
18908         getopt: handle POSIXLY_CORRECT set but not exported
18909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18910         export state of POSIXLY_CORRECT, due to bash set -o posix.
18911         Reported by Dustin J. Mitchell.
18912
18913 2010-09-05  Bruno Haible  <bruno@clisp.org>
18914
18915         gnulib-tool: Highlight the changed options.
18916         * gnulib-tool (func_usage): Display the --import, --add-import,
18917         --remove-import explanations in bold font.
18918
18919 2010-09-06  Karl Berry  <karl@gnu.org>
18920
18921         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18922
18923 2010-09-05  Bruno Haible  <bruno@clisp.org>
18924
18925         uniwidth/width: Update comment.
18926         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18927         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18928
18929 2010-09-05  Bruno Haible  <bruno@clisp.org>
18930
18931         isinf, isnan: Relax license.
18932         * modules/isinf (License): Change from GPL to LGPL, with consent from
18933         Ben Pfaff.
18934         * modules/isnan (License): Likewise.
18935         Requested by Ludovic Courtès.
18936
18937 2010-09-04  Bruno Haible  <bruno@clisp.org>
18938
18939         gnulib-tool: Help migration from --import to --add-import or --update.
18940         * gnulib-tool: Emit a verbose error message when --import is used
18941         without any module name.
18942
18943 2010-09-04  Bruno Haible  <bruno@clisp.org>
18944
18945         Update doc about gnulib-tool.
18946         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18947         'gnulib-tool --update' in more detail.
18948         Reported by Eric Blake.
18949
18950 2010-09-04  Bruno Haible  <bruno@clisp.org>
18951
18952         gnulib-tool: Change --import. New options --add/remove-import.
18953         * gnulib-tool: New options --add-import, --remove-import.
18954         (func_usage): Document them.
18955         (have_associative): Define always.
18956         (func_import): In import mode, don't merge the specified settings with
18957         the cached settings. Implement remove-import mode.
18958         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18959         Explain when to use them versus --import.
18960         (Simple update): Use --add-import instead of --import.
18961         * NEWS: Mention the change.
18962
18963 2010-09-04  Bruno Haible  <bruno@clisp.org>
18964
18965         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18966         separate gnulib.mk.
18967
18968 2010-09-04  Bruno Haible  <bruno@clisp.org>
18969
18970         gnulib-tool: Don't talk about CVS any more.
18971         * gnulib-tool (func_usage, func_import): Write "version control"
18972         instead of CVS.
18973
18974 2010-09-04  Jim Meyering  <meyering@redhat.com>
18975
18976         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18977         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18978         false positives (whose names may be ill-chosen) when searching
18979         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18980         would cause a false-positive.
18981
18982         avoid coreutils "make distcheck" failure
18983         Coreutils tests with an absolute build directory name that contains
18984         a space.  Not quoting this directory name caused a failure.
18985         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18986         * tests/test-vc-list-files-cvs.sh: Likewise.
18987
18988 2010-09-04  Bruno Haible  <bruno@clisp.org>
18989
18990         gnulib-tool: Avoid error when run in a package without Makefile.am.
18991         * gnulib-tool: When collecting the m4dirs in a package that does not
18992         have a Makefile.am, eliminate those directories that contain no
18993         gnulib-cache.m4. Fix expression that counts these directories.
18994
18995 2010-09-04  Bruno Haible  <bruno@clisp.org>
18996
18997         update-copyright test: Improve output when perl is missing or too old.
18998         * tests/test-update-copyright.sh: Move test of Perl version down after
18999         the test whether Perl exists. Provide an explanation relating Perl's
19000         error message to Automake's SKIP: message.
19001
19002 2010-09-04  Bruno Haible  <bruno@clisp.org>
19003
19004         Don't augment PATH in TESTS_ENVIRONMENT.
19005         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19006         set abs_aux_dir instead of augmenting PATH.
19007         * modules/vc-list-files-tests (Makefile.am): Likewise.
19008         * tests/test-update-copyright.sh: Augment PATH here.
19009         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19010         path_prepend_.
19011         * tests/test-vc-list-files-git.sh: Likewise.
19012
19013 2010-09-04  Jim Meyering  <meyering@redhat.com>
19014
19015         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19016         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19017
19018 2010-09-04  Bruno Haible  <bruno@clisp.org>
19019
19020         strdup: Fix compilation error in C++ mode.
19021         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19022         the macro.
19023
19024 2010-09-04  Bruno Haible  <bruno@clisp.org>
19025
19026         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19027         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19028         macro into a function.
19029         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19030
19031 2010-09-04  Bruno Haible  <bruno@clisp.org>
19032
19033         Set PATH_SEPARATOR the same way autoconf does.
19034         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19035         the value of PATH_SEPARATOR the same way autoconf-generated configure
19036         scripts do.
19037         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19038         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19039
19040 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19041
19042         Set PATH_SEPARATOR the same way autoconf does.
19043         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19044         the same way autoconf-generated configure scripts do.
19045         * posix-modules: Likewise.
19046
19047 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19048
19049         hash: fix safe_hasher const typo
19050         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19051         const; otherwise, there is a type error later.
19052
19053 2010-09-02  Jim Meyering  <meyering@redhat.com>
19054
19055         test-update-copyright.sh: require perl 5.8.0
19056         * tests/test-update-copyright.sh: Require 5.8.0,
19057         which Tom G. Christensen has confirmed is adequate,
19058         while 5.6.1 is not.
19059
19060 2010-09-02  Eric Blake  <eblake@redhat.com>
19061
19062         tests: init.sh improvements for re-exec'ing with zsh
19063         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19064         -vx through shell re-exec.
19065         Reported by Tom G. Christensen.
19066
19067         wctype: fix typo in previous commit
19068         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19069         Reported by Ludovic Courtès.
19070
19071 2010-09-02  Jim Meyering  <meyering@redhat.com>
19072
19073         test-update-copyright.sh: skip test if Perl is too old
19074         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19075         Reported by Tom G. Christensen.
19076
19077 2010-09-02  Bruno Haible  <bruno@clisp.org>
19078
19079         wctype: Avoid compilation error on IRIX 6.5.30.
19080         * lib/wctype.in.h (iswblank): Declare with a replacement if
19081         REPLACE_ISWBLANK is set.
19082         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19083         declared. Set REPLACE_ISWBLANK.
19084         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19085         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19086         * doc/posix-headers/wctype.texi: Likewise.
19087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19088
19089 2010-09-01  Bruno Haible  <bruno@clisp.org>
19090
19091         New module 'socketlib'.
19092         * modules/socketlib: New file.
19093         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19094         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19095         * modules/sockets (Depends-on): Add socketlib.
19096         Suggested by Sam Steingold <sds@gnu.org>.
19097
19098 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19099
19100         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19101
19102         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19103         when one needs search access to a directory but not read access.
19104         On systems where it is available, it works in some cases where
19105         O_RDONLY does not, namely on directories that are searchable but
19106         not readable, and which need only to be searchable.  If O_SEARCH
19107         is not available, fall back to the traditional method of using
19108         O_RDONLY.
19109
19110         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19111         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19112         when opening a directory that needs only to be searchable.
19113         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19114         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19115         * lib/openat-proc.c (openat_proc_name): Likewise.
19116         * lib/openat.c (openat_needs_fchdir): Likewise.
19117         * lib/save-cwd.c (save_cwd): Likewise.
19118         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19119
19120 2010-08-28  Bruno Haible  <bruno@clisp.org>
19121
19122         New module 'host-cpu-c-abi'.
19123         * modules/host-cpu-c-abi: New file.
19124         * m4/host-cpu-c-abi.m4: New file, based on part of
19125         clisp/src/m4/general.m4.
19126         Requested by Sam Steingold <sds@gnu.org>.
19127
19128 2010-08-31  Eric Blake  <eblake@redhat.com>
19129         and Jim Meyering  <meyering@redhat.com>
19130
19131         hash: factor, and guard against misbehaving hasher function
19132         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19133         of table->hasher's return value.  Also protect against a hash value
19134         so large that adding it to table->bucket results in a NULL pointer.
19135         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19136         Use it in place of open-coded check-and-abort.
19137
19138 2010-08-30  Bruno Haible  <bruno@clisp.org>
19139
19140         hash: silence spurious clang warning
19141         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19142         Reported by Eric Blake.
19143
19144 2010-08-30  Eric Blake  <eblake@redhat.com>
19145
19146         strstr, memmem, strcasestr: avoid leaked shell message
19147         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19148         FreeBSD.
19149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19150         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19151
19152         tests: silence clang warning
19153         * tests/test-malloca.c (do_allocation): Avoid dead store.
19154
19155 2010-08-29  Bruno Haible  <bruno@clisp.org>
19156
19157         gettext: Fix recent mistake.
19158         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19159
19160 2010-08-29  Bruno Haible  <bruno@clisp.org>
19161
19162         selinux-h: Offer a --without-selinux option.
19163         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19164         --without-selinux was specified, skip all tests and define
19165         HAVE_SELINUX_SELINUX_H to 0.
19166         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19167         set LIB_SELINUX to empty.
19168         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19169         gl_LIBSELINUX. If --without-selinux was specified, replace
19170         selinux/context.h.
19171         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19172
19173 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19174             Bruno Haible  <bruno@clisp.org>
19175
19176         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19177         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19178         of HAVE_REALLOC.
19179         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19180         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19181         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19182         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19183
19184 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19185             Bruno Haible  <bruno@clisp.org>
19186
19187         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19188         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19189         HAVE_CALLOC.
19190         * lib/xmalloc.c: Update accordingly.
19191         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19192         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19193         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19194
19195 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19196             Bruno Haible  <bruno@clisp.org>
19197
19198         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19199         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19200         HAVE_MALLOC.
19201         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19202         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19203         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19204
19205 2010-08-29  Bruno Haible  <bruno@clisp.org>
19206
19207         Update modules list.
19208         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19209         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19210         (String handling <string.h>): Add astrxfrm.
19211         (File system functions): Add readlinkat.
19212
19213 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19214
19215         Tests for module 'realloc-gnu'.
19216         * modules/realloc-gnu-tests: New file.
19217         * tests/test-realloc-gnu.c: New file.
19218
19219         Tests for module 'calloc-gnu'.
19220         * modules/calloc-gnu-tests: New file.
19221         * tests/test-calloc-gnu.c: New file.
19222
19223         Tests for module 'malloc-gnu'.
19224         * modules/malloc-gnu-tests: New file.
19225         * tests/test-malloc-gnu.c: New file.
19226
19227 2010-08-28  Bruno Haible  <bruno@clisp.org>
19228
19229         Rename module 'realloc' -> 'realloc-gnu'.
19230         * modules/realloc-gnu: New file, copied from modules/realloc.
19231         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19232         obsolete.
19233         * modules/mgetgroups (Depends-on): Update.
19234         * doc/posix-functions/realloc.texi: Update.
19235         * NEWS: Mention the change.
19236
19237         Rename module 'calloc' -> 'calloc-gnu'.
19238         * modules/calloc-gnu: New file, copied from modules/calloc.
19239         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19240         obsolete.
19241         * doc/posix-functions/calloc.texi: Update.
19242         * NEWS: Mention the change.
19243
19244         Rename module 'malloc' -> 'malloc-gnu'.
19245         * modules/malloc-gnu: New file, copied from modules/malloc.
19246         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19247         obsolete.
19248         * modules/argp (Depends-on): Update.
19249         * modules/regex (Depends-on): Update.
19250         * doc/posix-functions/malloc.texi: Update.
19251         * NEWS: Mention the change.
19252
19253 2010-08-28  Eric Blake  <eblake@redhat.com>
19254
19255         pread, pwrite: add missing dependency
19256         * modules/pread (Depends-on): Add extensions.
19257         * modules/pwrite (Depends-on): Likewise.
19258
19259 2010-08-28  Bruno Haible  <bruno@clisp.org>
19260
19261         unistr/u*-strchr: Fix tests dependencies.
19262         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19263         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19264         Reported by Ian Beckwith <ianb@erislabs.net>.
19265
19266 2010-08-28  Bruno Haible  <bruno@clisp.org>
19267
19268         read-file: Don't occupy too much unused memory.
19269         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19270
19271 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19272             Eric Blake  <eblake@redhat.com>
19273             Bruno Haible  <bruno@clisp.org>
19274
19275         read-file: Avoid memory reallocations with regular files.
19276         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19277         (fread_file): With regular files, use the remaining length as the
19278         initial buffer size.  Check against overflow.
19279         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19280         sys_stat.
19281
19282 2010-08-28  Bruno Haible  <bruno@clisp.org>
19283
19284         ftello: Relax license.
19285         * modules/ftello (License): Relax to LGPLv2+.
19286         Reported by Eric Blake.
19287
19288 2010-08-28  Bruno Haible  <bruno@clisp.org>
19289
19290         Avoid relocwrapper link errors due to gnulib replacement functions.
19291         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19292         function.
19293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19294
19295 2010-08-28  Bruno Haible  <bruno@clisp.org>
19296
19297         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19298         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19299         defined.
19300         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19301         Suggested by Eric Blake.
19302
19303 2010-08-28  Bruno Haible  <bruno@clisp.org>
19304
19305         sys_socket, netdb: Ensure socklen_t gets defined.
19306         * modules/sys_socket (Depends-on): Add socklen.
19307         * modules/netdb (Depends-on): Likewise.
19308         * modules/getaddrinfo (Depends-on): Remove socklen.
19309         * modules/getsockopt (Depends-on): Likewise.
19310         * modules/setsockopt (Depends-on): Likewise.
19311         * tests/test-sys_socket.c: Check that socklen_t is defined.
19312         * tests/test-netdb.c: Likewise.
19313         * m4/socklen.m4: Update comments.
19314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19315
19316 2010-08-27  Eric Blake  <eblake@redhat.com>
19317
19318         login_tty: add missing dependency
19319         * modules/login_tty (Depends-on): Add pty.
19320
19321 2010-08-26  Eric Blake  <eblake@redhat.com>
19322
19323         lib-symbol-versions: fix m4 quoting
19324         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19325         format for AC_LINK_IFELSE.
19326
19327         glob: fix compile test
19328         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19329
19330         btowc: fix missing file
19331         * modules/btowc (Files): Also ship locale-fr.m4.
19332
19333         lseek: fix link test
19334         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19335         AC_LINK_IFELSE.
19336
19337         include_next: silence autoconf 2.68 warning
19338         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19339         AC_COMPILE_IFELSE as special.
19340         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19341         autoconf < 2.68.
19342
19343         acl: fix compilation test
19344         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19345         AC_COMPILE_IFELSE.
19346
19347 2010-08-26  Bruno Haible  <bruno@clisp.org>
19348
19349         Modernize AC_TRY_RUN invocations.
19350         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19351         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19352         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19353         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19354         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19355         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19356         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19357         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19358         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19359         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19360         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19361         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19362         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19363         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19365         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19366         gl_MBRLEN_NUL_RETVAL): Likewise.
19367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19368         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19369         Likewise.
19370         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19371         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19372         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19373         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19374         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19375         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19376         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19377         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19378         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19379         Likewise.
19380         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19381         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19383         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19384         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19385         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19386         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19387         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19388         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19390
19391 2010-08-26  Bruno Haible  <bruno@clisp.org>
19392
19393         Modernize AC_TRY_LINK invocations.
19394         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19395         AC_TRY_LINK.
19396         * m4/argp.m4 (gl_ARGP): Likewise.
19397         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19398         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19399         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19400         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19402         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19403         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19404         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19407         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19408         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19409         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19410         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19411         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19412         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19413         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19414         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19415         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19416         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19417         Likewise.
19418         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19419         Likewise.
19420         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19421         Likewise.
19422         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19424         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19425         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19426         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19427         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19428         * m4/servent.m4 (gl_SERVENT): Likewise.
19429         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19430         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19431         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19432         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19433         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19434         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19435         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19436         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19437         * modules/tsearch-tests (configure.ac): Likewise.
19438
19439 2010-08-26  Bruno Haible  <bruno@clisp.org>
19440
19441         Modernize AC_TRY_COMPILE invocations.
19442         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19443         AC_TRY_COMPILE.
19444         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19445         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19446         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19447         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19448         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19449         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19450         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19451         * m4/lock.m4 (gl_LOCK): Likewise.
19452         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19453         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19454         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19456         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19457         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19458         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19460         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19461         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19462         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19463         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19464         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19465         extraneous semicolon.
19466
19467 2010-08-26  Jim Meyering  <meyering@redhat.com>
19468
19469         stat-time: relax license LGPL
19470         * modules/stat-time (License): Change from GPL to LGPL,
19471         with consent from all contributors, for use in libguile.
19472         Requested by Ludovic Courtès.
19473
19474 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19475
19476         poll: return immediately on POLLHUP.
19477         * lib/poll.c (poll): Always set timeout before wait_timeout is
19478         computed.
19479
19480 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19481
19482         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19483         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19484         rmdir ("dir/.//"), unlinkat.
19485
19486 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19487
19488         stdbool: avoid spurious failure with modern xlc
19489         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19490
19491 2010-08-24  Bruno Haible  <bruno@clisp.org>
19492
19493         getloadavg: simplify code
19494         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19495         gl_have_func. Update comments.
19496
19497 2010-08-24  Eric Blake  <eblake@redhat.com>
19498
19499         getloadavg: don't define SVR4 on cygwin
19500         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19501         only define SVR4 when -lkvm is required.
19502         Reported by Yaakov Selkowitz.
19503
19504 2010-08-24  Bruno Haible  <bruno@clisp.org>
19505
19506         priv-set: fix comment
19507         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19508
19509 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19510
19511         priv-set: fix comments
19512         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19513         to match code, as suggested by David Bartley in:
19514         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19515
19516 2010-08-23  Eric Blake  <eblake@redhat.com>
19517
19518         stdbool: avoid rejecting clang
19519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19520         * tests/test-stdbool.c: Enable more tests if using the system
19521         <stdbool.h> instead of the gnulib replacement.
19522         (main): Move xlc bug test to a runtime test for all compilers.
19523         Reported by Anders Kaseorg.
19524
19525         argz: fix shell quoting issue
19526         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19527         Reported by Charles Wilson.
19528
19529 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19530             Erik Faye-Lund <kusmabite@gmail.com>
19531
19532         poll, select: handle ERROR_BROKEN_PIPE.
19533         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19534         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19535         * lib/select.c (win32_compute_revents): Do not mark a pipe
19536         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19537
19538 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19539
19540         fts: allow compilation with C++
19541         * lib/fts_.h: Specify extern "C" linkage with C++.
19542
19543 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19544
19545         Fix gnulib-tool sed script de-commentation for AIX sed.
19546         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19547         sed.
19548
19549 2010-08-17  Eric Blake  <eblake@redhat.com>
19550
19551         test-stddef: test for (some) offsetof bugs
19552         * tests/test-stddef.c: Enhance test to ensure correct type of
19553         offsetof.
19554         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19555         that we are not fixing at this time.
19556
19557 2010-08-15  Bruno Haible  <bruno@clisp.org>
19558
19559         stpncpy: Allow stpncpy to be defined as a macro.
19560         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19561         if it's already correctly declared.
19562         * lib/string.in.h (stpncpy): Undefine before redefining.
19563         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19564
19565 2010-08-14  Bruno Haible  <bruno@clisp.org>
19566
19567         Rename module 'memxfrm' to 'amemxfrm'.
19568         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19569         (amemxfrm): Renamed from memxfrm.
19570         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19571         (amemxfrm): Renamed from memxfrm.
19572         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19573         * NEWS: Mention the change.
19574         * MODULES.html.sh (String handling <string.h>): Update.
19575         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19576         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19577         * lib/unicase/u16-casexfrm.c: Likewise.
19578         * lib/unicase/u32-casexfrm.c: Likewise.
19579         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19580         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19581         * lib/uninorm/u16-normxfrm.c: Likewise.
19582         * lib/uninorm/u32-normxfrm.c: Likewise.
19583         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19584         memxfrm.
19585         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19586         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19587         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19588         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19589         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19590         Suggested by Paul Eggert.
19591
19592 2010-08-14  Bruno Haible  <bruno@clisp.org>
19593
19594         Tests for module 'astrxfrm'.
19595         * modules/astrxfrm-tests: New file.
19596         * tests/test-astrxfrm.c: New file.
19597
19598         New module 'astrxfrm'.
19599         * lib/astrxfrm.h: New file.
19600         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19601         * modules/astrxfrm: New file.
19602
19603 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19604
19605         regex: Tweak doc.
19606         * doc/regex.texi (Overview): Don't mention regex.c.
19607         (GNU Regular Expression Compiling): Likewise.
19608         (Match-end-of-line Operator): Mention 'not_eol'.
19609
19610 2010-08-14  Brian Gough  <bjg@gnu.org>
19611             Bruno Haible  <bruno@clisp.org>
19612
19613         git-merge-changelog: add doc relating to use with bzr and hg.
19614         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19615
19616 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19617
19618         pthread: fix pthread.h creation for srcdir != builddir
19619         * modules/pthread (Makefile.am): Fix the rule to work also in a
19620         non-srcdir build.
19621
19622 2010-08-13  Karl Berry  <karl@gnu.org>
19623
19624         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19625         * doc/posix-*/*: force line break before @url of POSIX
19626         specifications.
19627         Suggested by Werner Lemberg.
19628
19629 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         strtod: fix const diagnostic
19632         * lib/strtod.c (strtod): Don't assign const char * to char *,
19633         as this elicits a warning from GCC when warnings are enabled.
19634
19635 2010-08-10  Pádraig Brady <P@draigbrady.com>
19636         and Eric Blake  <eblake@redhat.com>
19637
19638         copy-acl: ignore ENOTSUP on HP-UX
19639         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19640         so that it is available for HP-UX.
19641         * lib/copy-acl.c (qcopy_acl): Use it.
19642         Reported by Patrick M. Callahan.
19643
19644 2010-08-10  Eric Blake  <eblake@redhat.com>
19645
19646         open, chown: relax license
19647         * modules/open (License): Change to LGPLv2+, with consent by all
19648         authors, for use in augeas.
19649         * modules/chown (License): Likewise.
19650         * modules/lchown (Likewise): Likewise.
19651         Requested by Adam Stokes.
19652
19653 2010-08-09  Karl Berry  <karl@gnu.org>
19654
19655         * build-aux/ar-lib: new file, import from Automake.
19656         * config/srclist.txt: autocheck for updates.
19657
19658 2010-08-09  Eric Blake  <eblake@redhat.com>
19659
19660         readlinkat: adjust client modules
19661         * modules/areadlinkat (Depends-on): Use readlinkat, not
19662         symlinkat.
19663         * modules/areadlinkat-with-size (Depends-on): Likewise.
19664
19665         mknod: be more vocal about danger of running tests as root
19666         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19667         root, since that is just asking for problems.
19668         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19669
19670         readlinkat: split into its own module
19671         * modules/symlinkat: Split readlinkat...
19672         * modules/readlinkat: ...into separate module.
19673         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19674         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19675         * lib/symlinkat.c (readlinkat): Move...
19676         * lib/readlinkat.c: ...into new file.
19677         * modules/symlinkat-tests: Split readlinkat test...
19678         * modules/readlinkat-tests: ...into separate module.
19679         * tests/test-symlinkat.c: Split...
19680         * tests/test-readlinkat.c: ...into new file.
19681         * NEWS: Document the split.
19682         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19683         * lib/unistd.in.h (readlinkat): Likewise.
19684         Suggested by Bruno Haible.
19685
19686 2010-08-08  Bruno Haible  <bruno@clisp.org>
19687
19688         memxfrm: Speed up.
19689         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19690         that usually only one call to strxfrm is necessary for each string
19691         part.
19692         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19693
19694 2010-08-07  Karl Berry  <karl@gnu.org>
19695
19696         * doc/posix-headers/limits.texi,
19697         * doc/posix-functions/malloc.texi,
19698         * doc/posix-functions/strsignal.texi: missing @item.
19699         * doc/ld-version-script.texi: spurious leading i.
19700         * doc/regex.texi (Interval Operators): no commas inside @var.
19701
19702 2010-08-01  Bruno Haible  <bruno@clisp.org>
19703
19704         Integrate the regex documentation.
19705         * doc/gnulib.texi: Define 'cn' index.
19706         (Regular expressions): New a chapter that includes regex.texi and
19707         regexprops-generic.texi.
19708         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19709         syntax.
19710
19711         Whitespace cleanup.
19712         * doc/regex.texi: Remove trailing spaces.
19713
19714         Add regex documentation.
19715         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19716         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19717         Written by Kathy A. Hargreaves and Karl Berry.
19718
19719 2010-08-01  Bruno Haible  <bruno@clisp.org>
19720
19721         link: Update documentation.
19722         * doc/posix-functions/link.texi: Update regarding Solaris.
19723
19724 2010-07-31  Bruno Haible  <bruno@clisp.org>
19725
19726         Update modules list.
19727         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19728         (String handling <string.h>): Add memcmp2, memxfrm.
19729         (Container data structures): Add xlist, xsublist, xoset.
19730         (Core language properties): Add alignof, unused-parameter.
19731         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19732         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19733         (Unibyte characters <ctype.h>): New section.
19734         (String handling <string.h>): New section.
19735         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19736         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19737         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19738         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19739         tan, tanh, tanl, y0, y1, yn.
19740         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19741         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19742         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19743         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19744         unlockpt, vdprintf, vdprintf-posix.
19745         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19746         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19747         xconcat-filename.
19748         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19749         getdtablesize, pipe2, pipe2-safer.
19750         (Security): New section.
19751         (Networking functions): Add accept4.
19752         (Signal handling): Add sigpipe.
19753         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19754         mbmemcasecoll.
19755         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19756         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19757         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19758         pipe-filter-ii.
19759         (Misc): Add argp-version-etc, login_tty, parse-duration.
19760
19761 2010-07-31  Bruno Haible  <bruno@clisp.org>
19762
19763         Improve doc in MODULES.html.
19764         * modules/linkat (Description): Add the word "function".
19765         * modules/mkfifo (Description): Likewise.
19766         * modules/mknod (Description): Likewise.
19767         * modules/remove (Description): Likewise.
19768         * modules/renameat (Description): Likewise.
19769         * modules/stat (Description): Likewise.
19770         * modules/symlink (Description): Likewise.
19771         * modules/unlink (Description): Likewise.
19772
19773 2010-07-31  Bruno Haible  <bruno@clisp.org>
19774
19775         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19776         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19777         option --enable/disable-c++ instead of --enable/disable-cxx.
19778         * NEWS: Mention the change.
19779
19780 2010-07-31  Bruno Haible  <bruno@clisp.org>
19781
19782         readlink, areadlink: Relax test a bit.
19783         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19784         alternative to ENOTDIR.
19785         * tests/test-areadlink.h (test_areadlink): Likewise.
19786         Reported by Rainer Tammer.
19787
19788 2010-07-31  Bruno Haible  <bruno@clisp.org>
19789
19790         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19791         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19792         character, perform the search using U_STRCHR.
19793         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19794         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19795         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19796         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19797         Suggested by Paolo Bonzini.
19798
19799 2010-07-31  Bruno Haible  <bruno@clisp.org>
19800
19801         unistr/u*-strstr: Fix dependencies.
19802         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19803         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19804         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19805
19806 2010-07-31  Bruno Haible  <bruno@clisp.org>
19807
19808         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19809         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19810         the beginning of the loop.
19811         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19812         cases in 'switch' statement.
19813
19814         unistr/u8-strchr: Fix several bugs.
19815         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19816         the string. When not found, return NULL, not a pointer near the end.
19817
19818         More tests for unistr/u8-strchr.
19819         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19820         that the function does not read past the first occurrence of the byte
19821         being searched.
19822         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19823         * tests/unistr/test-u16-strchr.c (main): New function.
19824         * tests/unistr/test-u32-strchr.c (main): New function.
19825
19826 2010-07-31  Bruno Haible  <bruno@clisp.org>
19827
19828         posix-modules: Ignore backup files of documentation files.
19829         * posix-modules: grep only through files named *.texi.
19830
19831 2010-07-31  Bruno Haible  <bruno@clisp.org>
19832
19833         symlinkat: Fix documentation.
19834         * doc/posix-functions/readlinkat.texi: Fix module name.
19835
19836 2010-07-31  Bruno Haible  <bruno@clisp.org>
19837
19838         fchownat: Replace also when chown has the trailing slash bug.
19839         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19840         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19841         introduced on 2010-04-10.
19842         Reported by Rainer Tammer.
19843
19844 2010-07-31  Bruno Haible  <bruno@clisp.org>
19845
19846         linkat: Work around AIX 7.1 bug.
19847         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19848         whether linkat handles trailing slash correctly. If not, replace linkat
19849         and define LINKAT_TRAILING_SLASH_BUG.
19850         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19851         check whether (fd1,file1) points to a directory if file1 or file2 ends
19852         in a slash. Code taken from lib/link.c.
19853         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19854         Reported by Rainer Tammer.
19855
19856 2010-07-31  Bruno Haible  <bruno@clisp.org>
19857
19858         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19859         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19860         This disables an xlc optimization that was causing wrong test results.
19861         Reported by Rainer Tammer.
19862
19863 2010-07-31  Bruno Haible  <bruno@clisp.org>
19864
19865         iconv: Work around AIX 6.1..7.1 bug.
19866         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19867         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19868         cross-compiling, guess no on all versions of AIX.
19869         Reported by Rainer Tammer.
19870
19871 2010-07-31  Bruno Haible  <bruno@clisp.org>
19872
19873         readlink: Relax test a bit.
19874         * tests/test-readlink.h (test_readlink): Allow different errno value
19875         when readlink is called with a file name that ends in / and refers to
19876         a file.
19877         Suggested by Eric Blake.
19878         Reported by Rainer Tammer.
19879
19880 2010-07-31  Bruno Haible  <bruno@clisp.org>
19881
19882         copysign: Does not require -lm on glibc systems.
19883         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19884         gl_COMMON_DOUBLE_MATHFUNC.
19885         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19886
19887 2010-07-31  Bruno Haible  <bruno@clisp.org>
19888
19889         duplocale: Work around AIX 7.1 bug.
19890         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19891         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19892         * lib/duplocale.c (rpl_duplocale): Update comment.
19893         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19894         Reported by Rainer Tammer.
19895
19896 2010-07-30  Bruno Haible  <bruno@clisp.org>
19897
19898         dirfd: Avoid link error on AIX 7.1.
19899         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19900         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19901         exist, set REPLACE_DIRFD.
19902         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19903         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19904         * doc/posix-functions/dirfd.texi: Update.
19905         Reported by Rainer Tammer.
19906
19907 2010-07-30  Eric Blake  <eblake@redhat.com>
19908
19909         strtod: next round of AIX fixes
19910         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19911         exponent.
19912         * tests/test-strtod.c (main): Enhance tests.
19913         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19914         Reported by Rainer Tammer.
19915
19916         futimens: fix configure check
19917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19918         Reported by Bruno Haible.
19919
19920 2010-07-30  Bruno Haible  <bruno@clisp.org>
19921
19922         getline: Update regarding AIX.
19923         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19924         Reported by Rainer Tammer.
19925
19926 2010-07-30  Bruno Haible  <bruno@clisp.org>
19927
19928         wcwidth: Drop replacement on AIX 7.
19929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19930         AIX 7.
19931         Reported by Rainer Tammer.
19932
19933 2010-07-30  Bruno Haible  <bruno@clisp.org>
19934
19935         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19936         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19937         a 'char *'.
19938         Reported by Rainer Tammer.
19939
19940 2010-07-30  Bruno Haible  <bruno@clisp.org>
19941
19942         unlink: Update regarding AIX.
19943         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19944         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19945         Reported by Rainer Tammer.
19946
19947 2010-07-30  Bruno Haible  <bruno@clisp.org>
19948
19949         symlink: Update regarding AIX.
19950         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19951         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19952         Reported by Rainer Tammer.
19953
19954 2010-07-30  Bruno Haible  <bruno@clisp.org>
19955
19956         strndup: Update regarding AIX.
19957         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19958         AIX 7.
19959         Reported by Rainer Tammer.
19960
19961 2010-07-30  Bruno Haible  <bruno@clisp.org>
19962
19963         stat: Update regarding AIX.
19964         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19965         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19966         Reported by Rainer Tammer.
19967
19968 2010-07-30  Bruno Haible  <bruno@clisp.org>
19969
19970         truncl: Fix autoconf test.
19971         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19972         whether truncl works.
19973         Reported by Rainer Tammer.
19974
19975 2010-07-30  Bruno Haible  <bruno@clisp.org>
19976
19977         round: Update regarding AIX.
19978         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19979         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19980         Reported by Rainer Tammer.
19981
19982 2010-07-30  Bruno Haible  <bruno@clisp.org>
19983
19984         rename: Update regarding AIX.
19985         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19986         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19987         Reported by Rainer Tammer.
19988
19989 2010-07-30  Bruno Haible  <bruno@clisp.org>
19990
19991         printf.m4: Update regarding AIX.
19992         * m4/printf.m4: Update comments regarding AIX.
19993         Reported by Rainer Tammer.
19994
19995 2010-07-30  Bruno Haible  <bruno@clisp.org>
19996
19997         iconv: Update regarding AIX.
19998         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19999         AIX 7.
20000         Reported by Rainer Tammer.
20001
20002 2010-07-30  Bruno Haible  <bruno@clisp.org>
20003
20004         getopt: Update regarding AIX.
20005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20006         no on AIX.
20007         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20008         Reported by Rainer Tammer.
20009
20010 2010-07-30  Bruno Haible  <bruno@clisp.org>
20011
20012         ldexpl; Update regarding AIX.
20013         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20014         on AIX 7.
20015         Reported by Rainer Tammer.
20016
20017 2010-07-30  Bruno Haible  <bruno@clisp.org>
20018
20019         frexpl: Update regarding AIX.
20020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20021         on AIX 7.
20022         Reported by Rainer Tammer.
20023
20024 2010-07-30  Bruno Haible  <bruno@clisp.org>
20025
20026         open, fopen: Update regarding AIX.
20027         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20028         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20029         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20030         * doc/posix-functions/fopen.texi: Likewise.
20031         Reported by Rainer Tammer.
20032
20033 2010-07-30  Bruno Haible  <bruno@clisp.org>
20034
20035         chown: Update doc regarding AIX.
20036         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20037         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20038         Reported by Rainer Tammer.
20039
20040 2010-07-30  Eric Blake  <eblake@redhat.com>
20041
20042         strtod: fix bug in replacement function on AIX
20043         * lib/strtod.c (strtod): Special case broken "0x" parse in
20044         underlying strtod.
20045         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20046         * doc/posix-functions/strtod.texi (strtod): Likewise.
20047         Reported by Rainer Tammer.
20048
20049 2010-07-30  Bruno Haible  <bruno@clisp.org>
20050
20051         mbrlen: Fix cross-compilation guess for AIX.
20052         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20053         guess. Leftover from 2008-12-22.
20054
20055 2010-07-30  Bruno Haible  <bruno@clisp.org>
20056
20057         mbrtowc: Fix cross-compilation guess for AIX.
20058         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20059         guess. Leftover from 2008-12-21.
20060
20061 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20062
20063         init.sh: work around trap limitation of some shells
20064         * tests/init.sh (setup_): Move exit trap outside of shell function.
20065
20066 2010-07-29  Eric Blake  <eblake@redhat.com>
20067
20068         strtod: aid debugging
20069         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20070         understanding why strtod is rejected.
20071
20072 2010-07-28  Bruno Haible  <bruno@clisp.org>
20073
20074         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20075         * lib/unistr/u8-chr.c: Include <string.h>.
20076         * tests/unistr/test-u8-chr.c: Likewise.
20077         * tests/unistr/test-u16-chr.c: Likewise.
20078         * tests/unistr/test-u32-chr.c: Likewise.
20079         * tests/unistr/test-u8-strchr.c: Likewise.
20080         * tests/unistr/test-u16-strchr.c: Likewise.
20081         * tests/unistr/test-u32-strchr.c: Likewise.
20082         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20083         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20084         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20085         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20086
20087 2010-07-28  Bruno Haible  <bruno@clisp.org>
20088
20089         Use spaces for indentation, not tabs.
20090         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20091
20092 2010-07-27  Bruno Haible  <bruno@clisp.org>
20093
20094         mbspcasecmp: Fix function specification.
20095         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20096         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20097         Reported by Eric Blake <eblake@redhat.com>.
20098
20099 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20100
20101         timespec: use cast and not conditional, as truncation isn't possible
20102         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20103         instead of a conditional.  Comment about the situation in more detail.
20104         This undoes most of the 2009-10-29 patch.
20105
20106 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20107
20108         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20109         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20110         * lib/unistr/u8-strchr.c: Likewise.
20111         * modules/unistr/u8-chr: Depend on memchr.
20112
20113         unistr/u*-strchr: add tests
20114         * modules/unistr/u8-strchr-tests: New file.
20115         * modules/unistr/u16-strchr-tests: New file.
20116         * modules/unistr/u32-strchr-tests: New file.
20117         * tests/unistr/test-strchr.h: New file.
20118         * tests/unistr/test-u8-strchr.c: New file.
20119         * tests/unistr/test-u16-strchr.c: New file.
20120         * tests/unistr/test-u32-strchr.c: New file.
20121
20122         unistr/u*-chr: test multibyte sequences more
20123         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20124         test vector.
20125         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20126         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20127         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20128
20129         unistr/u*-chr: test multibyte sequences
20130         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20131
20132         unistr/u*-chr: prepare for multibyte tests
20133         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20134         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20135         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20136         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20137         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20138         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20139
20140 2010-07-18  Bruno Haible  <bruno@clisp.org>
20141
20142         unistr/u8-strchr: Optimize non-ASCII argument case.
20143         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20144         because the first byte often matches anyway.
20145         Reported by Pádraig Brady <P@draigbrady.com>.
20146
20147 2010-07-15  Karl Berry  <karl@gnu.org>
20148
20149         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20150
20151 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20152
20153         getcwd: on Solaris, work better if ancestors are inaccessible
20154         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20155         buffer and size, try again with a large buffer.  This works better
20156         on Solaris, since its getcwd succeeds even if the path to the root
20157         is inaccessible, and this is helpful in common cases such as .zfs
20158         hidden directories.  Problem reported by J Chapman Flack in
20159         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20160         Use system getcwd if it's declared, not merely if it's partly
20161         working; use the partly-working test only to avoid needless effort
20162         if the system getcwd fails.
20163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20164         comment that was already obsolete and is now even more obsolete.
20165         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20166         now might call strdup.
20167
20168 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20169
20170         pthread: Add enough so that coreutils/src/sort.c compiles.
20171         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20172         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20173         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20174         Include <sys/types.h>, in case it defines pthread_t.
20175         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20176         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20177         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20178         (pthread_rwlockattr_t, pthread_spinlock_t):
20179         New typedefs, if HAVE_PTHREAD_T is not defined.
20180         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20181         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20182         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20183         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20184         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20185         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20186         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20187         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20188         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20189         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20190         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20191         New macros.
20192         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20193         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20194         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20195         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20196         (pthread_spin_unlock): New dummy functions.
20197         (pthread_create): Return EAGAIN; don't set errno.
20198         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20199         require AC_C_INLINE.
20200         * modules/pthread (Depends-on): Add sched, time.
20201         (pthread.h): Use AM_V_GEN.
20202
20203 2010-07-13  Bruno Haible  <bruno@clisp.org>
20204
20205         striconveh: Don't malloc memory if the result buffer is sufficient.
20206         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20207         buffer if its size is sufficient.
20208         Reported by Ludovic Courtès <ludo@gnu.org>.
20209
20210 2010-07-13  Bruno Haible  <bruno@clisp.org>
20211
20212         strtod: Add safety check.
20213         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20214
20215 2010-07-12  Bruno Haible  <bruno@clisp.org>
20216
20217         Unify tests that set gl_cv_func_ldexpl_no_libm.
20218         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20219         gl_FUNC_LDEXPL.
20220         (gl_FUNC_LDEXPL): Invoke it.
20221         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20222
20223 2010-07-12  Bruno Haible  <bruno@clisp.org>
20224
20225         Unify tests that set gl_cv_func_ldexp_no_libm.
20226         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20227         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20228         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20229         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20230         * modules/strtod (Files): Add m4/ldexp.m4.
20231
20232 2010-07-12  Bruno Haible  <bruno@clisp.org>
20233
20234         Unify tests that set gl_cv_func_frexpl_no_libm.
20235         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20236         gl_FUNC_FREXPL_NO_LIBM.
20237         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20238         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20239
20240 2010-07-12  Bruno Haible  <bruno@clisp.org>
20241
20242         Unify tests that set gl_cv_func_frexp_no_libm.
20243         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20244         gl_FUNC_FREXP_NO_LIBM.
20245         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20246         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20247
20248 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20249
20250         memcoll: clarify sizes versus lengths, document better, and tweak perf
20251         * lib/memcoll.c (strcoll_loop, memcoll0):
20252         Improve quality of descriptive comments.  Name variables
20253         consistently as to whether they are lengths (which do not include
20254         terminating null) versus sizes (which do).
20255         * lib/xmemcoll.c (xmemcoll0): Likewise.
20256         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20257         returned when s1size == 0; this is easier to compile and saves
20258         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20259
20260 2010-07-12  Bruno Haible  <bruno@clisp.org>
20261
20262         Tests for module '_Exit'.
20263         * modules/_Exit-tests: New file.
20264         * tests/test-_Exit.sh: New file.
20265         * tests/test-_Exit.c: New file.
20266
20267         New module '_Exit'.
20268         * lib/stdlib.in.h (__attribute__): New macro.
20269         (_Exit): New declaration.
20270         * lib/_Exit.c: New file.
20271         * m4/_Exit.m4: New file.
20272         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20273         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20274         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20275         * modules/_Exit: New file.
20276         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20277         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20278
20279 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20280
20281         strtod: make it more-accurate typically, and don't require libm
20282         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20283         Include limits.h.  Don't include string.h.
20284         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20285         (locale_isspace): New function, so that no casts are needed to
20286         check whether *s is a space.
20287         (ldexp): Provide an unused dummy if not available.
20288         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20289         (strtod): Use them.  This implementation prefers to use the
20290         underlying strtod if available, falling back on our own code
20291         only to fix known bugs.  This is more likely to produce an
20292         accurate result.  Also, it avoids the use of libm functions.
20293         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20294         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20295         was absent, but it caused a test failure with coreutils.
20296         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20297         with libm.
20298         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20299         * modules/strtod-tests (Makefile.am): Likewise.
20300
20301 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20302             Bruno Haible  <bruno@clisp.org>
20303
20304         unistr/u8-strchr: Optimize ASCII argument case.
20305         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20306
20307 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20308
20309         (x)memcoll: minor tweaks
20310         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20311         is after the type that it qualifies.
20312         (memcoll0): Likewise.
20313         * lib/memcoll.h (memcoll0): Likewise.
20314         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20315         * lib/xmemcoll.h (xmemcoll0): Likewise.
20316         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20317         differs from memcoll in that the NUL byte is part of the argument.
20318         Omit the abort-checks, as performance is a real issue here.  Plus,
20319         the checks were wrong anyway (an off-by-one error).  Omit local
20320         variable 'diff', as it's a bit clearer that way.
20321         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20322         no longer needed.
20323
20324 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20325
20326         (x)memcoll: speedup when input is known to be NUL delimited
20327         * lib/memcoll.c: Include stdlib.
20328         (memcoll0): New function.
20329         (strcoll_loop): New function, refactored for use in both memcoll
20330         and memcoll0.
20331         * lib/memcoll.h (memcoll0): Add prototype.
20332         * lib/xmemcoll.c (xmemcoll0): New function.
20333         (collate_error): New function, refactored for use in both xmemcoll
20334         and xmemcoll0.
20335         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20336         * m4/memcoll.m4: add inline invocation.
20337
20338 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20339
20340         * build-aux/bootstrap: Remove any local translations
20341         from the translation project synchronization directory,
20342         so that local only translations are not distributed.
20343
20344 2010-07-04  Bruno Haible  <bruno@clisp.org>
20345
20346         fsusage: Clarify which code applies to which platforms.
20347         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20348         platform.
20349         * lib/fsusage.c (get_fs_usage): Likewise.
20350
20351 2010-07-04  Bruno Haible  <bruno@clisp.org>
20352
20353         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20354         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20355         Reported by Martin Lambers <marlam@marlam.de>.
20356
20357 2010-07-04  Jim Meyering  <meyering@redhat.com>
20358
20359         hash: once again explicitly disallow insertion of NULL
20360         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20361         inserting a NULL pointer cannot work with these functions.
20362         Add a comment with details.
20363         This reverts part of the 2010-07-01 commit, 5bef1a35
20364         "hash: extend module to deal with non-pointer keys".
20365
20366 2010-07-01  Bruno Haible  <bruno@clisp.org>
20367
20368         stdbool: Update doc.
20369         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20370         Info from Christian Weisgerber <naddy@mips.inka.de>.
20371
20372 2010-07-01  Jim Meyering  <meyering@redhat.com>
20373
20374         hash: extend module to deal with non-pointer keys
20375         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20376         but that allows insertion of non-pointer entries.
20377         Do not disallow an ENTRY value of NULL.
20378         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20379         * lib/hash.h (hash_insert0): Declare.
20380
20381 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20382
20383         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20384         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20385         not present (i.e. with autoconf 2.59 and when using gettextize, not
20386         gnulib), require AC_GNU_SOURCE instead.
20387
20388 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20389
20390         idpriv-drop: Fix tests.
20391         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20392         not to the test-idpriv-droptemp program.
20393
20394 2010-06-29  Bruno Haible  <bruno@clisp.org>
20395
20396         string: Fix syntax error with g++ 2.96.
20397         * lib/string.in.h (__pure__): Remove definition.
20398         (_GL_ATTRIBUTE_PURE): New macro.
20399         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20400         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20401         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20402
20403 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20404
20405         unitypes: Fix bug introduced on 2010-05-18.
20406         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20407
20408 2010-06-22  Eric Blake  <eblake@redhat.com>
20409
20410         memmem: slight optimization
20411         * lib/str-two-way.h (critical_factorization): Update comments.
20412         Reduce work during factorization phase.
20413         Reported by Carlos Bueno <carlos@bueno.org>.
20414
20415 2010-06-21  Bruno Haible  <bruno@clisp.org>
20416
20417         Fix HAVE_CALLOC_POSIX misnomer.
20418         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20419         !HAVE_CALLOC_POSIX.
20420         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20421         HAVE_CALLOC_POSIX.
20422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20423         instead of HAVE_CALLOC_POSIX.
20424         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20425         HAVE_CALLOC_POSIX.
20426
20427         Use modern idiom for calloc() replacement.
20428         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20429         AC_FUNC_CALLOC.
20430         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20431         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20432         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20433         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20434         (gl_REPLACE_CALLOC): New macro.
20435
20436 2010-06-21  Bruno Haible  <bruno@clisp.org>
20437
20438         Fix HAVE_REALLOC_POSIX misnomer.
20439         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20440         !HAVE_REALLOC_POSIX.
20441         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20442         HAVE_REALLOC_POSIX.
20443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20444         instead of HAVE_REALLOC_POSIX.
20445         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20446         HAVE_REALLOC_POSIX.
20447
20448         Use modern idiom for realloc() replacement.
20449         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20450         AC_FUNC_REALLOC.
20451         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20452         Autoconf's AC_FUNC_REALLOC.
20453         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20454         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20455         (gl_REPLACE_REALLOC): New macro.
20456         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20457
20458 2010-06-21  Bruno Haible  <bruno@clisp.org>
20459
20460         Fix HAVE_MALLOC_POSIX misnomer.
20461         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20462         !HAVE_MALLOC_POSIX.
20463         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20464         HAVE_MALLOC_POSIX.
20465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20466         instead of HAVE_MALLOC_POSIX.
20467         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20468         HAVE_MALLOC_POSIX.
20469
20470         Use modern idiom for malloc() replacement.
20471         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20472         AC_FUNC_MALLOC.
20473         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20474         Autoconf's AC_FUNC_MALLOC.
20475         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20476         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20477         (gl_REPLACE_MALLOC): New macro.
20478         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20479
20480 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20481
20482         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20483         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20484         This macro takes 3 arguments, not 4.
20485
20486 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20487
20488         ipv6: fix detection under mingw
20489         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20490         in6_addr.
20491
20492 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20493
20494         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20495         that strtod() works when cross-compiling to a glibc version known
20496         to work.
20497
20498 2010-06-15  Bruno Haible  <bruno@clisp.org>
20499
20500         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20501
20502 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20503
20504         select: Correct timeout.
20505         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20506
20507 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20508
20509         git-version-gen: init shell var to avoid env var influence
20510         * build-aux/git-version-gen (v): Init shell var to empty.
20511
20512 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20513
20514         priv-set: Don't assume that priv.h exists merely because getppriv does.
20515         See Jan Andersen's bug report about AIX 5L in
20516         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20517         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20518         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20519         * lib/priv-set.h: Likewise.
20520         * tests/test-priv-set.c: Likewise.
20521
20522 2010-06-13  Bruno Haible  <bruno@clisp.org>
20523
20524         relocatable: Make it easier to test whether to install wrappers.
20525         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20526         RELOCATABLE_VIA_WRAPPER.
20527
20528 2010-06-13  Bruno Haible  <bruno@clisp.org>
20529
20530         gnulib-tool: Display specified modules and dependencies differently.
20531         * gnulib-tool (func_show_module_list): New function.
20532         (func_import, func_create_testdir): Invoke it.
20533         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20534
20535 2010-06-13  Bruno Haible  <bruno@clisp.org>
20536
20537         gnulib-tool: Align code of func_import and func_create_testdir.
20538         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20539         specified_modules.
20540
20541 2010-06-12  Jim Meyering  <meyering@redhat.com>
20542
20543         test-inttostr: avoid spurious failure on Solaris 9
20544         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20545         to accept "%ju".  Reported by Bruno Haible.
20546
20547 2010-06-11  Jim Meyering  <meyering@redhat.com>
20548
20549         test-sys_socket: mark variables as used more readably
20550         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20551         as "used" explicitly via (void) statement casts.  This is more
20552         readable than using them in an artificial return expression.
20553         Suggestion from Bruno Haible.
20554
20555 2010-06-11  Bruno Haible  <bruno@clisp.org>
20556
20557         Avoid some more warnings from "gcc -Wwrite-strings".
20558         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20559         to 'const char *'.
20560         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20561         * tests/test-c-strcasestr.c (main): Likewise.
20562         * tests/test-mbscasestr1.c (main): Likewise.
20563         * tests/test-mbscasestr2.c (main): Likewise.
20564         * tests/test-memmem.c (main): Likewise.
20565         * tests/test-strstr.c (main): Likewise.
20566         * tests/test-strcasestr.c (main): Likewise.
20567
20568 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20569
20570         init.sh: change framework_failure_ to fail with status 99, not 1
20571         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20572         automake's parallel-tests rule that this is an unexpected failure,
20573         even if the test is listed in XFAIL_TESTS.
20574
20575 2010-06-11  Jim Meyering  <meyering@redhat.com>
20576
20577         test-inttostr: avoid warnings about 4-6KB literal strings
20578         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20579         Include "macros.h", for its definition of ASSERT.
20580         (CK): s/assert/ASSERT/
20581         * modules/inttostr-tests (Files): Add macros.h.
20582
20583         init.sh: don't use $ME_ or skip_ before they are defined
20584         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20585         their first uses.  Also hoist their companions: warn_, fail_,
20586         framework_failure_, $stderr_fileno.  Prompted by a patch from
20587         Stefano Lattarini.
20588
20589         test-sys_socket: avoid set-but-not-used warnings from gcc
20590         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20591         avoid warning about set-but-not-used variables.
20592
20593         test-xvasprintf: avoid 'const' discard warnings
20594         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20595         "const" when assigning from literal strings.
20596         (test_xasprintf): Add "void" in function argument list to placate
20597         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20598
20599         tests: avoid compilation warnings in argmatch and exclude tests...
20600         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20601         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20602         Since it always exits, declare with the "noreturn" attribute.
20603         * tests/test-argmatch.c: Likewise.
20604
20605         tests: avoid 'const' discard warnings in mbsstr tests
20606         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20607         * tests/test-mbsstr2.c (main): Likewise.
20608
20609         test-verify: avoid warning from gcc's -Wmissing-declarations
20610         * tests/test-verify.c (function): Declare to be static.
20611
20612         test-inttostr.c: include <string.h> for use of strcmp
20613         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20614
20615         test-linkat: avoid failed assertion on "other" architectures
20616         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20617         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20618         sparc: https://bugs.launchpad.net/bugs/591968
20619
20620 2010-06-11  Jim Meyering  <meyering@redhat.com>
20621
20622         printf.m4: avoid autoconf's "Expanded Before Required" warning
20623         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20624         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20625         autoconf warning.
20626
20627 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20628
20629         Replacement header templates are now named with ".in", not "_".
20630         * doc/gnulib-intro.texi: Correct.
20631
20632 2010-06-10  Jim Meyering  <meyering@redhat.com>
20633
20634         inttostr-tests: depend on snprintf, not snprintf-posix
20635         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20636         snprintf-posix, to avoid this aclocal failure:
20637           missing file gnulib-tests/vasnprintf.c
20638           configure.ac:45: error: expected source file, required through \
20639           AC_LIBSOURCES, not found
20640
20641 2010-06-10  Jim Meyering  <meyering@redhat.com>
20642
20643         inttostr: add a new function, inttostr, and tests
20644         The namesake function was not available.  The existence of the
20645         template file, inttostr.c makes its addition nontrivial.
20646         * lib/anytostr.c: Rename from inttostr.c.
20647         (anytostr): Rename from inttostr.
20648         * lib/inttostr.c: New file.
20649         * modules/inttostr (Files): Add anytostr.c.
20650         (Makefile.am): Set lib_SOURCES instead of ...
20651         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20652         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20653         * lib/offtostr.c: Likewise.
20654         * lib/uinttostr.c: Likewise.
20655         * lib/umaxtostr.c: Likewise.
20656         * modules/inttostr-tests: New file.
20657         * tests/test-inttostr.c: New file.  Test these functions.
20658
20659 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20660             Bruno Haible  <bruno@clisp.org>
20661
20662         Add "Extending Gnulib" chapter to manual.
20663         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20664         chapter.
20665         (Extending Gnulib): New chapter.
20666         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20667         chapter.
20668
20669 2010-06-09  Bruno Haible  <bruno@clisp.org>
20670
20671         Avoid relocwrapper link errors due to gnulib replacement functions.
20672         * lib/areadlink.c: Use the system's malloc, realloc functions.
20673         (areadlink): Set errno to ENOMEM explicitly.
20674         * modules/areadlink (Depends-on): Remove malloc-posix.
20675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20676
20677 2010-06-09  Bruno Haible  <bruno@clisp.org>
20678
20679         Avoid relocwrapper link errors due to gnulib replacement functions.
20680         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20681         * lib/malloca.c: Likewise.
20682         * lib/relocatable.c: Likewise.
20683         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20684         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20685         * lib/setenv.c: Use the system's malloc, realloc functions.
20686         * lib/strerror.c: Use the system's sprintf function.
20687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20688
20689 2010-06-04  Bruno Haible  <bruno@clisp.org>
20690
20691         Prefer documented low-level autoconf macro names.
20692         * m4/lib-link.m4: Use m4_translit instead of translit.
20693         * m4/environ.m4: Likewise.
20694         * m4/mathfunc.m4: Likewise.
20695         * m4/onceonly.m4: Likewise.
20696         * m4/stdint.m4: Likewise.
20697         Suggested by Eric Blake.
20698
20699 2010-06-04  Martin Lambers  <marlam@marlam.de>
20700             Bruno Haible  <bruno@clisp.org>
20701
20702         havelib: Allow library names with '+' characters.
20703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20704         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20705
20706 2010-06-09  Bruno Haible  <bruno@clisp.org>
20707
20708         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20709         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20710         realloc failed.
20711
20712 2010-06-08  Peter Simons  <simons@cryp.to>
20713
20714         maint.mk: make the news-check rule more configurable
20715         * top/maint.mk (news-check-lines-spec): New variable.
20716         (news-check): Use "sed -n 1,10p" in place of "head".
20717
20718 2010-06-07  Jim Meyering  <meyering@redhat.com>
20719
20720         do-release-commit-and-tag: fix typo in --help
20721         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20722
20723         regex: avoid new dead-code warning with gcc-4.6.0
20724         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20725         if-block containing a while-loop.  It's been unused for at least
20726         5 years.
20727
20728 2010-06-05  Bruno Haible  <bruno@clisp.org>
20729
20730         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20731         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20732
20733 2010-06-04  Bruno Haible  <bruno@clisp.org>
20734
20735         Update to GNU gettext 0.18.1.
20736         * modules/gettext (configure.ac): Require gettext infrastructure from
20737         version 0.18.1.
20738
20739 2010-06-03  Bruno Haible  <bruno@clisp.org>
20740
20741         Don't use AC_LIBOBJ with file names in subdirectories.
20742         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20743         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20744         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20745         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20746         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20747         gl_LIBUNISTRING_LIBSOURCE.
20748         (Makefile.am): Augment lib_SOURCES here, conditionally.
20749         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20750
20751 2010-06-03  Bruno Haible  <bruno@clisp.org>
20752
20753         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20754         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20755         expansion does not end with a newline.
20756         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20757         unnecessary newline.
20758
20759 2010-06-03  Bruno Haible  <bruno@clisp.org>
20760
20761         Reduce dependencies.
20762         * tests/test-quotearg.h: New file, extracted from
20763         tests/test-quotearg.c.
20764         * tests/test-quotearg-simple.c: New file, extracted from
20765         tests/test-quotearg.c.
20766         * tests/test-quotearg.c: Don't include <ctype.h>.
20767         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20768         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20769         use_quote_double_quotes, use_quotearg_colon): Moved to
20770         tests/test-quotearg.h.
20771         (results_g, flag_results, custom_quotes, custom_results): Moved
20772         to tests/test-quotearg-simple.c.
20773         (main): Moved the part that does not depend on gettext to
20774         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20775         performed.
20776         * modules/quotearg-simple: New file.
20777         * modules/quotearg-simple-tests: New file.
20778         * modules/quotearg (Depends-on): Add quotearg-simple.
20779         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20780         (Files): Add tests/test-quotearg.h.
20781         Reported by Paolo Bonzini.
20782
20783 2010-06-03  Bruno Haible  <bruno@clisp.org>
20784
20785         Reduce dependencies.
20786         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20787
20788 2010-06-03  Bruno Haible  <bruno@clisp.org>
20789
20790         time: Undefine more broken macros.
20791         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20792         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20793         Reported by Eric Blake.
20794
20795 2010-06-03  Bruno Haible  <bruno@clisp.org>
20796
20797         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20798         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20799         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20800         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20801         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20802         Reported by Ludovic Courtès <ludo@gnu.org>.
20803
20804 2010-06-02  Eric Blake  <eblake@redhat.com>
20805
20806         time: work with mingw + pthreads-win32 library
20807         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20808         if timespec is defined only in pthread.h.
20809         * modules/time (Makefile.am): Substitute it.
20810         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20811         <pthread.h>, when needed.
20812         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20813         from the library.
20814
20815 2010-05-31  Bruno Haible  <bruno@clisp.org>
20816
20817         Avoid expanding two macros in the wrong order.
20818         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20819         gl_LIBUNISTRING if it is defined.
20820         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20821         autoconf >= 2.64.
20822         Reported by Ludovic Courtès <ludo@gnu.org>.
20823
20824 2010-05-27  Jim Meyering  <meyering@redhat.com>
20825
20826         maint.mk: also prohibit "#undef" of always-defined symbols
20827         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20828         Allow more than one space before the symbol name.
20829         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20830         the regexp uses alternation.
20831
20832 2010-05-26  Eric Blake  <eblake@redhat.com>
20833
20834         maint.mk: avoid echo -e
20835         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20836         Convert all uses of echo -* to printf.
20837         Reported by Matthias Bolte.
20838
20839 2010-05-25  Bruno Haible  <bruno@clisp.org>
20840
20841         Update to GNU gettext 0.18, part 2.
20842         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20843         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20844
20845 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20846
20847         Add missing include in test-pwrite.c.
20848         * tests/test-pwrite.c: Include string.h, for strcmp.
20849
20850 2010-05-24  Bruno Haible  <bruno@clisp.org>
20851
20852         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20853
20854 2010-05-24  Bruno Haible  <bruno@clisp.org>
20855
20856         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20857         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20858         iconveh_error argument.
20859         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20860         U_STRCONV_TO_LOCALE.
20861         * lib/unistr/u16-strcoll.c: Likewise.
20862         * lib/unistr/u32-strcoll.c: Likewise.
20863         * modules/unistr/u8-strcoll (Depends-on): Add
20864         uniconv/u8-strconv-to-enc, localcharset. Remove
20865         uniconv/u8-strconv-to-locale.
20866         (configure.ac): Bump version number.
20867         * modules/unistr/u16-strcoll (Depends-on): Add
20868         uniconv/u16-strconv-to-enc, localcharset. Remove
20869         uniconv/u16-strconv-to-locale.
20870         (configure.ac): Bump version number.
20871         * modules/unistr/u32-strcoll (Depends-on): Add
20872         uniconv/u32-strconv-to-enc, localcharset. Remove
20873         uniconv/u32-strconv-to-locale.
20874         (configure.ac): Bump version number.
20875
20876 2010-05-24  Bruno Haible  <bruno@clisp.org>
20877
20878         Avoid a test failure on NetBSD 5.0.
20879         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20880         an iconv() bug.
20881
20882 2010-05-24  Bruno Haible  <bruno@clisp.org>
20883
20884         Adjust #include directive style.
20885         * modules/regex (Includes): Recommend to write <regex.h>.
20886
20887 2010-05-24  Bruno Haible  <bruno@clisp.org>
20888
20889         regex: Don't require alloca.
20890         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20891         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20892         only inside if (0).
20893
20894 2010-05-23  Jim Meyering  <meyering@redhat.com>
20895
20896         test-renameat.c: include <sys/stat.h>
20897         * tests/test-renameat.c: Include <sys/stat.h>; required for
20898         definition of S_IS* macros.
20899
20900 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20901
20902         Update maintainer documentation for 'relocatable-prog' module.
20903         * doc/relocatable-maint.texi: Update.
20904         Comments by Bruno Haible.
20905
20906 2010-05-23  Bruno Haible  <bruno@clisp.org>
20907
20908         git-merge-changelog: Enable --split-merged-entry by default.
20909         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20910         (usage): Don't mention this option any more.
20911         Reported by Ralf Wildenhues.
20912
20913 2010-05-23  Jim Meyering  <meyering@redhat.com>
20914
20915         test-pwrite: do not leave behind a test file named "out"
20916         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20917         The trivial-looking use of init.sh is really necessary.
20918         It ensures that the temporary file, "out", is created in
20919         a temporary directory, and removed upon termination.
20920         * tests/test-pwrite.sh: Re-add file.
20921         * modules/pwrite-tests: Reference it.
20922
20923 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20924
20925         Fix output redirection buglet in init.sh.
20926         * tests/init.sh: Fix redirection of stderr.
20927
20928 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20929
20930         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20931
20932 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20933
20934         * modules/valgrind-tests: New file.
20935         * m4/valgrind-tests.m4: New file.
20936         * doc/valgrind-tests.texi: New file.
20937         * doc/gnulib.texi (Running self-tests under valgrind): New
20938         section.
20939
20940 2010-05-19  Bruno Haible  <bruno@clisp.org>
20941
20942         Clean up dead code in recent commit.
20943         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20944         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20945         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20946         Suggested by Paolo Bonzini.
20947
20948 2010-05-19  Bruno Haible  <bruno@clisp.org>
20949
20950         Avoid valgrind error reports from libunistring.
20951         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20952         * modules/libunistring (Files): Add it.
20953         * modules/libunistring-optional (Files): Likewise.
20954
20955 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20956             Bruno Haible  <bruno@clisp.org>
20957
20958         New module 'libunistring-optional'.
20959         * modules/libunistring-optional: New file.
20960         * m4/libunistring-base.m4: New file.
20961         * m4/libunistring-optional.m4: New file.
20962         * lib/unicase.in.h: Renamed from lib/unicase.h.
20963         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20964         * lib/unictype.in.h: Renamed from lib/unictype.h.
20965         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20966         * lib/uniname.in.h: Renamed from lib/uniname.h.
20967         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20968         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20969         * lib/unistr.in.h: Renamed from lib/unistr.h.
20970         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20971         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20972         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20973         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20974         gl_LIBUNISTRING. If the library was found, determine the installed
20975         version and set LIBUNISTRING_VERSION.
20976         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20977         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20978         handle a configuration option --with-included-libunistring.
20979         * modules/libunistring (Files): Add m4/absolute-header.m4.
20980         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20981         Add m4/libunistring-base.m4.
20982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20983         (Makefile.am): Build unicase.h from unicase.in.h.
20984         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20985         Add m4/libunistring-base.m4.
20986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20987         (Makefile.am): Build uniconv.h from uniconv.in.h.
20988         * modules/unictype/base (Files): Use unictype.in.h instead of
20989         unictype.h. Add m4/libunistring-base.m4.
20990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20991         (Makefile.am): Build unictype.h from unictype.in.h.
20992         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20993         Add m4/libunistring-base.m4.
20994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20995         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20996         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20997         Add m4/libunistring-base.m4.
20998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20999         (Makefile.am): Build uniname.h from uniname.in.h.
21000         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21001         Add m4/libunistring-base.m4.
21002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21003         (Makefile.am): Build uninorm.h from uninorm.in.h.
21004         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21005         unistdio.h. Add m4/libunistring-base.m4.
21006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21007         (Makefile.am): Build unistdio.h from unistdio.in.h.
21008         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21009         Add m4/libunistring-base.m4.
21010         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21011         (Makefile.am): Build unistr.h from unistr.in.h.
21012         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21013         Add m4/libunistring-base.m4.
21014         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21015         (Makefile.am): Build unitypes.h from unitypes.in.h.
21016         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21017         Add m4/libunistring-base.m4.
21018         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21019         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21020         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21021         uniwidth.h. Add m4/libunistring-base.m4.
21022         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21023         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21024         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21025         instead of augmenting lib_SOURCES.
21026         * modules/unicase/empty-suffix-context: Likewise.
21027         * modules/unicase/locale-language: Likewise.
21028         * modules/unicase/tolower: Likewise.
21029         * modules/unicase/totitle: Likewise.
21030         * modules/unicase/toupper: Likewise.
21031         * modules/unicase/u8-casecmp: Likewise.
21032         * modules/unicase/u8-casecoll: Likewise.
21033         * modules/unicase/u8-casefold: Likewise.
21034         * modules/unicase/u8-casexfrm: Likewise.
21035         * modules/unicase/u8-ct-casefold: Likewise.
21036         * modules/unicase/u8-ct-tolower: Likewise.
21037         * modules/unicase/u8-ct-totitle: Likewise.
21038         * modules/unicase/u8-ct-toupper: Likewise.
21039         * modules/unicase/u8-is-cased: Likewise.
21040         * modules/unicase/u8-is-casefolded: Likewise.
21041         * modules/unicase/u8-is-lowercase: Likewise.
21042         * modules/unicase/u8-is-titlecase: Likewise.
21043         * modules/unicase/u8-is-uppercase: Likewise.
21044         * modules/unicase/u8-prefix-context: Likewise.
21045         * modules/unicase/u8-suffix-context: Likewise.
21046         * modules/unicase/u8-tolower: Likewise.
21047         * modules/unicase/u8-totitle: Likewise.
21048         * modules/unicase/u8-toupper: Likewise.
21049         * modules/unicase/u16-casecmp: Likewise.
21050         * modules/unicase/u16-casecoll: Likewise.
21051         * modules/unicase/u16-casefold: Likewise.
21052         * modules/unicase/u16-casexfrm: Likewise.
21053         * modules/unicase/u16-ct-casefold: Likewise.
21054         * modules/unicase/u16-ct-tolower: Likewise.
21055         * modules/unicase/u16-ct-totitle: Likewise.
21056         * modules/unicase/u16-ct-toupper: Likewise.
21057         * modules/unicase/u16-is-cased: Likewise.
21058         * modules/unicase/u16-is-casefolded: Likewise.
21059         * modules/unicase/u16-is-lowercase: Likewise.
21060         * modules/unicase/u16-is-titlecase: Likewise.
21061         * modules/unicase/u16-is-uppercase: Likewise.
21062         * modules/unicase/u16-prefix-context: Likewise.
21063         * modules/unicase/u16-suffix-context: Likewise.
21064         * modules/unicase/u16-tolower: Likewise.
21065         * modules/unicase/u16-totitle: Likewise.
21066         * modules/unicase/u16-toupper: Likewise.
21067         * modules/unicase/u32-casecmp: Likewise.
21068         * modules/unicase/u32-casecoll: Likewise.
21069         * modules/unicase/u32-casefold: Likewise.
21070         * modules/unicase/u32-casexfrm: Likewise.
21071         * modules/unicase/u32-ct-casefold: Likewise.
21072         * modules/unicase/u32-ct-tolower: Likewise.
21073         * modules/unicase/u32-ct-totitle: Likewise.
21074         * modules/unicase/u32-ct-toupper: Likewise.
21075         * modules/unicase/u32-is-cased: Likewise.
21076         * modules/unicase/u32-is-casefolded: Likewise.
21077         * modules/unicase/u32-is-lowercase: Likewise.
21078         * modules/unicase/u32-is-titlecase: Likewise.
21079         * modules/unicase/u32-is-uppercase: Likewise.
21080         * modules/unicase/u32-prefix-context: Likewise.
21081         * modules/unicase/u32-suffix-context: Likewise.
21082         * modules/unicase/u32-tolower: Likewise.
21083         * modules/unicase/u32-totitle: Likewise.
21084         * modules/unicase/u32-toupper: Likewise.
21085         * modules/unicase/ulc-casecmp: Likewise.
21086         * modules/unicase/ulc-casecoll: Likewise.
21087         * modules/unicase/ulc-casexfrm: Likewise.
21088         * modules/uniconv/u8-conv-from-enc: Likewise.
21089         * modules/uniconv/u8-conv-to-enc: Likewise.
21090         * modules/uniconv/u8-strconv-from-enc: Likewise.
21091         * modules/uniconv/u8-strconv-from-locale: Likewise.
21092         * modules/uniconv/u8-strconv-to-enc: Likewise.
21093         * modules/uniconv/u8-strconv-to-locale: Likewise.
21094         * modules/uniconv/u16-conv-from-enc: Likewise.
21095         * modules/uniconv/u16-conv-to-enc: Likewise.
21096         * modules/uniconv/u16-strconv-from-enc: Likewise.
21097         * modules/uniconv/u16-strconv-from-locale: Likewise.
21098         * modules/uniconv/u16-strconv-to-enc: Likewise.
21099         * modules/uniconv/u16-strconv-to-locale: Likewise.
21100         * modules/uniconv/u32-conv-from-enc: Likewise.
21101         * modules/uniconv/u32-conv-to-enc: Likewise.
21102         * modules/uniconv/u32-strconv-from-enc: Likewise.
21103         * modules/uniconv/u32-strconv-from-locale: Likewise.
21104         * modules/uniconv/u32-strconv-to-enc: Likewise.
21105         * modules/uniconv/u32-strconv-to-locale: Likewise.
21106         * modules/unictype/bidicategory-byname: Likewise.
21107         * modules/unictype/bidicategory-name: Likewise.
21108         * modules/unictype/bidicategory-of: Likewise.
21109         * modules/unictype/bidicategory-test: Likewise.
21110         * modules/unictype/block-list: Likewise.
21111         * modules/unictype/block-test: Likewise.
21112         * modules/unictype/category-C: Likewise.
21113         * modules/unictype/category-Cc: Likewise.
21114         * modules/unictype/category-Cf: Likewise.
21115         * modules/unictype/category-Cn: Likewise.
21116         * modules/unictype/category-Co: Likewise.
21117         * modules/unictype/category-Cs: Likewise.
21118         * modules/unictype/category-L: Likewise.
21119         * modules/unictype/category-Ll: Likewise.
21120         * modules/unictype/category-Lm: Likewise.
21121         * modules/unictype/category-Lo: Likewise.
21122         * modules/unictype/category-Lt: Likewise.
21123         * modules/unictype/category-Lu: Likewise.
21124         * modules/unictype/category-M: Likewise.
21125         * modules/unictype/category-Mc: Likewise.
21126         * modules/unictype/category-Me: Likewise.
21127         * modules/unictype/category-Mn: Likewise.
21128         * modules/unictype/category-N: Likewise.
21129         * modules/unictype/category-Nd: Likewise.
21130         * modules/unictype/category-Nl: Likewise.
21131         * modules/unictype/category-No: Likewise.
21132         * modules/unictype/category-P: Likewise.
21133         * modules/unictype/category-Pc: Likewise.
21134         * modules/unictype/category-Pd: Likewise.
21135         * modules/unictype/category-Pe: Likewise.
21136         * modules/unictype/category-Pf: Likewise.
21137         * modules/unictype/category-Pi: Likewise.
21138         * modules/unictype/category-Po: Likewise.
21139         * modules/unictype/category-Ps: Likewise.
21140         * modules/unictype/category-S: Likewise.
21141         * modules/unictype/category-Sc: Likewise.
21142         * modules/unictype/category-Sk: Likewise.
21143         * modules/unictype/category-Sm: Likewise.
21144         * modules/unictype/category-So: Likewise.
21145         * modules/unictype/category-Z: Likewise.
21146         * modules/unictype/category-Zl: Likewise.
21147         * modules/unictype/category-Zp: Likewise.
21148         * modules/unictype/category-Zs: Likewise.
21149         * modules/unictype/category-and: Likewise.
21150         * modules/unictype/category-and-not: Likewise.
21151         * modules/unictype/category-byname: Likewise.
21152         * modules/unictype/category-name: Likewise.
21153         * modules/unictype/category-none: Likewise.
21154         * modules/unictype/category-of: Likewise.
21155         * modules/unictype/category-or: Likewise.
21156         * modules/unictype/category-test: Likewise.
21157         * modules/unictype/combining-class: Likewise.
21158         * modules/unictype/ctype-alnum: Likewise.
21159         * modules/unictype/ctype-alpha: Likewise.
21160         * modules/unictype/ctype-blank: Likewise.
21161         * modules/unictype/ctype-cntrl: Likewise.
21162         * modules/unictype/ctype-digit: Likewise.
21163         * modules/unictype/ctype-graph: Likewise.
21164         * modules/unictype/ctype-lower: Likewise.
21165         * modules/unictype/ctype-print: Likewise.
21166         * modules/unictype/ctype-punct: Likewise.
21167         * modules/unictype/ctype-space: Likewise.
21168         * modules/unictype/ctype-upper: Likewise.
21169         * modules/unictype/ctype-xdigit: Likewise.
21170         * modules/unictype/decimal-digit: Likewise.
21171         * modules/unictype/digit: Likewise.
21172         * modules/unictype/mirror: Likewise.
21173         * modules/unictype/numeric: Likewise.
21174         * modules/unictype/property-alphabetic: Likewise.
21175         * modules/unictype/property-ascii-hex-digit: Likewise.
21176         * modules/unictype/property-bidi-arabic-digit: Likewise.
21177         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21178         * modules/unictype/property-bidi-block-separator: Likewise.
21179         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21180         * modules/unictype/property-bidi-common-separator: Likewise.
21181         * modules/unictype/property-bidi-control: Likewise.
21182         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21183         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21184         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21185         * modules/unictype/property-bidi-european-digit: Likewise.
21186         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21187         * modules/unictype/property-bidi-left-to-right: Likewise.
21188         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21189         * modules/unictype/property-bidi-other-neutral: Likewise.
21190         * modules/unictype/property-bidi-pdf: Likewise.
21191         * modules/unictype/property-bidi-segment-separator: Likewise.
21192         * modules/unictype/property-bidi-whitespace: Likewise.
21193         * modules/unictype/property-byname: Likewise.
21194         * modules/unictype/property-combining: Likewise.
21195         * modules/unictype/property-composite: Likewise.
21196         * modules/unictype/property-currency-symbol: Likewise.
21197         * modules/unictype/property-dash: Likewise.
21198         * modules/unictype/property-decimal-digit: Likewise.
21199         * modules/unictype/property-default-ignorable-code-point: Likewise.
21200         * modules/unictype/property-deprecated: Likewise.
21201         * modules/unictype/property-diacritic: Likewise.
21202         * modules/unictype/property-extender: Likewise.
21203         * modules/unictype/property-format-control: Likewise.
21204         * modules/unictype/property-grapheme-base: Likewise.
21205         * modules/unictype/property-grapheme-extend: Likewise.
21206         * modules/unictype/property-grapheme-link: Likewise.
21207         * modules/unictype/property-hex-digit: Likewise.
21208         * modules/unictype/property-hyphen: Likewise.
21209         * modules/unictype/property-id-continue: Likewise.
21210         * modules/unictype/property-id-start: Likewise.
21211         * modules/unictype/property-ideographic: Likewise.
21212         * modules/unictype/property-ids-binary-operator: Likewise.
21213         * modules/unictype/property-ids-trinary-operator: Likewise.
21214         * modules/unictype/property-ignorable-control: Likewise.
21215         * modules/unictype/property-iso-control: Likewise.
21216         * modules/unictype/property-join-control: Likewise.
21217         * modules/unictype/property-left-of-pair: Likewise.
21218         * modules/unictype/property-line-separator: Likewise.
21219         * modules/unictype/property-logical-order-exception: Likewise.
21220         * modules/unictype/property-lowercase: Likewise.
21221         * modules/unictype/property-math: Likewise.
21222         * modules/unictype/property-non-break: Likewise.
21223         * modules/unictype/property-not-a-character: Likewise.
21224         * modules/unictype/property-numeric: Likewise.
21225         * modules/unictype/property-other-alphabetic: Likewise.
21226         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21227         * modules/unictype/property-other-grapheme-extend: Likewise.
21228         * modules/unictype/property-other-id-continue: Likewise.
21229         * modules/unictype/property-other-id-start: Likewise.
21230         * modules/unictype/property-other-lowercase: Likewise.
21231         * modules/unictype/property-other-math: Likewise.
21232         * modules/unictype/property-other-uppercase: Likewise.
21233         * modules/unictype/property-paired-punctuation: Likewise.
21234         * modules/unictype/property-paragraph-separator: Likewise.
21235         * modules/unictype/property-pattern-syntax: Likewise.
21236         * modules/unictype/property-pattern-white-space: Likewise.
21237         * modules/unictype/property-private-use: Likewise.
21238         * modules/unictype/property-punctuation: Likewise.
21239         * modules/unictype/property-quotation-mark: Likewise.
21240         * modules/unictype/property-radical: Likewise.
21241         * modules/unictype/property-sentence-terminal: Likewise.
21242         * modules/unictype/property-soft-dotted: Likewise.
21243         * modules/unictype/property-space: Likewise.
21244         * modules/unictype/property-terminal-punctuation: Likewise.
21245         * modules/unictype/property-test: Likewise.
21246         * modules/unictype/property-titlecase: Likewise.
21247         * modules/unictype/property-unassigned-code-value: Likewise.
21248         * modules/unictype/property-unified-ideograph: Likewise.
21249         * modules/unictype/property-uppercase: Likewise.
21250         * modules/unictype/property-variation-selector: Likewise.
21251         * modules/unictype/property-white-space: Likewise.
21252         * modules/unictype/property-xid-continue: Likewise.
21253         * modules/unictype/property-xid-start: Likewise.
21254         * modules/unictype/property-zero-width: Likewise.
21255         * modules/unictype/scripts: Likewise.
21256         * modules/unictype/syntax-c-ident: Likewise.
21257         * modules/unictype/syntax-c-whitespace: Likewise.
21258         * modules/unictype/syntax-java-ident: Likewise.
21259         * modules/unictype/syntax-java-whitespace: Likewise.
21260         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21261         * modules/unilbrk/u8-width-linebreaks: Likewise.
21262         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21263         * modules/unilbrk/u16-width-linebreaks: Likewise.
21264         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21265         * modules/unilbrk/u32-width-linebreaks: Likewise.
21266         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21267         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21268         * modules/uniname/uniname: Likewise.
21269         * modules/uninorm/canonical-decomposition: Likewise.
21270         * modules/uninorm/composition: Likewise.
21271         * modules/uninorm/decomposing-form: Likewise.
21272         * modules/uninorm/decomposition: Likewise.
21273         * modules/uninorm/filter: Likewise.
21274         * modules/uninorm/nfc: Likewise.
21275         * modules/uninorm/nfd: Likewise.
21276         * modules/uninorm/nfkc: Likewise.
21277         * modules/uninorm/nfkd: Likewise.
21278         * modules/uninorm/u8-normalize: Likewise.
21279         * modules/uninorm/u8-normcmp: Likewise.
21280         * modules/uninorm/u8-normcoll: Likewise.
21281         * modules/uninorm/u8-normxfrm: Likewise.
21282         * modules/uninorm/u16-normalize: Likewise.
21283         * modules/uninorm/u16-normcmp: Likewise.
21284         * modules/uninorm/u16-normcoll: Likewise.
21285         * modules/uninorm/u16-normxfrm: Likewise.
21286         * modules/uninorm/u32-normalize: Likewise.
21287         * modules/uninorm/u32-normcmp: Likewise.
21288         * modules/uninorm/u32-normcoll: Likewise.
21289         * modules/uninorm/u32-normxfrm: Likewise.
21290         * modules/unistdio/u8-asnprintf: Likewise.
21291         * modules/unistdio/u8-asprintf: Likewise.
21292         * modules/unistdio/u8-snprintf: Likewise.
21293         * modules/unistdio/u8-sprintf: Likewise.
21294         * modules/unistdio/u8-u8-asnprintf: Likewise.
21295         * modules/unistdio/u8-u8-asprintf: Likewise.
21296         * modules/unistdio/u8-u8-snprintf: Likewise.
21297         * modules/unistdio/u8-u8-sprintf: Likewise.
21298         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21299         * modules/unistdio/u8-u8-vasprintf: Likewise.
21300         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21301         * modules/unistdio/u8-u8-vsprintf: Likewise.
21302         * modules/unistdio/u8-vasnprintf: Likewise.
21303         * modules/unistdio/u8-vasprintf: Likewise.
21304         * modules/unistdio/u8-vsnprintf: Likewise.
21305         * modules/unistdio/u8-vsprintf: Likewise.
21306         * modules/unistdio/u16-asnprintf: Likewise.
21307         * modules/unistdio/u16-asprintf: Likewise.
21308         * modules/unistdio/u16-snprintf: Likewise.
21309         * modules/unistdio/u16-sprintf: Likewise.
21310         * modules/unistdio/u16-u16-asnprintf: Likewise.
21311         * modules/unistdio/u16-u16-asprintf: Likewise.
21312         * modules/unistdio/u16-u16-snprintf: Likewise.
21313         * modules/unistdio/u16-u16-sprintf: Likewise.
21314         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21315         * modules/unistdio/u16-u16-vasprintf: Likewise.
21316         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21317         * modules/unistdio/u16-u16-vsprintf: Likewise.
21318         * modules/unistdio/u16-vasnprintf: Likewise.
21319         * modules/unistdio/u16-vasprintf: Likewise.
21320         * modules/unistdio/u16-vsnprintf: Likewise.
21321         * modules/unistdio/u16-vsprintf: Likewise.
21322         * modules/unistdio/u32-asnprintf: Likewise.
21323         * modules/unistdio/u32-asprintf: Likewise.
21324         * modules/unistdio/u32-snprintf: Likewise.
21325         * modules/unistdio/u32-sprintf: Likewise.
21326         * modules/unistdio/u32-u32-asnprintf: Likewise.
21327         * modules/unistdio/u32-u32-asprintf: Likewise.
21328         * modules/unistdio/u32-u32-snprintf: Likewise.
21329         * modules/unistdio/u32-u32-sprintf: Likewise.
21330         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21331         * modules/unistdio/u32-u32-vasprintf: Likewise.
21332         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21333         * modules/unistdio/u32-u32-vsprintf: Likewise.
21334         * modules/unistdio/u32-vasnprintf: Likewise.
21335         * modules/unistdio/u32-vasprintf: Likewise.
21336         * modules/unistdio/u32-vsnprintf: Likewise.
21337         * modules/unistdio/u32-vsprintf: Likewise.
21338         * modules/unistdio/ulc-asnprintf: Likewise.
21339         * modules/unistdio/ulc-asprintf: Likewise.
21340         * modules/unistdio/ulc-fprintf: Likewise.
21341         * modules/unistdio/ulc-snprintf: Likewise.
21342         * modules/unistdio/ulc-sprintf: Likewise.
21343         * modules/unistdio/ulc-vasnprintf: Likewise.
21344         * modules/unistdio/ulc-vasprintf: Likewise.
21345         * modules/unistdio/ulc-vfprintf: Likewise.
21346         * modules/unistdio/ulc-vsnprintf: Likewise.
21347         * modules/unistdio/ulc-vsprintf: Likewise.
21348         * modules/unistr/u8-check: Likewise.
21349         * modules/unistr/u8-chr: Likewise.
21350         * modules/unistr/u8-cmp: Likewise.
21351         * modules/unistr/u8-cmp2: Likewise.
21352         * modules/unistr/u8-cpy: Likewise.
21353         * modules/unistr/u8-cpy-alloc: Likewise.
21354         * modules/unistr/u8-endswith: Likewise.
21355         * modules/unistr/u8-mblen: Likewise.
21356         * modules/unistr/u8-mbsnlen: Likewise.
21357         * modules/unistr/u8-mbtouc: Likewise.
21358         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21359         * modules/unistr/u8-mbtoucr: Likewise.
21360         * modules/unistr/u8-move: Likewise.
21361         * modules/unistr/u8-next: Likewise.
21362         * modules/unistr/u8-prev: Likewise.
21363         * modules/unistr/u8-set: Likewise.
21364         * modules/unistr/u8-startswith: Likewise.
21365         * modules/unistr/u8-stpcpy: Likewise.
21366         * modules/unistr/u8-stpncpy: Likewise.
21367         * modules/unistr/u8-strcat: Likewise.
21368         * modules/unistr/u8-strchr: Likewise.
21369         * modules/unistr/u8-strcmp: Likewise.
21370         * modules/unistr/u8-strcoll: Likewise.
21371         * modules/unistr/u8-strcpy: Likewise.
21372         * modules/unistr/u8-strcspn: Likewise.
21373         * modules/unistr/u8-strdup: Likewise.
21374         * modules/unistr/u8-strlen: Likewise.
21375         * modules/unistr/u8-strmblen: Likewise.
21376         * modules/unistr/u8-strmbtouc: Likewise.
21377         * modules/unistr/u8-strncat: Likewise.
21378         * modules/unistr/u8-strncmp: Likewise.
21379         * modules/unistr/u8-strncpy: Likewise.
21380         * modules/unistr/u8-strnlen: Likewise.
21381         * modules/unistr/u8-strpbrk: Likewise.
21382         * modules/unistr/u8-strrchr: Likewise.
21383         * modules/unistr/u8-strspn: Likewise.
21384         * modules/unistr/u8-strstr: Likewise.
21385         * modules/unistr/u8-strtok: Likewise.
21386         * modules/unistr/u8-to-u16: Likewise.
21387         * modules/unistr/u8-to-u32: Likewise.
21388         * modules/unistr/u8-uctomb: Likewise.
21389         * modules/unistr/u16-check: Likewise.
21390         * modules/unistr/u16-chr: Likewise.
21391         * modules/unistr/u16-cmp: Likewise.
21392         * modules/unistr/u16-cmp2: Likewise.
21393         * modules/unistr/u16-cpy: Likewise.
21394         * modules/unistr/u16-cpy-alloc: Likewise.
21395         * modules/unistr/u16-endswith: Likewise.
21396         * modules/unistr/u16-mblen: Likewise.
21397         * modules/unistr/u16-mbsnlen: Likewise.
21398         * modules/unistr/u16-mbtouc: Likewise.
21399         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21400         * modules/unistr/u16-mbtoucr: Likewise.
21401         * modules/unistr/u16-move: Likewise.
21402         * modules/unistr/u16-next: Likewise.
21403         * modules/unistr/u16-prev: Likewise.
21404         * modules/unistr/u16-set: Likewise.
21405         * modules/unistr/u16-startswith: Likewise.
21406         * modules/unistr/u16-stpcpy: Likewise.
21407         * modules/unistr/u16-stpncpy: Likewise.
21408         * modules/unistr/u16-strcat: Likewise.
21409         * modules/unistr/u16-strchr: Likewise.
21410         * modules/unistr/u16-strcmp: Likewise.
21411         * modules/unistr/u16-strcoll: Likewise.
21412         * modules/unistr/u16-strcpy: Likewise.
21413         * modules/unistr/u16-strcspn: Likewise.
21414         * modules/unistr/u16-strdup: Likewise.
21415         * modules/unistr/u16-strlen: Likewise.
21416         * modules/unistr/u16-strmblen: Likewise.
21417         * modules/unistr/u16-strmbtouc: Likewise.
21418         * modules/unistr/u16-strncat: Likewise.
21419         * modules/unistr/u16-strncmp: Likewise.
21420         * modules/unistr/u16-strncpy: Likewise.
21421         * modules/unistr/u16-strnlen: Likewise.
21422         * modules/unistr/u16-strpbrk: Likewise.
21423         * modules/unistr/u16-strrchr: Likewise.
21424         * modules/unistr/u16-strspn: Likewise.
21425         * modules/unistr/u16-strstr: Likewise.
21426         * modules/unistr/u16-strtok: Likewise.
21427         * modules/unistr/u16-to-u32: Likewise.
21428         * modules/unistr/u16-to-u8: Likewise.
21429         * modules/unistr/u16-uctomb: Likewise.
21430         * modules/unistr/u32-check: Likewise.
21431         * modules/unistr/u32-chr: Likewise.
21432         * modules/unistr/u32-cmp: Likewise.
21433         * modules/unistr/u32-cmp2: Likewise.
21434         * modules/unistr/u32-cpy: Likewise.
21435         * modules/unistr/u32-cpy-alloc: Likewise.
21436         * modules/unistr/u32-endswith: Likewise.
21437         * modules/unistr/u32-mblen: Likewise.
21438         * modules/unistr/u32-mbsnlen: Likewise.
21439         * modules/unistr/u32-mbtouc: Likewise.
21440         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21441         * modules/unistr/u32-mbtoucr: Likewise.
21442         * modules/unistr/u32-move: Likewise.
21443         * modules/unistr/u32-next: Likewise.
21444         * modules/unistr/u32-prev: Likewise.
21445         * modules/unistr/u32-set: Likewise.
21446         * modules/unistr/u32-startswith: Likewise.
21447         * modules/unistr/u32-stpcpy: Likewise.
21448         * modules/unistr/u32-stpncpy: Likewise.
21449         * modules/unistr/u32-strcat: Likewise.
21450         * modules/unistr/u32-strchr: Likewise.
21451         * modules/unistr/u32-strcmp: Likewise.
21452         * modules/unistr/u32-strcoll: Likewise.
21453         * modules/unistr/u32-strcpy: Likewise.
21454         * modules/unistr/u32-strcspn: Likewise.
21455         * modules/unistr/u32-strdup: Likewise.
21456         * modules/unistr/u32-strlen: Likewise.
21457         * modules/unistr/u32-strmblen: Likewise.
21458         * modules/unistr/u32-strmbtouc: Likewise.
21459         * modules/unistr/u32-strncat: Likewise.
21460         * modules/unistr/u32-strncmp: Likewise.
21461         * modules/unistr/u32-strncpy: Likewise.
21462         * modules/unistr/u32-strnlen: Likewise.
21463         * modules/unistr/u32-strpbrk: Likewise.
21464         * modules/unistr/u32-strrchr: Likewise.
21465         * modules/unistr/u32-strspn: Likewise.
21466         * modules/unistr/u32-strstr: Likewise.
21467         * modules/unistr/u32-strtok: Likewise.
21468         * modules/unistr/u32-to-u16: Likewise.
21469         * modules/unistr/u32-to-u8: Likewise.
21470         * modules/unistr/u32-uctomb: Likewise.
21471         * modules/uniwbrk/u8-wordbreaks: Likewise.
21472         * modules/uniwbrk/u16-wordbreaks: Likewise.
21473         * modules/uniwbrk/u32-wordbreaks: Likewise.
21474         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21475         * modules/uniwbrk/wordbreak-property: Likewise.
21476         * modules/uniwidth/u8-strwidth: Likewise.
21477         * modules/uniwidth/u8-width: Likewise.
21478         * modules/uniwidth/u16-strwidth: Likewise.
21479         * modules/uniwidth/u16-width: Likewise.
21480         * modules/uniwidth/u32-strwidth: Likewise.
21481         * modules/uniwidth/u32-width: Likewise.
21482         * modules/uniwidth/width: Likewise.
21483         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21484         with $(LIBUNISTRING).
21485         * modules/unicase/ignorable-tests: Likewise.
21486         * modules/unicase/locale-language-tests: Likewise.
21487         * modules/unicase/tolower-tests: Likewise.
21488         * modules/unicase/totitle-tests: Likewise.
21489         * modules/unicase/toupper-tests: Likewise.
21490         * modules/unicase/u8-casecmp-tests: Likewise.
21491         * modules/unicase/u8-casecoll-tests: Likewise.
21492         * modules/unicase/u8-casefold-tests: Likewise.
21493         * modules/unicase/u8-is-cased-tests: Likewise.
21494         * modules/unicase/u8-is-casefolded-tests: Likewise.
21495         * modules/unicase/u8-is-lowercase-tests: Likewise.
21496         * modules/unicase/u8-is-titlecase-tests: Likewise.
21497         * modules/unicase/u8-is-uppercase-tests: Likewise.
21498         * modules/unicase/u8-tolower-tests: Likewise.
21499         * modules/unicase/u8-totitle-tests: Likewise.
21500         * modules/unicase/u8-toupper-tests: Likewise.
21501         * modules/unicase/u16-casecmp-tests: Likewise.
21502         * modules/unicase/u16-casecoll-tests: Likewise.
21503         * modules/unicase/u16-casefold-tests: Likewise.
21504         * modules/unicase/u16-is-cased-tests: Likewise.
21505         * modules/unicase/u16-is-casefolded-tests: Likewise.
21506         * modules/unicase/u16-is-lowercase-tests: Likewise.
21507         * modules/unicase/u16-is-titlecase-tests: Likewise.
21508         * modules/unicase/u16-is-uppercase-tests: Likewise.
21509         * modules/unicase/u16-tolower-tests: Likewise.
21510         * modules/unicase/u16-totitle-tests: Likewise.
21511         * modules/unicase/u16-toupper-tests: Likewise.
21512         * modules/unicase/u32-casecmp-tests: Likewise.
21513         * modules/unicase/u32-casecoll-tests: Likewise.
21514         * modules/unicase/u32-casefold-tests: Likewise.
21515         * modules/unicase/u32-is-cased-tests: Likewise.
21516         * modules/unicase/u32-is-casefolded-tests: Likewise.
21517         * modules/unicase/u32-is-lowercase-tests: Likewise.
21518         * modules/unicase/u32-is-titlecase-tests: Likewise.
21519         * modules/unicase/u32-is-uppercase-tests: Likewise.
21520         * modules/unicase/u32-tolower-tests: Likewise.
21521         * modules/unicase/u32-totitle-tests: Likewise.
21522         * modules/unicase/u32-toupper-tests: Likewise.
21523         * modules/unicase/ulc-casecmp-tests: Likewise.
21524         * modules/unicase/ulc-casecoll-tests: Likewise.
21525         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21526         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21527         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21528         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21529         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21530         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21531         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21532         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21533         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21534         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21535         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21536         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21537         * modules/unictype/bidicategory-byname-tests: Likewise.
21538         * modules/unictype/bidicategory-name-tests: Likewise.
21539         * modules/unictype/bidicategory-of-tests: Likewise.
21540         * modules/unictype/bidicategory-test-tests: Likewise.
21541         * modules/unictype/block-list-tests: Likewise.
21542         * modules/unictype/block-of-tests: Likewise.
21543         * modules/unictype/block-test-tests: Likewise.
21544         * modules/unictype/category-C-tests: Likewise.
21545         * modules/unictype/category-Cc-tests: Likewise.
21546         * modules/unictype/category-Cf-tests: Likewise.
21547         * modules/unictype/category-Cn-tests: Likewise.
21548         * modules/unictype/category-Co-tests: Likewise.
21549         * modules/unictype/category-Cs-tests: Likewise.
21550         * modules/unictype/category-L-tests: Likewise.
21551         * modules/unictype/category-Ll-tests: Likewise.
21552         * modules/unictype/category-Lm-tests: Likewise.
21553         * modules/unictype/category-Lo-tests: Likewise.
21554         * modules/unictype/category-Lt-tests: Likewise.
21555         * modules/unictype/category-Lu-tests: Likewise.
21556         * modules/unictype/category-M-tests: Likewise.
21557         * modules/unictype/category-Mc-tests: Likewise.
21558         * modules/unictype/category-Me-tests: Likewise.
21559         * modules/unictype/category-Mn-tests: Likewise.
21560         * modules/unictype/category-N-tests: Likewise.
21561         * modules/unictype/category-Nd-tests: Likewise.
21562         * modules/unictype/category-Nl-tests: Likewise.
21563         * modules/unictype/category-No-tests: Likewise.
21564         * modules/unictype/category-P-tests: Likewise.
21565         * modules/unictype/category-Pc-tests: Likewise.
21566         * modules/unictype/category-Pd-tests: Likewise.
21567         * modules/unictype/category-Pe-tests: Likewise.
21568         * modules/unictype/category-Pf-tests: Likewise.
21569         * modules/unictype/category-Pi-tests: Likewise.
21570         * modules/unictype/category-Po-tests: Likewise.
21571         * modules/unictype/category-Ps-tests: Likewise.
21572         * modules/unictype/category-S-tests: Likewise.
21573         * modules/unictype/category-Sc-tests: Likewise.
21574         * modules/unictype/category-Sk-tests: Likewise.
21575         * modules/unictype/category-Sm-tests: Likewise.
21576         * modules/unictype/category-So-tests: Likewise.
21577         * modules/unictype/category-Z-tests: Likewise.
21578         * modules/unictype/category-Zl-tests: Likewise.
21579         * modules/unictype/category-Zp-tests: Likewise.
21580         * modules/unictype/category-Zs-tests: Likewise.
21581         * modules/unictype/category-and-not-tests: Likewise.
21582         * modules/unictype/category-and-tests: Likewise.
21583         * modules/unictype/category-byname-tests: Likewise.
21584         * modules/unictype/category-name-tests: Likewise.
21585         * modules/unictype/category-none-tests: Likewise.
21586         * modules/unictype/category-of-tests: Likewise.
21587         * modules/unictype/category-or-tests: Likewise.
21588         * modules/unictype/category-test-withtable-tests: Likewise.
21589         * modules/unictype/combining-class-tests: Likewise.
21590         * modules/unictype/ctype-alnum-tests: Likewise.
21591         * modules/unictype/ctype-alpha-tests: Likewise.
21592         * modules/unictype/ctype-blank-tests: Likewise.
21593         * modules/unictype/ctype-cntrl-tests: Likewise.
21594         * modules/unictype/ctype-digit-tests: Likewise.
21595         * modules/unictype/ctype-graph-tests: Likewise.
21596         * modules/unictype/ctype-lower-tests: Likewise.
21597         * modules/unictype/ctype-print-tests: Likewise.
21598         * modules/unictype/ctype-punct-tests: Likewise.
21599         * modules/unictype/ctype-space-tests: Likewise.
21600         * modules/unictype/ctype-upper-tests: Likewise.
21601         * modules/unictype/ctype-xdigit-tests: Likewise.
21602         * modules/unictype/decimal-digit-tests: Likewise.
21603         * modules/unictype/digit-tests: Likewise.
21604         * modules/unictype/mirror-tests: Likewise.
21605         * modules/unictype/numeric-tests: Likewise.
21606         * modules/unictype/property-alphabetic-tests: Likewise.
21607         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21608         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21609         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21610         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21611         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21612         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21613         * modules/unictype/property-bidi-control-tests: Likewise.
21614         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21615         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21616         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21617         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21618         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21619         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21620         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21621         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21622         * modules/unictype/property-bidi-pdf-tests: Likewise.
21623         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21624         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21625         * modules/unictype/property-byname-tests: Likewise.
21626         * modules/unictype/property-combining-tests: Likewise.
21627         * modules/unictype/property-composite-tests: Likewise.
21628         * modules/unictype/property-currency-symbol-tests: Likewise.
21629         * modules/unictype/property-dash-tests: Likewise.
21630         * modules/unictype/property-decimal-digit-tests: Likewise.
21631         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21632         * modules/unictype/property-deprecated-tests: Likewise.
21633         * modules/unictype/property-diacritic-tests: Likewise.
21634         * modules/unictype/property-extender-tests: Likewise.
21635         * modules/unictype/property-format-control-tests: Likewise.
21636         * modules/unictype/property-grapheme-base-tests: Likewise.
21637         * modules/unictype/property-grapheme-extend-tests: Likewise.
21638         * modules/unictype/property-grapheme-link-tests: Likewise.
21639         * modules/unictype/property-hex-digit-tests: Likewise.
21640         * modules/unictype/property-hyphen-tests: Likewise.
21641         * modules/unictype/property-id-continue-tests: Likewise.
21642         * modules/unictype/property-id-start-tests: Likewise.
21643         * modules/unictype/property-ideographic-tests: Likewise.
21644         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21645         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21646         * modules/unictype/property-ignorable-control-tests: Likewise.
21647         * modules/unictype/property-iso-control-tests: Likewise.
21648         * modules/unictype/property-join-control-tests: Likewise.
21649         * modules/unictype/property-left-of-pair-tests: Likewise.
21650         * modules/unictype/property-line-separator-tests: Likewise.
21651         * modules/unictype/property-logical-order-exception-tests: Likewise.
21652         * modules/unictype/property-lowercase-tests: Likewise.
21653         * modules/unictype/property-math-tests: Likewise.
21654         * modules/unictype/property-non-break-tests: Likewise.
21655         * modules/unictype/property-not-a-character-tests: Likewise.
21656         * modules/unictype/property-numeric-tests: Likewise.
21657         * modules/unictype/property-other-alphabetic-tests: Likewise.
21658         * modules/unictype/property-other-default-ignorable-code-point-tests:
21659         Likewise.
21660         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21661         * modules/unictype/property-other-id-continue-tests: Likewise.
21662         * modules/unictype/property-other-id-start-tests: Likewise.
21663         * modules/unictype/property-other-lowercase-tests: Likewise.
21664         * modules/unictype/property-other-math-tests: Likewise.
21665         * modules/unictype/property-other-uppercase-tests: Likewise.
21666         * modules/unictype/property-paired-punctuation-tests: Likewise.
21667         * modules/unictype/property-paragraph-separator-tests: Likewise.
21668         * modules/unictype/property-pattern-syntax-tests: Likewise.
21669         * modules/unictype/property-pattern-white-space-tests: Likewise.
21670         * modules/unictype/property-private-use-tests: Likewise.
21671         * modules/unictype/property-punctuation-tests: Likewise.
21672         * modules/unictype/property-quotation-mark-tests: Likewise.
21673         * modules/unictype/property-radical-tests: Likewise.
21674         * modules/unictype/property-sentence-terminal-tests: Likewise.
21675         * modules/unictype/property-soft-dotted-tests: Likewise.
21676         * modules/unictype/property-space-tests: Likewise.
21677         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21678         * modules/unictype/property-test-tests: Likewise.
21679         * modules/unictype/property-titlecase-tests: Likewise.
21680         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21681         * modules/unictype/property-unified-ideograph-tests: Likewise.
21682         * modules/unictype/property-uppercase-tests: Likewise.
21683         * modules/unictype/property-variation-selector-tests: Likewise.
21684         * modules/unictype/property-white-space-tests: Likewise.
21685         * modules/unictype/property-xid-continue-tests: Likewise.
21686         * modules/unictype/property-xid-start-tests: Likewise.
21687         * modules/unictype/property-zero-width-tests: Likewise.
21688         * modules/unictype/scripts-tests: Likewise.
21689         * modules/unictype/syntax-c-ident-tests: Likewise.
21690         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21691         * modules/unictype/syntax-java-ident-tests: Likewise.
21692         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21693         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21694         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21695         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21696         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21697         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21698         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21699         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21700         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21701         * modules/uniname/uniname-tests: Likewise.
21702         * modules/uninorm/canonical-decomposition-tests: Likewise.
21703         * modules/uninorm/compat-decomposition-tests: Likewise.
21704         * modules/uninorm/composition-tests: Likewise.
21705         * modules/uninorm/decomposing-form-tests: Likewise.
21706         * modules/uninorm/decomposition-tests: Likewise.
21707         * modules/uninorm/filter-tests: Likewise.
21708         * modules/uninorm/nfc-tests: Likewise.
21709         * modules/uninorm/nfd-tests: Likewise.
21710         * modules/uninorm/nfkc-tests: Likewise.
21711         * modules/uninorm/nfkd-tests: Likewise.
21712         * modules/uninorm/u8-normcmp-tests: Likewise.
21713         * modules/uninorm/u8-normcoll-tests: Likewise.
21714         * modules/uninorm/u16-normcmp-tests: Likewise.
21715         * modules/uninorm/u16-normcoll-tests: Likewise.
21716         * modules/uninorm/u32-normcmp-tests: Likewise.
21717         * modules/uninorm/u32-normcoll-tests: Likewise.
21718         * modules/unistdio/u8-asnprintf-tests: Likewise.
21719         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21720         * modules/unistdio/u8-vasprintf-tests: Likewise.
21721         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21722         * modules/unistdio/u8-vsprintf-tests: Likewise.
21723         * modules/unistdio/u16-asnprintf-tests: Likewise.
21724         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21725         * modules/unistdio/u16-vasprintf-tests: Likewise.
21726         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21727         * modules/unistdio/u16-vsprintf-tests: Likewise.
21728         * modules/unistdio/u32-asnprintf-tests: Likewise.
21729         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21730         * modules/unistdio/u32-vasprintf-tests: Likewise.
21731         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21732         * modules/unistdio/u32-vsprintf-tests: Likewise.
21733         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21734         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21735         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21736         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21737         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21738         * modules/unistr/u8-check-tests: Likewise.
21739         * modules/unistr/u8-chr-tests: Likewise.
21740         * modules/unistr/u8-cmp-tests: Likewise.
21741         * modules/unistr/u8-cmp2-tests: Likewise.
21742         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21743         * modules/unistr/u8-cpy-tests: Likewise.
21744         * modules/unistr/u8-mblen-tests: Likewise.
21745         * modules/unistr/u8-mbsnlen-tests: Likewise.
21746         * modules/unistr/u8-mbtouc-tests: Likewise.
21747         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21748         * modules/unistr/u8-mbtoucr-tests: Likewise.
21749         * modules/unistr/u8-move-tests: Likewise.
21750         * modules/unistr/u8-next-tests: Likewise.
21751         * modules/unistr/u8-prev-tests: Likewise.
21752         * modules/unistr/u8-set-tests: Likewise.
21753         * modules/unistr/u8-stpcpy-tests: Likewise.
21754         * modules/unistr/u8-stpncpy-tests: Likewise.
21755         * modules/unistr/u8-strcat-tests: Likewise.
21756         * modules/unistr/u8-strcmp-tests: Likewise.
21757         * modules/unistr/u8-strcoll-tests: Likewise.
21758         * modules/unistr/u8-strcpy-tests: Likewise.
21759         * modules/unistr/u8-strdup-tests: Likewise.
21760         * modules/unistr/u8-strlen-tests: Likewise.
21761         * modules/unistr/u8-strmblen-tests: Likewise.
21762         * modules/unistr/u8-strmbtouc-tests: Likewise.
21763         * modules/unistr/u8-strncat-tests: Likewise.
21764         * modules/unistr/u8-strncmp-tests: Likewise.
21765         * modules/unistr/u8-strncpy-tests: Likewise.
21766         * modules/unistr/u8-strnlen-tests: Likewise.
21767         * modules/unistr/u8-to-u16-tests: Likewise.
21768         * modules/unistr/u8-to-u32-tests: Likewise.
21769         * modules/unistr/u8-uctomb-tests: Likewise.
21770         * modules/unistr/u16-check-tests: Likewise.
21771         * modules/unistr/u16-chr-tests: Likewise.
21772         * modules/unistr/u16-cmp-tests: Likewise.
21773         * modules/unistr/u16-cmp2-tests: Likewise.
21774         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21775         * modules/unistr/u16-cpy-tests: Likewise.
21776         * modules/unistr/u16-mblen-tests: Likewise.
21777         * modules/unistr/u16-mbsnlen-tests: Likewise.
21778         * modules/unistr/u16-mbtouc-tests: Likewise.
21779         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21780         * modules/unistr/u16-mbtoucr-tests: Likewise.
21781         * modules/unistr/u16-move-tests: Likewise.
21782         * modules/unistr/u16-next-tests: Likewise.
21783         * modules/unistr/u16-prev-tests: Likewise.
21784         * modules/unistr/u16-set-tests: Likewise.
21785         * modules/unistr/u16-stpcpy-tests: Likewise.
21786         * modules/unistr/u16-stpncpy-tests: Likewise.
21787         * modules/unistr/u16-strcat-tests: Likewise.
21788         * modules/unistr/u16-strcmp-tests: Likewise.
21789         * modules/unistr/u16-strcoll-tests: Likewise.
21790         * modules/unistr/u16-strcpy-tests: Likewise.
21791         * modules/unistr/u16-strdup-tests: Likewise.
21792         * modules/unistr/u16-strlen-tests: Likewise.
21793         * modules/unistr/u16-strmblen-tests: Likewise.
21794         * modules/unistr/u16-strmbtouc-tests: Likewise.
21795         * modules/unistr/u16-strncat-tests: Likewise.
21796         * modules/unistr/u16-strncmp-tests: Likewise.
21797         * modules/unistr/u16-strncpy-tests: Likewise.
21798         * modules/unistr/u16-strnlen-tests: Likewise.
21799         * modules/unistr/u16-to-u32-tests: Likewise.
21800         * modules/unistr/u16-to-u8-tests: Likewise.
21801         * modules/unistr/u16-uctomb-tests: Likewise.
21802         * modules/unistr/u32-check-tests: Likewise.
21803         * modules/unistr/u32-chr-tests: Likewise.
21804         * modules/unistr/u32-cmp-tests: Likewise.
21805         * modules/unistr/u32-cmp2-tests: Likewise.
21806         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21807         * modules/unistr/u32-cpy-tests: Likewise.
21808         * modules/unistr/u32-mblen-tests: Likewise.
21809         * modules/unistr/u32-mbsnlen-tests: Likewise.
21810         * modules/unistr/u32-mbtouc-tests: Likewise.
21811         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21812         * modules/unistr/u32-mbtoucr-tests: Likewise.
21813         * modules/unistr/u32-move-tests: Likewise.
21814         * modules/unistr/u32-next-tests: Likewise.
21815         * modules/unistr/u32-prev-tests: Likewise.
21816         * modules/unistr/u32-set-tests: Likewise.
21817         * modules/unistr/u32-stpcpy-tests: Likewise.
21818         * modules/unistr/u32-stpncpy-tests: Likewise.
21819         * modules/unistr/u32-strcat-tests: Likewise.
21820         * modules/unistr/u32-strcmp-tests: Likewise.
21821         * modules/unistr/u32-strcoll-tests: Likewise.
21822         * modules/unistr/u32-strcpy-tests: Likewise.
21823         * modules/unistr/u32-strdup-tests: Likewise.
21824         * modules/unistr/u32-strlen-tests: Likewise.
21825         * modules/unistr/u32-strmblen-tests: Likewise.
21826         * modules/unistr/u32-strmbtouc-tests: Likewise.
21827         * modules/unistr/u32-strncat-tests: Likewise.
21828         * modules/unistr/u32-strncmp-tests: Likewise.
21829         * modules/unistr/u32-strncpy-tests: Likewise.
21830         * modules/unistr/u32-strnlen-tests: Likewise.
21831         * modules/unistr/u32-to-u16-tests: Likewise.
21832         * modules/unistr/u32-to-u8-tests: Likewise.
21833         * modules/unistr/u32-uctomb-tests: Likewise.
21834         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21835         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21836         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21837         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21838         * modules/uniwidth/u8-strwidth-tests: Likewise.
21839         * modules/uniwidth/u8-width-tests: Likewise.
21840         * modules/uniwidth/u16-strwidth-tests: Likewise.
21841         * modules/uniwidth/u16-width-tests: Likewise.
21842         * modules/uniwidth/u32-strwidth-tests: Likewise.
21843         * modules/uniwidth/u32-width-tests: Likewise.
21844         * modules/uniwidth/width-tests: Likewise.
21845
21846 2010-05-18  Richard Jones  <rjones@redhat.com>
21847
21848         doc: users.txt: list hivex
21849         * users.txt: Add hivex.
21850
21851 2010-05-18  Richard Jones  <rjones@redhat.com>
21852
21853         doc: users.txt: list febootstrap
21854         * users.txt: Add febootstrap.
21855
21856 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21857
21858         bootstrap: fix an error when gnulib is not used as a git submodule
21859         * build-aux/bootstrap (gnulib_path): If its length is zero then
21860         assign "gnulib" to it.
21861         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21862
21863 2010-05-16  Bruno Haible  <bruno@clisp.org>
21864
21865         Avoid autoconf warnings about AM_ICONV.
21866         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21867         2.64.
21868
21869 2010-05-16  Bruno Haible  <bruno@clisp.org>
21870
21871         absolute-header: Make the macro usable in more situations.
21872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21873         from gl_ABSOLUTE_HEADER.
21874         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21875
21876 2010-05-16  James Youngman  <jay@gnu.org>
21877
21878         doc: update users.txt
21879         * users.txt: Add CSSC.
21880
21881 2010-05-16  Jim Meyering  <meyering@redhat.com>
21882
21883         init.sh: fix an error in the previous change; add more comments
21884         * tests/init.sh: Compare exit code in loop against 9, not 2.
21885         Patch by Bruno Haible.
21886         Make the two tests more similar by adding an empty "then" clause.
21887         Add comments.
21888
21889         init.sh: avoid unnecessary shell re-exec
21890         * tests/init.sh: Improve the re-exec-required check to first test the
21891         current shell.  If it passes the test, do not search for a shell that
21892         does pass, and do not re-exec.  This test is particularly contorted to
21893         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21894         of $(...) evokes a syntax error and causes immediate shell exit with
21895         status 2.  Bruno Haible reported that the re-exec made it impossible
21896         to single-step through any init.sh-using script.
21897
21898 2010-05-16  Bruno Haible  <bruno@clisp.org>
21899
21900         Fix collision between gnulib's and libintl's printf replacements.
21901         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21902         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21903         (printf): When using GNU C, map the __printf__ function to rpl_printf
21904         via __asm__. When not using GNU C, define rpl_printf instead of
21905         __printf__.
21906         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21907         commit.
21908         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21909         commit.
21910         * m4/asm-underscore.m4: New file.
21911         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21912         * modules/stdio (Files): Add m4/asm-underscore.m4.
21913         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21914         Reported by Ben Pfaff.
21915
21916 2010-05-16  Bruno Haible  <bruno@clisp.org>
21917
21918         verify: Avoid skipping the test on openSUSE 11.0.
21919         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21920
21921 2010-05-13  Bruno Haible  <bruno@clisp.org>
21922
21923         Avoid useless warnings from G++.
21924         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21925         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21926         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21927
21928 2010-05-11  Jim Meyering  <meyering@redhat.com>
21929
21930         maint.mk: tweak preceding change
21931         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21932         regexps tighter by anchoring at EOL, and make the new group "shy"
21933         for slightly decreased overhead.
21934
21935 2010-05-11  Eric Blake  <eblake@redhat.com>
21936
21937         maint.mk: gnulib doesn't guarantee NSIG
21938         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21939
21940 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21941
21942         test-pwrite.c: Remove unused variable declaration.
21943         * tests/test-pwrite.c (main): Remove read_buf declaration.
21944
21945         Remove useless test-pwrite.sh file.
21946         * tests/test-pwrite.sh: Delete file.
21947         * modules/pwrite-tests: Remove references.
21948         Reported by Bruno Haible.
21949
21950 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21951
21952         init.sh: fix a typo
21953         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21954
21955 2010-05-10  Jim Meyering  <meyering@redhat.com>
21956
21957         maint.mk: avoid using a temporary file in the always-defined-macros check
21958         * top/maint.mk (.re-defmac): Remove rule.
21959         (gl_trap_): Remove definition.
21960         (sc_prohibit_always-defined_macros): Rewrite not to create and
21961         depend on a temporary file.  Instead, depend on GNU grep's ability
21962         to read a list of regular expressions from stdin when given "-f -".
21963
21964 2010-05-09  Bruno Haible  <bruno@clisp.org>
21965
21966         Update to GNU gettext 0.18, part 1.
21967         * m4/gettext.m4: Update to GNU gettext 0.18.
21968         * m4/intl.m4: Likewise.
21969         * m4/po.m4: Likewise.
21970         * modules/gettext (Files): Add m4/fcntl-o.m4.
21971         (configure.ac): Require gettext infrastructure from version 0.18.
21972
21973 2010-05-09  Jim Meyering  <meyering@redhat.com>
21974
21975         init.sh: enable MALLOC_PERTURB_
21976         * tests/init.sh: Enable glibc's malloc-perturbing option.
21977
21978         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21979         With my recent change in init.sh from the two-line form:
21980             -#   : ${srcdir=.}
21981             -#   . "$srcdir/init.sh"; path_prepend_ .
21982             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21983         I noticed that using the one-line form would cause this test
21984         to fail with a false-positive, or to stop working altogether,
21985         depending on whether help-version changed or all the tests did.
21986         * top/maint.mk (_hv_regex): Remove this definition.
21987         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21988         (_hv_regex_strong): Use a stronger regex to check for conformance.
21989         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21990         Give a separate diagnostic for lack of conforming use.
21991
21992         maint.mk: prohibit definition of symbols defined by gnulib
21993         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21994         definition of symbols defined by gnulib.
21995
21996 2010-05-09  Bruno Haible  <bruno@clisp.org>
21997
21998         acl: Avoid test failure on Cygwin-hosted mingw.
21999         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22000
22001 2010-05-09  Bruno Haible  <bruno@clisp.org>
22002
22003         error: Use system's fcntl function.
22004         * lib/error.c (fcntl): Undefine.
22005
22006 2010-05-09  Jim Meyering  <meyering@redhat.com>
22007
22008         verify: adjust formatting to be more consistent
22009         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22010         argument-list '('s, and after one comma.
22011
22012 2010-05-09  Bruno Haible  <bruno@clisp.org>
22013
22014         error: More reliable output on mingw.
22015         * lib/error.c: Include <windows.h>.
22016         (is_open): New function.
22017         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22018         defined.
22019
22020 2010-05-09  Bruno Haible  <bruno@clisp.org>
22021
22022         vasnprintf: Fix syntax errors in libintl build on mingw.
22023         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22024         pad_ourselves and prec_ourselves after use.
22025
22026 2010-05-08  Bruno Haible  <bruno@clisp.org>
22027
22028         * lib/config.charset: Update comments for Cygwin 1.7.
22029         * lib/localcharset.c: Likewise.
22030
22031 2010-05-07  Jim Meyering  <meyering@redhat.com>
22032
22033         init.sh: improve comments
22034         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22035         . "${srcdir=.}/init.sh"; path_prepend_ .
22036         Add a note about path_prepend_ and the alternative of using
22037         TESTS_ENVIRONMENT.
22038
22039 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22040
22041         exclude: Unescape hashed patterns in wildcard mode.
22042         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22043         to the hash list.
22044         * tests/test-exclude8.sh: New test case.
22045         * modules/exclude-tests: Add new test.
22046
22047 2010-05-05  Eric Blake  <eblake@redhat.com>
22048
22049         verify: automate tests
22050         * modules/verify-tests: New module.
22051         * tests/test-verify.sh: New file.
22052         * tests/test-verify.c: Guard each negative test with a unique id.
22053         Also avoid warning about unused left hand of comma expressions.
22054
22055 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         Further improvements to verify.h, suggested by Eric Blake.
22058         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22059         the GL_* versions, to avoid collision with OpenGL.
22060         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22061         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22062         than testing merely whether it's defined.
22063
22064         Modify verify.h to pacify gcc -Wredundant_decls.
22065         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22066         These use the prefix "GL_" since they're likely to be useful elsewhere.
22067         We may need to break them out into a different .h file.
22068         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22069         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22070         of verify_function__.
22071
22072 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22073
22074         Tests for module pwrite.
22075         * modules/pwrite-tests: New file.
22076         * tests/test-pwrite.sh: New file.
22077         * tests/test-pwrite.c: New file.
22078
22079         New module pwrite.
22080         * lib/unistd.in.h (pwrite): New declaration.
22081         * lib/pwrite.c: New file, from glibc with modifications.
22082         * m4/pwrite.m4: New file.
22083         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22084         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22085         REPLACE_PWRITE.
22086         * modules/pwrite: New file.
22087         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22088         REPLACE_PWRITE.
22089         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22090         * doc/posix-functions/pwrite.texi: Mention the new module.
22091
22092 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22093
22094         pread: Update documentation.
22095         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22096
22097 2010-05-04  Eric Blake  <eblake@redhat.com>
22098
22099         docs: update cygwin progress
22100         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22101         this bug.
22102         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22103         Added in cygwin 1.7.2.
22104         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22105         Likewise.
22106         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22107         Likewise.
22108         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22109         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22110         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22111         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22112         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22113         Mention nproc module.
22114         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22115         bug in cygwin 1.7.5 addition.
22116         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22117         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22118         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22119         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22120         1.7.5.
22121         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22122         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22123         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22124         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22125         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22126         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22127         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22128         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22129         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22130         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22131         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22132         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22133         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22134         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22135         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22136         Likewise.
22137         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22138         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22139         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22140         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22141         Likewise.
22142         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22143         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22144         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22145         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22146         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22147         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22148         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22149         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22150         Likewise.
22151         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22152         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22153         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22154         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22155         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22156         Likewise.
22157         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22158         Likewise.
22159         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22160         Likewise.
22161         * doc/glibc-functions/xdrrec_endofrecord.texi
22162         (xdrrec_endofrecord): Likewise.
22163         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22164         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22165         Likewise.
22166         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22167         Likewise.
22168
22169 2010-05-04  Jim Meyering  <meyering@redhat.com>
22170
22171         gendocs.sh: make its "-s FILE" option more useful
22172         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22173         $PACKAGE to reflect the probably-different basename of "FILE".
22174
22175 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22176
22177         bootstrap: don't ignore download_po_files failure
22178         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22179         failure.
22180
22181 2010-05-03  Jim Meyering  <meyering@redhat.com>
22182
22183         maint.mk: allow to pass options to gendocs.sh
22184         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22185         (gendocs_options_): New overridable variable.
22186
22187         gnu-web-doc-update: don't ignore configure or build failure
22188         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22189
22190         announce-gen: backslash-escape '@'s in --help output
22191         * build-aux/announce-gen: Fix syntax errors.
22192
22193         maint.mk, announce-gen: allow project-specific announcement mail headers
22194         * top/maint.mk (translation_project_): Define default.
22195         (announcement_Cc_, announcement_mail_headers_): Likewise.
22196         (announcement): Invoke announce-gen with new --mail-headers option.
22197         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22198
22199         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22200         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22201         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22202         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22203         line in the "err2" output file when running "make check" in verbose
22204         mode (i.e., with set -x enabled).
22205
22206 2010-05-03  Bruno Haible  <bruno@clisp.org>
22207
22208         wctob: Fix for weird platforms.
22209         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22210         argument value.
22211
22212 2010-05-03  Jim Meyering  <meyering@redhat.com>
22213
22214         maint.mk: prohibit unwarranted use of <strings.h>
22215         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22216         strings.h in a file that does not also use strcasecmp, strncasecmp,
22217         ffs or ffsll.
22218
22219         maint.mk: remove obsolete comments
22220         * top/maint.mk: Remove stale, commented-out rules.
22221
22222 2010-05-02  Bruno Haible  <bruno@clisp.org>
22223
22224         wcwidth: Declare also when it's aliased.
22225         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22226         macro.
22227
22228 2010-05-02  Bruno Haible  <bruno@clisp.org>
22229
22230         Fix regression from 2010-04-25.
22231         * gnulib-tool (func_modules_transitive_closure): Check the status of
22232         all modules, not only of the tests that are of the form foo-tests where
22233         foo is a module.
22234
22235 2010-05-02  Bruno Haible  <bruno@clisp.org>
22236
22237         wctob: Work around nasty Cygwin 1.7.2 bug.
22238         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22239         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22240
22241 2010-05-01  Bruno Haible  <bruno@clisp.org>
22242
22243         fpurge: Sharper test.
22244         * tests/test-fpurge.c (main): Add one more ftell check.
22245         * modules/fpurge-tests (Depends-on): Add ftell.
22246         Suggested by Eric Blake.
22247
22248 2010-05-01  Bruno Haible  <bruno@clisp.org>
22249
22250         ftello: Another test.
22251         * tests/test-ftello3.c: New file.
22252         * modules/ftello-tests (Files): Add it.
22253         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22254         MOSTLYCLEANFILES.
22255
22256         ftell: Another test.
22257         * tests/test-ftell3.c: New file.
22258         * modules/ftell-tests (Files): Add it.
22259         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22260         MOSTLYCLEANFILES.
22261
22262 2010-05-01  Bruno Haible  <bruno@clisp.org>
22263
22264         ftell, ftello: Work around Solaris bug.
22265         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22266         * lib/ftello.c: Include stdio-impl.h.
22267         (ftello): On Solaris, when _IOWRT is set, compute the result without
22268         looking at _IOREAD.
22269         * modules/ftello (Files): Add lib/stdio-impl.h.
22270         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22271         * doc/posix-functions/ftello.texi: Likewise.
22272         Reported by Eric Blake.
22273
22274 2010-05-01  Bruno Haible  <bruno@clisp.org>
22275
22276         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22277         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22278         the _IOWRT flag is also set.
22279
22280 2010-05-01  Bruno Haible  <bruno@clisp.org>
22281
22282         Fix doc about a HP-UX stdio bug.
22283         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22284         * doc/posix-functions/ftello.texi: Likewise.
22285
22286 2010-05-01  Bruno Haible  <bruno@clisp.org>
22287
22288         lseek test: Fix failure on Solaris.
22289         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22290         output.
22291
22292 2010-04-30  Jim Meyering  <meyering@redhat.com>
22293
22294         bootstrap: don't ignore failure to generate po*/Makevars
22295         * build-aux/bootstrap (with_gettext): Don't ignore failure
22296         to create po/Makevars or runtime-po/Makevars.
22297
22298 2010-04-29  Eric Blake  <eblake@redhat.com>
22299
22300         headers: relax license to LGPLv2+
22301         * modules/fcntl-h (License): Relax license.
22302         * modules/getopt-posix (License): Likewise.
22303         * modules/locale (License): Likewise.
22304         * modules/math (License): Likewise.
22305         * modules/pty (License): Likewise.
22306         * modules/sched (License): Likewise.
22307         * modules/search (License): Likewise.
22308         * modules/spawn (License): Likewise.
22309         * modules/stdarg (License): Likewise.
22310         * modules/sysexits (License): Likewise.
22311
22312 2010-04-29  Jim Meyering  <meyering@redhat.com>
22313
22314         inttypes: relax license to LGPLv2+
22315         * modules/inttypes (License): Relax license.
22316
22317 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22318
22319         * top/maint.mk (indent): Run twice to produce idempotent results.
22320
22321 2010-04-28  Bruno Haible  <bruno@clisp.org>
22322
22323         getdate: Generate getdate.c in the source directory.
22324         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22325         MOSTLYCLEANFILES.
22326         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22327
22328 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22329
22330         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22331         is not declared as a const *; avoid warnings in that case.
22332
22333 2010-04-28  Eric Blake  <eblake@redhat.com>
22334
22335         canonicalize-lgpl: avoid compiler warning
22336         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22337         declaration' / 'extraneous semicolon' warning with some compilers.
22338         Reported by Andreas Gruenbacher.
22339
22340 2010-04-28  Jim Meyering  <meyering@redhat.com>
22341
22342         init.sh: ensure a more reliable exit status when exiting via trap
22343         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22344         Inspired by patches from Dmitry V. Levin.
22345         Also trap on signal 3 (SIGQUIT).
22346
22347 2010-04-27  Bruno Haible  <bruno@clisp.org>
22348
22349         Update doc about utimes().
22350         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22351         'utimens' module.
22352         Reported by Andreas Gruenbacher <agruen@suse.de>.
22353
22354 2010-04-27  Eric Blake  <eblake@redhat.com>
22355
22356         full-read, full-write: relax license
22357         * modules/full-read (License): Drop to LGPLv2+.
22358         * modules/full-write (License): Likewise.
22359         * modules/safe-read (License): Likewise.
22360         * modules/safe-write (License): Likewise.
22361
22362         pthread: mention library for linking
22363         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22364
22365 2010-04-27  Jim Meyering  <meyering@redhat.com>
22366
22367         maint.mk: fix a bug introduced in last change
22368         * top/maint.mk (gl_assured_headers_): Now that all names are on
22369         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22370         is not anchored to end of word, it should be adequate.
22371
22372         maint.mk: avoid side-effect in latest syntax-check
22373         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22374         to run commands via $(shell...), and hence to incur cost only when
22375         the new rule is actually run.
22376
22377         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22378         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22379         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22380         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22381         (gl_assured_headers_, az_, AZ_): Define.
22382         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22383
22384 2010-04-26  Jim Meyering  <jim@meyering.net>
22385             Bruno Haible  <bruno@clisp.org>
22386
22387         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22388         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22389         Prompted by an exchange with Gilles Espinasse.
22390
22391 2010-04-26  Jim Meyering  <meyering@redhat.com>
22392
22393         git-version-gen: aesthetic tweak
22394         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22395         so that the command remains on a single line.
22396
22397 2010-04-26  Eric Blake  <eblake@redhat.com>
22398
22399         git-version-gen: allow use on EBCDIC hosts
22400         * build-aux/git-version-gen (dirty): Use literal rather than tying
22401         ourselves to ascii.
22402         Reported by Steve Goetze.
22403
22404 2010-04-25  Bruno Haible  <bruno@clisp.org>
22405
22406         netdb: Add support for GNULIB_POSIXCHECK.
22407         * lib/netdb.in.h: Include warn-on-use.h.
22408         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22409         functions are used when GNULIB_POSIXCHECK is defined and the
22410         getaddrinfo module is not in use.
22411         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22412         freeaddrinfo, gai_strerror, getnameinfo are declared.
22413         * modules/netdb (Depends-on): Add warn-on-use.
22414         (Makefile.am): Include warn-on-use.h in netdb.h.
22415
22416 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22417
22418         build: avoid "make check" failure without .git/ directory
22419         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22420         there is no .git/ directory.
22421
22422 2010-04-25  Bruno Haible  <bruno@clisp.org>
22423
22424         ptsname: Fix misuse of ttyname_r.
22425         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22426         of errno.
22427
22428 2010-04-25  Bruno Haible  <bruno@clisp.org>
22429
22430         ttyname_r: Make it work on Solaris 10.
22431         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22432         if the system function has the POSIX declaration. Test whether the
22433         function fails if the buffer is less than 128 bytes large.
22434         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22435         system's ttyname_r function. Provide a reasonably large buffer.
22436         * modules/ttyname_r (Depends-on): Add extensions.
22437         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22438
22439 2010-04-25  Bruno Haible  <bruno@clisp.org>
22440
22441         Use the 'extensions' module for some more functions on Solaris.
22442         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22443         module.
22444         * doc/posix-functions/ctime_r.texi: Likewise.
22445         * doc/posix-functions/getgrgid_r.texi: Likewise.
22446         * doc/posix-functions/getgrnam_r.texi: Likewise.
22447         * doc/posix-functions/getpwnam_r.texi: Likewise.
22448         * doc/posix-functions/getpwuid_r.texi: Likewise.
22449         * doc/posix-functions/readdir_r.texi: Likewise.
22450         * doc/posix-functions/sigwait.texi: Likewise.
22451         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22452         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22453
22454 2010-04-25  Bruno Haible  <bruno@clisp.org>
22455
22456         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22457         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22458         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22459         * lib/ttyname_r.c: Include <limits.h>.
22460         (ttyname_r): Define using the system's ttyname_r function, if it exists
22461         and not on Solaris.
22462         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22463         set.
22464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22465         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22466         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22467         Reported by Simon Josefsson.
22468
22469 2010-04-25  Bruno Haible  <bruno@clisp.org>
22470
22471         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22472         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22473         * doc/posix-functions/ctime_r.texi: Likewise.
22474         * doc/posix-functions/getgrgid_r.texi: Likewise.
22475         * doc/posix-functions/getgrnam_r.texi: Likewise.
22476         * doc/posix-functions/getlogin_r.texi: Likewise.
22477         * doc/posix-functions/getpwnam_r.texi: Likewise.
22478         * doc/posix-functions/getpwuid_r.texi: Likewise.
22479         * doc/posix-functions/readdir_r.texi: Likewise.
22480         * doc/posix-functions/sigwait.texi: Likewise.
22481         * doc/posix-functions/ttyname_r.texi: Likewise.
22482         Reported by Simon Josefsson.
22483
22484 2010-04-25  Bruno Haible  <bruno@clisp.org>
22485
22486         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22487         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22488         also to --create-testdir.
22489         (func_acceptable): Don't consider the status of *-tests modules here.
22490         (func_modules_transitive_closure): Consider it here, before including a
22491         test module.
22492         (func_import, func_create_testdir): Set inc_all_direct_tests,
22493         inc_all_indirect_tests.
22494         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22495         --create-testdir and --create-megatestdir.
22496
22497 2010-04-25  Bruno Haible  <bruno@clisp.org>
22498
22499         gnulib-tool: Add --without-*-tests options.
22500         * gnulib-tool (func_usage): Document the --without-*-tests options.
22501         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22502         excl_unportable_tests): New variables.
22503         Fail if they are specified with --import or --update.
22504         (func_acceptable): Respect the excl_*_tests variables.
22505         (func_import): Set the excl_*_tests variables to empty.
22506
22507 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22508             Bruno Haible  <bruno@clisp.org>
22509
22510         Work around a MacOS X 10.4 bug with openpty.
22511         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22512         * tests/test-openpty.c (main): Close the master side explicitly.
22513
22514 2010-04-25  Bruno Haible  <bruno@clisp.org>
22515
22516         strnlen: Fix a C++ test error on MacOS X and Solaris.
22517         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22518         the function is not declared.
22519         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22520         Simon Josefsson.
22521
22522 2010-04-24  Bruno Haible  <bruno@clisp.org>
22523
22524         Avoid a gcc warning.
22525         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22526         of correct type for %08lx directive.
22527         Reported by Eric Blake.
22528
22529 2010-04-24  Bruno Haible  <bruno@clisp.org>
22530
22531         vasnprintf: Correct errno value in case of out-of-memory.
22532         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22533         or sprintf. Use the errno value from SNPRINTF or sprintf.
22534         Reported by Ian Beckwith <ianb@erislabs.net>.
22535
22536 2010-04-24  Bruno Haible  <bruno@clisp.org>
22537
22538         ansi-c++-opt: Find correct compiler when cross-compiling.
22539         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22540         AC_CHECK_PROGS.
22541         Reported by Simon Josefsson.
22542
22543 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22544
22545         vc-list-files: Add support for subversion
22546         * build-aux/vc-list-files: Use "svn list" to generate the list of
22547         files controlled by subversion.
22548
22549 2010-04-23  Jim Meyering  <meyering@redhat.com>
22550
22551         vc-list-files tests: convert to use init.sh
22552         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22553         path_prepend_.
22554         Use Exit, not exit.
22555         Use skip_ rather than open coding it.
22556         Remove trap set-up and compare definitions.
22557         * tests/test-vc-list-files-git.sh: Likewise.
22558         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22559
22560 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22561
22562         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22563         backup files.
22564
22565 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22566
22567         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22568
22569 2010-04-20  Eric Blake  <eblake@redhat.com>
22570
22571         tests: be robust to ignored SIGPIPE
22572         * tests/test-select-in.sh: Consume all output.
22573         * tests/test-lseek.sh: Check correct exit status, while avoiding
22574         EPIPE.
22575
22576 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22577             Bruno Haible  <bruno@clisp.org>
22578
22579         visibility: Don't use -fvisibility if it leads to a warning.
22580         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22581         yes, don't pretend that visibility works if it leads to a warning.
22582         Reported by Mike Gran <spk121@yahoo.com>.
22583
22584 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22585
22586         * build-aux/bootstrap: Use "git -h" for testing for supported options
22587         instead of "git --help".  The short-form option only shows a summary,
22588         and doesn't layout the full man page.  Grep for the full option name
22589         in the summary, too.
22590
22591 2010-04-19  Bruno Haible  <bruno@clisp.org>
22592
22593         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22594         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22595         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22596         mention of RELOCATABLE_STRIP.
22597         Reported by Sylvain Beucler <beuc@beuc.net>.
22598
22599 2010-04-19  Bruno Haible  <bruno@clisp.org>
22600
22601         * lib/diffseq.h: Fix typo in comment.
22602         Reported by Eric Blake.
22603
22604 2010-04-19  Bruno Haible  <bruno@clisp.org>
22605
22606         ioctl: Move autoconf macro to a .m4 file.
22607         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22608         * modules/ioctl (Files): Add it.
22609         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22610         Reported by Ian Beckwith <ianb@erislabs.net>.
22611
22612 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22613             Bruno Haible  <bruno@clisp.org>
22614
22615         diffseq: Accommodate use-case with abstract arrays.
22616         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22617         is not defined.
22618         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22619         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22620
22621 2010-04-18  Bruno Haible  <bruno@clisp.org>
22622
22623         * doc/posix-headers/stdbool.texi: More precise wording.
22624
22625 2010-04-17  Jim Meyering  <meyering@redhat.com>
22626
22627         maint.mk: use gnu-style indentation in an embedded perl script
22628         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22629         Rename variable: s/two/last_two_bytes/
22630
22631 2010-04-16  Eric Blake  <eblake@redhat.com>
22632
22633         test-stdbool: skip test that fails with Solaris CC
22634         * tests/test-stdbool.c (f): Skip test that causes compilation
22635         error under buggy C++ compiler.
22636         * lib/stdbool.in.h: Document the limitation.
22637         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22638
22639         setenv: allow compilation with C++
22640         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22641         register keyword.
22642
22643         stdint: allow test to pass with C++
22644         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22645
22646         getopt: allow compilation with C++
22647         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22648         struct.
22649         * lib/getopt.c (_getopt_internal_r): Use correct type.
22650         Reported by Dagobert Michelson, via Joel E. Denny.
22651
22652 2010-04-16  Bruno Haible  <bruno@clisp.org>
22653
22654         Override netdb.h always.
22655         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22657         Reported by Ludovic Courtès <ludo@gnu.org>.
22658
22659 2010-04-15  Bruno Haible  <bruno@clisp.org>
22660
22661         openpty: Fix mistake from 2010-03-21.
22662         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22663         Reported by Simon Josefsson.
22664
22665 2010-04-15  Eric Blake  <eblake@redhat.com>
22666
22667         test-forkpty: fix expected signature
22668         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22669         Reported by Simon Josefsson.
22670
22671 2010-04-15  Jim Meyering  <meyering@redhat.com>
22672
22673         maint.mk: texinfo_suffix_re_: correct the default regexp
22674         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22675
22676         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22677         make it configurable via texinfo_suffix_re_.
22678
22679 2010-04-14  Eric Blake  <eblake@redhat.com>
22680
22681         strtok_r: relax license to LGPLv2+
22682         * modules/strtok_r (License): Relax license.
22683         Reported by Matthias Bolte.
22684
22685 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22686
22687         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22688         version 1.4.4 by default instead of requiring the libgcrypt
22689         version used during build.  This makes it possible to use the
22690         application with older but still binary compatible libgcrypt
22691         versions.
22692
22693 2010-04-13  Eric Blake  <eblake@redhat.com>
22694
22695         getopt-gnu: match recent glibc fixes and posix ruling
22696         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22697         '+' handling, when requesting extensions.
22698         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22699         'W;' handling.
22700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22701         * doc/posix-functions/getopt.texi (getopt): Document this.
22702         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22703         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22704         Likewise.
22705
22706         getopt: merge bug fixes from glibc
22707         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22708         diagnostics.  Honor '+:' correctly.  Reject ';'.
22709
22710         getopt-posix: detect MacOS bug
22711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22712         optind when missing a required argument.
22713         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22714         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22715         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22716         Likewise.
22717
22718         getopt-posix: avoid spurious failure on Solaris
22719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22720         an indicator that setting optind=1 is sufficient for reset.
22721
22722         getopt-posix: avoid spurious failure on FreeBSD
22723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22724         in POSIX mode, since the m4 test uses it.
22725
22726         gnulib-tool: silence warning on BSD sh
22727         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22728
22729 2010-04-13  Jim Meyering  <meyering@redhat.com>
22730
22731         doc: users.txt: GNU patch now uses gnulib
22732         * users.txt: Add patch.
22733
22734 2010-04-12  Jim Meyering  <meyering@redhat.com>
22735
22736         maint.mk: generate more concise timing data for syntax-check rules
22737         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22738         " done" from each line that reports a syntax-check test duration.
22739
22740 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22741
22742         git-version-gen: use "git update-index..." rather than "git status"
22743         * build-aux/git-version-gen: Use git update-index --refresh, not
22744         "git status".  With some versions of git, "git status" would fail
22745         to update the index and result in an unwarranted "-dirty" suffix.
22746
22747 2010-04-11  Jim Meyering  <meyering@redhat.com>
22748
22749         openat: correct formatting (no semantic change)
22750         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22751         Suggested by Bruno Haible.
22752
22753 2010-04-11  Bruno Haible  <bruno@clisp.org>
22754
22755         Stricter declaration checking in testdirs.
22756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22757         If for_tests is true, augment AM_CPPFLAGS to define
22758         GNULIB_STRICT_CHECKING.
22759         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22760         GNULIB_STRICT_CHECKING is defined, verify that the function is
22761         declared.
22762
22763 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22764             Bruno Haible  <bruno@clisp.org>
22765
22766         libunistring: Improve configure output.
22767         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22768         Don't say "consider installing GNU libunistring" when checking again
22769         with libiconv.
22770
22771 2010-04-11  Bruno Haible  <bruno@clisp.org>
22772
22773         libunistring: Correct value of $LTLIBUNISTRING.
22774         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22775         correct the value of $LTLIBUNISTRING.
22776
22777 2010-04-11  Bruno Haible  <bruno@clisp.org>
22778
22779         havelib: Add static libraries to LIBS in the right order.
22780         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22781         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22782
22783 2010-04-11  Bruno Haible  <bruno@clisp.org>
22784
22785         libunistring: Detect libunistring also when it depends on libiconv.
22786         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22787         the second AC_LIB_HAVE_LINKFLAGS invocation.
22788
22789 2010-04-11  James Youngman  <jay@gnu.org>
22790
22791         close-stream: declare local scalars to be "const"
22792         * lib/close-stream.c (close_stream): Make boolean variables const
22793         to document the fact that we set but do not change them.
22794
22795 2010-04-11  Bruno Haible  <bruno@clisp.org>
22796
22797         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22798
22799 2010-04-11  Jim Meyering  <meyering@redhat.com>
22800
22801         maint.mk: don't include dist-check.mk
22802         * top/maint.mk: Remove bogus include directive.
22803
22804         maint.mk: improve empty-line-at-EOF check
22805         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22806         solution, rather than tail+Perl-based one.  The latter would read
22807         a few kilobytes from the end of each file, and did not handle empty
22808         files properly.
22809
22810         maint.mk: print the elapsed time for each syntax-check rule
22811         * top/maint.mk (sc_m_rules_): Save start time in a file.
22812         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22813         (local-check): Interpose the .z rules
22814
22815 2010-04-11  Jim Meyering  <meyering@redhat.com>
22816
22817         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22818         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22819         empty file with one that ends in an empty line.
22820
22821 2010-04-10  Bruno Haible  <bruno@clisp.org>
22822
22823         mkdir: Make it work on mingw64.
22824         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22825         * lib/mkdir.c: Update comment.
22826         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22827
22828 2010-04-10  Bruno Haible  <bruno@clisp.org>
22829
22830         Don't override improved macro from newer autoconf.
22831         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22832         autoconf >= 2.62.
22833         Reported by Joel E. Denny <jdenny@clemson.edu>.
22834
22835 2010-04-10  Jim Meyering  <meyering@redhat.com>
22836
22837         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22838         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22839
22840         maint.mk: correct a diagnostic
22841         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22842         in diagnostic; now use $prohibit.
22843
22844 2010-04-10  Bruno Haible  <address@hidden>
22845
22846         fchownat: Fix a C++ test error on Solaris 8.
22847         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22848         the function does not exist.
22849
22850 2010-04-10  Bruno Haible  <bruno@clisp.org>
22851
22852         vasnprintf: Add more tests.
22853         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22854         (test_function): Test converting an invalid wide string.
22855
22856         vasnprintf: Correct handling of unconvertible wide string arguments.
22857         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22858         VASNPRINTF.
22859         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22860         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22861         smaller than the expected maximum need for the directive. Set errno to
22862         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22863         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22865         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22866         * modules/vasnprintf (Files): Add m4/printf.m4.
22867         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22868
22869 2010-04-10  Bruno Haible  <bruno@clisp.org>
22870
22871         vasnprintf: Fix crash in %ls directive.
22872         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22873         string is passed as argument to %ls, with no precision and no width.
22874         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22875
22876 2010-04-10  Bruno Haible  <bruno@clisp.org>
22877
22878         vasnprintf: Fix multiple test failures on mingw.
22879         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22880         _snprintf, or snwprintf, not _snwprintf.
22881
22882 2010-04-10  Bruno Haible  <bruno@clisp.org>
22883
22884         write: Fix a C++ test error on mingw.
22885         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22886
22887 2010-04-10  Bruno Haible  <bruno@clisp.org>
22888
22889         vasnprintf test: Reduce code duplication.
22890         * tests/test-vasnprintf.c (test_function): New function, extracted from
22891         test_vasnprintf.
22892         (test_vasnprintf, test_asnprintf): Invoke it.
22893
22894 2010-04-10  Bruno Haible  <bruno@clisp.org>
22895
22896         strnlen: Fix warning in C++ mode on MacOS X.
22897         * lib/string.in.h (strnlen): Use the modern idiom.
22898         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22899         defining strnlen as a macro already in <config.h>.
22900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22901         REPLACE_STRNLEN.
22902         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22903         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22904
22905 2010-04-08  James Youngman  <jay@gnu.org>
22906
22907         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22908         the example.
22909
22910 2010-04-09  Jim Meyering  <meyering@redhat.com>
22911
22912         maint.mk: print better diagnostic when there is no $(_hv_file)
22913         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22914         announce that when $(_hv_file) (aka help-version) does not exist.
22915
22916         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22917         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22918         not try to interpret its random input bytes.  Jarno Rajahalme reported
22919         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22920         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22921         (mktempd_): Likewise, just in case.
22922
22923         ftruncate: add two years to projected module removal date: 2012
22924         * m4/ftruncate.m4: Adjust comments.
22925
22926         ftruncate: mark module as obsolete; even MinGW provides it, now
22927         * modules/ftruncate (Status): Obsolete.
22928         (Notice): Say that.
22929         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22930         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22931
22932 2010-04-08  Bruno Haible  <bruno@clisp.org>
22933
22934         Fix side effects from tests-related modules.
22935         * modules/dprintf-posix (Comment): New section.
22936         * modules/fprintf-posix (Comment): Likewise.
22937         * modules/obstack-printf-posix (Comment): Likewise.
22938         * modules/printf-posix (Comment): Likewise.
22939         * modules/snprintf-posix (Comment): Likewise.
22940         * modules/sprintf-posix (Comment): Likewise.
22941         * modules/vasnprintf-posix (Comment): Likewise.
22942         * modules/vasprintf-posix (Comment): Likewise.
22943         * modules/vdprintf-posix (Comment): Likewise.
22944         * modules/vfprintf-posix (Comment): Likewise.
22945         * modules/vprintf-posix (Comment): Likewise.
22946         * modules/vsnprintf-posix (Comment): Likewise.
22947         * modules/vsprintf-posix (Comment): Likewise.
22948         * modules/xprintf-posix (Comment): Likewise.
22949         * modules/xvasprintf-posix (Comment): Likewise.
22950         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22951         * modules/floorf-tests (Depends-on): Likewise.
22952         * modules/round-tests (Depends-on): Likewise.
22953         * modules/roundf-tests (Depends-on): Likewise.
22954         * modules/trunc-tests (Depends-on): Likewise.
22955         * modules/truncf-tests (Depends-on): Likewise.
22956         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22957         'fprintf-posix' module is not present.
22958         * tests/test-floorf2.c (check): Likewise.
22959         * tests/test-trunc2.c (check): Likewise.
22960         * tests/test-truncf2.c (check): Likewise.
22961         * tests/test-round2.c (equal): Likewise.
22962         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22963
22964 2010-04-07  Karl Berry  <karl@gnu.org>
22965
22966         * config/srclist.txt,
22967         * config/srclistvars.sh,
22968         * config/srclist-update: doc fixes.
22969
22970 2010-04-07  Jim Meyering  <meyering@redhat.com>
22971
22972         maint.mk: add a PATH crosschecking syntax-check rule
22973         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22974         Useful if you use a test like the one in help-version (coreutils,
22975         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22976         printed by prog --version.
22977
22978 2010-04-06  Bruno Haible  <bruno@clisp.org>
22979
22980         Fix link error on mingw.
22981         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22982         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22983
22984 2010-04-06  Bruno Haible  <bruno@clisp.org>
22985
22986         Assume rmdir exists.
22987         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22988
22989 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22990
22991         doc: update users.txt
22992         * users.txt: Add gcal.
22993
22994 2010-04-06  Jim Meyering  <meyering@redhat.com>
22995
22996         init.sh: simply unset TMPDIR rather than risking env -i
22997         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22998         although it probably works fine on all Unix-based systems, some
22999         systems (Cygwin?) cannot tolerate a totally cleared environment.
23000         Suggestion from Eric Blake.
23001
23002 2010-04-06  Jim Meyering  <meyering@redhat.com>
23003
23004         init.sh: portability fix: use env's POSIX-specified -i option not -u
23005         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23006         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23007
23008 2010-04-05  Bruno Haible  <bruno@clisp.org>
23009
23010         btowc: Work around Cygwin 1.7.2 bug.
23011         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23012         does not map NUL to 0.
23013         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23014
23015 2010-04-05  Bruno Haible  <bruno@clisp.org>
23016
23017         Make the multithread modules work on Cygwin 1.7.2.
23018         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23019         imported symbols can be declared weak, so that it returns "no" on
23020         Cygwin 1.7.2.
23021
23022 2010-04-05  Bruno Haible  <bruno@clisp.org>
23023
23024         Use the module 'strncat'.
23025         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23026
23027         Tests for module 'strncat'.
23028         * modules/strncat-tests: New file.
23029         * tests/test-strncat.c: New file.
23030
23031         New module 'strncat'.
23032         * lib/string.in.h (strncat): New declaration.
23033         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23034         * m4/strncat.m4: New file, based on m4/memchr.m4.
23035         * modules/strncat: New file.
23036         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23037         is declared.
23038         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23039         REPLACE_STRNCAT.
23040         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23041         REPLACE_STRNCAT.
23042         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23043         module.
23044         * tests/test-string-c++.cc: Check signature of strncat.
23045
23046 2010-04-05  Jim Meyering  <meyering@redhat.com>
23047
23048         xstrtoumax-tests: convert to use init.sh
23049         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23050         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23051         Use Exit, not exit.
23052         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23053
23054         xstrtoimax-tests: convert to use init.sh
23055         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23056         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23057         Use Exit, not exit.
23058         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23059
23060 2010-04-05  Bruno Haible  <bruno@clisp.org>
23061
23062         sys_socket: Avoid #define replacements in C++ mode.
23063         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23064         warning to the function if possible, rather than #defining the symbol
23065         to a dysfunctional alias.
23066
23067 2010-04-05  Bruno Haible  <bruno@clisp.org>
23068
23069         fseeko: Fix C++ test error on mingw.
23070         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23071         gl_FUNC_FSEEKO.
23072         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23073         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23075         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23076
23077 2010-04-05  Bruno Haible  <bruno@clisp.org>
23078
23079         duplocale: Improve test output.
23080         * tests/test-duplocale.c (main): Print reason for skipped test.
23081
23082 2010-04-05  Bruno Haible  <bruno@clisp.org>
23083
23084         Assume rmdir exists.
23085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23086         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23087
23088 2010-04-05  Bruno Haible  <bruno@clisp.org>
23089
23090         Fix link error on Solaris 8 with cc.
23091         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23092
23093 2010-04-05  Bruno Haible  <bruno@clisp.org>
23094
23095         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23096         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23097
23098 2010-04-05  Bruno Haible  <bruno@clisp.org>
23099
23100         vasprintf: Update documentation.
23101         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23102
23103 2010-04-05  Bruno Haible  <bruno@clisp.org>
23104
23105         ptsname: Improve test.
23106         * tests/test-ptsname.c (main): Also try the various master names of BSD
23107         systems.
23108
23109 2010-04-05  Bruno Haible  <bruno@clisp.org>
23110
23111         memchr: Avoid a possible C++ test error.
23112         * lib/string.in.h (memchr): Provide declaration if function is missing.
23113         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23114         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23116         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23117
23118 2010-04-05  Bruno Haible  <bruno@clisp.org>
23119
23120         strtok_r: Improve idiom.
23121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23122         AC_LIBOBJ is used.
23123
23124 2010-04-05  Bruno Haible  <bruno@clisp.org>
23125
23126         strdup: Improve idiom.
23127         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23128         AC_LIBOBJ is used.
23129         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23130         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23131         when AC_LIBOBJ is used.
23132
23133 2010-04-05  Bruno Haible  <bruno@clisp.org>
23134
23135         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23136         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23137         don't set REPLACE_MBSINIT to 1.
23138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23139         don't set REPLACE_MBRTOWC to 1.
23140         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23141         exist, don't set REPLACE_MBSRTOWCS to 1.
23142         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23143         exist, don't set REPLACE_MBSNRTOWCS to 1.
23144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23145         don't set REPLACE_WCRTOMB to 1.
23146         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23147         exist, don't set REPLACE_WCSRTOMBS to 1.
23148         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23149         exist, don't set REPLACE_WCSNRTOMBS to 1.
23150
23151 2010-04-05  Bruno Haible  <bruno@clisp.org>
23152
23153         ldexpl: Improve idiom.
23154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23155         make sure to set HAVE_DECL_LDEXPL to 0.
23156
23157 2010-04-05  Jim Meyering  <meyering@redhat.com>
23158
23159         xstrtol-tests: convert to use init.sh
23160         * modules/xstrtol-tests (Files): Add tests/init.sh.
23161         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23162         Use Exit, not exit.
23163         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23164
23165         atexit-tests: convert to use init.sh
23166         * modules/atexit-tests (Files): Add tests/init.sh.
23167         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23168         Use Exit, not exit.
23169         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23170
23171         init.sh: fix typo
23172         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23173
23174         init.sh: make it easier for a test script to write to the tty, ...
23175         when using automake's parallel-tests mode.
23176         * tests/init.sh (stderr_fileno_): Define overridable variable.
23177         (warn_): New function, to use it.
23178         (fail_, skip_, framework_failure_): Use warn_.
23179
23180 2010-04-04  Bruno Haible  <bruno@clisp.org>
23181
23182         btowc: Avoid warning.
23183         * lib/btowc.c: Include <stdlib.h>.
23184         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23185
23186 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23187             Bruno Haible  <bruno@clisp.org>
23188
23189         wchar: Port to NetBSD 1.5.
23190         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23191         * lib/wctype.in.h (WEOF): Likewise.
23192
23193 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23194             Bruno Haible  <bruno@clisp.org>
23195
23196         Port extended stdio to NetBSD 1.5.
23197         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23198         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23199         older.
23200
23201 2010-04-04  Bruno Haible  <bruno@clisp.org>
23202
23203         string: Remove unused substitution.
23204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23205         HAVE_DECL_STRERROR.
23206         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23207
23208 2010-04-04  Bruno Haible  <bruno@clisp.org>
23209
23210         strtod: Avoid a possible C++ test error.
23211         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23212         set REPLACE_STRTOD.
23213
23214 2010-04-04  Bruno Haible  <bruno@clisp.org>
23215
23216         strerror: Update documentation.
23217         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23218
23219 2010-04-04  Bruno Haible  <bruno@clisp.org>
23220
23221         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23222         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23223         _GL_CXXALIAS_SYS_CAST.
23224
23225 2010-04-04  Bruno Haible  <bruno@clisp.org>
23226
23227         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23228         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23229         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23230         REPLACE_FREXPL to 1.
23231         * doc/posix-functions/frexpl.texi: Update documentation.
23232
23233 2010-04-04  Bruno Haible  <bruno@clisp.org>
23234
23235         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23236         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23237
23238 2010-04-04  Bruno Haible  <bruno@clisp.org>
23239
23240         Implement nanosleep for native Windows.
23241         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23242
23243 2010-04-04  Bruno Haible  <bruno@clisp.org>
23244
23245         math: Fix some C++ test errors on Solaris 8.
23246         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23247
23248 2010-04-04  Bruno Haible  <bruno@clisp.org>
23249
23250         math: Fix some C++ test errors on Cygwin.
23251         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23252         truncl): Provide declaration if the system does not have it.
23253         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23254         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23255         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23256         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23257         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23258         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23259         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23260         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23261         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23262         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23263         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23264         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23265         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23266         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23267         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23268         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23270         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23271         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23272         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23273         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23274         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23275
23276 2010-04-04  Bruno Haible  <bruno@clisp.org>
23277
23278         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23279         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23280         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23281         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23282         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23283         * m4/isinf.m4 (gl_ISINF): Likewise.
23284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23285
23286 2010-04-04  Bruno Haible  <bruno@clisp.org>
23287
23288         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23289         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23290
23291 2010-04-04  Bruno Haible  <bruno@clisp.org>
23292
23293         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23294         * modules/tmpfile (configure.ac): Update.
23295
23296         tmpfile: Fix C++ test error on mingw.
23297         * lib/stdio.in.h (tmpfile): New declaration.
23298         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23299         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23300         * modules/tmpfile (Depends-on): Add stdio.
23301         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23302         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23303         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23304         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23305         REPLACE_TMPFILE.
23306         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23307
23308 2010-04-04  Bruno Haible  <bruno@clisp.org>
23309
23310         ioctl: Fix C++ test error on mingw.
23311         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23312         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23313         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23314
23315 2010-04-03  Bruno Haible  <bruno@clisp.org>
23316
23317         wcwidth: Fix C++ test error on mingw.
23318         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23320         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23321
23322 2010-04-03  Bruno Haible  <bruno@clisp.org>
23323
23324         nanosleep: Fix C++ test error on mingw.
23325         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23326         * lib/time.in.h (nanosleep): Use modern idiom.
23327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23328         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23329         REPLACE_NANOSLEEP to 1.
23330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23331         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23332
23333 2010-04-03  Bruno Haible  <bruno@clisp.org>
23334
23335         strptime: Fix C++ test error on mingw.
23336         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23337         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23338         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23339         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23340         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23341         not REPLACE_STRPTIME.
23342         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23343         REPLACE_STRPTIME.
23344
23345 2010-04-03  Bruno Haible  <bruno@clisp.org>
23346
23347         timegm: Fix C++ test error on mingw.
23348         * lib/time.in.h (timegm): Use modern idiom.
23349         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23350         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23352         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23353
23354 2010-04-03  Bruno Haible  <bruno@clisp.org>
23355
23356         timegm: Assume declaration if function exists.
23357         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23358         if it exists. Don't clobber ac_cv_func_timegm.
23359
23360 2010-04-03  Bruno Haible  <bruno@clisp.org>
23361
23362         time_r: Fix C++ test error on mingw.
23363         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23364         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23365         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23366         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23367         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23368
23369 2010-04-03  Bruno Haible  <bruno@clisp.org>
23370
23371         time_r: Minor updates.
23372         * modules/time_r (Description): Mention the provided functions.
23373         * lib/time_r.c: Don't include <string.h>.
23374         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23375         * doc/posix-functions/localtime_r.texi: Likewise.
23376
23377 2010-04-03  Bruno Haible  <bruno@clisp.org>
23378
23379         time: Fix regression introduced on 2010-03-08.
23380         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23381         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23382
23383 2010-04-03  Jim Meyering  <meyering@redhat.com>
23384
23385         maint.mk: don't silently disable project-specific syntax-check rules
23386         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23387         that they need to convert their project-specific syntax-check rules
23388         to use the new _sc_search_regexp.
23389
23390 2010-04-03  Bruno Haible  <bruno@clisp.org>
23391
23392         fchdir: Fix regression introduced on 2010-03-08.
23393         * lib/unistd.in.h (fchdir): Fix declaration.
23394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23396         REPLACE_FCHDIR.
23397         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23398         REPLACE_FCHDIR.
23399
23400 2010-04-03  Bruno Haible  <bruno@clisp.org>
23401
23402         getpagesize: Fix C++ test error on mingw.
23403         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23404         system does not declare the function.
23405         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23406         declared.
23407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23408         HAVE_DECL_GETPAGESIZE.
23409         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23410
23411 2010-04-03  Bruno Haible  <bruno@clisp.org>
23412
23413         stdio: Make C++ tests work on mingw.
23414         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23415         does not declare the function.
23416
23417 2010-04-03  Bruno Haible  <bruno@clisp.org>
23418
23419         ftello: Fix C++ test error on mingw.
23420         * lib/stdio.in.h (ftello): Use modern idiom.
23421         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23422         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23423         is missing and that it needs to be replaced.
23424         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23426         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23427
23428 2010-04-03  Bruno Haible  <bruno@clisp.org>
23429
23430         fseeko: Fix C++ test error on mingw.
23431         * lib/stdio.in.h (fseeko): Use modern idiom.
23432         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23433         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23434         is missing and that it needs to be replaced.
23435         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23437         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23438
23439 2010-04-03  Bruno Haible  <bruno@clisp.org>
23440
23441         mkstemp: Fix C++ test error on mingw.
23442         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23444         function is missing and that it needs to be replaced.
23445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23446         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23447
23448 2010-04-03  Bruno Haible  <bruno@clisp.org>
23449
23450         stpncpy: Fix C++ test error on mingw.
23451         * lib/string.in.h (stpncpy): Use modern idiom.
23452         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23453         function is missing and that it needs to be replaced.
23454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23455         REPLACE_STPNCPY.
23456         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23457
23458 2010-04-03  Bruno Haible  <bruno@clisp.org>
23459
23460         sys_stat: Fix C++ test error on mingw.
23461         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23462         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23463
23464 2010-04-03  Bruno Haible  <bruno@clisp.org>
23465
23466         pty: Update doc.
23467         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23468
23469 2010-04-03  Bruno Haible  <bruno@clisp.org>
23470
23471         unistd: Fix C++ test error on mingw.
23472         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23473
23474 2010-04-03  Bruno Haible  <bruno@clisp.org>
23475
23476         Update doc regarding mingw.
23477         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23478         * doc/glibc-functions/login_tty.texi: Likewise.
23479         * doc/glibc-functions/forkpty.texi: Likewise.
23480
23481 2010-04-03  Bruno Haible  <bruno@clisp.org>
23482
23483         stdlib: Avoid compilation failure of c-strtold on mingw.
23484         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23485
23486 2010-04-03  Bruno Haible  <bruno@clisp.org>
23487
23488         locale: Make C++ tests work on Cygwin and mingw.
23489         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23490         cannot provide the function.
23491         Reported by Simon Josefsson.
23492
23493 2010-04-03  Bruno Haible  <bruno@clisp.org>
23494
23495         localename: Port to MacOS X 10.6.
23496         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23497         memory layout of the locales in MacOS X 10.6 as well.
23498         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23499
23500 2010-04-02  Bruno Haible  <bruno@clisp.org>
23501
23502         gnulib-tool: Ensure that long-running tests are executed last.
23503         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23504         running tests after the one for the other tests.
23505
23506 2010-04-02  Bruno Haible  <bruno@clisp.org>
23507
23508         gnulib-tool: Ensure the tests in the main directory are executed first.
23509         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23510         start with the current directory.
23511
23512 2010-04-02  Bruno Haible  <bruno@clisp.org>
23513
23514         Tests for module 'havelib', moved here from GNU gettext.
23515         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23516         modifications.
23517         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23518         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23519         with modifications.
23520         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23521         modifications.
23522         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23523         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23524         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23525         with modifications.
23526         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23527         with modifications.
23528         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23529         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23530         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23531         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23532         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23533         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23534         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23535         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23536         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23537         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23538         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23539         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23540         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23541         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23542         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23543         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23544         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23545         with modifications.
23546         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23547         with modifications.
23548         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23549         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23550         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23551         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23552         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23553         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23554         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23555         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23556         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23557         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23558         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23559         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23560         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23561         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23562         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23563         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23564         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23565         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23566         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23567         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23568         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23569         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23570         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23571         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23572         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23573         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23574         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23575         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23576         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23577         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23578         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23579         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23580         * tests/havelib/rpathx/rpathx.c: New file, from
23581         gettext/autoconf-lib-link.
23582         * tests/havelib/rpathx/Makefile.am: New file, from
23583         gettext/autoconf-lib-link.
23584         * tests/havelib/rpathx/configure.ac: New file, from
23585         gettext/autoconf-lib-link with modifications.
23586         * tests/havelib/rpathy/rpathy.c: New file, from
23587         gettext/autoconf-lib-link.
23588         * tests/havelib/rpathy/Makefile.am: New file, from
23589         gettext/autoconf-lib-link.
23590         * tests/havelib/rpathy/configure.ac: New file, from
23591         gettext/autoconf-lib-link with modifications.
23592         * tests/havelib/rpathz/rpathz.c: New file, from
23593         gettext/autoconf-lib-link.
23594         * tests/havelib/rpathz/Makefile.am: New file, from
23595         gettext/autoconf-lib-link.
23596         * tests/havelib/rpathz/configure.ac: New file, from
23597         gettext/autoconf-lib-link with modifications.
23598         * tests/havelib/rpathlx/usex.c: New file, from
23599         gettext/autoconf-lib-link.
23600         * tests/havelib/rpathlx/Makefile.am: New file, from
23601         gettext/autoconf-lib-link.
23602         * tests/havelib/rpathlx/configure.ac: New file, from
23603         gettext/autoconf-lib-link with modifications.
23604         * tests/havelib/rpathly/usey.c: New file, from
23605         gettext/autoconf-lib-link.
23606         * tests/havelib/rpathly/Makefile.am: New file, from
23607         gettext/autoconf-lib-link.
23608         * tests/havelib/rpathly/configure.ac: New file, from
23609         gettext/autoconf-lib-link with modifications.
23610         * tests/havelib/rpathlz/usez.c: New file, from
23611         gettext/autoconf-lib-link.
23612         * tests/havelib/rpathlz/Makefile.am: New file, from
23613         gettext/autoconf-lib-link.
23614         * tests/havelib/rpathlz/configure.ac: New file, from
23615         gettext/autoconf-lib-link with modifications.
23616         * tests/havelib/rpathlyx/usey.c: New file, from
23617         gettext/autoconf-lib-link.
23618         * tests/havelib/rpathlyx/Makefile.am: New file, from
23619         gettext/autoconf-lib-link.
23620         * tests/havelib/rpathlyx/configure.ac: New file, from
23621         gettext/autoconf-lib-link with modifications.
23622         * tests/havelib/rpathlzyx/usez.c: New file, from
23623         gettext/autoconf-lib-link.
23624         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23625         gettext/autoconf-lib-link.
23626         * tests/havelib/rpathlzyx/configure.ac: New file, from
23627         gettext/autoconf-lib-link with modifications.
23628         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23629         with modifications.
23630
23631 2010-04-02  Bruno Haible  <bruno@clisp.org>
23632
23633         gnulib-tool: Create distributed built sources also for the tests.
23634         * gnulib-tool (func_create_testdir): Also generate distributed built
23635         sources in the tests directory.
23636
23637 2010-04-02  Bruno Haible  <bruno@clisp.org>
23638
23639         gnulib-tool: Obey user's environment variables.
23640         * gnulib-tool (func_create_testdir): When creating built sources,
23641         respect the environment variables for autoconf, automake, etc. given by
23642         the user.
23643
23644 2010-04-02  Bruno Haible  <bruno@clisp.org>
23645
23646         gnulib-tool: Provide the value of --m4-base to modules.
23647         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23648         of gl_m4_base.
23649
23650 2010-04-02  Eric Blake  <eblake@redhat.com>
23651
23652         maint.mk: fix some fallout
23653         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23654         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23655
23656 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23657
23658         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23659         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23660         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23661         (sc_cast_of_x_alloc_return_value): Likewise.
23662         (sc_cast_of_alloca_return_value): Likewise.
23663         (sc_space_tab): Likewise.
23664         (sc_prohibit_atoi_atof): Likewise.
23665         (sc_prohibit_magic_number_exit): Likewise.
23666         (sc_error_exit_success): Likewise.
23667         (sc_file_system): Likewise.
23668         (sc_prohibit_have_config_h): Likewise.
23669         (sc_require_config_h): Likewise.
23670         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23671         (sc_obsolete_symbols): Likewise.
23672         (sc_changelog): Likewise.
23673         (sc_program_name): Likewise.
23674         (sc_the_the): Likewise.
23675         (sc_trailing_blank): Likewise.
23676         (sc_two_space_separator_in_usage): Likewise.
23677         (sc_useless_cpp_parens): Likewise.
23678         (sc_GPL_version): Likewise.
23679         (sc_GFDL_version): Likewise.
23680         (sc_texinfo_acronym): Likewise.
23681         (sc_prohibit_cvs_keyword): Likewise.
23682         (sc_prohibit_stat_st_blocks): Likewise.
23683         (sc_prohibit_S_IS_definition): Likewise.
23684         (sc_redundant_const): Likewise.
23685         (sc_makefile_TAB_only_indentation): Likewise.
23686         (sc_m4_quote_check): Likewise.
23687         (sc_makefile_path_separator_check): Likewise.
23688         (sc_copyright_check): Likewise.
23689         (sc_Wundef_boolean): Likewise.
23690         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23691
23692         maint.mk: match 0 or more whitespace-before-function-call '('
23693         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23694         that have zero or two-and-more spaces between the function name
23695         and the open parenthesis.
23696         (sc_error_message_warn_fatal): Likewise.
23697         (sc_error_message_uppercase): Likewise.
23698         (sc_error_message_period): Likewise.
23699
23700 2010-03-31  Eric Blake  <eblake@redhat.com>
23701
23702         maint.mk: check for [ as well as test
23703         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23704         Based on a libvirt report by Matthias Bolte.
23705
23706         gnumakefile: don't squelch _version output
23707         * top/GNUmakefile (_version): Create one-shot dependency rather
23708         than using $(shell) when version must be regenerated.
23709         (_autoreconf): Run verbosely, by default.
23710
23711         sys_time: avoid compiler warnings
23712         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23713         unconditional, fixing regression from 2010-03-29.
23714         Reported by Simon Josefsson.
23715
23716 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23717
23718         maint.mk: s/_header_without_use/_sc_header_without_use/
23719         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23720         (sc_prohibit_assert_without_use): Use the new name.
23721         (sc_prohibit_close_stream_without_use): Likewise.
23722         (sc_prohibit_getopt_without_use): Likewise.
23723         (sc_prohibit_quotearg_without_use): Likewise.
23724         (sc_prohibit_quote_without_use): Likewise.
23725         (sc_prohibit_long_options_without_use): Likewise.
23726         (sc_prohibit_inttostr_without_use): Likewise.
23727         (sc_prohibit_ignore_value_without_use): Likewise.
23728         (sc_prohibit_error_without_use): Likewise.
23729         (sc_prohibit_xalloc_without_use): Likewise.
23730         (sc_prohibit_hash_without_use): Likewise.
23731         (sc_prohibit_hash_pjw_without_use): Likewise.
23732         (sc_prohibit_safe_read_without_use): Likewise.
23733         (sc_prohibit_argmatch_without_use): Likewise.
23734         (sc_prohibit_canonicalize_without_use): Likewise.
23735         (sc_prohibit_root_dev_ino_without_use): Likewise.
23736         (sc_prohibit_openat_without_use): Likewise.
23737         (sc_prohibit_c_ctype_without_use): Likewise.
23738         (sc_prohibit_signal_without_use): Likewise.
23739         (sc_prohibit_intprops_without_use): Likewise.
23740
23741 2010-03-30  Eric Blake  <eblake@redhat.com>
23742
23743         maint: improve module indicators
23744         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23745         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23746         columns, and avoid extra macro expansion.
23747
23748         fdopendir: work around FreeBSD bug
23749         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23750         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23751         * modules/dirent (Makefile.am): Substitute it.
23752         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23753         declaration.
23754         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23755         fix.
23756         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23757
23758 2010-03-29  Bruno Haible  <bruno@clisp.org>
23759
23760         Emit #pragma system_header after the inclusion guard, not before.
23761         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23762         guard that spans the entire file, not before. This enables an
23763         optimization in GCC's preprocessor.
23764         * lib/ctype.in.h: Likewise.
23765         * lib/dirent.in.h: Likewise.
23766         * lib/errno.in.h: Likewise.
23767         * lib/float.in.h: Likewise.
23768         * lib/getopt.in.h: Likewise.
23769         * lib/iconv.in.h: Likewise.
23770         * lib/langinfo.in.h: Likewise.
23771         * lib/locale.in.h: Likewise.
23772         * lib/math.in.h: Likewise.
23773         * lib/netdb.in.h: Likewise.
23774         * lib/netinet_in.in.h: Likewise.
23775         * lib/pty.in.h: Likewise.
23776         * lib/sched.in.h: Likewise.
23777         * lib/se-selinux.in.h: Likewise.
23778         * lib/search.in.h: Likewise.
23779         * lib/spawn.in.h: Likewise.
23780         * lib/stdarg.in.h: Likewise.
23781         * lib/stdint.in.h: Likewise.
23782         * lib/string.in.h: Likewise.
23783         * lib/strings.in.h: Likewise.
23784         * lib/sys_file.in.h: Likewise.
23785         * lib/sys_ioctl.in.h: Likewise.
23786         * lib/sys_time.in.h: Likewise.
23787         * lib/sys_times.in.h: Likewise.
23788         * lib/sys_utsname.in.h: Likewise.
23789         * lib/sys_wait.in.h: Likewise.
23790         * lib/sysexits.in.h: Likewise.
23791         * lib/wctype.in.h: Likewise.
23792
23793 2010-03-28  James Youngman  <jay@gnu.org>
23794
23795         save-cwd: don't leak a file descriptor when the caller execs.
23796         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23797         saved file descriptor.
23798         * modules/save-cwd (Depends-on): Depend on cloexec.
23799
23800 2010-03-29  Bruno Haible  <bruno@clisp.org>
23801
23802         Remove vestiges of fts-lgpl module.
23803         * lib/fts_.h: Assume GNULIB_FTS is 1.
23804         * lib/fts.c: Likewise.
23805         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23806
23807 2010-03-28  Bruno Haible  <bruno@clisp.org>
23808
23809         Fix definition of tests witness macro.
23810         * gnulib-tool (func_import): Fix definition of witness macro.
23811
23812 2010-03-28  Bruno Haible  <bruno@clisp.org>
23813
23814         Fix ioctl's protoype on glibc systems.
23815         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23816         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23817         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23818         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23819         signature. If not, arrange to replace the ioctl function.
23820         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23821         REPLACE_IOCTL.
23822         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23823         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23824         Reported by Ludovic Courtès <ludo@gnu.org>.
23825
23826 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23827
23828         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23829         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23830         made it so grep -r --include=GLOB* ... did not work.
23831
23832 2010-03-26  Jim Meyering  <meyering@redhat.com>
23833             Eric Blake  <eblake@redhat.com>
23834
23835         maint.mk: prohibit use of test's -o and -a operators
23836         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23837
23838 2010-03-28  Bruno Haible  <bruno@clisp.org>
23839
23840         Remove unused GNULIB_XYZ macro definitions.
23841         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23842         invocation.
23843
23844 2010-03-28  Bruno Haible  <bruno@clisp.org>
23845
23846         Mark privileged tests modules.
23847         * modules/idpriv-drop-tests (Status): New section.
23848         * modules/idpriv-droptemp-tests (Status): New section.
23849
23850 2010-03-28  Bruno Haible  <bruno@clisp.org>
23851
23852         Split C++ tests into separate tests modules.
23853         * modules/dirent-c++-tests: New file, extracted from
23854         modules/dirent-tests.
23855         * modules/dirent-tests: Depend on it.
23856         * modules/fcntl-h-c++-tests: New file, extracted from
23857         modules/fcntl-h-tests.
23858         * modules/fcntl-h-tests: Depend on it.
23859         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23860         * modules/glob-tests: Depend on it.
23861         * modules/iconv-h-c++-tests: New file, extracted from
23862         modules/iconv-h-tests.
23863         * modules/iconv-h-tests: Depend on it.
23864         * modules/langinfo-c++-tests: New file, extracted from
23865         modules/langinfo-tests.
23866         * modules/langinfo-tests: Depend on it.
23867         * modules/locale-c++-tests: New file, extracted from
23868         modules/locale-tests.
23869         * modules/locale-tests: Depend on it.
23870         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23871         * modules/math-tests: Depend on it.
23872         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23873         * modules/pty-tests: Depend on it.
23874         * modules/search-c++-tests: New file, extracted from
23875         modules/search-tests.
23876         * modules/search-tests: Depend on it.
23877         * modules/signal-c++-tests: New file, extracted from
23878         modules/signal-tests.
23879         * modules/signal-tests: Depend on it.
23880         * modules/spawn-c++-tests: New file, extracted from
23881         modules/spawn-tests.
23882         * modules/spawn-tests: Depend on it.
23883         * modules/stdio-c++-tests: New file, extracted from
23884         modules/stdio-tests.
23885         * modules/stdio-tests: Depend on it.
23886         * modules/stdlib-c++-tests: New file, extracted from
23887         modules/stdlib-tests.
23888         * modules/stdlib-tests: Depend on it.
23889         * modules/string-c++-tests: New file, extracted from
23890         modules/string-tests.
23891         * modules/string-tests: Depend on it.
23892         * modules/sys_ioctl-c++-tests: New file, extracted from
23893         modules/sys_ioctl-tests.
23894         * modules/sys_ioctl-tests: Depend on it.
23895         * modules/sys_select-c++-tests: New file, extracted from
23896         modules/sys_select-tests.
23897         * modules/sys_select-tests: Depend on it.
23898         * modules/sys_socket-c++-tests: New file, extracted from
23899         modules/sys_socket-tests.
23900         * modules/sys_socket-tests: Depend on it.
23901         * modules/sys_stat-c++-tests: New file, extracted from
23902         modules/sys_stat-tests.
23903         * modules/sys_stat-tests: Depend on it.
23904         * modules/sys_time-c++-tests: New file, extracted from
23905         modules/sys_time-tests.
23906         * modules/sys_time-tests: Depend on it.
23907         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23908         * modules/time-tests: Depend on it.
23909         * modules/unistd-c++-tests: New file, extracted from
23910         modules/unistd-tests.
23911         * modules/unistd-tests: Depend on it.
23912         * modules/wchar-c++-tests: New file, extracted from
23913         modules/wchar-tests.
23914         * modules/wchar-tests: Depend on it.
23915         * modules/wctype-c++-tests: New file, extracted from
23916         modules/wctype-tests.
23917         * modules/wctype-tests: Depend on it.
23918         Reported by Simon Josefsson.
23919
23920 2010-03-28  Bruno Haible  <bruno@clisp.org>
23921
23922         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23923         * gnulib-tool (func_exists_module): New function, extracted from
23924         func_verify_module.
23925         (func_verify_module): Use it.
23926         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23927         'foo' only if 'foo' exists.
23928         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23929         module.
23930
23931 2010-03-28  Bruno Haible  <bruno@clisp.org>
23932
23933         gnulib-tool: Add support for special categories of tests.
23934         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23935         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23936         (func_usage): Document them.
23937         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23938         inc_unportable_tests, inc_all_tests): New variables.
23939         (func_acceptable): Consider these variables.
23940         (func_modules_transitive_closure): Make it work when the 'Status' field
23941         consists of multiple words.
23942         (func_import): Store and restore the values of inc_cxx_tests,
23943         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23944         inc_all_tests in gnulib-comp.m4.
23945         (func_create_testdir): Set inc_all_tests to true.
23946         * doc/gnulib.texi (Extra tests modules): New section.
23947         Suggested by Jim Meyering.
23948
23949 2010-03-28  Bruno Haible  <bruno@clisp.org>
23950
23951         ansi-c++-opt: Allow turning off the C++ build by default.
23952         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23953         gl_CXX_CHOICE_DEFAULT_NO is defined.
23954         Requested by Eric Blake.
23955
23956 2010-03-28  Bruno Haible  <bruno@clisp.org>
23957
23958         unistd: Avoid #define replacements in C++ mode.
23959         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23960         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23961         setsockopt, shutdown, select): In C++, attach a warning to the function
23962         if possible, rather than #defining the symbol to a dysfunctional alias.
23963         Reported by John W. Eaton <jwe@gnu.org>.
23964
23965 2010-03-28  Bruno Haible  <bruno@clisp.org>
23966
23967         Fix link errors on mingw.
23968         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23969         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23970         $(LIBSOCKET).
23971         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23972         $(LIBSOCKET).
23973
23974 2010-03-28  Bruno Haible  <bruno@clisp.org>
23975             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23976
23977         lib-ignore: Determine different options for different compilers.
23978         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23979         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23980         Add comments.
23981         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23982         * NEWS: Mention the change.
23983
23984 2010-03-27  Bruno Haible  <bruno@clisp.org>
23985
23986         Remove unused GNULIB_XYZ macro definitions.
23987         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23988         * modules/fseek (configure.ac): Likewise.
23989         * modules/ioctl (configure.ac): Likewise.
23990         * modules/open (configure.ac): Likewise.
23991         * modules/stdlib-safer (configure.ac): Likewise.
23992
23993 2010-03-27  Bruno Haible  <bruno@clisp.org>
23994
23995         Add a remark about certain modules.
23996         * modules/malloc (Comment): New section.
23997         * modules/realloc (Comment): Likewise.
23998         * modules/sigpipe (Comment): Likewise.
23999
24000 2010-03-27  Bruno Haible  <bruno@clisp.org>
24001
24002         Resolve conflict between the two kinds of module indicators.
24003         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24004         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24005         * modules/canonicalize (configure.ac): Invoke
24006         gl_MODULE_INDICATOR_FOR_TESTS.
24007         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24008         GNULIB_XYZ.
24009         * tests/test-dirent-c++.cc: Likewise.
24010         * tests/test-dirent-safer.c: Likewise.
24011         * tests/test-dup2.c: Likewise.
24012         * tests/test-fchdir.c: Likewise.
24013         * tests/test-fcntl-h-c++.cc: Likewise.
24014         * tests/test-getopt.c: Likewise.
24015         * tests/test-getopt.h: Likewise.
24016         * tests/test-langinfo-c++.cc: Likewise.
24017         * tests/test-locale-c++.cc: Likewise.
24018         * tests/test-math-c++.cc: Likewise.
24019         * tests/test-pty-c++.cc: Likewise.
24020         * tests/test-search-c++.cc: Likewise.
24021         * tests/test-signal-c++.cc: Likewise.
24022         * tests/test-spawn-c++.cc: Likewise.
24023         * tests/test-stdio-c++.cc: Likewise.
24024         * tests/test-stdlib-c++.cc: Likewise.
24025         * tests/test-string-c++.cc: Likewise.
24026         * tests/test-sys_ioctl-c++.cc: Likewise.
24027         * tests/test-sys_select-c++.cc: Likewise.
24028         * tests/test-sys_socket-c++.cc: Likewise.
24029         * tests/test-sys_stat-c++.cc: Likewise.
24030         * tests/test-sys_time-c++.cc: Likewise.
24031         * tests/test-time-c++.cc: Likewise.
24032         * tests/test-unistd-c++.cc: Likewise.
24033         * tests/test-wchar-c++.cc: Likewise.
24034         * tests/uninorm/test-u8-nfc.c: Likewise.
24035         * tests/uninorm/test-u8-nfd.c: Likewise.
24036         * tests/uninorm/test-u8-nfkc.c: Likewise.
24037         * tests/uninorm/test-u8-nfkd.c: Likewise.
24038         * tests/uninorm/test-u16-nfc.c: Likewise.
24039         * tests/uninorm/test-u16-nfd.c: Likewise.
24040         * tests/uninorm/test-u16-nfkc.c: Likewise.
24041         * tests/uninorm/test-u16-nfkd.c: Likewise.
24042         * tests/uninorm/test-u32-nfc.c: Likewise.
24043         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24044         * tests/uninorm/test-u32-nfd.c: Likewise.
24045         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24046         * tests/uninorm/test-u32-nfkc.c: Likewise.
24047         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24048         * tests/uninorm/test-u32-nfkd.c: Likewise.
24049         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24050         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24051
24052 2010-03-27  Bruno Haible  <bruno@clisp.org>
24053
24054         Distinguish two kinds of module indicators.
24055         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24056         gl_MODULE_INDICATOR.
24057         (gl_MODULE_INDICATOR): New macro.
24058         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24059         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24060         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24061         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24062         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24063         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24064         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24065         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24066         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24067         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24068         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24069         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24071         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24072         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24074         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24075         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24076         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24077         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24078         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24079         * modules/cloexec (configure.ac): Likewise.
24080         * modules/getopt-gnu (configure.ac): Likewise.
24081         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24082         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24083         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24084         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24085
24086 2010-03-27  Bruno Haible  <bruno@clisp.org>
24087
24088         New module description field 'Comment'.
24089         * gnulib-tool: New option --extract-comment.
24090         (func_usage): Document it.
24091         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24092         (func_get_comment): New function.
24093         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24094
24095 2010-03-27  Bruno Haible  <bruno@clisp.org>
24096
24097         Addendum to 2010-02-07 commit.
24098         * gnulib-tool (func_usage): Document --extract-applicability option.
24099
24100 2010-03-27  Bruno Haible  <bruno@clisp.org>
24101
24102         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24103         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24104         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24105         rather than link errors.
24106
24107 2010-03-27  Bruno Haible  <bruno@clisp.org>
24108
24109         Avoid side effects from tests-related modules on the compilation of lib.
24110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24111         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24112         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24113         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24114         macro.
24115         (func_import): Define a witness macro. Assign it a value that depends
24116         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24117         tests-related modules.
24118         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24119         Reported by Jim Meyering.
24120
24121 2010-03-27  Bruno Haible  <bruno@clisp.org>
24122
24123         Factorize common .m4 code.
24124         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24125         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24126         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24127         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24128         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24129         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24130         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24131         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24132         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24133         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24134         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24135         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24136         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24137         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24138         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24139         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24141         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24143         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24144         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24145         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24146         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24148         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24149         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24150         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24151         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24152         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24153         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24154         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24155         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24156
24157 2010-03-27  Bruno Haible  <bruno@clisp.org>
24158
24159         Fix a compilation error on Cygwin with g++ >= 4.3.
24160         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24161         if it is undefined or if we alias it to chmod.
24162         (lstat): Don't warn about the use of this function if it is undefined
24163         or if we alias it to stat.
24164         Reported by Simon Josefsson.
24165
24166 2010-03-27  Bruno Haible  <bruno@clisp.org>
24167
24168         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24169         * modules/getlogin (configure.ac): Update.
24170
24171         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24172         * modules/getlogin_r (configure.ac): Update.
24173
24174         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24176         * modules/inet_ntop (configure.ac): Update.
24177
24178         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24179         * modules/inet_pton (configure.ac): Update.
24180
24181         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24182         * modules/mbslen (configure.ac): Update.
24183
24184         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24185         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24186         * modules/forkpty (configure.ac): Update.
24187         * modules/openpty (configure.ac): Update.
24188
24189 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24190
24191         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24192         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24193
24194 2010-03-25  Eric Blake  <eblake@redhat.com>
24195
24196         maint: use pragma consistently across replacement headers
24197         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24198         * lib/dirent.in.h (system_header): Likewise.
24199         * lib/errno.in.h (system_header): Likewise.
24200         * lib/float.in.h (system_header): Likewise.
24201         * lib/getopt.in.h (system_header): Likewise.
24202         * lib/iconv.in.h (system_header): Likewise.
24203         * lib/inttypes.in.h (system_header): Likewise.
24204         * lib/langinfo.in.h (system_header): Likewise.
24205         * lib/locale.in.h (system_header): Likewise.
24206         * lib/math.in.h (system_header): Likewise.
24207         * lib/netdb.in.h (system_header): Likewise.
24208         * lib/netinet_in.in.h (system_header): Likewise.
24209         * lib/pty.in.h (system_header): Likewise.
24210         * lib/sched.in.h (system_header): Likewise.
24211         * lib/se-selinux.in.h (system_header): Likewise.
24212         * lib/search.in.h (system_header): Likewise.
24213         * lib/spawn.in.h (system_header): Likewise.
24214         * lib/stdarg.in.h (system_header): Likewise.
24215         * lib/stdint.in.h (system_header): Likewise.
24216         * lib/string.in.h (system_header): Likewise.
24217         * lib/strings.in.h (system_header): Likewise.
24218         * lib/sys_file.in.h (system_header): Likewise.
24219         * lib/sys_ioctl.in.h (system_header): Likewise.
24220         * lib/sys_socket.in.h (system_header): Likewise.
24221         * lib/sys_times.in.h (system_header): Likewise.
24222         * lib/sys_utsname.in.h (system_header): Likewise.
24223         * lib/sys_wait.in.h (system_header): Likewise.
24224         * lib/sysexits.in.h (system_header): Likewise.
24225         * lib/unistd.in.h (system_header): Likewise.
24226         * lib/wctype.in.h (system_header): Likewise.
24227
24228         arpa/inet: fix mingw compilation warning
24229         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24230         Reported by Matthew Bolte.
24231
24232 2010-03-25  Bruno Haible  <bruno@clisp.org>
24233
24234         Avoid collision between gnulib wrapper and libintl wrapper.
24235         * lib/printf.c (printf): Don't define if a printf wrapper is already
24236         defined in intl/printf.c.
24237         Reported by Michel Boaventura <michel@michelboaventura.com>.
24238
24239 2010-03-25  Bruno Haible  <bruno@clisp.org>
24240
24241         Use ANSI C.
24242         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24243
24244 2010-03-25  Bruno Haible  <bruno@clisp.org>
24245
24246         Minor formatting changes.
24247         * lib/acosl.c: Insert space before function argument list.
24248         * lib/argz.c: Likewise.
24249         * lib/asinl.c: Likewise.
24250         * lib/expl.c: Likewise.
24251         * lib/gen-uni-tables.c: Likewise.
24252         * lib/gettext.h: Likewise.
24253         * lib/glthread/lock.h: Likewise.
24254         * lib/tanl.c: Likewise.
24255         * lib/uniname/uniname.c: Likewise.
24256         * tests/test-idpriv-drop.c: Likewise.
24257         * tests/test-idpriv-droptemp.c: Likewise.
24258         * tests/test-lock.c: Likewise.
24259         * tests/test-tls.c: Likewise.
24260         * lib/argp-help.c: Insert space before function-like macro argument
24261         list.
24262         * lib/memcmp.c: Likewise.
24263         * tests/test-base64.c: Likewise.
24264         * lib/localename.c: Insert space before sizeof's argument list.
24265         * lib/safe-alloc.h: Likewise.
24266         * lib/file-set.h: Insert space before macro argument list.
24267         * tests/test-argp.c: Likewise.
24268         * lib/argp-namefrob.h: Insert space before function parameter list.
24269         * lib/getaddrinfo.c: Likewise.
24270         * lib/netdb.in.h: Likewise.
24271         * lib/parse-duration.h: Likewise.
24272         * lib/parse-duration.c: Likewise.
24273         * lib/poll.c: Likewise.
24274         * lib/select.c: Likewise.
24275         * lib/trim.h: Likewise.
24276         * tests/test-usleep.c: Likewise.
24277         * lib/ldexpl.c: Insert space before function parameter list and before
24278         function argument list.
24279         * lib/logl.c: Likewise.
24280         * lib/sqrtl.c: Likewise.
24281         * lib/trim.c: Likewise.
24282         * lib/cosl.c: Use GNU style indentation. Insert space before function
24283         argument list.
24284         * lib/sinl.c: Likewise.
24285         * lib/tsearch.c: Insert space after 'for'.
24286         Reported by Jim Meyering.
24287
24288 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24289
24290         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24291         config header before grepping, as it's not present before
24292         autoreconf/configure are run.  Reported by Simon Josefsson.
24293
24294 2010-03-23  Bruno Haible  <bruno@clisp.org>
24295
24296         pt_chown: Make it work with automake < 1.11.
24297         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24298         Reported by Simon Josefsson.
24299
24300 2010-03-23  Bruno Haible  <bruno@clisp.org>
24301
24302         pt_chown: Don't depend on GPLed modules.
24303         * lib/pt_chown.c: Don't include idpriv.h.
24304         (main): Don't drop privileges.
24305         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24306         Reported by Simon Josefsson.
24307
24308 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24309
24310         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24311         suggestions from karl@freefriends.org (Karl Berry).
24312
24313 2010-03-22  Eric Blake  <eblake@redhat.com>
24314
24315         gethostname: further tweaks
24316         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24317         are overriding gethostname.
24318         Suggested by Bruno Haible.
24319
24320 2010-03-21  Bruno Haible  <bruno@clisp.org>
24321
24322         Fix comments.
24323         * lib/forkpty.c (rpl_forkpty): Fix comment.
24324         * lib/openpty.c (rpl_openpty): Likewise.
24325         Reported by Eric Blake.
24326
24327 2010-03-22  Eric Blake  <eblake@redhat.com>
24328
24329         gethostname: fix build on mingw
24330         * lib/unistd.in.h (includes): Work around fact that mingw
24331         <winsock2.h> re-includes <unistd.h>, by avoiding any
24332         redeclarations if we are being included by <winsock2.h>.
24333         Reported by Matthias Bolte.
24334
24335 2010-03-21  Bruno Haible  <bruno@clisp.org>
24336
24337         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24338         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24339         modifications.
24340         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24341         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24342         provide the replacement.
24343         * modules/forkpty (Depends-on): Add openpty, login_tty.
24344         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24345         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24346         * doc/glibc-functions/forkpty.texi: More supported platforms.
24347         * config/srclist.txt: Add forkpty.c (commented).
24348
24349 2010-03-21  Bruno Haible  <bruno@clisp.org>
24350
24351         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24352         (Makefile.am): Verify that PTY_LIB is defined.
24353
24354         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24355
24356 2010-03-21  Bruno Haible  <bruno@clisp.org>
24357
24358         Tests for module 'login_tty'.
24359         * modules/login_tty-tests: New file.
24360         * tests/test-login_tty.c: New file.
24361
24362         New module 'login_tty'.
24363         * lib/login_tty.c: New file.
24364         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24365         * modules/login_tty: New file.
24366         * doc/glibc-functions/login_tty.texi: Mention the new module.
24367
24368 2010-03-21  Bruno Haible  <bruno@clisp.org>
24369
24370         login_tty: Documentation.
24371         * doc/glibc-functions/login_tty.texi: New file.
24372         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24373
24374 2010-03-21  Bruno Haible  <bruno@clisp.org>
24375
24376         pty: Consistent macro naming.
24377         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24378         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24379         * modules/pty (configure.ac): Update.
24380
24381 2010-03-21  Bruno Haible  <bruno@clisp.org>
24382
24383         Tests for openpty: Make stricter.
24384         * tests/test-openpty.c (main): Add test of canonical processing and
24385         erase.
24386         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24387
24388         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24389         * lib/openpty.c (openpty): New replacement function.
24390         * lib/pty.in.h: Include <termios.h>.
24391         (openpty): Update declaration. Add comments.
24392         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24393         is not declared, arrange to provide the replacement. Check for _getpty
24394         and posix_openpt.
24395         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24396         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24397         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24398         * modules/pty-tests (test_pty_c___LDADD): New variable.
24399         * doc/glibc-functions/openpty.texi: More supported platforms.
24400
24401 2010-03-21  Bruno Haible  <bruno@clisp.org>
24402
24403         setenv: Tweaks.
24404         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24405         the test program.
24406         * doc/posix-functions/setenv.texi: Update platforms list.
24407
24408 2010-03-21  Bruno Haible  <bruno@clisp.org>
24409
24410         New module 'unlockpt'.
24411         * lib/unlockpt.c: New file, from glibc with modifications.
24412         * m4/unlockpt.m4: New file.
24413         * modules/unlockpt: New file.
24414         * lib/stdlib.in.h (unlockpt): New declaration.
24415         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24416         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24417         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24418         HAVE_UNLOCKPT.
24419         * doc/posix-functions/unlockpt.texi: Mention the new module.
24420         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24421         * config/srclist.txt: Add unlockpt.c (commented).
24422
24423 2010-03-21  Jim Meyering  <meyering@redhat.com>
24424
24425         maint.mk: prohibit inclusion of "intprops.h" without use
24426         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24427
24428 2010-03-21  Bruno Haible  <bruno@clisp.org>
24429
24430         New module 'grantpt'.
24431         * lib/grantpt.c: New file, from glibc with modifications.
24432         * m4/grantpt.m4: New file.
24433         * modules/grantpt: New file.
24434         * lib/stdlib.in.h (grantpt): New declaration.
24435         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24436         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24437         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24438         HAVE_GRANTPT.
24439         * doc/posix-functions/grantpt.texi: Mention the new module.
24440         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24441         * config/srclist.txt: Add grantpt.c (commented).
24442
24443 2010-03-21  Bruno Haible  <bruno@clisp.org>
24444
24445         New module 'pt_chown'.
24446         * lib/pt_chown.c: New file, from glibc with modifications.
24447         * lib/pty-private.h: New file, from glibc with modifications.
24448         * modules/pt_chown: New file.
24449         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24450
24451 2010-03-21  Bruno Haible  <bruno@clisp.org>
24452
24453         Tests for module 'ptsname'.
24454         * modules/ptsname-tests: New file.
24455         * tests/test-ptsname.c: New file.
24456
24457         New module 'ptsname'.
24458         * lib/ptsname.c: New file, from glibc with modifications.
24459         * m4/ptsname.m4: New file.
24460         * modules/ptsname: New file.
24461         * lib/stdlib.in.h (ptsname): New declaration.
24462         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24463         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24464         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24465         HAVE_PTSNAME.
24466         * doc/posix-functions/ptsname.texi: Mention the new module.
24467         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24468         * config/srclist.txt: Add ptsname.c (commented).
24469
24470 2010-03-21  Bruno Haible  <bruno@clisp.org>
24471
24472         Tests for module 'ttyname_r'.
24473         * modules/ttyname_r-tests: New file.
24474         * tests/test-ttyname_r.c: New file.
24475
24476         New module 'ttyname_r'.
24477         * lib/ttyname_r.c: New file.
24478         * m4/ttyname_r.m4: New file.
24479         * modules/ttyname_r: New file.
24480         * lib/unistd.in.h (ttyname_r): New declaration.
24481         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24482         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24483         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24484         HAVE_TTYNAME_R.
24485         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24486         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24487
24488 2010-03-20  Bruno Haible  <bruno@clisp.org>
24489
24490         signal: Undefine macro definitions in C++ mode.
24491         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24492         sigfillset): Undefine macro definitions from the system header in C++
24493         mode.
24494         Reported by John W. Eaton <jwe@gnu.org>.
24495
24496 2010-03-20  Bruno Haible  <bruno@clisp.org>
24497
24498         Ensure no #include statements inside extern "C" { ... }.
24499         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24500         contain #include statements.
24501         * lib/time.in.h: Likewise.
24502
24503 2010-03-20  Bruno Haible  <bruno@clisp.org>
24504
24505         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24506         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24507         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24508         Reported by John W. Eaton <jwe@gnu.org>.
24509
24510 2010-03-20  Bruno Haible  <bruno@clisp.org>
24511
24512         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24513         Reported by Jim Meyering.
24514
24515 2010-03-20  Bruno Haible  <bruno@clisp.org>
24516
24517         pipe: Set errno upon failure.
24518         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24519         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24520         errno value in error message.
24521
24522 2010-03-20  Bruno Haible  <bruno@clisp.org>
24523             Jim Meyering  <meyering@redhat.com>
24524
24525         lchown: Avoid "unused variable" warning.
24526         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24527
24528 2010-03-20  Bruno Haible  <bruno@clisp.org>
24529
24530         Work around unlink() bug on MacOS X 10.5.6.
24531         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24532         attempting to unlink a parent directory.
24533         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24534         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24535         activate for the replacement function.
24536         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24537
24538 2010-03-20  Bruno Haible  <bruno@clisp.org>
24539
24540         Fix link errors on Solaris 8.
24541         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24542         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24543
24544 2010-03-19  Jim Meyering  <meyering@redhat.com>
24545
24546         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24547         The _LIBC implementation of build_range_exp correctly honors the
24548         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24549         However, the non-_LIBC implementation would ignore that syntax-bit
24550         flag and return REG_ERANGE unconditionally.
24551         This change makes it honor that flag.
24552         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24553         Make two pointer parameters "const".
24554         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24555         (parse_bracket_exp): Update caller.
24556
24557         regex.m4: correct the reversed range endpoint ([b-a]) test
24558         * m4/regex.m4: When requiring that [b-a] evoke failure,
24559         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24560         test pass once again for x86-based systems.
24561
24562 2010-03-19  Bruno Haible  <bruno@clisp.org>
24563
24564         scandir: Fix link error on Solaris 8.
24565         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24566         macros.
24567
24568 2010-03-19  Bruno Haible  <bruno@clisp.org>
24569
24570         getusershell: Fix documentation.
24571         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24572         module.
24573         * doc/glibc-functions/setusershell.texi: Likewise.
24574
24575         getusershell: Provide declaration, missing on Solaris 9.
24576         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24577         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24578         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24579         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24581         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24582         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24583         HAVE_GETUSERSHELL.
24584         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24585
24586 2010-03-19  Bruno Haible  <bruno@clisp.org>
24587
24588         wctype: Provide iswblank function.
24589         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24590         exists and is fine.
24591         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24592         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24593         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24594         * doc/posix-functions/iswblank.texi: Update.
24595
24596 2010-03-19  Bruno Haible  <bruno@clisp.org>
24597
24598         Tests of module 'pty' in C++ mode.
24599         * modules/pty-tests: New file.
24600         * tests/test-pty-c++.cc: New file.
24601         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24602
24603 2010-03-19  Eric Blake  <eblake@redhat.com>
24604
24605         logb: fix documentation
24606         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24607         1.5 declaration bug.
24608
24609         forkpty, openpty: prefer glibc's const-safe prototype
24610         * lib/forkpty.c (rpl_forkpty): New file.
24611         * lib/openpty.c (rpl_openpty): Likewise.
24612         * modules/forkpty (Files): Distribute it.
24613         * modules/openpty (Files): Likewise.
24614         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24615         check...
24616         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24617         replacement for for non-const BSD signature.
24618         * modules/pty (Makefile.am): Substitute witnesses.
24619         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24620         * tests/test-forkpty.c: Update signature check.
24621         * tests/test-openpty.c: Likewise.
24622         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24623         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24624
24625         forkpty, openpty: split functions into new modules
24626         * modules/pty (Makefile.am): Substitute new witnesses.
24627         (Libraries): Move library detection...
24628         * modules/forkpty: ...into new module.
24629         * modules/openpty: Another new module.
24630         * modules/pty-tests: Rename and split...
24631         * modules/forkpty-tests: ...to this...
24632         * modules/openpty-tests: ...and this.
24633         * tests/test-pty.c: Rename and split...
24634         * tests/test-forkpty.c: ...to this...
24635         * tests/test-openpty.c: ...and this.
24636         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24637         (gl_PTY): Split library searching...
24638         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24639         (gl_FORKPTY, gl_OPENPTY): New macros.
24640         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24641         * NEWS: Mention the split.
24642         * MODULES.html.sh (Misc): Document the modules.
24643         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24644         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24645
24646         pty: improve replacement header
24647         * lib/pty.in.h: New file.
24648         * modules/pty (Files): Ship it.
24649         (Makefile.am): Always build replacement.
24650         * m4/pty.m4: Rename...
24651         * m4/pty_h.m4: ...to this.
24652         (gl_PTY): Modernize setting of witness macros; update check of
24653         forkpty to take proper advantage of cache.
24654         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24655
24656         getopt: avoid compiler warning
24657         * lib/getopt.c (attribute_hidden): Remove unused macro.
24658
24659 2010-03-18  Bruno Haible  <bruno@clisp.org>
24660
24661         Fix link errors on Solaris 8.
24662         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24663         * modules/search-tests (test_search_c___LDADD): Likewise.
24664         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24665         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24666         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24667         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24668         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24669         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24670         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24671
24672 2010-03-18  Bruno Haible  <bruno@clisp.org>
24673
24674         Fix bug introduced on 2010-03-14.
24675         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24676         (gl_SPAWN_H): Require it.
24677         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24678         Reported by Simon Josefsson.
24679
24680 2010-03-18  Bruno Haible  <bruno@clisp.org>
24681
24682         Fix typo introduced on 2009-12-31.
24683         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24684         posix_spawn_file_actions_adddup2.
24685
24686 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24687         and Eric Blake  <eblake@redhat.com>
24688
24689         test-vc-list-files-git: make more robust
24690         * tests/test-vc-list-files-git.sh: Unset problematic environment
24691         variables.  Chain commands together.
24692
24693 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24694
24695         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24696         `AC_CHECK_DECL' invocation.
24697
24698 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24699
24700         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24701         appears before executable statements. Suggested by Petr Sumbera
24702         <Petr.Sumbera@Sun.COM>.
24703
24704 2010-03-14  Bruno Haible  <bruno@clisp.org>
24705
24706         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24707         portability problems. Instead use a simpler test.
24708         (main): Check that invalid arguments are rejected only on Linux.
24709
24710 2010-03-14  Bruno Haible  <bruno@clisp.org>
24711
24712         Fix bug introduced on 2009-12-31.
24713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24714         gl_PREREQ_SYS_H_WINSOCK2 always.
24715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24716         SYS_SOCKET_H variable.
24717         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24718         Update comments.
24719         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24721         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24722         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24723         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24724
24725 2010-03-14  Bruno Haible  <bruno@clisp.org>
24726
24727         Fix values returned by sinl, cosl.
24728         * lib/trigl.h: Add specification comments.
24729         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24730         that combines the values from the precomputed table with the values of
24731         the Chebyshev polynomials.
24732
24733 2010-03-14  Bruno Haible  <bruno@clisp.org>
24734
24735         Fix compilation error when modules 'posix_spawn[p]' are not used.
24736         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24738
24739 2010-03-14  Bruno Haible  <bruno@clisp.org>
24740
24741         Fix compilation error on mingw when module 'time_r' is not used.
24742         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24743         is 1.
24744         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24745         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24746         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24748
24749 2010-03-14  Bruno Haible  <bruno@clisp.org>
24750
24751         Fix compilation error with Sun C.
24752         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24753         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24754         instead of GCC specific ULONG_LONG_MAX.
24755         * lib/xstrtoll.c: Likewise.
24756         * lib/xstrtoull.c: Likewise.
24757
24758 2010-03-13  Bruno Haible  <bruno@clisp.org>
24759
24760         Allow the user to disable C++ code and tests.
24761         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24762         (gl_PROG_ANSI_CXX): Require it.
24763
24764 2010-03-13  Bruno Haible  <bruno@clisp.org>
24765
24766         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24767         cases.
24768
24769 2010-03-13  Bruno Haible  <bruno@clisp.org>
24770
24771         Test that gnulib does not break the standard C++ headers.
24772         * tests/test-locale-c++2.cc: New file.
24773         * modules/locale-tests (Files): Add it.
24774         (Makefile.am): Compile it for test-locale-c++.
24775         * tests/test-math-c++2.cc: New file.
24776         * modules/math-tests (Files): Add it.
24777         (Makefile.am): Compile it for test-math-c++.
24778         * tests/test-signal-c++2.cc: New file.
24779         * modules/signal-tests (Files): Add it.
24780         (Makefile.am): Compile it for test-signal-c++.
24781         * tests/test-stdio-c++2.cc: New file.
24782         * modules/stdio-tests (Files): Add it.
24783         (Makefile.am): Compile it for test-stdio-c++.
24784         * tests/test-stdlib-c++2.cc: New file.
24785         * modules/stdlib-tests (Files): Add it.
24786         (Makefile.am): Compile it for test-stdlib-c++.
24787         * tests/test-string-c++2.cc: New file.
24788         * modules/string-tests (Files): Add it.
24789         (Makefile.am): Compile it for test-string-c++.
24790         * tests/test-time-c++2.cc: New file.
24791         * modules/time-tests (Files): Add it.
24792         (Makefile.am): Compile it for test-time-c++.
24793         Reported by John W. Eaton <jwe@gnu.org>.
24794
24795 2010-03-13  Bruno Haible  <bruno@clisp.org>
24796
24797         * gnulib-tool (func_usage): Clarify which options are available for
24798         --create-testdir and --create-megatestdir.
24799
24800 2010-03-13  Bruno Haible  <bruno@clisp.org>
24801
24802         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24803         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24804         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24805         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24806         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24807         when appropriate.
24808         Reported by Jim Meyering.
24809
24810 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24811
24812         * gnulib-tool (func_import): Explain origin of code.
24813
24814 2010-03-12  Bruno Haible  <bruno@clisp.org>
24815
24816         Fix problem with automake's definition of CXXLINK.
24817         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24818         Reported by Simon Josefsson and Ludovic Courtès.
24819
24820 2010-03-12  Bruno Haible  <bruno@clisp.org>
24821
24822         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24823         stable releases.
24824
24825 2010-03-11  Bruno Haible  <bruno@clisp.org>
24826
24827         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24828         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24829         whether the system provides one variant or multiple variants of the
24830         function.
24831         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24832         C++ compilers.
24833         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24834         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24835         Reported by Jim Meyering.
24836
24837 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24838
24839         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24840
24841 2010-03-08  Bruno Haible  <bruno@clisp.org>
24842
24843         gnulib-tool: Add support for --libtool in --create-testdir.
24844         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24845         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24846
24847 2010-03-08  Eric Blake  <eblake@redhat.com>
24848
24849         gnulib-tool.texi: mention possibility of git submodule
24850         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24851         submodules.
24852         * doc/.gitignore: Ignore another generated file.
24853
24854 2010-03-08  Karl Berry  <karl@gnu.org>
24855
24856         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24857         of committing gnulib files while skipping others.
24858
24859 2010-03-07  Bruno Haible  <bruno@clisp.org>
24860
24861         Tests of module 'wctype' in C++ mode.
24862         * tests/test-wctype-c++.cc: New file.
24863         * modules/wctype-tests (Files): Add it and tests/signature.h.
24864         (Depends-on): Add ansi-c++-opt.
24865         (Makefile.am): Arrange to compile and run test-wctype-c++.
24866
24867         Tests of module 'wchar' in C++ mode.
24868         * tests/test-wchar-c++.cc: New file.
24869         * modules/wchar-tests (Files): Add it and tests/signature.h.
24870         (Depends-on): Add ansi-c++-opt.
24871         (Makefile.am): Arrange to compile and run test-wchar-c++.
24872         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24873         gl_MODULE_INDICATOR.
24874
24875         Tests of module 'unistd' in C++ mode.
24876         * tests/test-unistd-c++.cc: New file.
24877         * modules/unistd-tests (Files): Add it and tests/signature.h.
24878         (Depends-on): Add ansi-c++-opt.
24879         (Makefile.am): Arrange to compile and run test-unistd-c++.
24880         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24881         gl_MODULE_INDICATOR.
24882
24883         Tests of module 'time' in C++ mode.
24884         * tests/test-time-c++.cc: New file.
24885         * modules/time-tests (Files): Add it and tests/signature.h.
24886         (Depends-on): Add ansi-c++-opt.
24887         (Makefile.am): Arrange to compile and run test-time-c++.
24888         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24889
24890         Tests of module 'sys_time' in C++ mode.
24891         * tests/test-sys_time-c++.cc: New file.
24892         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24893         (Depends-on): Add ansi-c++-opt.
24894         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24895         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24896         gl_MODULE_INDICATOR.
24897
24898         Tests of module 'sys_stat' in C++ mode.
24899         * tests/test-sys_stat-c++.cc: New file.
24900         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24901         (Depends-on): Add ansi-c++-opt.
24902         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24903         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24904         gl_MODULE_INDICATOR.
24905
24906         Tests of module 'sys_socket' in C++ mode.
24907         * tests/test-sys_socket-c++.cc: New file.
24908         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24909         (Depends-on): Add ansi-c++-opt.
24910         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24911         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24912         gl_MODULE_INDICATOR.
24913
24914         Tests of module 'sys_select' in C++ mode.
24915         * tests/test-sys_select-c++.cc: New file.
24916         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24917         (Depends-on): Add ansi-c++-opt.
24918         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24919         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24920         gl_MODULE_INDICATOR.
24921
24922         Tests of module 'sys_ioctl' in C++ mode.
24923         * tests/test-sys_ioctl-c++.cc: New file.
24924         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24925         (Depends-on): Add ansi-c++-opt.
24926         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24928         gl_MODULE_INDICATOR.
24929
24930         Tests of module 'string' in C++ mode.
24931         * tests/test-string-c++.cc: New file.
24932         * modules/string-tests (Files): Add it and tests/signature.h.
24933         (Depends-on): Add ansi-c++-opt.
24934         (Makefile.am): Arrange to compile and run test-string-c++.
24935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24936         gl_MODULE_INDICATOR.
24937
24938         Tests of module 'stdlib' in C++ mode.
24939         * tests/test-stdlib-c++.cc: New file.
24940         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24941         (Depends-on): Add ansi-c++-opt.
24942         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24943         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24944         gl_MODULE_INDICATOR.
24945
24946         Tests of module 'stdio' in C++ mode.
24947         * tests/test-stdio-c++.cc: New file.
24948         * modules/stdio-tests (Files): Add it and tests/signature.h.
24949         (Depends-on): Add ansi-c++-opt.
24950         (Makefile.am): Arrange to compile and run test-stdio-c++.
24951         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24952         gl_MODULE_INDICATOR.
24953
24954         Tests of module 'spawn' in C++ mode.
24955         * tests/test-spawn-c++.cc: New file.
24956         * modules/spawn-tests (Files): Add it and tests/signature.h.
24957         (Depends-on): Add ansi-c++-opt.
24958         (Makefile.am): Arrange to compile and run test-spawn-c++.
24959         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24960         gl_MODULE_INDICATOR.
24961
24962         Tests of module 'signal' in C++ mode.
24963         * tests/test-signal-c++.cc: New file.
24964         * modules/signal-tests (Files): Add it and tests/signature.h.
24965         (Depends-on): Add ansi-c++-opt.
24966         (Makefile.am): Arrange to compile and run test-signal-c++.
24967         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24968         gl_MODULE_INDICATOR.
24969
24970         Tests of module 'search' in C++ mode.
24971         * tests/test-search-c++.cc: New file.
24972         * modules/search-tests (Files): Add it and tests/signature.h.
24973         (Depends-on): Add ansi-c++-opt.
24974         (Makefile.am): Arrange to compile and run test-search-c++.
24975         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24976         gl_MODULE_INDICATOR.
24977
24978         Tests of module 'math' in C++ mode.
24979         * tests/test-math-c++.cc: New file.
24980         * modules/math-tests (Files): Add it and tests/signature.h.
24981         (Depends-on): Add ansi-c++-opt.
24982         (Makefile.am): Arrange to compile and run test-math-c++.
24983         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24984
24985         Tests of module 'locale' in C++ mode.
24986         * tests/test-locale-c++.cc: New file.
24987         * modules/locale-tests (Files): Add it and tests/signature.h.
24988         (Depends-on): Add ansi-c++-opt.
24989         (Makefile.am): Arrange to compile and run test-locale-c++.
24990         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24991         gl_MODULE_INDICATOR.
24992
24993         Tests of module 'langinfo' in C++ mode.
24994         * tests/test-langinfo-c++.cc: New file.
24995         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24996         (Depends-on): Add ansi-c++-opt.
24997         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24998         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24999         gl_MODULE_INDICATOR.
25000
25001         Tests of module 'iconv-h' in C++ mode.
25002         * tests/test-iconv-h-c++.cc: New file.
25003         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25004         (Depends-on): Add ansi-c++-opt.
25005         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25006
25007         Tests of module 'glob' in C++ mode.
25008         * tests/test-glob-c++.cc: New file.
25009         * modules/glob-tests (Files): Add it.
25010         (Depends-on): Add ansi-c++-opt.
25011         (Makefile.am): Arrange to compile and run test-glob-c++.
25012
25013         Tests of module 'fcntl-h' in C++ mode.
25014         * tests/test-fcntl-h-c++.cc: New file.
25015         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25016         (Depends-on): Add ansi-c++-opt.
25017         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25018         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25019         gl_MODULE_INDICATOR.
25020
25021         Tests of module 'dirent' in C++ mode.
25022         * tests/test-dirent-c++.cc: New file.
25023         * modules/dirent-tests (Files): Add it and tests/signature.h.
25024         (Depends-on): Add ansi-c++-opt.
25025         (Makefile.am): Arrange to compile and run test-dirent-c++.
25026         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25027         gl_MODULE_INDICATOR.
25028
25029         New module 'ansi-c++-opt'.
25030         * modules/ansi-c++-opt: New file.
25031         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25032
25033         Document C++ namespace mode.
25034         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25035
25036         wctype: Avoid #define replacements in C++ mode.
25037         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25038         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25039         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25040         In C++, define a namespaced alias symbol.
25041         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25042         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25043         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25044         rule.
25045
25046         wchar: Avoid #define replacements in C++ mode.
25047         * lib/wchar.in.h: Include c++defs.h.
25048         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25049         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25050         symbol.
25051         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25052         * modules/wchar (Depends-on): Add c++defs.
25053         (Makefile.am): Update wchar.h rule.
25054
25055         unistd: Avoid #define replacements in C++ mode.
25056         * lib/unistd.in.h: Include c++defs.h.
25057         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25058         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25059         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25060         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25061         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25062         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25063         symbol.
25064         (environ): Update.
25065         * modules/unistd (Depends-on): Add c++defs.
25066         (Makefile.am): Update unistd.h rule.
25067
25068         time: Avoid #define replacements in C++ mode.
25069         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25070         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25071         define a namespaced alias symbol.
25072         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25073         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25074         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25075         * modules/time (Depends-on): Add c++defs, warn-on-use.
25076         (Makefile.am): Update time.h rule.
25077         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25078         * modules/nanosleep (configure.ac): Likewise.
25079         * modules/strptime (configure.ac): Likewise.
25080         * modules/timegm (configure.ac): Likewise.
25081
25082         sys_time: Avoid #define replacements in C++ mode.
25083         * lib/sys_time.in.h: Include c++defs.h.
25084         (gettimeofday): In C++, define a namespaced alias symbol.
25085         * modules/sys_time (Depends-on): Add c++defs.
25086         (Makefile.am): Update sys/time.h rule.
25087
25088         sys_stat: Avoid #define replacements in C++ mode.
25089         * lib/sys_stat.in.h: Include c++defs.h.
25090         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25091         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25092         namespaced alias symbol.
25093         In C++, define a namespaced alias symbol.
25094         * modules/sys_stat (Depends-on): Add c++defs.
25095         (Makefile.am): Update sys/stat.h rule.
25096
25097         sys_socket: Avoid #define replacements in C++ mode.
25098         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25099         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25100         definitions also when the system has a <sys/socket.h>.
25101         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25102         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25103         In C++, define a namespaced alias symbol.
25104         * modules/sys_socket (Depends-on): Add c++defs.
25105         (Makefile.am): Update sys/socket.h rule.
25106
25107         sys_select: Avoid #define replacements in C++ mode.
25108         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25109         definitions also when the system has a <sys/select.h>.
25110         (select): In C++, define a namespaced alias symbol.
25111         * modules/sys_select (Depends-on): Add c++defs.
25112         (Makefile.am): Update sys/select.h rule.
25113
25114         sys_ioctl: Avoid #define replacements in C++ mode.
25115         * lib/sys_ioctl.in.h: Include c++defs.h.
25116         (ioctl): In C++, define a namespaced alias symbol.
25117         * modules/sys_ioctl (Depends-on): Add c++defs.
25118         (Makefile.am): Update sys/ioctl.h rule.
25119
25120         string: Avoid #define replacements in C++ mode.
25121         * lib/string.in.h: Include c++defs.h.
25122         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25123         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25124         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25125         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25126         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25127         * modules/string (Depends-on): Add c++defs.
25128         (Makefile.am): Update string.h rule.
25129
25130         stdlib: Avoid #define replacements in C++ mode.
25131         * lib/stdlib.in.h: Include c++defs.h.
25132         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25133         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25134         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25135         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25136         symbol.
25137         * modules/stdlib (Depends-on): Add c++defs.
25138         (Makefile.am): Update stdlib.h rule.
25139
25140         stdio: Avoid #define replacements in C++ mode.
25141         * lib/stdio.in.h: Include c++defs.h.
25142         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25143         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25144         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25145         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25146         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25147         namespaced alias symbol.
25148         * modules/stdio (Depends-on): Add c++defs.
25149         (Makefile.am): Update stdio.h rule.
25150
25151         spawn: Avoid #define replacements in C++ mode.
25152         * lib/spawn.in.h: Include c++defs.h.
25153         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25154         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25155         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25156         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25157         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25158         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25159         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25160         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25161         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25162         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25163         In C++, define a namespaced alias symbol.
25164         * modules/spawn (Depends-on): Add c++defs.
25165         (Makefile.am): Update spawn.h rule.
25166
25167         signal: Avoid #define replacements in C++ mode.
25168         * lib/signal.in.h: Include c++defs.h.
25169         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25170         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25171         namespaced alias symbol.
25172         * modules/signal (Depends-on): Add c++defs.
25173         (Makefile.am): Update signal.h rule.
25174
25175         search: Avoid #define replacements in C++ mode.
25176         * lib/search.in.h: Include c++defs.h.
25177         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25178         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25179         symbol.
25180         * modules/search (Depends-on): Add c++defs.
25181         (Makefile.am): Update search.h rule.
25182
25183         math: Avoid #define replacements in C++ mode.
25184         * lib/math.in.h: Include c++defs.h.
25185         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25186         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25187         trunc, truncl): In C++, define a namespaced alias symbol.
25188         * modules/math (Depends-on): Add c++defs.
25189         (Makefile.am): Update math.h rule.
25190
25191         locale: Avoid #define replacements in C++ mode.
25192         * lib/locale.in.h: Include c++defs.h.
25193         (duplocale): In C++, define a namespaced alias symbol.
25194         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25195         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25196         * modules/locale (Depends-on): Add c++defs.
25197         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25198
25199         langinfo: Avoid #define replacements in C++ mode.
25200         * lib/langinfo.in.h: Include c++defs.h.
25201         (nl_langinfo): In C++, define a namespaced alias symbol.
25202         * modules/langinfo (Depends-on): Add c++defs.
25203         (Makefile.am): Update langinfo.h rule.
25204
25205         iconv-h: Avoid #define replacements in C++ mode.
25206         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25207         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25208         symbol.
25209         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25210         whenever iconv is present.
25211         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25212         (Makefile.am): Update iconv.h rule.
25213
25214         glob: Avoid #define replacements in C++ mode.
25215         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25216         (_gl_glob_errfunc_fn): New type.
25217         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25218         symbol.
25219         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25220         (Makefile.am): Update glob.h rule.
25221
25222         fcntl-h: Avoid #define replacements in C++ mode.
25223         * lib/fcntl.in.h: Include c++defs.h.
25224         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25225         * modules/fcntl-h (Depends-on): Add c++defs.
25226         (Makefile.am): Update fcntl.h rule.
25227
25228         dirent: Avoid #define replacements in C++ mode.
25229         * lib/dirent.in.h: Include c++defs.h.
25230         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25231         namespaced alias symbol.
25232         (dirfd): Update declaration.
25233         * modules/dirent (Depends-on): Add c++defs.
25234         (Makefile.am): Update dirent.h rule.
25235
25236         ctype: Make it usable in C++ code.
25237         * lib/ctype.in.h: Include c++defs.h.
25238         (isblank): Declare as extern "C".
25239         * modules/ctype (Depends-on): Add c++defs.
25240         (Makefile.am): Update ctype.h rule.
25241
25242         New module 'c++defs'.
25243         * modules/c++defs: New file.
25244         * build-aux/c++defs.h: New file.
25245         Reported by John W. Eaton <jwe@gnu.org>.
25246
25247 2010-03-07  Bruno Haible  <bruno@clisp.org>
25248
25249         logb: Provide missing declaration for Cygwin.
25250         * lib/math.in.h (logb): New declaration.
25251         * m4/logb.m4: New file.
25252         * modules/logb (Files): Add m4/logb.m4.
25253         (Depends-on): Add math.
25254         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25255         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25257         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25258         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25259
25260 2010-03-07  Bruno Haible  <bruno@clisp.org>
25261
25262         Fix test-cond link error.
25263         * tests/test-cond.c: Include <stdio.h>.
25264
25265 2010-03-07  Bruno Haible  <bruno@clisp.org>
25266
25267         Fix test-dirent-safer link error.
25268         * modules/dirent-safer-tests (Makefile.am): Define
25269         test_dirent_safer_LDADD.
25270
25271 2010-03-07  Bruno Haible  <bruno@clisp.org>
25272
25273         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25274         among default module list.
25275
25276 2010-03-07  Bruno Haible  <bruno@clisp.org>
25277
25278         Fix link error on platforms with GNU libiconv.
25279         * modules/unistr/u8-strcoll-tests (Makefile): Define
25280         test_u8_strcoll_LDADD.
25281         * modules/unistr/u16-strcoll-tests (Makefile): Define
25282         test_u16_strcoll_LDADD.
25283         * modules/unistr/u32-strcoll-tests (Makefile): Define
25284         test_u32_strcoll_LDADD.
25285
25286 2010-03-07  Bruno Haible  <bruno@clisp.org>
25287
25288         Use POSIX declarations for socket functions.
25289         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25290         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25291         rpl_sendto): Change declaration to match POSIX.
25292         * lib/connect.c (rpl_connect): Likewise.
25293         * lib/accept.c (rpl_accept): Likewise.
25294         * lib/bind.c (rpl_bind): Likewise.
25295         * lib/getpeername.c (rpl_getpeername): Likewise.
25296         * lib/getsockname.c (rpl_getsockname): Likewise.
25297         * lib/recv.c (rpl_recv): Likewise.
25298         * lib/send.c (rpl_send): Likewise.
25299         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25300         * lib/sendto.c (rpl_sendto): Likewise.
25301
25302 2010-03-06  Bruno Haible  <bruno@clisp.org>
25303
25304         Clarify access, euidaccess, faccessat.
25305         * doc/posix-functions/faccessat.texi: Mention security problem under
25306         "Other problems", not "Portability problems".
25307         * doc/posix-functions/access.texi: Likewise. Mention a related security
25308         problem.
25309         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25310         * lib/euidaccess.c: Add comments about platforms.
25311         * lib/unistd.in.h (access, euidaccess): Add warnings.
25312
25313 2010-03-07  Bruno Haible  <bruno@clisp.org>
25314
25315         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25316         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25317         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25318         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25319         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25320         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25321         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25322         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25323         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25325         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25326         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25327         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25328         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25329         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25330         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25331         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25332         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25333         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25334         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25335         Likewise.
25336         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25337         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25338         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25339         Likewise.
25340         * tests/test-spawn.c (main): Make it work when
25341         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25342
25343 2010-03-07  Bruno Haible  <bruno@clisp.org>
25344
25345         Fix incorrect Makefile.am generation in German locale.
25346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25347         Execute sed command with character range in C locale.
25348
25349 2010-03-06  Bruno Haible  <bruno@clisp.org>
25350
25351         Tests for module 'iconv-h'.
25352         * modules/iconv-h-tests: New file.
25353         * tests/test-iconv-h.c: New file.
25354
25355         New module 'iconv-h'.
25356         * modules/iconv-h: New file.
25357         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25358         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25359         (configure.ac): Remove gl_ICONV_H.
25360         (Makefile.am): Remove rule for iconv.h.
25361
25362 2010-03-06  Bruno Haible  <bruno@clisp.org>
25363
25364         More consistent naming of *.m4 files.
25365         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25366         * modules/wctype (Files): Update.
25367
25368         More consistent naming of *.m4 files.
25369         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25370         * modules/wchar (Files): Update.
25371
25372 2010-03-06  Jim Meyering  <meyering@redhat.com>
25373
25374         euidaccess: relax license to LGPLv2+
25375         * modules/euidaccess (License): Relax to LGPLv2+.
25376
25377 2010-03-06  Bruno Haible  <bruno@clisp.org>
25378
25379         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25380         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25381         (Makefile.am): Augment lib_SOURCES instead.
25382
25383 2010-03-04  Jim Meyering  <meyering@redhat.com>
25384
25385         utime: remove obsolete module
25386         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25387         unnecessary for years, and has been marked as obsolete for 10 months.
25388         * modules/utime: Remove file.
25389         * lib/utime.c: Remove file.
25390         * m4/utime.m4: Remove file.
25391         * m4/utimes-null.m4: Remove file.
25392         * doc/posix-functions/utime.texi (utime): Remove reference to
25393         the module.  Move the sole "fixed by gnulib" item into the
25394         "problems not fixed by Gnulib" list.
25395         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25396
25397 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25398
25399         * modules/exit (License): Relax license to LGPLv2+.
25400         (Status): Mark as obsolete.
25401         * NEWS: Mention deprecated 'exit' module.
25402         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25403         of now obsolete 'exit'.
25404
25405 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25406
25407         fts-lgpl: remove unused module
25408         * modules/fts-lgpl: Remove.
25409         * MODULES.html.sh (func_all_modules): Adjust.
25410         * check-module (find_included_lib_files): Adjust.
25411         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25412
25413 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25414
25415         copy-acl: enhance Solaris ACL error handling
25416         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25417         * lib/set-mode-acl.c (qset_acl): Likewise.
25418
25419 2010-03-02  Bruno Haible  <bruno@clisp.org>
25420
25421         spawn: Don't override the system defined values on FreeBSD 8.
25422         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25423         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25424         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25425         if HAVE_POSIX_SPAWN is 1.
25426         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25427
25428 2010-03-01  Bruno Haible  <bruno@clisp.org>
25429
25430         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25431         regarding Automake.
25432
25433 2010-02-25  Bruno Haible  <bruno@clisp.org>
25434
25435         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25436         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25437         setting, not afterwards.
25438         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25439
25440 2010-02-24  Eric Blake  <eblake@redhat.com>
25441
25442         bootstrap, git-version-gen: use timestamp
25443         * build-aux/git-version-gen (scriptversion): Force UTC.
25444         * build-aux/bootstrap (scriptversion): New variable.
25445
25446         bootstrap: allow older git
25447         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25448         older than 1.6.4.  Requested by the libvirt project.
25449
25450 2010-02-23  Eric Blake  <eblake@redhat.com>
25451
25452         warn-on-use: work with old autoconf
25453         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25454         AS_VAR semantics of autoconf 2.60.
25455         Reported by Bruno Haible.
25456
25457         bootstrap: improve some comments
25458         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25459         clarification comments.
25460
25461         gettimeofday: provide correct function
25462         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25463         when replacement is declared, otherwise provide gettimeofday.
25464         Reported by Michael Goffioul.
25465
25466 2010-02-23  Jim Meyering  <meyering@redhat.com>
25467
25468         lib-ignore: relax license to "unlimited", not LGPLv2+
25469         * modules/lib-ignore (License): Relax to "unlimited".
25470
25471 2010-02-23  Jim Meyering  <meyering@redhat.com>
25472
25473         lib-ignore: relax license to LGPLv2+
25474         * modules/lib-ignore (License): Relax to LGPLv2+.
25475
25476 2010-02-22  Eric Blake  <eblake@redhat.com>
25477
25478         lseek: avoid bash 3.2 broken pipe bug
25479         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25480         warning from bash 3.2.
25481         Reported by Ben Pfaff, with analysis from Bruno Haible.
25482
25483         bootstrap: support non-FSF copyright holder
25484         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25485         bootstrap.conf override of COPYRIGHT_HOLDER.
25486         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25487
25488         bootstrap: interoperate with gettext 0.14.1
25489         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25490
25491         bootstrap: allow for alternate submodule location
25492         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25493         hardcoding submodule location.
25494         (gnulib_mk): Allow direct use of Makefile.am.
25495
25496         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25497         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25498         rather than reconfiguring where the submodule points.
25499
25500         gettimeofday: restore support for platforms that lack function
25501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25502         replacement if function is missing.
25503         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25504         * modules/sys_time (Makefile.am): Substitute it.
25505         * lib/sys_time.in.h (gettimeofday): Check it.
25506         Reported by Michael Goffioul.
25507
25508 2010-02-21  Bruno Haible  <bruno@clisp.org>
25509
25510         * lib/stdio.in.h (obstack_printf): Fix typo.
25511
25512 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25513
25514         vc-list-files: use bzr ls's -R option
25515         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25516         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25517
25518 2010-02-21  Jim Meyering  <meyering@redhat.com>
25519
25520         init.sh: fix EXEEXT shims to work also for names like test-prog
25521         * tests/init.sh: Re-exec a better shell, when needed.
25522         If the current shell lacks support for posix $(...), an init.sh-using
25523         test will now try to find a shell that supports that.  If EXEEXT is
25524         nonempty, we also require support for hyphen-in-alias-name and shell
25525         substitutions like ${var#glob}.  Failure to find such a shell results
25526         in a skipped test.
25527
25528 2010-02-21  Bruno Haible  <bruno@clisp.org>
25529
25530         Really work around around "broken pipe" error message from bash 3.2.
25531         * gnulib-tool (func_reset_sigpipe): Remove function.
25532         (echo): In bash 3.2, define to a function that uses printf.
25533         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25534
25535 2010-02-20  Bruno Haible  <bruno@clisp.org>
25536
25537         Restore support for automake 1.9.6 with autoconf 2.61.
25538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25539         Reported by James Youngman <jay@gnu.org>.
25540
25541 2010-02-20  Bruno Haible  <bruno@clisp.org>
25542
25543         Improve *printf warning condition.
25544         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25545         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25546         and the function is overridden due to SIGPIPE emulation.
25547
25548 2010-02-20  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/stdio.in.h: Tweak comments.
25551
25552 2010-02-19  Bruno Haible  <bruno@clisp.org>
25553
25554         Make it easier to find modules. New gnulib-tool option '--find'.
25555         * gnulib-tool: New option --find.
25556         (func_usage): Document it.
25557         (func_sanitize_modulelist): New function, extracted from
25558         func_all_modules.
25559         (func_all_modules): Invoke it.
25560         * doc/gnulib-tool.texi (Which modules?): New node.
25561
25562 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25563
25564         * lib/sys_select.in.h: Provide select replacement even if
25565         sys/select.h exists on a system, for Interix.
25566
25567 2010-02-18  Jim Meyering  <meyering@redhat.com>
25568
25569         init.sh: don't use $(...) just yet
25570         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25571         to accommodate e.g., Solaris' /bin/sh.
25572
25573 2010-02-17  Bruno Haible  <bruno@clisp.org>
25574
25575         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25576         Reported by Ludovic Courtès <ludo@gnu.org>.
25577
25578 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25579
25580         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25581         linking with -lintl.
25582
25583 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25584
25585         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25586         if not provided by the system's netdb.h.  Reported by
25587         ludo@gnu.org (Ludovic Courtès).
25588
25589 2010-02-15  Jim Meyering  <meyering@redhat.com>
25590
25591         init.sh: improve portability and efficiency
25592         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25593         "dummy" in a for loop.
25594         Use '!', not '^' to select the complement of a character set used
25595         in a "case" statement.
25596         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25597         Suggestions from Eric Blake.
25598
25599         init.sh: automatically accommodate programs with the .exe suffix
25600         Automatically arrange for an invocation of "prog" to execute the
25601         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25602         may use the simpler "prog", yet still work when built on a system
25603         that requires specifying the added suffix.
25604         Do this by constructing a function named "prog" that invokes
25605         "prog.exe" for each .exe file in selected directories.
25606         * tests/init.sh (find_exe_basenames_): New function.
25607         (create_exe_shim_functions_): New function.
25608         (path_prepend_): Use it.
25609
25610         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25611         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25612         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25613
25614 2010-02-14  Jim Meyering  <meyering@redhat.com>
25615
25616         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25617         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25618         (sc_prohibit_hash_pjw_without_use): New rule.
25619
25620         maint.mk: allow the default upload destination dir to be overridden
25621         * top/maint.mk (upload_dest_dir_): Define with a default that
25622         preserves the status quo.
25623         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25624         Reported by Peter Simons.
25625
25626         maint.mk: prohibit inclusion of "hash.h" without_use
25627         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25628
25629 2010-02-10  Jim Meyering  <meyering@redhat.com>
25630
25631         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25632         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25633
25634 2010-02-09  Eric Blake  <ebb9@byu.net>
25635         and Bruno Haible  <bruno@clisp.org>
25636
25637         obstack-printf-posix: ensure declaration
25638         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25639         extracted from gl_FUNC_OBSTACK_PRINTF.
25640         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25641         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25642         Likewise.
25643         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25644         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25645         0.
25646
25647 2010-02-08  Bruno Haible  <bruno@clisp.org>
25648
25649         gnulib-tool: Fix typo in 2010-02-07 commit.
25650         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25651         Reported by Eric Blake.
25652
25653 2010-02-07  Bruno Haible  <bruno@clisp.org>
25654
25655         gnulib-tool: Fix up caching patches.
25656         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25657         option --no-cache. Use associative arrays when supported by the shell.
25658         (sed_comments): New variable.
25659         (modcache): Renamed from do_cache.
25660         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25661         abbreviate unnecessarily.
25662         (have_associative): New variable.
25663         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25664         way also for ksh and zsh.
25665         (func_init_sed_convert_to_cache_statements): New function, extracted
25666         from func_cache_lookup_module. Add support for associative arrays.
25667         Don't set the c_MODULE_cached variable here. Ignore all lines before
25668         the first field header. Remove only the final newline, not all trailing
25669         newlines. Support empty fields correctly. Limit the use of 'eval' to
25670         assignments.
25671         (func_get_description, func_get_status, func_get_notice,
25672         func_get_applicability, func_get_filelist, func_get_dependencies,
25673         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25674         func_get_automake_snippet, func_get_include_directive,
25675         func_get_link_directive, func_get_license, func_get_maintainer):
25676         Update documentation. List the unoptimized code first. Add support for
25677         associative arrays. Limit the use of 'eval' to assignments.
25678         (func_get_applicability): Undo stylistic pessimisations.
25679         (func_get_automake_snippet, func_get_include_directive): Reduce code
25680         duplication.
25681         (func_modules_transitive_closure, func_modules_add_dummy,
25682         func_modules_notice, func_modules_to_filelist, func_add_file,
25683         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25684         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25685         func_create_testdir, func_create_megatestdir): Update documentation.
25686
25687 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25688
25689         * gnulib-tool (func_cache_lookup_module): Store the module name
25690         belonging to the cache variable; error out if two different
25691         module names map to the same cache variable name.
25692
25693 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25694
25695         gnulib-tool: Make caching optional.
25696         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25697         Update matching short versions of --no-changelog.
25698         (func_usage): Update.
25699         (sed_extract_cache_prog): Renamed from ...
25700         (sed_extract_prog): ... this; revert to old extraction script.
25701         (func_get_description, func_get_status)
25702         (func_get_notice, func_get_applicability, func_get_filelist)
25703         (func_get_dependencies, func_get_autoconf_early_snippet)
25704         (func_get_autoconf_snippet, func_get_automake_snippet)
25705         (func_get_include_directive, func_get_link_directive)
25706         (func_get_license, func_get_maintainer): If $do_cache is false,
25707         use old, non-caching extraction scripts.
25708         Suggestion by Bruno Haible.
25709
25710 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25711
25712         gnulib-tool: cache module metainformation.
25713         * gnulib-tool (sed_extract_prog): Match newline before each
25714         header, and rewrite header to a shell variable suffix.
25715         (func_cache_var, func_cache_lookup_module): New functions,
25716         to turn a module name into a cache variable prefix, and to
25717         look up and cache module metainformation.
25718         (func_get_description, func_get_status)
25719         (func_get_notice, func_get_applicability, func_get_filelist)
25720         (func_get_dependencies, func_get_autoconf_early_snippet)
25721         (func_get_autoconf_snippet, func_get_automake_snippet)
25722         (func_get_include_directive, func_get_link_directive)
25723         (func_get_license, func_get_maintainer): Use
25724         func_cache_lookup_module.
25725
25726 2010-02-07  Bruno Haible  <bruno@clisp.org>
25727
25728         fnctl: Fix missing dependency.
25729         * modules/fcntl (Depends-on): Add getdtablesize.
25730         Reported by John W. Eaton <jwe@gnu.org>.
25731
25732 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25733
25734         Argp: fix recognition of short alias options.
25735
25736         * lib/argp-parse.c (convert_options): Fix improper use of
25737         `|' between character values.
25738         * tests/test-argp.c (group1_option): New alias option
25739         --read (-r).
25740         (group1_parser): Special handling for 'r'.
25741         (test15): New test case.
25742         (test_fun): Add test15.
25743         * tests/test-argp-2.sh: Update expected --help and --usage
25744         outputs.
25745
25746 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25747
25748         * tests/test-argp.c: Fix indentation.
25749
25750 2010-02-04  Eric Blake  <ebb9@byu.net>
25751
25752         gettimeofday: expose type of second argument
25753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25754         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25755         * tests/test-gettimeofday.c: Use it to silence warning.
25756         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25757         the issue.
25758
25759 2010-02-03  Jim Meyering  <meyering@redhat.com>
25760
25761         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25762         * lib/regcomp.c (TYPE_SIGNED): Define.
25763         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25764
25765         regcomp.c: avoid a new -Wshadow warning
25766         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25767
25768 2010-02-01  Jim Meyering  <meyering@redhat.com>
25769
25770         removing useless parentheses in cpp #define directives
25771         For motivation, see commit c0221df4, "define STREQ(a,b)
25772         consistently, removing useless parentheses"
25773         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25774         * lib/mountlist.c (MNT_IGNORE): Likewise.
25775         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25776
25777 2010-02-01  Eric Blake  <ebb9@byu.net>
25778
25779         sys_time: use link-warning
25780         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25781         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25782         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25783         * modules/sys_time (Depends-on): Add warn-on-use.
25784         (Makefile.am): Always build replacement.
25785         (configure.ac): Update substitutions.
25786         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25787         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25788         bother with SYS_TIME_H.
25789         * modules/gettimeofday (configure.ac): Declare indicator.
25790         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25791         in use.
25792
25793         closein-tests: silence compiler warning
25794         * tests/test-closein.c (main): Ignore fread result.
25795         * modules/closein-tests (Depends-on): Add ignore-value.
25796
25797         tests: silence warning about system return
25798         * tests/test-areadlink-with-size.c (main): Ignore system result.
25799         * tests/test-areadlink.c (main): Likewise.
25800         * tests/test-areadlinkat-with-size.c (main): Likewise.
25801         * tests/test-areadlinkat.c (main): Likewise.
25802         * tests/test-canonicalize-lgpl.c (main): Likewise.
25803         * tests/test-canonicalize.c (main): Likewise.
25804         * tests/test-chown.c (main): Likewise.
25805         * tests/test-fchownat.c (main): Likewise.
25806         * tests/test-fdutimensat.c (main): Likewise.
25807         * tests/test-fstatat.c (main): Likewise.
25808         * tests/test-futimens.c (main): Likewise.
25809         * tests/test-lchown.c (main): Likewise.
25810         * tests/test-link.c (main): Likewise.
25811         * tests/test-linkat.c (main): Likewise.
25812         * tests/test-lstat.c (main): Likewise.
25813         * tests/test-mkdir.c (main): Likewise.
25814         * tests/test-mkdirat.c (main): Likewise.
25815         * tests/test-mkfifo.c (main): Likewise.
25816         * tests/test-mkfifoat.c (main): Likewise.
25817         * tests/test-mknod.c (main): Likewise.
25818         * tests/test-readlink.c (main): Likewise.
25819         * tests/test-remove.c (main): Likewise.
25820         * tests/test-rename.c (main): Likewise.
25821         * tests/test-renameat.c (main): Likewise.
25822         * tests/test-rmdir.c (main): Likewise.
25823         * tests/test-symlink.c (main): Likewise.
25824         * tests/test-symlinkat.c (main): Likewise.
25825         * tests/test-unlink.c (main): Likewise.
25826         * tests/test-unlinkat.c (main): Likewise.
25827         * tests/test-utimens.c (main): Likewise.
25828         * tests/test-utimensat.c (main): Likewise.
25829         * modules/areadlink-tests (Depends-on): Add ignore-value.
25830         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25831         * modules/areadlinkat-tests (Depends-on): Likewise.
25832         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25833         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25834         * modules/canonicalize-tests (Depends-on): Likewise.
25835         * modules/chown-tests (Depends-on): Likewise.
25836         * modules/fdutimensat-tests (Depends-on): Likewise.
25837         * modules/futimens-tests (Depends-on): Likewise.
25838         * modules/lchown-tests (Depends-on): Likewise.
25839         * modules/link-tests (Depends-on): Likewise.
25840         * modules/linkat-tests (Depends-on): Likewise.
25841         * modules/lstat-tests (Depends-on): Likewise.
25842         * modules/mkdir-tests (Depends-on): Likewise.
25843         * modules/mkfifo-tests (Depends-on): Likewise.
25844         * modules/mkfifoat-tests (Depends-on): Likewise.
25845         * modules/mknod-tests (Depends-on): Likewise.
25846         * modules/openat-tests (Depends-on): Likewise.
25847         * modules/readlink-tests (Depends-on): Likewise.
25848         * modules/remove-tests (Depends-on): Likewise.
25849         * modules/rename-tests (Depends-on): Likewise.
25850         * modules/renameat-tests (Depends-on): Likewise.
25851         * modules/rmdir-tests (Depends-on): Likewise.
25852         * modules/symlink-tests (Depends-on): Likewise.
25853         * modules/symlinkat-tests (Depends-on): Likewise.
25854         * modules/unlink-tests (Depends-on): Likewise.
25855         * modules/utimens-tests (Depends-on): Likewise.
25856         * modules/utimensat-tests (Depends-on): Likewise.
25857
25858 2010-01-31  Bruno Haible  <bruno@clisp.org>
25859
25860         Perform the same test for many <math.h> functions.
25861         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25862         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25863         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25864         of gl_MATHFUNC.
25865         * modules/acos (configure.ac): Likewise.
25866         * modules/asin (configure.ac): Likewise.
25867         * modules/atan (configure.ac): Likewise.
25868         * modules/atan2 (configure.ac): Likewise.
25869         * modules/cbrt (configure.ac): Likewise.
25870         * modules/copysign (configure.ac): Likewise.
25871         * modules/cos (configure.ac): Likewise.
25872         * modules/cosh (configure.ac): Likewise.
25873         * modules/erf (configure.ac): Likewise.
25874         * modules/erfc (configure.ac): Likewise.
25875         * modules/exp (configure.ac): Likewise.
25876         * modules/fmod (configure.ac): Likewise.
25877         * modules/hypot (configure.ac): Likewise.
25878         * modules/j0 (configure.ac): Likewise.
25879         * modules/j1 (configure.ac): Likewise.
25880         * modules/jn (configure.ac): Likewise.
25881         * modules/lgamma (configure.ac): Likewise.
25882         * modules/log (configure.ac): Likewise.
25883         * modules/log10 (configure.ac): Likewise.
25884         * modules/log1p (configure.ac): Likewise.
25885         * modules/pow (configure.ac): Likewise.
25886         * modules/remainder (configure.ac): Likewise.
25887         * modules/sin (configure.ac): Likewise.
25888         * modules/sinh (configure.ac): Likewise.
25889         * modules/tan (configure.ac): Likewise.
25890         * modules/tanh (configure.ac): Likewise.
25891         * modules/y0 (configure.ac): Likewise.
25892         * modules/y1 (configure.ac): Likewise.
25893         * modules/yn (configure.ac): Likewise.
25894         Suggested by Paolo Bonzini.
25895
25896 2010-01-31  Bruno Haible  <bruno@clisp.org>
25897
25898         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25899
25900 2010-01-31  Bruno Haible  <bruno@clisp.org>
25901
25902         Work around getdelim() bug on FreeBSD 8.0.
25903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25904         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25905         not work.
25906         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25907         is 1.
25908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25909         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25910         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25911         a non-zero size.
25912         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25913
25914 2010-01-31  Bruno Haible  <bruno@clisp.org>
25915
25916         Work around getline() bug on FreeBSD 8.0.
25917         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25918         and a non-zero size.
25919         * tests/test-getline.c (main): Likewise.
25920         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25921         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25922
25923 2010-01-28  Eric Blake  <ebb9@byu.net>
25924
25925         regex: fix build failure
25926         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25927         platforms.
25928
25929 2010-01-28  Jim Meyering  <meyering@redhat.com>
25930
25931         regex: do not ignore memory allocation failure
25932         * lib/regex_internal.c (create_cd_newstate): Detect
25933         re_node_set_init_copy failure.   Extracted from glibc commit
25934         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25935
25936         regex: sync more white-space changes from libc
25937         * lib/regex_internal.c: White-space only changes.
25938         * lib/regexec.c: Likewise.
25939
25940         regex: add many uses of __attribute_warn_unused_result__
25941         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25942         * lib/regexec.c: Likewise.
25943         Extracted from a messy glibc commit.
25944
25945         regcomp.c: spelling and merge-artifact from glibc
25946         * lib/regcomp.c: Merge remainder of glibc's
25947         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25948
25949         regcomp.c: sync white-space changes from glibc
25950         * lib/regcomp.c: Merge to accommodate white space
25951         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25952
25953         regcomp.c: do not ignore internal return values
25954         * lib/regcomp.c: Do not ignore internal return values.
25955         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25956         but without its white-space changes and spelling fixes.
25957
25958         regex_internal.h: define __attribute_warn_unused_result__
25959         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25960
25961         maint: add a syntax-check rule to check for vulnerable Makefile.in
25962         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25963
25964 2010-01-27  Jim Meyering  <meyering@redhat.com>
25965
25966         ncftpput-ftp: clean up spaces
25967         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25968         Remove trailing blanks.
25969
25970 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25971
25972         * build-aux/git-version-gen: Fix copyright statement.
25973         * build-aux/gnupload: Likewise.
25974         * tests/test-arcfour.c: Likewise.
25975         * tests/test-arctwo.c: Likewise.
25976         * tests/test-count-one-bits.c: Likewise.
25977         * tests/test-crc.c: Likewise.
25978         * tests/test-des.c: Likewise.
25979         * tests/test-gc-arcfour.c: Likewise.
25980         * tests/test-gc-arctwo.c: Likewise.
25981         * tests/test-gc-des.c: Likewise.
25982         * tests/test-gc-hmac-md5.c: Likewise.
25983         * tests/test-gc-hmac-sha1.c: Likewise.
25984         * tests/test-gc-md2.c: Likewise.
25985         * tests/test-gc-md4.c: Likewise.
25986         * tests/test-gc-md5.c: Likewise.
25987         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25988         * tests/test-gc-rijndael.c: Likewise.
25989         * tests/test-gc-sha1.c: Likewise.
25990         * tests/test-gc.c: Likewise.
25991         * tests/test-gethostname.c: Likewise.
25992         * tests/test-gettimeofday.c: Likewise.
25993         * tests/test-hash.c: Likewise.
25994         * tests/test-hmac-md5.c: Likewise.
25995         * tests/test-hmac-sha1.c: Likewise.
25996         * tests/test-md2.c: Likewise.
25997         * tests/test-md4.c: Likewise.
25998         * tests/test-md5.c: Likewise.
25999         * tests/test-memchr.c: Likewise.
26000         * tests/test-memchr2.c: Likewise.
26001         * tests/test-memcmp.c: Likewise.
26002         * tests/test-memmem.c: Likewise.
26003         * tests/test-memrchr.c: Likewise.
26004         * tests/test-rawmemchr.c: Likewise.
26005         * tests/test-read-file.c: Likewise.
26006         * tests/test-rijndael.c: Likewise.
26007         * tests/test-sockets.c: Likewise.
26008         * tests/test-strchrnul.c: Likewise.
26009         * tests/test-strstr.c: Likewise.
26010         * tests/test-strtod.c: Likewise.
26011         * build-aux/ncftpput-ftp: Likewise.
26012
26013 2010-01-26  Eric Blake  <ebb9@byu.net>
26014
26015         ignore-value: update recommended header name
26016         * modules/ignore-value (Include): Only use <> for headers that
26017         exist in glibc.
26018
26019 2010-01-26  Jim Meyering  <meyering@redhat.com>
26020
26021         test-userspec.c: avoid compiler warnings
26022         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26023         and "initialization discards qualifiers..." warnings.
26024         Put the first "uid" in its own scope, and make char* members "const".
26025
26026 2010-01-25  Bruno Haible  <bruno@clisp.org>
26027
26028         gnulib-tool: Make warning diagnostics consistent.
26029         * gnulib-tool (func_warning): New function.
26030         Use it everywhere where gnulib-tool produces output to stderr and it is
26031         not a fatal error.
26032
26033 2010-01-25  Bruno Haible  <bruno@clisp.org>
26034
26035         Fix test dependencies.
26036         * modules/xstrtol-tests (Depends-on): Add inttypes.
26037         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26038
26039 2010-01-25 Pádraig Brady <P@draigBrady.com>
26040
26041         syntax-check: detect incorrect boolean macro values in config.h
26042         * modules/maintainer-makefile (configure.ac): Parameterize the location
26043         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26044         The logic is from Eric Blake and the location indicated by Jim Meyering.
26045         Note the more natural CONFIG_HEADER name is prohibited by automake
26046         for backwards compatibility reasons.
26047         * top/maint.mk (sc_Wundef_boolean): New rule.
26048
26049 2010-01-25  Jim Meyering  <meyering@redhat.com>
26050
26051         bootstrap: detect MacOS 10.6's shasum, too
26052         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26053         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26054
26055 2010-01-23  Jim Meyering  <meyering@redhat.com>
26056
26057         xstrtoll: new module
26058         * modules/xstrtoll: New file.
26059         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26060         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26061         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26062         ./configure fails if you use this module and lack "long long".
26063         * modules/xstrtoll-tests: New module.
26064         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26065         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26066         new init.sh-based test framework.
26067
26068 2010-01-24  Bruno Haible  <bruno@clisp.org>
26069
26070         Tests for module 'yn'.
26071         * modules/yn-tests: New file.
26072         * tests/test-yn.c: New file.
26073
26074         Tests for module 'y1'.
26075         * modules/y1-tests: New file.
26076         * tests/test-y1.c: New file.
26077
26078         Tests for module 'y0'.
26079         * modules/y0-tests: New file.
26080         * tests/test-y0.c: New file.
26081
26082         Tests for module 'tanh'.
26083         * modules/tanh-tests: New file.
26084         * tests/test-tanh.c: New file.
26085
26086         Tests for module 'tan'.
26087         * modules/tan-tests: New file.
26088         * tests/test-tan.c: New file.
26089
26090         Tests for module 'sqrt'.
26091         * modules/sqrt-tests: New file.
26092         * tests/test-sqrt.c: New file.
26093
26094         Tests for module 'sinh'.
26095         * modules/sinh-tests: New file.
26096         * tests/test-sinh.c: New file.
26097
26098         Tests for module 'sin'.
26099         * modules/sin-tests: New file.
26100         * tests/test-sin.c: New file.
26101
26102         Tests for module 'rint'.
26103         * modules/rint-tests: New file.
26104         * tests/test-rint.c: New file.
26105
26106         Tests for module 'remainder'.
26107         * modules/remainder-tests: New file.
26108         * tests/test-remainder.c: New file.
26109
26110         Tests for module 'pow'.
26111         * modules/pow-tests: New file.
26112         * tests/test-pow.c: New file.
26113
26114         Tests for module 'nextafter'.
26115         * modules/nextafter-tests: New file.
26116         * tests/test-nextafter.c: New file.
26117
26118         Tests for module 'modf'.
26119         * modules/modf-tests: New file.
26120         * tests/test-modf.c: New file.
26121
26122         Tests for module 'logb'.
26123         * modules/logb-tests: New file.
26124         * tests/test-logb.c: New file.
26125
26126         Tests for module 'log1p'.
26127         * modules/log1p-tests: New file.
26128         * tests/test-log1p.c: New file.
26129
26130         Tests for module 'log10'.
26131         * modules/log10-tests: New file.
26132         * tests/test-log10.c: New file.
26133
26134         Tests for module 'log'.
26135         * modules/log-tests: New file.
26136         * tests/test-log.c: New file.
26137
26138         Tests for module 'lgamma'.
26139         * modules/lgamma-tests: New file.
26140         * tests/test-lgamma.c: New file.
26141
26142         Tests for module 'ldexp'.
26143         * modules/ldexp-tests: New file.
26144         * tests/test-ldexp.c: New file.
26145
26146         Tests for module 'jn'.
26147         * modules/jn-tests: New file.
26148         * tests/test-jn.c: New file.
26149
26150         Tests for module 'j1'.
26151         * modules/j1-tests: New file.
26152         * tests/test-j1.c: New file.
26153
26154         Tests for module 'j0'.
26155         * modules/j0-tests: New file.
26156         * tests/test-j0.c: New file.
26157
26158         Tests for module 'hypot'.
26159         * modules/hypot-tests: New file.
26160         * tests/test-hypot.c: New file.
26161
26162         Tests for module 'fmod'.
26163         * modules/fmod-tests: New file.
26164         * tests/test-fmod.c: New file.
26165
26166         Tests for module 'fabs'.
26167         * modules/fabs-tests: New file.
26168         * tests/test-fabs.c: New file.
26169
26170         Tests for module 'exp'.
26171         * modules/exp-tests: New file.
26172         * tests/test-exp.c: New file.
26173
26174         Tests for module 'erfc'.
26175         * modules/erfc-tests: New file.
26176         * tests/test-erfc.c: New file.
26177
26178         Tests for module 'erf'.
26179         * modules/erf-tests: New file.
26180         * tests/test-erf.c: New file.
26181
26182         Tests for module 'cosh'.
26183         * modules/cosh-tests: New file.
26184         * tests/test-cosh.c: New file.
26185
26186         Tests for module 'cos'.
26187         * modules/cos-tests: New file.
26188         * tests/test-cos.c: New file.
26189
26190         Tests for module 'copysign'.
26191         * modules/copysign-tests: New file.
26192         * tests/test-copysign.c: New file.
26193
26194         Tests for module 'cbrt'.
26195         * modules/cbrt-tests: New file.
26196         * tests/test-cbrt.c: New file.
26197
26198         Tests for module 'atan2'.
26199         * modules/atan2-tests: New file.
26200         * tests/test-atan2.c: New file.
26201
26202         Tests for module 'atan'.
26203         * modules/atan-tests: New file.
26204         * tests/test-atan.c: New file.
26205
26206         Tests for module 'asin'.
26207         * modules/asin-tests: New file.
26208         * tests/test-asin.c: New file.
26209
26210         Tests for module 'acos'.
26211         * modules/acos-tests: New file.
26212         * tests/test-acos.c: New file.
26213
26214 2010-01-24  Bruno Haible  <bruno@clisp.org>
26215
26216         Fix tests for common <math.h> functions.
26217         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26218         code snippet that references the function pointer, rather than merely
26219         calling the function. Substitute the FUNC_LIBM variable.
26220         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26221         * modules/acos (configure.ac): Likewise.
26222         * modules/asin (configure.ac): Likewise.
26223         * modules/atan (configure.ac): Likewise.
26224         * modules/atan2 (configure.ac): Likewise.
26225         * modules/cbrt (configure.ac): Likewise.
26226         * modules/copysign (configure.ac): Likewise.
26227         * modules/cos (configure.ac): Likewise.
26228         * modules/cosh (configure.ac): Likewise.
26229         * modules/erf (configure.ac): Likewise.
26230         * modules/erfc (configure.ac): Likewise.
26231         * modules/exp (configure.ac): Likewise.
26232         * modules/fabs (configure.ac): Likewise.
26233         * modules/fmod (configure.ac): Likewise.
26234         * modules/hypot (configure.ac): Likewise.
26235         * modules/j0 (configure.ac): Likewise.
26236         * modules/j1 (configure.ac): Likewise.
26237         * modules/jn (configure.ac): Likewise.
26238         * modules/ldexp (configure.ac): Likewise.
26239         * modules/lgamma (configure.ac): Likewise.
26240         * modules/log (configure.ac): Likewise.
26241         * modules/log10 (configure.ac): Likewise.
26242         * modules/log1p (configure.ac): Likewise.
26243         * modules/logb (configure.ac): Likewise.
26244         * modules/modf (configure.ac): Likewise.
26245         * modules/nextafter (configure.ac): Likewise.
26246         * modules/pow (configure.ac): Likewise.
26247         * modules/remainder (configure.ac): Likewise.
26248         * modules/rint (configure.ac): Likewise.
26249         * modules/sin (configure.ac): Likewise.
26250         * modules/sinh (configure.ac): Likewise.
26251         * modules/tan (configure.ac): Likewise.
26252         * modules/tanh (configure.ac): Likewise.
26253         * modules/y0 (configure.ac): Likewise.
26254         * modules/y1 (configure.ac): Likewise.
26255         * modules/yn (configure.ac): Likewise.
26256
26257 2010-01-24  Bruno Haible  <bruno@clisp.org>
26258
26259         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26260         * tests/test-acosl.c (x): New variable.
26261         (main): Store argument in x and fetch it from x.
26262         * tests/test-asinl.c (x): New variable.
26263         (main): Store argument in x and fetch it from x.
26264         * tests/test-atanl.c (x): New variable.
26265         (main): Store argument in x and fetch it from x.
26266         * tests/test-cosl.c (x): New variable.
26267         (main): Store argument in x and fetch it from x.
26268         * tests/test-expl.c (x): New variable.
26269         (main): Store argument in x and fetch it from x.
26270         * tests/test-logl.c (x): New variable.
26271         (main): Store argument in x and fetch it from x.
26272         * tests/test-sinl.c (x): New variable.
26273         (main): Store argument in x and fetch it from x.
26274         * tests/test-sqrtl.c (x): New variable.
26275         (main): Store argument in x and fetch it from x.
26276         * tests/test-tanl.c (x): New variable.
26277         (main): Store argument in x and fetch it from x.
26278
26279 2010-01-24  Bruno Haible  <bruno@clisp.org>
26280
26281         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26282         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26283         assignments to the initial TESTS_ENVIRONMENT.
26284         * doc/gnulib.texi (Unit test modules): Document it.
26285         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26286         TESTS_ENVIRONMENT.
26287         * modules/btowc-tests (Makefile.am): Likewise.
26288         * modules/c-stack-tests (Makefile.am): Likewise.
26289         * modules/c-strcase-tests (Makefile.am): Likewise.
26290         * modules/copy-file-tests (Makefile.am): Likewise.
26291         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26292         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26293         * modules/mbrtowc-tests (Makefile.am): Likewise.
26294         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26295         * modules/mbscasestr-tests (Makefile.am): Likewise.
26296         * modules/mbschr-tests (Makefile.am): Likewise.
26297         * modules/mbscspn-tests (Makefile.am): Likewise.
26298         * modules/mbsinit-tests (Makefile.am): Likewise.
26299         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26300         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26301         * modules/mbspbrk-tests (Makefile.am): Likewise.
26302         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26303         * modules/mbsrchr-tests (Makefile.am): Likewise.
26304         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26305         * modules/mbsspn-tests (Makefile.am): Likewise.
26306         * modules/mbsstr-tests (Makefile.am): Likewise.
26307         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26308         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26309         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26310         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26311         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26312         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26313         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26314         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26315         * modules/wcrtomb-tests (Makefile.am): Likewise.
26316         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26317         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26318         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26319         assignments from TESTS_ENVIRONMENT.
26320         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26321         augmentation.
26322         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26323         * modules/atexit-tests (Makefile.am): Likewise.
26324         * modules/binary-io-tests (Makefile.am): Likewise.
26325         * modules/closein-tests (Makefile.am): Likewise.
26326         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26327         * modules/exclude-tests (Makefile.am): Likewise.
26328         * modules/fflush-tests (Makefile.am): Likewise.
26329         * modules/fpending-tests (Makefile.am): Likewise.
26330         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26331         * modules/freadahead-tests (Makefile.am): Likewise.
26332         * modules/freadptr-tests (Makefile.am): Likewise.
26333         * modules/freadseek-tests (Makefile.am): Likewise.
26334         * modules/fseek-tests (Makefile.am): Likewise.
26335         * modules/fseeko-tests (Makefile.am): Likewise.
26336         * modules/ftell-tests (Makefile.am): Likewise.
26337         * modules/ftello-tests (Makefile.am): Likewise.
26338         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26339         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26340         * modules/lseek-tests (Makefile.am): Likewise.
26341         * modules/parse-duration-tests (Makefile.am): Likewise.
26342         * modules/perror-tests (Makefile.am): Likewise.
26343         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26344         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26345         * modules/pipe-tests (Makefile.am): Likewise.
26346         * modules/pread-tests (Makefile.am): Likewise.
26347         * modules/printf-posix-tests (Makefile.am): Likewise.
26348         * modules/select-tests (Makefile.am): Likewise.
26349         * modules/sigpipe-tests (Makefile.am): Likewise.
26350         * modules/tsearch-tests (Makefile.am): Likewise.
26351         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26352         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26353         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26354         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26355         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26356         * modules/version-etc-tests (Makefile.am): Likewise.
26357         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26358         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26359         * modules/xalloc-die-tests (Makefile.am): Likewise.
26360         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26361         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26362         * modules/xstrtol-tests (Makefile.am): Likewise.
26363         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26364         * modules/yesno-tests (Makefile.am): Likewise.
26365         Suggested by Jim Meyering.
26366
26367 2010-01-24  Bruno Haible  <bruno@clisp.org>
26368
26369         More documentation.
26370         * doc/gnulib.texi (Writing modules): New chapter.
26371         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26372         the new chapter.
26373
26374 2010-01-24  Jim Meyering  <meyering@redhat.com>
26375
26376         maint.mk: do not prepend "./" after filtering
26377         * top/maint.mk (_prepend_srcdir_prefix): New variable
26378         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26379         "./" when $(srcdir) is ".".
26380
26381         define STREQ(a,b) consistently, removing useless parentheses
26382         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26383         since the only risk is that "a" or "b" contains an unparenthesized
26384         comma, but if either did that, STREQ would have 3 or more arguments.
26385         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26386         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26387         * lib/hash-triple.c (STREQ): Likewise.
26388         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26389         * lib/getugroups.c (STREQ): Likewise.
26390
26391 2010-01-23  Jim Meyering  <meyering@redhat.com>
26392
26393         maint.mk: fix syntax-check in a non-srcdir build directory
26394         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26395         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26396
26397 2010-01-22  Jim Meyering  <meyering@redhat.com>
26398
26399         userspec: add unit tests
26400         * tests/test-userspec.c: New file.
26401         * modules/userspec-tests: Likewise.
26402
26403 2010-01-21  Jim Meyering  <meyering@redhat.com>
26404
26405         maint.mk: handle source file names containing "." robustly
26406         * top/maint.mk (_dot_escaped_srcdir): Define.
26407         (VC_LIST): Use it in LHS of sed substitution.
26408
26409 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26410
26411         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26412         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26413         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26414         from a non-srcdir build.
26415
26416 2010-01-20  Eric Blake  <ebb9@byu.net>
26417
26418         warn-on-use: use instead of link-warning
26419         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26420         * modules/unistd (Depends-on, Makefile.am): Likewise.
26421         * modules/arpa_inet (Depends-on): Replace link-warning with
26422         warn-on-use.
26423         (Makefile.am): Update rules accordingly.
26424         * modules/ctype (Depends-on, Makefile.am): Likewise.
26425         * modules/dirent (Depends-on, Makefile.am): Likewise.
26426         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26427         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26428         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26429         * modules/locale (Depends-on, Makefile.am): Likewise.
26430         * modules/math (Depends-on, Makefile.am): Likewise.
26431         * modules/search (Depends-on, Makefile.am): Likewise.
26432         * modules/signal (Depends-on, Makefile.am): Likewise.
26433         * modules/spawn (Depends-on, Makefile.am): Likewise.
26434         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26435         * modules/string (Depends-on, Makefile.am): Likewise.
26436         * modules/strings (Depends-on, Makefile.am): Likewise.
26437         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26438         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26439         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26440         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26441         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26442         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26443         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26444         * modules/wchar (Depends-on, Makefile.am): Likewise.
26445         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26446         should be poisoned.
26447         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26448         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26449         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26450         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26452         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26453         * m4/math_h.m4 (gl_MATH_H): Likewise.
26454         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26455         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26456         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26457         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26458         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26459         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26460         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26461         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26462         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26465         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26466         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26467         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26469         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26470         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26471         GL_LINK_WARNING.
26472         * lib/ctype.in.h: Likewise.
26473         * lib/dirent.in.h: Likewise.
26474         * lib/fcntl.in.h: Likewise.
26475         * lib/inttypes.in.h: Likewise.
26476         * lib/langinfo.in.h: Likewise.
26477         * lib/locale.in.h: Likewise.
26478         * lib/math.in.h: Likewise.
26479         * lib/search.in.h: Likewise.
26480         * lib/signal.in.h: Likewise.
26481         * lib/spawn.in.h: Likewise.
26482         * lib/stdio.in.h: Likewise.
26483         * lib/stdlib.in.h: Likewise.
26484         * lib/string.in.h: Likewise.
26485         * lib/strings.in.h: Likewise.
26486         * lib/sys_file.in.h: Likewise.
26487         * lib/sys_ioctl.in.h: Likewise.
26488         * lib/sys_select.in.h: Likewise.
26489         * lib/sys_socket.in.h: Likewise.
26490         * lib/sys_stat.in.h: Likewise.
26491         * lib/sys_times.in.h: Likewise.
26492         * lib/sys_utsname.in.h: Likewise.
26493         * lib/unistd.in.h: Likewise.
26494         * lib/wchar.in.h: Likewise.
26495
26496 2010-01-20  Bruno Haible  <bruno@clisp.org>
26497
26498         Avoid duplicate -lm.
26499         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26500         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26503         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26504         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26505         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26506         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26507         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26508         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26509         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26510         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26511         Reported by Paolo Bonzini.
26512
26513 2010-01-19  Bruno Haible  <bruno@clisp.org>
26514
26515         langinfo, nl_langinfo: Relicense under LGPLv2+.
26516         * modules/langinfo (License): Change to LGPLv2+.
26517         * modules/nl_langinfo (License): Likewise.
26518         Patch by David Lutterkort <lutter@redhat.com>.
26519
26520 2010-01-19  Bruno Haible  <bruno@clisp.org>
26521
26522         Avoid compilation error with cc on OSF/1 5.1.
26523         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26524         statement, not before.
26525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26526
26527 2010-01-18  Bruno Haible  <bruno@clisp.org>
26528
26529         Avoid a link error due to the __printf__ symbol.
26530         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26531         and 2.6.x.
26532         (__format__, __printf__): Remove definitions.
26533         * lib/argp-fmtstream.h: Likewise.
26534         * lib/argp.h: Likewise.
26535         * lib/error.h: Likewise.
26536         * lib/vasnprintf.h: Likewise.
26537         * lib/xprintf.h: Likewise.
26538         * lib/xvasprintf.h: Likewise.
26539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26540
26541 2010-01-18  Bruno Haible  <bruno@clisp.org>
26542
26543         Tests for module 'tanl'.
26544         * modules/tanl-tests: New file.
26545         * tests/test-tanl.c: New file.
26546
26547         Tests for module 'sqrtl'.
26548         * modules/sqrtl-tests: New file.
26549         * tests/test-sqrtl.c: New file.
26550
26551         Tests for module 'sinl'.
26552         * modules/sinl-tests: New file.
26553         * tests/test-sinl.c: New file.
26554
26555         Tests for module 'logl'.
26556         * modules/logl-tests: New file.
26557         * tests/test-logl.c: New file.
26558
26559         Tests for module 'expl'.
26560         * modules/expl-tests: New file.
26561         * tests/test-expl.c: New file.
26562
26563         Tests for module 'cosl'.
26564         * modules/cosl-tests: New file.
26565         * tests/test-cosl.c: New file.
26566
26567         Tests for module 'atanl'.
26568         * modules/atanl-tests: New file.
26569         * tests/test-atanl.c: New file.
26570
26571         Tests for module 'asinl'.
26572         * modules/asinl-tests: New file.
26573         * tests/test-asinl.c: New file.
26574
26575         Tests for module 'acosl'.
26576         * modules/acosl-tests: New file.
26577         * tests/test-acosl.c: New file.
26578
26579         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26580         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26581         tanl): Use the standard gnulib idiom.
26582         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26583         * lib/sinl.c: Likewise.
26584         * lib/tanl.c: Don't include trigl.c.
26585         (kernel_tanl): Make static.
26586         * lib/sincosl.c: Include trigl.h first.
26587         * lib/trigl.c: Likewise.
26588         * m4/acosl.m4: New file.
26589         * m4/asinl.m4: New file.
26590         * m4/atanl.m4: New file.
26591         * m4/cosl.m4: New file.
26592         * m4/expl.m4: New file.
26593         * m4/logl.m4: New file.
26594         * m4/sinl.m4: New file.
26595         * m4/sqrtl.m4: New file.
26596         * m4/tanl.m4: New file.
26597         * m4/mathl.m4: Remove file.
26598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26599         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26600         Don't initialize GNULIB_MATHL.
26601         * modules/acosl: New file.
26602         * modules/asinl: New file.
26603         * modules/atanl: New file.
26604         * modules/cosl: New file.
26605         * modules/expl: New file.
26606         * modules/logl: New file.
26607         * modules/sinl: New file.
26608         * modules/sqrtl: New file.
26609         * modules/tanl: New file.
26610         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26611         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26612         substitute GNULIB_MATHL.
26613         * modules/mathl: Rewritten.
26614         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26615         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26616         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26617         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26618         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26619         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26620         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26621         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26622         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26623
26624 2010-01-18  Bruno Haible  <bruno@clisp.org>
26625
26626         sqrt: Make gl_FUNC_SQRT requirable.
26627         * m4/sqrt.m4: New file.
26628         * modules/sqrt (Files): Add it.
26629         (configure.ac): Invoke gl_FUNC_SQRT.
26630
26631 2010-01-18  Bruno Haible  <bruno@clisp.org>
26632
26633         New modules for common <math.h> functions.
26634         * m4/mathfunc.m4: New file.
26635         * modules/acos: New file.
26636         * modules/asin: New file.
26637         * modules/atan: New file.
26638         * modules/atan2: New file.
26639         * modules/cbrt: New file.
26640         * modules/copysign: New file.
26641         * modules/cos: New file.
26642         * modules/cosh: New file.
26643         * modules/erf: New file.
26644         * modules/erfc: New file.
26645         * modules/exp: New file.
26646         * modules/fabs: New file.
26647         * modules/fmod: New file.
26648         * modules/hypot: New file.
26649         * modules/j0: New file.
26650         * modules/j1: New file.
26651         * modules/jn: New file.
26652         * modules/ldexp: New file.
26653         * modules/lgamma: New file.
26654         * modules/log: New file.
26655         * modules/log10: New file.
26656         * modules/log1p: New file.
26657         * modules/logb: New file.
26658         * modules/modf: New file.
26659         * modules/nextafter: New file.
26660         * modules/pow: New file.
26661         * modules/remainder: New file.
26662         * modules/rint: New file.
26663         * modules/sin: New file.
26664         * modules/sinh: New file.
26665         * modules/sqrt: New file.
26666         * modules/tan: New file.
26667         * modules/tanh: New file.
26668         * modules/y0: New file.
26669         * modules/y1: New file.
26670         * modules/yn: New file.
26671         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26672         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26673         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26674         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26675         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26676         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26677         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26678         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26679         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26680         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26681         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26682         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26683         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26684         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26685         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26686         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26687         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26688         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26689         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26690         * doc/posix-functions/log.texi: Mention the 'log' module.
26691         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26692         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26693         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26694         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26695         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26696         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26697         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26698         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26699         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26700         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26701         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26702         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26703         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26704         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26705         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26706         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26707
26708 2010-01-18  Jim Meyering  <meyering@redhat.com>
26709
26710         ignore-value: relax license to LGPLv2+
26711         * modules/ignore-value (License): Relax to LGPLv2+.
26712
26713         getdate: don't leak when TZ contains two or more '"'s
26714         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26715         double quote in TZ after the first one.
26716
26717         readtokens: do not leak internal token_lengths buffer
26718         * lib/readtokens.c (readtokens): Free the local, lengths,
26719         when the supplied "token_lengths" parameter is NULL.
26720
26721 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26722
26723         Fix a couple of missing LIBTHREAD link failures on AIX.
26724         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26725         $(LIBTHREAD).
26726         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26727
26728         Link test-poll against INET_PTON_LIB.
26729         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26730         for inet_pton on Solaris 10.
26731
26732 2010-01-17  Bruno Haible  <bruno@clisp.org>
26733
26734         unistdio/*-sprintf: Fix typo in module description.
26735         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26736         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26737         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26738         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26739         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26740         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26741         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26743
26744 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26745
26746         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26747         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26748         variables in shell case patterns, for AIX and HP-UX ksh.
26749
26750         Split large sed scripts, for HP-UX sed.
26751         * modules/stdio: Split sed scripts around 50 sed commands,
26752         to avoid HP-UX limit of 99 commands, in the near future.
26753         * modules/string: Likewise.
26754         * modules/unistd: Likewise.
26755
26756         gnulib-tool: avoid writing in the current directory.
26757         * gnulib-tool (func_emit_lib_Makefile_am)
26758         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26759         not in the current directory, so concurrent gnulib-tool
26760         instances do not interfere.
26761
26762 2010-01-16  Jim Meyering  <meyering@redhat.com>
26763
26764         doc: update users.txt
26765         * users.txt: Add grep.
26766         (diffutils, gzip): Update URLs.
26767
26768 2010-01-12  Bruno Haible  <bruno@clisp.org>
26769
26770         posix_spawn: Avoid test failure on Cygwin.
26771         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26772         characters.
26773         Reported by Simon Josefsson.
26774
26775 2010-01-12  Bruno Haible  <bruno@clisp.org>
26776
26777         * tests/test-cond.c (main): When skipping the test, show the reason.
26778
26779 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26780
26781         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26782
26783 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26784
26785         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26786         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26787
26788 2010-01-12  Eric Blake  <ebb9@byu.net>
26789
26790         build: guarantee AS_VAR_IF
26791         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26792         (gl_AS_VAR_IF): Move...
26793         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26794         Reported by Simon Josefsson.
26795
26796 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26797
26798         * lib/stdio.in.h: Fix typo.
26799
26800 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26801
26802         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26803         libgpg-error.
26804
26805 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26806
26807         * tests/test-xalloc-die.sh: Use $EXEEXT.
26808
26809 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26810             Bruno Haible  <bruno@clisp.org>
26811
26812         getlogin, getlogin_r: Avoid test failure.
26813         * tests/test-getlogin.c: Include <stdio.h>.
26814         (main): Skip the test when the function fails because stdin is not a
26815         tty.
26816         * tests/test-getlogin_r.c: Include <stdio.h>.
26817         (main): Skip the test when the function fails because stdin is not a
26818         tty.
26819
26820 2010-01-11  Eric Blake  <ebb9@byu.net>
26821
26822         tests: avoid more large file warnings
26823         * tests/test-fflush.c: Avoid warning about ftell use.
26824         * tests/test-fseek.c: Avoid warning about fseek use.
26825
26826 2010-01-10  Bruno Haible  <bruno@clisp.org>
26827
26828         nproc: Work better on Linux when /proc and /sys are not mounted.
26829         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26830         as lower bound when, on glibc/Linux systems,
26831         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26832         Suggested by Pádraig Brady <P@draigbrady.com>.
26833         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26834
26835         nproc: Refactor.
26836         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26837         extracted from num_processors.
26838         (num_processors): Call it.
26839
26840 2010-01-11  Jim Meyering  <meyering@redhat.com>
26841
26842         utimecmp: avoid new warning from upcoming gcc-4.5.0
26843         * lib/utimecmp.c (BILLION): Define using #define rather than an
26844         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26845
26846 2010-01-11  Eric Blake  <ebb9@byu.net>
26847
26848         math: add portability warnings for classification macros
26849         * modules/math (Depends-on): Add warn-on-use.
26850         (Makefile.am): Provide new substitutions.
26851         * m4/math_h.m4 (gl_MATH_H): Require inline.
26852         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26853         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26854         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26855         implement warnings.
26856
26857         unistd: warn on use of environ without module
26858         * modules/unistd (Depends-on): Add warn-on-use.
26859         (Makefile.am): Provide new substitutions.
26860         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26861         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26862
26863         stdio: warn on suspicious uses
26864         * modules/stdio (Depends-on): Add warn-on-use.
26865         (Makefile.am): Provide new substitutions.
26866         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26867         fseeko.
26868         * lib/stdio.in.h (gets): Always warn on use.
26869         (fseek, ftell): Adjust when warnings are issued, and honor
26870         _GL_NO_LARGE_FILES as a way to silence the warning.
26871         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26872         any warning about large file offsets.
26873         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26874         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26875         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26876         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26877         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26878         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26879         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26880         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26881
26882         warn-on-use: new module
26883         * modules/warn-on-use: New file.
26884         * build-aux/warn-on-use.h: Likewise.
26885         * m4/warn-on-use.m4: Likewise.
26886         * MODULES.html.sh (Support for building): Mention it.
26887
26888 2010-01-10  Bruno Haible  <bruno@clisp.org>
26889
26890         Tests for module 'unistr/u32-strdup'.
26891         * modules/unistr/u32-strdup-tests: New file.
26892         * tests/unistr/test-u32-strdup.c: New file.
26893
26894         Tests for module 'unistr/u16-strdup'.
26895         * modules/unistr/u16-strdup-tests: New file.
26896         * tests/unistr/test-u16-strdup.c: New file.
26897
26898         Tests for module 'unistr/u8-strdup'.
26899         * modules/unistr/u8-strdup-tests: New file.
26900         * tests/unistr/test-u8-strdup.c: New file.
26901         * tests/unistr/test-strdup.h: New file.
26902
26903         Tests for module 'unistr/u32-strncmp'.
26904         * modules/unistr/u32-strncmp-tests: New file.
26905         * tests/unistr/test-u32-strncmp.c: New file.
26906
26907         Tests for module 'unistr/u16-strncmp'.
26908         * modules/unistr/u16-strncmp-tests: New file.
26909         * tests/unistr/test-u16-strncmp.c: New file.
26910
26911         Tests for module 'unistr/u8-strncmp'.
26912         * modules/unistr/u8-strncmp-tests: New file.
26913         * tests/unistr/test-u8-strncmp.c: New file.
26914         * tests/unistr/test-strncmp.h: New file.
26915
26916         Tests for module 'unistr/u32-strcoll'.
26917         * modules/unistr/u32-strcoll-tests: New file.
26918         * tests/unistr/test-u32-strcoll.c: New file.
26919
26920         Tests for module 'unistr/u16-strcoll'.
26921         * modules/unistr/u16-strcoll-tests: New file.
26922         * tests/unistr/test-u16-strcoll.c: New file.
26923
26924         Tests for module 'unistr/u8-strcoll'.
26925         * modules/unistr/u8-strcoll-tests: New file.
26926         * tests/unistr/test-u8-strcoll.c: New file.
26927
26928         Tests for module 'unistr/u32-strcmp'.
26929         * modules/unistr/u32-strcmp-tests: New file.
26930         * tests/unistr/test-u32-strcmp.c: New file.
26931         * tests/unistr/test-u32-strcmp.h: New file.
26932
26933         Tests for module 'unistr/u16-strcmp'.
26934         * modules/unistr/u16-strcmp-tests: New file.
26935         * tests/unistr/test-u16-strcmp.c: New file.
26936         * tests/unistr/test-u16-strcmp.h: New file.
26937
26938         Tests for module 'unistr/u8-strcmp'.
26939         * modules/unistr/u8-strcmp-tests: New file.
26940         * tests/unistr/test-u8-strcmp.c: New file.
26941         * tests/unistr/test-u8-strcmp.h: New file.
26942         * tests/unistr/test-strcmp.h: New file.
26943
26944         Tests for module 'unistr/u32-strncat'.
26945         * modules/unistr/u32-strncat-tests: New file.
26946         * tests/unistr/test-u32-strncat.c: New file.
26947
26948         Tests for module 'unistr/u16-strncat'.
26949         * modules/unistr/u16-strncat-tests: New file.
26950         * tests/unistr/test-u16-strncat.c: New file.
26951
26952         Tests for module 'unistr/u8-strncat'.
26953         * modules/unistr/u8-strncat-tests: New file.
26954         * tests/unistr/test-u8-strncat.c: New file.
26955         * tests/unistr/test-strncat.h: New file.
26956
26957         Tests for module 'unistr/u32-strcat'.
26958         * modules/unistr/u32-strcat-tests: New file.
26959         * tests/unistr/test-u32-strcat.c: New file.
26960
26961         Tests for module 'unistr/u16-strcat'.
26962         * modules/unistr/u16-strcat-tests: New file.
26963         * tests/unistr/test-u16-strcat.c: New file.
26964
26965         Tests for module 'unistr/u8-strcat'.
26966         * modules/unistr/u8-strcat-tests: New file.
26967         * tests/unistr/test-u8-strcat.c: New file.
26968         * tests/unistr/test-strcat.h: New file.
26969
26970         Tests for module 'unistr/u32-stpncpy'.
26971         * modules/unistr/u32-stpncpy-tests: New file.
26972         * tests/unistr/test-u32-stpncpy.c: New file.
26973
26974         Tests for module 'unistr/u16-stpncpy'.
26975         * modules/unistr/u16-stpncpy-tests: New file.
26976         * tests/unistr/test-u16-stpncpy.c: New file.
26977
26978         Tests for module 'unistr/u8-stpncpy'.
26979         * modules/unistr/u8-stpncpy-tests: New file.
26980         * tests/unistr/test-u8-stpncpy.c: New file.
26981         * tests/unistr/test-stpncpy.h: New file.
26982
26983         Tests for module 'unistr/u32-strncpy'.
26984         * modules/unistr/u32-strncpy-tests: New file.
26985         * tests/unistr/test-u32-strncpy.c: New file.
26986
26987         Tests for module 'unistr/u16-strncpy'.
26988         * modules/unistr/u16-strncpy-tests: New file.
26989         * tests/unistr/test-u16-strncpy.c: New file.
26990
26991         Tests for module 'unistr/u8-strncpy'.
26992         * modules/unistr/u8-strncpy-tests: New file.
26993         * tests/unistr/test-u8-strncpy.c: New file.
26994         * tests/unistr/test-strncpy.h: New file.
26995
26996         Tests for module 'unistr/u32-stpcpy'.
26997         * modules/unistr/u32-stpcpy-tests: New file.
26998         * tests/unistr/test-u32-stpcpy.c: New file.
26999
27000         Tests for module 'unistr/u16-stpcpy'.
27001         * modules/unistr/u16-stpcpy-tests: New file.
27002         * tests/unistr/test-u16-stpcpy.c: New file.
27003
27004         Tests for module 'unistr/u8-stpcpy'.
27005         * modules/unistr/u8-stpcpy-tests: New file.
27006         * tests/unistr/test-u8-stpcpy.c: New file.
27007         * tests/unistr/test-stpcpy.h: New file.
27008
27009         Tests for module 'unistr/u32-strcpy'.
27010         * modules/unistr/u32-strcpy-tests: New file.
27011         * tests/unistr/test-u32-strcpy.c: New file.
27012
27013         Tests for module 'unistr/u16-strcpy'.
27014         * modules/unistr/u16-strcpy-tests: New file.
27015         * tests/unistr/test-u16-strcpy.c: New file.
27016
27017         Tests for module 'unistr/u8-strcpy'.
27018         * modules/unistr/u8-strcpy-tests: New file.
27019         * tests/unistr/test-u8-strcpy.c: New file.
27020         * tests/unistr/test-strcpy.h: New file.
27021
27022         Tests for module 'unistr/u32-strnlen'.
27023         * modules/unistr/u32-strnlen-tests: New file.
27024         * tests/unistr/test-u32-strnlen.c: New file.
27025
27026         Tests for module 'unistr/u16-strnlen'.
27027         * modules/unistr/u16-strnlen-tests: New file.
27028         * tests/unistr/test-u16-strnlen.c: New file.
27029
27030         Tests for module 'unistr/u8-strnlen'.
27031         * modules/unistr/u8-strnlen-tests: New file.
27032         * tests/unistr/test-u8-strnlen.c: New file.
27033         * tests/unistr/test-strnlen.h: New file.
27034
27035         Tests for module 'unistr/u32-strlen'.
27036         * modules/unistr/u32-strlen-tests: New file.
27037         * tests/unistr/test-u32-strlen.c: New file.
27038
27039         Tests for module 'unistr/u16-strlen'.
27040         * modules/unistr/u16-strlen-tests: New file.
27041         * tests/unistr/test-u16-strlen.c: New file.
27042
27043         Tests for module 'unistr/u8-strlen'.
27044         * modules/unistr/u8-strlen-tests: New file.
27045         * tests/unistr/test-u8-strlen.c: New file.
27046
27047         Tests for module 'unistr/u32-prev'.
27048         * modules/unistr/u32-prev-tests: New file.
27049         * tests/unistr/test-u32-prev.c: New file.
27050
27051         Tests for module 'unistr/u16-prev'.
27052         * modules/unistr/u16-prev-tests: New file.
27053         * tests/unistr/test-u16-prev.c: New file.
27054
27055         Tests for module 'unistr/u8-prev'.
27056         * modules/unistr/u8-prev-tests: New file.
27057         * tests/unistr/test-u8-prev.c: New file.
27058
27059         Tests for module 'unistr/u32-next'.
27060         * modules/unistr/u32-next-tests: New file.
27061         * tests/unistr/test-u32-next.c: New file.
27062
27063         Tests for module 'unistr/u16-next'.
27064         * modules/unistr/u16-next-tests: New file.
27065         * tests/unistr/test-u16-next.c: New file.
27066
27067         Tests for module 'unistr/u8-next'.
27068         * modules/unistr/u8-next-tests: New file.
27069         * tests/unistr/test-u8-next.c: New file.
27070
27071         Tests for module 'unistr/u32-strmbtouc'.
27072         * modules/unistr/u32-strmbtouc-tests: New file.
27073         * tests/unistr/test-u32-strmbtouc.c: New file.
27074
27075         Tests for module 'unistr/u16-strmbtouc'.
27076         * modules/unistr/u16-strmbtouc-tests: New file.
27077         * tests/unistr/test-u16-strmbtouc.c: New file.
27078
27079         Tests for module 'unistr/u8-strmbtouc'.
27080         * modules/unistr/u8-strmbtouc-tests: New file.
27081         * tests/unistr/test-u8-strmbtouc.c: New file.
27082
27083         Tests for module 'unistr/u32-strmblen'.
27084         * modules/unistr/u32-strmblen-tests: New file.
27085         * tests/unistr/test-u32-strmblen.c: New file.
27086
27087         Tests for module 'unistr/u16-strmblen'.
27088         * modules/unistr/u16-strmblen-tests: New file.
27089         * tests/unistr/test-u16-strmblen.c: New file.
27090
27091         Tests for module 'unistr/u8-strmblen'.
27092         * modules/unistr/u8-strmblen-tests: New file.
27093         * tests/unistr/test-u8-strmblen.c: New file.
27094
27095         Tests for module 'unistr/u32-cpy-alloc'.
27096         * modules/unistr/u32-cpy-alloc-tests: New file.
27097         * tests/unistr/test-u32-cpy-alloc.c: New file.
27098
27099         Tests for module 'unistr/u16-cpy-alloc'.
27100         * modules/unistr/u16-cpy-alloc-tests: New file.
27101         * tests/unistr/test-u16-cpy-alloc.c: New file.
27102
27103         Tests for module 'unistr/u8-cpy-alloc'.
27104         * modules/unistr/u8-cpy-alloc-tests: New file.
27105         * tests/unistr/test-u8-cpy-alloc.c: New file.
27106         * tests/unistr/test-cpy-alloc.h: New file.
27107
27108         Tests for module 'unistr/u32-mbsnlen'.
27109         * modules/unistr/u32-mbsnlen-tests: New file.
27110         * tests/unistr/test-u32-mbsnlen.c: New file.
27111
27112         Tests for module 'unistr/u16-mbsnlen'.
27113         * modules/unistr/u16-mbsnlen-tests: New file.
27114         * tests/unistr/test-u16-mbsnlen.c: New file.
27115
27116         Tests for module 'unistr/u8-mbsnlen'.
27117         * modules/unistr/u8-mbsnlen-tests: New file.
27118         * tests/unistr/test-u8-mbsnlen.c: New file.
27119
27120         Tests for module 'unistr/u32-chr'.
27121         * modules/unistr/u32-chr-tests: New file.
27122         * tests/unistr/test-u32-chr.c: New file.
27123
27124         Tests for module 'unistr/u16-chr'.
27125         * modules/unistr/u16-chr-tests: New file.
27126         * tests/unistr/test-u16-chr.c: New file.
27127
27128         Tests for module 'unistr/u8-chr'.
27129         * modules/unistr/u8-chr-tests: New file.
27130         * tests/unistr/test-u8-chr.c: New file.
27131         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27132
27133         Tests for module 'unistr/u32-cmp2'.
27134         * modules/unistr/u32-cmp2-tests: New file.
27135         * tests/unistr/test-u32-cmp2.c: New file.
27136
27137         Tests for module 'unistr/u16-cmp2'.
27138         * modules/unistr/u16-cmp2-tests: New file.
27139         * tests/unistr/test-u16-cmp2.c: New file.
27140
27141         Tests for module 'unistr/u8-cmp2'.
27142         * modules/unistr/u8-cmp2-tests: New file.
27143         * tests/unistr/test-u8-cmp2.c: New file.
27144         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27145
27146         Tests for module 'unistr/u32-cmp'.
27147         * modules/unistr/u32-cmp-tests: New file.
27148         * tests/unistr/test-u32-cmp.c: New file.
27149
27150         Tests for module 'unistr/u16-cmp'.
27151         * modules/unistr/u16-cmp-tests: New file.
27152         * tests/unistr/test-u16-cmp.c: New file.
27153
27154         Tests for module 'unistr/u8-cmp'.
27155         * modules/unistr/u8-cmp-tests: New file.
27156         * tests/unistr/test-u8-cmp.c: New file.
27157         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27158
27159         Tests for module 'unistr/u32-set'.
27160         * modules/unistr/u32-set-tests: New file.
27161         * tests/unistr/test-u32-set.c: New file.
27162
27163         Tests for module 'unistr/u16-set'.
27164         * modules/unistr/u16-set-tests: New file.
27165         * tests/unistr/test-u16-set.c: New file.
27166
27167         Tests for module 'unistr/u8-set'.
27168         * modules/unistr/u8-set-tests: New file.
27169         * tests/unistr/test-u8-set.c: New file.
27170         * tests/unistr/test-set.h: New file.
27171
27172         Tests for module 'unistr/u32-move'.
27173         * modules/unistr/u32-move-tests: New file.
27174         * tests/unistr/test-u32-move.c: New file.
27175
27176         Tests for module 'unistr/u16-move'.
27177         * modules/unistr/u16-move-tests: New file.
27178         * tests/unistr/test-u16-move.c: New file.
27179
27180         Tests for module 'unistr/u8-move'.
27181         * modules/unistr/u8-move-tests: New file.
27182         * tests/unistr/test-u8-move.c: New file.
27183         * tests/unistr/test-move.h: New file.
27184
27185         Tests for module 'unistr/u32-cpy'.
27186         * modules/unistr/u32-cpy-tests: New file.
27187         * tests/unistr/test-u32-cpy.c: New file.
27188
27189         Tests for module 'unistr/u16-cpy'.
27190         * modules/unistr/u16-cpy-tests: New file.
27191         * tests/unistr/test-u16-cpy.c: New file.
27192
27193         Tests for module 'unistr/u8-cpy'.
27194         * modules/unistr/u8-cpy-tests: New file.
27195         * tests/unistr/test-u8-cpy.c: New file.
27196         * tests/unistr/test-cpy.h: New file.
27197
27198 2010-01-09  Bruno Haible  <bruno@clisp.org>
27199
27200         Tests for module 'unistr/u32-uctomb'.
27201         * modules/unistr/u32-uctomb-tests: New file.
27202         * tests/unistr/test-u32-uctomb.c: New file.
27203
27204         Tests for module 'unistr/u16-uctomb'.
27205         * modules/unistr/u16-uctomb-tests: New file.
27206         * tests/unistr/test-u16-uctomb.c: New file.
27207
27208         Tests for module 'unistr/u8-uctomb'.
27209         * modules/unistr/u8-uctomb-tests: New file.
27210         * tests/unistr/test-u8-uctomb.c: New file.
27211
27212         Tests for module 'unistr/u32-mbtoucr'.
27213         * modules/unistr/u32-mbtoucr-tests: New file.
27214         * tests/unistr/test-u32-mbtoucr.c: New file.
27215
27216         Tests for module 'unistr/u16-mbtoucr'.
27217         * modules/unistr/u16-mbtoucr-tests: New file.
27218         * tests/unistr/test-u16-mbtoucr.c: New file.
27219
27220         Tests for module 'unistr/u8-mbtoucr'.
27221         * modules/unistr/u8-mbtoucr-tests: New file.
27222         * tests/unistr/test-u8-mbtoucr.c: New file.
27223
27224         Tests for module 'unistr/u32-mbtouc'.
27225         * modules/unistr/u32-mbtouc-tests: New file.
27226         * tests/unistr/test-u32-mbtouc.c: New file.
27227
27228         Tests for module 'unistr/u16-mbtouc'.
27229         * modules/unistr/u16-mbtouc-tests: New file.
27230         * tests/unistr/test-u16-mbtouc.c: New file.
27231
27232         Tests for module 'unistr/u8-mbtouc'.
27233         * modules/unistr/u8-mbtouc-tests: New file.
27234         * tests/unistr/test-u8-mbtouc.c: New file.
27235
27236         Tests for module 'unistr/u32-mbtouc-unsafe'.
27237         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27238         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27239         * tests/unistr/test-u32-mbtouc.h: New file.
27240
27241         Tests for module 'unistr/u16-mbtouc-unsafe'.
27242         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27243         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27244         * tests/unistr/test-u16-mbtouc.h: New file.
27245
27246         Tests for module 'unistr/u8-mbtouc-unsafe'.
27247         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27248         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27249         * tests/unistr/test-u8-mbtouc.h: New file.
27250
27251         Tests for module 'unistr/u32-mblen'.
27252         * modules/unistr/u32-mblen-tests: New file.
27253         * tests/unistr/test-u32-mblen.c: New file.
27254
27255         Tests for module 'unistr/u16-mblen'.
27256         * modules/unistr/u16-mblen-tests: New file.
27257         * tests/unistr/test-u16-mblen.c: New file.
27258
27259         Tests for module 'unistr/u8-mblen'.
27260         * modules/unistr/u8-mblen-tests: New file.
27261         * tests/unistr/test-u8-mblen.c: New file.
27262
27263         Tests for module 'unistr/u32-to-u16'.
27264         * modules/unistr/u32-to-u16-tests: New file.
27265         * tests/unistr/test-u32-to-u16.c: New file.
27266
27267         Tests for module 'unistr/u32-to-u8'.
27268         * modules/unistr/u32-to-u8-tests: New file.
27269         * tests/unistr/test-u32-to-u8.c: New file.
27270
27271         Tests for module 'unistr/u16-to-u32'.
27272         * modules/unistr/u16-to-u32-tests: New file.
27273         * tests/unistr/test-u16-to-u32.c: New file.
27274
27275         Tests for module 'unistr/u16-to-u8'.
27276         * modules/unistr/u16-to-u8-tests: New file.
27277         * tests/unistr/test-u16-to-u8.c: New file.
27278
27279         Tests for module 'unistr/u8-to-u32'.
27280         * modules/unistr/u8-to-u32-tests: New file.
27281         * tests/unistr/test-u8-to-u32.c: New file.
27282
27283         Tests for module 'unistr/u8-to-u16'.
27284         * modules/unistr/u8-to-u16-tests: New file.
27285         * tests/unistr/test-u8-to-u16.c: New file.
27286
27287         Tests for module 'unistr/u32-check'.
27288         * modules/unistr/u32-check-tests: New file.
27289         * tests/unistr/test-u32-check.c: New file.
27290
27291         Tests for module 'unistr/u16-check'.
27292         * modules/unistr/u16-check-tests: New file.
27293         * tests/unistr/test-u16-check.c: New file.
27294
27295         Tests for module 'unistr/u8-check'.
27296         * modules/unistr/u8-check-tests: New file.
27297         * tests/unistr/test-u8-check.c: New file.
27298
27299         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27300         (category_equals): New function.
27301         (main): Add more tests.
27302         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27303
27304         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27305
27306 2010-01-10  Bruno Haible  <bruno@clisp.org>
27307
27308         unistr/u*-strcoll: Try harder to distinguish different strings.
27309         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27310         compare s1 and s2 to see if they are different.
27311
27312 2010-01-10  Bruno Haible  <bruno@clisp.org>
27313
27314         unistr/u*-stpncpy: Fix the return value.
27315         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27316         description of the return value consistent with stpncpy in glibc.
27317         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27318         written non-NUL unit.
27319
27320 2010-01-10  Bruno Haible  <bruno@clisp.org>
27321
27322         unistr/u*-next: Add missing dependencies.
27323         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27324         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27325         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27326
27327 2010-01-10  Bruno Haible  <bruno@clisp.org>
27328
27329         unistr/u8-mbsnlen: Fix return value for incomplete character.
27330         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27331         u8_mblen.
27332         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27333         Remove unistr/u8-mblen.
27334         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27335         u16_mblen.
27336         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27337         Remove unistr/u16-mblen.
27338
27339 2010-01-10  Bruno Haible  <bruno@clisp.org>
27340
27341         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27342         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27343         Reported by Brian Gough <bjg@gnu.org> and
27344         Chris Clayton <chris2553@googlemail.com> via
27345         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27346
27347 2010-01-09  Bruno Haible  <bruno@clisp.org>
27348
27349         unistr/u16-to-u32: Reject invalid input.
27350         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27351         u16_mbtouc.
27352         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27353         Remove unistr/u16-mbtouc.
27354
27355         unistr/u16-to-u8: Reject invalid input.
27356         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27357         u16_mbtouc.
27358         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27359         Remove unistr/u16-mbtouc.
27360
27361         unistr/u8-to-u32: Reject invalid input.
27362         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27363         u8_mbtouc.
27364         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27365         Remove unistr/u8-mbtouc.
27366
27367         unistr/u8-to-u16: Reject invalid input.
27368         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27369         u8_mbtouc.
27370         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27371         Remove unistr/u8-mbtouc.
27372
27373 2010-01-09  Bruno Haible  <bruno@clisp.org>
27374
27375         Tests for module 'getlogin'.
27376         * modules/getlogin-tests: New file.
27377         * tests/test-getlogin.c: New file.
27378
27379         New module 'getlogin'.
27380         * lib/unistd.in.h (getlogin): New declaration.
27381         * lib/getlogin.c: New file.
27382         * m4/getlogin.m4: New file.
27383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27384         HAVE_GETLOGIN.
27385         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27386         HAVE_GETLOGIN.
27387         * modules/getlogin: New file.
27388         * doc/posix-functions/getlogin.texi: Mention the new module.
27389         Reported by John W. Eaton <jwe@gnu.org>.
27390
27391 2010-01-09  Bruno Haible  <bruno@clisp.org>
27392
27393         getlogin_r: Support for native Windows.
27394         * lib/getlogin_r.c: Include <windows.h>
27395         (getlogin_r): Implement for native Windows.
27396         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27397         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27398         via John W. Eaton <jwe@gnu.org>.
27399
27400 2010-01-09  Bruno Haible  <bruno@clisp.org>
27401
27402         getlogin_r: Small fixes.
27403         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27404         succeeds.
27405         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27406         before testing whether getlogin_r is declared. No need to set
27407         HAVE_DECL_GETLOGIN_R to 1.
27408         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27409
27410 2010-01-09  Bruno Haible  <bruno@clisp.org>
27411
27412         * lib/unistd.in.h (getlogin_r): Add comment.
27413
27414 2010-01-09  Bruno Haible  <bruno@clisp.org>
27415
27416         Tests for module 'getlogin_r'.
27417         * modules/getlogin_r-tests: New file.
27418         * tests/test-getlogin_r.c: New file.
27419
27420 2010-01-09  Jim Meyering  <meyering@redhat.com>
27421
27422         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27423         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27424         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27425
27426 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27427
27428         * lib/dup2.c (rpl_dup2): Improve comment.
27429
27430 2010-01-08  Eric Blake  <ebb9@byu.net>
27431
27432         maint.mk: allow packages to add makefile @@ exceptions
27433         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27434         (sc_makefile_check): Rename...
27435         (sc_makefile_at_at_check): ...to this, and use hook.
27436
27437         dup2: work around mingw bug
27438         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27439         Reported by Simon Josefsson.
27440
27441 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27442
27443         glob: Fix C++ compilation.
27444         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27445         C++.
27446
27447 2010-01-07  Bruno Haible  <bruno@clisp.org>
27448
27449         Fix indentation of wctype.in.h, broken since 2007-01-06.
27450         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27451
27452 2010-01-07  Bruno Haible  <bruno@clisp.org>
27453
27454         mbslen: Avoid collision with system function.
27455         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27456         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27457         * m4/mbslen.m4: New file.
27458         * modules/mbslen (Files): Add it.
27459         (configure.ac): Invoke gl_MBSLEN.
27460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27461         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27462         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27463         via Ian Beckwith <ianb@erislabs.net>.
27464
27465 2010-01-07  Bruno Haible  <bruno@clisp.org>
27466
27467         dirent: Document the last fix.
27468         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27469
27470 2010-01-07  Bruno Haible  <bruno@clisp.org>
27471
27472         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27473         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27474         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27475         va_list are defined.
27476         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27477         Reported by Eric Blake.
27478
27479 2010-01-07  Bruno Haible  <bruno@clisp.org>
27480
27481         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27482         * modules/xlist (Depends-on): Add 'list',
27483         * modules/xoset (Depends-on): Add 'oset'.
27484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27485
27486 2010-01-07  Bruno Haible  <bruno@clisp.org>
27487
27488         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27489         * doc/posix-functions/strncasecmp.texi: Likewise.
27490
27491 2010-01-07  Bruno Haible  <bruno@clisp.org>
27492
27493         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27494
27495 2010-01-07  John W. Eaton  <jwe@octave.org>
27496
27497         wctype: allow C++ use
27498         * lib/wctype.in.h: Add extern "C" block for C++.
27499
27500 2010-01-06  Eric Blake  <ebb9@byu.net>
27501
27502         maint.mk: detect incorrect GFDL usage
27503         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27504
27505 2010-01-06  Jim Meyering  <meyering@redhat.com>
27506         and Eric Blake  <ebb9@byu.net>
27507
27508         maint.mk: ignore multi-line copyright in NEWS
27509         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27510
27511 2010-01-06  Eric Blake  <ebb9@byu.net>
27512
27513         select: add missing dependency
27514         * modules/select-tests (Depends-on): Move sockets dependency...
27515         * modules/select (Depends-on): ...here.
27516         Reported by Ian Beckwith.
27517
27518         doc: regenerate INSTALL
27519         * doc/INSTALL: Reflect recent autoconf update.
27520         * doc/INSTALL.ISO: Likewise.
27521         * doc/INSTALL.UTF-8: Likewise.
27522
27523         pread: fix compilation on glibc
27524         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27525         Reported by Ralf Wildenhues.
27526
27527         dirent: fix test failure
27528         * lib/dirent.in.h (includes): Guarantee ino_t.
27529         Reported by Ralf Wildenhues.
27530
27531 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27532
27533         linkat, renameat: avoid bad free
27534         * lib/at-func2.c (at_func2): Fix typo.
27535         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27536
27537 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27538
27539         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27540         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27541         to avoid failure of symlink test later.
27542
27543 2010-01-06  Eric Blake  <ebb9@byu.net>
27544
27545         stdio, unistd: guarantee ssize_t
27546         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27547         2008 are exposed when needed.
27548         * lib/stdio.in.h (includes): Likewise.
27549         Reported by Ralf Wildenhues.
27550
27551 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27552
27553         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27554         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27555         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27556
27557 2010-01-06  Jim Meyering  <meyering@redhat.com>
27558
27559         readtokens: this module *does* require xalloc.h
27560         It uses only functions that were omitted by the old syntax-check rule.
27561         * lib/readtokens.c: Include "xalloc.h" once again.
27562         * modules/readtokens (Depends-on): Add xalloc.
27563         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27564
27565 2010-01-05  Eric Blake  <ebb9@byu.net>
27566
27567         maint: support 'make announcement' from a VPATH build
27568         * top/maint.mk (announcement): Look for correct NEWS file.
27569
27570 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27571
27572         utimens (fdutimens): ignore a negative FD, per contract
27573         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27574         when we have a valid file descriptor.  Otherwise, using a brand
27575         new glibc (with just-patched futimens that now fails with EBADF)
27576         would cause this function to fail with ENOSYS.
27577         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27578         See also http://bugzilla.redhat.com/552320.
27579
27580 2010-01-05  Eric Blake  <ebb9@byu.net>
27581
27582         strcase: document what it provides
27583         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27584         gnulib module.
27585         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27586         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27587
27588 2010-01-05  Jim Meyering  <meyering@redhat.com>
27589
27590         maint: remove useless inclusions of "xalloc.h"
27591         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27592         * lib/readtokens.c: Likewise.
27593         * lib/same.c: Likewise.
27594         * modules/getloadavg (Depends-on): Remove xalloc.
27595         * modules/readtokens: Likewise.
27596         * modules/same: Likewise.
27597
27598         maint.mk: include 4 more function names in alloca.h-checking regexp
27599         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27600         regexp.  Before, we would give a false-positive (saying alloca.h
27601         is included unnecessarily) when the only uses involved omitted symbols.
27602
27603         xalloc.h: use consistent formatting
27604         * lib/xalloc.h: Move declarations to start in the first column.
27605
27606 2010-01-05  Eric Blake  <ebb9@byu.net>
27607
27608         mkdir: avoid xalloc
27609         * lib/mkdir.c (includes): Drop unused header.
27610         Reported by John W. Eaton.
27611
27612 2010-01-04  Jim Meyering  <meyering@redhat.com>
27613
27614         nl_langinfo: avoid configure-time syntax error
27615         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27616         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27617         the empty string.  Don't let that provoke a shell syntax error.
27618
27619         regcomp, regexec, fnmatch: avoid array bounds read error
27620         * lib/regcomp.c (build_equiv_class): From glibc:
27621         Use only the low 24 bits of a findidx return value as an index
27622         into the weights array.  Patch by Ulrich Drepper:
27623         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27624         * lib/regexec.c (check_node_accept_bytes): Likewise.
27625         * lib/fnmatch_loop.c (FCT): Likewise.
27626
27627         regcomp: skip collseq lookup when there are no rules
27628         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27629         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27630
27631         regcomp: recognize ill-formed { } expressions
27632         * lib/regcomp.c (parse_dup_op): From glibc:
27633         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27634
27635         regcomp: fix typo in comment
27636         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27637         s/satisfy/satisfies/.
27638
27639         regcomp: sync from glibc: remove dead store
27640         * lib/regcomp.c (duplicate_node_closure): Remove useless
27641         search_duplicated_node call and dead store.
27642
27643         regcomp: sync from glibc; always use nl_langinfo
27644         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27645         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27646         * modules/regex (Depends-on): Add nl_langinfo.
27647
27648 2010-01-04  Eric Blake  <ebb9@byu.net>
27649
27650         fdopendir: fix configure test
27651         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27652
27653 2010-01-01  Bruno Haible  <bruno@clisp.org>
27654
27655         wchar: Remove unused configure check.
27656         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27657
27658 2010-01-01  Eric Blake  <ebb9@byu.net>
27659
27660         headers: make check of system header explicit
27661         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27662         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27663         ourselves.
27664         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27665         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27666         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27667         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27668         internals.
27669         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27670         missing.
27671         Suggested by Bruno Haible.
27672
27673 2010-01-01  Jim Meyering  <meyering@redhat.com>
27674
27675         ChangeLog: tweak to eliminate unnecessary copyright line
27676         * ChangeLog: Remove a copyright line that was mistakenly updated
27677         by today's update-copyright run.  Reported by Eric Blake.
27678
27679         test-update-copyright: don't let envvar setting cause test failure
27680         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27681
27682 2010-01-01  Bruno Haible  <bruno@clisp.org>
27683
27684         localename: Avoid gcc warning.
27685         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27686         function if it is not used.
27687
27688 2010-01-01  Jim Meyering  <meyering@redhat.com>
27689
27690         update nearly all FSF copyright year lists to include 2010
27691         Use the same procedure as for 2009, outlined in
27692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27693
27694         version-etc: set COPYRIGHT_YEAR to 2010
27695         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27696
27697 2009-12-31  Eric Blake  <ebb9@byu.net>
27698
27699         doc: correct availability of cygwin 1.5.x getopt
27700         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27701         variables.
27702         * doc/posix-functions/opterr.texi (opterr): Likewise.
27703         * doc/posix-functions/optind.texi (optind): Likewise.
27704         * doc/posix-functions/optopt.texi (optopt): Likewise.
27705         * doc/posix-functions/tzname.texi (tzname): Likewise.
27706
27707         openat: update maintainer
27708         * modules/openat (Maintainer): Add myself.
27709
27710         utimens: avoid shadowing warning
27711         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27712         buffers into one, to avoid shadowing, as well as avoiding a
27713         redundant stat.
27714         Reported by Jim Meyering.
27715
27716         test-dup2: avoid compiler warning
27717         * tests/test-dup2.c (is_inheritable): Only define if used.
27718
27719 2010-01-01  Bruno Haible  <bruno@clisp.org>
27720
27721         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27722         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27723         defined, use wctomb instead of wcrtomb.
27724
27725 2010-01-01  Bruno Haible  <bruno@clisp.org>
27726
27727         iconv: Reject native Solaris iconv.
27728         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27729         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27730
27731 2009-12-31  Bruno Haible  <bruno@clisp.org>
27732
27733         * tests/test-signal.c (main): Remove test of 'SIG'.
27734
27735 2009-12-31  Bruno Haible  <bruno@clisp.org>
27736
27737         spawn: Fix incomplete fix.
27738         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27739         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27740         warnings for GNULIB_POSIXCHECK again.
27741         Reported by Eric Blake.
27742
27743 2009-12-31  Bruno Haible  <bruno@clisp.org>
27744
27745         Avoid namespace pollution on glibc systems.
27746         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27747         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27748         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27749         glibc systems.
27750
27751 2009-12-31  Bruno Haible  <bruno@clisp.org>
27752
27753         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27754         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27755         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27756         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27757         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27758         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27759         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27760
27761 2009-12-31  Bruno Haible  <bruno@clisp.org>
27762
27763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27764         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27765         afterwards.
27766
27767 2009-12-31  Bruno Haible  <bruno@clisp.org>
27768
27769         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27770         SYS_UTSNAME_H.
27771
27772 2009-12-31  Bruno Haible  <bruno@clisp.org>
27773
27774         spawn: Fix misapplied patch.
27775         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27776         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27777         warnings for GNULIB_POSIXCHECK.
27778
27779 2009-12-31  Bruno Haible  <bruno@clisp.org>
27780
27781         times: Update after sys_times changed.
27782         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27783         * modules/times (Files): Add it.
27784         (configure.ac): Invoke gl_FUNC_TIMES.
27785
27786 2009-12-31  Bruno Haible  <bruno@clisp.org>
27787
27788         Use AC_C_INLINE where necessary.
27789         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27790         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27792         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27793         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27794         * m4/mbiter.m4 (gl_MBITER): Likewise.
27795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27796         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27797         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27798         * modules/u64 (configure.ac): Likewise.
27799
27800 2009-12-31  Bruno Haible  <bruno@clisp.org>
27801
27802         Use AC_C_INLINE instead of module 'inline' where possible.
27803         * modules/inline (Description): Clarify purpose.
27804         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27805         * modules/count-one-bits (Depends-on): Remove inline.
27806         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27807         * modules/openat (Depends-on): Remove inline.
27808         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27809         instead of depending on module 'inline'.
27810         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27811         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27812         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27813         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27814         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27815         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27816         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27817         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27818         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27819         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27820         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27821         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27822         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27823         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27824         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27825         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27826         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27827         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27828         Likewise.
27829         * modules/unictype/property-ascii-hex-digit (Depends-on,
27830         configure.ac): Likewise.
27831         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27832         configure.ac): Likewise.
27833         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27834         configure.ac): Likewise.
27835         * modules/unictype/property-bidi-block-separator (Depends-on,
27836         configure.ac): Likewise.
27837         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27838         configure.ac): Likewise.
27839         * modules/unictype/property-bidi-common-separator (Depends-on,
27840         configure.ac): Likewise.
27841         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27842         Likewise.
27843         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27844         configure.ac): Likewise.
27845         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27846         configure.ac): Likewise.
27847         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27848         configure.ac): Likewise.
27849         * modules/unictype/property-bidi-european-digit (Depends-on,
27850         configure.ac): Likewise.
27851         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27852         configure.ac): Likewise.
27853         * modules/unictype/property-bidi-left-to-right (Depends-on,
27854         configure.ac): Likewise.
27855         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27856         configure.ac): Likewise.
27857         * modules/unictype/property-bidi-other-neutral (Depends-on,
27858         configure.ac): Likewise.
27859         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27860         Likewise.
27861         * modules/unictype/property-bidi-segment-separator (Depends-on,
27862         configure.ac): Likewise.
27863         * modules/unictype/property-bidi-whitespace (Depends-on,
27864         configure.ac): Likewise.
27865         * modules/unictype/property-combining (Depends-on, configure.ac):
27866         Likewise.
27867         * modules/unictype/property-composite (Depends-on, configure.ac):
27868         Likewise.
27869         * modules/unictype/property-currency-symbol (Depends-on,
27870         configure.ac): Likewise.
27871         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27872         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27873         Likewise.
27874         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27875         configure.ac): Likewise.
27876         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27877         Likewise.
27878         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27879         Likewise.
27880         * modules/unictype/property-extender (Depends-on, configure.ac):
27881         Likewise.
27882         * modules/unictype/property-format-control (Depends-on, configure.ac):
27883         Likewise.
27884         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27885         Likewise.
27886         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27887         Likewise.
27888         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27889         Likewise.
27890         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27891         Likewise.
27892         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27893         Likewise.
27894         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27895         Likewise.
27896         * modules/unictype/property-id-start (Depends-on, configure.ac):
27897         Likewise.
27898         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27899         Likewise.
27900         * modules/unictype/property-ids-binary-operator (Depends-on,
27901         configure.ac): Likewise.
27902         * modules/unictype/property-ids-trinary-operator (Depends-on,
27903         configure.ac): Likewise.
27904         * modules/unictype/property-ignorable-control (Depends-on,
27905         configure.ac): Likewise.
27906         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27907         Likewise.
27908         * modules/unictype/property-join-control (Depends-on, configure.ac):
27909         Likewise.
27910         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27911         Likewise.
27912         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27913         Likewise.
27914         * modules/unictype/property-logical-order-exception (Depends-on,
27915         configure.ac): Likewise.
27916         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27917         Likewise.
27918         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27919         * modules/unictype/property-non-break (Depends-on, configure.ac):
27920         Likewise.
27921         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27922         Likewise.
27923         * modules/unictype/property-numeric (Depends-on, configure.ac):
27924         Likewise.
27925         * modules/unictype/property-other-alphabetic (Depends-on,
27926         configure.ac): Likewise.
27927         * modules/unictype/property-other-default-ignorable-code-point
27928         (Depends-on, configure.ac): Likewise.
27929         * modules/unictype/property-other-grapheme-extend (Depends-on,
27930         configure.ac): Likewise.
27931         * modules/unictype/property-other-id-continue (Depends-on,
27932         configure.ac): Likewise.
27933         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27934         Likewise.
27935         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27936         Likewise.
27937         * modules/unictype/property-other-math (Depends-on, configure.ac):
27938         Likewise.
27939         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27940         Likewise.
27941         * modules/unictype/property-paired-punctuation (Depends-on,
27942         configure.ac): Likewise.
27943         * modules/unictype/property-paragraph-separator (Depends-on,
27944         configure.ac): Likewise.
27945         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27946         Likewise.
27947         * modules/unictype/property-pattern-white-space (Depends-on,
27948         configure.ac): Likewise.
27949         * modules/unictype/property-private-use (Depends-on, configure.ac):
27950         Likewise.
27951         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27952         Likewise.
27953         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27954         Likewise.
27955         * modules/unictype/property-radical (Depends-on, configure.ac):
27956         Likewise.
27957         * modules/unictype/property-sentence-terminal (Depends-on,
27958         configure.ac): Likewise.
27959         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27960         Likewise.
27961         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27962         * modules/unictype/property-terminal-punctuation (Depends-on,
27963         configure.ac): Likewise.
27964         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27965         Likewise.
27966         * modules/unictype/property-unassigned-code-value (Depends-on,
27967         configure.ac): Likewise.
27968         * modules/unictype/property-unified-ideograph (Depends-on,
27969         configure.ac): Likewise.
27970         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27971         Likewise.
27972         * modules/unictype/property-variation-selector (Depends-on,
27973         configure.ac): Likewise.
27974         * modules/unictype/property-white-space (Depends-on, configure.ac):
27975         Likewise.
27976         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27977         Likewise.
27978         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27979         Likewise.
27980         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27981         Likewise.
27982         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27983         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27984         Likewise.
27985
27986 2009-12-31  Bruno Haible  <bruno@clisp.org>
27987
27988         Remove unnecessary AC_C_INLINE invocation.
27989         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27990         since 2009-08-21.
27991
27992 2009-12-31  Jim Meyering  <meyering@redhat.com>
27993
27994         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27995         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27996         With this change, we can all remove the gpg_key_ID = ... definition
27997         from our respective cfg.mk files.
27998
27999         maint.mk: create announcement template in ~/, not in /tmp
28000         * top/maint.mk (emit_upload_commands): Adjust.
28001         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28002         Remove temporary file, .ci-msg.
28003
28004 2009-12-31  Eric Blake  <ebb9@byu.net>
28005
28006         link-warning: always build headers with link warnings
28007         * modules/arpa_inet (Makefile.am): Always build replacement
28008         header.
28009         * modules/ctype (Makefile.am): Likewise.
28010         * modules/dirent (Makefile.am): Likewise.
28011         * modules/inttypes (Makefile.am): Likewise.
28012         * modules/langinfo (Makefile.am): Likewise.
28013         * modules/locale (Makefile.am): Likewise.
28014         * modules/spawn (Makefile.am): Likewise.
28015         * modules/sys_file (Makefile.am): Likewise.
28016         * modules/sys_ioctl (Makefile.am): Likewise.
28017         * modules/sys_select (Makefile.am): Likewise.
28018         * modules/sys_socket (Makefile.am): Likewise.
28019         * modules/sys_times (Makefile.am): Likewise.
28020         * modules/sys_utsname (Makefile.am): Likewise.
28021         * modules/sys_wait (Makefile.am): Likewise.
28022         * modules/wchar (Makefile.am): Likewise.
28023         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28024         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28025         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28026         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28027         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28028         Likewise.
28029         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28030         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28031         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28032         Likewise.
28033         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28034         Likewise.
28035         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28036         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28037         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28039         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28040         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28041         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28042         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28043         (gl_WCHAR_H_DEFAULTS): Likewise.
28044
28045 2009-12-31  Eric Blake  <ebb9@byu.net>
28046
28047         signal, spawn: use link warnings
28048         * lib/signal.in.h (sigset_t): Make unconditional.
28049         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28050         (sigpending, sigprocmask, sigaction): Add link warnings.
28051         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28052         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28053         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28054         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28055         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28056         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28057         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28058         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28059         (posix_spawn_file_actions_destroy)
28060         (posix_spawn_file_actions_addopen)
28061         (posix_spawn_file_actions_addclose)
28062         (posix_spawn_file_actions_adddup2): Likewise.
28063         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28064         * tests/test-signal.c (main): Enhance test.
28065
28066         spawn: improve wrapper support
28067         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28068         (gl_SPAWN_H_DEFAULTS): New defaults.
28069         * modules/spawn (Makefile.am): Substitute them.
28070         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28071         Only declare if missing or broken.
28072
28073         sys_times, sys_utsname: use include_next
28074         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28075         header.
28076         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28077         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28078         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28079         * modules/sys_times (Depends-on): Add include_next.
28080         (Makefile.am): Substitute additional values.
28081         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28082         * lib/sys_times.in.h (includes): Include native header, if
28083         available.
28084         * lib/sys_utsname.in.h (includes): Likewise.
28085         * tests/test-sys_times.c (main): Enhance test.
28086
28087         fdutimensat: revert prior patch
28088         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28089         utimens.h.
28090         Reported by Bruno Haible.
28091
28092 2009-12-30  Eric Blake  <ebb9@byu.net>
28093
28094         sys_wait: drop link-warning dependency
28095         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28096         link-warning efforts.
28097         * lib/sys_wait.in.h: Likewise.
28098
28099         fdutimensat: remove bogus dependency
28100         * modules/fdutimensat (Depends-on): Drop inline.
28101
28102         unistd: fix typo
28103         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28104
28105 2009-12-30  Bruno Haible  <bruno@clisp.org>
28106
28107         Fix compilation error with Solaris cc.
28108         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28109         * lib/unicase/u16-is-invariant.c: Likewise.
28110         * lib/unicase/u32-is-invariant.c: Likewise.
28111         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28112
28113 2009-12-30  Bruno Haible  <bruno@clisp.org>
28114
28115         Fix test crash.
28116         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28117         locales.
28118         Reported by Simon Josefsson <simon@josefsson.org>.
28119
28120 2009-12-30  Bruno Haible  <bruno@clisp.org>
28121
28122         Fix compilation error on most platforms.
28123         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28124         Reported by Simon Josefsson <simon@josefsson.org>
28125         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28126
28127 2009-12-30  Eric Blake  <ebb9@byu.net>
28128
28129         futimens, utimensat: work around ntfs-3g bug
28130         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28131         a ctime bug is present, and expand workaround to cover ntfs-3g.
28132         * lib/utimens.c (fdutimens, lutimens): Likewise.
28133         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28134         (validate_timespec): Adjust return value.
28135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28136         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28137         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28138
28139 2009-12-29  Eric Blake  <ebb9@byu.net>
28140
28141         link-warning: make usage consistent
28142         * modules/ctype (Depends-on): Add link-warning.
28143         (Makefile.am): Update rules accordingly.
28144         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28145         * modules/locale (Depends-on, Makefile.am): Likewise.
28146         * modules/sys_file (Makefile.am): Likewise.
28147         * modules/getopt-posix (Makefile.am): Delete unused link warning
28148         efforts.
28149         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28150         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28151         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28152         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28153
28154         stdio: remove unused variables
28155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28156         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28157         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28158
28159         tests: test more substitute headers
28160         * modules/ctype-tests: New file.
28161         * modules/dirent-tests: Likewise.
28162         * modules/spawn-tests: Likewise.
28163         * modules/sys_file-tests: Likewise.
28164         * modules/sys_ioctl-tests: Likewise.
28165         * modules/sys_wait-tests: Likewise.
28166         * tests/test-ctype.c: Likewise.
28167         * tests/test-dirent.c: Likewise.
28168         * tests/test-spawn.c: Likewise.
28169         * tests/test-sys_file.c: Likewise.
28170         * tests/test-sys_ioctl.c: Likewise.
28171         * tests/test-sys_wait.c: Likewise.
28172         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28173         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28174         whether or not flock is in use.
28175
28176         tests: remove License section from module
28177         * modules/arpa_inet-tests: Remove unneeded section.
28178         * modules/byteswap-tests: Likewise.
28179         * modules/ceilf-tests: Likewise.
28180         * modules/ceill-tests: Likewise.
28181         * modules/crypto/des-tests: Likewise.
28182         * modules/crypto/gc-arcfour-tests: Likewise.
28183         * modules/crypto/gc-arctwo-tests: Likewise.
28184         * modules/crypto/gc-des-tests: Likewise.
28185         * modules/crypto/gc-hmac-md5-tests: Likewise.
28186         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28187         * modules/crypto/gc-md2-tests: Likewise.
28188         * modules/crypto/gc-md4-tests: Likewise.
28189         * modules/crypto/gc-md5-tests: Likewise.
28190         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28191         * modules/crypto/gc-rijndael-tests: Likewise.
28192         * modules/crypto/gc-sha1-tests: Likewise.
28193         * modules/crypto/gc-tests: Likewise.
28194         * modules/crypto/md2-tests: Likewise.
28195         * modules/crypto/md4-tests: Likewise.
28196         * modules/fcntl-h-tests: Likewise.
28197         * modules/floorf-tests: Likewise.
28198         * modules/floorl-tests: Likewise.
28199         * modules/frexp-nolibm-tests: Likewise.
28200         * modules/frexp-tests: Likewise.
28201         * modules/frexpl-nolibm-tests: Likewise.
28202         * modules/frexpl-tests: Likewise.
28203         * modules/getaddrinfo-tests: Likewise.
28204         * modules/inttypes-tests: Likewise.
28205         * modules/isfinite-tests: Likewise.
28206         * modules/isinf-tests: Likewise.
28207         * modules/ldexpl-tests: Likewise.
28208         * modules/locale-tests: Likewise.
28209         * modules/math-tests: Likewise.
28210         * modules/netdb-tests: Likewise.
28211         * modules/netinet_in-tests: Likewise.
28212         * modules/printf-frexp-tests: Likewise.
28213         * modules/printf-frexpl-tests: Likewise.
28214         * modules/priv-set-tests: Likewise.
28215         * modules/random_r-tests: Likewise.
28216         * modules/round-tests: Likewise.
28217         * modules/roundf-tests: Likewise.
28218         * modules/roundl-tests: Likewise.
28219         * modules/search-tests: Likewise.
28220         * modules/select-tests: Likewise.
28221         * modules/signal-tests: Likewise.
28222         * modules/stdbool-tests: Likewise.
28223         * modules/stddef-tests: Likewise.
28224         * modules/stdint-tests: Likewise.
28225         * modules/stdio-tests: Likewise.
28226         * modules/stdlib-tests: Likewise.
28227         * modules/string-tests: Likewise.
28228         * modules/strings-tests: Likewise.
28229         * modules/sys_select-tests: Likewise.
28230         * modules/sys_socket-tests: Likewise.
28231         * modules/sys_stat-tests: Likewise.
28232         * modules/sys_time-tests: Likewise.
28233         * modules/sys_utsname-tests: Likewise.
28234         * modules/sysexits-tests: Likewise.
28235         * modules/time-tests: Likewise.
28236         * modules/trunc-tests: Likewise.
28237         * modules/truncf-tests: Likewise.
28238         * modules/truncl-tests: Likewise.
28239         * modules/tsearch-tests: Likewise.
28240         * modules/unistd-tests: Likewise.
28241         * modules/wchar-tests: Likewise.
28242         * modules/wctype-tests: Likewise.
28243
28244         tests: fix license on several tests
28245         * tests/test-des.c: Update to GPLv3+.
28246         * tests/test-flock.c: Likewise.
28247         * tests/test-fsync.c: Likewise.
28248         * tests/test-futimens.h: Likewise.
28249         * tests/test-gc-arcfour.c: Likewise.
28250         * tests/test-gc-arctwo.c: Likewise.
28251         * tests/test-gc-des.c: Likewise.
28252         * tests/test-gc-hmac-md5.c: Likewise.
28253         * tests/test-gc-hmac-sha1.c: Likewise.
28254         * tests/test-gc-md2.c: Likewise.
28255         * tests/test-gc-md4.c: Likewise.
28256         * tests/test-gc-md5.c: Likewise.
28257         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28258         * tests/test-gc-rijndael.c: Likewise.
28259         * tests/test-gc-sha1.c: Likewise.
28260         * tests/test-gc.c: Likewise.
28261         * tests/test-getcwd.c: Likewise.
28262         * tests/test-link.c: Likewise.
28263         * tests/test-link.h: Likewise.
28264         * tests/test-lutimens.h: Likewise.
28265         * tests/test-md2.c: Likewise.
28266         * tests/test-md4.c: Likewise.
28267         * tests/test-mkdir.h: Likewise.
28268         * tests/test-rename.c: Likewise.
28269         * tests/test-rename.h: Likewise.
28270         * tests/test-safe-alloc.c: Likewise.
28271         * tests/test-utimens-common.h: Likewise.
28272         * tests/test-utimens.h: Likewise.
28273
28274         maint: sync license texts
28275         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28276         * doc/gpl-3.0.texi: Revert copyright year update.
28277         * doc/lgpl-3.0.texi: Likewise.
28278
28279 2009-12-29  Jim Meyering  <meyering@redhat.com>
28280
28281         update nearly all FSF copyright year lists to include 2009
28282         The files named by the following are exempted:
28283             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28284               test -f "$dst" && { echo "$dst"; continue; }
28285               test -d "$dst" || continue
28286               echo "$dst"/$(basename "$src")
28287             done > exempt
28288             git ls-files tests/unictype >> exempt
28289         In the remaining files, convert to all-interval notation if
28290         - there is already at least one year interval like 2000-2003
28291         - the file is maintained by me
28292         - the file is in lib/uni*/, where that style already prevails
28293         Otherwise, use update-copyright's default.
28294
28295 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28296         and Eric Blake  <ebb9@byu.net>
28297
28298         tests: don't require debug system() to pass
28299         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28300         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28301         * tests/test-unlink.h (test_unlink_func): Likewise.
28302         * tests/test-fstatat.c (main): ...into callers.
28303         * tests/test-lstat.c (main): Likewise.
28304         * tests/test-rmdir.c (main): Likewise.
28305         * tests/test-unlink.c (main): Likewise.
28306         * tests/test-unlinkat.c (main): Likewise.
28307         * tests/test-areadlink-with-size.c (main): Don't require a
28308         debug-only system call to pass, aiding cross-testing to mingw.
28309         * tests/test-areadlink.c (main): Likewise.
28310         * tests/test-areadlinkat-with-size.c (main): Likewise.
28311         * tests/test-areadlinkat.c (main): Likewise.
28312         * tests/test-canonicalize-lgpl.c (main): Likewise.
28313         * tests/test-canonicalize.c (main): Likewise.
28314         * tests/test-chown.c (main): Likewise.
28315         * tests/test-fchownat.c (main): Likewise.
28316         * tests/test-lchown.c (main): Likewise.
28317         * tests/test-fdutimensat.c (main): Likewise.
28318         * tests/test-futimens.c (main): Likewise.
28319         * tests/test-link.c (main): Likewise.
28320         * tests/test-linkat.c (main): Likewise.
28321         * tests/test-mkdir.c (main): Likewise.
28322         * tests/test-mkdirat.c (main): Likewise.
28323         * tests/test-mkfifo.c (main): Likewise.
28324         * tests/test-mkfifoat.c (main): Likewise.
28325         * tests/test-mknod.c (main): Likewise.
28326         * tests/test-readlink.c (main): Likewise.
28327         * tests/test-remove.c (main): Likewise.
28328         * tests/test-rename.c (main): Likewise.
28329         * tests/test-renameat.c (main): Likewise.
28330         * tests/test-symlink.c (main): Likewise.
28331         * tests/test-symlinkat.c (main): Likewise.
28332         * tests/test-utimens.c (main): Likewise.
28333         * tests/test-utimensat.c (main): Likewise.
28334
28335 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28336
28337         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28338         on $(UNUSED_PARAMETER_H) to avoid build failure.
28339
28340 2009-12-28  Jim Meyering  <meyering@redhat.com>
28341
28342         update-copyright: you may specify a max. line length other than 72
28343         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28344
28345         maint: use consistent FSF copyright line syntax
28346         * lib/posixtm.c: Add missing comma in FSF copyright line.
28347         * lib/posixtm.h: Likewise.
28348         * lib/getugroups.c: Add missing ", Inc.".
28349
28350         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28351         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28352         FSF copyright line.  Remove trailing blanks.
28353
28354 2009-12-28  Eric Blake  <ebb9@byu.net>
28355
28356         test-dup2: reduce dependencies
28357         * modules/cloexec (Configure.ac): Set witness.
28358         * modules/dup2-tests (Depends-on): Drop cloexec.
28359         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28360         not present.
28361         Suggested by Bruno Haible.
28362
28363 2009-12-26  Bruno Haible  <bruno@clisp.org>
28364
28365         Remove an unneeded dependency.
28366         * modules/fseterr (Depends-on): Remove dup2.
28367
28368 2009-12-26  Eric Blake  <ebb9@byu.net>
28369
28370         tests: use macros.h in more places
28371         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28372         (ASSERT_STREAM): Provide default of stderr.
28373         * tests/test-dirent-safer.c: Include macros.h, using alternate
28374         stream for assertions.
28375         * tests/test-dup-safer.c: Likewise.
28376         * tests/test-freopen-safer.c: Likewise.
28377         * tests/test-getopt.c: Likewise.
28378         * tests/test-openat-safer.c: Likewise.
28379         * tests/test-pipe.c: Likewise.
28380         * tests/test-popen-safer.c: Likewise.
28381         * modules/dirent-safer-tests (Files): Include macros.h.
28382         * modules/unistd-safer-tests (Files): Likewise.
28383         * modules/freopen-safer-tests (Files): Likewise.
28384         * modules/getopt-posix-tests (Files): Likewise.
28385         * modules/openat-safer-tests (Files): Likewise.
28386         * modules/pipe-tests (Files): Likewise.
28387
28388 2009-12-26  Bruno Haible  <bruno@clisp.org>
28389
28390         javacomp: Portability fix.
28391         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28392         that it also works on Solaris.
28393
28394 2009-12-26  Bruno Haible  <bruno@clisp.org>
28395
28396         localename: Fix storage allocation of gl_locale_name_thread's result.
28397         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28398         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28399         all platforms that have 'uselocale'.
28400         (gl_locale_name_thread_unsafe): New function, extracted from
28401         gl_locale_name_thread.
28402         (gl_locale_name_thread): Call struniq on all platforms that have
28403         'uselocale'.
28404         * tests/test-localename.c (test_locale_name_thread): Check that the
28405         resulting strings are permanently allocated.
28406         * modules/localename-tests (Depends-on): Add strdup.
28407
28408 2009-12-26  Bruno Haible  <bruno@clisp.org>
28409
28410         * tests/test-localename.c (categories): Fill in the strings.
28411
28412 2009-12-26  Jim Meyering  <meyering@redhat.com>
28413
28414         isdir: complete the removal of m4/isdir.m4
28415         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28416
28417         isdir: clean up, since at least grep still uses it
28418         * lib/isdir.c: Include "isdir.h".
28419         (S_ISDIR): Remove now-unneeded definition.
28420         * modules/isdir (Files): Add lib/isdir.h.
28421         * lib/isdir.h: New file, with declaration.
28422         * m4/isdir.m4: Remove file -- unneeded.
28423
28424 2009-12-25  Bruno Haible  <bruno@clisp.org>
28425
28426         selinux-h: Make generated .h files standalone.
28427         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28428         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28429         * lib/se-selinux.in.h: Likewise.
28430         * modules/selinux-h (Depends-on): Add unused-parameter.
28431         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28432         selinux/selinux.h and selinux/context.h.
28433         Suggested by Eric Blake.
28434
28435 2009-12-25  Bruno Haible  <bruno@clisp.org>
28436
28437         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28438         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28439         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28440         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28441         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28442
28443 2009-12-24  Bruno Haible  <bruno@clisp.org>
28444
28445         openat: Fix warning.
28446         * lib/openat-proc.c: Include <unistd.h>.
28447
28448 2009-12-24  Bruno Haible  <bruno@clisp.org>
28449
28450         New module 'unused-parameter'.
28451         * build-aux/unused-parameter.h: New file, extracted from earlier
28452         gnulib-common.m4.
28453         * modules/unused-parameter: New file.
28454         * lib/unistr.h: Include unused-parameter.h.
28455         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28456         _GL_UNUSED.
28457         * modules/unistr/base (Depends-on): Add unused-parameter.
28458
28459 2009-12-24  Bruno Haible  <bruno@clisp.org>
28460
28461         Add missing dependencies to 'extensions' module.
28462         * m4/extensions.m4: Add comment.
28463         * modules/accept4 (Depends-on): Add extensions.
28464         * modules/dup3 (Depends-on): Likewise.
28465         * modules/fcntl (Depends-on): Likewise.
28466         * modules/futimens (Depends-on): Likewise.
28467         * modules/mknod (Depends-on): Likewise.
28468         * modules/pipe2 (Depends-on): Likewise.
28469         * modules/stat-time (Depends-on): Likewise.
28470         * modules/strcasestr-simple (Depends-on): Likewise.
28471         * modules/strsignal (Depends-on): Likewise.
28472         * modules/utimensat (Depends-on): Likewise.
28473         * modules/localcharset (Depends-on): Likewise. Needed because of
28474         gl_FCNTL_O_FLAGS.
28475         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28476         AC_TYPE_MBSTATE_T.
28477         * modules/wcsnrtombs (Depends-on): Likewise.
28478         * modules/wcsrtombs (Depends-on): Likewise.
28479
28480 2009-12-24  Bruno Haible  <bruno@clisp.org>
28481
28482         binary-io: Avoid gcc warning due to SET_BINARY.
28483         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28484         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28485
28486 2009-12-24  Bruno Haible  <bruno@clisp.org>
28487
28488         Avoid future namespace pollution on glibc systems.
28489         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28490         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28491         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28492         glibc systems.
28493
28494 2009-12-24  Bruno Haible  <bruno@clisp.org>
28495
28496         Refactor common macros used in tests.
28497         * tests/macros.h: New file.
28498         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28499         and/or <stdlib.h>, if appropriate.
28500         (ASSERT, SIZEOF): Remove macros.
28501         * tests/test-areadlink-with-size.c: Likewise.
28502         * tests/test-areadlinkat.c: Likewise.
28503         * tests/test-areadlinkat-with-size.c: Likewise.
28504         * tests/test-argmatch.c: Likewise.
28505         * tests/test-argv-iter.c: Likewise.
28506         * tests/test-array-mergesort.c: Likewise.
28507         * tests/test-array_list.c: Likewise.
28508         * tests/test-array_oset.c: Likewise.
28509         * tests/test-avltree_list.c: Likewise.
28510         * tests/test-avltree_oset.c: Likewise.
28511         * tests/test-avltreehash_list.c: Likewise.
28512         * tests/test-base64.c: Likewise.
28513         * tests/test-binary-io.c: Likewise.
28514         * tests/test-bitrotate.c: Likewise.
28515         * tests/test-btowc.c: Likewise.
28516         * tests/test-byteswap.c: Likewise.
28517         * tests/test-c-ctype.c: Likewise.
28518         * tests/test-c-stack.c: Likewise.
28519         * tests/test-c-strcasecmp.c: Likewise.
28520         * tests/test-c-strcasestr.c: Likewise.
28521         * tests/test-c-strncasecmp.c: Likewise.
28522         * tests/test-c-strstr.c: Likewise.
28523         * tests/test-canonicalize-lgpl.c: Likewise.
28524         * tests/test-canonicalize.c: Likewise.
28525         * tests/test-carray_list.c: Likewise.
28526         * tests/test-ceilf1.c: Likewise.
28527         * tests/test-ceilf2.c: Likewise.
28528         * tests/test-ceill.c: Likewise.
28529         * tests/test-chown.c: Likewise.
28530         * tests/test-cloexec.c: Likewise.
28531         * tests/test-copy-acl.c: Likewise.
28532         * tests/test-copy-file.c: Likewise.
28533         * tests/test-count-one-bits.c: Likewise.
28534         * tests/test-dprintf-posix.c: Likewise.
28535         * tests/test-dup2.c: Likewise.
28536         * tests/test-dup3.c: Likewise.
28537         * tests/test-duplocale.c: Likewise.
28538         * tests/test-fbufmode.c: Likewise.
28539         * tests/test-fchdir.c: Likewise.
28540         * tests/test-fchownat.c: Likewise.
28541         * tests/test-fcntl-safer.c: Likewise.
28542         * tests/test-fcntl.c: Likewise.
28543         * tests/test-fdopendir.c: Likewise.
28544         * tests/test-fdutimensat.c: Likewise.
28545         * tests/test-fflush2.c: Likewise.
28546         * tests/test-file-has-acl.c: Likewise.
28547         * tests/test-filevercmp.c: Likewise.
28548         * tests/test-flock.c: Likewise.
28549         * tests/test-floorf1.c: Likewise.
28550         * tests/test-floorf2.c: Likewise.
28551         * tests/test-floorl.c: Likewise.
28552         * tests/test-fnmatch.c: Likewise.
28553         * tests/test-fopen.h: Likewise.
28554         * tests/test-fpending.c: Likewise.
28555         * tests/test-fprintf-posix.c: Likewise.
28556         * tests/test-fpurge.c: Likewise.
28557         * tests/test-freadable.c: Likewise.
28558         * tests/test-freadahead.c: Likewise.
28559         * tests/test-freading.c: Likewise.
28560         * tests/test-freadptr.c: Likewise.
28561         * tests/test-freadptr2.c: Likewise.
28562         * tests/test-freadseek.c: Likewise.
28563         * tests/test-freopen.c: Likewise.
28564         * tests/test-frexp.c: Likewise.
28565         * tests/test-frexpl.c: Likewise.
28566         * tests/test-fseek.c: Likewise.
28567         * tests/test-fseeko.c: Likewise.
28568         * tests/test-fstatat.c: Likewise.
28569         * tests/test-fstrcmp.c: Likewise.
28570         * tests/test-fsync.c: Likewise.
28571         * tests/test-ftell.c: Likewise.
28572         * tests/test-ftello.c: Likewise.
28573         * tests/test-func.c: Likewise.
28574         * tests/test-futimens.c: Likewise.
28575         * tests/test-fwritable.c: Likewise.
28576         * tests/test-fwriting.c: Likewise.
28577         * tests/test-getcwd.c: Likewise.
28578         * tests/test-getdate.c: Likewise.
28579         * tests/test-getdelim.c: Likewise.
28580         * tests/test-getdtablesize.c: Likewise.
28581         * tests/test-getgroups.c: Likewise.
28582         * tests/test-getline.c: Likewise.
28583         * tests/test-getndelim2.c: Likewise.
28584         * tests/test-glob.c: Likewise.
28585         * tests/test-hash.c: Likewise.
28586         * tests/test-i-ring.c: Likewise.
28587         * tests/test-iconv-utf.c: Likewise.
28588         * tests/test-iconv.c: Likewise.
28589         * tests/test-idpriv-drop.c: Likewise.
28590         * tests/test-idpriv-droptemp.c: Likewise.
28591         * tests/test-inet_ntop.c: Likewise.
28592         * tests/test-inet_pton.c: Likewise.
28593         * tests/test-isblank.c: Likewise.
28594         * tests/test-isfinite.c: Likewise.
28595         * tests/test-isinf.c: Likewise.
28596         * tests/test-isnan.c: Likewise.
28597         * tests/test-isnand.h: Likewise.
28598         * tests/test-isnanf.h: Likewise.
28599         * tests/test-isnanl.h: Likewise.
28600         * tests/test-lchown.c: Likewise.
28601         * tests/test-ldexpl.c: Likewise.
28602         * tests/test-link.c: Likewise.
28603         * tests/test-linkat.c: Likewise.
28604         * tests/test-linked_list.c: Likewise.
28605         * tests/test-linkedhash_list.c: Likewise.
28606         * tests/test-localename.c: Likewise.
28607         * tests/test-lseek.c: Likewise.
28608         * tests/test-lstat.c: Likewise.
28609         * tests/test-mbmemcasecmp.c: Likewise.
28610         * tests/test-mbmemcasecoll.c: Likewise.
28611         * tests/test-mbrtowc.c: Likewise.
28612         * tests/test-mbscasecmp.c: Likewise.
28613         * tests/test-mbscasestr1.c: Likewise.
28614         * tests/test-mbscasestr2.c: Likewise.
28615         * tests/test-mbscasestr3.c: Likewise.
28616         * tests/test-mbscasestr4.c: Likewise.
28617         * tests/test-mbschr.c: Likewise.
28618         * tests/test-mbscspn.c: Likewise.
28619         * tests/test-mbsinit.c: Likewise.
28620         * tests/test-mbsncasecmp.c: Likewise.
28621         * tests/test-mbsnrtowcs.c: Likewise.
28622         * tests/test-mbspbrk.c: Likewise.
28623         * tests/test-mbspcasecmp.c: Likewise.
28624         * tests/test-mbsrchr.c: Likewise.
28625         * tests/test-mbsrtowcs.c: Likewise.
28626         * tests/test-mbsspn.c: Likewise.
28627         * tests/test-mbsstr1.c: Likewise.
28628         * tests/test-mbsstr2.c: Likewise.
28629         * tests/test-mbsstr3.c: Likewise.
28630         * tests/test-memchr.c: Likewise.
28631         * tests/test-memchr2.c: Likewise.
28632         * tests/test-memcmp.c: Likewise.
28633         * tests/test-memmem.c: Likewise.
28634         * tests/test-memrchr.c: Likewise.
28635         * tests/test-mkdir.c: Likewise.
28636         * tests/test-mkdirat.c: Likewise.
28637         * tests/test-mkfifo.c: Likewise.
28638         * tests/test-mkfifoat.c: Likewise.
28639         * tests/test-mknod.c: Likewise.
28640         * tests/test-nanosleep.c: Likewise.
28641         * tests/test-nl_langinfo.c: Likewise.
28642         * tests/test-obstack-printf.c: Likewise.
28643         * tests/test-open.c: Likewise.
28644         * tests/test-openat.c: Likewise.
28645         * tests/test-pipe-filter-gi1.c: Likewise.
28646         * tests/test-pipe-filter-gi2-main.c: Likewise.
28647         * tests/test-pipe-filter-ii1.c: Likewise.
28648         * tests/test-pipe-filter-ii2-main.c: Likewise.
28649         * tests/test-pipe2.c: Likewise.
28650         * tests/test-popen.h: Likewise.
28651         * tests/test-posixtm.c: Likewise.
28652         * tests/test-pread.c: Likewise.
28653         * tests/test-printf-frexp.c: Likewise.
28654         * tests/test-printf-frexpl.c: Likewise.
28655         * tests/test-printf-posix.c: Likewise.
28656         * tests/test-priv-set.c: Likewise.
28657         * tests/test-quotearg.c: Likewise.
28658         * tests/test-random_r.c: Likewise.
28659         * tests/test-rawmemchr.c: Likewise.
28660         * tests/test-rbtree_list.c: Likewise.
28661         * tests/test-rbtree_oset.c: Likewise.
28662         * tests/test-rbtreehash_list.c: Likewise.
28663         * tests/test-readlink.c: Likewise.
28664         * tests/test-remove.c: Likewise.
28665         * tests/test-rename.c: Likewise.
28666         * tests/test-renameat.c: Likewise.
28667         * tests/test-rmdir.c: Likewise.
28668         * tests/test-round1.c: Likewise.
28669         * tests/test-roundf1.c: Likewise.
28670         * tests/test-roundl.c: Likewise.
28671         * tests/test-safe-alloc.c: Likewise.
28672         * tests/test-sameacls.c: Likewise.
28673         * tests/test-set-mode-acl.c: Likewise.
28674         * tests/test-setenv.c: Likewise.
28675         * tests/test-sigaction.c: Likewise.
28676         * tests/test-signbit.c: Likewise.
28677         * tests/test-sleep.c: Likewise.
28678         * tests/test-snprintf-posix.c: Likewise.
28679         * tests/test-snprintf.c: Likewise.
28680         * tests/test-sprintf-posix.c: Likewise.
28681         * tests/test-stat-time.c: Likewise.
28682         * tests/test-stat.c: Likewise.
28683         * tests/test-strcasestr.c: Likewise.
28684         * tests/test-strchrnul.c: Likewise.
28685         * tests/test-strerror.c: Likewise.
28686         * tests/test-striconv.c: Likewise.
28687         * tests/test-striconveh.c: Likewise.
28688         * tests/test-striconveha.c: Likewise.
28689         * tests/test-strsignal.c: Likewise.
28690         * tests/test-strstr.c: Likewise.
28691         * tests/test-strtod.c: Likewise.
28692         * tests/test-strverscmp.c: Likewise.
28693         * tests/test-symlink.c: Likewise.
28694         * tests/test-symlinkat.c: Likewise.
28695         * tests/test-trunc1.c: Likewise.
28696         * tests/test-trunc2.c: Likewise.
28697         * tests/test-truncf1.c: Likewise.
28698         * tests/test-truncf2.c: Likewise.
28699         * tests/test-truncl.c: Likewise.
28700         * tests/test-uname.c: Likewise.
28701         * tests/test-unlink.c: Likewise.
28702         * tests/test-unlinkat.c: Likewise.
28703         * tests/test-unsetenv.c: Likewise.
28704         * tests/test-usleep.c: Likewise.
28705         * tests/test-utimens.c: Likewise.
28706         * tests/test-utimensat.c: Likewise.
28707         * tests/test-vasnprintf-posix.c: Likewise.
28708         * tests/test-vasnprintf-posix2.c: Likewise.
28709         * tests/test-vasnprintf.c: Likewise.
28710         * tests/test-vasprintf-posix.c: Likewise.
28711         * tests/test-vasprintf.c: Likewise.
28712         * tests/test-vdprintf-posix.c: Likewise.
28713         * tests/test-vfprintf-posix.c: Likewise.
28714         * tests/test-vprintf-posix.c: Likewise.
28715         * tests/test-vsnprintf-posix.c: Likewise.
28716         * tests/test-vsnprintf.c: Likewise.
28717         * tests/test-vsprintf-posix.c: Likewise.
28718         * tests/test-wcrtomb.c: Likewise.
28719         * tests/test-wcsnrtombs.c: Likewise.
28720         * tests/test-wcsrtombs.c: Likewise.
28721         * tests/test-wctype.c: Likewise.
28722         * tests/test-wcwidth.c: Likewise.
28723         * tests/test-xfprintf-posix.c: Likewise.
28724         * tests/test-xmemdup0.c: Likewise.
28725         * tests/test-xprintf-posix.c: Likewise.
28726         * tests/test-xvasprintf.c: Likewise.
28727         * tests/unicase/test-locale-language.c: Likewise.
28728         * tests/unicase/test-mapping-part1.h: Likewise.
28729         * tests/unicase/test-predicate-part1.h: Likewise.
28730         * tests/unicase/test-u8-casecmp.c: Likewise.
28731         * tests/unicase/test-u8-casecoll.c: Likewise.
28732         * tests/unicase/test-u8-casefold.c: Likewise.
28733         * tests/unicase/test-u8-is-cased.c: Likewise.
28734         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28735         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28736         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28737         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28738         * tests/unicase/test-u8-tolower.c: Likewise.
28739         * tests/unicase/test-u8-totitle.c: Likewise.
28740         * tests/unicase/test-u8-toupper.c: Likewise.
28741         * tests/unicase/test-u16-casecmp.c: Likewise.
28742         * tests/unicase/test-u16-casecoll.c: Likewise.
28743         * tests/unicase/test-u16-casefold.c: Likewise.
28744         * tests/unicase/test-u16-is-cased.c: Likewise.
28745         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28746         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28747         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28748         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28749         * tests/unicase/test-u16-tolower.c: Likewise.
28750         * tests/unicase/test-u16-totitle.c: Likewise.
28751         * tests/unicase/test-u16-toupper.c: Likewise.
28752         * tests/unicase/test-u32-casecmp.c: Likewise.
28753         * tests/unicase/test-u32-casecoll.c: Likewise.
28754         * tests/unicase/test-u32-casefold.c: Likewise.
28755         * tests/unicase/test-u32-is-cased.c: Likewise.
28756         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28757         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28758         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28759         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28760         * tests/unicase/test-u32-tolower.c: Likewise.
28761         * tests/unicase/test-u32-totitle.c: Likewise.
28762         * tests/unicase/test-u32-toupper.c: Likewise.
28763         * tests/unicase/test-ulc-casecmp.c: Likewise.
28764         * tests/unicase/test-ulc-casecoll.c: Likewise.
28765         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28766         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28767         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28768         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28769         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28770         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28771         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28772         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28773         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28774         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28775         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28776         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28777         * tests/unictype/test-bidi_byname.c: Likewise.
28778         * tests/unictype/test-bidi_name.c: Likewise.
28779         * tests/unictype/test-bidi_of.c: Likewise.
28780         * tests/unictype/test-bidi_test.c: Likewise.
28781         * tests/unictype/test-block_list.c: Likewise.
28782         * tests/unictype/test-block_of.c: Likewise.
28783         * tests/unictype/test-block_test.c: Likewise.
28784         * tests/unictype/test-categ_and.c: Likewise.
28785         * tests/unictype/test-categ_and_not.c: Likewise.
28786         * tests/unictype/test-categ_byname.c: Likewise.
28787         * tests/unictype/test-categ_name.c: Likewise.
28788         * tests/unictype/test-categ_none.c: Likewise.
28789         * tests/unictype/test-categ_of.c: Likewise.
28790         * tests/unictype/test-categ_or.c: Likewise.
28791         * tests/unictype/test-categ_test_withtable.c: Likewise.
28792         * tests/unictype/test-combining.c: Likewise.
28793         * tests/unictype/test-decdigit.c: Likewise.
28794         * tests/unictype/test-digit.c: Likewise.
28795         * tests/unictype/test-mirror.c: Likewise.
28796         * tests/unictype/test-numeric.c: Likewise.
28797         * tests/unictype/test-pr_byname.c: Likewise.
28798         * tests/unictype/test-pr_test.c: Likewise.
28799         * tests/unictype/test-predicate-part1.h: Likewise.
28800         * tests/unictype/test-scripts.c: Likewise.
28801         * tests/unictype/test-sy_c_ident.c: Likewise.
28802         * tests/unictype/test-sy_java_ident.c: Likewise.
28803         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28804         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28805         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28806         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28807         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28808         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28809         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28810         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28811         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28812         * tests/uninorm/test-compat-decomposition.c: Likewise.
28813         * tests/uninorm/test-composition.c: Likewise.
28814         * tests/uninorm/test-decomposing-form.c: Likewise.
28815         * tests/uninorm/test-decomposition.c: Likewise.
28816         * tests/uninorm/test-u8-nfc.c: Likewise.
28817         * tests/uninorm/test-u8-nfd.c: Likewise.
28818         * tests/uninorm/test-u8-nfkc.c: Likewise.
28819         * tests/uninorm/test-u8-nfkd.c: Likewise.
28820         * tests/uninorm/test-u8-normcmp.c: Likewise.
28821         * tests/uninorm/test-u8-normcoll.c: Likewise.
28822         * tests/uninorm/test-u16-nfc.c: Likewise.
28823         * tests/uninorm/test-u16-nfd.c: Likewise.
28824         * tests/uninorm/test-u16-nfkc.c: Likewise.
28825         * tests/uninorm/test-u16-nfkd.c: Likewise.
28826         * tests/uninorm/test-u16-normcmp.c: Likewise.
28827         * tests/uninorm/test-u16-normcoll.c: Likewise.
28828         * tests/uninorm/test-u32-nfc.c: Likewise.
28829         * tests/uninorm/test-u32-nfd.c: Likewise.
28830         * tests/uninorm/test-u32-nfkc.c: Likewise.
28831         * tests/uninorm/test-u32-nfkd.c: Likewise.
28832         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28833         * tests/uninorm/test-u32-normcmp.c: Likewise.
28834         * tests/uninorm/test-u32-normcoll.c: Likewise.
28835         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28836         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28837         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28838         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28839         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28840         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28841         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28842         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28843         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28844         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28845         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28846         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28847         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28848         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28849         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28850         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28851         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28852         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28853         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28854         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28855         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28856         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28857         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28858         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28859         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28860         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28861         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28862         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28863         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28864         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28865         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28866         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28867         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28868         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28869         * tests/uniwidth/test-u8-width.c: Likewise.
28870         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28871         * tests/uniwidth/test-u16-width.c: Likewise.
28872         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28873         * tests/uniwidth/test-u32-width.c: Likewise.
28874         * tests/uniwidth/test-uc_width.c: Likewise.
28875         * tests/uniwidth/test-uc_width2.c: Likewise.
28876         * modules/acl-tests (Files): Add tests/macros.h.
28877         * modules/areadlink-tests (Files): Likewise.
28878         * modules/areadlink-with-size-tests (Files): Likewise.
28879         * modules/areadlinkat-tests (Files): Likewise.
28880         * modules/areadlinkat-with-size-tests (Files): Likewise.
28881         * modules/argmatch-tests (Files): Likewise.
28882         * modules/argv-iter-tests (Files): Likewise.
28883         * modules/array-list-tests (Files): Likewise.
28884         * modules/array-mergesort-tests (Files): Likewise.
28885         * modules/array-oset-tests (Files): Likewise.
28886         * modules/avltree-list-tests (Files): Likewise.
28887         * modules/avltree-oset-tests (Files): Likewise.
28888         * modules/avltreehash-list-tests (Files): Likewise.
28889         * modules/base64-tests (Files): Likewise.
28890         * modules/binary-io-tests (Files): Likewise.
28891         * modules/bitrotate-tests (Files): Likewise.
28892         * modules/btowc-tests (Files): Likewise.
28893         * modules/byteswap-tests (Files): Likewise.
28894         * modules/c-ctype-tests (Files): Likewise.
28895         * modules/c-stack-tests (Files): Likewise.
28896         * modules/c-strcase-tests (Files): Likewise.
28897         * modules/c-strcasestr-tests (Files): Likewise.
28898         * modules/c-strstr-tests (Files): Likewise.
28899         * modules/canonicalize-lgpl-tests (Files): Likewise.
28900         * modules/canonicalize-tests (Files): Likewise.
28901         * modules/carray-list-tests (Files): Likewise.
28902         * modules/ceilf-tests (Files): Likewise.
28903         * modules/ceill-tests (Files): Likewise.
28904         * modules/chown-tests (Files): Likewise.
28905         * modules/cloexec-tests (Files): Likewise.
28906         * modules/copy-file-tests (Files): Likewise.
28907         * modules/count-one-bits-tests (Files): Likewise.
28908         * modules/dprintf-posix-tests (Files): Likewise.
28909         * modules/dup2-tests (Files): Likewise.
28910         * modules/dup3-tests (Files): Likewise.
28911         * modules/duplocale-tests (Files): Likewise.
28912         * modules/fbufmode-tests (Files): Likewise.
28913         * modules/fchdir-tests (Files): Likewise.
28914         * modules/fcntl-safer-tests (Files): Likewise.
28915         * modules/fcntl-tests (Files): Likewise.
28916         * modules/fdopendir-tests (Files): Likewise.
28917         * modules/fdutimensat-tests (Files): Likewise.
28918         * modules/fflush-tests (Files): Likewise.
28919         * modules/filevercmp-tests (Files): Likewise.
28920         * modules/flock-tests (Files): Likewise.
28921         * modules/floorf-tests (Files): Likewise.
28922         * modules/floorl-tests (Files): Likewise.
28923         * modules/fnmatch-tests (Files): Likewise.
28924         * modules/fopen-safer-tests (Files): Likewise.
28925         * modules/fopen-tests (Files): Likewise.
28926         * modules/fpending-tests (Files): Likewise.
28927         * modules/fprintf-posix-tests (Files): Likewise.
28928         * modules/fpurge-tests (Files): Likewise.
28929         * modules/freadable-tests (Files): Likewise.
28930         * modules/freadahead-tests (Files): Likewise.
28931         * modules/freading-tests (Files): Likewise.
28932         * modules/freadptr-tests (Files): Likewise.
28933         * modules/freadseek-tests (Files): Likewise.
28934         * modules/freopen-tests (Files): Likewise.
28935         * modules/frexp-nolibm-tests (Files): Likewise.
28936         * modules/frexp-tests (Files): Likewise.
28937         * modules/frexpl-nolibm-tests (Files): Likewise.
28938         * modules/frexpl-tests (Files): Likewise.
28939         * modules/fseek-tests (Files): Likewise.
28940         * modules/fseeko-tests (Files): Likewise.
28941         * modules/fstrcmp-tests (Files): Likewise.
28942         * modules/fsync-tests (Files): Likewise.
28943         * modules/ftell-tests (Files): Likewise.
28944         * modules/ftello-tests (Files): Likewise.
28945         * modules/func-tests (Files): Likewise.
28946         * modules/futimens-tests (Files): Likewise.
28947         * modules/fwritable-tests (Files): Likewise.
28948         * modules/fwriting-tests (Files): Likewise.
28949         * modules/getcwd-tests (Files): Likewise.
28950         * modules/getdate-tests (Files): Likewise.
28951         * modules/getdelim-tests (Files): Likewise.
28952         * modules/getdtablesize-tests (Files): Likewise.
28953         * modules/getgroups-tests (Files): Likewise.
28954         * modules/getline-tests (Files): Likewise.
28955         * modules/getndelim2-tests (Files): Likewise.
28956         * modules/glob-tests (Files): Likewise.
28957         * modules/hash-tests (Files): Likewise.
28958         * modules/i-ring-tests (Files): Likewise.
28959         * modules/iconv-tests (Files): Likewise.
28960         * modules/iconv_open-utf-tests (Files): Likewise.
28961         * modules/idpriv-drop-tests (Files): Likewise.
28962         * modules/idpriv-droptemp-tests (Files): Likewise.
28963         * modules/inet_ntop-tests (Files): Likewise.
28964         * modules/inet_pton-tests (Files): Likewise.
28965         * modules/isblank-tests (Files): Likewise.
28966         * modules/isfinite-tests (Files): Likewise.
28967         * modules/isinf-tests (Files): Likewise.
28968         * modules/isnan-tests (Files): Likewise.
28969         * modules/isnand-nolibm-tests (Files): Likewise.
28970         * modules/isnand-tests (Files): Likewise.
28971         * modules/isnanf-nolibm-tests (Files): Likewise.
28972         * modules/isnanf-tests (Files): Likewise.
28973         * modules/isnanl-nolibm-tests (Files): Likewise.
28974         * modules/isnanl-tests (Files): Likewise.
28975         * modules/lchown-tests (Files): Likewise.
28976         * modules/ldexpl-tests (Files): Likewise.
28977         * modules/link-tests (Files): Likewise.
28978         * modules/linkat-tests (Files): Likewise.
28979         * modules/linked-list-tests (Files): Likewise.
28980         * modules/linkedhash-list-tests (Files): Likewise.
28981         * modules/localename-tests (Files): Likewise.
28982         * modules/lseek-tests (Files): Likewise.
28983         * modules/lstat-tests (Files): Likewise.
28984         * modules/mbmemcasecmp-tests (Files): Likewise.
28985         * modules/mbmemcasecoll-tests (Files): Likewise.
28986         * modules/mbrtowc-tests (Files): Likewise.
28987         * modules/mbscasecmp-tests (Files): Likewise.
28988         * modules/mbscasestr-tests (Files): Likewise.
28989         * modules/mbschr-tests (Files): Likewise.
28990         * modules/mbscspn-tests (Files): Likewise.
28991         * modules/mbsinit-tests (Files): Likewise.
28992         * modules/mbsncasecmp-tests (Files): Likewise.
28993         * modules/mbsnrtowcs-tests (Files): Likewise.
28994         * modules/mbspbrk-tests (Files): Likewise.
28995         * modules/mbspcasecmp-tests (Files): Likewise.
28996         * modules/mbsrchr-tests (Files): Likewise.
28997         * modules/mbsrtowcs-tests (Files): Likewise.
28998         * modules/mbsspn-tests (Files): Likewise.
28999         * modules/mbsstr-tests (Files): Likewise.
29000         * modules/memchr-tests (Files): Likewise.
29001         * modules/memchr2-tests (Files): Likewise.
29002         * modules/memcmp-tests (Files): Likewise.
29003         * modules/memmem-tests (Files): Likewise.
29004         * modules/memrchr-tests (Files): Likewise.
29005         * modules/mkdir-tests (Files): Likewise.
29006         * modules/mkfifo-tests (Files): Likewise.
29007         * modules/mkfifoat-tests (Files): Likewise.
29008         * modules/mknod-tests (Files): Likewise.
29009         * modules/nanosleep-tests (Files): Likewise.
29010         * modules/nl_langinfo-tests (Files): Likewise.
29011         * modules/obstack-printf-tests (Files): Likewise.
29012         * modules/open-tests (Files): Likewise.
29013         * modules/openat-tests (Files): Likewise.
29014         * modules/pipe-filter-gi-tests (Files): Likewise.
29015         * modules/pipe-filter-ii-tests (Files): Likewise.
29016         * modules/pipe2-tests (Files): Likewise.
29017         * modules/popen-safer-tests (Files): Likewise.
29018         * modules/popen-tests (Files): Likewise.
29019         * modules/posixtm-tests (Files): Likewise.
29020         * modules/pread-tests (Files): Likewise.
29021         * modules/printf-frexp-tests (Files): Likewise.
29022         * modules/printf-frexpl-tests (Files): Likewise.
29023         * modules/printf-posix-tests (Files): Likewise.
29024         * modules/priv-set-tests (Files): Likewise.
29025         * modules/quotearg-tests (Files): Likewise.
29026         * modules/random_r-tests (Files): Likewise.
29027         * modules/rawmemchr-tests (Files): Likewise.
29028         * modules/rbtree-list-tests (Files): Likewise.
29029         * modules/rbtree-oset-tests (Files): Likewise.
29030         * modules/rbtreehash-list-tests (Files): Likewise.
29031         * modules/readlink-tests (Files): Likewise.
29032         * modules/remove-tests (Files): Likewise.
29033         * modules/rename-tests (Files): Likewise.
29034         * modules/renameat-tests (Files): Likewise.
29035         * modules/rmdir-tests (Files): Likewise.
29036         * modules/round-tests (Files): Likewise.
29037         * modules/roundf-tests (Files): Likewise.
29038         * modules/roundl-tests (Files): Likewise.
29039         * modules/safe-alloc-tests (Files): Likewise.
29040         * modules/setenv-tests (Files): Likewise.
29041         * modules/sigaction-tests (Files): Likewise.
29042         * modules/signbit-tests (Files): Likewise.
29043         * modules/sleep-tests (Files): Likewise.
29044         * modules/snprintf-posix-tests (Files): Likewise.
29045         * modules/snprintf-tests (Files): Likewise.
29046         * modules/sprintf-posix-tests (Files): Likewise.
29047         * modules/stat-tests (Files): Likewise.
29048         * modules/stat-time-tests (Files): Likewise.
29049         * modules/strcasestr-tests (Files): Likewise.
29050         * modules/strchrnul-tests (Files): Likewise.
29051         * modules/strerror-tests (Files): Likewise.
29052         * modules/striconv-tests (Files): Likewise.
29053         * modules/striconveh-tests (Files): Likewise.
29054         * modules/striconveha-tests (Files): Likewise.
29055         * modules/strsignal-tests (Files): Likewise.
29056         * modules/strstr-tests (Files): Likewise.
29057         * modules/strtod-tests (Files): Likewise.
29058         * modules/strverscmp-tests (Files): Likewise.
29059         * modules/symlink-tests (Files): Likewise.
29060         * modules/symlinkat-tests (Files): Likewise.
29061         * modules/trunc-tests (Files): Likewise.
29062         * modules/truncf-tests (Files): Likewise.
29063         * modules/truncl-tests (Files): Likewise.
29064         * modules/uname-tests (Files): Likewise.
29065         * modules/unicase/cased-tests (Files): Likewise.
29066         * modules/unicase/ignorable-tests (Files): Likewise.
29067         * modules/unicase/locale-language-tests (Files): Likewise.
29068         * modules/unicase/tolower-tests (Files): Likewise.
29069         * modules/unicase/totitle-tests (Files): Likewise.
29070         * modules/unicase/toupper-tests (Files): Likewise.
29071         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29072         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29073         * modules/unicase/u8-casefold-tests (Files): Likewise.
29074         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29075         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29076         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29077         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29078         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29079         * modules/unicase/u8-tolower-tests (Files): Likewise.
29080         * modules/unicase/u8-totitle-tests (Files): Likewise.
29081         * modules/unicase/u8-toupper-tests (Files): Likewise.
29082         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29083         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29084         * modules/unicase/u16-casefold-tests (Files): Likewise.
29085         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29086         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29087         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29088         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29089         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29090         * modules/unicase/u16-tolower-tests (Files): Likewise.
29091         * modules/unicase/u16-totitle-tests (Files): Likewise.
29092         * modules/unicase/u16-toupper-tests (Files): Likewise.
29093         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29094         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29095         * modules/unicase/u32-casefold-tests (Files): Likewise.
29096         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29097         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29098         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29099         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29100         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29101         * modules/unicase/u32-tolower-tests (Files): Likewise.
29102         * modules/unicase/u32-totitle-tests (Files): Likewise.
29103         * modules/unicase/u32-toupper-tests (Files): Likewise.
29104         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29105         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29106         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29107         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29108         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29109         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29110         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29111         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29112         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29113         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29114         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29115         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29116         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29117         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29118         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29119         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29120         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29121         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29122         * modules/unictype/block-list-tests (Files): Likewise.
29123         * modules/unictype/block-of-tests (Files): Likewise.
29124         * modules/unictype/block-test-tests (Files): Likewise.
29125         * modules/unictype/category-C-tests (Files): Likewise.
29126         * modules/unictype/category-Cc-tests (Files): Likewise.
29127         * modules/unictype/category-Cf-tests (Files): Likewise.
29128         * modules/unictype/category-Cn-tests (Files): Likewise.
29129         * modules/unictype/category-Co-tests (Files): Likewise.
29130         * modules/unictype/category-Cs-tests (Files): Likewise.
29131         * modules/unictype/category-L-tests (Files): Likewise.
29132         * modules/unictype/category-Ll-tests (Files): Likewise.
29133         * modules/unictype/category-Lm-tests (Files): Likewise.
29134         * modules/unictype/category-Lo-tests (Files): Likewise.
29135         * modules/unictype/category-Lt-tests (Files): Likewise.
29136         * modules/unictype/category-Lu-tests (Files): Likewise.
29137         * modules/unictype/category-M-tests (Files): Likewise.
29138         * modules/unictype/category-Mc-tests (Files): Likewise.
29139         * modules/unictype/category-Me-tests (Files): Likewise.
29140         * modules/unictype/category-Mn-tests (Files): Likewise.
29141         * modules/unictype/category-N-tests (Files): Likewise.
29142         * modules/unictype/category-Nd-tests (Files): Likewise.
29143         * modules/unictype/category-Nl-tests (Files): Likewise.
29144         * modules/unictype/category-No-tests (Files): Likewise.
29145         * modules/unictype/category-P-tests (Files): Likewise.
29146         * modules/unictype/category-Pc-tests (Files): Likewise.
29147         * modules/unictype/category-Pd-tests (Files): Likewise.
29148         * modules/unictype/category-Pe-tests (Files): Likewise.
29149         * modules/unictype/category-Pf-tests (Files): Likewise.
29150         * modules/unictype/category-Pi-tests (Files): Likewise.
29151         * modules/unictype/category-Po-tests (Files): Likewise.
29152         * modules/unictype/category-Ps-tests (Files): Likewise.
29153         * modules/unictype/category-S-tests (Files): Likewise.
29154         * modules/unictype/category-Sc-tests (Files): Likewise.
29155         * modules/unictype/category-Sk-tests (Files): Likewise.
29156         * modules/unictype/category-Sm-tests (Files): Likewise.
29157         * modules/unictype/category-So-tests (Files): Likewise.
29158         * modules/unictype/category-Z-tests (Files): Likewise.
29159         * modules/unictype/category-Zl-tests (Files): Likewise.
29160         * modules/unictype/category-Zp-tests (Files): Likewise.
29161         * modules/unictype/category-Zs-tests (Files): Likewise.
29162         * modules/unictype/category-and-not-tests (Files): Likewise.
29163         * modules/unictype/category-and-tests (Files): Likewise.
29164         * modules/unictype/category-byname-tests (Files): Likewise.
29165         * modules/unictype/category-name-tests (Files): Likewise.
29166         * modules/unictype/category-none-tests (Files): Likewise.
29167         * modules/unictype/category-of-tests (Files): Likewise.
29168         * modules/unictype/category-or-tests (Files): Likewise.
29169         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29170         * modules/unictype/combining-class-tests (Files): Likewise.
29171         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29172         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29173         * modules/unictype/ctype-blank-tests (Files): Likewise.
29174         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29175         * modules/unictype/ctype-digit-tests (Files): Likewise.
29176         * modules/unictype/ctype-graph-tests (Files): Likewise.
29177         * modules/unictype/ctype-lower-tests (Files): Likewise.
29178         * modules/unictype/ctype-print-tests (Files): Likewise.
29179         * modules/unictype/ctype-punct-tests (Files): Likewise.
29180         * modules/unictype/ctype-space-tests (Files): Likewise.
29181         * modules/unictype/ctype-upper-tests (Files): Likewise.
29182         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29183         * modules/unictype/decimal-digit-tests (Files): Likewise.
29184         * modules/unictype/digit-tests (Files): Likewise.
29185         * modules/unictype/mirror-tests (Files): Likewise.
29186         * modules/unictype/numeric-tests (Files): Likewise.
29187         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29188         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29189         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29190         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29191         Likewise.
29192         * modules/unictype/property-bidi-block-separator-tests (Files):
29193         Likewise.
29194         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29195         Likewise.
29196         * modules/unictype/property-bidi-common-separator-tests (Files):
29197         Likewise.
29198         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29199         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29200         Likewise.
29201         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29202         Likewise.
29203         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29204         Likewise.
29205         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29206         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29207         Likewise.
29208         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29209         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29210         Likewise.
29211         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29212         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29213         * modules/unictype/property-bidi-segment-separator-tests (Files):
29214         Likewise.
29215         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29216         * modules/unictype/property-byname-tests (Files): Likewise.
29217         * modules/unictype/property-combining-tests (Files): Likewise.
29218         * modules/unictype/property-composite-tests (Files): Likewise.
29219         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29220         * modules/unictype/property-dash-tests (Files): Likewise.
29221         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29222         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29223         Likewise.
29224         * modules/unictype/property-deprecated-tests (Files): Likewise.
29225         * modules/unictype/property-diacritic-tests (Files): Likewise.
29226         * modules/unictype/property-extender-tests (Files): Likewise.
29227         * modules/unictype/property-format-control-tests (Files): Likewise.
29228         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29229         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29230         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29231         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29232         * modules/unictype/property-hyphen-tests (Files): Likewise.
29233         * modules/unictype/property-id-continue-tests (Files): Likewise.
29234         * modules/unictype/property-id-start-tests (Files): Likewise.
29235         * modules/unictype/property-ideographic-tests (Files): Likewise.
29236         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29237         * modules/unictype/property-ids-trinary-operator-tests (Files):
29238         Likewise.
29239         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29240         * modules/unictype/property-iso-control-tests (Files): Likewise.
29241         * modules/unictype/property-join-control-tests (Files): Likewise.
29242         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29243         * modules/unictype/property-line-separator-tests (Files): Likewise.
29244         * modules/unictype/property-logical-order-exception-tests (Files):
29245         Likewise.
29246         * modules/unictype/property-lowercase-tests (Files): Likewise.
29247         * modules/unictype/property-math-tests (Files): Likewise.
29248         * modules/unictype/property-non-break-tests (Files): Likewise.
29249         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29250         * modules/unictype/property-numeric-tests (Files): Likewise.
29251         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29252         * modules/unictype/property-other-default-ignorable-code-point-tests
29253         (Files): Likewise.
29254         * modules/unictype/property-other-grapheme-extend-tests (Files):
29255         Likewise.
29256         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29257         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29258         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29259         * modules/unictype/property-other-math-tests (Files): Likewise.
29260         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29261         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29262         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29263         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29264         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29265         * modules/unictype/property-private-use-tests (Files): Likewise.
29266         * modules/unictype/property-punctuation-tests (Files): Likewise.
29267         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29268         * modules/unictype/property-radical-tests (Files): Likewise.
29269         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29270         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29271         * modules/unictype/property-space-tests (Files): Likewise.
29272         * modules/unictype/property-terminal-punctuation-tests (Files):
29273         Likewise.
29274         * modules/unictype/property-test-tests (Files): Likewise.
29275         * modules/unictype/property-titlecase-tests (Files): Likewise.
29276         * modules/unictype/property-unassigned-code-value-tests (Files):
29277         Likewise.
29278         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29279         * modules/unictype/property-uppercase-tests (Files): Likewise.
29280         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29281         * modules/unictype/property-white-space-tests (Files): Likewise.
29282         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29283         * modules/unictype/property-xid-start-tests (Files): Likewise.
29284         * modules/unictype/property-zero-width-tests (Files): Likewise.
29285         * modules/unictype/scripts-tests (Files): Likewise.
29286         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29287         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29288         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29289         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29290         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29291         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29292         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29293         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29294         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29295         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29296         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29297         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29298         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29299         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29300         * modules/uninorm/composition-tests (Files): Likewise.
29301         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29302         * modules/uninorm/decomposition-tests (Files): Likewise.
29303         * modules/uninorm/filter-tests (Files): Likewise.
29304         * modules/uninorm/nfc-tests (Files): Likewise.
29305         * modules/uninorm/nfd-tests (Files): Likewise.
29306         * modules/uninorm/nfkc-tests (Files): Likewise.
29307         * modules/uninorm/nfkd-tests (Files): Likewise.
29308         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29309         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29310         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29311         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29312         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29313         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29314         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29315         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29316         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29317         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29318         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29319         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29320         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29321         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29322         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29323         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29324         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29325         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29326         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29327         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29328         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29329         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29330         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29331         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29332         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29333         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29334         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29335         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29336         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29337         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29338         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29339         * modules/uniwidth/u8-width-tests (Files): Likewise.
29340         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29341         * modules/uniwidth/u16-width-tests (Files): Likewise.
29342         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29343         * modules/uniwidth/u32-width-tests (Files): Likewise.
29344         * modules/uniwidth/width-tests (Files): Likewise.
29345         * modules/unlink-tests (Files): Likewise.
29346         * modules/unsetenv-tests (Files): Likewise.
29347         * modules/usleep-tests (Files): Likewise.
29348         * modules/utimens-tests (Files): Likewise.
29349         * modules/utimensat-tests (Files): Likewise.
29350         * modules/vasnprintf-posix-tests (Files): Likewise.
29351         * modules/vasnprintf-tests (Files): Likewise.
29352         * modules/vasprintf-posix-tests (Files): Likewise.
29353         * modules/vasprintf-tests (Files): Likewise.
29354         * modules/vdprintf-posix-tests (Files): Likewise.
29355         * modules/vfprintf-posix-tests (Files): Likewise.
29356         * modules/vprintf-posix-tests (Files): Likewise.
29357         * modules/vsnprintf-posix-tests (Files): Likewise.
29358         * modules/vsnprintf-tests (Files): Likewise.
29359         * modules/vsprintf-posix-tests (Files): Likewise.
29360         * modules/wcrtomb-tests (Files): Likewise.
29361         * modules/wcsnrtombs-tests (Files): Likewise.
29362         * modules/wcsrtombs-tests (Files): Likewise.
29363         * modules/wctype-tests (Files): Likewise.
29364         * modules/wcwidth-tests (Files): Likewise.
29365         * modules/xmemdup0-tests (Files): Likewise.
29366         * modules/xprintf-posix-tests (Files): Likewise.
29367         * modules/xvasprintf-tests (Files): Likewise.
29368
29369 2009-12-24  Eric Blake  <ebb9@byu.net>
29370
29371         test-nanosleep: fix typo
29372         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29373         patch.
29374         Reported by Bruno Haible.
29375
29376 2009-12-24  Bruno Haible  <bruno@clisp.org>
29377
29378         Reduce namespace pollution on glibc systems.
29379         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29380         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29381         systems.
29382         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29383         <getopt.h> on glibc systems.
29384         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29385         systems.
29386         * lib/fcntl.c: Include <unistd.h> here instead.
29387
29388 2009-12-24  Bruno Haible  <bruno@clisp.org>
29389
29390         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29391
29392 2009-12-24  Eric Blake  <ebb9@byu.net>
29393
29394         tests: add signature checks
29395         * tests/signature.h (SIGNATURE_CHECK): New file.
29396         * modules/atexit-tests (Files): Use it.
29397         * modules/btowc-tests (Files): Likewise.
29398         * modules/canonicalize-lgpl-tests (Files): Likewise.
29399         * modules/ceilf-tests (Files): Likewise.
29400         * modules/ceill-tests (Files): Likewise.
29401         * modules/chown-tests (Files): Likewise.
29402         * modules/dprintf-posix-tests (Files): Likewise.
29403         * modules/dup2-tests (Files): Likewise.
29404         * modules/dup3-tests (Files): Likewise.
29405         * modules/duplocale-tests (Files): Likewise.
29406         * modules/fchdir-tests (Files): Likewise.
29407         * modules/fcntl-tests (Files): Likewise.
29408         * modules/fdopendir-tests (Files): Likewise.
29409         * modules/fflush-tests (Files): Likewise.
29410         * modules/flock-tests (Files): Likewise.
29411         * modules/floorf-tests (Files): Likewise.
29412         * modules/floorl-tests (Files): Likewise.
29413         * modules/fnmatch-tests (Files): Likewise.
29414         * modules/fopen-tests (Files): Likewise.
29415         * modules/fprintf-posix-tests (Files): Likewise.
29416         * modules/freopen-tests (Files): Likewise.
29417         * modules/frexp-nolibm-tests (Files): Likewise.
29418         * modules/frexp-tests (Files): Likewise.
29419         * modules/frexpl-nolibm-tests (Files): Likewise.
29420         * modules/frexpl-tests (Files): Likewise.
29421         * modules/fseek-tests (Files): Likewise.
29422         * modules/fseeko-tests (Files): Likewise.
29423         * modules/fsync-tests (Files): Likewise.
29424         * modules/ftell-tests (Files): Likewise.
29425         * modules/ftello-tests (Files): Likewise.
29426         * modules/futimens-tests (Files): Likewise.
29427         * modules/getaddrinfo-tests (Files): Likewise.
29428         * modules/getcwd-tests (Files): Likewise.
29429         * modules/getdelim-tests (Files): Likewise.
29430         * modules/getdtablesize-tests (Files): Likewise.
29431         * modules/getgroups-tests (Files): Likewise.
29432         * modules/gethostname-tests (Files): Likewise.
29433         * modules/getline-tests (Files): Likewise.
29434         * modules/getopt-posix-tests (Files): Likewise.
29435         * modules/gettimeofday-tests (Files): Likewise.
29436         * modules/glob-tests (Files): Likewise.
29437         * modules/iconv-tests (Files): Likewise.
29438         * modules/inet_ntop-tests (Files): Likewise.
29439         * modules/inet_pton-tests (Files): Likewise.
29440         * modules/isblank-tests (Files): Likewise.
29441         * modules/lchown-tests (Files): Likewise.
29442         * modules/ldexpl-tests (Files): Likewise.
29443         * modules/link-tests (Files): Likewise.
29444         * modules/linkat-tests (Files): Likewise.
29445         * modules/lseek-tests (Files): Likewise.
29446         * modules/lstat-tests (Files): Likewise.
29447         * modules/mbrtowc-tests (Files): Likewise.
29448         * modules/mbsinit-tests (Files): Likewise.
29449         * modules/mbsnrtowcs-tests (Files): Likewise.
29450         * modules/mbsrtowcs-tests (Files): Likewise.
29451         * modules/memchr-tests (Files): Likewise.
29452         * modules/memcmp-tests (Files): Likewise.
29453         * modules/memmem-tests (Files): Likewise.
29454         * modules/memrchr-tests (Files): Likewise.
29455         * modules/mkdir-tests (Files): Likewise.
29456         * modules/mkfifo-tests (Files): Likewise.
29457         * modules/mkfifoat-tests (Files): Likewise.
29458         * modules/mknod-tests (Files): Likewise.
29459         * modules/nanosleep-tests (Files): Likewise.
29460         * modules/nl_langinfo-tests (Files): Likewise.
29461         * modules/obstack-printf-tests (Files): Likewise.
29462         * modules/open-tests (Files): Likewise.
29463         * modules/openat-tests (Files): Likewise.
29464         * modules/perror-tests (Files): Likewise.
29465         * modules/pipe2-tests (Files): Likewise.
29466         * modules/poll-tests (Files): Likewise.
29467         * modules/popen-tests (Files): Likewise.
29468         * modules/posix_spawn-tests (Files): Likewise.
29469         * modules/posix_spawnp-tests (Files): Likewise.
29470         * modules/pread-tests (Files): Likewise.
29471         * modules/printf-posix-tests (Files): Likewise.
29472         * modules/pty-tests (Files): Likewise.
29473         * modules/random_r-tests (Files): Likewise.
29474         * modules/rawmemchr-tests (Files): Likewise.
29475         * modules/readlink-tests (Files): Likewise.
29476         * modules/remove-tests (Files): Likewise.
29477         * modules/rename-tests (Files): Likewise.
29478         * modules/renameat-tests (Files): Likewise.
29479         * modules/rmdir-tests (Files): Likewise.
29480         * modules/round-tests (Files): Likewise.
29481         * modules/roundf-tests (Files): Likewise.
29482         * modules/roundl-tests (Files): Likewise.
29483         * modules/select-tests (Files): Likewise.
29484         * modules/setenv-tests (Files): Likewise.
29485         * modules/sigaction-tests (Files): Likewise.
29486         * modules/sleep-tests (Files): Likewise.
29487         * modules/snprintf-posix-tests (Files): Likewise.
29488         * modules/snprintf-tests (Files): Likewise.
29489         * modules/sprintf-posix-tests (Files): Likewise.
29490         * modules/stat-tests (Files): Likewise.
29491         * modules/strcasestr-tests (Files): Likewise.
29492         * modules/strchrnul-tests (Files): Likewise.
29493         * modules/strerror-tests (Files): Likewise.
29494         * modules/strsignal-tests (Files): Likewise.
29495         * modules/strstr-tests (Files): Likewise.
29496         * modules/strtod-tests (Files): Likewise.
29497         * modules/strverscmp-tests (Files): Likewise.
29498         * modules/symlink-tests (Files): Likewise.
29499         * modules/symlinkat-tests (Files): Likewise.
29500         * modules/times-tests (Files): Likewise.
29501         * modules/trunc-tests (Files): Likewise.
29502         * modules/truncf-tests (Files): Likewise.
29503         * modules/truncl-tests (Files): Likewise.
29504         * modules/tsearch-tests (Files): Likewise.
29505         * modules/uname-tests (Files): Likewise.
29506         * modules/unlink-tests (Files): Likewise.
29507         * modules/unsetenv-tests (Files): Likewise.
29508         * modules/usleep-tests (Files): Likewise.
29509         * modules/utimensat-tests (Files): Likewise.
29510         * modules/vasprintf-tests (Files): Likewise.
29511         * modules/vdprintf-posix-tests (Files): Likewise.
29512         * modules/vfprintf-posix-tests (Files): Likewise.
29513         * modules/vprintf-posix-tests (Files): Likewise.
29514         * modules/vsnprintf-posix-tests (Files): Likewise.
29515         * modules/vsnprintf-tests (Files): Likewise.
29516         * modules/vsprintf-posix-tests (Files): Likewise.
29517         * modules/wcrtomb-tests (Files): Likewise.
29518         * modules/wcsnrtombs-tests (Files): Likewise.
29519         * modules/wcsrtombs-tests (Files): Likewise.
29520         * modules/wcwidth-tests (Files): Likewise.
29521         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29522         * tests/test-isinf.c (isinf): Likewise.
29523         * tests/test-isnan.c (isnan): Likewise.
29524         * tests/test-signbit.c (signbit): Likewise.
29525         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29526         declaration, either as macro or with correct signature.
29527         (select): Ensure function under test is declared with correct
29528         signature in correct header.
29529         * tests/test-atexit.c (atexit): Likewise.
29530         * tests/test-btowc.c (btowc): Likewise.
29531         * tests/test-canonicalize-lgpl.c (realpath)
29532         (canonicalize_file_name): Likewise.
29533         * tests/test-ceilf1.c (ceilf): Likewise.
29534         * tests/test-ceill.c (ceill): Likewise.
29535         * tests/test-chown.c (chown): Likewise.
29536         * tests/test-dprintf-posix.c (dprintf): Likewise.
29537         * tests/test-dup2.c (dup2): Likewise.
29538         * tests/test-dup3.c (dup3): Likewise.
29539         * tests/test-duplocale.c (duplocale): Likewise.
29540         * tests/test-fchdir.c (fchdir): Likewise.
29541         * tests/test-fchownat.c (fchownat): Likewise.
29542         * tests/test-fcntl.c (fcntl): Likewise.
29543         * tests/test-fdopendir.c (fdopendir): Likewise.
29544         * tests/test-fflush.c (fflush): Likewise.
29545         * tests/test-flock.c (flock): Likewise.
29546         * tests/test-floorf1.c (floorf): Likewise.
29547         * tests/test-floorl.c (floorl): Likewise.
29548         * tests/test-fnmatch.c (fnmatch): Likewise.
29549         * tests/test-fopen.c (fopen): Likewise.
29550         * tests/test-fprintf-posix.c (fprintf): Likewise.
29551         * tests/test-freopen.c (freopen): Likewise.
29552         * tests/test-frexp.c (frexp): Likewise.
29553         * tests/test-frexpl.c (frexpl): Likewise.
29554         * tests/test-fseek.c (fseek): Likewise.
29555         * tests/test-fseeko.c (fseeko): Likewise.
29556         * tests/test-fstatat.c (fstatat): Likewise.
29557         * tests/test-fsync.c (fsync): Likewise.
29558         * tests/test-ftell.c (ftell): Likewise.
29559         * tests/test-ftello.c (ftello): Likewise.
29560         * tests/test-futimens.c (futimens): Likewise.
29561         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29562         (gai_strerror): Likewise.
29563         * tests/test-getcwd.c (getcwd): Likewise.
29564         * tests/test-getdelim.c (getdelim): Likewise.
29565         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29566         * tests/test-getgroups.c (getgroups): Likewise.
29567         * tests/test-gethostname.c (gethostname): Likewise.
29568         * tests/test-getline.c (getline): Likewise.
29569         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29570         Likewise.
29571         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29572         * tests/test-glob.c (glob, globfree): Likewise.
29573         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29574         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29575         * tests/test-inet_pton.c (inet_pton): Likewise.
29576         * tests/test-isblank.c (isblank): Likewise.
29577         * tests/test-lchown.c (lchown): Likewise.
29578         * tests/test-ldexpl.c (ldexpl): Likewise.
29579         * tests/test-link.c (link): Likewise.
29580         * tests/test-linkat.c (linkat): Likewise.
29581         * tests/test-lseek.c (lseek): Likewise.
29582         * tests/test-lstat.c (lstat): Likewise.
29583         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29584         * tests/test-mbsinit.c (mbsinit): Likewise.
29585         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29586         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29587         * tests/test-memchr.c (memchr): Likewise.
29588         * tests/test-memcmp.c (memcmp): Likewise.
29589         * tests/test-memmem.c (memmem): Likewise.
29590         * tests/test-memrchr.c (memrchr): Likewise.
29591         * tests/test-mkdir.c (mkdir): Likewise.
29592         * tests/test-mkdirat.c (mkdirat): Likewise.
29593         * tests/test-mkfifo.c (mkfifo): Likewise.
29594         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29595         * tests/test-mknod.c (mknod): Likewise.
29596         * tests/test-nanosleep.c (nanosleep): Likewise.
29597         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29598         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29599         Likewise.
29600         * tests/test-open.c (open): Likewise.
29601         * tests/test-openat.c (openat): Likewise.
29602         * tests/test-perror.c (perror): Likewise.
29603         * tests/test-pipe2.c (pipe2): Likewise.
29604         * tests/test-poll.c (poll): Likewise.
29605         * tests/test-popen.c (popen, pclose): Likewise.
29606         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29607         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29608         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29609         (posix_spawn_file_actions_destroy)
29610         (posix_spawn_file_actions_addclose)
29611         (posix_spawn_file_actions_addopen)
29612         (posix_spawn_file_actions_adddup2): Likewise.
29613         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29614         * tests/test-pread.c (pread): Likewise.
29615         * tests/test-printf-posix.c (printf): Likewise.
29616         * tests/test-pty.c (openpty, forkpty): Likewise.
29617         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29618         (random_r): Likewise.
29619         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29620         * tests/test-readlink.c (readlink): Likewise.
29621         * tests/test-remove.c (remove): Likewise.
29622         * tests/test-rename.c (rename): Likewise.
29623         * tests/test-renameat.c (renameat): Likewise.
29624         * tests/test-rmdir.c (rmdir): Likewise.
29625         * tests/test-round1.c (round): Likewise.
29626         * tests/test-roundf1.c (roundf): Likewise.
29627         * tests/test-roundl.c (roundl): Likewise.
29628         * tests/test-setenv.c (setenv): Likewise.
29629         * tests/test-sigaction.c (sigaction): Likewise.
29630         * tests/test-sleep.c (sleep): Likewise.
29631         * tests/test-snprintf.c (snprintf): Likewise.
29632         * tests/test-sprintf-posix.c (sprintf): Likewise.
29633         * tests/test-stat.c (stat): Likewise.
29634         * tests/test-stpncpy.c (stpncpy): Likewise.
29635         * tests/test-strcasestr.c (strcasestr): Likewise.
29636         * tests/test-strchrnul.c (strchrnul): Likewise.
29637         * tests/test-strerror.c (strerror): Likewise.
29638         * tests/test-strsignal.c (strsignal): Likewise.
29639         * tests/test-strstr.c (strstr): Likewise.
29640         * tests/test-strtod.c (strtod): Likewise.
29641         * tests/test-strverscmp.c (strverscmp): Likewise.
29642         * tests/test-symlink.c (symlink): Likewise.
29643         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29644         * tests/test-times.c (times): Likewise.
29645         * tests/test-trunc1.c (trunc): Likewise.
29646         * tests/test-truncf1.c (truncf): Likewise.
29647         * tests/test-truncl.c (truncl): Likewise.
29648         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29649         Likewise.
29650         * tests/test-uname.c (uname): Likewise.
29651         * tests/test-unlink.c (unlink): Likewise.
29652         * tests/test-unlinkat.c (unlinkat): Likewise.
29653         * tests/test-unsetenv.c (unsetenv): Likewise.
29654         * tests/test-usleep.c (usleep): Likewise.
29655         * tests/test-utimensat.c (utimensat): Likewise.
29656         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29657         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29658         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29659         * tests/test-vprintf-posix.c (vprintf): Likewise.
29660         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29661         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29662         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29663         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29664         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29665         * tests/test-wcwidth.c (wcwidth): Likewise.
29666
29667         build: pull in conditional headers during GNULIB_POSIXCHECK
29668         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29669         definitions from any conditionally-included headers.
29670         * lib/stdlib.in.h (includes): Likewise.
29671         * lib/unistd.in.h (includes): Likewise.
29672
29673 2009-12-24  Bruno Haible  <bruno@clisp.org>
29674
29675         * tests/test-argv-iter.c: Include header file being tested immediately
29676         after config.h.
29677         * tests/test-base64.c: Likewise.
29678         * tests/test-flock.c: Likewise.
29679         * tests/test-fsync.c: Likewise.
29680         * tests/test-getdate.c: Likewise.
29681         * tests/test-getndelim2.c: Likewise.
29682         * tests/test-isfinite.c: Likewise.
29683         * tests/test-isinf.c: Likewise.
29684         * tests/test-strerror.c: Likewise.
29685         * tests/test-strsignal.c: Likewise.
29686
29687 2009-12-23  Eric Blake  <ebb9@byu.net>
29688
29689         unistd: work around cygwin bug
29690         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29691         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29692         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29693
29694 2009-12-23  Bruno Haible  <bruno@clisp.org>
29695
29696         localename: More tests.
29697         * tests/test-localename.c (SIZEOF): New macro.
29698         (categories): New variable.
29699         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29700         test_locale_name_default): Add test w.r.t. thread locale.
29701         (test_locale_name_thread): New function.
29702         (main): Invoke it.
29703
29704         localename: Make aware of thread locale.
29705         * lib/localename.h (gl_locale_name_thread): New declaration.
29706         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29707         behaviour with respect to thread locale.
29708         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29709         <langinfo.h>, glthread/lock.h.
29710         (SIZE_BITS): New macro.
29711         (string_hash): New function.
29712         (struct hash_node): New type.
29713         (HASH_TABLE_SIZE): New macro.
29714         (struniq_hash_table, struniq_lock): New variables.
29715         (struniq): New function.
29716         (gl_locale_name_thread): New function.
29717         (gl_locale_name): Invoke it.
29718         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29719         * modules/localename (Depends-on): Add lock.
29720         Reported by Mike Gran <spk121@yahoo.com>.
29721
29722 2009-12-23  Eric Blake  <ebb9@byu.net>
29723
29724         va-args: new module
29725         * modules/va-args: New file.
29726         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29727         * MODULES.html.sh (Core language properties): Mention it.
29728
29729         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29730         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29731         named alias for __attribute__((__unused__)).
29732         * lib/chown.c: Update client.
29733         * lib/fchmodat.c: Likewise.
29734         * lib/fts.c: Likewise.
29735         * lib/getdate.y: Likewise.
29736         * lib/getgroups.c: Likewise.
29737         * lib/getopt.c: Likewise.
29738         * lib/getugroups.c: Likewise.
29739         * lib/mkdir.c: Likewise.
29740         * lib/mkfifo.c: Likewise.
29741         * lib/mkfifoat.c: Likewise.
29742         * lib/mknod.c: Likewise.
29743         * lib/mknodat.c: Likewise.
29744         * lib/readlink.c: Likewise.
29745         * lib/se-context.in.h: Likewise.
29746         * lib/se-selinux.in.h: Likewise.
29747         * lib/sockets.c: Likewise.
29748         * lib/symlink.c: Likewise.
29749         * lib/symlinkat.c: Likewise.
29750         * lib/unicodeio.c: Likewise.
29751         * lib/unistr.h: Likewise.
29752         * tests/test-areadlink.c: Likewise.
29753         * tests/test-areadlinkat.c: Likewise.
29754         * tests/test-filenamecat.c: Likewise.
29755         * tests/test-fseeko.c: Likewise.
29756         * tests/test-ftello.c: Likewise.
29757         * tests/test-getdate.c: Likewise.
29758         * tests/test-getgroups.c: Likewise.
29759         * tests/test-gethostname.c: Likewise.
29760         * tests/test-quotearg.c: Likewise.
29761         * tests/test-version-etc.c: Likewise.
29762         * tests/test-xalloc-die.c: Likewise.
29763         * tests/test-xfprintf-posix.c: Likewise.
29764         * tests/test-xprintf-posix.c: Likewise.
29765         * tests/test-xvasprintf.c: Likewise.
29766
29767         tests: avoid compiler warnings
29768         * tests/test-fcntl.c (main): Delete unused parameters.
29769         * tests/test-freopen-safer.c (main): Likewise.
29770         * tests/test-xalloc-die.c (main): Mark unused parameters.
29771         * tests/test-fseeko.c (main): Likewise.
29772         * tests/test-ftello.c (main): Likewise.
29773         * tests/test-nanosleep.c (main): Avoid declaration warning.
29774         * tests/test-sleep.c (main): Likewise.
29775         * tests/test-unsetenv.c (main): Silence warning about string
29776         literal.
29777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29778
29779 2009-12-23  Bruno Haible  <bruno@clisp.org>
29780
29781         * tests/test-localename.c (test_locale_name): New function, extracted
29782         from main. Also test mixed situations.
29783         (test_locale_name_posix, test_locale_name_environ,
29784         test_locale_name_default): New functions.
29785         (main): Invoke them all.
29786         * modules/localename-tests (configure.ac): Test for newlocale.
29787
29788 2009-12-23  Bruno Haible  <bruno@clisp.org>
29789
29790         unistd: Ensure getcwd gets declared before being overridden.
29791         * lib/unistd.in.h: Conditionally include <io.h>.
29792
29793 2009-12-22  Bruno Haible  <bruno@clisp.org>
29794
29795         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29796         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29797         (gl_WCHAR_H): Invoke it.
29798         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29799         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29800         Reported by Karl Berry <karl@freefriends.org>.
29801
29802 2009-12-22  Eric Blake  <ebb9@byu.net>
29803
29804         math, unistd: avoid redundant includes
29805         * lib/math.in.h (isnan): No need to re-include <math.h>.
29806         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29807
29808         getsubopt: work around cygwin bug
29809         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29810         avoid conflicting with system getsubopt.
29811         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29812         bug.
29813
29814         getopt: synchronize from glibc
29815         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29816         parameter order.  Adjust all callers.
29817         (_getopt_internal_r, main): Adjust quoting in error messages.
29818         Drop considerations for outdated POSIX 1003.2 error message.
29819         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29820         callers.
29821         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29822
29823         test-getopt: test stderr behavior
29824         * modules/getopt-posix-tests (Depends-on): Add dup2.
29825         * tests/test-getopt.c (ASSERT): Avoid stderr.
29826         (main): Move stderr to a temporary file.
29827         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29828         Instead, add parameter to inform caller if output occurred.
29829         (test_getopt): Adjust all existing tests to expect silence, and
29830         add new tests of leading ":".
29831         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29832         glibc shortcomings with leading "-:" or "+:" in optstring.
29833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29834         Likewise.
29835         * doc/posix-functions/getopt.texi (getopt): Likewise.
29836
29837         test-getopt: enhance test
29838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29839         supports optind=0.
29840         * tests/test-getopt.c (OPTIND_MIN): Move...
29841         * tests/test-getopt.h (OPTIND_MIN): ...here.
29842         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29843         Require that optind=0 works, since modern BSD supports it in
29844         addition to optreset, and since coreutils expects it.
29845         (test_getopt_long_only): New test.
29846         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29847         glibc shortcomings with 'W;', and enforcement of optind=0.
29848         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29849         Likewise.
29850
29851 2009-12-21  Bruno Haible  <bruno@clisp.org>
29852
29853         localename: Improvements for MacOS X and Cygwin.
29854         * lib/localename.h (gl_locale_name_environ): New declaration.
29855         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29856         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29857         (gl_locale_name_posix): Invoke it.
29858         (gl_locale_name_default): Add comments. Use Windows native API also on
29859         Cygwin.
29860
29861 2009-12-21  Bruno Haible  <bruno@clisp.org>
29862
29863         Update list of Win32 locale ids.
29864         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29865         (LANG_SAMI): Renamed from LANG_SAAMI.
29866         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29867         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29868         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29869         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29870         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29871         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29872         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29873         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29874         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29875         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29876         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29877         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29878         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29879         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29880         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29881         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29882         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29883         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29884         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29885         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29886         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29887         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29888         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29889         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29890         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29891         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29892         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29893         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29894         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29895         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29896         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29897         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29898         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29899         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29900         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29901         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29902         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29903         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29904         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29905         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29906         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29907         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29908         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29909         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29910         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29911         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29912         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29913         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29914         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29915         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29916         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29917         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29918         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29919         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29920         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29921         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29922         Add more languages and countries for Sami, Sorbian. Add more countries
29923         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29924         for Pashto. Change country for Syriac, Tswana.
29925
29926 2009-12-21  Eric Blake  <ebb9@byu.net>
29927
29928         test-utimens: avoid spurious failure
29929         * tests/test-chown.h (nap): Factor...
29930         * tests/nap.h: ...into new file.
29931         * tests/test-lchown.h (nap): Avoid duplication.
29932         * tests/test-utimens-common.h (nap): Use shared implementation,
29933         necessary on file systems with 1-second resolution.
29934         * modules/chown-tests (Files): Include new file.
29935         * modules/fdutimensat-tests (Files): Likewise.
29936         * modules/futimens-tests (Files): Likewise.
29937         * modules/lchown-tests (Files): Likewise.
29938         * modules/openat-tests (Files): Likewise.
29939         * modules/utimens-tests (Files): Likewise.
29940         * modules/utimensat-tests (Files): Likewise.
29941
29942 2009-12-19  Eric Blake  <ebb9@byu.net>
29943
29944         futimens, utimensat: work around Linux bug
29945         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29946         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29947         * lib/utimensat.c (rpl_utimensat): Work around it.
29948         * lib/futimens.c (rpl_futimens): Adjust comment.
29949
29950         utimens: work around Linux ctime bug
29951         * lib/utimens.c (detect_ctime_bug): New helper function.
29952         (update_timespec): Differentiate between workaround needed for
29953         this bug vs. what is needed for systems that lack utimensat.
29954         (fdutimens, lutimens): Work around bug.
29955
29956         utimens: check for ctime update
29957         * tests/test-utimens-common.h (check_ctime): Define.
29958         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29959         * tests/test-futimens.h (test_futimens): Likewise.
29960         * tests/test-lutimens.h (test_lutimens): Likewise.
29961         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29962         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29963
29964 2009-12-19  Bruno Haible  <bruno@clisp.org>
29965
29966         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29967         * tests/test-dprintf-posix2.sh: New file.
29968         * tests/test-dprintf-posix2.c: New file.
29969         * modules/dprintf-posix-tests (Files): Add them.
29970         (configure.ac): Check for getrlimit and setrlimit.
29971         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29972
29973 2009-12-19  Bruno Haible  <bruno@clisp.org>
29974
29975         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29976         * tests/test-fprintf-posix3.sh: New file.
29977         * tests/test-fprintf-posix3.c: New file.
29978         * modules/fprintf-posix-tests (Files): Add them.
29979         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29980
29981 2009-12-19  Eric Blake  <ebb9@byu.net>
29982
29983         dirfd: fix prototype
29984         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29985         * lib/dirfd.c (dirfd): Likewise.
29986
29987         canonicalize: reduce memory usage
29988         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29989         allocation to size.
29990         Reported by Solar Designer <solar@openwall.com>.
29991
29992 2009-12-19  Bruno Haible  <bruno@clisp.org>
29993
29994         New module attribute 'Applicability'.
29995         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29996         * gnulib-tool: New option --extract-applicability.
29997         (func_usage): Document it.
29998         (sed_extract_prog): Recognize it.
29999         (func_get_applicability): New function.
30000         (func_import): Generalize handling of 'link-warning' module.
30001         * modules/link-warning (Applicability): New section.
30002         * modules/arg-nonnull (Applicability): New section.
30003         Repoted by Simon Josefsson <simon@josefsson.org>.
30004
30005 2009-12-19  Bruno Haible  <bruno@clisp.org>
30006
30007         fflush: tweak
30008         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30009         * lib/fseeko.c (rpl_fseeko): Likewise.
30010
30011 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30012
30013         * lib/gl_list.h: Fix typo in comment.
30014
30015 2009-12-16  Eric Blake  <ebb9@byu.net>
30016
30017         fcntl: use to simplify other modules
30018         * modules/cloexec (Depends-on): Add fcntl.
30019         * modules/fchdir (Depends-on): Likewise.
30020         * modules/fd-safer-flag (Depends-on): Likewise.
30021         * modules/unistd-safer (Depends-on): Likewise.
30022         * modules/dup3 (configure.ac): Set module indicator.
30023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30024         missing.
30025         * lib/fchdir.c (_gl_register_dup): Fix comment.
30026         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30027         * lib/dup-safer.c (dup_safer): Likewise.
30028         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30029         * lib/dup3.c (dup3): Likewise.
30030         * tests/test-fchdir.c (main): Enhance test.
30031         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30032
30033         fcntl: port portions of fcntl to mingw
30034         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30035         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30036         replacement for mingw.
30037         * modules/fcntl (Description): Update.
30038         (Depends-on): Add dup2.
30039         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30040         * modules/fcntl-h (Makefile.am): Substitute it.
30041         * lib/fcntl.in.h (fcntl): Update declaration.
30042         (F_DUPFD, F_GETFD): New macros, when needed.
30043         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30044         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30045         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30046         we now guarantee.
30047
30048         fcntl: work around cygwin bug in F_DUPFD
30049         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30050         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30051         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30052         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30053         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30054
30055         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30056         * modules/fcntl (Files): List new files.
30057         (configure.ac): Run a test.
30058         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30059         * lib/fcntl.c (rpl_fcntl): Likewise.
30060         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30061         (gl_FCNTL_H): Always replace fcntl.h.
30062         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30063         * lib/fcntl.in.h (fcntl): Declare replacement.
30064         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30065         needed, plus a witness.
30066         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30067         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30068         * tests/test-fcntl.c: New file.
30069         * modules/fcntl-tests: Likewise.
30070
30071         binary-io: avoid potential compilation warning
30072         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30073         directives.
30074
30075         fflush: avoid compilation error on NetBSD
30076         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30077         between off_t and fpos_t, since the latter is sometimes a struct.
30078         * lib/fseeko.c (rpl_fseeko): Likewise.
30079         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30080
30081 2009-12-15  Eric Blake  <ebb9@byu.net>
30082
30083         fcntl-h, stdio, sys_ioctl: fix declarations
30084         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30085         function must not take arguments.
30086         * lib/sys_ioctl.in.h (ioctl): Likewise.
30087         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30088         (open): Add a link warning.
30089
30090 2009-12-15  Jim Meyering  <meyering@redhat.com>
30091
30092         areadlink, areadlink-with-size: relax license to LGPLv2+
30093         * modules/areadlink (License): Relax to LGPLv2+.
30094         * modules/areadlink-with-size (License): Likewise.
30095
30096 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30097             Bruno Haible  <bruno@clisp.org>
30098
30099         *printf: Fix memory leak.
30100         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30101         * lib/vfprintf.c (vfprintf): Likewise.
30102         * lib/dprintf.c (dprintf): Likewise.
30103         * lib/vdprintf.c (vdprintf): Likewise.
30104
30105 2009-12-14  Eric Blake  <ebb9@byu.net>
30106
30107         accept4: adjust module dependencies
30108         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30109
30110         utimens: one more try at avoiding compiler warning
30111         * lib/utimens.c (lutimens): Lower scope of result.
30112
30113 2009-12-13  Bruno Haible  <bruno@clisp.org>
30114
30115         Move the malloc checking from module 'list' to new module 'xlist'.
30116         * modules/xlist: New file.
30117         * lib/gl_xlist.h: New file.
30118         * lib/gl_xlist.c: New file.
30119         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30120         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30121         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30122         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30123         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30124         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30125         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30126         gl_sortedlist_nx_add): New declarations.
30127         (struct gl_list_implementation): Rename and change methods accordingly.
30128         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30129         (gl_list_nx_create): Renamed from gl_list_create.
30130         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30131         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30132         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30133         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30134         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30135         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30136         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30137         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30138         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30139         gl_list_create_empty.
30140         (gl_list_nx_create): Renamed from gl_list_create.
30141         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30142         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30143         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30144         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30145         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30146         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30147         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30148         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30149         * lib/gl_array_list.c: Don't include xalloc.h.
30150         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30151         NULL upon out-of-memory.
30152         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30153         out-of-memory.
30154         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30155         Change return type to 'int'.
30156         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30157         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30158         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30159         upon out-of-memory.
30160         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30161         upon out-of-memory.
30162         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30163         upon out-of-memory.
30164         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30165         upon out-of-memory.
30166         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30167         out-of-memory.
30168         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30169         Update.
30170         (gl_array_list_implementation): Update.
30171         * lib/gl_carray_list.c: Don't include xalloc.h.
30172         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30173         Return NULL upon out-of-memory.
30174         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30175         out-of-memory.
30176         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30177         Change return type to 'int'.
30178         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30179         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30180         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30181         upon out-of-memory.
30182         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30183         upon out-of-memory.
30184         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30185         out-of-memory.
30186         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30187         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30188         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30189         Update.
30190         (gl_carray_list_implementation): Update.
30191         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30192         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30193         gl_linked_create_empty. Return NULL upon out-of-memory.
30194         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30195         out-of-memory.
30196         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30197         Change return type to 'int'. Return -1 upon out-of-memory.
30198         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30199         out-of-memory.
30200         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30201         upon out-of-memory.
30202         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30203         upon out-of-memory.
30204         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30205         NULL upon out-of-memory.
30206         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30207         upon out-of-memory.
30208         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30209         out-of-memory.
30210         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30211         Update.
30212         * lib/gl_linked_list.c: Don't include xalloc.h.
30213         (gl_linked_list_implementation): Update.
30214         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30215         (add_to_bucket): Change return type to 'int'.
30216         (gl_linkedhash_list_implementation): Update.
30217         * lib/gl_anytree_list1.h (free_subtree): New function.
30218         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30219         gl_tree_create_empty. Return NULL upon out-of-memory.
30220         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30221         Change return type to 'int'. Return -1 upon out-of-memory.
30222         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30223         out-of-memory.
30224         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30225         (gl_tree_remove_node): New function, moved here from
30226         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30227         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30228         Update.
30229         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30230         malloc, not xmalloc. Return NULL upon out-of-memory.
30231         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30232         out-of-memory.
30233         (gl_tree_remove_node_from_tree): New function, extracted from
30234         gl_tree_remove_node.
30235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30236         upon out-of-memory.
30237         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30238         out-of-memory.
30239         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30240         upon out-of-memory.
30241         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30242         upon out-of-memory.
30243         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30244         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30245         not xmalloc. Return NULL upon out-of-memory.
30246         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30247         out-of-memory.
30248         (gl_tree_remove_node_from_tree): New function, extracted from
30249         gl_tree_remove_node.
30250         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30251         upon out-of-memory.
30252         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30253         out-of-memory.
30254         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30255         upon out-of-memory.
30256         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30257         upon out-of-memory.
30258         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30259         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30260         gl_anytree_list1.h before gl_anyavltree_list2.h.
30261         (gl_avltree_list_implementation): Update.
30262         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30263         gl_anytree_list1.h before gl_anyavltree_list2.h.
30264         (gl_rbtree_list_implementation): Update.
30265         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30266         Change return type to 'int'. Return -1 upon out-of-memory. Use
30267         __builtin_expect.
30268         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30269         (gl_avltreehash_list_implementation): Update.
30270         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30271         (gl_rbtreehash_list_implementation): Update.
30272         * modules/array-list (Depends-on): Remove xalloc.
30273         * modules/carray-list (Depends-on): Likewise.
30274         * modules/linked-list (Depends-on): Likewise.
30275         * modules/linkedhash-list (Depends-on): Likewise.
30276         * modules/avltree-list (Depends-on): Likewise.
30277         * modules/rbtree-list (Depends-on): Likewise.
30278         * modules/avltreehash-list (Depends-on): Likewise.
30279         * modules/rbtreehash-list (Depends-on): Likewise.
30280
30281         * modules/xsublist: New file.
30282         * lib/gl_xsublist.h: New file.
30283         * lib/gl_xsublist.c: New file.
30284         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30285         (gl_sublist_nx_create): New declaration.
30286         * lib/gl_sublist.c: Don't include xalloc.h.
30287         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30288         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30289         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30290         Change return type to 'int'. Return -1 upon out-of-memory.
30291         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30292         upon out-of-memory.
30293         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30294         NULL upon out-of-memory.
30295         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30296         upon out-of-memory.
30297         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30298         NULL upon out-of-memory.
30299         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30300         NULL upon out-of-memory.
30301         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30302         upon out-of-memory.
30303         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30304         (gl_sublist_list_implementation): Update.
30305         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30306         upon out-of-memory.
30307         * modules/sublist (Depends-on): Remove xalloc.
30308
30309         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30310         * tests/test-carray_list.c: Likewise.
30311         * tests/test-linked_list.c: Likewise.
30312         * tests/test-linkedhash_list.c: Likewise.
30313         * tests/test-avltree_list.c: Likewise.
30314         * tests/test-rbtree_list.c: Likewise.
30315         * tests/test-avltreehash_list.c: Likewise.
30316         * tests/test-rbtreehash_list.c: Likewise.
30317         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30318         * modules/carray-list-tests (Makefile.am): Likewise.
30319         * modules/linked-list-tests (Makefile.am): Likewise.
30320         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30321         * modules/avltree-list-tests (Makefile.am): Likewise.
30322         * modules/rbtree-list-tests (Makefile.am): Likewise.
30323         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30324         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30325
30326         * NEWS: Mention the changes.
30327
30328         * lib/clean-temp.c: Include gl_xlist.h.
30329         * modules/clean-temp (Depends-on): Add xlist.
30330
30331         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30332         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30333
30334         * tests/test-array_oset.c: Include gl_xlist.h.
30335         * modules/array-oset-tests (Depends-on): Add xlist.
30336
30337         Reported by José E. Marchesi <jemarch@gnu.org>.
30338
30339 2009-12-13  Bruno Haible  <bruno@clisp.org>
30340
30341         Move the malloc checking from module 'oset' to new module 'xoset'.
30342         * modules/xoset: New file.
30343         * lib/gl_xoset.h: New file.
30344         * lib/gl_xoset.c: New file.
30345         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30346         declarations.
30347         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30348         (struct gl_oset_implementation): Rename and change methods accordingly.
30349         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30350         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30351         'int'. Mark as __warn_unused_result__.
30352         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30353         gl_oset_create_empty.
30354         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30355         'int'.
30356         * lib/gl_array_oset.c: Don't include xalloc.h.
30357         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30358         malloc, not xmalloc.
30359         (grow): Change return type to 'int'. Don't call xalloc_die.
30360         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30361         to 'int'.
30362         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30363         'int'.
30364         (gl_array_oset_implementation): Update.
30365         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30366         gl_tree_create_empty.
30367         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30368         'int'.
30369         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30370         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30371         xmalloc.
30372         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30373         not xmalloc.
30374         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30375         xmalloc.
30376         (gl_avltree_oset_implementation): Update.
30377         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30378         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30379         xmalloc.
30380         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30381         not xmalloc.
30382         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30383         xmalloc.
30384         (gl_rbtree_oset_implementation): Update.
30385         * modules/array-oset (Depends-on): Remove xalloc.
30386         * modules/avltree-oset (Depends-on): Likewise.
30387         * modules/rbtree-oset (Depends-on): Likewise.
30388         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30389         * tests/test-avltree_oset.c: Likewise.
30390         * tests/test-rbtree_oset.c: Likewise.
30391         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30392         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30393         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30394         * NEWS: Mention the change.
30395
30396 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30397
30398         maint.mk: allow a project to override release-prep commands
30399         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30400         commands into a new rule.
30401         (release-prep): New rule.
30402         (release-prep-hook): New overridable variable.
30403
30404 2009-12-13  Bruno Haible  <bruno@clisp.org>
30405
30406         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30407
30408 2009-12-13  Jim Meyering  <meyering@redhat.com>
30409
30410         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30411         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30412
30413 2009-12-12  Bruno Haible  <bruno@clisp.org>
30414
30415         duplocale: Tweak.
30416         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30417
30418 2009-12-12  Karl Berry  <karl@gnu.org>
30419
30420         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30421
30422 2009-12-12  Bruno Haible  <bruno@clisp.org>
30423
30424         * m4/po.m4: Undo incorrect untabification.
30425
30426 2009-12-12  Bruno Haible  <bruno@clisp.org>
30427
30428         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30429         * modules/c-strtod (Depends-on): Add locale.
30430         * modules/c-strtold (Depends-on): Likewise.
30431
30432 2009-12-12  Bruno Haible  <bruno@clisp.org>
30433
30434         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30435
30436 2009-12-11  Eric Blake  <ebb9@byu.net>
30437
30438         setenv: relax requirement in light of POSIX ruling
30439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30440         not NULL.
30441         * tests/test-setenv.c (main): Relax test.
30442         * tests/test-unsetenv.c (main): Likewise.
30443         * doc/posix-functions/setenv.texi (setenv): Document this.
30444         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30445
30446 2009-12-11  Bruno Haible  <bruno@clisp.org>
30447
30448         New module 'fd-safer-flag'.
30449         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30450         * lib/dup-safer.c (dup_safer_flag): Remove function.
30451         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30452         * lib/fd-safer.c (fd_safer_flag): Remove function.
30453         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30454         * modules/cloexec (configure.ac): Drop indicator macro.
30455         * modules/fd-safer-flag: New file.
30456         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30457         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30458         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30459
30460 2009-12-11  Bruno Haible  <bruno@clisp.org>
30461
30462         Tests for module 'nl_langinfo'.
30463         * modules/nl_langinfo-tests: New file.
30464         * tests/test-nl_langinfo.sh: New file.
30465         * tests/test-nl_langinfo.c: New file.
30466
30467         New module 'nl_langinfo'.
30468         * lib/nl_langinfo.c: New file.
30469         * m4/nl_langinfo.m4: New file.
30470         * modules/nl_langinfo: New file.
30471         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30472
30473 2009-12-11  Bruno Haible  <bruno@clisp.org>
30474
30475         Tests for module 'langinfo'.
30476         * modules/langinfo-tests: New file.
30477         * tests/test-langinfo.c: New file.
30478
30479         New module 'langinfo'.
30480         * lib/langinfo.in.h: New file.
30481         * m4/langinfo_h.m4: New file.
30482         * modules/langinfo: New file.
30483         * doc/posix-headers/langinfo.texi: Mention the new module.
30484
30485 2009-12-11  Bruno Haible  <bruno@clisp.org>
30486
30487         * lib/config.charset: Untabify.
30488
30489 2009-12-11  Bruno Haible  <bruno@clisp.org>
30490
30491         * modules/unistd-safer (configure.ac): Drop indicator macro.
30492
30493 2009-12-11  Bruno Haible  <bruno@clisp.org>
30494
30495         Move pipe2-safer code to its own file.
30496         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30497         * lib/pipe-safer.c (pipe2_safer): Remove function.
30498         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30499         (Makefile.am): Add it to lib_SOURCES.
30500
30501 2009-12-10  Bruno Haible  <bruno@clisp.org>
30502
30503         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30504
30505 2009-12-10  Bruno Haible  <bruno@clisp.org>
30506
30507         Declare which arguments expect non-NULL values, for GCC and clang.
30508         * build-aux/arg-nonnull.h: New file.
30509         * modules/arg-nonnull: New file.
30510         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30511         (inet_ntop, inet_pton): Use it.
30512         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30513         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30514         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30515         (open, openat): Use it.
30516         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30517         (fnmatch): Use it.
30518         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30519         (getopt, getopt_long, getopt_long_only): Use it.
30520         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30521         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30522         Use it.
30523         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30524         (iconv_open): Use it.
30525         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30526         (strtoimax, strtoumax): Use it.
30527         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30528         (duplocale): Use it.
30529         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30530         (frexp, frexpl): Use it.
30531         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30532         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30533         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30534         (tsearch, tfind, tdelete, twalk): Use it.
30535         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30536         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30537         sigpending): Use it.
30538         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30539         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30540         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30541         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30542         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30543         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30544         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30545         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30546         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30547         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30548         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30549         Use it.
30550         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30551         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30552         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30553         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30554         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30555         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30556         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30557         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30558         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30559         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30560         strtoull, unsetenv): Use it.
30561         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30562         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30563         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30564         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30565         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30566         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30567         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30568         (strcasecmp, strncasecmp): Use it.
30569         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30570         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30571         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30572         rpl_setsockopt): Use it.
30573         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30574         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30575         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30576         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30577         (gettimeofday): Use it.
30578         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30579         (times): Use it.
30580         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30581         (uname): Use it.
30582         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30583         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30584         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30585         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30586         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30587         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30588         unlinkat, write): Use it.
30589         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30590         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30591         * lib/argv-iter.h: Include arg-nonnull.h.
30592         (_ATTRIBUTE_NONNULL_): Remove macro.
30593         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30594         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30595         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30596         optimization.
30597         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30598         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30599         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30600         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30601         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30602         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30603         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30604         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30605         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30606         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30607         * modules/dirent (Depends-on): Add arg-nonnull.
30608         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30609         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30610         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30611         * modules/fnmatch (Depends-on): Add arg-nonnull.
30612         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30613         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30614         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30615         * modules/glob (Depends-on): Add arg-nonnull.
30616         (Makefile.am): Insert arg-nonnull.h into glob.h.
30617         * modules/iconv_open (Depends-on): Add arg-nonnull.
30618         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30619         * modules/inttypes (Depends-on): Add arg-nonnull.
30620         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30621         * modules/locale (Depends-on): Add arg-nonnull.
30622         (Makefile.am): Insert arg-nonnull.h into locale.h.
30623         * modules/math (Depends-on): Add arg-nonnull.
30624         (Makefile.am): Insert arg-nonnull.h into math.h.
30625         * modules/netdb (Depends-on): Add arg-nonnull.
30626         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30627         * modules/search (Depends-on): Add arg-nonnull.
30628         (Makefile.am): Insert arg-nonnull.h into search.h.
30629         * modules/signal (Depends-on): Add arg-nonnull.
30630         (Makefile.am): Insert arg-nonnull.h into signal.h.
30631         * modules/spawn (Depends-on): Add arg-nonnull.
30632         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30633         * modules/stdio (Depends-on): Add arg-nonnull.
30634         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30635         * modules/stdlib (Depends-on): Add arg-nonnull.
30636         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30637         * modules/string (Depends-on): Add arg-nonnull.
30638         (Makefile.am): Insert arg-nonnull.h into string.h.
30639         * modules/strings (Depends-on): Add arg-nonnull.
30640         (Makefile.am): Insert arg-nonnull.h into strings.h.
30641         * modules/sys_socket (Depends-on): Add arg-nonnull.
30642         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30643         * modules/sys_stat (Depends-on): Add arg-nonnull.
30644         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30645         * modules/sys_time (Depends-on): Add arg-nonnull.
30646         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30647         * modules/sys_times (Depends-on): Add arg-nonnull.
30648         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30649         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30650         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30651         * modules/time (Depends-on): Add arg-nonnull.
30652         (Makefile.am): Insert arg-nonnull.h into time.h.
30653         * modules/unistd (Depends-on): Add arg-nonnull.
30654         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30655         * modules/wchar (Depends-on): Add arg-nonnull.
30656         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30657         * modules/argv-iter (Depends-on): Add arg-nonnull.
30658         * tests/test-canonicalize.c (null_ptr): New function.
30659         (main): Use it.
30660         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30661         (main): Use it.
30662         * tests/test-memmem.c (null_ptr): New function.
30663         (main): Use it.
30664         Reported by Jim Meyering.
30665
30666 2009-12-10  Bruno Haible  <bruno@clisp.org>
30667
30668         Use spaces for indentation, not tabs.
30669         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30670         * m4/*.m4: Untabify.
30671         * build-aux/*.h: Untabify.
30672         * tests/**/*.[hc]: Untabify.
30673         * README: New section "Indent with spaces, not TABs", based on
30674         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30675         * NEWS: Mention the change.
30676
30677 2009-12-10  Bruno Haible  <bruno@clisp.org>
30678
30679         pty test: Fix link error.
30680         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30681         test_pty_LDADD.
30682
30683 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30684
30685         * modules/pty: New file.
30686         * modules/pty-tests: New file.
30687         * m4/pty.m4: New file.
30688         * tests/test-pty.c: New file.
30689         * doc/glibc-headers/pty.texi: Modified.
30690         * doc/glibc-functions/forkpty.texi: Modified.
30691         * doc/glibc-functions/openpty.texi: Modified.
30692
30693 2009-12-10  Bruno Haible  <bruno@clisp.org>
30694
30695         Avoid syntax error in C++ mode.
30696         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30697
30698 2009-12-10  Bruno Haible  <bruno@clisp.org>
30699
30700         Use sed with option -e.
30701         * gnulib-tool (func_version, func_emit_copyright_notice,
30702         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30703         option -e to sed.
30704         * modules/link-warning (Makefile.am): Likewise.
30705
30706 2009-12-10  Jim Meyering  <meyering@redhat.com>
30707
30708         mgetgroups: do not write bytes beyond end of malloc'd buffer
30709         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30710         username, we call getgroups with a one-element-shorter buffer,
30711         but still told it the length was original, max_n_groups.
30712
30713 2009-12-09  Eric Blake  <ebb9@byu.net>
30714
30715         cloexec: relax license
30716         * modules/cloexec (Maintainer): Add myself.
30717         (License): Use LGPL, not GPL.
30718
30719         link-warning: optimize generation
30720         * modules/link-warning (Makefile.am): Reduce process usage.
30721
30722 2009-12-09  Bruno Haible  <bruno@clisp.org>
30723
30724         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30725         workaround was added on 2009-11-17.
30726
30727 2009-12-09  Jim Meyering  <meyering@redhat.com>
30728             Bruno Haible  <bruno@clisp.org>
30729
30730         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30731         * modules/link-warning (Makefile.am): Make the comment-removing sed
30732         command more robust in the face of bootstrap-prepended comment lines.
30733
30734 2009-12-09  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30737         most one group.
30738
30739 2009-12-09  Simon Josefsson <simon@josefsson.org>
30740             Bruno Haible  <bruno@clisp.org>
30741
30742         * build-aux/link-warning.h: Add copyright notice.
30743         * modules/link-warning (Makefile.am): Generate link-warning.h from
30744         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30745         * NEWS: Mention change in link-warning module.
30746         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30747         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30748         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30749         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30750         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30751         * modules/math (Makefile.am): Add dependency to math.h.
30752         * modules/search (Makefile.am): Add dependency to search.h.
30753         * modules/signal (Makefile.am): Add dependency to signal.h.
30754         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30755         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30756         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30757         * modules/string (Makefile.am): Add dependency to string.h.
30758         * modules/strings (Makefile.am): Add dependency to strings.h.
30759         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30760         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30761         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30762         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30763         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30764         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30765         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30766         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30767         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30768
30769 2009-12-09  Bruno Haible  <bruno@clisp.org>
30770
30771         fchdir: Optimize away rpl_fstat when possible.
30772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30773         REPLACE_OPEN_DIRECTORY.
30774         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30775
30776 2009-12-09  Bruno Haible  <bruno@clisp.org>
30777
30778         * lib/fchdir.c: Update comment.
30779
30780 2009-12-09  Bruno Haible  <bruno@clisp.org>
30781
30782         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30783
30784 2009-12-08  Eric Blake  <ebb9@byu.net>
30785
30786         fchdir: avoid memory leak on re-registration.
30787         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30788
30789 2009-12-08  Jim Meyering  <meyering@redhat.com>
30790
30791         init.sh: avoid Solaris 10 /bin/sh portability problem
30792         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30793         sourced script:
30794           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30795           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30796           bar
30797         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30798         and two tests used that idiom.
30799         * tests/init.sh: Update suggested usage comments.
30800         (path_prepend_): New function, to be used in place
30801         of the --src-path=DIR option.
30802         (setup_): Move PATH-prepending code into path_prepend_.
30803         * tests/test-pread.sh: Adapt to new usage.
30804         * tests/test-xalloc-die.sh: Likewise.
30805
30806 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30807
30808         * doc/gnulib.texi (Glibc pty.h): Add.
30809         * doc/glibc-functions/forkpty.texi: Add.
30810         * doc/glibc-functions/openpty.texi: Add.
30811         Suggested by Bruno Haible.
30812
30813 2009-12-08  Eric Blake  <ebb9@byu.net>
30814
30815         fchdir: fix logic bugs
30816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30817         * tests/test-fchdir.c (main): Enhance test.
30818         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30819         is in use.
30820
30821         dup2: fix logic bugs
30822         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30823         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30824         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30825         exists.
30826         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30827
30828 2009-12-07  Eric Blake  <ebb9@byu.net>
30829
30830         unlink: fix m4 detection
30831         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30832
30833         unistd-safer: add unit test
30834         * modules/unistd-safer-tests: New file.
30835         * tests/test-dup-safer.c: Likewise.
30836         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30837         * tests/test-dup2.c (setmode): Likewise.
30838         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30839
30840         cloexec: preserve text vs. binary across dup_cloexec
30841         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30842         mode.
30843         * modules/dup2-tests (Depends-on): Add binary-io.
30844         * modules/cloexec-tests (Depends-on): Likewise.
30845         * tests/test-dup2.c (setmode, is_mode): New helpers.
30846         (main): Add tests that translation mode is preserved.
30847         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30848         Reported by Bruno Haible.
30849
30850         mgetgroups: reduce duplicate listings
30851         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30852         resulting array.
30853         * tests/test-chown.h (test_chown): Simplify client.
30854         * tests/test-lchown.h (test_lchown): Likewise.
30855
30856 2009-12-06  Bruno Haible  <bruno@clisp.org>
30857
30858         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30859         value.
30860
30861 2009-12-06  Bruno Haible  <bruno@clisp.org>
30862
30863         * lib/progname.c: Include stdio.h, stdlib.h.
30864         (set_program_name): Reject a NULL argument.
30865
30866 2009-12-05  Eric Blake  <ebb9@byu.net>
30867
30868         pipe2-safer: new module
30869         * modules/pipe2-safer: New file.
30870         * lib/unistd-safer.h (pipe2_safer): New prototype.
30871         * lib/unistd--.h (pipe2): New wrapper.
30872         * lib/pipe-safer.c (pipe2_safer): New function.
30873         * modules/pipe (Depends-on): Add pipe2-safer.
30874         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30875
30876         stdlib-safer: preserve cloexec flag for mkostemp[s]
30877         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30878         fd_safer_flag.
30879
30880         unistd-safer: allow preservation of cloexec status via flag
30881         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30882         prototypes.
30883         * lib/dup-safer.c (dup_safer_flag): New function.
30884         * lib/fd-safer.c (fd_safer_flag): Likewise.
30885         * modules/cloexec (configure.ac): Set witness.
30886
30887         test-dup2: enhance test
30888         * modules/dup2-tests (Depends-on): Add cloexec.
30889         * tests/test-dup2.c (main): Enhance test.
30890
30891         cloexec: add dup_cloexec
30892         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30893         header and comments.
30894         * lib/cloexec.c (set_cloexec_flag): Add comments.
30895         (dup_cloexec): New function, with mingw implementation borrowed
30896         from...
30897         * lib/w32spawn.h (dup_noinherit): ...here.
30898         * modules/execute (Depends-on): Add cloexec.
30899         * modules/pipe (Depends-on): Likewise.
30900         * modules/cloexec (Depends-on): Add dup2.
30901         * modules/cloexec-tests (Files): New file.
30902         * tests/test-cloexec.c: Likewise.
30903
30904         test-xalloc-die: fix test for mingw
30905         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30906         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30907         directory and .exe suffix off argv[0] output.
30908
30909         test-fseeko: fix test for mingw
30910         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30911         than undefining fseek, so test will pass on mingw.
30912
30913 2009-12-05  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/progname.h (set_program_name): Clarify specification.
30916         * lib/progname.c (set_program_name): Likewise.
30917         Reported by Jim Meyering.
30918
30919 2009-12-05  Jim Meyering  <meyering@redhat.com>
30920
30921         maint.mk: backslash-escape parens in default regexp
30922         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30923         backslash-escape the literal parentheses.
30924
30925         maint.mk: news-date-check: use grep -E
30926         * top/maint.mk (today): Define a Make variable, not a...
30927         (news-date-check): ...shell variable.
30928         (news-date-regexp): Use the Make variable.
30929         Use grep's -E option.  Change the failing diagnostic to mention
30930         the variable, $(news-date-regexp).
30931
30932 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30933
30934         maintainer-makefile: allow customization of NEWS entry format
30935         * top/maint.mk (news-date-regexp): New overridable variable.
30936         (news-date-check): Use it.
30937
30938 2009-12-04  Eric Blake  <ebb9@byu.net>
30939
30940         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30941         * lib/mgetgroups.h (xgetgroups): New prototype.
30942         * lib/mgetgroups.c (xgetgroups): New wrapper.
30943         (mgetgroups): Handle ENOSYS.
30944         * modules/mgetgroups (Depends-on): Add realloc.
30945         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30946
30947         mgetgroups: avoid argument promotion issues with -1
30948         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30949         for invalid gid_t.
30950         * tests/test-chown.h (getegid, test_chown): Likewise.
30951         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30952
30953 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30954
30955         exclude: Fix header file problems.
30956         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30957
30958 2009-12-01  Jim Meyering  <meyering@redhat.com>
30959
30960         fts: fts_open: do not let an empty string cause immediate failure
30961         This is required in support of GNU rm, for which the command
30962         "rm A '' B" must process and remove both A and B, in spite of
30963         the empty string argument.
30964         * lib/fts.c (fts_open): Do not let the presence of an empty string
30965         cause fts_open to fail immediately.  Most fts-using tools must be
30966         able to process all arguments, in order, and can be expected to
30967         diagnose such arguments themselves.
30968
30969 2009-11-30  Eric Blake  <ebb9@byu.net>
30970
30971         utimens: fix compilation error
30972         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30973         Declare variable at right scope.
30974
30975 2009-11-29  Jim Meyering  <meyering@redhat.com>
30976
30977         bootstrap: handle perl-5.11's changed --version output
30978         * build-aux/bootstrap (get_version): Handle perl separately,
30979         since perl-5.11's --version output is different.
30980
30981 2009-11-28  Jim Meyering  <meyering@redhat.com>
30982
30983         userspec: depend on the inttostr module, too
30984         * modules/userspec (Depends-on): Add inttostr.
30985
30986         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30987         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30988         number of MAXUID when it evaluates to (uid_t) -1.
30989         Likewise for group ID.  Reported by Matt McCutchen in
30990         <http://savannah.gnu.org/bugs/?28113>
30991
30992         userspec: reformat to use spaces, not TABs
30993         * lib/userspec.c: Expand TABs to spaces.
30994         Add Emacs' "indent-tabs-mode: nil" hint.
30995
30996 2009-11-27  Eric Blake  <ebb9@byu.net>
30997
30998         getopt-gnu: flush out another BSD bug
30999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31000         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31001         flush out BSD bug.
31002         * tests/test-getopt.h (test_getopt): End lists with NULL.
31003         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31004         (test_getopt_long_posix): Enhance test.
31005         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31006         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31007         getopt-gnu.
31008         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31009         Likewise.
31010
31011 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31012
31013         * modules/idpriv-droptemp-tests (Notice): Fix text.
31014
31015 2009-11-27  Jim Meyering  <meyering@redhat.com>
31016
31017         test-xalloc-die: avoid spurious failure due to libtool argv difference
31018         In a libtool-enabled project, this test would fail due to a difference
31019         in the emitted program name, e.g.,
31020         -test-xalloc-die: memory exhausted
31021         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31022         Use program to avoid that.
31023         * modules/xalloc-die-tests (Depends-on): Add progname.
31024         * tests/test-xalloc-die.c: Include progname.h".
31025         (program_name): Remove decl.
31026         (main): Call set_program_name.
31027         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31028
31029 2009-11-26  Richard Jones  <rjones@redhat.com>
31030
31031         w32sock: leave win32 error in place.
31032         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31033
31034 2009-11-26  Eric Blake  <ebb9@byu.net>
31035
31036         init.sh: suggest to use skip_ and fail_ functions in comments
31037         * tests/init.sh: Add a sentence.
31038
31039 2009-11-25  Bruno Haible  <bruno@clisp.org>
31040
31041         init.sh: add documentation in comments
31042         * tests/init.sh: Add some developer and user documentation.
31043
31044 2009-11-26  Jim Meyering  <meyering@redhat.com>
31045
31046         init.sh: accommodate even those who specify bogus srcdir manually
31047         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31048         configure-time tests to be sanitized, so that there is no need to
31049         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31050         (with no double quotes) suffices.  However, since tests may be
31051         invoked manually, and since you may explicitly set srcdir to the
31052         name of a directory containing spaces, do quote its uses here.
31053         * tests/test-pread.sh: Likewise.
31054         Suggested by Bruno Haible.
31055
31056         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31057         * tests/test-pread.sh: Write no data into the pipe, because
31058         test-pread actually reads none.  This avoids a diagnostic,
31059         "bash: echo: write error: Broken pipe", that arises in the unusual
31060         event something is ignoring SIGPIPE, and might be interpreted
31061         as some sort of failure.  Reported by Bruno Haible.
31062
31063 2009-11-25  Jim Meyering  <meyering@redhat.com>
31064
31065         test-pread: cover failure with ESPIPE and EINVAL
31066         * tests/test-pread.c (main): Test for failure, too.
31067         * tests/test-pread.sh: Invoke with stdin on a pipe.
31068         Suggested by Eric Blake.
31069
31070         pread: improvement and fix
31071         * modules/pread (Depends-on): Depend on lseek, for portability to
31072         e.g., mingw.  Suggested by Eric Blake.
31073         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31074
31075         unistd.in.h: correct declaration of pread
31076         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31077         Reported by Richard W.M. Jones.
31078
31079         test-pread.sh: distribute the test script
31080         * modules/pread-tests (Files): Include test-pread.sh.
31081
31082         test-pread.sh: clean up
31083         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31084         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31085         That is unnecessary, since it's always ".".
31086         Suggestion from Eric Blake.
31087
31088         test-pread.sh: make executable
31089         * tests/test-pread.sh: Set executable bit.
31090         Reported by Eric Blake.
31091
31092         correct typo in test-pread.sh
31093         * tests/test-pread.sh: Add #! line.
31094
31095         test pread
31096         * tests/test-pread.c: New file.
31097         * tests/test-pread.sh: Likewise.
31098         * modules/pread-tests: Likewise.
31099
31100         pread: new module
31101         * modules/pread: New file.
31102         * lib/unistd.in.h (pread): Define/declare.
31103         * lib/pread.c (pread): New file.
31104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31105         * modules/unistd (Makefile.am): Substitute witnesses.
31106         * doc/posix-functions/pread.texi (pread): Update.
31107         * MODULES.html.sh: Add pread.
31108
31109 2009-11-25  Jim Meyering  <meyering@redhat.com>
31110
31111         tests/init.sh: new file to be used via most *.sh tests
31112         * tests/init.sh: New file.
31113
31114 2009-11-25  Eric Blake  <ebb9@byu.net>
31115
31116         utimens: work around older Linux failure with symlinks
31117         * lib/utimens.c (lutimensat_works_really): New variable.
31118         (fdutimens, lutimens): Use it to manage kernels that support
31119         nanosecond times on files, but not on symlinks.
31120         Reported by OndÅ™ej Vašík.
31121
31122         utimes: fix configure grammar
31123         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31124
31125 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31126
31127         regex: Fix fastmap for multibyte character ranges.
31128         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31129         characters when a multibyte character range is included.
31130
31131 2009-11-22  Andy Wingo  <wingo@pobox.com>
31132
31133         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31134         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31135
31136 2009-11-24  Bruno Haible  <bruno@clisp.org>
31137
31138         doc: Most *_l functions exist in MacOS X 10.5.
31139         * doc/posix-functions/duplocale.texi: Update platforms list.
31140         * doc/posix-functions/freelocale.texi: Likewise.
31141         * doc/posix-functions/newlocale.texi: Likewise.
31142         * doc/posix-functions/uselocale.texi: Likewise.
31143         * doc/posix-functions/isalnum_l.texi: Likewise.
31144         * doc/posix-functions/isalpha_l.texi: Likewise.
31145         * doc/posix-functions/isblank_l.texi: Likewise.
31146         * doc/posix-functions/iscntrl_l.texi: Likewise.
31147         * doc/posix-functions/isdigit_l.texi: Likewise.
31148         * doc/posix-functions/isgraph_l.texi: Likewise.
31149         * doc/posix-functions/islower_l.texi: Likewise.
31150         * doc/posix-functions/isprint_l.texi: Likewise.
31151         * doc/posix-functions/ispunct_l.texi: Likewise.
31152         * doc/posix-functions/isspace_l.texi: Likewise.
31153         * doc/posix-functions/isupper_l.texi: Likewise.
31154         * doc/posix-functions/iswalnum_l.texi: Likewise.
31155         * doc/posix-functions/iswalpha_l.texi: Likewise.
31156         * doc/posix-functions/iswblank_l.texi: Likewise.
31157         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31158         * doc/posix-functions/iswctype_l.texi: Likewise.
31159         * doc/posix-functions/iswdigit_l.texi: Likewise.
31160         * doc/posix-functions/iswgraph_l.texi: Likewise.
31161         * doc/posix-functions/iswlower_l.texi: Likewise.
31162         * doc/posix-functions/iswprint_l.texi: Likewise.
31163         * doc/posix-functions/iswpunct_l.texi: Likewise.
31164         * doc/posix-functions/iswspace_l.texi: Likewise.
31165         * doc/posix-functions/iswupper_l.texi: Likewise.
31166         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31167         * doc/posix-functions/isxdigit_l.texi: Likewise.
31168         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31169         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31170         * doc/posix-functions/strcoll_l.texi: Likewise.
31171         * doc/posix-functions/strfmon_l.texi: Likewise.
31172         * doc/posix-functions/strftime_l.texi: Likewise.
31173         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31174         * doc/posix-functions/strxfrm_l.texi: Likewise.
31175         * doc/posix-functions/tolower_l.texi: Likewise.
31176         * doc/posix-functions/toupper_l.texi: Likewise.
31177         * doc/posix-functions/towctrans_l.texi: Likewise.
31178         * doc/posix-functions/towlower_l.texi: Likewise.
31179         * doc/posix-functions/towupper_l.texi: Likewise.
31180         * doc/posix-functions/wcscoll_l.texi: Likewise.
31181         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31182         * doc/posix-functions/wctrans_l.texi: Likewise.
31183         * doc/posix-functions/wctype_l.texi: Likewise.
31184         * doc/glibc-functions/strptime_l.texi: Likewise.
31185         * doc/glibc-functions/strtod_l.texi: Likewise.
31186         * doc/glibc-functions/strtof_l.texi: Likewise.
31187         * doc/glibc-functions/strtol_l.texi: Likewise.
31188         * doc/glibc-functions/strtold_l.texi: Likewise.
31189         * doc/glibc-functions/strtoll_l.texi: Likewise.
31190         * doc/glibc-functions/strtoul_l.texi: Likewise.
31191         * doc/glibc-functions/strtoull_l.texi: Likewise.
31192         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31193         * doc/glibc-functions/wcstod_l.texi: Likewise.
31194         * doc/glibc-functions/wcstof_l.texi: Likewise.
31195         * doc/glibc-functions/wcstol_l.texi: Likewise.
31196         * doc/glibc-functions/wcstold_l.texi: Likewise.
31197         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31198         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31199         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31200
31201 2009-11-24  Bruno Haible  <bruno@clisp.org>
31202
31203         duplocale: Fix logic bug.
31204         * lib/duplocale.c: Don't include <langinfo.h>.
31205         (_NL_LOCALE_NAME): Remove macro.
31206         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31207         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31208
31209 2009-11-23  Jim Meyering  <meyering@redhat.com>
31210
31211         test-update-copyright: don't hard-code /usr/bin/perl
31212         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31213         perl to print the current year.  Gilles Espinasse reported that
31214         the replaced use of perl was hard-coded as /usr/bin/perl.
31215
31216 2009-11-23  Bruno Haible  <bruno@clisp.org>
31217
31218         duplocale: Add support for glibc 2.3.x.
31219         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31220
31221 2009-11-22  Bruno Haible  <bruno@clisp.org>
31222
31223         vasnprintf: Tiny optimization.
31224         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31225         MacOS X.
31226
31227 2009-11-22  Bruno Haible  <bruno@clisp.org>
31228
31229         Tests for module 'duplocale'.
31230         * modules/duplocale-tests: New file.
31231         * tests/test-duplocale.c: New file.
31232
31233         New module 'duplocale'.
31234         * m4/duplocale.m4: New file.
31235         * lib/locale.in.h (duplocale): New declaration.
31236         * lib/duplocale.c: New file.
31237         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31238         gl_LOCALE_H_DEFAULTS): New macros.
31239         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31240         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31241         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31242         REPLACE_DUPLOCALE.
31243         * modules/duplocale: New file.
31244         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31245
31246 2009-11-22  Bruno Haible  <bruno@clisp.org>
31247
31248         * modules/locale-tests (configure.ac): Test for newlocale function.
31249         * tests/test-locale.c: When the system has extended locale functions,
31250         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31251
31252         locale: Make locale_t available when possible.
31253         * lib/locale.in.h: Include <xlocale.h> when it exists.
31254         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31255         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31256         * modules/locale (Depends-on): Add extensions.
31257         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31258         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31259
31260 2009-11-22  Bruno Haible  <bruno@clisp.org>
31261
31262         Add comments.
31263         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31264         invocation.
31265         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31266         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31267         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31268
31269 2009-11-22  Bruno Haible  <bruno@clisp.org>
31270
31271         error: account for the possibility of freopen (stdout).
31272         * lib/error.c: Include <unistd.h>.
31273         (flush_stdout): New function, extracted from error and error_at_line.
31274         Determine stdout's fd dynamically.
31275         (error, error_at_line): Invoke flush_stdout.
31276         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31277         * modules/error (Depends-on): Add unistd.
31278
31279 2009-11-22  Bruno Haible  <bruno@clisp.org>
31280
31281         diffseq: Add comment.
31282         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31283
31284 2009-11-22  Jim Meyering  <meyering@redhat.com>
31285
31286         c-stack: avoid defining an unused static function
31287         * lib/c-stack.c (find_stack_direction): Do not define this function
31288         when it will not be used.
31289
31290         diffseq: avoid spurious gcc warnings
31291         * lib/diffseq.h (IF_LINT2): Define.
31292         (compareseq): Use it to initialize two members of "part".
31293         This avoids two used-uninitialized warnings.
31294
31295 2009-11-21  Jim Meyering  <meyering@redhat.com>
31296
31297         c-stack: avoid "ignoring return value of `write'" warning
31298         * lib/c-stack.c: Include "ignore-value.h".
31299         (die): Explicitly ignore each write return value.
31300         * modules/c-stack (Depends-on): Add ignore-value.
31301
31302 2009-11-21  Bruno Haible  <bruno@clisp.org>
31303
31304         diffseq: reduce scope of variable 'best'.
31305         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31306         variable, earlier used for two different purposes.
31307
31308 2009-11-21  Jim Meyering  <meyering@redhat.com>
31309
31310         diffseq: remove useless assignment to "best"
31311         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31312         assignment.  At that point "best" is already guaranteed to be zero.
31313
31314 2009-11-20  Eric Blake  <ebb9@byu.net>
31315
31316         build: mention ftp redirector in release announcements
31317         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31318         values that used to come from cfg.mk; mention FTP redirect URL.
31319         * build-aux/announce-gen: Mention the mirror list.
31320         Suggested by Karl Berry.
31321
31322         nanosleep: improve port to mingw
31323         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31325         LIB_NANOSLEEP, but only when needed.
31326         * modules/select (Link): Document LIBSOCKET.
31327         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31328         enough.
31329
31330         nanosleep: work around cygwin bug
31331         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31332         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31333         bug.
31334         (getnow): Delete, not needed.
31335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31336         LIB_CLOCK_GETTIME.
31337         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31338         clock-time, gettime.
31339         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31340         bug.
31341         * modules/nanosleep-tests: New test.
31342         * tests/test-nanosleep.c: New file.
31343
31344         sleep: work around cygwin bug
31345         * lib/sleep.c (rpl_sleep): Work around the bug.
31346         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31347         (gl_PREREQ_SLEEP): Delete unused macro.
31348         * modules/sleep (Depends-on): Add verify.
31349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31350         * modules/unistd (Makefile.am): Substitute witness.
31351         * lib/unistd.in.h (sleep): Update prototype.
31352         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31353         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31354         * modules/sleep-tests (Depends-on): Check for alarm.
31355
31356 2009-11-20  Jim Meyering  <meyering@redhat.com>
31357
31358         maint.mk: improve sc_prohibit_magic_number_exit
31359         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31360         so it does not match uses like System.exit(1).
31361         Add comments showing how to correct all offenders.
31362
31363 2009-11-19  Eric Blake  <ebb9@byu.net>
31364
31365         xalloc-die-tests: add missing library
31366         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31367
31368         test-xvasprintf: silence compiler warnings
31369         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31370         empty string from gcc.
31371
31372 2009-11-19  Jim Meyering  <meyering@redhat.com>
31373
31374         xfreopen: new module, from coreutils
31375         * modules/xfreopen: New module.
31376         * lib/xfreopen.c: New file.
31377         * lib/xfreopen.h: New file.
31378         * MODULES.html.sh (File stream based Input/Output"): Add it.
31379
31380 2009-11-19  Eric Blake  <ebb9@byu.net>
31381
31382         manywarnings: depend on warnings
31383         * modules/manywarnings (Depends-on): Add warnings.
31384
31385         build: avoid compiler warnings
31386         * lib/select.c (rpl_select): Delete unused variable.
31387         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31388
31389 2009-11-18  Eric Blake  <ebb9@byu.net>
31390
31391         tests: avoid false negative with --with-packager
31392         * tests/test-version-etc.sh: Discard packager information.
31393         * tests/test-argp-version-etc-1.sh: Likewise.
31394         Reported by Mike Frysinger.
31395
31396         utimens: fix regression on Solaris
31397         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31398         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31399         can only change fd timestamps via futimesat.  Instead, use an
31400         additional witness macro to avoid BSD bug.
31401         Reported by Jim Meyering.
31402
31403 2009-11-17  Eric Blake  <ebb9@byu.net>
31404
31405         usleep: use it to simplify tests
31406         * modules/stat-time-tests (Depends-on): Add usleep.
31407         (configure.ac): Drop usleep check.
31408         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31409         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31410         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31411         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31412         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31413         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31414         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31415         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31416         Likewise.
31417         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31418         * tests/test-lchown.h (nap): Likewise.
31419         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31420         * tests/test-stat-time.c (nap): Likewise.
31421         * tests/test-utimens-common.h (nap): Update comments.
31422
31423         usleep: new module
31424         * modules/usleep: New file.
31425         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31426         * lib/usleep.c (usleep): Likewise.
31427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31428         * modules/unistd (Makefile.am): Substitute witnesses.
31429         * lib/unistd.in.h (usleep): Add declaration.
31430         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31431         * MODULES.html.sh (Date and time): Likewise.
31432         * modules/usleep-tests (Depends-on): New test.
31433         * tests/test-usleep.c: New file.
31434
31435         chown: work around OpenBSD bug
31436         * lib/chown.c (rpl_chown): Work around the bug.
31437         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31438         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31439         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31440         * modules/chown (Depends-on): Add stdbool.
31441         * modules/lchown (Depends-on): Likewise.
31442         * doc/posix-functions/chown.texi (chown): Document the bug.
31443         * doc/posix-functions/lchown.texi (lchown): Likewise.
31444         * tests/test-lchown.h (test_chown): Relax test.
31445
31446         mkstemp: avoid conflict with C++ keyword template
31447         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31448         * lib/mkostemp.c (mkostemp): Likewise.
31449         * lib/mkostemps.c (mkostemps): Likewise.
31450         * lib/mkstemp.c (mkstemp): Likewise.
31451         * lib/mkstemps.c (mkstemps): Likewise.
31452
31453         xalloc-die-tests: optimize
31454         * tests/test-xalloc-die.sh: Reduce number of processes.
31455
31456 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31457
31458         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31459         patch from ludo@gnu.org (Ludovic Courtès).
31460
31461 2009-11-17  Jim Meyering  <meyering@redhat.com>
31462
31463         version-etc: use proper license string
31464         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31465         * modules/version-etc-fsf: Likewise.
31466
31467 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31468
31469         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31470         printed to stdout.  Deal with EOL differences.
31471
31472 2009-11-17  Eric Blake  <ebb9@byu.net>
31473
31474         unsetenv: work around Solaris bug
31475         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31476         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31477         Reported by Jim Meyering.
31478
31479         vasnprintf: avoid compiler warnings
31480         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31481         variables.
31482         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31483
31484 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31485
31486         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31487         settings since xalloc-die is no longer the self test,
31488         xalloc-die.sh is.
31489
31490 2009-11-17  Jim Meyering  <meyering@redhat.com>
31491
31492         test-xalloc-die.sh: make the code agree with the commit log
31493         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31494         at the end, just in case you happen to have a test-xalloc-die
31495         program in some other PATH directory.
31496
31497         test-xalloc-die.sh: fix a portability bug
31498         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31499         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31500         Otherwise, argv[0] (as often seen in diagnostics) would be too
31501         system-dependent, sometimes with, and sometimes without the leading "./".
31502
31503         version-etc-fsf: relax license to LGPLv3+
31504         * modules/version-etc-fsf (License): Relax license.
31505
31506 2009-11-16  Eric Blake  <ebb9@byu.net>
31507
31508         xalloc-die-tests: avoid printing null pointer
31509         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31510         shell script.
31511         * tests/test-xalloc-die.c (program_name): Declare.
31512         * tests/test-xalloc-die.sh (tmpfiles): New file.
31513
31514         setenv, unsetenv: work around various bugs
31515         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31516         (setenv) [HAVE_SETENV]: Work around bugs.
31517         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31518         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31519         for bugs.
31520         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31521         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31523         * modules/stdlib (Makefile.am): Update substitutions.
31524         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31525         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31526         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31527         * modules/setenv-tests: New test.
31528         * modules/unsetenv-tests: Likewise.
31529         * tests/test-setenv.c: New file.
31530         * tests/test-unsetenv.c: Likewise.
31531
31532 2009-11-16  Jim Meyering  <meyering@redhat.com>
31533
31534         version-etc: relax license to LGPLv3+
31535         * modules/version-etc (License): Relax license.
31536
31537         better AC_REQUIRE expanded-before-required-warning avoidance
31538         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31539         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31540         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31541         which is no longer needed.
31542
31543 2009-11-16  Eric Blake  <ebb9@byu.net>
31544
31545         test-freading: clean up temporary file
31546         * tests/test-freading.c (main): Remove file on success, and use
31547         ASSERT more liberally.
31548         Reported by Jim Meyering.
31549
31550 2009-11-16  Jim Meyering  <meyering@redhat.com>
31551
31552         avoid new AC_REQUIRE expanded-before-required warnings
31553         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31554         merely using it.
31555         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31556         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31557
31558 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31559
31560         * tests/test-xalloc-die.c: New file.
31561         * modules/xalloc-die-tests: New file.
31562         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31563         XFAIL_TESTS so it can be appended by modules.
31564
31565 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31566
31567         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31568         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31569
31570 2009-11-14  Eric Blake  <ebb9@byu.net>
31571
31572         fnmatch: avoid compiler warning
31573         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31574         to silence compiler warning about mismatch signedness in ?:.
31575         Reported by Robert Millan.
31576
31577         intprops: add double-inclusion guard
31578         * lib/intprops.h: Allow idempotent includes.
31579         Suggested by Bruce Korb.
31580
31581         openat: detect Solaris fchownat bug
31582         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31583         penalizing glibc chownat when only lchownat is broken.
31584         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31585         trailing slash bugs.
31586         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31587         * modules/openat-tests (Files): Include more files.
31588         (Depends-on): Add mgetgroups, sleep, stat-time.
31589         (configure.ac): Add additional checks.
31590         (Makefile.am): Build new test.
31591         * tests/test-fchownat.c: New file.
31592
31593         lchown: detect Solaris and FreeBSD bug
31594         * lib/lchown.c (rpl_lchown): Work around bug.
31595         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31597         * modules/unistd (Makefile.am): Populate it.
31598         * lib/unistd.in.h (lchown): Update declaration.
31599         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31600         * modules/lchown-tests: New file.
31601         * tests/test-lchown.h (test_lchown): Likewise.
31602         * tests/test-lchown.c (main): Likewise.
31603
31604         chown: detect Solaris and FreeBSD bug
31605         * lib/chown.c (rpl_chown): Work around bug.
31606         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31607         (gl_PREREQ_CHOWN): Delete.
31608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31609         * modules/unistd (Makefile.am): Populate it.
31610         * lib/unistd.in.h (chown): Update declaration.
31611         * lib/lchown.c (chown): Update client.
31612         * modules/lchown (Depends-on): Add lstat.
31613         * doc/posix-functions/chown.texi (chown): Document the bug.
31614         * doc/posix-functions/getgroups.texi (getgroups): Document
31615         getgroups pitfall.
31616         * modules/chown-tests: New file.
31617         * tests/test-chown.h (test_chown): Likewise.
31618         * tests/test-chown.c (main): Likewise.
31619
31620 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31621
31622         gnulib-tool: correctly detect absence of m4 directories
31623         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31624
31625 2009-11-14  Jim Meyering  <meyering@redhat.com>
31626
31627         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31628         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31629
31630 2009-11-14  John W. Eaton  <jwe@gnu.org>
31631
31632         strftime.h: wrap funtion declaration in extern "C" block
31633         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31634
31635 2009-11-13  Eric Blake  <ebb9@byu.net>
31636
31637         getgroups: avoid compiler warning
31638         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31639
31640         getgroups: work around FreeBSD bug
31641         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31642         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31643         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31644         * tests/test-getgroups.c (main): Fix buffer overrun.
31645
31646         getgroups: avoid compilation failure
31647         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31648         * modules/getgroups (Depends-on): Add stdint.
31649
31650 2009-11-13  Jim Meyering  <meyering@redhat.com>
31651
31652         test-getgroups: avoid compilation failure
31653         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31654
31655 2009-11-13  Eric Blake  <ebb9@byu.net>
31656
31657         mgetgroups: new module, taken from coreutils
31658         * modules/mgetgroups: New file.
31659         * lib/mgetgroups.h: Likewise.
31660         * lib/mgetgroups.c (mgetgroups): Likewise.
31661         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31662         * MODULES.html.sh (Users and groups): Mention it.
31663
31664         getgroups: don't expose GETGROUPS_T to user
31665         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31666         an element at a time if GETGROUPS_T is wrong size.
31667         * lib/getugroups.h (getugroups): Change signature.
31668         * lib/unistd.in.h (getgroups): Likewise.
31669         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31670         signature needs fixing.
31671         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31672         AC_TYPE_GETGROUPS.
31673         * modules/group-member (Depends-on): Add getgroups.
31674         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31675         (group_member): Rely on getgroups replacement.
31676         * lib/getugroups.c (getugroups): Use gid_t.
31677         * tests/test-getgroups.c (main): Likewise.
31678         * NEWS: Mention the signature change.
31679         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31680         problem with signature.
31681         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31682         GETGROUPS_T is still useful for setgroups.
31683
31684         getgroups, getugroups: provide stubs for mingw
31685         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31686         * lib/getugroups.c (getugroups): Likewise.
31687         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31688         function.  Modernize replacement scheme.
31689         (gl_PREREQ_GETGROUPS): Delete.
31690         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31691         * modules/getgroups (configure.ac): Declare witness.
31692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31693         * modules/unistd (Depends-on): Substitute witness.
31694         * lib/unistd.in.h (getgroups): Declare replacement.
31695
31696         getgroups: avoid calling exit
31697         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31698         drop xalloc.
31699         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31700         dependencies.
31701         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31702         exiting, in the rare case of malloc failure.
31703
31704         getgroups: fix logic error
31705         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31706         has more than 20 groups.
31707         * modules/getgroups-tests: New test.
31708         * tests/test-getgroups.c: New file.
31709
31710 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31711
31712         * tests/test-base64.c: Improve.
31713
31714 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31715
31716         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31717         Blake <ebb9@byu.net>.
31718
31719 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31720
31721         * tests/test-xvasprintf.c: Add %s%s related checks.
31722
31723 2009-11-12  Eric Blake  <ebb9@byu.net>
31724
31725         version-etc: match standards.texi style
31726         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31727         and use <> only for URLs.
31728
31729 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31730
31731         fts: do not fail on a submount during traversal
31732         * lib/fts.c (fts_build): Read the stat info again after opening
31733         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31734         Original report at http://bugzilla.redhat.com/501848.
31735
31736 2009-11-12  Jim Meyering  <meyering@redhat.com>
31737
31738         bootstrap: sync from coreutils
31739         * build-aux/bootstrap (bootstrap_epilogue): New function.
31740         Use git_modules_config in one more place.  This make bootstrap's
31741         --gnulib-srcdir option more useful for testing.
31742
31743         bootstrap: generalize autoheader check
31744         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31745         AC_CONFIG_HEADERS.
31746
31747 2009-11-11  Eric Blake  <ebb9@byu.net>
31748
31749         mkfifoat: use new modules for Solaris and BSD bugs
31750         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31751         * lib/mkfifoat.c (mknodat): Split...
31752         * lib/mknodat.c (mknodat): ...into new file.
31753         * modules/mkfifoat (Files): Ship new file.
31754         (Depends-on): Add mkfifo, mknod.
31755         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31756         (Depends-on): Add symlink.
31757         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31758         redundant with test_mkfifo.h.
31759         (do_mkfifoat, do_mknodat): New helpers.
31760
31761         mknod: new module
31762         * modules/mknod: New file.
31763         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31764         * lib/mknod.c (mknod): Likewise.
31765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31766         defaults.
31767         * modules/sys_stat (Makefile.am): Substitute them.
31768         * lib/sys_stat.in.h (mknod): Declare replacement.
31769         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31770         Document it.
31771         * doc/posix-functions/mknod.texi (mknod): Likewise.
31772         * modules/mknod-tests: New test.
31773         * tests/test-mknod.c: Likewise.
31774
31775         mkfifo: new module
31776         * modules/mkfifo: New file.
31777         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31778         * lib/mkfifo.c (mkfifo): Likewise.
31779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31780         defaults.
31781         * modules/sys_stat (Makefile.am): Substitute them.
31782         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31783         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31784         Document it.
31785         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31786         * modules/mkfifo-tests: New test.
31787         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31788         from test-mkfifoat.c.
31789         * tests/test-mkfifo.c: New file.
31790
31791         readlink: detect FreeBSD bug
31792         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31793         slash on symlink.
31794         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31795         * tests/test-readlink.h (test_readlink): Enhance test.
31796
31797         symlink: detect FreeBSD bug
31798         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31799         slash on symlink.
31800         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31801         * tests/test-symlink.h (test_symlink): Enhance test.
31802
31803 2009-11-10  Eric Blake  <ebb9@byu.net>
31804
31805         link: detect FreeBSD bug
31806         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31807         symlink.
31808         * doc/posix-functions/link.texi (link): Document the bug.
31809         * tests/test-link.h (test_link): Enhance test.
31810         * tests/test-linkat.c (main): Update caller.
31811
31812         unlink, remove: detect FreeBSD bug
31813         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31814         slash on symlink.
31815         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31816         * doc/posix-functions/remove.texi (remove): Likewise.
31817         * tests/test-unlink.h (test_unlink): Enhance test.
31818         * tests/test-remove.c (main): Likewise.
31819
31820 2009-11-09  Eric Blake  <ebb9@byu.net>
31821
31822         rename: detect FreeBSD bug
31823         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31824         slash on symlink.
31825         * modules/renameat-tests (Depends-on): Add filenamecat.
31826         * tests/test-rename.h (test_rename): Allow one more errno.
31827         * tests/test-renameat.c (main): Likewise.
31828         * doc/posix-functions/rename.texi (rename): Document the bug.
31829
31830         open: detect FreeBSD bug
31831         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31832         symlink.
31833         * doc/posix-functions/open.texi (open): Document the bug.
31834         * doc/posix-functions/utimes.texi (utimes): Likewise.
31835         * tests/test-open.h (test_open): Add parameters, and test symlink
31836         handling.
31837         * tests/test-open.c (main): Adjust caller.
31838         * tests/test-fcntl-safer.c (main): Likewise.
31839         * modules/open-tests (Depends-on): Add stdbool, symlink.
31840         * modules/fcntl-safer-tests (Depends-on): Likewise.
31841         * tests/test-openat.c (main): Add test-open tests.
31842
31843         stat: detect FreeBSD bug
31844         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31845         symlink.
31846         * doc/posix-functions/stat.texi (stat): Document the bug.
31847         * tests/test-stat.h (test_stat_func): Add argument.
31848         * tests/test-stat.c (main): Adjust caller.
31849         * tests/test-fstatat.c (main): Likewise.
31850         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31851         Reported by Jim Meyering.
31852
31853 2009-11-09  James Youngman  <jay@gnu.org>
31854
31855         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31856         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31857
31858 2009-11-08  Jim Meyering  <meyering@redhat.com>
31859
31860         utimens: remove invalid futimesat call
31861         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31862         It used the file descriptor of the target file as the DIR_FD
31863         parameter and NULL as the file name.  That caused failure with
31864         errno == EFAULT on FreeBSD-8.0-rc2
31865
31866 2009-11-07  Eric Blake  <ebb9@byu.net>
31867
31868         fflush, freadseek: use fseeko, not fseek
31869         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31870         (clear_ungetc_buffer): Avoid potential problems on large files.
31871         * lib/freadseek.c (freadseek): Likewise.
31872         * modules/freadseek (Depends-on): Add fseeko.
31873         * modules/fseek (configure.ac): Set a witness.
31874         * tests/test-fflush.c (main): Use fseeko.
31875         * tests/test-fpurge.c (fseek): Disable link warning.
31876         * tests/test-freadable.c (fseek): Likewise.
31877         * tests/test-freading.c (fseek): Likewise.
31878         * tests/test-fseeko.c (fseek): Likewise.
31879         * tests/test-ftell.c (fseek): Likewise.
31880         * tests/test-ftello.c (fseek): Likewise.
31881         * tests/test-fwritable.c (fseek): Likewise.
31882         * tests/test-fwriting.c (fseek): Likewise.
31883
31884 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31885
31886         * modules/memchr (Depends-on): Drop getpagesize dependency.
31887
31888 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31889
31890         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31891         Reported by Ludovic Courtès.
31892         * build-aux/pmccabe2html: Improve example usage.
31893         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31894
31895 2009-11-06  Jim Meyering  <meyering@redhat.com>
31896
31897         do-release-commit-and-tag: New module.
31898         Automate the release-commit and tag process.
31899         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31900         * modules/do-release-commit-and-tag: New file.
31901         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31902
31903 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31904
31905         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31906         because test-select.c uses inet_pton.
31907
31908 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31909
31910         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31911         GETADDRINFO_LIB.  Bump serial number.
31912         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31913         Suggested by Eric Blake <ebb9@byu.net>.
31914
31915 2009-11-05  Eric Blake  <ebb9@byu.net>
31916
31917         strtod: detect darwin bug
31918         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31919         Reported by Leo Davis.
31920
31921         freopen-safer: new module
31922         * modules/freopen-safer: New module.
31923         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31924         * lib/freopen-safer.c (freopen_safer): New file.
31925         * lib/stdio-safer.h (freopen_safer): New declaration.
31926         * lib/stdio--.h (freopen): New override.
31927         * MODULES.html.sh (File stream based Input/Output): Mention it.
31928         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31929         freopen-safer module.
31930         * doc/posix-functions/stderr.texi (stderr): Likewise.
31931         * doc/posix-functions/stdin.texi (stdin): Likewise.
31932         * doc/posix-functions/stdout.texi (stdout): Likewise.
31933         * modules/freopen-safer-tests: New test.
31934         * tests/test-reopen-safer.c: New file.
31935
31936 2009-11-05  Jim Meyering  <meyering@redhat.com>
31937
31938         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31939         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31940
31941 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31942
31943         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31944
31945 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31946
31947         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31948
31949 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31950
31951         Fix link error.
31952         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31953         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31954
31955 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31956
31957         * tests/test-func.c: Also test value of __func__.
31958
31959 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31960
31961         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31962         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31963
31964 2009-11-05  Bruno Haible  <bruno@clisp.org>
31965
31966         Fix link error.
31967         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31968         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31969         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31970
31971 2009-11-05  Bruno Haible  <bruno@clisp.org>
31972
31973         Tests for module 'inet_pton'.
31974         * modules/inet_pton-tests: New file.
31975         * tests/test-inet_pton.c: New file.
31976
31977 2009-11-05  Bruno Haible  <bruno@clisp.org>
31978
31979         Tests for module 'inet_ntop'.
31980         * modules/inet_ntop-tests: New file.
31981         * tests/test-inet_ntop.c: New file.
31982
31983 2009-11-04  Eric Blake  <ebb9@byu.net>
31984
31985         stdlib-safer: wrap all mkstemp variants
31986         * modules/mkostemp (configure.ac): Set witness.
31987         * modules/mkostemps (configure.ac): Likewise.
31988         * modules/mkstemps (configure.ac): Likewise.
31989         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31990         (mkstemps_safer): Wrap more functions.
31991         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31992         wrapping.
31993         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31994         (mkstemps_safer): Implement the wrappers.
31995
31996         mkstemps, mkostemps: new modules
31997         * modules/mkostemps: New module.
31998         * modules/mkstemps: Likewise.
31999         * lib/mkostemps.c (mkostemps): New file.
32000         * lib/mkstemps.c (mkstemps): Likewise.
32001         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32002         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32004         * modules/stdlib (Makefile.am): Substitute them.
32005         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32006         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32007         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32008         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32009         * MODULES.html.sh (File system functions): Mention them.
32010
32011         tempname: resync from glibc
32012         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32013         same values for __GT_FILE as glibc.  Abort even when assertions
32014         are disabled.
32015         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32016         match its value otherwise.  Allow idempotent inclusion.
32017         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32018         * lib/mkostemp.c (mkostemp): Likewise.
32019         * lib/mkstemp.c (mkstemp): Likewise.
32020         * lib/tmpfile.c (tmpfile): Likewise.
32021         * NEWS: Document this.
32022
32023         utimens: fix use of futimens on older Linux
32024         * lib/utimens.c (fdutimens): Use updated, rather than original,
32025         timespec to avoid bug in older Linux kernel.
32026         Reported by Simon Josefsson.
32027
32028 2009-11-04  Bruno Haible  <bruno@clisp.org>
32029
32030         Make num_processors more flexible and consistent.
32031         * lib/nproc.h (enum nproc_query): New type.
32032         (num_processors): Add a 'query' argument.
32033         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32034         (num_processors): Add a 'query' argument. Test the value of the
32035         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32036         mingw, count the number of CPUs available for the current process.
32037         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32038         Check for sched_getaffinity and sched_getaffinity_np.
32039         * modules/nproc (Depends-on): Add c-ctype, extensions.
32040         * NEWS: Mention the change.
32041
32042 2009-11-03  Bruno Haible  <bruno@clisp.org>
32043
32044         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32045
32046 2009-11-03  Jim Meyering  <meyering@redhat.com>
32047
32048         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32049         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32050         if it is defined.
32051
32052 2009-11-02  Eric Blake  <ebb9@byu.net>
32053
32054         mktime, timegm: share common declaration
32055         * lib/mktime-internal.h: New file.
32056         * lib/mktime.c: Use it rather than open-coding a declaration.
32057         * lib/timegm.c: Likewise.
32058         * modules/mktime (Files): Ship it.
32059         * modules/timegm (Files): Likewise.
32060         Suggested by Bruno Haible.
32061
32062         test-update-copyright: update test to match script changes
32063         * tests/test-update-copyright.sh: Avoid hard-coding perl
32064         location.  Don't update *.bak created by earlier runs.
32065
32066 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32067             Simon Josefsson  <simon@josefsson.org>
32068             Bruno Haible  <bruno@clisp.org>
32069
32070         Fix link error on Solaris 8.
32071         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32072         also in libnsl. Define also INET_PTON_LIB.
32073         * modules/inet_pton (Link): New section.
32074
32075 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32076             Bruno Haible  <bruno@clisp.org>
32077
32078         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32079         * modules/inet_ntop (Link): New section.
32080         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32081
32082 2009-11-02  Eric Blake  <ebb9@byu.net>
32083
32084         maint: avoid compiler warnings in m4 macros
32085         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32086         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32087
32088 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32089
32090         * m4/pmccabe2html.m4: Remove file.
32091         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32092         function.  Change maintainer.
32093         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32094         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32095         Courtès).
32096
32097 2009-10-31  Eric Blake  <ebb9@byu.net>
32098
32099         fseeko: fix m4 regression
32100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32101         regression from 2009-10-27.
32102         Reported by Ralf Wildenhues.
32103
32104 2009-10-31  Jim Meyering  <meyering@redhat.com>
32105
32106         inttostr: aesthetics and improved (compile-time) safety
32107         Define inttype_is_signed rather than inttype_is_unsigned,
32108         since the sole use is via "#if inttype_is_signed".
32109         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32110         inttype_is_unsigned.
32111         * lib/offtostr.c (inttype_is_signed): Likewise.
32112         * lib/uinttostr.c (inttype_is_signed): Likewise.
32113         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32114         * lib/inttostr.c (inttostr): Use verify to cross-check the
32115         inttype_is_signed value and the signedness of the actual type.
32116         * modules/inttostr (Depends-on): Add verify.
32117
32118 2009-10-30  Eric Blake  <ebb9@byu.net>
32119
32120         build: avoid compiler warnings
32121         * lib/fchmodat.c (lchmod): Mark unused variables.
32122         * lib/getopt.c (_getopt_initialize): Likewise.
32123         * lib/mktime.c (__mktime_internal): Provide prototype.
32124         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32125         older gcc that do not understand #pragma GCC diagnostic.
32126         * lib/uinttostr.c (inttype_is_unsigned): Define.
32127         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32128
32129 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32130
32131         stat: fix compilation on AIX
32132         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32133         only see struct stat64.
32134
32135 2009-10-30  Eric Blake  <ebb9@byu.net>
32136
32137         exclude: make more robust
32138         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32139         rather than masking a coding bug.
32140         Suggested by Bruno Haible.
32141
32142 2009-10-30  Jim Meyering  <meyering@redhat.com>
32143
32144         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32145         Rather than putting #!/usr/bin/perl on the first line,
32146         start with a variant of what's recommended by "man perlrun" that
32147         invokes the first "perl" program from your shell's search path.
32148         * build-aux/gitlog-to-changelog: Replace #!... as above.
32149         Add a "Local Variables" perl mode setting.
32150         Prompted by a patch from Ludovic Courtès.
32151         Improved by Eric Blake.
32152         * build-aux/useless-if-before-free: Likewise.
32153         * build-aux/announce-gen: Likewise.
32154         * build-aux/update-copyright: Likewise.
32155
32156 2009-10-29  Eric Blake  <ebb9@byu.net>
32157
32158         filenamecat-lgpl: adjust clients
32159         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32160         filenamecat.
32161         * modules/renameat (Depends-on): Likewise.
32162
32163         filenamecat: split into filenamecat-lgpl
32164         * modules/filenamecat-lgpl: New module.
32165         * modules/filenamecat (Files): Move library-safe files into
32166         filenamecat-lgpl.
32167         (Depends-on): Add filenamecat-lgpl.
32168         (configure.ac): Declare witness.
32169         * lib/filenamecat.h (file_name_concat): Only declare when using
32170         GPL module.
32171         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32172         Move...
32173         * lib/filenamecat-lgpl.c: ...into new file.
32174         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32175         (gl_FILE_NAME_CONCAT): Use it.
32176         * MODULES.html.sh (File system functions): Mention new module.
32177
32178         argp: avoid memory leak
32179         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32180         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32181         base_name, since the latter malloc()s and can call exit().
32182         Leak introduced 2006-07-03.
32183
32184         dirname-lgpl: adjust clients that don't need full dirname
32185         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32186         * modules/filenamecat (Depends-on): Likewise.
32187         * modules/linkat (Depends-on): Likewise.
32188         * modules/mkancesdirs (Depends-on): Likewise.
32189         * modules/mkdir (Depends-on): Likewise.
32190         * modules/openat (Depends-on): Likewise.
32191         * modules/savewd (Depends-on): Likewise.
32192         * modules/rename (Depends-on): Likewise.
32193         (License): Relax license.
32194         * modules/mkdir-tests (Depends-on): Drop progname.
32195         (Makefile.am): Delete unneeded LDADD.
32196         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32197
32198         dirname: split into dirname-lgpl
32199         * modules/dirname-lgpl: New module.
32200         * modules/dirname (Files): Move library-safe files into
32201         dirname-lgpl.
32202         (Depends-on): Add dirname-lgpl.
32203         (configure.ac): Declare witness.
32204         * modules/double-slash-root (License): Relax license.
32205         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32206         module.
32207         * lib/dirname.c (dir_len, mdir_name): Move...
32208         * lib/dirname-lgpl.c: ...into new file.
32209         * lib/basename.c (last_component, base_len): Move...
32210         * lib/basename-lgpl.c: ...into new file.
32211         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32212         (gl_DIRNAME): Use it.
32213         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32214         Mention new module.
32215         * modules/dirname-tests (Depends-on): Add progname.
32216         * tests/test-dirname.c (program_name): Delete.
32217
32218         mkdir: make safe for libraries
32219         * modules/mkdir (Depends-on): Drop xalloc.
32220         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32221         exit.
32222
32223         tests: avoid some compiler warnings
32224         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32225         literals.
32226         * tests/test-memchr.c (main): Avoid type mismatch.
32227         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32228         * tests/test-base64.c (main): Likewise.
32229         * tests/test-getdelim.c (main): Likewise.
32230         * tests/test-gethostname.c (main): Likewise.
32231         * tests/test-getline.c (main): Likewise.
32232         * tests/test-netinet_in.c (main): Likewise.
32233         * tests/test-select.c (open_server_socket, main): Likewise.
32234         * tests/test-select-stdin.c (main): Likewise.
32235         * tests/test-sockets.c (main): Likewise.
32236         * tests/test-strsignal.c (main): Likewise.
32237         * tests/test-sys_select.c (main): Likewise.
32238         * tests/test-sys_socket.c (main): Likewise.
32239         * tests/test-u64.c (main): Likewise.
32240         * tests/test-xfprintf-posix.c (main): Likewise.
32241         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32242
32243         sockets: avoid compiler warning
32244         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32245
32246         maint: detect usage(1) and other suspicious exits
32247         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32248
32249 2009-10-29  Jim Meyering  <meyering@redhat.com>
32250
32251         timespec: long-to-int truncation could make timespec_cmp malfunction
32252         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32253         a multiple of 2^32 nanoseconds as no difference.
32254
32255 2009-10-28  Jim Meyering  <meyering@redhat.com>
32256
32257         fprintftime: wrap macro code argument in "do {...} while(0)"
32258         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32259         cpy macro must be a statement that can be followed by a semicolon.
32260         Now that the else clause contains a comment and is hence longer
32261         than one line, I require curly braces.  That in turn requires
32262         that we wrap this code block in the standard do...while(0).
32263
32264         fprintftime: remove stray semicolon from previous change
32265         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32266
32267         fprintftime: avoid a warning about ignored fwrite return value
32268         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32269         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32270         that is unsafe.
32271         * modules/fprintftime (Depends-on): Add ignore-value.
32272
32273         exclude: avoid an unwarranted warning
32274         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32275
32276 2009-10-27  Eric Blake  <ebb9@byu.net>
32277
32278         fseek: avoid compilation failure when fflush is replaced
32279         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32280         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32281         module is in use.
32282         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32283         module is not in use; since REPLACE_FSEEK worked otherwise.
32284         (GNULIB_FTELLO): Likewise for ftell.
32285         Reported by Ian Beckwith and others.
32286
32287 2009-10-27  Bruno Haible  <bruno@clisp.org>
32288
32289         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32290         Reported by Jim Meyering.
32291
32292 2009-10-27  Jim Meyering  <jim@meyering.net>
32293             Bruno Haible  <bruno@clisp.org>
32294
32295         Avoid warning despite dropping the return value of fwrite.
32296         * lib/unicodeio.c: Include ignore-value.h.
32297         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32298         * modules/unicodeio (Depends-on): Add ignore-value.
32299
32300 2009-10-26  Eric Blake  <ebb9@byu.net>
32301
32302         areadlinkat: fix fallback path
32303         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32304         pointer and zero.
32305
32306 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32307
32308         Use a better IO block size for modern systems
32309         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32310         * lib/md2.c: Likewise.
32311         * lib/md4.c: Likewise.
32312         * lib/md5.c: Likewise.
32313         * lib/sha1.c: Likewise.
32314         * lib/sha256.c: Likewise.
32315         * lib/sha512.c: Likewise.
32316
32317 2009-10-22  Eric Blake  <ebb9@byu.net>
32318
32319         tests: avoid several compiler warnings
32320         * tests/test-getcwd.c (main): Avoid buffer underflow.
32321         * tests/test-getdate.c (main): String literals are not safe with
32322         putenv, so use setenv.  Declare unused argument.
32323         * modules/getdate-tests (Depends-on): Add setenv.
32324         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32325         problems with string literals in char *.
32326         * tests/test-hash.c (main): Avoid shadowing declaration.
32327         (insert_new): Treat string literals as char const *.
32328         * tests/test-getopt.h (test_getopt): Likewise.
32329         (getopt_loop): Alter types to minimize casting elsewhere.
32330         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32331         (test_getopt_long_posix): Likewise.
32332         (do_getopt_long): Add wrapper to minimize casting.
32333         * tests/test-atexit.c (clear_temp_file): Use void.
32334         * tests/test-areadlink-with-size.c (main): Declare unused
32335         arguments.
32336         * tests/test-areadlink.c (main): Likewise.
32337         * tests/test-areadlinkat-with-size.c (main): Likewise.
32338         * tests/test-areadlinkat.c (main): Likewise.
32339         * tests/test-canonicalize-lgpl.c (main): Likewise.
32340         * tests/test-canonicalize.c (main): Likewise.
32341         * tests/test-dirent-safer.c (main): Likewise.
32342         * tests/test-dirname.c (main): Likewise.
32343         * tests/test-dup2.c (main): Likewise.
32344         * tests/test-fchdir.c (main): Likewise.
32345         * tests/test-fcntl-h.c (main): Likewise.
32346         * tests/test-fcntl-safer.c (main): Likewise.
32347         * tests/test-fdopendir.c (main): Likewise.
32348         * tests/test-fdutimensat.c (main): Likewise.
32349         * tests/test-fflush.c (main): Likewise.
32350         * tests/test-filenamecat.c (main): Likewise.
32351         * tests/test-filevercmp.c (main): Likewise.
32352         * tests/test-fopen-safer.c (main): Likewise.
32353         * tests/test-fopen.c (main): Likewise.
32354         * tests/test-fpending.c (main): Likewise.
32355         * tests/test-fpurge.c (main): Likewise.
32356         * tests/test-freading.c (main): Likewise.
32357         * tests/test-fstatat.c (main): Likewise.
32358         * tests/test-fsync.c (main): Likewise.
32359         * tests/test-futimens.c (main): Likewise.
32360         * tests/test-getndelim2.c (main): Likewise.
32361         * tests/test-gettimeofday.c (main): Likewise.
32362         * tests/test-getopt.c (main): Likewise.
32363         * tests/test-i-ring.c (main): Likewise.
32364         * tests/test-inttypes.c (main): Likewise.
32365         * tests/test-link.c (main): Likewise.
32366         * tests/test-lstat.c (main): Likewise.
32367         * tests/test-math.c (main): Likewise.
32368         * tests/test-md5.c (main): Likewise.
32369         * tests/test-memchr2.c (main): Likewise.
32370         * tests/test-memrchr.c (main): Likewise.
32371         * tests/test-mkdir.c (main): Likewise.
32372         * tests/test-mkdirat.c (main): Likewise.
32373         * tests/test-mkfifoat.c (main): Likewise.
32374         * tests/test-open.c (main): Likewise.
32375         * tests/test-openat-safer.c (main): Likewise.
32376         * tests/test-openat.c (main): Likewise.
32377         * tests/test-quotearg.c (main): Likewise.
32378         * tests/test-rawmemchr.c (main): Likewise.
32379         * tests/test-readlink.c (main): Likewise.
32380         * tests/test-remove.c (main): Likewise.
32381         * tests/test-rename.c (main): Likewise.
32382         * tests/test-renameat.c (main): Likewise.
32383         * tests/test-rmdir.c (main): Likewise.
32384         * tests/test-sha1.c (main): Likewise.
32385         * tests/test-signal.c (main): Likewise.
32386         * tests/test-sigaction.c (main): Likewise.
32387         * tests/test-stat.c (main): Likewise.
32388         * tests/test-stat-time.c (main): Likewise.
32389         * tests/test-stddef.c (main): Likewise.
32390         * tests/test-stdint.c (main): Likewise.
32391         * tests/test-stdio.c (main): Likewise.
32392         * tests/test-stdlib.c (main): Likewise.
32393         * tests/test-strchrnul.c (main): Likewise.
32394         * tests/test-strerror.c (main): Likewise.
32395         * tests/test-string.c (main): Likewise.
32396         * tests/test-strtod.c (main): Likewise.
32397         * tests/test-strverscmp.c (main): Likewise.
32398         * tests/test-symlink.c (main): Likewise.
32399         * tests/test-symlinkat.c (main): Likewise.
32400         * tests/test-sys_stat.c (main): Likewise.
32401         * tests/test-sys_time.c (main): Likewise.
32402         * tests/test-time.c (main): Likewise.
32403         * tests/test-unistd.c (main): Likewise.
32404         * tests/test-unlink.c (main): Likewise.
32405         * tests/test-unlinkat.c (main): Likewise.
32406         * tests/test-utimens.c (main): Likewise.
32407         * tests/test-utimensat.c (main): Likewise.
32408         * tests/test-version-etc.c (main): Likewise.
32409         * tests/test-wchar.c (main): Likewise.
32410         * tests/test-wctype.c (main): Likewise.
32411         * tests/test-xprintf-posix.c (main): Likewise.
32412         * tests/test-posixtm.c (main): Likewise.
32413         (STREQ): Delete unused macro.
32414         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32415         shadowed variables.
32416         * tests/test-memchr.c (main): Likewise.
32417
32418 2009-10-21  Eric Blake  <ebb9@byu.net>
32419
32420         areadlinkat: avoid failure on older glibc
32421         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32422         rather than mis-comparing 0 against FUNC_RESULT of char*.
32423
32424 2009-10-21  Bruno Haible  <bruno@clisp.org>
32425
32426         * modules/stpncpy (License): Relicense under LGPLv2+.
32427         Reported by David Lutterkort <lutter@redhat.com>.
32428
32429 2009-10-20  Eric Blake  <ebb9@byu.net>
32430
32431         utimensat: work around Solaris 9 bug
32432         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32433         has trailing slash bugs.
32434         * tests/test-lutimens.h (test_lutimens): Enhance test.
32435         * tests/test-utimens.h (test_utimens): Likewise.
32436         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32437         * doc/posix-functions/utimes.texi (utimes): Likewise.
32438         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32439         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32440         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32441         * doc/posix-functions/futimens.texi (futimens): Likewise.
32442
32443         fdutimensat: new module
32444         * modules/fdutimensat: New file.
32445         * lib/fdutimensat.c (fdutimensat): Likewise.
32446         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32447         * MODULES.html.sh (File system functions): Mention module.
32448         * modules/fdutimensat-tests: New test.
32449         * tests/test-fdutimensat.c: Likewise.
32450
32451         doc: regenerate INSTALL
32452         * doc/INSTALL: Reflect recent autoconf update.
32453         * doc/INSTALL.ISO: Likewise.
32454         * doc/INSTALL.UTF-8: Likewise.
32455
32456 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32457
32458         acl: warn if ACL support is not detected
32459         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32460
32461 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32462
32463         * lib/nproc.h: Add extern "C" block for C++.
32464
32465 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32466             Bruno Haible  <bruno@clisp.org>
32467
32468         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32469         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32470         * doc/posix-functions/isalpha.texi: Likewise.
32471         * doc/posix-functions/isblank.texi: Likewise.
32472         * doc/posix-functions/iscntrl.texi: Likewise.
32473         * doc/posix-functions/isdigit.texi: Likewise.
32474         * doc/posix-functions/isgraph.texi: Likewise.
32475         * doc/posix-functions/islower.texi: Likewise.
32476         * doc/posix-functions/isprint.texi: Likewise.
32477         * doc/posix-functions/ispunct.texi: Likewise.
32478         * doc/posix-functions/isspace.texi: Likewise.
32479         * doc/posix-functions/isupper.texi: Likewise.
32480         * doc/posix-functions/isxdigit.texi: Likewise.
32481
32482 2009-10-18  Bruno Haible  <bruno@clisp.org>
32483
32484         Tests for module 'isblank'.
32485         * modules/isblank-tests: New file.
32486         * tests/test-isblank.c: New file.
32487
32488         New module 'isblank'.
32489         * lib/isblank.c: New file.
32490         * m4/isblank.m4: New file.
32491         * modules/isblank: New file.
32492         * doc/posix-functions/isblank.texi: Mention the new module.
32493
32494 2009-10-18  Bruno Haible  <bruno@clisp.org>
32495
32496         New module 'ctype'.
32497         * lib/ctype.in.h: New file.
32498         * m4/ctype.m4: New file.
32499         * modules/ctype: New file.
32500         * doc/posix-headers/ctype.texi: Mention the new module.
32501
32502 2009-10-18  Jim Meyering  <meyering@redhat.com>
32503
32504         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32505         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32506         right after its initialization, rather than farther down.
32507         Keeping these in close proximity makes it easier to ensure
32508         that each such variable is initialized.  E.g.,
32509
32510             LIB_CLOCK_GETTIME=
32511             AC_SUBST([LIB_CLOCK_GETTIME])
32512
32513         This change also increments these serial numbers.
32514         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32515         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32517
32518 2009-10-18  Bruno Haible  <bruno@clisp.org>
32519
32520         Don't let environment variables perturb build.
32521         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32522         (gl_PREREQ_GETHRXTIME): ... not here.
32523
32524 2009-10-18  Bruno Haible  <bruno@clisp.org>
32525
32526         Avoid symlink attack in localcharset module.
32527         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32528         (O_NOFOLLOW): Define fallback.
32529         (get_charset_aliases): Don't open the file if it is a symbolic link.
32530         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32531         gl_FCNTL_H.
32532         (gl_FCNTL_H): Require it.
32533         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32534         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32535         Reported by Fergal Glynn <fglynn@veracode.com>.
32536
32537 2009-10-18  Bruno Haible  <bruno@clisp.org>
32538
32539         Implement nproc for mingw.
32540         * lib/nproc.c: Include <windows.h>
32541         (num_processors): On native Windows platforms, try GetSystemInfo.
32542
32543 2009-10-18  Bruno Haible  <bruno@clisp.org>
32544
32545         Implement nproc for IRIX.
32546         * lib/nproc.c: Include <sys/sysmp.h>.
32547         (num_processors): On IRIX systems, try sysmp.
32548         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32549
32550 2009-10-18  Bruno Haible  <bruno@clisp.org>
32551
32552         Implement nproc for HP-UX.
32553         * lib/nproc.c: Include <sys/pstat.h>
32554         (num_processors): On HP-UX systems, try pstat_getdynamic.
32555         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32556         pstat_getdynamic.
32557
32558 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32559             Bruno Haible  <bruno@clisp.org>
32560
32561         Implement nproc for NetBSD, OpenBSD.
32562         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32563         (ARRAY_SIZE): New macro.
32564         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32565         * m4/nproc.m4: New file.
32566         * modules/nproc (Files): Add m4/nproc.m4.
32567         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32568         (Makefile.am): Instead, augment lib_SOURCES.
32569
32570 2009-10-18  Bruno Haible  <bruno@clisp.org>
32571
32572         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32573         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32574         sys/param.h.
32575
32576 2009-10-16  Eric Blake  <ebb9@byu.net>
32577
32578         utimensat: new module
32579         * modules/utimensat: New file.
32580         * lib/utimensat.c (utimensat): Likewise.
32581         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32582         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32583         so we can work around Linux bugs.
32584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32585         * modules/sys_stat (Makefile.am): Substitute them.
32586         * lib/sys_stat.in.h (utimensat): Declare it.
32587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32588         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32589         * modules/utimensat-tests: New test.
32590         * tests/test-utimensat.c: Likewise.
32591
32592         utimens: let lutimens work on non-symlinks
32593         * lib/utimens.c (lutimens): Fall back to utimens rather than
32594         failing with ENOSYS, when file is not a symlink.
32595         (utimens): Reduce redirection.
32596         * tests/test-lutimens.h (test_lutimens): Update test to cover
32597         non-symlinks.
32598         * tests/test-utimens.h (test_utimens): Update test to cover
32599         symlinks.
32600         * tests/test-utimens.c (main): Update caller.
32601
32602         utimens: cache whether utimensat syscall works
32603         * lib/utimens.c (utimensat_works_really): New cache variable.
32604         (fdutimens, lutimens): Use it to avoid failing syscall.
32605
32606         test-stat-time, test-utimens: improve portability
32607         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32608         ext4 on alpha, and for cygwin.
32609         * tests/test-utimens-common.h: New file.
32610         (nap): Factor delays into single function.
32611         * tests/test-lutimens.h (test_lutimens): Use new header.
32612         * tests/test-futimens.h (test_futimens): Likewise.
32613         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32614         timestamps to occur from same machine, as was done previously for
32615         test_utimens.
32616         * modules/utimens-tests (Files): Ship new file.
32617         * modules/futimens-tests (Files): Likewise.
32618         Reported in part by Jim Meyering.
32619
32620         sys_stat: sort replacement declarations
32621         * lib/sys_stat.in.h: Sort declarations.
32622         * lib/futimens.c (futimens): Fix typo.
32623
32624 2009-10-15  Jim Meyering  <meyering@redhat.com>
32625
32626         don't let environment settings perturb build
32627         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32628         could cause a configure-time and/or build-time malfunction.
32629         Typically, a configure-time function-in-library test is performed
32630         via code like this:
32631
32632           LIB_VAR=
32633           AC_SUBST([LIB_VAR])
32634           prefix_saved_LIBS=$LIBS
32635             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32636                        [test "$ac_cv_search_FUNC" = "none required" ||
32637                         LIB_VAR=$ac_cv_search_FUNC])
32638           LIBS=$prefix_saved_LIBS
32639
32640         However, in each of the files affected by this change, the LIB_VAR=
32641         initialization was omitted.  Thus, when set in the environment, its
32642         value would propagate into generated Makefiles when FUNC is not found
32643         in LIB_NAME.
32644         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32645         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32647
32648 2009-10-14  Eric Blake  <ebb9@byu.net>
32649
32650         fchdir: avoid infinite recursion in mingw
32651         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32652         recursing.
32653
32654         test-stat-time: port to mingw
32655         * tests/test-stat-time.c (force_unlink): Return a value.
32656         (test_ctime) [W32]: Fix compilation error.
32657         (nap): Don't call usleep with too large an argument.  Use
32658         force_unlink.
32659         * doc/pastposix-functions/usleep.texi (usleep): Document the
32660         portability issue.
32661
32662 2009-10-13  Jim Meyering  <meyering@redhat.com>
32663
32664         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32665         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32666         * modules/pipe-filter-ii: Likewise.
32667         * modules/sys_socket-tests: Likewise.
32668         * modules/tsearch-tests: Likewise.
32669         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32670         (check): Depend on it.
32671
32672 2009-10-12  Eric Blake  <ebb9@byu.net>
32673
32674         utimens-tests: port to NFS file systems
32675         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32676         comparisons to avoid spurious failures from timestamp drift
32677         between NFS machines.
32678
32679 2009-10-12  Eric Blake  <ebb9@byu.net>
32680
32681         stat-time-tests: minor cleanups
32682         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32683         * tests/test-stat-time.c (nap): Separate assignment from call.
32684         Suggested by Paolo Bonzini and Bruno Haible.
32685
32686         sys_stat: guarantee struct timespec
32687         * lib/sys_stat.in.h (includes): Always include <time.h>
32688         * modules/sys_stat (Depends-on): Add time.
32689         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32690         mode_t permission values.
32691         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32692         get at subsecond timestamps.
32693
32694 2009-10-10  Eric Blake  <ebb9@byu.net>
32695
32696         futimens: new module
32697         * modules/futimens: New file.
32698         * lib/futimens.c (futimens): Likewise.
32699         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32700         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32701         we can work around Linux bugs.
32702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32703         * modules/sys_stat (Makefile.am): Substitute them.
32704         * lib/sys_stat.in.h (futimens): Declare it.
32705         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32706         * doc/posix-functions/futimens.texi (futimens): Likewise.
32707         * modules/futimens-tests: New test.
32708         * tests/test-futimens.c: Likewise.
32709
32710         utimens: introduce fdutimens
32711         * lib/utimens.h (fdutimens): New prototype.
32712         * lib/utimens.c (gl_futimens): Move guts...
32713         (fdutimens): ...to new interface.
32714         * tests/test-utimens.c (do_fdutimens): Use it.
32715
32716         utimens: add UTIME_NOW and UTIME_OMIT support
32717         * lib/utimens.c (validate_timespec, update_timespec): New helper
32718         functions.
32719         (gl_futimens, lutimens): Use them.
32720         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32721         stdbool, sys_stat.
32722         (Link): Mention resulting library dependency.
32723         * modules/utimecmp (Link): Likewise.
32724         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32725         (Makefile.am): Pick up library dependency.
32726         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32727         definition.
32728         * tests/test-sys_stat.c: Test the definitions.
32729         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32730         * NEWS: Document library dependency.
32731
32732         utimecmp: support symlink timestamps
32733         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32734         hashing when possible.  Use pathconf when available.
32735         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32736         * modules/utimecmp (Depends-on): Add lstat.
32737
32738         utimens: add lutimens interface
32739         * lib/utimens.c (lutimens): New function.
32740         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32741         * lib/utimens.h (lutimens): Declare new interface.
32742         * tests/test-utimens.c (main): Enhance test.
32743         * tests/test-lutimens.h (test_lutimens): New file.
32744         * modules/utimens-tests (Files): Distribute it.
32745         (Depends-on): Add symlink.
32746         (configure.ac): Check for usleep.
32747
32748         utimens: validate futimens usage
32749         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32750         fewer syscalls on failure later on.  Avoid compiler warning on
32751         mingw.
32752         * modules/utimens (Depends-on): Add dup2.
32753
32754         utimens: add test
32755         * modules/utimens-tests: New test.
32756         * tests/test-utimens.h: New file.
32757         * tests/test-futimens.h: Likewise.
32758         * tests/test-utimens.c: Likewise.
32759
32760         doc: mention timestamp portability issues
32761         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32762         instead.
32763         * doc/posix-functions/utime.texi (utime): Likewise.
32764         * doc/posix-functions/utimes.texi (utimes): Likewise.
32765         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32766         instead.
32767         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32768         module.
32769         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32770         Mention weakness with symlink timestamps.
32771         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32772         to utimensat/futimens instead.
32773         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32774
32775         test-dup2: enhance test
32776         * tests/test-dup2.c (main): Also check AT_FDCWD.
32777
32778         test-stat-time: avoid more spurious failures
32779         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32780         xfs; and avoid race if the two timestamps cross quantization edge.
32781
32782         relocatable: prefer 'file system' over 'filesystem'
32783         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32784         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32785         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32786         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32787         * lib/relocatable.c (compute_curr_prefix): Likewise.
32788
32789 2009-10-10  Jim Meyering  <meyering@redhat.com>
32790
32791         stat-time-tests: check for the usleep function
32792         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32793
32794 2009-10-10  Bruno Haible  <bruno@clisp.org>
32795
32796         * modules/xnanosleep: Put the Link section after the Include section.
32797
32798 2009-10-09  Eric Blake  <ebb9@byu.net>
32799
32800         dup2: work around FreeBSD 6.1 bug
32801         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32802         * doc/posix-functions/dup2.texi (dup2): Document it.
32803         Reported by Nelson H. F. Beebe and Jim Meyering.
32804
32805         test-stat-time: port to buggy NFS clients
32806         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32807         (test_ctime): Also skip test if mtime and ctime are skewed.
32808
32809         maint: prefer 'file system' over 'filesystem'
32810         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32811         * doc/posix-functions/lstat.texi (lstat): Likewise.
32812         * lib/file-has-acl.c (file_has_acl): Likewise.
32813         * lib/fwriteerror.c [TEST]: Likewise.
32814         * tests/test-areadlink.h (test_areadlink): Likewise.
32815         * tests/test-areadlinkat-with-size.c (main): Likewise.
32816         * tests/test-areadlinkat.c (main): Likewise.
32817         * tests/test-canonicalize-lgpl.c (main): Likewise.
32818         * tests/test-canonicalize.c (main): Likewise.
32819         * tests/test-fstatat.c (main): Likewise.
32820         * tests/test-linkat.c (main): Likewise.
32821         * tests/test-lstat.h (test_lstat_func): Likewise.
32822         * tests/test-mkdir.h (test_mkdir): Likewise.
32823         * tests/test-readlink.h (test_readlink): Likewise.
32824         * tests/test-remove.c (main): Likewise.
32825         * tests/test-rename.h (test_rename): Likewise.
32826         * tests/test-renameat.c (main): Likewise.
32827         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32828         * tests/test-symlink.h (test_symlink): Likewise.
32829         * tests/test-symlinkat.c (main): Likewise.
32830         * tests/test-unlink.h (test_unlink_func): Likewise.
32831         * tests/test-unlinkat.c (main): Likewise.
32832
32833         maint: make realtime library usage explicit
32834         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32835         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32836         * modules/settime (Link): Likewise.
32837         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32838
32839         test-stat-time: speed up execution
32840         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32841         warning on mingw.
32842         (nap): New helper function.
32843         (prepare_test): Use it to reduce sleep time.
32844         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32845         execution.
32846         * modules/stat-time-tests (configure.ac): Check for usleep.
32847
32848 2009-10-09  Jim Meyering  <meyering@redhat.com>
32849
32850         selinux-h: always use getfilecon wrappers
32851         * lib/getfilecon.c: New file.
32852         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32853         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32854         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32855         (fgetfilecon): Provide a stub.
32856         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32857         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32858         file unconditionally.
32859         When <selinux/selinux.h> is found, arrange to use wrappers.
32860         * modules/selinux-h (Files): Add getfilecon.c.
32861         (Makefile.am): Substitute include-next-related bits
32862         into the now-always-generated selinux/selinux.h file.
32863         * doc/glibc-functions/lgetfilecon.texi: New file.
32864         * doc/glibc-functions/fgetfilecon.texi: New file.
32865         * doc/glibc-functions/getfilecon.texi: New file.
32866         * doc/glibc-functions/getfilecon-desc.texi: New file.
32867         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32868         which to pull in the new files.
32869         * MODULES.html.sh (Misc): Add selinux-h.
32870
32871 2009-10-08  Jim Meyering  <meyering@redhat.com>
32872
32873         unistd: fix comment typo
32874         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32875
32876 2009-10-08  Eric Blake  <ebb9@byu.net>
32877
32878         areadlink: use SIZE_MAX consistently
32879         * modules/areadlink (Depends-on): Add stdint.
32880         * modules/areadlink-with-size (Depends-on): Likewise.
32881         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32882         gives NULL; drop sys/types, since unistd gives size_t; and add
32883         stdint for SIZE_MAX.
32884         (SIZE_MAX): Rely on headers.
32885         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32886         and add stdint.
32887         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32888         (SIZE_MAX): Likewise.
32889         (INITIAL_BUF_SIZE): Turn into enum.
32890         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32891
32892 2009-10-08  Jim Meyering  <meyering@redhat.com>
32893
32894         areadlinkat: avoid compilation failure
32895         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32896         Fix typo in comment.
32897
32898 2009-10-07  Eric Blake  <ebb9@byu.net>
32899
32900         areadlinkat-with-size: new module
32901         * modules/areadlinkat-with-size: New module.
32902         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32903         * lib/areadlink.h (areadlinkat): Declare it.
32904         * MODULES.html.sh (File system functions): Mention it.
32905         * modules/areadlinkat-with-size-tests: New test.
32906         * tests/test-areadlinkat-with-size.c: New file.
32907
32908         xreadlinkat: new module
32909         * modules/xreadlinkat: New module.
32910         * lib/xreadlinkat.c (xreadlinkat): New file.
32911         * lib/xreadlink.h (xreadlinkat): Declare it.
32912         * MODULES.html.sh (File system functions): Mention it.
32913
32914         areadlinkat: new module
32915         * lib/at-func.c (FUNC_FAIL): New define.
32916         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32917         * modules/areadlinkat: New module.
32918         * lib/linkat.c (areadlinkat): Move...
32919         * lib/areadlinkat.c (areadlinkat): ...to new file.
32920         * lib/areadlink.h (areadlinkat): Declare it.
32921         * modules/linkat (Depends-on): Add areadlinkat.
32922         * MODULES.html.sh (File system functions): Mention it.
32923         * modules/areadlinkat-tests: New test.
32924         * tests/test-areadlinkat.c: New file.
32925
32926         areadlink, areadlink-with-size: add tests
32927         * modules/areadlink-tests: New test.
32928         * modules/areadlink-with-size-tests: Likewise.
32929         * tests/test-areadlink.h: New file.
32930         * tests/test-areadlink.c: Likewise.
32931         * tests/test-areadlink-with-size.c: Likewise.
32932
32933         maint: minor cleanups
32934         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32935         _UNUSED_PARAMETER_ instead.
32936         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32937         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32938         * modules/linkat-tests (Files): Distribute test-link.h.
32939
32940         openat, utimens: whitespace cleanup
32941         * lib/openat.c: Prefer space throughout, rather than mix of 8
32942         spaces vs. tabs.
32943         * lib/at-func.c: Likewise.
32944         * lib/utimens.c: Likewise.
32945
32946         openat: avoid using wrong fd
32947         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32948         working directory chooses same fd.
32949         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32950
32951         mkdir, mkdirat: fix cygwin 1.5.x bug
32952         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32953         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32954         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32955         bug.
32956         (gl_PREREQ_MKDIR): Delete unused macro.
32957         * modules/mkdir (Files): Track file rename.
32958         (configure.ac): Update macro name.
32959         * modules/openat (Depends-on): Add mkdir.
32960         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32961
32962         mkdir, mkdirat: add tests
32963         * modules/mkdir-tests: New test.
32964         * tests/test-mkdir.h: New file.
32965         * tests/test-mkdir.c: Likewise.
32966         * tests/test-mkdirat.c: Likewise.
32967         * modules/openat-tests (Files): Add new files.
32968         (Makefile.am): Run new test.
32969
32970 2009-10-06  Eric Blake  <ebb9@byu.net>
32971
32972         doc: tweak *at function documentation
32973         * doc/posix-functions/faccessat.texi (faccessat): Mention
32974         known issue with replacement.
32975         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32976         * doc/posix-functions/linkat.texi (linkat): Likewise.
32977         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32978         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32979         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32980         * doc/posix-functions/renameat.texi (renameat): Likewise.
32981         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32982
32983         openat: fix GNU/Hurd bug in unlinkat
32984         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32985         broken.
32986         * doc/posix-functions/unlink.texi (unlink): Document this.
32987         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32988
32989         fdopendir: fix GNU/Hurd bug
32990         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32991         allowing non-directory fds.
32992         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32993         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32994         * modules/dirent (Makefile.am): Substitute it.
32995         * lib/dirent.in.h (fdopendir): Declare replacement.
32996         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32997         * tests/test-fdopendir.c (main): Test something other than
32998         /dev/null, since on Hurd that behaves like a directory.
32999
33000         test-symlink: port to GNU/Hurd
33001         * tests/test-symlink.h (test_symlink): Relax expected errno.
33002
33003         doc: tweak more cygwin information
33004         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33005         now compatible with glibc.
33006         * doc/posix-functions/getopt.texi (getopt): Likewise.
33007
33008         getopt-gnu: add another test
33009         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33010         guarantee behavior relied on by m4.
33011         * tests/test-getopt.c (main): Use it.
33012         * modules/getopt-posix-tests (Depends-on): Add setenv.
33013         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33014
33015         getopt: fix compilation on darwin
33016         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33017         include.
33018         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33019         Reported by Ludovic Courtès.
33020
33021 2009-10-06  Bruno Haible  <bruno@clisp.org>
33022
33023         * modules/size_max (Description): Discourage its use.
33024         Reported by Simon Josefsson.
33025
33026 2009-10-06  Jim Meyering  <meyering@redhat.com>
33027
33028         linkat: avoid compilation failure
33029         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33030
33031 2009-10-05  Eric Blake  <ebb9@byu.net>
33032
33033         linkat: support Linux 2.6.17
33034         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33035         linkat on Linux, but allow cache variable override.
33036         * lib/linkat.c (rpl_linkat): Define override.
33037         * modules/linkat (Depends-on): Add symlinkat.
33038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33039         * modules/unistd (Makefile.am): Substitute it.
33040         * lib/unistd.in.h (linkat): Declare replacement.
33041         Reported by Pádraig Brady.
33042
33043         quotearg: port test to systems with C.UTF-8 locale
33044         * tests/test-quotearg.c (struct result_strings): Add another
33045         member, differentiating between C.ASCII and C.UTF-8 handling.
33046         (compare_strings): Add parameter.
33047         (main): Adjust all callers.
33048
33049         getopt: avoid clash with FreeBSD _getopt_internal
33050         * lib/getopt.in.h (_getopt_internal): Override the name.
33051         * lib/getopt_int.h (includes): Pick up any overrides.
33052         Reported by Reuben Thomas.
33053
33054         hash: allow C89 compilation
33055         * lib/hash.c (check_tuning): Move declaration before statement.
33056         Reported by Reuben Thomas.
33057
33058 2009-10-05  Karl Berry  <karl@gnu.org>
33059
33060         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33061
33062 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33063             Bruno Haible  <bruno@clisp.org>
33064
33065         * lib/uname.c (uname): Use a table-driven algorithm to compute
33066         Windows NT versions.
33067
33068 2009-10-04  Bruno Haible  <bruno@clisp.org>
33069
33070         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33071         program_invocation_short_name.
33072         * modules/progname (configure.ac): Test for presence of
33073         program_invocation_short_name.
33074         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33075
33076 2009-10-04  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/progname.c (set_program_name): Fix comment.
33079         Reported by Jim Meyering.
33080
33081 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33082             Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/uname.c: Include <string.h>.
33085         (uname): Do only one call to GetVersionEx in the common case.
33086
33087 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33088             Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33091         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33092         (uname): Add support for Windows CE and various non-x86 CPU types.
33093
33094 2009-10-03  Bruno Haible  <bruno@clisp.org>
33095
33096         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33097         invocation to tests/configure.ac.
33098         Reported by Ian Beckwith <ianb@erislabs.net>.
33099
33100 2009-10-02  Eric Blake  <ebb9@byu.net>
33101
33102         fchdir: avoid compiler warning
33103         * lib/fchdir.c (canonicalize_file_name)
33104         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33105
33106         test-open: support mingw errno values
33107         * tests/test-open.h (test_open): Relax test.
33108         * tests/test-fopen.h (test_fopen): Likewise.
33109         * tests/test-openat-safer.c (main): Likewise.
33110
33111         open: fix opening directory on mingw
33112         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33113
33114         test-open: on GNU/Hurd, /dev/null is a directory
33115         * tests/test-fopen.h (main): Rename...
33116         (test_fopen): ...to this.  Use a guaranteed non-directory when
33117         confirming open behavior on trailing slash.
33118         * tests/test-openat-safer.c (main): Likewise.
33119         * tests/test-open.h (main): Likewise....
33120         (test_open): ...to this.
33121         * tests/test-fopen.c (main): Adjust caller.
33122         * tests/test-fopen-safer.c (main): Likewise.
33123         * tests/test-open.c (main): Likewise.
33124         * tests/test-fcntl-safer.c (main): Likewise.
33125         Reported by Samuel Thibault.
33126
33127         rename, fchdir: don't ignore chdir failure
33128         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33129         * lib/rename.c (rpl_rename) [W32]: Likewise.
33130         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33131         an empty destination directory if source cannot be renamed,
33132         although there is still possibility for failure.
33133         * doc/posix-functions/rename.texi (rename): Document the race.
33134         Reported by Jim Meyering.
33135
33136         maint: cleanup whitespace in recent commits
33137         * lib/rename.c (rpl_rename): Remove tabs.
33138         * tests/test-link.h (test_link): Likewise.
33139         * lib/fchdir.c (get_name): Likewise.
33140         Reported by Jim Meyering.
33141
33142 2009-10-02  Ben Pfaff  <blp@gnu.org>
33143
33144         relocatable-prog-wrapper: Add missing dependency on
33145         double-slash-root.
33146         * modules/relocatable-prog-wrapper: Add dependency.
33147         Reported by Ian Beckwith <ianb@erislabs.net>.
33148
33149 2009-10-02  Eric Blake  <ebb9@byu.net>
33150
33151         renameat: fix Solaris bugs
33152         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33153         needed fixing.
33154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33155         * modules/stdio (Makefile.am): Substitute it.
33156         * lib/stdio.in.h (renameat): Declare replacement.
33157         * lib/renameat.c (rpl_renameat): Implement fix.
33158
33159         renameat: new module
33160         * modules/renameat: New file.
33161         * lib/renameat.c (renameat): Likewise.
33162         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33164         * modules/stdio (Makefile.am): Substitute them.
33165         * lib/stdio.in.h (renameat): Declare it.
33166         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33167         * doc/posix-functions/renameat.texi (renameat): Likewise.
33168         * modules/renameat-tests: New test.
33169         * tests/test-renameat.c: Likewise.
33170
33171         rename: fix mingw bugs
33172         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33173         directory overwrite bugs.
33174
33175         rename: fix another cygwin 1.5 bug
33176         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33177         checks.
33178         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33179         unnecessary cygwin workarounds.  Also work around bug with moving
33180         full directory onto an empty one.
33181         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33182
33183         rename-dest-slash: merge into rename module
33184         * modules/rename-dest-slash (Status): Mark obsolete.
33185         (Depends-on): Add rename.
33186         (Files): Let rename do it all.
33187         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33188         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33189         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33190         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33191         * lib/rename.c (rpl_rename): Update comments.
33192
33193         rename: fix cygwin 1.5.x bugs
33194         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33195         * lib/rename.c (rpl_rename): Work around them.
33196         * modules/rename (Depends-on): Add same-inode.
33197
33198         rename: fix Solaris 10 bug
33199         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33200         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33201         was the only bug.
33202
33203         rename: fix Solaris 9 bug
33204         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33205         on non-directory.  Avoid calling exit.
33206         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33207         strdup.
33208         * modules/rename-tests (Depends-on): Drop lstat.
33209         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33210         (gl_PREREQ_RENAME): Delete unused macro.
33211
33212         rename-dest-slash: fix NetBSD bug
33213         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33214         links.
33215         * modules/rename-dest-slash (Depends-on): Add same-inode.
33216
33217         rename-tests: new test, exposes several platform bugs
33218         * modules/rename-tests: New file.
33219         * tests/test-rename.h: Likewise.
33220         * tests/test-rename.c: Likewise.
33221         * doc/posix-functions/rename.texi (rename): Improve documentation,
33222         including bugs that will eventually be fixed in gnulib.
33223
33224 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33225
33226         * lib/uname.c: Include <stdlib.h>
33227         (uname): Assume version info is available.
33228
33229 2009-10-02  Jim Meyering  <meyering@redhat.com>
33230
33231         gnu-web-doc-update: correct --help output
33232         * build-aux/gnu-web-doc-update: Make --help output relevant.
33233
33234         gnu-web-doc-update: add standard options
33235         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33236
33237         gnu-web-doc-update: New module.
33238         Use this script to automatically update the on-line web documentation
33239         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33240         * modules/gnu-web-doc-update: New file, from coreutils.
33241         * build-aux/gnu-web-doc-update: New script.
33242
33243 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33244
33245         link: LoadLibrary is not needed.
33246         * lib/link.c: Use GetModuleHandle.
33247
33248 2009-10-01  Eric Blake  <ebb9@byu.net>
33249
33250         getopt: bump serial number
33251         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33252         change.
33253
33254         tests: tighten link, rmdir, and remove tests
33255         * tests/test-link.h (includes): No need to use <config.h> here.
33256         Clean up if directory hard link was created, otherwise test for
33257         trailing '.'.
33258         * tests/test-linkat.c (main): Simplify.
33259         * tests/test-remove.c (main): Enhance test for trailing '.'.
33260         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33261
33262 2009-10-01  Jim Meyering  <meyering@redhat.com>
33263
33264         maint.mk: requiring "make major" was annoying, for a "minor" release.
33265         What is intended is "stable", to contrast with alpha and beta,
33266         so require "make stable", not "make major".
33267         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33268         (get_tool_versions): Likewise.
33269         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33270
33271 2009-09-30  Ben Pfaff  <blp@gnu.org>
33272
33273         Fix broken build of replacement for Windows tmpfile().
33274         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33275         flags argument added along with the 'mkostemp' module.
33276
33277 2009-09-28  Bruno Haible  <bruno@clisp.org>
33278
33279         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33280         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33281         to 'remove_elt'.
33282         (gl_list_remove): Update.
33283         * lib/gl_list.c (gl_list_remove): Update.
33284         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33285         to 'remove_elt'.
33286         (gl_oset_remove): Update.
33287         * lib/gl_list.c (gl_oset_remove): Update.
33288         Reported by Eric Blake.
33289
33290 2009-09-28  Eric Blake  <ebb9@byu.net>
33291
33292         doc: mention yet more cygwin 1.7 status
33293         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33294         cygwin.
33295         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33296         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33297
33298         argp: fix test failure
33299         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33300         that are not upper-case.  Pass correct range to tolower.
33301
33302 2009-09-27  Jim Meyering  <meyering@redhat.com>
33303
33304         test-yesno: work around sparc-dash here-document infelicity
33305         Without this change, the literal \177 byte in a here document
33306         would make dash 0.5.5.1-3 access uninitialized memory.
33307         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33308         Instead, use a marker, "@", and filter through tr to create the desired
33309         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33310
33311 2009-09-27  Bruno Haible  <bruno@clisp.org>
33312
33313         Disable untested support for new flavours of ACLs on AIX.
33314         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33315         progress.
33316         * lib/set-mode-acl.c (qset_acl): Likewise.
33317
33318 2008-12-07  Bruno Haible  <bruno@clisp.org>
33319
33320         Add support for new flavours of ACLs on AIX. (Untested.)
33321         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33322         (file_has_acl): Add support for newer AIX.
33323         * lib/set-mode-acl.c (qset_acl): Likewise.
33324         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33325         Rainer Tammer <tammer@tammer.net>.
33326
33327 2009-09-26  Eric Blake  <ebb9@byu.net>
33328
33329         argp: fix compilation of getopt
33330         * lib/getopt.in.h (includes): Use different guard than glibc.
33331         Reported by Sergey Poznyakoff.
33332
33333         doc: mention more cygwin 1.7 status
33334         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33335         bug.
33336         * doc/posix-functions/execl.texi (execl): Likewise.
33337         * doc/posix-functions/execle.texi (execle): Likewise.
33338         * doc/posix-functions/execlp.texi (execlp): Likewise.
33339         * doc/posix-functions/execv.texi (execv): Likewise.
33340         * doc/posix-functions/execve.texi (execve): Likewise.
33341         * doc/posix-functions/execvp.texi (execvp): Likewise.
33342         * doc/glibc-functions/canonicalize_file_name.texi
33343         (canonicalize_file_name): Cygwin 1.7 now provides this.
33344         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33345         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33346         on AT_SYMLINK_NOFOLLOW.
33347
33348 2009-09-24  Eric Blake  <ebb9@byu.net>
33349
33350         test-linkat: make test more robust
33351         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33352
33353         getopt: fix inclusion guards for cygwin
33354         * modules/getopt-posix (Depends-on): Add include-next.
33355         (Makefile.am): Substitute more items in replacement header.
33356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33357         <getopt.h>.
33358         * lib/getopt.in.h (includes): Use split inclusion guard, and
33359         prefer <getopt.h> over include <unistd.h> when one is present.
33360         (option): Also override name of 'struct option'.
33361
33362         same-inode: revert prior change; it is not yet ready
33363         * NEWS: Undo mention of this change.
33364         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33365         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33366         * lib/cycle-check.c (cycle_check): Likewise.
33367         * lib/same.c (same_name): Likewise.
33368         * lib/at-func2.c (at_func2): Likewise.
33369
33370 2009-09-23  Eric Blake  <ebb9@byu.net>
33371
33372         linkat: new module
33373         * modules/linkat: New file.
33374         * lib/at-func2.c (at_func2): Likewise.
33375         * lib/linkat.c (linkat): Likewise.
33376         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33377         * lib/openat-priv.h (at_func2): Add declaration.
33378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33379         * modules/unistd (Makefile.am): Substitute them.
33380         * lib/unistd.in.h (linkat): Declare it.
33381         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33382         * doc/posix-functions/linkat.texi (linkat): Likewise.
33383         * doc/posix-functions/link.texi (link): Tweak wording.
33384         * tests/test-link.c (main): Move guts...
33385         * tests/test-link.h (test_link): ...into new file.
33386         * modules/linkat-tests: New test.
33387         * tests/test-linkat.c: Likewise.
33388         * modules/link-tests (Files): Ship new file.
33389         (Depends-on): Add stdbool.
33390
33391         dirname: add library-safe mdir_name
33392         * lib/dirname.h (mdir_name): New prototype.
33393         * lib/dirname.c (dir_name): Move guts...
33394         (mdir_name): ...to new function that avoids xalloc_die.
33395
33396         fchdir: another mingw fix
33397         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33398         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33399         on mingw (where it has not yet been ported), and make it optional
33400         elsewhere.
33401         (_gl_register_fd): Use it.
33402
33403         same-inode: make SAME_INODE tri-state, to port to mingw
33404         * NEWS: Mention this change.
33405         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33406         st_ino always being 0.
33407         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33408         * lib/cycle-check.c (cycle_check): Likewise.
33409         * lib/same.c (same_name): Likewise.
33410
33411         lstat: avoid mingw compilation error
33412         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33414         lstat ourselves.
33415         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33416         was adequate.
33417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33418         the checks for lstat.
33419         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33420
33421         link: fix test failure on Solaris 9
33422         * lib/link.c (rpl_link): Don't assume link will catch bogus
33423         trailing slash on source.
33424
33425         test-symlinkat: enhance test
33426         * tests/test-readlink.c (main): Move guts...
33427         * tests/test-readlink.h (test_readlink): ...into new file.
33428         * tests/test-symlink.c (main): Move guts...
33429         * tests/test-symlink.h (test_symlink): ...into new file.
33430         * tests/test-symlinkat.c (main): Use new files for further
33431         coverage.
33432         (do_symlink, do_readlink): New helper functions.
33433         * modules/symlink-tests (Files): Ship new file.
33434         (Depends-on): Add stdbool.
33435         * modules/readlink-tests (Files): Ship new file.
33436         (Depends-on): Add stdbool.
33437         * modules/symlinkat-tests (Files): Use new files.
33438
33439 2009-09-23  Eric Blake  <ebb9@byu.net>
33440
33441         readlink: document portability issue with symlink length
33442         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33443         systems have bogus st_size on symlinks, and mention the
33444         areadlink-with-size module.
33445         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33446         * doc/posix-functions/readlink.texi (readlink): Mention the
33447         areadlink module, and ERANGE failure.
33448         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33449         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33450
33451         readlink: fix Solaris 9 bug with trailing slash
33452         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33453         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33454         * doc/posix-functions/readlink.texi (readlink): Document this.
33455         * modules/readlink-tests: New test.
33456         * tests/test-readlink.c: Likewise.
33457
33458         readlink: fix cygwin 1.5.x bug with return type
33459         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33460         * lib/unistd.in.h (readlink): Use ssize_t.
33461         * lib/readlink.c (readlink): Likewise.
33462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33463         * modules/unistd (Makefile.am): Substitute it.
33464         * lib/unistd.in.h (readlink): Declare replacement.
33465         * doc/posix-functions/readlink.texi (readlink): Document this.
33466
33467         symlink: use throughout gnulib
33468         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33469         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33470         symlink is not used.
33471         * modules/symlinkat (Depends-on): Add symlink.
33472         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33473         * modules/canonicalize-tests (Depends-on): Likewise.
33474         * modules/lstat-tests (Depends-on): Likewise.
33475         * modules/openat-tests (Depends-on): Likewise.
33476         * modules/remove-tests (Depends-on): Likewise.
33477         * modules/rmdir-tests (Depends-on): Likewise.
33478         * modules/unlink-tests (Depends-on): Likewise.
33479         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33480         * tests/test-canonicalize.c (symlink): Likewise.
33481         * tests/test-fstatat.c (symlink): Likewise.
33482         * tests/test-lstat.c (symlink): Likewise.
33483         * tests/test-remove.c (symlink): Likewise.
33484         * tests/test-rmdir.c (symlink): Likewise.
33485         * tests/test-unlink.c (symlink): Likewise.
33486         * tests/test-unlinkat.c (symlink): Likewise.
33487
33488         symlink: new module, for Solaris 9 bug
33489         * modules/symlink: New file.
33490         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33491         * lib/symlink.c: Likewise.
33492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33493         * modules/unistd (Makefile.am): Substitute them.
33494         * lib/unistd.in.h (symlink): Declare replacement.
33495         * MODULES.html.sh (File system functions): Mention it.
33496         * doc/posix-functions/symlink.texi (symlink): Likewise.
33497         * modules/symlink-tests: New test.
33498         * tests/test-symlink.c: Likewise.
33499
33500 2009-09-23  Bruno Haible  <bruno@clisp.org>
33501
33502         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33503         when needed.
33504         Test case: gnulib-tool --import --with-tests atexit inttypes.
33505         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33506
33507 2009-09-23  Bruno Haible  <bruno@clisp.org>
33508
33509         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33510         subcommand, not in a subshell.
33511
33512 2009-09-22  Eric Blake  <ebb9@byu.net>
33513
33514         unistd: sort replacement declarations
33515         * lib/unistd.in.h: Sort declarations.
33516
33517         open, openat: minor optimization
33518         * lib/open.c (open): If open succeeded, len is non-zero.
33519         * lib/openat.c (rpl_openat): Likewise.
33520
33521         link-follow: ensure correct result
33522         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33523         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33524         distinguish between possible failures.
33525
33526 2009-09-21  Eric Blake  <ebb9@byu.net>
33527
33528         fts: avoid compiler warning
33529         * lib/fts.c (dirent_inode_sort_may_be_useful)
33530         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33531
33532 2009-09-19  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/progreloc.c (canonicalize_file_name): New declaration.
33535
33536 2009-09-19  Eric Blake  <ebb9@byu.net>
33537
33538         link: fix quoting
33539         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33540
33541         openat: fix openat bugs on Solaris 9
33542         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33543         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33544         * modules/openat (Depends-on): Add open.
33545         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33546         * modules/fcntl-h (Makefile.am): Substitute it.
33547         * lib/fcntl.in.h (openat): Declare replacement.
33548         * doc/posix-functions/openat.texi (openat): Document this.
33549
33550         openat: move fstatat and unlinkat into correct files
33551         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33552         compiled.
33553         * lib/openat.c (fstatat, unlinkat): Move...
33554         * lib/fstatat.c (fstatat): ...into correct files.
33555         * lib/unlinkat.c (unlinkat): Likewise.
33556
33557         openat: fix unlinkat bugs on Solaris 9
33558         * lib/unlinkat.c (unlinkat): New file.
33559         * modules/openat (Depends-on): Add unlink.
33560         (Files): Distribute it.
33561         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33562         trailing slash behavior is broken.
33563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33564         * modules/unistd (Makefile.am): Substitute it.
33565         * lib/unistd.in.h (unlinkat): Declare replacement.
33566         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33567
33568         openat: fix fstatat bugs on Solaris 9
33569         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33570         stat.
33571         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33572
33573         test-unlinkat: enhance test, to expose Solaris 9 bug
33574         * tests/test-unlink.c (main): Factor guts...
33575         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33576         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33577         * tests/test-rmdir.c (main): Adjust caller.
33578         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33579         (unlinker): New helper function.
33580         (rmdirat): Enhance check.
33581         * modules/rmdir-tests (Depends-on): Add stdbool.
33582         * modules/unlink-tests (Depends-on): Likewise.
33583         (Files): Add test-unlink.h.
33584         * modules/openat-tests (Files): Likewise.
33585         (Depends-on): Add unlinkdir.
33586
33587         test-fstatat: new test, to expose Solaris 9 bugs
33588         * tests/test-stat.c (main): Factor guts...
33589         * tests/test-stat.h (test_stat_func): ...into new file.
33590         * tests/test-lstat.c (main): Factor guts...
33591         * tests/test-lstat.h (test_lstat_func): ...into new file.
33592         * tests/test-fstatat.c: New file.
33593         * modules/stat-tests (Files): Add test-stat.h.
33594         * modules/lstat-tests (Files): Add test-lstat.h.
33595         (Depends-on): Add stdbool.
33596         * modules/openat-tests (Depends-on): Add pathmax.
33597         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33598         (Makefile.am): Run new test.
33599
33600         remove: new module, for mingw and Solaris 9 bugs
33601         * modules/remove: New file.
33602         * lib/remove.c: Likewise.
33603         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33605         * modules/stdio (Makefile.am): Use them.
33606         * lib/stdio.in.h (remove): Declare replacement.
33607         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33608         * doc/posix-functions/remove.texi (remove): Likewise.
33609         * modules/remove-tests: New test.
33610         * tests/test-remove.c: Likewise.
33611
33612         unlink: new module, for Solaris 9 bug
33613         * modules/unlink: New file.
33614         * lib/unlink.c: Likewise.
33615         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33617         * modules/unistd (Makefile.am): Use them.
33618         * lib/unistd.in.h (stat): Declare replacement.
33619         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33620         * doc/posix-functions/unlink.texi (unlink): Likewise.
33621         * modules/unlink-tests: New test.
33622         * tests/test-unlink.c: Likewise.
33623
33624         lstat: fix Solaris 9 bug
33625         * lib/lstat.c (lstat): Also check for trailing slash on
33626         non-symlink, non-directories.  Use stat module to simplify logic.
33627         * doc/posix-functions/lstat.texi (lstat): Document it.
33628         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33629         (configure.ac): Check for symlink.
33630         * tests/test-lstat.c (main): Add more tests.
33631
33632         stat: add as dependency to other modules
33633         * modules/chown (Depends-on): Add stat.
33634         * modules/euidaccess (Depends-on): Likewise.
33635         * modules/fchdir (Depends-on): Likewise.
33636         * modules/isdir (Depends-on): Likewise.
33637         * modules/link (Depends-on): Likewise.
33638         * modules/lstat (Depends-on): Likewise.
33639         * modules/mkdir-p (Depends-on): Likewise.
33640         * modules/modechange (Depends-on): Likewise.
33641         * modules/open (Depends-on): Likewise.
33642         * modules/readlink (Depends-on): Likewise.
33643         * modules/same (Depends-on): Likewise.
33644
33645         stat: fix Solaris 9 bug
33646         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33647         slash.
33648         * lib/stat.c (rpl_stat): Work around it.
33649         * doc/posix-functions/stat.texi (stat): Update documentation.
33650
33651         stat: new module, for mingw bug
33652         * modules/stat: New file.
33653         * lib/stat.c: Likewise.
33654         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33656         * modules/sys_stat (Makefile.am): Use them.
33657         * lib/sys_stat.in.h (stat): Declare replacement.
33658         * lib/openat.c (fstatat): Deal with lstat and stat being function
33659         macros.
33660         * modules/openat (Depends-on): Add inline.
33661         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33662         * doc/posix-functions/stat.texi (stat): Likewise.
33663         * modules/stat-tests: New test.
33664         * tests/test-stat.c: Likewise.
33665
33666 2009-09-19  Jim Meyering  <meyering@redhat.com>
33667
33668         syntax-check: detect unnecessary inclusion of canonicalize.h
33669         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33670
33671 2009-09-19  Eric Blake  <ebb9@byu.net>
33672
33673         canonicalize-lgpl: adjust clients to use correct header
33674         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33675         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33676         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33677         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33678         * lib/progreloc.c (includes): Likewise.
33679
33680 2009-09-19  Jim Meyering  <meyering@redhat.com>
33681
33682         test-posixtm.c: correct a comment
33683         * tests/test-posixtm.c: Correct first-line comment.
33684         Spotted by Eric Blake.
33685
33686 2009-09-16  Jim Meyering  <meyering@redhat.com>
33687
33688         posixtm-tests: make T const-correct; add a test case
33689         * tests/test-posixtm.c (T): Declare const.
33690         Add a test for -(2^31+1).
33691         Remove useless can-succeed-only-in-2002 test.
33692
33693         posixtm-tests: adjust the sole failing test
33694         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33695         expected output matches what mktime now produces.  Cross-checked via
33696         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33697
33698         posixtm: move #ifdef'd tests into a new module
33699         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33700         * tests/test-posixtm.c: ... this new file.
33701         * modules/posixtm-tests: New module.
33702
33703 2009-09-19  Eric Blake  <ebb9@byu.net>
33704
33705         openat: simplify use of at-func.c
33706         * lib/at-func.c (includes): Include prerequisites here, to
33707         simplify requirements on client files.
33708         * lib/openat-priv.h: Add double-inclusion guard.
33709         * lib/faccessat.c (includes): Simplify.
33710         * lib/fchmodat.c (includes): Likewise.
33711         * lib/fchownat.c (includes): Likewise.
33712         * lib/mkdirat.c (includes): Likewise.
33713         * lib/mkfifoat.c (includes): Likewise.
33714         * lib/symlinkat.c (includes): Likewise.
33715
33716         openat: allow return of fd 0
33717         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33718         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33719         unistd-safer.
33720         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33721         <fcntl.h>; this module does not leak fds.
33722         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33723         must be allowed to return 0, leaving openat_safer to add the
33724         safety.
33725         (openat_permissive): Avoid writing to just-opened fd 2 if
33726         restoring the current directory fails.
33727         * lib/openat-die.c (openat_restore_fail): Add comment.
33728         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33729         (save_cwd): Guarantee safe fd, but without use of open_safer.
33730         * tests/test-openat.c: New test.
33731         * modules/openat-tests (Files, Makefile.am): Distribute and build
33732         new file.
33733
33734         relocatable-prog-wrapper: fix build
33735         * modules/relocatable-prog-wrapper (Files): Update name of
33736         canonicalize m4 file, broken on 2009-09-17.
33737         Reported by emad hajjar <aleppos@hotmail.com>.
33738
33739 2009-09-19  Bruno Haible  <bruno@clisp.org>
33740
33741         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33742         * lib/safe-alloc.c: Likewise.
33743         Reported by Ian Beckwith <ianb@erislabs.net>.
33744
33745 2009-09-18  Bruno Haible  <bruno@clisp.org>
33746
33747         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33748         Reported by <erobles@sensacd.com.mx>.
33749
33750 2009-09-17  Eric Blake  <ebb9@byu.net>
33751
33752         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33753         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33754         slashes when checking if last component is missing.
33755         * tests/test-canonicalize.c (main): Test this.
33756
33757         canonicalize, canonicalize-lgpl: honor // if distinct from /
33758         * modules/canonicalize (Files): Add double-slash-root.m4.
33759         * modules/canonicalize-lgpl (Files): Likewise.
33760         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33761         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33762         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33763         fallback definition.
33764         (canonicalize_filename_mode): Use it to protect //.
33765         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33766         (__realpath): Likewise.
33767         * tests/test-canonicalize.c (main): Test this.
33768         * tests/test-canonicalize-lgpl.c (main): Likewise.
33769         * modules/canonicalize-tests (Depends-on): Add same-inode.
33770         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33771
33772         canonicalize-lgpl: fix glibc bug with trailing slash
33773         * m4/canonicalize-lgpl.m4: Move contents...
33774         * m4/canonicalize.m4: ...here.
33775         (gl_CANONICALIZE_LGPL): Factor realpath check...
33776         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33777         glibc 2.3.5 bug, fixed 2005-04-27.
33778         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33779         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33780         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33781         * modules/canonicalize-lgpl (Files): Manage file rename.
33782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33783         * modules/stdlib (Makefile.am): Substitute witness.
33784         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33785         is needed.
33786         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33787         replacement is required.
33788         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33789         * doc/glibc-functions/canonicalize_file_name.texi
33790         (canonicalize_file_name): Document this.
33791         * doc/posix-functions/realpath.texi (realpath): Likewise.
33792
33793         canonicalize-lgpl: reject non-directory with trailing slash
33794         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33795         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33796         catches failures in glibc 2.3.5.
33797         * tests/test-canonicalize.c (main): Likewise.
33798
33799         canonicalize-lgpl: use native realpath if it works
33800         * lib/canonicalize-lgpl.c (realpath): Guard with
33801         FUNC_REALPATH_WORKS.
33802         * lib/stdlib.in.h (realpath): Make declaration optional based on
33803         HAVE_REALPATH.
33804         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33805         native realpath works.
33806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33807         * modules/stdlib (Makefile.am): Substitute witness.
33808
33809         canonicalize, canonicalize-lgpl: use <stdlib.h>
33810         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33811         (Include): Mention <stdlib.h>.
33812         (configure.ac): Mention functions we provide.
33813         * modules/canonicalize (configure.ac): Likewise.
33814         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33815         realpath if canonicalize_file_name is missing.
33816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33817         * modules/stdlib (Makefile.am): Substitute witnesses.
33818         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33819         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33820         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33821         * NEWS: Document this.
33822         * doc/glibc-functions/canonicalize_file_name.texi
33823         (canonicalize_file_name): Likewise.
33824         * doc/posix-functions/realpath.texi (realpath): Likewise.
33825         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33826
33827         test-canonicalize: consolidate into single C program
33828         * tests/test-canonicalize.sh: Delete; move setup into...
33829         * tests/test-canonicalize.c (main): ...the program, making it
33830         easier to run in debugger.  Add some tests.
33831         * modules/canonicalize-tests (Files): Remove unused file.
33832         (Depends-on): Add progname.
33833         (configure.ac, Makefile.am): Simplify.
33834
33835         test-canonicalize-lgpl: consolidate into single C program
33836         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33837         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33838         easier to run in debugger.  Add some tests.
33839         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33840         (configure.ac, Makefile.am): Simplify.
33841
33842         canonicalize: avoid resolvepath
33843         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33844         unnecessary checks.
33845         * lib/canonicalize.c (includes): Simplify.
33846         (canonicalize_file_name): Drop resolvepath implementation.
33847         * modules/canonicalize (Depends-on): Drop filenamecat.
33848
33849         canonicalize: don't lose errno
33850         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33851         over calls to free.
33852
33853         canonicalize: simplify errno handling
33854         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33855         assignment.
33856
33857         canonicalize, canonicalize-lgpl: update module dependencies
33858         * modules/canonicalize (Depends-on): Add extensions, lstat,
33859         pathmax, stdlib.
33860         (Files): Drop pathmax.h.
33861         (configure.ac): Adjust macro name.
33862         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33863         lstat, stdlib, sys_stat.
33864         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33865         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33866         extensions.
33867         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33868         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33869         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33870         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33871         declaration, if available.
33872         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33873         we can rely on the readlink module.
33874         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33875         (includes): Use <unistd.h> unconditionally.
33876
33877 2009-09-17  Eric Blake  <ebb9@byu.net>
33878
33879         maint: make Include sections of modules consistent
33880         * modules/alloca: Use only header name; no need to list #include.
33881         * modules/alloca-opt: Likewise.
33882         * modules/arpa_inet: Likewise.
33883         * modules/canon-host: Likewise.
33884         * modules/configmake: Likewise.
33885         * modules/dirent: Likewise.
33886         * modules/eealloc: Likewise.
33887         * modules/environ: Likewise.
33888         * modules/fchdir: Likewise.
33889         * modules/fcntl: Likewise.
33890         * modules/fcntl-h: Likewise.
33891         * modules/gethrxtime: Likewise.
33892         * modules/gettime: Likewise.
33893         * modules/ignore-value: Likewise.
33894         * modules/inet_ntop: Likewise.
33895         * modules/inet_pton: Likewise.
33896         * modules/inttypes: Likewise.
33897         * modules/isnand-nolibm: Likewise.
33898         * modules/isnanf-nolibm: Likewise.
33899         * modules/mbchar: Likewise.
33900         * modules/mbfile: Likewise.
33901         * modules/mbiter: Likewise.
33902         * modules/mbuiter: Likewise.
33903         * modules/netdb: Likewise.
33904         * modules/netinet_in: Likewise.
33905         * modules/nproc: Likewise.
33906         * modules/pagealign_alloc: Likewise.
33907         * modules/poll: Likewise.
33908         * modules/printf-frexp: Likewise.
33909         * modules/pthread: Likewise.
33910         * modules/putenv: Likewise.
33911         * modules/random_r: Likewise.
33912         * modules/relocatable-prog: Likewise.
33913         * modules/search: Likewise.
33914         * modules/select: Likewise.
33915         * modules/selinux-h: Likewise.
33916         * modules/settime: Likewise.
33917         * modules/signal: Likewise.
33918         * modules/size_max: Likewise.
33919         * modules/socklen: Likewise.
33920         * modules/ssize_t: Likewise.
33921         * modules/stdarg: Likewise.
33922         * modules/stdbool: Likewise.
33923         * modules/stddef: Likewise.
33924         * modules/stdint: Likewise.
33925         * modules/stdio: Likewise.
33926         * modules/stdlib: Likewise.
33927         * modules/string: Likewise.
33928         * modules/strings: Likewise.
33929         * modules/sys_file: Likewise.
33930         * modules/sys_ioctl: Likewise.
33931         * modules/sys_select: Likewise.
33932         * modules/sys_socket: Likewise.
33933         * modules/sys_stat: Likewise.
33934         * modules/sys_time: Likewise.
33935         * modules/sys_times: Likewise.
33936         * modules/sys_utsname: Likewise.
33937         * modules/sys_wait: Likewise.
33938         * modules/sysexits: Likewise.
33939         * modules/time: Likewise.
33940         * modules/times: Likewise.
33941         * modules/tmpfile: Likewise.
33942         * modules/trim: Likewise.
33943         * modules/unistd: Likewise.
33944         * modules/wchar: Likewise.
33945         * modules/wctype: Likewise.
33946
33947 2009-09-17  Bruno Haible  <bruno@clisp.org>
33948
33949         Make getdate.y compile on QNX and NetBSD 5 / i386.
33950         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33951         TIME_T_FITS_IN_LONG_INT.
33952         * lib/getdate.y (long_time_t): New type.
33953         (relative_time): Change type of 'seconds' field to long_time_t.
33954         (get_date): Update types of local variables. Check against overflow
33955         during conversion from long_time_t to time_t.
33956         Reported by Matt Kraai <kraai@ftbfs.org>
33957         and Hasso Tepper <hasso@netbsd.org>.
33958
33959 2009-09-17  Bruno Haible  <bruno@clisp.org>
33960
33961         * modules/COPYING: Update copyright years.
33962         * modules/README: Likeiwse.
33963         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33964         Reported by Ian Beckwith <ianb@erislabs.net>.
33965
33966 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33967
33968         * users.txt: Update references for gnuit package.
33969
33970 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33971
33972         * m4/getdelim.m4: Fix typo in copyright line.
33973
33974 2009-09-17  Bruno Haible  <bruno@clisp.org>
33975
33976         * lib/atoll.c: Use the standard header with GPL copyright.
33977         * lib/argz.in.h: Likewise.
33978         * lib/glob.c: Likewise.
33979         * lib/glob-libc.h: Likewise.
33980         * lib/random_r.c: Likewise.
33981         * lib/siglist.h: Likewise.
33982         * lib/strsignal.c: Likewise.
33983         Reported by Ian Beckwith <ianb@erislabs.net>.
33984
33985 2009-09-17  Eric Blake  <ebb9@byu.net>
33986
33987         rmdir: ensure correct dependency order
33988         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33989
33990 2009-09-17  Bruno Haible  <bruno@clisp.org>
33991
33992         Disable assertion that fails on NetBSD 5 / i386.
33993         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33994         Reported by Sam Steingold <sds@gnu.org>
33995         and Hasso Tepper <hasso@netbsd.org>.
33996
33997 2009-09-16  Eric Blake  <ebb9@byu.net>
33998
33999         unlinkdir: port to mingw
34000         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34001         on which no one can unlink a directory.
34002
34003         stdlib: sort witness names
34004         * modules/stdlib (Makefile.am): Sort replacements.
34005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34006         * lib/stdlib.in.h: Likewise.
34007
34008         parse-duration-tests: avoid link failure
34009         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34010         LIBINTL.
34011         Reported by Tom G. Christensen.
34012
34013         openat-tests: ensure unlinkat behaves like rmdir
34014         * tests/test-rmdir.c (main): Factor guts...
34015         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34016         * modules/rmdir-tests (Files): Ship new file.
34017         * modules/openat-tests: New test.
34018         * tests/test-unlinkat.c: Likewise.
34019
34020         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34021         * modules/rmdir-errno (Status, Notice): Now obsolete.
34022
34023         rmdir: work around cygwin 1.5.x and mingw bugs
34024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34025         * lib/rmdir.c (rmdir): Work around it.
34026         * modules/rmdir (Status, Notice): No longer obsolete.
34027         (Files): Add dos.m4.
34028         (Depends-on): Add unistd.
34029         (configure.ac): Set witnesses.
34030         (License): Relax to LGPLv2+.
34031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34032         * modules/unistd (Makefile.am): Substitute witnesses.
34033         * lib/unistd.in.h (rmdir): Declare replacement.
34034         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34035         * modules/rmdir-tests: New tests.
34036         * tests/test-rmdir.c: Likewise.
34037
34038 2009-09-15  Eric Blake  <ebb9@byu.net>
34039
34040         fchdir: improve use of replacement functions
34041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34043         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34044         REPLACE_CLOSEDIR.
34045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34046         * modules/sys_stat (Makefile.am): Substitute correct witness.
34047         * modules/dirent (Makefile.am): Likewise.
34048         * modules/unistd (Makefile.am): Likewise.
34049         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34050         * lib/unistd.in.h (dup): Likewise.
34051         * lib/sys_stat.in.h (fstat): Likewise.
34052
34053         maint: ignore gnulib-tool temp files
34054         * .gitignore: Ignore files created during gnulib-tool --test.
34055
34056 2009-09-13  Jim Meyering  <meyering@redhat.com>
34057
34058         posixtm: don't reject a time that specify "60" as the number of seconds
34059         * lib/posixtm.c (posixtime): The code to reject invalid dates
34060         would also reject a time specified with the .60 suffix.
34061         But POSIX allows that, in order to accommodate leap seconds.
34062         So don't reject it.
34063         (main): Adjust tests accordingly.
34064         * modules/posixtm (Depends-on): Add stpcpy.
34065
34066 2009-09-11  Jim Meyering  <meyering@redhat.com>
34067
34068         announce-gen: include [$release_type] in emitted Subject:
34069         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34070         e.g., [stable] in the emitted Subject: line.
34071
34072 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34073
34074         Remove obsolete macros from several modules.
34075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34076         obsolete Autoconf macros with their modern counterparts.
34077         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34078         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34080         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34082         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34084         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34085         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34086         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34087         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34089         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34090         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34091         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34092         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34093         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34094         * m4/time_r.m4 (gl_TIME_R): Likewise.
34095         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34096         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34097         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34098
34099         Fix copyright header in build-aux scripts.
34100         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34101         recommendation.
34102         * build-aux/ncftpput-ftp: Likewise.
34103         * build-aux/update-copyright: Likewise.
34104
34105 2009-09-09  Eric Blake  <ebb9@byu.net>
34106
34107         test-link: allow Linux choice of errno
34108         * tests/test-link.c (main): Relax test for alternate error.
34109
34110         strndup: fix improper m4 caching
34111         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34112         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34113         (gl_PREREQ_STRNDUP): Delete.
34114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34115         * modules/string (Makefile.am): Substitute it.
34116         * lib/string.in.h (strndup): Modernize prototype.
34117
34118         getcwd: port to mingw
34119         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34120         different from the POSIX assumptions made throughout the getcwd
34121         module; fortunately, the mingw getcwd does not need replacement.
34122         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34123         * modules/getcwd-tests: New test.
34124         * tests/test-getcwd.c: Likewise.
34125
34126         link: fix platform bugs
34127         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34128         * lib/link.c (link): Work around them.  Fix related mingw bug.
34129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34130         * modules/unistd (Makefile.am): Substitute it.
34131         * lib/unistd.in.h (link): Declare replacement.
34132         * doc/posix-functions/link.texi (link): Document this.
34133         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34134
34135         test-link: consolidate into single C program, test more cases
34136         * tests/test-link.sh: Delete.
34137         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34138         at least Cygwin and Solaris.
34139         * modules/link-tests (Files): Remove unused file.
34140         (Depends-on): Add errno, sys_stat.
34141         (Makefile.am): Simplify.
34142
34143 2009-09-08  Bruno Haible  <bruno@clisp.org>
34144
34145         Work around towlower, towupper bug on mingw.
34146         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34147         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34148         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34149         * doc/posix-functions/towupper.texi: Likewise.
34150         Reported by Eric Blake.
34151
34152 2009-09-08  Jim Meyering  <meyering@redhat.com>
34153
34154         build: don't try to run autoheader if we don't use it
34155         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34156         is not used in configure.ac.
34157
34158 2009-09-08  Eric Blake  <ebb9@byu.net>
34159
34160         euidaccess: fix compilation error
34161         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34162
34163         rawmemchr: relax license
34164         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34165         okay.
34166         Reported by Jim Meyering.
34167
34168         mkfifoat: new module
34169         * modules/mkfifoat: New file.
34170         * lib/mkfifoat.c: Likewise.
34171         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34173         * modules/sys_stat (Makefile.am): Use them.
34174         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34175         * MODULES.html.sh (File system functions): Mention module.
34176         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34177         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34178         * modules/mkfifoat-tests: New test.
34179         * tests/test-mkfifoat.c: Likewise.
34180
34181         strchrnul: relax license
34182         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34183         okay.
34184         Reported by Jim Meyering.
34185
34186 2009-09-08  Eric Blake  <ebb9@byu.net>
34187
34188         fstatat: fix compilation on Solaris
34189         * lib/fstatat.c (includes): Add fcntl.h.
34190         Reported by Pádraig Brady.
34191
34192 2009-09-07  Eric Blake  <ebb9@byu.net>
34193
34194         rename: modernize replacement
34195         * modules/rename (Depends-on): Add stdio.
34196         (configure.ac): Declare witness.
34197         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34198         stdio take care of replacement.
34199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34200         * modules/stdio (Makefile.am): Substitute them.
34201         * lib/stdio.in.h (rename): Declare replacement.
34202         * lib/rename.c (includes): Allow cross-compilation to non-windows
34203         machines.
34204         * doc/posix-functions/rename.texi (rename): Improve
34205         documentation.
34206
34207         stdio: sort witness names
34208         * modules/stdio (Makefile.am): Sort replacements.
34209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34210         * lib/stdio.in.h: Likewise.
34211
34212         getcwd: minor cleanups
34213         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34214         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34215
34216         openat: provide more convenience names
34217         * modules/faccessat (configure.ac): Add C witness.
34218         * lib/unistd.in.h (readlinkat): Fix typo.
34219         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34220         convenience wrappers.
34221         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34222         wrappers in syntax checks.
34223
34224 2009-09-06  Eric Blake  <ebb9@byu.net>
34225
34226         doc: fix comments in recent patches
34227         * lib/faccessat.c: Mention correct function.
34228         * lib/fchmodat.c: Likewise.
34229         * lib/fchownat.c: Likewise.
34230         * lib/symlinkat.c: Likewise.
34231         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34232         constants.
34233
34234         faccessat, symlinkat: continue cleanup of previous patch
34235         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34236         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34237         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34239         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34240         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34241         set.
34242
34243 2009-09-06  Bruno Haible  <bruno@clisp.org>
34244
34245         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34246         (fstatat): Declare if GNULIB_FSTATAT is set.
34247         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34248         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34249         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34250         * modules/fcntl-h (Files): Remove m4/openat.m4.
34251         * modules/sys_stat (Files): Remove m4/openat.m4.
34252         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34253         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34254         * modules/unistd (Files): Remove m4/openat.m4.
34255         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34256         GNULIB_OPENAT.
34257         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34258         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34260         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34261         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34262         gl_OPENAT_DEFAULTS.
34263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34264         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34265         Don't require gl_OPENAT_DEFAULTS.
34266         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34267         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34268         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34269         (gl_OPENAT_DEFAULTS): Remove macro.
34270
34271 2009-09-06  Bruno Haible  <bruno@clisp.org>
34272
34273         * modules/openat (configure.ac): Remove unneeded witness.
34274
34275 2009-09-06  Bruno Haible  <bruno@clisp.org>
34276
34277         Set errno to ENOSYS when a function is entirely unsupported.
34278         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34279         EOPNOTSUPP.
34280         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34281         * modules/chown (Depends-on): Remove errno.
34282
34283 2009-09-06  Bruno Haible  <bruno@clisp.org>
34284
34285         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34286
34287 2009-09-06  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34290
34291 2009-09-06  Ben Pfaff  <blp@gnu.org>
34292             Bruno Haible  <bruno@clisp.org>
34293
34294         Work around a glibc bug in strtok_r.
34295         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34296         Undefine if UNDEFINE_STRTOK_R is set.
34297         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34299         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34301         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34302         UNDEFINE_STRTOK_R.
34303         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34304
34305 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34306
34307         exclude: minor fix
34308         * lib/exclude.c: Include wctype.h
34309
34310 2009-09-06  Akim Demaille  <demaille@gostai.com>
34311
34312         bootstrap: improve error message
34313         * build-aux/bootstrap (find_tool): Upon failure, report the list
34314         of candidates.
34315         Honor the initial value of the envvar.
34316
34317 2009-09-05  Eric Blake  <ebb9@byu.net>
34318
34319         symlinkat: new module
34320         * modules/symlinkat: New file.
34321         * lib/symlinkat.c: Likewise.
34322         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34324         * modules/unistd (Makefile.am): Use them.
34325         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34326         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34327         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34328         * MODULES.html.sh (File system functions): Mention module.
34329         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34330         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34331         * modules/symlinkat-tests: New test.
34332         * tests/test-symlinkat.c: Likewise.
34333
34334         test-openat-safer: add more checks
34335         * tests/test-openat-safer.c (main): Check more code paths.
34336
34337 2009-09-05  Jim Meyering  <meyering@redhat.com>
34338
34339         syntax-check: detect unnecessary inclusion of openat.h
34340         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34341
34342 2009-09-05  Bruno Haible  <bruno@clisp.org>
34343
34344         Support towlower, towupper.
34345         * doc/posix-functions/towlower.texi: Mention module wctype.
34346         * doc/posix-functions/towupper.texi: Likewise.
34347         * lib/wctype.in.h (towlower, towupper): New functions.
34348         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34349         (ASSERT): New macro.
34350         (e): New variable.
34351         (main): Test also towlower, towupper. Test WEOF argument.
34352         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34353
34354 2009-09-05  Bruno Haible  <bruno@clisp.org>
34355
34356         Fix conversion behaviour when the input is invalid.
34357         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34358         mark occurring in first pass of indirect conversion.
34359         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34360         input.
34361         Found by clang's static analyzer.
34362
34363 2009-09-05  Bruno Haible  <bruno@clisp.org>
34364
34365         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34366         where direct conversion is possible.
34367
34368 2009-09-04  Eric Blake  <ebb9@byu.net>
34369
34370         openat: fail with ENOENT on empty name
34371         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34372         buffer.
34373
34374         link-follow: fix logic bug in prior patch
34375         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34376         reversed sense of yes and no in prior patch.  Avoid confusing
34377         compilation failure with desired semantics.
34378
34379         link-follow: accomodate mingw and cross-compilation
34380         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34381         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34382         cross-compilation results to -1, to make linkat easier to
34383         implement when cross-compiling.  Trivially support mingw.
34384         * modules/link-follow (configure.ac): Call new name.
34385         * NEWS: Mention this.
34386
34387 2009-09-03  Eric Blake  <ebb9@byu.net>
34388
34389         faccessat: compile replacement
34390         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34391         needed.
34392
34393         fts: fix compilation error
34394         * lib/fts.c (includes): Re-add "openat.h", for
34395         openat_needs_fchdir.
34396
34397         faccessat: new module
34398         * modules/faccessat: New file.
34399         * lib/faccessat.c: Likewise.
34400         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34402         * modules/unistd (Makefile.am): Use it.
34403         * lib/unistd.in.h (faccessat): Declare it.
34404         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34405         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34406         * MODULES.html.sh (File system functions): Mention it.
34407         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34408         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34409
34410         euidaccess: prefer POSIX over non-standard implementation
34411         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34412         * lib/euidaccess.c (euidaccess): Use it if available.
34413
34414         openat: make template easier to use
34415         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34416         AT_FUNC_F2 to be undefined.
34417         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34418         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34419         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34420         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34421         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34422         Likewise.
34423         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34424         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34425         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34426         Likewise.
34427
34428         openat: declare in POSIX headers
34429         * NEWS: Mention this.
34430         * modules/openat (configure.ac): Declare witnesses.
34431         (Depends-on): Add fcntl-h, sys_stat, unistd.
34432         (Include): Mention correct headers.
34433         * modules/fcntl-h (Depends-on): Add link-warning.
34434         (Files): Add openat.m4.
34435         (Makefile.am): Substitute witnesses.
34436         * modules/sys_stat (Files, Makefile.am): Likewise.
34437         * modules/unistd (Files, Makefile.am): Likewise.
34438         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34439         (gl_OPENAT_DEFAULTS): New macro.
34440         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34442         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34443         (SYS_STAT_H): Remove unused variable.
34444         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34445         * lib/fcntl--.h (includes): Remove unneeded header.
34446         * lib/openat-safer.c (includes): Likewise.
34447         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34448         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34449         appropriate headers.
34450         (__OPENAT_PREFIX): Delete.
34451         * lib/fcntl.in.h (openat): Provide declaration.
34452         (AT_FDCWD): Fix Solaris bug.
34453         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34454         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34455         * lib/fchmodat.c (includes):  Adjust to find declaration.
34456         * lib/fchownat.c (includes): Likewise.
34457         * lib/mkdirat.c (includes): Likewise.
34458         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34459         still visible.
34460
34461 2009-09-02  Eric Blake  <ebb9@byu.net>
34462
34463         errno: use consistently
34464         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34465         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34466         * lib/canonicalize.c (ELOOP): Likewise.
34467         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34468         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34469         * lib/lchown.c (EOPNOTSUPP): Likewise.
34470         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34471         * lib/savewd.c (ESTALE): Likewise.
34472         * lib/settime.c (ENOSYS): Likewise.
34473         * lib/utimens.c (ENOSYS): Likewise.
34474         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34475         * lib/chdir-safer.c (ELOOP): Likewise.
34476         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34477         * modules/c-stack (Depends-on): Add errno.
34478         * modules/canonicalize (Depends-on): Likewise.
34479         * modules/chdir-safer (Depends-on): Likewise.
34480         * modules/fdopendir (Depends-on): Likewise.
34481         * modules/inet_ntop (Depends-on): Likewise.
34482         * modules/inet_pton (Depends-on): Likewise.
34483         * modules/lchown (Depends-on): Likewise.
34484         * modules/openat (Depends-on): Likewise.
34485         * modules/savewd (Depends-on): Likewise.
34486         * modules/settime (Depends-on): Likewise.
34487         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34488
34489         fts: avoid leaking fds
34490         * modules/fts (Depends-on): Add cloexec.
34491         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34492         flag.
34493
34494         fts: make directory fds more robust
34495         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34496         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34497
34498         backupfile, chdir-long, fts, savedir: make safer
34499         * lib/backupfile.c (includes): Use "dirent--.h", since
34500         numbered_backup can write to stderr during readdir.
34501         * lib/savedir.c (includes): Likewise.
34502         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34503         emulation can write to stderr on failure.
34504         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34505         * lib/getcwd.c: Document why opendir_safer is unused.
34506         * lib/glob.c: Likewise.
34507         * lib/scandir.c: Likewise.
34508         * lib/openat-proc.c: Likewise, for open_safer.
34509         * modules/backupfile (Depends-on): Add dirent-safer.
34510         * modules/savedir (Depends-on): Likewise.
34511         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34512         * modules/chdir-long (Depends-on): Add openat-safer.
34513
34514         openat-safer: new module
34515         * modules/openat-safer: New file.
34516         * lib/openat-safer.c: Likewise.
34517         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34518         * lib/fcntl-safer.h (openat_safer): Declare.
34519         * lib/fcntl--.h (openat): Override.
34520         * MODULES.html.sh (File descriptor based I/O): Mention it.
34521         * lib/openat.h: Add double-inclusion guards.
34522         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34523         "fcntl--.h", so we can implement openat.
34524         * modules/openat-safer-tests: New test.
34525         * tests/test-openat-safer.c: New file.
34526
34527         dirent-safer: new module
34528         * modules/dirent-safer: New file.
34529         * lib/dirent--.h: Likewise.
34530         * lib/dirent-safer.h: Likewise.
34531         * lib/opendir-safer.c: Likewise.
34532         * m4/dirent-safer.m4: Likewise.
34533         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34534         * modules/dirent-safer-tests: New test.
34535         * tests/test-dirent-safer.c: New file.
34536         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34537
34538         fdopendir: optimize on mingw
34539         * lib/unistd.in.h (_gl_directory_name): New prototype.
34540         * lib/fchdir.c (_gl_directory_name): Implement it.
34541         (fchdir): Use it to simplify implementation.
34542         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34543         fchdir, when available, to avoid calling [f]chdir().
34544
34545         fdopendir: split into its own module
34546         * lib/openat.c (fdopendir): Move...
34547         * lib/fdopendir.c: ...into new file.
34548         * modules/fdopendir: New module.
34549         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34550         * modules/openat (Depends-on): Add fdopendir.
34551         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34552         fdopendir here.
34553         * modules/savedir (Depends-on): Only need fdopendir, not full
34554         openat.
34555         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34556         * lib/openat.h (fdopendir): Drop prototype.
34557         * lib/dirent.in.h (fdopendir): Provide prototype.
34558         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34559         * modules/dirent (Makefile.am): Substitute them.
34560         * MODULES.html.sh (File system functions): Mention it.
34561         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34562         * modules/fdopendir-tests: New file.
34563         * tests/test-fdopendir.c: Likewise.
34564
34565         fchdir: use more consistent macro convention
34566         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34567         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34568         REPLACE_FCHDIR, rather than relying on config.h macros.
34569         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34570         inside a single make-time REPLACE_FCHDIR block, rather than using
34571         the config.h FCHDIR_REPLACEMENT.
34572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34573         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34574         Manage fstat replacement.
34575         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34576         REPLACE_FCHDIR.
34577         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34578         (Makefile.am): Substitute REPLACE_FCHDIR.
34579         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34580         FCHDIR_REPLACEMENT.
34581         * lib/dup-safer.c (dup_safer): Likewise.
34582         * lib/dup2.c (rpl_dup2): Likewise.
34583         * lib/dup3.c (rpl_dup3): Likewise.
34584         * lib/open.c (rpl_open): Likewise.
34585
34586         fchdir: simplify error handling, and support dup3
34587         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34588         stdbool, malloc-posix, realloc-posix.
34589         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34590         (ensure_dirs_slot): Return false on allocation failure.
34591         (rpl_dup2): Delete.
34592         (_gl_register_dup): New function.
34593         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34594         (_gl_register_fd): Close fd on allocation failure.
34595         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34596         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34597         prototype.
34598         (rpl_dup2_fchdir): Delete prototype.
34599         * lib/open.c (open): Update caller.
34600         * lib/dup2.c (dup2): Track fchdir metadata.
34601         * lib/dup3.c (dup3): Likewise.
34602         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34604
34605 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34606
34607         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34608         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34609         don't pass arguments to AC_OUTPUT.
34610
34611 2009-09-02  Bruno Haible  <bruno@clisp.org>
34612
34613         * modules/mkdtemp (License): Relicense under LGPLv2+.
34614         Reported by Paolo Bonzini.
34615
34616 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34617
34618         Replace uses of obsolete autoconf macros in Jim's modules.
34619         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34620         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34621         can evoke a warning from autoconf when run with -Wobsolete
34622         enabled.  They were declared obsolete for good reasons (see
34623         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34624         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34625         should not continue using the deprecated macros.
34626         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34627         obsolete Autoconf macros with modern counterparts.
34628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34629         * m4/dos.m4 (gl_AC_DOS): Likewise.
34630         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34631         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34632         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34633         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34634         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34635         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34636         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34637         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34638         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34639         Likewise.
34640         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34641         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34642         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34643         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34644         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34645         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34646
34647 2009-09-01  Eric Blake  <ebb9@byu.net>
34648
34649         fchdir: fix off-by-one bug in previous patch
34650         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34651         (_gl_unregister_fd): Delete useless if.
34652
34653 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34654
34655         maint.mk: sort the list of syntax-check rules
34656         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34657         easier to get a sense of progress when the rules are run sequentially
34658         and take a long time.
34659
34660 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34661
34662         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34663         * modules/netinet_in: Likewise.
34664         * modules/sys_file: Likewise.
34665         * modules/sys_ioctl: Likewise.
34666         * modules/sys_select: Likewise.
34667         * modules/sys_socket: Likewise.
34668         * modules/sys_stat: Likewise.
34669         * modules/sys_time: Likewise.
34670         * modules/sys_times: Likewise.
34671         * modules/sys_utsname: Likewise.
34672         * modules/sys_wait: Likewise.
34673
34674 2009-09-01  Jim Meyering  <meyering@redhat.com>
34675
34676         fts: help ensure that return values are not ignored
34677         * lib/fts_.h (__GNUC_PREREQ): Define.
34678         (__attribute_warn_unused_result__): Define.
34679         (fts_children, fts_close, fts_open, fts_read): Declare with
34680         __attribute_warn_unused_result__.
34681
34682         fts: fts_close now fails also when closing a dir file descriptor fails
34683         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34684         and propagate to caller, along with errno.
34685
34686         announce-gen: correct formatting in --help output
34687         * build-aux/announce-gen (usage): Move the one-line description in
34688         --help output "up", to where it belongs, just after Usage:.
34689
34690 2009-08-31  Eric Blake  <ebb9@byu.net>
34691
34692         fchdir: port to mingw
34693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34694         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34695         opened, then use a substitute.
34696         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34697         replacement.
34698         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34699         (_gl_register_fd): No need to check stat if open already filters
34700         all directories.
34701         (fchdir): Fix error condition to match POSIX.
34702         * modules/fchdir (Depends-on): Add sys_stat.
34703         * doc/posix-functions/open.texi (open): Document the limitation.
34704         * modules/fchdir-tests: New file.
34705         * tests/test-fchdir.c: Likewise.
34706
34707         canonicalize: allow cross-testing from cygwin to mingw
34708         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34709         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34710         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34711         Likewise.
34712         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34713         target does not support symlinks.
34714         * tests/test-canonicalize-lgpl.sh: Likewise.
34715
34716         chown: avoid compilation warning on mingw
34717         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34718         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34719         mingw.
34720         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34721         * modules/chown (Depends-on): Add errno.
34722
34723 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34724
34725         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34726         command.
34727
34728 2009-08-31  Jim Meyering  <meyering@redhat.com>
34729
34730         canonicalize: remove useless initialization
34731         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34732         initialization of local, "end".
34733
34734 2009-08-30  Bruno Haible  <bruno@clisp.org>
34735
34736         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34737         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34738         ENOSYS.
34739
34740 2009-08-30  Bruno Haible  <bruno@clisp.org>
34741
34742         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34743         /usr/xpg4/bin/tr when it exists.
34744         * tests/test-pipe-filter-gi1.sh: Likewise.
34745
34746 2009-08-30  Bruno Haible  <bruno@clisp.org>
34747
34748         Work around deficient /usr/bin/id program on Solaris.
34749         * tests/test-file-has-acl.sh (ID): New variable.
34750         * tests/test-set-mode-acl.sh (ID): Likewise.
34751         * tests/test-copy-acl.sh (ID): Likewise.
34752         * tests/test-copy-file.sh (ID): Likewise.
34753
34754 2009-08-30  Bruno Haible  <bruno@clisp.org>
34755
34756         New module 'xstriconveh'.
34757         * lib/xstriconveh.h: New file.
34758         * lib/xstriconveh.c: New file.
34759         * modules/xstriconveh: New file.
34760
34761 2009-08-30  Bruno Haible  <bruno@clisp.org>
34762
34763         Make it easier to use mem_cd_iconveh.
34764         * lib/striconveh.h (iconveh_t): New type.
34765         (iconveh_open, iconveh_close): New declarations.
34766         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34767         with a single 'const iconveh_t *' argument.
34768         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34769         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34770         with a single 'const iconveh_t *' argument.
34771         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34772         * tests/test-striconveh.c (main): Update.
34773         * NEWS: Mention the change.
34774
34775 2009-08-30  Bruno Haible  <bruno@clisp.org>
34776
34777         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34778         problem.
34779
34780 2009-08-30  Bruno Haible  <bruno@clisp.org>
34781
34782         Work around iconv_open problem on Solaris.
34783         * lib/iconv_open-solaris.gperf: New file.
34784         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34785         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34786         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34787         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34788         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34789         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34790
34791 2009-08-29  Jim Meyering  <meyering@redhat.com>
34792
34793         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34794         * top/maint.mk (cvs-check): Remove target; it was just an alias
34795         to the better-named vc-diff-check.
34796         (maintainer-distcheck): Remove rule.  It was used only from
34797         the (alpha/beta/major) target, and all of its commands but one
34798         were coreutils-specific.
34799         (vc-dist): Remove rule.
34800         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34801         Run vc-diff-check, not vc-dist.
34802         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34803
34804 2009-08-27  Bruno Haible  <bruno@clisp.org>
34805
34806         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34807         of 0.
34808
34809 2009-08-27  Bruno Haible  <bruno@clisp.org>
34810
34811         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34812         compilers.
34813         * doc/func.texi: Document the SunPRO C bug.
34814
34815 2009-08-27  Bruno Haible  <bruno@clisp.org>
34816
34817         Fix link error on Solaris.
34818         * tests/test-parse-duration.c (xstrdup): Remove function.
34819
34820 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34821
34822         ignore-value: handle pointer types, too
34823         * lib/ignore-value.h (__attribute__): Remove definition.
34824         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34825         of a more concise and more-often effective "(void) i" statement.
34826         (ignore_ptr): New function to suppress warnings from functions that
34827         return pointers, and to make it explicit that one function doesn't
34828         handle all cases.
34829
34830 2009-08-25  Bruno Haible  <bruno@clisp.org>
34831
34832         dup2: work around a Linux bug.
34833         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34834         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34835         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34836         Reported by Simon Josefsson.
34837
34838 2009-08-25  Jim Meyering  <meyering@redhat.com>
34839
34840         libguestfs uses gnulib
34841         * users.txt: Add libguestfs.
34842
34843 2009-08-24  Eric Blake  <ebb9@byu.net>
34844
34845         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34846         * lib/pipe2.c (includes): Add binary-io.h.
34847         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34848
34849 2009-08-24  Bruno Haible  <bruno@clisp.org>
34850
34851         Tolerate declared but missing accept4 syscall.
34852         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34853         available.
34854         * lib/sys_socket.in.h (accept4): If the function is already present,
34855         override it.
34856         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34857         * modules/accept4 (Makefile.am): Compile accept4.c always.
34858         Reported by Paolo Bonzini and Eric Blake.
34859
34860 2009-08-23  Bruno Haible  <bruno@clisp.org>
34861
34862         New module 'accept4'.
34863         * lib/sys_socket.in.h (accept4): New declaration.
34864         * lib/accept4.c: New file.
34865         * m4/accept4.m4: New file.
34866         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34867         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34868         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34869         HAVE_ACCEPT4.
34870         * modules/accept4: New file.
34871         * doc/glibc-functions/accept4.texi: Mention the new module.
34872
34873 2009-08-24  Jim Meyering  <meyering@redhat.com>
34874
34875         progname: also set global program_invocation_name, when possible
34876         Before this change, a libtool-enabled program that calls glibc's
34877         error function would report the program name as
34878         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34879         * modules/progname (configure.ac): Check for a declaration of
34880         program_invocation_name.
34881         * lib/progname.c:  Include <errno.h>.
34882         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34883         Set program_invocation_name.
34884
34885 2009-08-23  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/dup3.c: Include <string.h>.
34888
34889 2009-08-23  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34892         * lib/pipe2.c (pipe2): Likewise.
34893         Suggested by Eric Blake.
34894
34895 2009-08-23  Bruno Haible  <bruno@clisp.org>
34896
34897         Tolerate declared but missing dup3 syscall.
34898         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34899         * lib/unistd.in.h (dup3): If the function is already present,
34900         override it.
34901         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34902         * modules/dup3 (Makefile.am): Compile dup3.c always.
34903         Reported by Paolo Bonzini.
34904
34905 2009-08-23  Bruno Haible  <bruno@clisp.org>
34906
34907         Tolerate declared but missing pipe2 syscall.
34908         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34909         available.
34910         * lib/unistd.in.h (pipe2): If the function is already present,
34911         override it.
34912         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34913         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34914         Reported by Paolo Bonzini.
34915
34916 2009-08-23  Bruno Haible  <bruno@clisp.org>
34917
34918         * lib/pipe2.c (pipe2): Move #ifs inside function.
34919
34920 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34921
34922         quotearg: document limitations of quote_these_too
34923         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34924         those limitations are created.
34925         * lib/quotearg.h (set_char_quoting): Document that digits and
34926         letters that are special after backslash are not permitted.
34927         (quotearg_char): Cross-reference set_char_quoting documentation.
34928
34929 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34930
34931         quotearg: implement custom_quoting_style
34932         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34933         right_quote fields.
34934         (set_custom_quoting): New public function.
34935         (quotearg_buffer_restyled): Add left_quote and right_quote
34936         arguments, handle them very much like locale quoting, and update
34937         all uses.
34938         (quotearg_n_custom): New public function.
34939         (quotearg_n_custom_mem): New public function.
34940         (quotearg_custom): New public function.
34941         (quotearg_custom_mem): New public function.
34942         * lib/quotearg.h: Prototype and document new public functions.
34943         (enum quoting_style): For escape_quoting_style and
34944         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34945         ignored even though they're otherwise like c_quoting_style.
34946         Add custom_quoting_style member and document with comparison to
34947         clocale_quoting_style.
34948         * tests/test-quotearg.c (custom_quotes): New array.
34949         (custom_results): New array.
34950         (main): Extend to test custom quoting.
34951
34952 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34953
34954         quotearg: fix right quote escaping when it's in quote_these_too
34955         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34956         quote, be sure to prepend only one backslash.
34957         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34958         (main): Test it.
34959
34960 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34961
34962         quotearg-tests: test escaping of embedded locale quotes
34963         * tests/test-quotearg.c (struct result_strings): Add member for
34964         new input.
34965         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34966         (inputs): Add new input.
34967         (results_g): Add expected results.
34968         (flag_results): Likewise.
34969         (locale_results): Likewise.
34970         (compare_strings): Check those.
34971
34972 2009-08-23  Bruno Haible  <bruno@clisp.org>
34973
34974         Tests for module 'dup3'.
34975         * modules/dup3-tests: New file.
34976         * tests/test-dup3.c: New file.
34977
34978         New module 'dup3'.
34979         * lib/unistd.in.h (dup3): New declaration.
34980         * lib/dup3.c: New file.
34981         * m4/dup3.m4: New file.
34982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34983         HAVE_DUP3.
34984         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34985         * modules/dup3: New file.
34986         * doc/glibc-functions/dup3.texi: Mention the new module.
34987
34988 2009-08-23  Bruno Haible  <bruno@clisp.org>
34989
34990         Tweak the dup2 test.
34991         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34992         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34993         the test file is still empty. Fix argument order of lseek.
34994
34995 2009-08-23  Bruno Haible  <bruno@clisp.org>
34996
34997         Avoid test link errors when the modules getopt-gnu, gettext are used.
34998         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35000
35001 2009-08-23  Bruno Haible  <bruno@clisp.org>
35002
35003         Fix getdtablesize() on mingw.
35004         * lib/getdtablesize.c (getdtablesize): Implement differently.
35005         * lib/unistd.in.h (getdtablesize): Improve comment.
35006
35007 2009-08-23  Bruno Haible  <bruno@clisp.org>
35008
35009         New module 'mkostemp'.
35010         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35011         * lib/stdlib.in.h (mksotemp): New declaration.
35012         * lib/mkostemp.c: New file, from glibc with modifications.
35013         * lib/tempname.h (GT_FILE): Remove outdated comment.
35014         (gen_tempname): Add flags argument.
35015         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35016         (__GT_FILE): Map to 1.
35017         (small_open, large_open): Remove macros.
35018         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35019         * lib/mkstemp.c (mkstemp): Update.
35020         * lib/mkdtemp.c (mkdtemp): Likewise.
35021         * m4/mkostemp.m4: New file.
35022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35023         HAVE_MKOSTEMP.
35024         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35025         HAVE_MKOSTEMP.
35026         * modules/mkostemp: New file, based on modules/mkstemp.
35027         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35028         * NEWS: Mention the change.
35029
35030 2009-08-23  Bruno Haible  <bruno@clisp.org>
35031
35032         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35033         Reported by Eric Blake.
35034
35035 2009-08-23  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35038         Reported by Eric Blake.
35039
35040 2009-08-23  Bruno Haible  <bruno@clisp.org>
35041
35042         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35043         * modules/pipe2 (Depends-on): Likewise.
35044
35045 2009-08-23  Eric Blake  <ebb9@byu.net>
35046
35047         fcntl-h: add O_TTY_INIT support
35048         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35049         * tests/test-fcntl-h.c (o): Test it.
35050         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35051
35052         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35053         * modules/fcntl: Move <fcntl.h> header replacement...
35054         * modules/fcntl-h: ...to new name, so as not to collide with
35055         like-named function.
35056         * tests/test-fcntl.c: Rename...
35057         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35058         * modules/fcntl-tests: Rename...
35059         * modules/fcntl-h-tests: ...to this.  Update test file name.
35060         * modules/chdir-long (Depends-on): Update clients.
35061         * modules/chdir-safer (Depends-on): Likewise.
35062         * modules/fcntl-safer (Depends-on): Likewise.
35063         * modules/fts (Depends-on): Likewise.
35064         * modules/mkancesdirs (Depends-on): Likewise.
35065         * modules/mkdir-p (Depends-on): Likewise.
35066         * modules/open (Depends-on): Likewise.
35067         * modules/savewd (Depends-on): Likewise.
35068         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35069         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35070
35071 2009-08-22  Bruno Haible  <bruno@clisp.org>
35072
35073         * modules/binary-io (License): Relicense under LGPL.
35074         * modules/pipe2 (License): Likewise.
35075
35076 2009-08-22  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35079         return value.
35080         * lib/pipe-filter-gi.c (filter_init): Likewise.
35081         Reported by Eric Blake.
35082
35083 2009-08-22  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35086         * modules/pipe (Depends-on): Add pipe2.
35087
35088 2009-08-22  Bruno Haible  <bruno@clisp.org>
35089
35090         Tests for module 'pipe2'.
35091         * modules/pipe2-tests: New file.
35092         * tests/test-pipe2.c: New file.
35093
35094         New module 'pipe2'.
35095         * lib/unistd.in.h (pipe2): New declaration.
35096         * lib/pipe2.c: New file.
35097         * m4/pipe2.m4: New file.
35098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35099         HAVE_PIPE2.
35100         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35101         * modules/pipe2: New file.
35102         * doc/glibc-functions/pipe2.texi: Mention the new module.
35103
35104 2009-08-22  Bruno Haible  <bruno@clisp.org>
35105
35106         Reference some new glibc functions.
35107         * doc/glibc-functions/accept4.texi: New file.
35108         * doc/glibc-functions/dup3.texi: New file.
35109         * doc/glibc-functions/mkostemp.texi: New file.
35110         * doc/glibc-functions/pipe2.texi: New file.
35111         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35112         (Glibc sys/socket.h): Refer to accept4.
35113         (Glibc unistd.h): Refer to dup3, pipe2.
35114         Reported by Eric Blake.
35115
35116 2009-08-22  Jim Meyering  <meyering@redhat.com>
35117             Bruno Haible  <bruno@clisp.org>
35118
35119         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35120         This makes it so packages using automake-1.11's silent-rules option
35121         can print e.g., a single "GEN    configmake.h" line, rather than
35122         the 30+ statements that perform the job.  If you want to see the
35123         actual commands, you can still run "make V=1".
35124         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35125         so that make output is abbreviated when those variables are defined
35126         appropriately.
35127         * modules/argz: Likewise.
35128         * modules/arpa_inet: Likewise.
35129         * modules/byteswap: Likewise.
35130         * modules/configmake: Likewise.
35131         * modules/dirent: Likewise.
35132         * modules/errno: Likewise.
35133         * modules/fcntl: Likewise.
35134         * modules/float: Likewise.
35135         * modules/fnmatch: Likewise.
35136         * modules/getopt-posix: Likewise.
35137         * modules/glob: Likewise.
35138         * modules/iconv_open: Likewise.
35139         * modules/inttypes: Likewise.
35140         * modules/localcharset: Likewise.
35141         * modules/locale: Likewise.
35142         * modules/math: Likewise.
35143         * modules/netdb: Likewise.
35144         * modules/netinet_in: Likewise.
35145         * modules/poll: Likewise.
35146         * modules/posix_spawnp-tests: Likewise.
35147         * modules/sched: Likewise.
35148         * modules/search: Likewise.
35149         * modules/selinux-h: Likewise.
35150         * modules/signal: Likewise.
35151         * modules/spawn: Likewise.
35152         * modules/stdarg: Likewise.
35153         * modules/stdbool: Likewise.
35154         * modules/stddef: Likewise.
35155         * modules/stdint: Likewise.
35156         * modules/stdio: Likewise.
35157         * modules/stdlib: Likewise.
35158         * modules/string: Likewise.
35159         * modules/strings: Likewise.
35160         * modules/sys_file: Likewise.
35161         * modules/sys_ioctl: Likewise.
35162         * modules/sys_select: Likewise.
35163         * modules/sys_socket: Likewise.
35164         * modules/sys_stat: Likewise.
35165         * modules/sys_time: Likewise.
35166         * modules/sys_times: Likewise.
35167         * modules/sys_utsname: Likewise.
35168         * modules/sys_wait: Likewise.
35169         * modules/sysexits: Likewise.
35170         * modules/time: Likewise.
35171         * modules/unistd: Likewise.
35172         * modules/wchar: Likewise.
35173         * modules/wctype: Likewise.
35174
35175 2009-08-22  Jim Meyering  <meyering@redhat.com>
35176
35177         announce-gen: detect write failure
35178         * build-aux/announce-gen: Add Coda at end.
35179         Remove equivalent-but-more-verbose block at top.
35180
35181 2009-08-19  Akim Demaille  <demaille@gostai.com>
35182
35183         bootstrap: --help to stdout.
35184         * bootstrap (usage): Don't send --help to stderr.
35185         Use a here doc instead of a long string.
35186
35187 2009-08-21  Eric Blake  <ebb9@byu.net>
35188
35189         test-popen-safer: split from test-popen
35190         * tests/test-popen.c (main): Move...
35191         * tests/test-popen.h: ...into new file.
35192         * tests/test-popen-safer2.c: New file.
35193         * modules/popen-tests (Files): Add test-popen.h.
35194         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35195         Suggested by Bruno Haible.
35196
35197         test-fcntl-safer: split from test-open
35198         * tests/test-open.c (main): Move...
35199         * tests/test-open.h: ...into new file.
35200         * tests/test-fcntl-safer.c: New file.
35201         * modules/open-tests (Files): Add test-open.h.
35202         * modules/fcntl-safer-tests: New file.
35203         Suggested by Bruno Haible.
35204
35205         test-fopen-safer: split from test-fopen
35206         * tests/test-fopen.c (main): Move...
35207         * tests/test-fopen.h: ...into new file.
35208         * tests/test-fopen-safer.c: New file.
35209         * modules/fopen-tests (Files): Add test-fopen.h.
35210         * modules/fopen-safer-tests: New file.
35211         Suggested by Bruno Haible.
35212
35213 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35214
35215         popen-safer: test O_CLOEXEC at run-time.
35216         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35217
35218 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35219
35220         fcntl: move more flags to the header
35221         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35222         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35223         * lib/fcntl.in.h: Do both things here.
35224
35225 2009-08-21  Jim Meyering  <meyering@redhat.com>
35226
35227         consistently remove $@-t before redirecting to it
35228         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35229         * modules/alloca-opt: Likewise.
35230         * modules/byteswap: Likewise.
35231         * modules/fnmatch: Likewise.
35232         * modules/getopt-posix: Likewise.
35233         * modules/glob: Likewise.
35234         * modules/poll: Likewise.
35235         * modules/posix_spawnp-tests: Likewise.
35236         * modules/sys_socket: Likewise.
35237         * modules/sysexits: Likewise.
35238
35239 2009-08-21  Eric Blake  <ebb9@byu.net>
35240
35241         popen: simplify access to original popen
35242         * lib/popen.c (rpl_popen): No need to worry about popen being a
35243         macro.
35244         Reported by Bruno Haible.
35245
35246 2009-08-20  Eric Blake  <ebb9@byu.net>
35247
35248         build: avoid some compiler warnings
35249         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35250         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35251         type.
35252         (new_exclude_segment, excluded_file_pattern_p)
35253         (excluded_file_name_p): Reduce scope.
35254         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35255         old-style declaration.
35256
35257 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35258
35259         * tests/test-exclude1.sh: Handle Windows EOL.
35260         * tests/test-exclude2.sh: Likewise.
35261         * tests/test-exclude3.sh: Likewise.
35262         * tests/test-exclude4.sh: Likewise.
35263         * tests/test-exclude5.sh: Likewise.
35264         * tests/test-exclude6.sh: Likewise.
35265         * tests/test-exclude7.sh: Likewise.
35266
35267 2009-08-19  Akim Demaille  <demaille@gostai.com>
35268
35269         bootstrap: find sha1sum when named gsha1sum.
35270         * bootstrap (find_tool): New.
35271         ($SHA1SUM): New.
35272         Use it.
35273
35274 2009-08-20  Jim Meyering  <meyering@redhat.com>
35275
35276         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35277         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35278         expression that converts "." in a file name to "\." in the resulting
35279         regexp.  Start with a dummy statement, so that prior shell variable
35280         definitions are expanded portably.  Reported by Simon Josefsson.
35281
35282 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35283
35284         Fix polling for writeability of a screen buffer.
35285         * lib/poll.c: Distinguish input and screen buffers for the
35286         Win32 implementation.
35287         * lib/select.c: Likewise.
35288
35289 2009-08-19  Eric Blake  <ebb9@byu.net>
35290
35291         popen-safer: prevent popen from clobbering std descriptors
35292         * modules/popen-safer: New file.
35293         * lib/popen-safer.c: Likewise.
35294         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35295         * lib/stdio--.h (popen): Provide override.
35296         * lib/stdio-safer.h (popen_safer): Provide declaration.
35297         * tests/test-popen.c (includes): Partially test this.
35298         * modules/popen-safer-tests: New file, for more tests.
35299         * tests/test-popen-safer.c: Likewise.
35300         * MODULES.html.sh (file stream based Input/Output): Mention it.
35301
35302         tests: test some of the *-safer modules
35303         * modules/fopen-safer (Depends-on): Add fopen.
35304         * modules/fcntl-safer (Depends-on): Add fcntl.
35305         * modules/stdlib-safer (Depends-on): Add stdlib.
35306         (configure.ac): Set indicator.
35307         * modules/unistd-safer (configure.ac): Likewise.
35308         * modules/tmpfile-safer (configure.ac): Likewise.
35309         (Depends-on): Add tmpfile.
35310         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35311         active.
35312         * tests/test-fopen.c (includes): Test safer versions when they are
35313         in use.
35314         * tests/test-open.c (includes): Likewise.
35315
35316         popen: fix cygwin 1.5 bug when stdin closed
35317         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35318         * modules/popen: New file.
35319         * modules/popen-tests: Likewise.
35320         * tests/test-popen.c: Likewise.
35321         * m4/popen.m4: Likewise.
35322         * lib/popen.c: Likewise.
35323         * lib/stdio.in.h (popen): New declaration.
35324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35325         * modules/stdio (Makefile.am): Likewise.
35326         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35327
35328 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35329
35330         maint.mk: give full control over update-copyright exclusions
35331         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35332         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35333         (update-copyright): Don't force inclusion of top-level
35334         ChangeLog.  Don't force exclusion of all COPYING files, but make
35335         them the default exclusion instead.
35336
35337 2009-08-16  Bruno Haible  <bruno@clisp.org>
35338
35339         Fix test failures on Solaris 10.
35340         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35341         tests when Solaris iconv() is used.
35342         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35343         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35344         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35345         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35346         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35347
35348 2009-08-16  Bruno Haible  <bruno@clisp.org>
35349
35350         Fix test failures on Solaris 10.
35351         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35352         'tr' program and pass it as first argument.
35353         * tests/test-pipe-filter-gi1.sh: Likewise.
35354         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35355         program as first argument.
35356         * tests/test-pipe-filter-gi1.c (main): Likewise.
35357
35358 2009-08-16  Eric Blake  <ebb9@byu.net>
35359
35360         fpurge: fix previous commits
35361         * modules/fpurge (Makefile.am): Make replacement conditional,
35362         partially reverting 2007-04-29 change; missed in previous
35363         attempt.
35364         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35365         is missing.
35366
35367 2009-08-16  Bruno Haible  <bruno@clisp.org>
35368
35369         Clarify fpurge's effect on the file position.
35370         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35371         * tests/test-fpurge.c (main): Make a second pass for checking the file
35372         position.
35373
35374 2009-08-16  Bruno Haible  <bruno@clisp.org>
35375
35376         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35377         declaration of fpurge is missing.
35378         * tests/test-fpurge.c (main): Check that the file has not more contents
35379         than expected. Close the file before removing it.
35380
35381 2009-08-15  Eric Blake  <ebb9@byu.net>
35382
35383         fpurge: don't wrap working cygwin implementation
35384         * lib/fpurge.c (fpurge): Fix comment typo.
35385         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35386         1.7 to avoid replacement.
35387         * tests/test-fpurge.c (main): Enhance test.
35388
35389 2009-08-15  Eric Blake  <ebb9@byu.net>
35390         and Jim Meyering  <meyering@redhat.com>
35391
35392         test-update-copyright: skip if perl is insufficient
35393         * tests/test-update-copyright.sh: Failure to run maintainer tool
35394         should not cause testsuite failure on cygwin 1.5.
35395
35396 2009-08-14  Eric Blake  <ebb9@byu.net>
35397
35398         doc: mention more functions added in cygwin 1.7.0
35399         * doc/posix-headers/limits.texi (limits.h): Update for recent
35400         cygwin additions.
35401         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35402         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35403         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35404         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35405         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35406
35407 2009-08-14  Eric Blake  <ebb9@byu.net>
35408
35409         maint.mk: simplify update-copyright rule
35410         * top/maint.mk (update-copyright-local): Delete, and document how
35411         to do it in cfg.mk instead.
35412         (update-copyright-exclude-regexp): Delete, and document how to do
35413         it in .x-update-copyright instead.
35414         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35415         exclude ChangeLog.
35416
35417 2009-08-14  Bruno Haible  <bruno@clisp.org>
35418
35419         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35420
35421 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35422
35423         maint.mk: support update-copyright-env
35424         * top/maint.mk (update-copyright-env): Define place-holder.
35425         (update-copyright): Expand $(update-copyright-env) before
35426         invoking update-copyright.
35427
35428 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35429
35430         update-copyright: implement forced reformatting
35431         * build-aux/update-copyright: Implement and document
35432         UPDATE_COPYRIGHT_FORCE.
35433         * tests/test-update-copyright.sh: Test it.
35434
35435 2009-08-14  Eric Blake  <ebb9@byu.net>
35436         and Bruno Haible  <bruno@clisp.org>
35437
35438         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35439         * tests/test-locale.c: Revert previous patch related to NULL.
35440         * tests/test-stdio.c: Likewise.
35441         * tests/test-stdlib.c: Likewise.
35442         * tests/test-string.c: Likewise.
35443         * tests/test-unistd.c: Likewise.
35444         * modules/time-tests (Depends-on): Add verify.
35445         * modules/wchar-tests (Depends-on): Likewise.
35446         * tests/test-time.c: Test for NULL compliance.
35447         * tests/test-wchar.c: Likewise.
35448         * modules/locale (Depends-on): Add stddef.
35449         * modules/stdio (Depends-on): Likewise.
35450         * modules/stdlib (Depends-on): Likewise.
35451         * modules/string (Depends-on): Likewise.
35452         * modules/time (Depends-on): Likewise.
35453         * modules/unistd (Depends-on): Likewise.
35454         * modules/wchar (Depends-on): Likewise.
35455         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35456         * lib/stdlib.in.h (includes): Likewise.
35457         * lib/string.in.h (includes): Likewise.
35458         * lib/time.in.h (includes): Likewise.
35459         * lib/unistd.in.h (includes): Likewise.
35460         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35461         replaced.
35462         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35463         * m4/stddef_h.m4: New file.
35464         * modules/stddef: Likewise.
35465         * lib/stddef.in.h: Likewise.
35466         * modules/stddef-tests: Likewise.
35467         * tests/test-stddef.c: Likewise.
35468         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35469         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35470         * doc/posix-headers/locale.texi (locale.h): Likewise.
35471         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35472         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35473         * doc/posix-headers/string.texi (string.h): Likewise.
35474         * doc/posix-headers/time.texi (time.h): Likewise.
35475         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35476         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35477
35478 2009-08-14  Eric Blake  <ebb9@byu.net>
35479
35480         doc: improve git diff of texinfo files
35481         * .gitattributes: Add rule for *.texi files, with hint on how to
35482         use it.
35483         Copied from m4, and based on a report by Bruno Haible.
35484
35485 2009-08-14  Bruno Haible  <bruno@clisp.org>
35486
35487         Disable multithread support by default on Cygwin 1.5.x for real.
35488         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35489
35490 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35491
35492         update-copyright: much ado about intervals
35493         * build-aux/update-copyright: Implement and document
35494         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35495         of copyright year intervals.
35496         Also, document UPDATE_COPYRIGHT_YEAR.
35497         * tests/test-update-copyright.sh: Test it.
35498
35499         update-copyright: convert 2-digit to 4-digit years
35500         * build-aux/update-copyright: Implement and document.
35501         * tests/test-update-copyright.sh: Update.
35502
35503 2009-08-14  Jim Meyering  <meyering@redhat.com>
35504
35505         test-exclude: avoid coreutils "make check" failure
35506         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35507         just as in test-argmatch.c.
35508
35509 2009-08-13  Eric Blake  <ebb9@byu.net>
35510
35511         test-dup2: fix bad assumption
35512         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35513         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35514
35515         test-version-etc: fix CRLF portability issue
35516         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35517         recognize \r.
35518         * tests/test-argp-version-etc-1.sh: Likewise.
35519
35520         getopt: update client modules
35521         * modules/argp (Depends-on): Use getopt-gnu.
35522         * modules/git-merge-changelog (Depends-on): Likewise.
35523         * modules/long-options (Depends-on): Likewise.
35524         * modules/xstrtol (Depends-on): Likewise.
35525
35526 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35527
35528         * tests/test-version-etc.sh: Don't fail on different
35529         project/version.  Don't fail on CRLF differences.  Rewrite to use
35530         multiple -e instead of multiple sed forks, suggested by Eric Blake
35531         <ebb9@byu.net>.
35532         * tests/test-argp-version-etc-1.sh: Likewise.
35533
35534 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35535
35536         * tests/test-version-etc.sh: Don't fail on different
35537         project/version.
35538
35539 2009-08-12  Bruno Haible  <bruno@clisp.org>
35540
35541         Tests for modules 'getopt-posix', 'getopt-gnu'.
35542         * modules/getopt-posix-tests: New file.
35543         * tests/test-getopt.c: New file.
35544         * tests/test-getopt.h: New file.
35545         * tests/test-getopt_long.h: New file.
35546
35547         New modules 'getopt-posix', 'getopt-gnu'.
35548         * modules/getopt-gnu: New file, renamed from modules/getopt.
35549         * modules/getopt-posix: New file.
35550         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35551         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35552         (gl_GETOPT): Remove macro.
35553         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35554         Disable the test against BSD systems that declare optreset. Test
35555         against mingw bug. Test against lack of support of optional arguments
35556         on many platforms.
35557         * doc/glibc-headers/getopt.texi: Update module name and list of
35558         relevant platforms.
35559         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35560         'getopt-gnu' and more portability problems.
35561         * NEWS: Mention the changes.
35562
35563 2009-08-12  Bruno Haible  <bruno@clisp.org>
35564
35565         Ensure that optarg etc. get declared by <unistd.h>.
35566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35567         AC_USE_SYSTEM_EXTENSIONS.
35568         * modules/getopt (Depends-on): Add 'extensions'.
35569
35570 2009-08-12  Bruno Haible  <bruno@clisp.org>
35571
35572         Avoid test link errors.
35573         * modules/pipe-filter-ii-tests (Makefile.am): Define
35574         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35575         * modules/pipe-filter-gi-tests (Makefile.am): Define
35576         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35578
35579 2009-08-12  Bruno Haible  <bruno@clisp.org>
35580
35581         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35582         gl_GETOPT_SUBSTITUTE before.
35583         (gl_GETOPT): Use it.
35584         * m4/argp.m4 (gl_ARGP): Update.
35585         Reported by Sergey Poznyakoff.
35586
35587         * m4/getopt.m4: Reorder macros.
35588         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35589         (gl_GETOPT_SUBSTITUTE): Remove macro.
35590
35591 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35592
35593         Minor improvement in gitlog-to-changelog
35594
35595         * build-aux/gitlog-to-changelog: New option `--format' makes
35596         output format string configurable.
35597
35598 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35599
35600         Optimize exclude: use hash tables for non-wildcard patterns.
35601
35602         * lib/exclude.c: Include hash.h and mbuiter.h
35603         (struct exclude_pattern, exclude_segment): New data types.
35604         (struct exclude): Rewrite.
35605         (fnmatch_pattern_has_wildcards): New function.
35606         (new_exclude_segment, free_exclude_segment): New functions.
35607         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35608         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35609         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35610         * modules/exclude: Depend on hash and mbuiter.
35611
35612         * modules/exclude-tests: New file.
35613         * tests/test-exclude.c: New file.
35614         * tests/test-exclude1.sh: New file.
35615         * tests/test-exclude2.sh: New file.
35616         * tests/test-exclude3.sh: New file.
35617         * tests/test-exclude4.sh: New file.
35618         * tests/test-exclude5.sh: New file.
35619         * tests/test-exclude6.sh: New file.
35620         * tests/test-exclude7.sh: New file.
35621
35622 2009-08-12  Bruno Haible  <bruno@clisp.org>
35623
35624         Ensure that getopt() gets declared by <unistd.h>.
35625         * lib/unistd.in.h: Conditionally include getopt.h.
35626         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35627         Set GNULIB_UNISTD_H_GETOPT.
35628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35629         GNULIB_UNISTD_H_GETOPT.
35630         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35631
35632 2009-08-12  Bruno Haible  <bruno@clisp.org>
35633
35634         Clarify logic.
35635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35636         gl_replace_getopt instead of GETOPT_H.
35637
35638 2009-08-12  Bruno Haible  <bruno@clisp.org>
35639
35640         * m4/getopt.m4: Add comments.
35641
35642 2009-08-12  Bruno Haible  <bruno@clisp.org>
35643
35644         Disable multithread support by default on Cygwin 1.5.x.
35645         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35646         set gl_use_threads=no if not specified otherwise.
35647
35648 2009-08-11  Bruno Haible  <bruno@clisp.org>
35649
35650         Avoid compilation error on NetBSD 5.0.
35651         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35652         * tests/test-stdio.c: Likewise.
35653         * tests/test-stdlib.c: Likewise.
35654         * tests/test-string.c: Likewise.
35655         * tests/test-unistd.c: Likewise.
35656         Reported by Greg Troxel <gdt@ir.bbn.com>
35657         at <https://savannah.gnu.org/support/?106973>.
35658
35659 2009-08-11  Bruno Haible  <bruno@clisp.org>
35660
35661         * modules/dup2-tests (Depends-on): Remove close.
35662
35663         Undo 2009-07-19 commit.
35664         * modules/acl-tests (Depends-on): Remove close.
35665         * modules/binary-io-tests (Depends-on): Likewise.
35666         * modules/closein-tests (Depends-on): Likewise.
35667         * modules/flock-tests (Depends-on): Likewise.
35668         * modules/fsync-tests (Depends-on): Likewise.
35669         * modules/lseek-tests (Depends-on): Likewise.
35670         * modules/pipe-tests (Depends-on): Likewise.
35671         * modules/posix_spawn-tests (Depends-on): Likewise.
35672         * modules/posix_spawnp-tests (Depends-on): Likewise.
35673         * modules/stat-time-tests (Depends-on): Likewise.
35674         * modules/yesno-tests (Depends-on): Likewise.
35675
35676 2009-08-10  Bruno Haible  <bruno@clisp.org>
35677
35678         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35679
35680 2009-08-10  Bruno Haible  <bruno@clisp.org>
35681
35682         Fix a gcc warning.
35683         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35684
35685 2009-08-10  Bruno Haible  <bruno@clisp.org>
35686
35687         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35688         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35689         not only the first time.
35690         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35691         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35692         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35693         is 1, not only the the first time.
35694
35695 2009-08-10  Bruno Haible  <bruno@clisp.org>
35696
35697         Make it possible to use module 'gethostname' without module 'close'.
35698         * lib/unistd.in.h (close): Evoke a link error only if
35699         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35701         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35702         * modules/unistd (Makefile.am): Substitute
35703         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35704         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35705         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35707         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35708         * modules/sys_ioctl (Makefile.am): Substitute
35709         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35710         * modules/socket (configure.ac): On native Windows, set
35711         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35712         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35713         Reported by Sam Steingold <sds@gnu.org>.
35714
35715 2009-08-10  Bruno Haible  <bruno@clisp.org>
35716
35717         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35718         * modules/ioctl (configure.ac): Likewise.
35719
35720 2009-08-10  Bruno Haible  <bruno@clisp.org>
35721
35722         Avoid collision between gnulib wrapper and libintl wrapper.
35723         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35724         already defined in intl/printf.c.
35725         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35726         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35727
35728 2009-08-09  Bruno Haible  <bruno@clisp.org>
35729
35730         Make <sys/select.h> really self-contained, also on Solaris 10.
35731         * lib/sys_select.in.h: Include <string.h>.
35732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35733         Solaris 10 problem.
35734         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35735         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35736         Reported by Jim Meyering.
35737
35738 2009-08-09  Bruno Haible  <bruno@clisp.org>
35739
35740         Avoid warnings from 'aclocal' that are due to a use of macro name
35741         AM_XGETTEXT_OPTION that is not defined in automake.
35742         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35743         automake.
35744         * modules/error (configure.ac): Likewise.
35745         * modules/propername (configure.ac): Likewise.
35746         * modules/vasprintf (configure.ac): Likewise.
35747         * modules/verror (configure.ac): Likewise.
35748         * modules/xprintf (configure.ac): Likewise.
35749         * modules/xvasprintf (configure.ac): Likewise.
35750
35751 2009-08-08  Bruno Haible  <bruno@clisp.org>
35752
35753         Avoid compilation error in C++ mode.
35754         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35755         Reported by Sam Steingold <sds@gnu.org>.
35756
35757 2009-08-08  Bruno Haible  <bruno@clisp.org>
35758
35759         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35760         for the various Unix platforms.
35761         * doc/posix-headers/limits.texi: Update platforms list regarding
35762         HOST_NAME_MAX.
35763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35764
35765 2009-08-07  Jim Meyering  <meyering@redhat.com>
35766
35767         selinux-at: fix typo in a comment
35768         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35769         Spotted by Paolo Bonzini.
35770
35771         selinux-at: remove redundant m4 code, add documentation
35772         * modules/selinux-at (configure.ac): Remove redundant code.
35773         LIB_SELINUX is already set via the dependent module, selinux-h.
35774         (Include): Add quotes around selinux-at.h.
35775         * lib/selinux-at.h: Add documentation.
35776         Reported by Bruno Haible in
35777         http://marc.info/?l=gnulib-bug&m=124958988300749
35778
35779 2009-08-07  Bruno Haible  <bruno@clisp.org>
35780
35781         Avoid link error on MacOS X 10.3 and 10.4.
35782         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35783         on non-ELF systems.
35784         * lib/argp-pv.c (argp_program_version): Likewise.
35785         Reported by Simon Josefsson.
35786
35787 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35788
35789         * tests/test-version-etc.sh: Use $EXEEXT.
35790
35791 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35792
35793         update-copyright: update documentation to point to maint.mk
35794         * build-aux/update-copyright: Here.
35795
35796 2009-08-06  Jim Meyering  <meyering@redhat.com>
35797
35798         maint.mk: support update-copyright-local
35799         * top/maint.mk (update-copyright-local): Define place-holder.
35800         (update-copyright): Depend on $(update-copyright-local).
35801
35802 2009-08-06  Jim Meyering  <meyering@redhat.com>
35803
35804         selinux-at: new module
35805         Initially written for coreutils, this module will soon be
35806         used by findutils, too.
35807         * MODULES.html.sh [Misc]: Add selinux-at.
35808         * lib/selinux-at.h: New file, from coreutils.
35809         * lib/selinux-at.c: Likewise.
35810         * modules/selinux-at: Likewise.
35811         (License): Change from LGPL to GPL, since it depends
35812         on the GPL'd openat module.
35813
35814         doc: update README
35815         * README: Remove references to cogito.
35816         Remove cvs-repo-updating instructions from 2007.
35817         Don't imply that CVS is better if you have limited disk space.
35818
35819 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35820
35821         update-copyright: support C-style comments
35822         * build-aux/update-copyright: Implement and document.
35823         * tests/test-update-copyright.sh: Test.
35824
35825 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35826
35827         update-copyright: support omitted "(C)"
35828         * build-aux/update-copyright: Implement and document.  Also,
35829         allow variable whitespace before "(C)".
35830         * tests/test-update-copyright.sh: Test.
35831
35832 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35833
35834         update-copyright: don't trip on non-FSF copyright statements
35835         * build-aux/update-copyright: Fix so that the first correctly
35836         formatted FSF copyright statement is recognized no matter what
35837         appears before it.  Update documentation.
35838         * tests/test-update-copyright.sh: Test that.
35839
35840 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35841
35842         update-copyright: clean up code a little
35843         * build-aux/update-copyright: Append "_re" to the name of any
35844         variable holding a regular expression.
35845         Replace "old" and "new" with "stmt" in variable names.
35846         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35847         handled correctly.
35848         Format code more consistently.
35849
35850 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35851
35852         update-copyright-tests: improve portability
35853         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35854         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35855
35856 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35857
35858         update-copyright: support @copyright{} and &copy;
35859         * build-aux/update-copyright: Implement and document.
35860         * tests/test-update-copyright.sh: Test.
35861
35862 2009-08-04  Jim Meyering  <meyering@redhat.com>
35863
35864         update-copyright-tests: correctly test EOL=\r\n handling
35865         * tests/test-update-copyright.sh: Put \r at the end of some lines
35866         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35867
35868         maint.mk: make update-copyright exclusion list more configurable
35869         * top/maint.mk (update-copyright): Default to excluding COPYING,
35870         but allow an override, in case someone does want to update that file.
35871
35872         maint.mk: don't update copyright date in COPYING
35873         * top/maint.mk (update-copyright): Exclude COPYING.
35874
35875         maint.mk: add a copyright-updating rule
35876         * top/maint.mk (update-copyright): New rule.
35877         Derived from coreutils/Makefile.am.
35878
35879         update-copyright: rename some variables
35880         * build-aux/update-copyright: Rename a few variables for clarity.
35881         Tweak syntax.  List Joel E. Denny as coauthor.
35882
35883 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35884
35885         update-copyright: fix bug for 2-digit last year and add tests
35886         * build-aux/update-copyright: Fix bug.
35887         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35888         specified.
35889         * modules/update-copyright-tests: New
35890         * tests/test-update-copyright.sh: New.
35891
35892 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35893
35894         update-copyright: handle leading tabs in line prefix
35895         * build-aux/update-copyright: Count leading tabs as 8 spaces
35896         when computing margin.  This helps with the formatting of
35897         ChangeLogs, for example.
35898         Fix documentation a little.
35899
35900 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35901
35902         update-copyright: support EOL=\r\n
35903         * build-aux/update-copyright: Implement that.
35904
35905 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35906
35907         update-copyright: automatically format copyright statements
35908         * build-aux/update-copyright: Implement that.
35909         Also, be a little more predictable and safer by always failing
35910         when the full copyright format is not perfectly recognized as an
35911         unbroken whole.  Discussed at
35912         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35913         Rewrite documentation.
35914
35915 2009-08-03  Bruno Haible  <bruno@clisp.org>
35916
35917         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35918
35919 2009-08-02  Bruno Haible  <bruno@clisp.org>
35920
35921         Tests for module 'uname'.
35922         * modules/uname-tests: New file.
35923         * tests/test-uname.c: New file.
35924
35925         New module 'uname'.
35926         * lib/uname.c: New file.
35927         * m4/uname.m4: New file.
35928         * modules/uname: New file.
35929         * doc/posix-functions/uname.texi: Mention the new module.
35930
35931 2009-08-02  Bruno Haible  <bruno@clisp.org>
35932
35933         Tests for module 'sys_utsname'.
35934         * modules/sys_utsname-tests: New file.
35935         * tests/test-sys_utsname.c: New file.
35936
35937         New module 'sys_utsname'.
35938         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35939         * m4/sys_utsname_h.m4: New file.
35940         * modules/sys_utsname: New file.
35941         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35942
35943 2009-08-02  Bruno Haible  <bruno@clisp.org>
35944
35945         Implicitly initialize the sockets library.
35946         * lib/gethostname.c: Include sockets.h.
35947         (rpl_gethostname): Invoke gl_sockets_startup.
35948         * lib/socket.c: Include sockets.h.
35949         (rpl_socket): Invoke gl_sockets_startup.
35950         * modules/gethostname (Depends-on): Add sockets.
35951         * modules/socket (Depends-on): Likewise.
35952         * tests/test-poll.c: Don't include sockets.h.
35953         (main): Don't invoke gl_sockets_startup.
35954         * tests/test-select.c: Don't include sockets.h.
35955         (main): Don't invoke gl_sockets_startup.
35956
35957 2009-08-02  Bruno Haible  <bruno@clisp.org>
35958
35959         Allow multiple calls to gl_sockets_startup.
35960         * lib/sockets.c (initialized_sockets_version): New variable.
35961         (gl_sockets_startup): Do nothing if already called for this or a higher
35962         version.
35963         (gl_sockets_cleanup): Reset initialized_sockets_version.
35964
35965 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35966
35967         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35968         different project/version.
35969
35970 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35971             Bruno Haible  <bruno@clisp.org>
35972
35973         Tests for module 'pipe-filter-gi'.
35974         * modules/pipe-filter-gi-tests: New file.
35975         * tests/test-pipe-filter-gi1.sh: New file.
35976         * tests/test-pipe-filter-gi1.c: New file.
35977         * tests/test-pipe-filter-gi2.sh: New file.
35978         * tests/test-pipe-filter-gi2-main.c: New file.
35979         * tests/test-pipe-filter-gi2-child.c: New file.
35980
35981         New module 'pipe-filter-gi'.
35982         * lib/pipe-filter-gi.c: New file.
35983         * modules/pipe-filter-gi: New file.
35984
35985 2009-08-02  Bruno Haible  <bruno@clisp.org>
35986             Paolo Bonzini  <bonzini@gnu.org>
35987
35988         Tests for module 'pipe-filter-ii'.
35989         * modules/pipe-filter-ii-tests: New file.
35990         * tests/test-pipe-filter-ii1.sh: New file.
35991         * tests/test-pipe-filter-ii1.c: New file.
35992         * tests/test-pipe-filter-ii2.sh: New file.
35993         * tests/test-pipe-filter-ii2-main.c: New file.
35994         * tests/test-pipe-filter-ii2-child.c: New file.
35995
35996         New module 'pipe-filter-ii'.
35997         * lib/pipe-filter.h: New file.
35998         * lib/pipe-filter-ii.c: New file.
35999         * lib/pipe-filter-aux.h: New file.
36000         * modules/pipe-filter-ii: New file.
36001
36002 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36003
36004         * lib/gc-libgcrypt.c: Change copyright to FSF.
36005         * lib/gc-gnulib.c: Likewise.
36006
36007 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36008
36009         * lib/gethostname.c: Include limits.h.
36010
36011 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36012             Bruno Haible  <bruno@clisp.org>
36013
36014         Ensure HOST_NAME_MAX as part of the gethostname module.
36015         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36016         define also HOST_NAME_MAX.
36017         * tests/test-gethostname.c: Include <limits.h>.
36018         (main): Check also HOST_NAME_MAX.
36019         * doc/posix-headers/limits.texi: Document the mingw problem.
36020
36021 2009-08-02  Bruno Haible  <bruno@clisp.org>
36022
36023         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36024         Add comments.
36025
36026 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36027
36028         * lib/gethostname.c: Add Windows wrapper.
36029         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36030         * modules/gethostname: Depend on sys_socket & errno, for also
36031         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36032         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36033
36034 2009-07-31  Jim Meyering  <meyering@redhat.com>
36035
36036         getloadavg: fix symbol name in comment
36037         * lib/getloadavg.c: Correct a typo I introduced when adding
36038         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36039         Matt Kraai spotted the problem.
36040
36041 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36042
36043         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36044         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36045         code also if ! defined N_NAME_POINTER.
36046         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36047         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36048         but the n_name member is a 12-byte array.
36049
36050 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36051
36052         update-copyright: generalize comment handling
36053         * build-aux/update-copyright: Handle copyright statements
36054         within more comment styles.
36055         Document usage.
36056         Report any file with an external copyright holder or parse failure.
36057
36058 2009-07-29  Jim Meyering  <meyering@redhat.com>
36059
36060         mktime: correct setting of REPLACE_MKTIME
36061         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36062
36063         update-copyright: new module
36064         * modules/update-copyright: New file.
36065         * build-aux/update-copyright: New file.
36066         * MODULES.html.sh (maint+release support): Add update-copyright.
36067
36068 2009-07-27  Bruno Haible  <bruno@clisp.org>
36069
36070         Fix compilation error when <ctime> is used and mktime is replaced.
36071         * lib/time.in.h (mktime): New declaration.
36072         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36073         REPLACE_MKTIME instead of defining mktime in config.h.
36074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36075         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36076         Reported by Ross McFarland <rwmcfa1@neces.com>.
36077
36078 2009-07-27  Bruno Haible  <bruno@clisp.org>
36079
36080         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36081         Reported by Matt Kraai <mkraai@beckman.com>.
36082
36083 2009-07-25  Jim Meyering  <meyering@redhat.com>
36084
36085         maint.mk: avoid warnings about missing files
36086         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36087         diagnostic when .prev-version does not exist.
36088         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36089         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36090         nonexistent cfg.mk.
36091         Suggestions from Simon Josefsson.
36092
36093 2009-07-25  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36096         defined as macros. Needed on QNX 6.4.1.
36097         Reported by Matt Kraai <mkraai@beckman.com>.
36098
36099 2009-07-23  Jim Meyering  <meyering@redhat.com>
36100
36101         maint.mk: invoke "make dist" with a working value of XZ_OPT
36102         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36103
36104 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36105
36106         Make fseeko.c compile on QNX.
36107         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36108
36109 2009-07-22  Peter Simons  <simons@cryp.to>
36110
36111         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36112         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36113         * lib/md4.h: Likewise.
36114         * lib/md5.h: Likewise.
36115         * lib/sha1.h: Likewise.
36116         * lib/sha256.h: Likewise.
36117         * lib/sha512.h: Likewise.
36118
36119         tests-sha1: don't assign literal string to 'char *' variable
36120         * tests/test-sha1.c (main): Declare locals with "const" to match
36121         attributes of the right hand side.
36122
36123 2009-07-21  Eric Blake  <ebb9@byu.net>
36124
36125         dup2: fix more mingw problems
36126         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36127         fd to itself.
36128         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36129         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36130         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36131         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36132         care of mingw bugs.
36133
36134 2009-07-21  Jim Meyering  <meyering@redhat.com>
36135
36136         vc-list-files: avoid failure when /bin/sh is dash
36137         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36138         On some Debian based systems, /bin/sh is a symlink to dash, and running
36139         this command would omit the "/" following each 'tests' prefix:
36140           dash -x build-aux/vc-list-files -C . tests
36141         That is because bash and dash work differently:
36142           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36143           bash ok
36144           dash odd
36145
36146 2009-07-21  Eric Blake  <ebb9@byu.net>
36147
36148         dup2-tests: test previous patch
36149         * modules/dup2-tests: New file.
36150         * tests/test-dup2.c: Likewise.
36151         * tests/test-open.c (main): Avoid unspecified behavior.
36152         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36153         test.
36154
36155         dup2: work around mingw and cygwin 1.5 bug
36156         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36158         * modules/unistd (Makefile.am): Substitute it.
36159         * lib/unistd.in.h (dup2): Declare the replacement.
36160         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36161         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36162         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36163         * modules/execute (Depends-on): Add dup2.
36164         * modules/fseterr (Depends-on): Likewise.
36165         * modules/pipe (Depends-on): Likewise.
36166         * modules/posix_spawn-internal (Depends-on): Likewise.
36167
36168 2009-07-21  Bruno Haible  <bruno@clisp.org>
36169
36170         * modules/.gitattributes: New file.
36171
36172 2009-07-20  Bruno Haible  <bruno@clisp.org>
36173
36174         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36175         (main): Use it.
36176
36177 2009-07-20  Eric Blake  <ebb9@byu.net>
36178
36179         test-pipe: make a bit more robust.
36180         * tests/test-pipe.c (myerr): Allow error messages regardless of
36181         what we do to stderr.
36182         (test_pipe): Rearrange to avoid deadlock.
36183         (child_main): Try a larger read, to ensure we avoided deadlock.
36184         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36185         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36186         if misused.
36187
36188 2009-07-19  Jim Meyering  <meyering@redhat.com>
36189
36190         fts: avoid false-positive cycle-detection
36191         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36192         for each new command line argument.
36193
36194 2009-07-19  Bruno Haible  <bruno@clisp.org>
36195
36196         Fix build error on mingw with the modules sys_select and unistd.
36197         * modules/acl-tests (Depends-on): Add close.
36198         * modules/binary-io-tests (Depends-on): Likewise.
36199         * modules/closein-tests (Depends-on): Likewise.
36200         * modules/flock-tests (Depends-on): Likewise.
36201         * modules/fsync-tests (Depends-on): Likewise.
36202         * modules/lseek-tests (Depends-on): Likewise.
36203         * modules/pipe-tests (Depends-on): Likewise.
36204         * modules/posix_spawn-tests (Depends-on): Likewise.
36205         * modules/posix_spawnp-tests (Depends-on): Likewise.
36206         * modules/stat-time-tests (Depends-on): Likewise.
36207         * modules/yesno-tests (Depends-on): Likewise.
36208
36209 2009-07-19  Bruno Haible  <bruno@clisp.org>
36210
36211         Unify conditionals.
36212         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36213         macros, not at the compiler macros.
36214         * lib/pipe.c: Likewise.
36215         * lib/execute.c: Likewise.
36216         * lib/spawni.c: Likewise.
36217
36218 2009-07-19  Bruno Haible  <bruno@clisp.org>
36219
36220         Fix handling of closed stdin/stdout/stderr on mingw.
36221         * lib/w32spawn.h: Include unistd.h.
36222         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36223         file descriptor with O_NOINHERIT flag.
36224         (fd_safer_noinherit): New function, based on fd-safer.c.
36225         (dup_safer_noinherit): New function, based on dup-safer.c.
36226         (undup_safer_noinherit): New function.
36227         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36228         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36229         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36230         instead of fd_safer.
36231         * tests/test-pipe.c: Include <windows.h>.
36232         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36233         result.
36234
36235         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36236         from main.
36237         (test_pipe): Pass an extra argument for disambiguation.
36238         (main): Invoke parent_main or child_main.
36239
36240         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36241         consistently.
36242
36243 2009-07-18  Eric Blake  <ebb9@byu.net>
36244
36245         test-pipe: fix mingw build
36246         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36247
36248 2009-07-18  Bruno Haible  <bruno@clisp.org>
36249
36250         * modules/pipe-tests (Makefile.am): Fix typo.
36251
36252 2009-07-18  Eric Blake  <ebb9@byu.net>
36253
36254         error: fix mingw build
36255         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36256         Reported by Bruno Haible.
36257
36258         error: avoid undefined use of stdout
36259         * lib/error.c (error, error_at_line): Check that fd 1 is open
36260         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36261         is handling faults and the close_stdout module wants to report the
36262         detection of closed stdout as an error.
36263
36264 2009-07-17  Eric Blake  <ebb9@byu.net>
36265
36266         pipe: be robust in face of closed fds
36267         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36268         should cause child to misbehave.
36269         * modules/pipe-tests: New module.
36270         * tests/test-pipe.c: New file.
36271         * tests/test-pipe.sh: New file.
36272         Reported by Akim Demaille.
36273
36274 2009-07-14  Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36277         Reported by anonymous kc.
36278
36279 2009-07-07  Jim Meyering  <meyering@redhat.com>
36280
36281         maint.mk: don't look for translatable strings in *.m4 or *.mk
36282         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36283         when searching for translatable strings.
36284
36285 2009-07-05  Jim Meyering  <meyering@redhat.com>
36286
36287         remove superfluous parentheses in STREQ definition
36288         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36289         * lib/getugroups.c (STREQ): Likewise.
36290         * lib/fnmatch.c (STREQ): Likewise.
36291         Spotted by Bruno Haible.
36292
36293 2009-07-04  Jim Meyering  <meyering@redhat.com>
36294
36295         argv-iter: new module
36296         * MODULES.html.sh: Add argv-iter.
36297         * lib/argv-iter.c, lib/argv-iter.h: New files.
36298         * modules/argv-iter: New file.
36299         * modules/argv-iter-tests: New file.
36300         * tests/test-argv-iter.c: Test it.
36301
36302 2009-07-04  Bruno Haible  <bruno@clisp.org>
36303
36304         Fix assertion.
36305         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36306         contains more exact copies of a given entry than file2, leave the extra
36307         copies unpaired rather than aborting.
36308         Reported by Eric Blake.
36309
36310 2009-07-02  Bruno Haible  <bruno@clisp.org>
36311
36312         Speedup git-merge-changelog for git cherry-pick.
36313         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36314         (entries_mapping_get): New function, extracted from compute_mapping.
36315         (entries_mapping_reverse_get): New function.
36316         (compute_mapping): Add a 'full' argument. Return the result in a
36317         'struct entries_mapping'.
36318         (main): Update. Access the mappings through entries_mapping_get.
36319         Reported by Eric Blake.
36320
36321 2009-07-02  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36324         best_i.
36325
36326 2009-07-02  Bruno Haible  <bruno@clisp.org>
36327
36328         Speed up approximate search for matching ChangeLog entries.
36329         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36330         argument. Call fstrcmp_bounded instead of fstrcmp.
36331         (compute_mapping, try_split_merged_entry, main): Update callers.
36332
36333 2009-07-02  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36336
36337 2009-06-30  Bruno Haible  <bruno@clisp.org>
36338
36339         Reduce the number of uc_is_cased calls.
36340         * lib/unicase.h (casing_suffix_context_t): Add
36341         'first_char_except_ignorable' field.
36342         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36343         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36344         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36345         Update initializer.
36346         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36347         case-ignorable characters.
36348         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36349         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36350         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36351         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36352         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36353
36354 2009-06-30  Bruno Haible  <bruno@clisp.org>
36355
36356         Tests for module 'unicase/ignorable'.
36357         * modules/unicase/ignorable-tests: New file.
36358         * tests/unicase/test-ignorable.c: New file, generated by
36359         gen-uni-tables.
36360
36361         Tests for module 'unicase/cased'.
36362         * modules/unicase/cased-tests: New file.
36363         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36364         * tests/unicase/test-predicate-part1.h: New file, derived from
36365         tests/unictype/test-predicate-part1.h.
36366         * tests/unicase/test-predicate-part2.h: New file, same as
36367         tests/unictype/test-predicate-part2.h.
36368
36369         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36370         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36371         (output_casing_properties): New function.
36372         (main): Call it.
36373         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36374         * lib/unicase/cased.c: Include unictype/bitmap.h.
36375         (uc_is_cased): Define through a bitmap lookup.
36376         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36377         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36378         (uc_is_case_ignorable): Define through a bitmap lookup.
36379         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36380         lib/unictype/bitmap.h.
36381         (Depends-on): Add inline. Clean up.
36382         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36383         lib/unictype/bitmap.h.
36384         (Depends-on): Add inline. Clean up.
36385         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36386         recognition.
36387         * tests/unicase/test-u16-tolower.c (main): Likewise.
36388         * tests/unicase/test-u32-tolower.c (main): Likewise.
36389
36390 2009-06-30  Bruno Haible  <bruno@clisp.org>
36391
36392         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36393         * lib/unicase/u16-casemap.c: Likewise.
36394         * lib/unicase/u32-casemap.c: Likewise.
36395
36396 2009-06-29  Bruno Haible  <bruno@clisp.org>
36397
36398         Define u32_casefold as a wrapper around u32_ct_casefold.
36399         * lib/unicase/u32-casefold.c: Update.
36400         * modules/unicase/u32-casefold (Depends-on): Add
36401         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36402         unicase/empty-suffix-context. Clean up.
36403
36404         Define u16_casefold as a wrapper around u16_ct_casefold.
36405         * lib/unicase/u16-casefold.c: Update.
36406         * modules/unicase/u16-casefold (Depends-on): Add
36407         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36408         unicase/empty-suffix-context. Clean up.
36409
36410         Define u8_casefold as a wrapper around u8_ct_casefold.
36411         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36412         * lib/unicase/u8-casefold.c: Update.
36413         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36414         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36415
36416         Define u32_totitle as a wrapper around u32_ct_totitle.
36417         * lib/unicase/u32-totitle.c: Update.
36418         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36419         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36420
36421         Define u16_totitle as a wrapper around u16_ct_totitle.
36422         * lib/unicase/u16-totitle.c: Update.
36423         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36424         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36425
36426         Define u8_totitle as a wrapper around u8_ct_totitle.
36427         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36428         functions.
36429         (FUNC): Delegate to U_CT_TOTITLE.
36430         * lib/unicase/u8-totitle.c: Update.
36431         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36432         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36433
36434         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36435         invocation.
36436         * modules/unicase/u32-tolower (Depends-on): Add
36437         unicase/empty-prefix-context, unicase/empty-suffix-context.
36438
36439         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36440         invocation.
36441         * modules/unicase/u16-tolower (Depends-on): Add
36442         unicase/empty-prefix-context, unicase/empty-suffix-context.
36443
36444         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36445         * modules/unicase/u8-tolower (Depends-on): Add
36446         unicase/empty-prefix-context, unicase/empty-suffix-context.
36447
36448         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36449         invocation.
36450         * modules/unicase/u32-toupper (Depends-on): Add
36451         unicase/empty-prefix-context, unicase/empty-suffix-context.
36452
36453         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36454         invocation.
36455         * modules/unicase/u16-toupper (Depends-on): Add
36456         unicase/empty-prefix-context, unicase/empty-suffix-context.
36457
36458         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36459         * modules/unicase/u8-toupper (Depends-on): Add
36460         unicase/empty-prefix-context, unicase/empty-suffix-context.
36461
36462         New module 'unicase/u32-ct-casefold'.
36463         * lib/unicase/u32-ct-casefold.c: New file.
36464         * modules/unicase/u32-ct-casefold: New file.
36465
36466         New module 'unicase/u16-ct-casefold'.
36467         * lib/unicase/u16-ct-casefold.c: New file.
36468         * modules/unicase/u16-ct-casefold: New file.
36469
36470         New module 'unicase/u8-ct-casefold'.
36471         * lib/unicase/u8-ct-casefold.c: New file.
36472         * lib/unicase/u-ct-casefold.h: New file, derived from
36473         lib/unicase/u-casefold.h.
36474         * modules/unicase/u8-ct-casefold: New file.
36475
36476         New module 'unicase/u32-ct-totitle'.
36477         * lib/unicase/u32-ct-totitle.c: New file.
36478         * modules/unicase/u32-ct-totitle: New file.
36479
36480         New module 'unicase/u16-ct-totitle'.
36481         * lib/unicase/u16-ct-totitle.c: New file.
36482         * modules/unicase/u16-ct-totitle: New file.
36483
36484         New module 'unicase/u8-ct-totitle'.
36485         * lib/unicase/u8-ct-totitle.c: New file.
36486         * lib/unicase/u-ct-totitle.h: New file, derived from
36487         lib/unicase/u-totitle.h.
36488         * modules/unicase/u8-ct-totitle: New file.
36489
36490         New module 'unicase/u32-ct-tolower'.
36491         * lib/unicase/u32-ct-tolower.c: New file.
36492         * modules/unicase/u32-ct-tolower: New file.
36493
36494         New module 'unicase/u16-ct-tolower'.
36495         * lib/unicase/u16-ct-tolower.c: New file.
36496         * modules/unicase/u16-ct-tolower: New file.
36497
36498         New module 'unicase/u8-ct-tolower'.
36499         * lib/unicase/u8-ct-tolower.c: New file.
36500         * modules/unicase/u8-ct-tolower: New file.
36501
36502         New module 'unicase/u32-ct-toupper'.
36503         * lib/unicase/u32-ct-toupper.c: New file.
36504         * modules/unicase/u32-ct-toupper: New file.
36505
36506         New module 'unicase/u16-ct-toupper'.
36507         * lib/unicase/u16-ct-toupper.c: New file.
36508         * modules/unicase/u16-ct-toupper: New file.
36509
36510         New module 'unicase/u8-ct-toupper'.
36511         * lib/unicase/u8-ct-toupper.c: New file.
36512         * modules/unicase/u8-ct-toupper: New file.
36513
36514         Add context arguments to u*_casemap functions.
36515         * lib/unicase/unicasemap.h: Include unicase.h.
36516         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36517         suffix_context arguments.
36518         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36519         functions.
36520         (FUNC): Add prefix_context and suffix_context arguments. Use
36521         uc_is_cased and uc_is_case_ignorable.
36522         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36523         * lib/unicase/u16-casemap.c: Likewise.
36524         * lib/unicase/u32-casemap.c: Likewise.
36525         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36526         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36527         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36528         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36529         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36530         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36531
36532         New module 'unicase/u32-suffix-context'.
36533         * lib/unicase/u32-suffix-context.c: New file.
36534         * modules/unicase/u32-suffix-context: New file.
36535
36536         New module 'unicase/u16-suffix-context'.
36537         * lib/unicase/u16-suffix-context.c: New file.
36538         * modules/unicase/u16-suffix-context: New file.
36539
36540         New module 'unicase/u8-suffix-context'.
36541         * lib/unicase/u8-suffix-context.c: New file.
36542         * lib/unicase/u-suffix-context.h: New file.
36543         * modules/unicase/u8-suffix-context: New file.
36544
36545         New module 'unicase/empty-suffix-context'.
36546         * lib/unicase/empty-suffix-context.c: New file.
36547         * modules/unicase/empty-suffix-context: New file.
36548
36549         New module 'unicase/u32-prefix-context'.
36550         * lib/unicase/u32-prefix-context.c: New file.
36551         * modules/unicase/u32-prefix-context: New file.
36552
36553         New module 'unicase/u16-prefix-context'.
36554         * lib/unicase/u16-prefix-context.c: New file.
36555         * modules/unicase/u16-prefix-context: New file.
36556
36557         New module 'unicase/u8-prefix-context'.
36558         * lib/unicase/u8-prefix-context.c: New file.
36559         * lib/unicase/u-prefix-context.h: New file.
36560         * lib/unicase/context.h: New file.
36561         * modules/unicase/u8-prefix-context: New file.
36562
36563         New module 'unicase/empty-prefix-context'.
36564         * lib/unicase/empty-prefix-context.c: New file.
36565         * modules/unicase/empty-prefix-context: New file.
36566
36567         New module 'unicase/ignorable'.
36568         * lib/unicase/ignorable.c: New file.
36569         * modules/unicase/ignorable: New file.
36570
36571         New module 'unicase/cased'.
36572         * lib/unicase/caseprop.h: New file.
36573         * lib/unicase/cased.c: New file.
36574         * modules/unicase/cased: New file.
36575
36576         New functions for case mapping of substrings.
36577         * lib/unicase.h (casing_prefix_context_t): New type.
36578         (unicase_empty_prefix_context): New variable.
36579         (u8_casing_prefix_context, u16_casing_prefix_context,
36580         u32_casing_prefix_context, u8_casing_prefixes_context,
36581         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36582         declarations.
36583         (casing_suffix_context_t): New type.
36584         (unicase_empty_suffix_context): New variable.
36585         (u8_casing_suffix_context, u16_casing_suffix_context,
36586         u32_casing_suffix_context, u8_casing_suffixes_context,
36587         u16_casing_suffixes_context, u32_casing_suffixes_context,
36588         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36589         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36590         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36591         declarations.
36592
36593 2009-06-28  Jim Meyering  <meyering@redhat.com>
36594
36595         boostrap: indent only with spaces
36596         * build-aux/bootstrap: Indent only with spaces, never TABs.
36597
36598         bootstrap: split long lines
36599         * build-aux/bootstrap: Keep line length < 80.
36600
36601         bootstrap: sync from coreutils
36602         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36603         just as autoreconf does.  Verify a list of prerequisite
36604         package-name,version-number pairs if defined in bootstrap.conf.
36605         Refer to README-prereq, if prerequisites are not satisfied.
36606
36607 2009-06-27  Eric Blake  <ebb9@byu.net>
36608
36609         tests: add test for bogus NULL definition
36610         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36611         * tests/test-stdlib.c: Likewise.
36612         * tests/test-string.c: Likewise.
36613         * tests/test-locale.c: Likewise.
36614         * tests/test-unistd.c: Likewise.
36615         * modules/stdio-tests (Depends-on): Add verify.
36616         * modules/stdlib-tests (Depends-on): Likewise.
36617         * modules/string-tests (Depends-on): Likewise.
36618         * modules/locale-tests (Depends-on): Likewise.
36619         * modules/unistd-tests (Depends-on): Likewise.
36620
36621 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36622
36623         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36624         self-explaining comment.
36625         * m4/selinux-selinux-h: Update serial.
36626         (gl_LIBSELINUX): New macro, adding a warning for missing development
36627         packages to code extracted from...
36628         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36629         Add warning for missing development packages here, too.
36630
36631 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36632
36633         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36634
36635 2009-06-25  Eric Blake  <ebb9@byu.net>
36636
36637         version-etc: fix regression
36638         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36639         gcc.
36640         (version_etc): Use it, to catch bugs with trailing NULL.
36641         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36642         (version_etc_va): Fix logic bug.
36643         * modules/version-etc-tests: Add test.
36644         * tests/test-version-etc.c: New file.
36645         * tests/test-version-etc.sh: Likewise.
36646
36647 2009-06-25  Sam Steingold  <sds@gnu.org>
36648
36649         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36650         mbtowc declaration.
36651
36652 2009-06-25  Eric Blake  <ebb9@byu.net>
36653
36654         fpurge: migrate into <stdio.h>
36655         * lib/fpurge.h: Delete...
36656         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36657         * lib/fpurge.c (fpurge): Change declaring header.
36658         * modules/fpurge (Files): Drop deleted file.
36659         (Depends-on): Add stdio.
36660         (configure.ac): Set witness.
36661         * modules/stdio (Makefile.am): Support fpurge macros.
36662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36663         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36664         * lib/fflush.c: Update client.
36665         * tests/test-fpurge.c: Likewise.
36666         * NEWS: Mention the change.
36667
36668 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36669
36670         * lib/argp-version-etc.c (program_authors): Add const
36671         qualifier.
36672         * lib/version-etc.c: Fix typos in the comments.
36673         * modules/argp-version-etc: Depends on version-etc.
36674
36675 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36676
36677         argp-version-etc: new module.
36678
36679         * lib/argp-version-etc.c: New file.
36680         * lib/argp-version-etc.h: New file.
36681         * modules/argp-version-etc: New file.
36682         * modules/argp-version-etc-tests: New file.
36683         * tests/test-argp-version-etc.c: New test.
36684         * tests/test-argp-version-etc-1.sh: New test.
36685
36686 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36687
36688         Provide additional interfaces and documentation for version-etc
36689         module.
36690
36691         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36692         interfaces.
36693         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36694         prototypes.
36695
36696 2009-06-24  Bruno Haible  <bruno@clisp.org>
36697
36698         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36699         HAVE_LIB${NAME} macro.
36700         Reported by Sam Steingold <sds@gnu.org>.
36701
36702 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36703
36704         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36705         needed.
36706
36707 2009-06-21  Bruno Haible  <bruno@clisp.org>
36708
36709         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36710         work.
36711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36712         together with LIB${NAME}, LTLIB${NAME}.
36713         Reported by Sam Steingold <sds@gnu.org>.
36714
36715 2009-06-20  Jim Meyering  <meyering@redhat.com>
36716
36717         tests: make sc_require_test_exit_idiom more generic
36718         * top/maint.mk (Exit_witness_file): New overridable variable.
36719         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36720         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36721
36722 2009-06-19  Jim Meyering  <meyering@redhat.com>
36723
36724         hash: reverse order of src/dst parameters in an internal interface
36725         * lib/hash.c (transfer_entries): Reverse order of parameters to
36726         put DST before SRC.  Adjust callers.
36727
36728         tests: test-hash: avoid wholesale duplication
36729         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36730         Instead, use a loop and add a single conditional.
36731
36732         tests: test-hash: allow seed selection via a command line argument
36733         * tests/test-hash.c (get_seed): New function.
36734         (main): Use it.
36735
36736 2009-06-19  Eric Blake  <ebb9@byu.net>
36737
36738         hash: avoid memory leak on allocation failure
36739         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36740         failure.  Factor repeated algorithm...
36741         (transfer_entries): ...into new helper routine.
36742         (hash_delete): React to hash_rehash return value.
36743
36744         hash: reduce memory pressure in hash_rehash no-op case
36745         * lib/hash.c (next_prime): Avoid overflow.
36746         (hash_initialize): Factor bucket size computation...
36747         (compute_bucket_size): ...into new helper function.
36748         (hash_rehash): Use new function and open coding to reduce memory
36749         pressure, and avoid a memory leak in USE_OBSTACK code.
36750         Reported by Jim Meyering.
36751
36752 2009-06-18  Eric Blake  <ebb9@byu.net>
36753
36754         hash: make rotation more obvious
36755         * modules/hash (Depends-on): Add bitrotate and stdint.
36756         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36757         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36758         (SIZE_MAX): Rely on headers for definition.
36759         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36760         (raw_hasher): Use rotr_sz.
36761         Suggested by Jim Meyering.
36762
36763         hash: fix memory leak in last patch
36764         * lib/hash.c (hash_rehash): Avoid memory leak.
36765
36766         hash: avoid no-op rehashing
36767         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36768
36769         hash: provide default callback functions
36770         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36771         (hash_initialize): Use them as defaults.
36772         * tests/test-hash.c (main): Test this.
36773
36774         hash: minor optimization
36775         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36776         when possible.
36777         (hash_initialize): Document this promise.
36778         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36779         * tests/test-hash.c (hash_compare_strings): Test this.
36780
36781 2009-06-18  Bruno Haible  <bruno@clisp.org>
36782
36783         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36784         going to be replaced anyway.
36785
36786 2009-06-18  Bruno Haible  <bruno@clisp.org>
36787
36788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36789         in one place.
36790         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36791         be replaced anyway.
36792
36793 2009-06-18  Eric Blake  <ebb9@byu.net>
36794
36795         hash: check for resize before insertion
36796         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36797         threshold before insertion, so that a pathological hash_rehash
36798         that fills every bucket can still trigger another rehash.
36799
36800 2009-06-18  Jim Meyering  <meyering@redhat.com>
36801
36802         hash-tests: add a loop around the small tests
36803         * tests/test-hash.c (main): Repeat small tests with selected
36804         small initial table sizes.
36805
36806 2009-06-17  Eric Blake  <ebb9@byu.net>
36807
36808         hash: minor cleanups
36809         * lib/hash.h (hash_entry): Make opaque, by moving...
36810         * lib/hash.c (hash_entry): ...here.
36811         (hash_insert): Clarify restrictions on what can be inserted.
36812         (hash_get_next): Clarify when it is safe to remove an element
36813         during traversal.
36814         (check_tuning): Skip verification when tuning is known safe.
36815         (hash_initialize): Clarify restrictions on tuning.
36816
36817 2009-06-17  Jim Meyering  <jim@meyering.net>
36818         and Eric Blake  <ebb9@byu.net>
36819
36820         hash-tests: new module
36821         * modules/hash-tests: New file.
36822         * tests/test-hash.c: New file.
36823
36824 2009-06-17  Eric Blake  <ebb9@byu.net>
36825
36826         strstr-simple: document new module
36827         * MODULES.html.sh: Document new module.
36828
36829         strstr, strcasestr: replace on platforms with broken memchr
36830         * modules/strstr: Split into...
36831         * modules/strstr-simple: ...new module that does not care about
36832         performance, but does care about glibc bug.
36833         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36834         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36835         if platform memchr is broken, per Debian bug 521737.
36836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36837         memchr.
36838         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36839         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36840         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36841         * modules/mountlist (Depends-on): Add strstr-simple.
36842         * modules/gen-uni-tables (Depends-on): Likewise.
36843         * modules/argz (Depends-on): Add strstr.
36844
36845 2009-06-17  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/posix_spawn-internal (Depends-on): Add errno.
36848
36849 2009-06-17  Bruno Haible  <bruno@clisp.org>
36850
36851         Define missing ESTALE on Interix 3.5.
36852         * lib/errno.in.h (ESTALE): Assign a value if missing.
36853         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36854         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36855         missing.
36856         * doc/posix-headers/errno.texi: Mention the Interix bug.
36857         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36858
36859 2009-06-15  Eric Blake  <ebb9@byu.net>
36860
36861         memchr, memchr2: add valgrind exception
36862         * lib/memchr.valgrind: New file.
36863         * lib/memchr2.valgrind: New file.
36864         * modules/memchr (Files): Distribute valgrind file.
36865         * modules/memchr2 (Files): Likewise.
36866
36867         docs: memchr is no longer obsolete
36868         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36869         * lib/string.in.h (memchr): Simplify logic.
36870
36871 2009-06-14  Jim Meyering  <meyering@redhat.com>
36872
36873         link-follow: fix the "checking..." message to not mention trailing slash
36874         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36875         never considered trailing slashes.
36876
36877 2009-06-14  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/memchr.m4: Mention also the bug on IA-64.
36880         * doc/posix-functions/memchr.texi: Likewise.
36881
36882 2009-06-12  Eric Blake  <ebb9@byu.net>
36883
36884         memchr: detect broken x86_64 and alpha implementations
36885         * modules/memchr-tests (Depends-on): Move mmap detection...
36886         * modules/memchr (Depends-on): ...here.
36887         (configure.ac): Set indicator.
36888         * lib/string.in.h (memchr): Declare replacement.
36889         * modules/string (Makefile.am): Trigger replacement.
36890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36891         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36892         bugs.
36893         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36894         * modules/getpagesize (License): Relax license.
36895
36896 2009-06-11  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/idpriv.h: Add more references.
36899
36900 2009-06-08  Bruno Haible  <bruno@clisp.org>
36901
36902         Tests for module 'idpriv-droptemp'.
36903         * modules/idpriv-droptemp-tests: New file.
36904         * tests/test-idpriv-droptemp.sh: New file.
36905         * tests/test-idpriv-droptemp.su.sh: New file.
36906         * tests/test-idpriv-droptemp.c: New file.
36907
36908         New module 'idpriv-droptemp'.
36909         * lib/idpriv-droptemp.c: New file.
36910         * modules/idpriv-droptemp: New file.
36911
36912 2009-06-08  Bruno Haible  <bruno@clisp.org>
36913
36914         Tests for module 'idpriv-drop'.
36915         * modules/idpriv-drop-tests: New file.
36916         * tests/test-idpriv-drop.sh: New file.
36917         * tests/test-idpriv-drop.su.sh: New file.
36918         * tests/test-idpriv-drop.c: New file.
36919
36920         New module 'idpriv-drop'.
36921         * lib/idpriv.h: New file.
36922         * lib-idpriv-drop.c: New file.
36923         * m4/idpriv.m4: New file.
36924         * modules/idpriv-drop: New file.
36925
36926 2009-06-08  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36929         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36930         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36931         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36932         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36933         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36934         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36935
36936 2009-06-08  Eric Blake  <ebb9@byu.net>
36937
36938         test-strstr: use memory fence, when possible
36939         * tests/test-strstr.c (main): Use memory fence, in order to be
36940         more likely to trigger Debian bug 521737.
36941         * modules/strstr-tests (Files): Pull in additional files.
36942
36943         memchr: no longer obsolete, for wider field testing
36944         * modules/memchr (Status, Notice): Delete, this module is no
36945         longer obsolete.
36946         * modules/vasnprintf (Depends-on): Add memchr.
36947
36948 2009-06-07  Jim Meyering  <meyering@redhat.com>
36949
36950         hash: declare some functions with the warn_unused_result attribute
36951         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36952
36953 2009-06-07  Bruno Haible  <bruno@clisp.org>
36954
36955         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36956         Reported by Eric Blake.
36957
36958 2009-06-06  Eric Blake  <ebb9@byu.net>
36959
36960         test-alignof: fix typo with long double
36961         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36962         compiler error.
36963
36964 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36965
36966         Escape non-texinfo { and }s.
36967         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36968         markup error.
36969
36970 2009-06-04  Jim Meyering  <meyering@redhat.com>
36971
36972         gitlog-to-changelog: don't infloop on an empty commit log
36973         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36974         Reported by Boris Petersen <transacid@centerim.org>.
36975
36976 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36977
36978         version-etc: extend for packagers
36979         Add three new configure options, intended for packagers:
36980           --with-packager="packager name"
36981           --with-packager-version="packager-specific version"
36982           --with-packager-bug-reports="packager bug reporting"
36983         An example with coreutils:
36984           $ ./configure \
36985             --with-packager=Gentoo \
36986             --with-packager-bug-report=http://bugs.gentoo.org/ \
36987             --with-packager-version="patchset 1.6"
36988           $ ./src/ls --version | head -n2
36989           ls (GNU coreutils) 7.1-dirty
36990           Packaged by Gentoo (patchset 1.6)
36991         Note that the bug reporting info via --help doesn't show up because
36992         coreutils uses its own custom emit_bug_reporting_address() implementation
36993         in src/system.h.  If it didn't, it'd look like:
36994           $ ./src/ls --help | tail -n4
36995           Report bugs to <bug-coreutils@gnu.org>.
36996           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36997           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36998           General help using GNU software: <http://www.gnu.org/gethelp/>.
36999         * lib/version-etc.c: Print new information, if provided.
37000         * m4/version-etc.m4: New file.
37001         * modules/version-etc (Files): Add m4/version-etc.m4.
37002         (configure.ac): Add gl_VERSION_ETC.
37003
37004 2009-05-31  Bruno Haible  <bruno@clisp.org>
37005
37006         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37007         and 'int64_t'.
37008         * modules/alignof-tests (Dependencies): Add stdint.
37009         Reported by Eric Blake.
37010
37011 2009-05-31  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37014         restriction due to compiler bugs.
37015         Reported by Eric Blake.
37016
37017 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37018             Bruno Haible  <bruno@clisp.org>
37019
37020         Fix test-alignof failure.
37021         * lib/alignof.h (alignof_slot): New macro.
37022         (alignof_type): New macro, with the same semantics as the previous
37023         'alignof'.
37024         (alignof): Alias to alignof_slot.
37025         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37026         check that the results are usable as constant expressions.
37027
37028 2009-05-31  Bruno Haible  <bruno@clisp.org>
37029
37030         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37031         * tests/test-memchr.c (main): Check that memchr does not read past the
37032         first occurrence of the byte.
37033         * tests/test-strstr.c (main): Update comment.
37034         Suggested by Eric Blake.
37035
37036 2009-05-30  Bruno Haible  <bruno@clisp.org>
37037
37038         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37039         detail how to use dumpbin.
37040         Reported by David Byron <dbyron@dbyron.com>.
37041
37042 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37043
37044         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37045
37046 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37047
37048         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37049
37050 2009-05-28  Bruno Haible  <bruno@clisp.org>
37051
37052         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37053         build-aux/ files.
37054
37055 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37056
37057         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37058
37059 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37060
37061         * gnulib-tool (sed_transform_main_lib_file)
37062         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37063         regexps.
37064
37065 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37066
37067         * tests/test-strstr.c: Add another self-test.
37068         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37069         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37070
37071 2009-05-23  Bruno Haible  <bruno@clisp.org>
37072
37073         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37074         change.
37075
37076 2009-05-21  Bruno Haible  <bruno@clisp.org>
37077
37078         Simplify use of mode_t varargs.
37079         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37080         uses 'mode_t' or 'int'.
37081         * lib/openat.c (openat): Likewise.
37082         * lib/open-safer.c (open_safer): Likewise.
37083         * m4/mode_t.m4: New file.
37084         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37085         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37086         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37087         * modules/open (Files): Add m4/mode_t.m4.
37088         * modules/openat (Files): Likewise.
37089         * modules/fcntl-safer (Files): Likewise.
37090         Suggested by Eric Blake.
37091
37092 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37093
37094         * doc/glibc-functions/fallocate.texi: New file.
37095         * doc/gnulib.texi: Include it.
37096
37097 2009-05-21  Eric Blake  <ebb9@byu.net>
37098             Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37101         invocations.
37102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37103
37104 2009-05-21  Eric Blake  <ebb9@byu.net>
37105             Bruno Haible  <bruno@clisp.org>
37106
37107         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37108         include_next. Fix of 2008-11-20 commit.
37109         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37110         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37111         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37112         NEXT_MATH_H.
37113         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37114         instead of NEXT_MATH_H.
37115
37116 2009-05-21  Bruno Haible  <bruno@clisp.org>
37117
37118         Avoid redefinition warnings for SIZE_MAX.
37119         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37120         Reported by Simon Josefsson.
37121
37122 2009-05-21  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37125         AC_CACHE_VAL.
37126
37127 2009-05-20  Bruno Haible  <bruno@clisp.org>
37128
37129         Make zeroptr.h work on mingw.
37130         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37131         mprotect.
37132         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37133         * modules/memchr2-tests (configure.ac): Likewise.
37134         * modules/memcmp-tests (configure.ac): Likewise.
37135         * modules/memmem-tests (configure.ac): Likewise.
37136         * modules/memrchr-tests (configure.ac): Likewise.
37137         Reported by Simon Josefsson.
37138
37139 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37140
37141         * tests/test-glob.c: Include string.h for strcmp prototype.
37142
37143 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37144
37145         * modules/getdelim (Depends-on): Add explicit stdint, although it
37146         was implicitly already pulled in via realloc-posix.
37147         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37148
37149 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37150
37151         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37152         G. Christensen" <tgc@jupiterrise.com>.
37153         * m4/sys_socket_h.m4: Check for sa_family_t.
37154         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37155         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37156         * tests/test-sys_socket.c: Check that sa_family_t works.
37157
37158 2009-05-18  Eric Blake  <ebb9@byu.net>
37159
37160         maint.mk: allow gnulib_dir in VPATH build
37161         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37162
37163 2009-05-15  Jim Meyering  <meyering@redhat.com>
37164
37165         maint.mk: Give gnulib_dir a default definition.
37166         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37167         Thus, most packages no longer need to specify this variable in cfg.mk
37168
37169 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37170
37171         rename.m4: fix typos that would make non-mingw cross-configure fail
37172         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37173
37174 2009-05-13  Eric Blake  <ebb9@byu.net>
37175
37176         mmap-anon: avoid out-of-order autoconf expansion
37177         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37178         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37179         * modules/memchr-tests (Depends-on): Add extensions.
37180         * modules/memchr2-tests (Depends-on): Add extensions.
37181         * modules/memcmp-tests (Depends-on): Add extensions.
37182         * modules/memmem-tests (Depends-on): Add extensions.
37183         * modules/memrchr-tests (Depends-on): Add extensions.
37184
37185 2009-05-13  Bruno Haible  <bruno@clisp.org>
37186
37187         Make some tests ISO C 99 compliant.
37188         * tests/zerosize-ptr.h: New file.
37189         * tests/test-memchr.c: Include zerosize-ptr.h.
37190         (main): Use a zero-size object pointer instead of NULL.
37191         * tests/test-memchr2.c: Include zerosize-ptr.h.
37192         (main): Use a zero-size object pointer instead of NULL.
37193         * tests/test-memcmp.c: Include zerosize-ptr.h.
37194         (main): Use a zero-size object pointer instead of NULL.
37195         * tests/test-memmem.c: Include zerosize-ptr.h.
37196         (main): Use a zero-size object pointer instead of NULL.
37197         * tests/test-memrchr.c: Include zerosize-ptr.h.
37198         (main): Use a zero-size object pointer instead of NULL.
37199         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37200         m4/mmap-anon.m4.
37201         (Depends-on): Add getpagesize.
37202         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37203         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37204         m4/mmap-anon.m4.
37205         (Depends-on): Add getpagesize.
37206         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37207         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37208         m4/mmap-anon.m4.
37209         (Depends-on): Add getpagesize.
37210         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37211         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37212         m4/mmap-anon.m4.
37213         (Depends-on): Add getpagesize.
37214         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37215         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37216         m4/mmap-anon.m4.
37217         (Depends-on): Add getpagesize.
37218         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37219
37220 2009-05-12  Bruno Haible  <bruno@clisp.org>
37221
37222         Tests for module 'alignof'.
37223         * modules/alignof-tests: New file.
37224         * tests/test-alignof.c: New file.
37225
37226 2009-05-12  Bruno Haible  <bruno@clisp.org>
37227
37228         Fix alignof macro.
37229         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37230         vendor compilers that are always correct.
37231
37232 2009-05-12  Bruno Haible  <bruno@clisp.org>
37233
37234         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37235         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37236         not whether its fully works.
37237
37238 2009-05-12  Bruno Haible  <bruno@clisp.org>
37239
37240         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37241
37242 2009-05-12  Jim Meyering  <meyering@redhat.com>
37243
37244         * top/maint.mk: Adjust backslash alignment.
37245
37246 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37247
37248         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37249
37250 2009-05-11  Eric Blake  <ebb9@byu.net>
37251
37252         argp: avoid undefined behavior
37253         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37254         macros.
37255
37256 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37257
37258         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37259         user.name to prevent git commit from complaining.
37260
37261 2009-05-10  Bruno Haible  <bruno@clisp.org>
37262
37263         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37264         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37265         it rewrites every file name only once.
37266         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37267
37268 2009-05-08  Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37271         instead of 'max'.
37272
37273 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37274
37275         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37276         sockaddr_storage test.
37277
37278 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37279
37280         * modules/sys_socket (Makefile.am): Substitute
37281         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37282         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37283         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37284         * tests/test-sys_socket.c: Check sockaddr_storage.
37285
37286 2009-05-08  Bruno Haible  <bruno@clisp.org>
37287
37288         New module 'alignof'.
37289         * lib/alignof.h: New file.
37290         * modules/alignof: New file.
37291
37292 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37293             Bruno Haible  <bruno@clisp.org>
37294
37295         Fix test-file-has-acl on FreeBSD.
37296         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37297         mask is implicitly added.
37298         * tests/test-file-has-acl.c: Include <signal.h>.
37299         (main): Terminate the test after 5 seconds.
37300         * modules/acl-tests (configure.ac): Check for alarm function.
37301
37302 2009-05-04  Bruno Haible  <bruno@clisp.org>
37303
37304         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37305         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37306         * modules/errno (configure.ac): Drop AC_REQUIRE.
37307         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37308         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37309
37310 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37311
37312         * modules/glob-tests: New module.
37313         * tests/test-glob.c: Add.
37314
37315 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37316
37317         * modules/fnmatch-tests: New module.
37318         * tests/test-fnmatch.c: Add.
37319
37320 2009-05-04  Eric Blake  <ebb9@byu.net>
37321
37322         maint: make the new no-submodule-changes rule VPATH-safe
37323         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37324
37325 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37326             Bruno Haible  <bruno@clisp.org>
37327
37328         acl: Fix infinite loop on FreeBSD.
37329         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37330         of return value from acl_get_entry.
37331         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37332         Likewise.
37333
37334 2009-05-03  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/acl-internal.h (acl_entries): Clarify return value.
37337         * lib/acl_entries.c (acl_entries): Likewise.
37338
37339 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37340
37341         Bug fix in acl module.
37342         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37343
37344 2009-05-03  Bruno Haible  <bruno@clisp.org>
37345
37346         Create gperf-generated file in the source dir, not in the build dir.
37347         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37348         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37349         * modules/unicase/locale-language (unicase/locale-languages.h):
37350         Likewise.
37351         * modules/unicase/special-casing (unicase/special-casing-table.h):
37352         Likewise.
37353         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37354         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37355         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37356         Reported by Ralf Wildenhues.
37357
37358 2009-05-03  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/fnmatch (Description, configure.ac): Taken from
37361         fnmatch-posix.
37362         * modules/fnmatch-posix: Turn into a symbolic reference to the
37363         'fnmatch' module, and deprecate.
37364         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37365
37366 2009-05-03  Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37369         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37370         Reported by Ralf Wildenhues.
37371
37372 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37373
37374         * m4/fnmatch.m4: Fix fnmatch re-define.
37375
37376 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37377
37378         priv-set: new module and tests; adapt write-any-file
37379         * lib/priv-set.c: New file.
37380         * lib/priv-set.h: New file.
37381         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37382         * lib/write-any-file.c: Simplify by using priv-set module.
37383         * m4/priv-set.m4: New file.
37384         * modules/priv-set: New file.
37385         * modules/unlinkdir: Add dependency on priv-set module.
37386         * modules/write-any-file: Likewise.
37387
37388         Tests for module 'priv-set'.
37389         * modules/priv-set-tests: New file.
37390         * tests/test-priv-set.c: New file.
37391
37392 2009-05-03  Jim Meyering  <meyering@redhat.com>
37393             Bruno Haible  <bruno@clisp.org>
37394
37395         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37396         use the converted UTF-8 variant of the name instead.
37397
37398 2009-05-03  Jim Meyering  <meyering@redhat.com>
37399
37400         tests: tighten some getdate tests
37401         * tests/test-getdate.c (main): Tighten tests: require equality,
37402         not just greater than.  Set TZ envvar to UTC0.
37403
37404 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37405
37406         getdate: correctly interpret "next monday" when run on a Monday
37407         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37408         that e.g., "next tues" (when run on a tuesday) results in a date
37409         that is one week in the future, and not today's date.
37410         I.e., add a week when the wday is the same as the current one.
37411         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37412         and earlier by Martin Bernreuther and Jan Minář.
37413         * tests/test-getdate.c (main): Check that "next DAY" is always in
37414         the future and that "last DAY" is always in the past.
37415
37416 2009-05-02  Jim Meyering  <meyering@redhat.com>
37417
37418         build: ensure that a release build fails when a submodule is unclean
37419         * top/maint.mk (no-submodule-changes): New rule.
37420         (alpha beta major): Depend on it.
37421
37422 2009-05-02  Bruno Haible  <bruno@clisp.org>
37423
37424         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37425         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37426         shell variable gl_fnmatch_required to detect which variant is
37427         requested.
37428         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37429         gl_FUNC_FNMATCH_POSIX.
37430         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37431         exclude fnmatch-posix.
37432
37433 2009-05-02  Bruno Haible  <bruno@clisp.org>
37434
37435         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37436         * modules/mbsrtowcs (License): Change to LGPLv2+.
37437         * modules/strnlen1 (License): Likewise.
37438         Reported by Simon Josefsson.
37439
37440 2009-05-02  Bruno Haible  <bruno@clisp.org>
37441
37442         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37443         "cross".
37444         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37445         gnulib-tool was called with option --source-base=lib.
37446
37447 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37448
37449         Use automake *-local hooks without commands, for extensibility.
37450         * modules/localcharset (Makefile.am): Rename install-exec-local
37451         rule to install-exec-localcharset, and make it a prerequisite of
37452         install-exec-local.  Likewise, rename the uninstall-local rule to
37453         uninstall-localcharset, and make it a prerequisite of the former.
37454
37455 2009-05-01  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37458         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37459         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37461         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37462         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37463         m4/locale-zh.m4, m4/codeset.m4.
37464
37465         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37466         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37467         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37468         m4/locale-zh.m4.
37469
37470         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37471         REPLACE_WCRTOMB if mbstate_t must be replaced.
37472         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37473         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37474
37475 2009-05-01  Bruno Haible  <bruno@clisp.org>
37476
37477         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37478         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37479         dngettext, dcngettext, textdomain, bindtextdomain,
37480         bind_textdomain_codeset): Undefine before redefining.
37481
37482 2009-04-30  Bruno Haible  <bruno@clisp.org>
37483
37484         Fix bug introduced on 2009-04-25.
37485         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37486         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37487         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37488         is defined.
37489         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37490         is defined.
37491         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37492         is defined.
37493         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37494
37495 2009-04-28  Bruno Haible  <bruno@clisp.org>
37496
37497         Comment tweaks.
37498         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37499         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37500         * lib/unicase.h (u*_casexfrm): Likewise.
37501         Reported by Paolo Bonzini.
37502
37503 2009-04-28  Bruno Haible  <bruno@clisp.org>
37504
37505         Fix a compilation error.
37506         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37507         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37508         Reported by Jim Meyering.
37509
37510 2009-04-27  Bruno Haible  <bruno@clisp.org>
37511
37512         New module 'libunistring'.
37513         * modules/libunistring: New file.
37514         * m4/libunistring.m4: New file.
37515         * MODULES.html.sh (Unicode string functions): Add it.
37516
37517 2009-04-27  Eric Blake  <ebb9@byu.net>
37518
37519         maint.mk: allow package-specific header to provide <config.h>
37520         * top/maint.mk (sc_require_config_h): New variable.
37521         (sc_require_config_h, sc_require_config_h_first): Use it.
37522
37523 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37524
37525         * top/maint.mk (sc_avoid_if_before_free): Except
37526         useless-if-before-free script.
37527
37528 2009-04-27  Eric Blake  <ebb9@byu.net>
37529
37530         maintainer-makefile: depend on all required helper scripts
37531         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37532         useless-if-before-free.
37533         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37534         version, rather than assuming gnulib checkout is available.
37535         Reported by Simen Josefsson.
37536
37537 2009-04-26  Bruno Haible  <bruno@clisp.org>
37538
37539         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37540         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37541         "../" or "..".
37542
37543 2009-04-26  Bruno Haible  <bruno@clisp.org>
37544
37545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37546         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37547         AC_LIB_HAVE_LINKFLAGS.
37548
37549 2009-04-26  Bruno Haible  <bruno@clisp.org>
37550
37551         Simplify calling convention of u*_conv_from_encoding.
37552         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37553         u32_conv_from_encoding): Expect a resultbuf argument and return the
37554         result directly as a pointer.
37555         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37556         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37557         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37558         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37559         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37560         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37561         Update.
37562         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37563         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37564         * lib/vasnprintf.c (VASNPRINTF): Update.
37565         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37566         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37567         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37568         * NEWS: Mention the change.
37569
37570 2009-04-26  Bruno Haible  <bruno@clisp.org>
37571
37572         Simplify calling convention of u*_conv_to_encoding.
37573         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37574         u32_conv_to_encoding): Expect a resultbuf argument and return the
37575         result directly as a pointer.
37576         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37577         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37578         freeing scaled_offsets if mem_iconveha failed.
37579         * lib/unicase/u-casexfrm.h (FUNC): Update.
37580         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37581         * lib/vasnprintf.c (VASNPRINTF): Update.
37582         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37583         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37584         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37585         * NEWS: Mention the change.
37586
37587 2009-04-26  Bruno Haible  <bruno@clisp.org>
37588
37589         Avoid test failures on AIX and OSF/1.
37590         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37591         malloc(0).
37592         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37593         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37594         Likewise.
37595         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37596         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37597         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37598         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37599         * doc/posix-functions/malloc.texi: Document the portability problem
37600         related to malloc(0).
37601
37602 2009-04-26  Bruno Haible  <bruno@clisp.org>
37603
37604         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37605         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37606         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37607
37608 2009-04-25  Bruno Haible  <bruno@clisp.org>
37609
37610         Avoid link error when creating a namespace clean library.
37611         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37612         as macro with arguments if already defined as an alias.
37613         * lib/signbitf.c (gl_signbitf): Don't undefine.
37614         * lib/signbitd.c (gl_signbitd): Don't undefine.
37615         * lib/signbitl.c (gl_signbitl): Don't undefine.
37616
37617 2009-04-25  Jim Meyering  <meyering@redhat.com>
37618
37619         vc-list-files: fix another quoting bug
37620         * build-aux/vc-list-files: Avoid sed backslash expansion
37621         of pathological directory names.
37622
37623 2009-04-25  Eric Blake  <ebb9@byu.net>
37624
37625         vc-list-files: fix shell quoting error
37626         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37627         timestamp.
37628
37629 2009-04-25  Jim Meyering  <meyering@redhat.com>
37630
37631         vc-list-files: restore lost functionality with subdir argument
37632         * build-aux/vc-list-files: When given a non-"." sub-directory
37633         argument, substitute the $dir/ prefix back onto each resulting name.
37634         Otherwise, coreutils' root_tests check would fail.
37635
37636 2009-04-24  Eric Blake  <ebb9@byu.net>
37637
37638         vc-list-files: ignore git symlinks
37639         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37640         than ls-files, to ignore git symlinks.
37641
37642         maint.mk: import improvements from m4
37643         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37644         (move_if_change): Delete unused macro.
37645         (news-date-check, vc-diff-check): Support VPATH builds.
37646         (announcement): Likewise.  Split --bootstrap-tools list...
37647         (boostrap-tools): ...into separate list, which can be overridden
37648         in cfg.mk.
37649         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37650         requiring dependency on useless-if-before-free module.
37651         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37652         Support VPATH builds.
37653
37654 2009-04-24  Jim Meyering  <meyering@redhat.com>
37655
37656         maint.mk: remove coreutils-specific rules and variables
37657         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37658         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37659         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37660
37661         maint.mk: remove obsolete rule
37662         * top/maint.mk (rel-check): Remove rule.
37663         (WGET, WGETFLAGS): Remove now-unused variables.
37664
37665 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37666
37667         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37668         consistency.
37669
37670         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37671         '$(PATH_SEPARATOR)' instead of ':'.
37672
37673 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37674
37675         * lib/getopt1.c (main): Use 'const' for static array.
37676
37677 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37678
37679         * top/maint.mk: Sync with coreutils.
37680         * NEWS: Explain incompatibilities.
37681
37682 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37683             Bruno Haible  <bruno@clisp.org>
37684
37685         Fix cross-compilation results.
37686         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37687         statement, as third argument of AC_TRY_RUN.
37688         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37689         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37690         Likewise.
37691         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37692         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37693         Likewise.
37694         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37696         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37697
37698 2009-04-20  Bruno Haible  <bruno@clisp.org>
37699
37700         Avoid test failure on mingw.
37701         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37702
37703 2009-04-20  Bruno Haible  <bruno@clisp.org>
37704
37705         Avoid compilation error on mingw.
37706         * modules/localename-tests (Depends-on): Add locale.
37707
37708 2009-04-19  Bruno Haible  <bruno@clisp.org>
37709
37710         Support for building a shared library on Windows platforms.
37711         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37712         (main): Test the presence of UNINORM_NFC here.
37713         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37714         (main): Test the presence of UNINORM_NFD here.
37715         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37716         (main): Test the presence of UNINORM_NFKC here.
37717         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37718         (main): Test the presence of UNINORM_NFKD here.
37719
37720 2009-04-19  Bruno Haible  <bruno@clisp.org>
37721
37722         Avoid a compiler warning.
37723         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37724         Change type of variable 'sequence'.
37725
37726 2009-04-19  Bruno Haible  <bruno@clisp.org>
37727
37728         * modules/configmake (Makefile.am): When the contents of configmake.h
37729         does not change, arrange to preserve its modification time.
37730
37731 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37732
37733         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37734         gettext domain.
37735
37736 2009-04-16  Jim Meyering  <meyering@redhat.com>
37737
37738         useless-if-before-free: improve conversion code
37739         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37740         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37741
37742 2009-04-14  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/fcntl (Depends-on): Add extensions.
37745         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37746
37747 2009-04-12  Ben Pfaff  <blp@gnu.org>
37748
37749         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37750         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37751
37752 2009-03-20  Ben Pfaff  <blp@gnu.org>
37753
37754         Make rename replace existing destinations on Windows.
37755         * m4/rename.m4: Add test for Mingw.
37756         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37757         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37758         * doc/posix-functions/rename.texi: Document.
37759
37760 2009-04-10  Bruno Haible  <bruno@clisp.org>
37761
37762         New include file "iconveh.h".
37763         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37764         * lib/striconveh.h: Include it.
37765         (enum iconv_ilseq_handler): Remove definition.
37766         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37767         striconveh.h.
37768         * lib/striconveha.c: Include striconveh.h.
37769         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37770         * modules/striconveh (Files): Add lib/iconveh.h.
37771         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37772         lib/striconveh.h.
37773
37774 2009-04-10  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/uniconv.h: Update comment.
37777
37778 2009-04-10  Bruno Haible  <bruno@clisp.org>
37779
37780         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37781         always.
37782         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37783         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37784         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37785         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37786         "unistring-notinline.h", so that the function gets defined always.
37787         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37788         * lib/unistr/u8-uctomb.c: Likewise.
37789         * lib/unistr/u16-mbtouc.c: Likewise.
37790         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37791         * lib/unistr/u16-uctomb.c: Likewise.
37792         * lib/unistr/u32-mbtouc.c: Likewise.
37793         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37794         * lib/unistr/u32-uctomb.c: Likewise.
37795
37796 2009-04-10  Bruno Haible  <bruno@clisp.org>
37797
37798         Mark 'utime' obsolete.
37799         * modules/utime (Status, Notice): New sections.
37800         Suggested by Jim Meyering.
37801
37802         Fix cross-compile guess for utime test.
37803         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37804         autoconf.
37805         * doc/posix-functions/utime.texi: Give more precisions.
37806         Reported by Jan <ipif@ymail.com>.
37807
37808 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37809
37810         filevercmp: correct today's change
37811         * lib/filevercmp.c: Also handle coreutils' test inputs.
37812         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37813
37814         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37815         for reporting it.
37816         * lib/filevercmp.c: Special handle for "", "." and "..".
37817         * tests/test-filevercmp.c: Enlarge the set suite.
37818
37819 2009-04-07  Jim Meyering  <meyering@redhat.com>
37820
37821         useless-if-before-free: show how to remove braced useless free, too
37822         * build-aux/useless-if-before-free: still only in a comment, though.
37823
37824 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37825
37826         maint.mk: import changes to syntax-check macros from coreutils
37827         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37828         Use them in the relevant macros.
37829
37830 2009-04-06  Bruno Haible  <bruno@clisp.org>
37831
37832         Fix unportable use of bit-fields.
37833         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37834         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37835         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37836
37837 2009-04-06  Bruno Haible  <bruno@clisp.org>
37838
37839         Avoid test failures on AIX and OSF/1.
37840         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37841         that malloc(0) = NULL.
37842         * tests/unicase/test-u8-tolower.c (check): Likewise.
37843         * tests/unicase/test-u8-totitle.c (check): Likewise.
37844         * tests/unicase/test-u8-toupper.c (check): Likewise.
37845         * tests/unicase/test-u16-casefold.c (check): Likewise.
37846         * tests/unicase/test-u16-tolower.c (check): Likewise.
37847         * tests/unicase/test-u16-totitle.c (check): Likewise.
37848         * tests/unicase/test-u16-toupper.c (check): Likewise.
37849         * tests/unicase/test-u32-casefold.c (check): Likewise.
37850         * tests/unicase/test-u32-tolower.c (check): Likewise.
37851         * tests/unicase/test-u32-totitle.c (check): Likewise.
37852         * tests/unicase/test-u32-toupper.c (check): Likewise.
37853         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37854         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37855         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37856         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37857         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37858         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37859         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37860         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37861         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37862         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37863         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37864         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37865
37866 2009-04-05  Bruno Haible  <bruno@clisp.org>
37867
37868         Work around an autoconf limitation.
37869         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37870         comment line if it would be longer than 3 KB.
37871
37872 2009-04-05  Bruno Haible  <bruno@clisp.org>
37873
37874         Avoid test failure with libiconv-1.13.
37875         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37876         of the expected test results.
37877
37878 2009-04-05  Bruno Haible  <bruno@clisp.org>
37879
37880         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37881         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37882         that it should be installed.
37883
37884 2009-04-05  Bruno Haible  <bruno@clisp.org>
37885
37886         * gnulib-tool: New option --copy-file.
37887         (func_usage): Document it.
37888         (func_dest_tmpfilename): Moved out of func_import.
37889         (func_add_file, func_update_file): New functions, extracted from
37890         func_import.
37891         (func_import): Update.
37892
37893 2009-04-05  Karl Berry  <karl@gnu.org>
37894
37895         * README: prominently mention gnulib-tool.
37896         Rearrange sections so getting the code is near the top.
37897
37898 2009-04-05  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/unicase.h: Mention u*_cmp2.
37901         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37902         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37903         * lib/unicase/ulc-casecmp.c: Likewise.
37904         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37905         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37906         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37907         unistr/u8-cmp.
37908         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37909         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37910         unistr/u16-cmp.
37911         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37912         unistr/u32-cmp.
37913
37914         * lib/uninorm.h: Mention u*_cmp2.
37915         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37916         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37917         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37918         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37919         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37920         unistr/u8-cmp.
37921         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37922         unistr/u16-cmp.
37923         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37924         unistr/u32-cmp.
37925
37926         New module 'unistr/u32-cmp2'.
37927         * lib/unistr/u32-cmp2.c: New file.
37928         * modules/unistr/u32-cmp2: New file.
37929
37930         New module 'unistr/u16-cmp2'.
37931         * lib/unistr/u16-cmp2.c: New file.
37932         * modules/unistr/u16-cmp2: New file.
37933
37934         New module 'unistr/u8-cmp2'.
37935         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37936         * lib/unistr/u8-cmp2.c: New file.
37937         * lib/unistr/u-cmp2.h: New file.
37938         * modules/unistr/u8-cmp2: New file.
37939
37940 2009-04-05  Bruno Haible  <bruno@clisp.org>
37941
37942         * lib/unictype.h (uc_property_is_valid): New macro.
37943         * tests/unictype/test-pr_byname.c (main): Use it.
37944
37945         * lib/unistr.h: Doc fixes.
37946         * lib/uniconv.h: Doc fixes.
37947         * lib/unictype.h: Doc fixes.
37948
37949 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37950
37951         Port coreutils 7.2 to Solaris 8.
37952
37953         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37954         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37955         for Solaris 8.  This is a bit of a hack, as it means it's the
37956         caller's responsibility to add -lnsl if needed, but most likely it
37957         won't be needed since only getaddrinfo uses this and getaddrinfo
37958         isn't needed on Solaris 8.
37959
37960         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37961         problem to Solaris 8 encountered with coreutils 7.2, which
37962         resulted in a message "fnmatch.c:292: warning: passing argument 4
37963         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37964         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37965
37966 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37967
37968         * m4/ld-version-script.m4: Add FIXME comment.
37969
37970 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37971
37972         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37973         SOVERSION variable.
37974
37975 2009-04-02  Bruno Haible  <bruno@clisp.org>
37976
37977         * Makefile (info, html, dvi, pdf): Combine the rules.
37978         Suggested by Jim Meyering.
37979
37980 2009-04-01  Bruno Haible  <bruno@clisp.org>
37981
37982         * Makefile (info, html, dvi, pdf): New targets.
37983         Reported by Reuben Thomas <rrt@sc3d.org>.
37984
37985 2009-04-01  Bruno Haible  <bruno@clisp.org>
37986
37987         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37988         can be put into PATH.
37989         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37990
37991 2009-04-01  Bruno Haible  <bruno@clisp.org>
37992
37993         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37994
37995 2009-04-01  Bruno Haible  <bruno@clisp.org>
37996
37997         Rename module 'visibility'.
37998         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37999         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38000         * doc/gnulib.texi: Update.
38001         * MODULES.html.sh (Misc): Update.
38002         * NEWS: Mention the change.
38003
38004 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38005
38006         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38007         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38008         Eric Blake <ebb9@byu.net> for review.
38009         * MODULES.html.sh: Add lib-msvc-compat.
38010         * doc/gnulib.texi: Link to new section.
38011         * m4/ld-output-def.m4: New file.
38012         * doc/ld-output-def.texi: New file.
38013
38014 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38015
38016         Rename ld-version-script to lib-symbol-versions.  Suggested by
38017         Bruno Haible <bruno@clisp.org>.
38018         * modules/ld-version-script: Renamed to lib-symbol-versions.
38019         * doc/ld-version-script.texi: Fix module name.
38020         * MODULES.html.sh: Add lib-symbol-versions.
38021
38022 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38023
38024         * modules/u64-tests: New file.
38025         * tests/test-u64.c: New file.
38026
38027 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38028
38029         * MODULES.html.sh: Mention u64.
38030         * modules/u64: New module.
38031         * modules/crypto/sha512: Depend on u64 module instead of providing
38032         u64.h.
38033
38034 2009-03-27  Eric Blake  <ebb9@byu.net>
38035
38036         test-strerror: make debugging EAI_SYSTEM easier
38037         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38038         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38039         failure was EAI_SYSTEM.
38040
38041 2009-03-25  Bruno Haible  <bruno@clisp.org>
38042
38043         Fix a problem with --enable-relocatable on Solaris 7.
38044         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38045         since 2008-02-24.
38046
38047 2009-03-25  Eric Blake  <ebb9@byu.net>
38048
38049         test-sockets: avoid gcc warning
38050         * tests/test-sockets.c (main): Silence compiler warning.
38051
38052 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38053
38054         New modules nproc, pthread, contributed by Glen Lenker.
38055
38056         * MODULES.html.sh: Add pthread, nproc.
38057         * lib/nproc.c: New file.
38058         * lib/nproc.h: New file.
38059         * lib/pthread.in.h: New file.
38060         * m4/pthread.m4: New file.
38061         * modules/nproc: New file.
38062         * modules/pthread: New file.
38063
38064 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38065
38066         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38067         New variable.
38068
38069 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38070
38071         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38072         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38073         * tests/test-filevercmp.c: Add tests for backup suffixes.
38074
38075 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38076
38077         * modules/stdlib (Depends-on): Add stdint, needed when defining
38078         struct random_data on, for example, HP-UX 10.20.  Reported by
38079         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38080
38081 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38082
38083         * lib/readline.c (readline): Call fflush on stdout after printing
38084         prompt.
38085
38086 2009-03-20  Bruno Haible  <bruno@clisp.org>
38087
38088         Remove dependency from 'close' module to -lws2_32 on native Windows.
38089         * lib/close-hook.h: New file.
38090         * lib/close-hook.c: New file.
38091         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38092         w32sock.h.
38093         (_gl_close_fd_maybe_socket): Remove function.
38094         (rpl_close): Invoke execute_all_close_hooks instead of
38095         _gl_close_fd_maybe_socket.
38096         * lib/sockets.c: Include close-hook.h, w32sock.h.
38097         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38098         (close_sockets_hook): New variable.
38099         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38100         (gl_sockets_cleanup): Unregister it.
38101         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38102         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38103         * modules/close-hook: New file.
38104         * modules/close (Files): Remove lib/w32sock.h.
38105         (Depends-on): Add close-hook.
38106         (Link): Remove section.
38107         * modules/sockets (Files): Add lib/w32sock.h.
38108         (Depends-on): Add close-hook.
38109         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38110         invocation.
38111         * NEWS: Mention that LIB_CLOSE is gone.
38112
38113 2009-03-23  Eric Blake  <ebb9@byu.net>
38114
38115         signal-tests: test previous patch
38116         * tests/test-signal.c: New file.
38117         * modules/signal-tests: Likewise.
38118
38119         signal.h: always support 'volatile sig_atomic_t'
38120         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38121         (gl_SIGNAL_H_DEFAULTS): Add a default.
38122         * modules/signal (Makefile.am): Substitute if needed.
38123         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38124         users can blindly add volatile.
38125         * doc/posix-headers/signal.texi (signal.h): Document it.
38126         Reported by Matthew Woehlke.
38127
38128 2009-03-23  Jim Meyering  <meyering@redhat.com>
38129
38130         pathmax: PATH_MAX: use pathconf only when available
38131         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38132         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38133         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38134         This avoids a link failure in a PSP cross-compilation environment
38135         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38136
38137         * lib/vasnprintf.c (divide): Fix typo in comment.
38138
38139 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38140
38141         * gnulib-tool (func_filter_filelist): Fix comment.
38142
38143 2009-03-20  Bruno Haible  <bruno@clisp.org>
38144
38145         Make sockets.h self-contained.
38146         * lib/sockets.c: Include sockets.h first.
38147         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38148
38149 2009-03-19  Eric Blake  <ebb9@byu.net>
38150
38151         doc: mention more functions added in cygwin 1.7.0
38152         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38153         addition.
38154         * doc/posix-functions/log2f.texi: Likewise.
38155
38156 2009-03-19  Jim Meyering  <meyering@redhat.com>
38157
38158         fsusage: avoid syntax error due to statement-before-declaration
38159         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38160         after all declarations.  Reported by Matthew Woehlke in
38161         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38162
38163 2009-03-18  Eric Blake  <ebb9@byu.net>
38164
38165         build-aux/compile: sync from automake
38166         * build-aux/compile: New file, from automake.
38167         * config/srclist.txt: Mention build-aux/compile.
38168
38169 2009-03-17  Bruno Haible  <bruno@clisp.org>
38170
38171         * lib/git-merge-changelog.c: Fix typo in comment.
38172         Reported by Reuben Thomas <rrt@sc3d.org>.
38173
38174 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38175
38176         * m4/regex.m4: update and improve help for
38177         --without-included-regex.
38178
38179 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38180
38181         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38182         failure on missing include files.
38183
38184 2009-03-17  Eric Blake  <ebb9@byu.net>
38185
38186         doc: mention more functions added in cygwin 1.7.0
38187         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38188         addition.
38189         * doc/posix-functions/fwscanf.texi: Likewise.
38190         * doc/posix-functions/swprintf.texi: Likewise.
38191         * doc/posix-functions/swscanf.texi: Likewise.
38192         * doc/posix-functions/vfwprintf.texi: Likewise.
38193         * doc/posix-functions/vfwscanf.texi: Likewise.
38194         * doc/posix-functions/vswprintf.texi: Likewise.
38195         * doc/posix-functions/vswscanf.texi: Likewise.
38196         * doc/posix-functions/vwprintf.texi: Likewise.
38197         * doc/posix-functions/vwscanf.texi: Likewise.
38198         * doc/posix-functions/wcscasecmp.texi: Likewise.
38199         * doc/posix-functions/wcsdup.texi: Likewise.
38200         * doc/posix-functions/wcsftime.texi: Likewise.
38201         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38202         * doc/posix-functions/wprintf.texi: Likewise.
38203         * doc/posix-functions/wscanf.texi: Likewise.
38204         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38205
38206 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38207
38208         maint.mk: really add $(AM_MAKEFLAGS)
38209         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38210         was inadvertently omitted in the last commit.
38211         Spotted by Bruno Haible.
38212
38213         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38214         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38215         $(AM_MAKEFLAGS)' rather than plain `make'.
38216
38217         gnulib-tool: execute $MAKE not make
38218         * gnulib-tool: Default $MAKE to 'make'.
38219         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38220         than make.  Initialize $MAKE in the do-autobuild script.
38221
38222         gnulib-tool: use $MAKE not make in generated files
38223         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38224         make, in generated files.  Initialize $MAKE in the do-autobuild
38225         script.
38226
38227         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38228
38229         GNUmakefile: disable parallelism only for multiple, recursive targets
38230         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38231         additions in the Makefile.
38232         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38233         by Automake.
38234         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38235         are listed on the command line and at least one of them is
38236         listed in $(ALL_RECURSIVE_TARGETS).
38237
38238 2009-03-14  Bruno Haible  <bruno@clisp.org>
38239
38240         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38241         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38242         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38243         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38244         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38245         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38246         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38247         unistr/u8-uctomb.
38248         * modules/unistr/u8-strchr (Depends-on): Likewise.
38249         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38250         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38251         unistr/u16-uctomb.
38252         * modules/unistr/u16-strchr (Depends-on): Likewise.
38253         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38254
38255 2009-03-12  Bruno Haible  <bruno@clisp.org>
38256
38257         Work around select() bug on Interix 3.5.
38258         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38259         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38260         * m4/select.m4: New file.
38261         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38262         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38263         * modules/select (Files): Add m4/select.m4.
38264         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38265         * modules/nanosleep (Depends-on): Add select.
38266         * modules/poll (Depends-on): Likewise.
38267         * doc/posix-functions/select.texi: Mention the Interix bug.
38268         Reported by Markus Duft <mduft@gentoo.org>.
38269
38270         * lib/select.c: Renamed from lib/winsock-select.c.
38271         * modules/select (Files): Add lib/select.c, remove
38272         lib/winsock-select.c.
38273         (configure.ac): Update.
38274
38275 2009-03-12  Jim Meyering  <meyering@redhat.com>
38276
38277         avoid gcc warnings about unused macro definitions
38278         * lib/readtokens.c (STREQ): Remove unused definition.
38279         * lib/xmalloc.c (SIZE_MAX): Likewise.
38280         * lib/openat-die.c (N_): Likewise.
38281         * lib/mountlist.c (SIZE_MAX): Remove definition.
38282         Instead, include <stdint.h>.
38283         * lib/readutmp.c: Likewise.
38284         * modules/readutmp (Depends-on): Add stdint.
38285         * modules/mountlist (Depends-on): Add stdint.
38286         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38287
38288 2009-03-10  Bruno Haible  <bruno@clisp.org>
38289
38290         Tests for module 'mbmemcasecoll'.
38291         * modules/mbmemcasecoll-tests: New file.
38292         * tests/test-mbmemcasecoll1.sh: New file.
38293         * tests/test-mbmemcasecoll2.sh: New file.
38294         * tests/test-mbmemcasecoll3.sh: New file.
38295         * tests/test-mbmemcasecoll.c: New file.
38296
38297         New module 'mbmemcasecoll'.
38298         * lib/mbmemcasecoll.h: New file.
38299         * lib/mbmemcasecoll.c: New file.
38300         * modules/mbmemcasecoll: New file.
38301
38302         * tests/test-mbmemcasecmp.h: New file, extracted from
38303         tests/test-mbmemcasecmp.c.
38304         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38305         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38306         (main): Update.
38307         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38308
38309 2009-03-09  Bruno Haible  <bruno@clisp.org>
38310
38311         Tests for module 'mbmemcasecmp'.
38312         * modules/mbmemcasecmp-tests: New file.
38313         * tests/test-mbmemcasecmp1.sh: New file.
38314         * tests/test-mbmemcasecmp2.sh: New file.
38315         * tests/test-mbmemcasecmp3.sh: New file.
38316         * tests/test-mbmemcasecmp.c: New file.
38317
38318         New module 'mbmemcasecmp'.
38319         * lib/mbmemcasecmp.h: New file.
38320         * lib/mbmemcasecmp.c: New file.
38321         * modules/mbmemcasecmp: New file.
38322
38323 2009-03-09  Bruno Haible  <bruno@clisp.org>
38324
38325         Tests for module 'unicase/ulc-casecoll'.
38326         * modules/unicase/ulc-casecoll-tests: New file.
38327         * tests/unicase/test-ulc-casecoll1.sh: New file.
38328         * tests/unicase/test-ulc-casecoll2.sh: New file.
38329         * tests/unicase/test-ulc-casecoll.c: New file.
38330
38331         New module 'unicase/ulc-casecoll'.
38332         * lib/unicase.h (ulc_casecoll): New declaration.
38333         * lib/unicase/ulc-casecoll.c: New file.
38334         * modules/unicase/ulc-casecoll: New file.
38335
38336         New module 'unicase/ulc-casexfrm'.
38337         * lib/unicase.h (ulc_casexfrm): New declaration.
38338         * lib/unicase/ulc-casexfrm.c: New file.
38339         * modules/unicase/ulc-casexfrm: New file.
38340
38341 2009-03-09  Bruno Haible  <bruno@clisp.org>
38342
38343         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38344         invocations.
38345
38346         * m4/mbscasecmp.m4: Remove file.
38347         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38348         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38349
38350         * m4/mbscasestr.m4: Remove file.
38351         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38352         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38353
38354         * m4/mbschr.m4: Remove file.
38355         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38356         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38357
38358         * m4/mbscspn.m4: Remove file.
38359         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38360         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38361
38362         * m4/mbslen.m4: Remove file.
38363         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38364         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38365
38366         * m4/mbsncasecmp.m4: Remove file.
38367         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38368         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38369
38370         * m4/mbsnlen.m4: Remove file.
38371         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38372         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38373
38374         * m4/mbspbrk.m4: Remove file.
38375         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38376         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38377
38378         * m4/mbspcasecmp.m4: Remove file.
38379         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38380         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38381
38382         * m4/mbsrchr.m4: Remove file.
38383         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38384         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38385
38386         * m4/mbssep.m4: Remove file.
38387         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38388         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38389
38390         * m4/mbsspn.m4: Remove file.
38391         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38392         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38393
38394         * m4/mbsstr.m4: Remove file.
38395         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38396         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38397
38398         * m4/mbstok_r.m4: Remove file.
38399         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38400         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38401
38402         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38403
38404         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38405         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38406
38407         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38408
38409 2009-03-08  Bruno Haible  <bruno@clisp.org>
38410
38411         Tests for module 'unicase/ulc-casecmp'.
38412         * modules/unicase/ulc-casecmp-tests: New file.
38413         * tests/unicase/test-ulc-casecmp1.sh: New file.
38414         * tests/unicase/test-ulc-casecmp2.sh: New file.
38415         * tests/unicase/test-ulc-casecmp.c: New file.
38416
38417         New module 'unicase/ulc-casecmp'.
38418         * lib/unicase.h (ulc_casecmp): New declaration.
38419         * lib/unicase/ulc-casecmp.c: New file.
38420         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38421         'const SRC_UNIT *'.
38422         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38423         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38424         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38425         * modules/unicase/ulc-casecmp: New file.
38426
38427         Tests for module 'unicase/u32-is-cased'.
38428         * modules/unicase/u32-is-cased-tests: New file.
38429         * tests/unicase/test-u32-is-cased.c: New file.
38430
38431         Tests for module 'unicase/u16-is-cased'.
38432         * modules/unicase/u16-is-cased-tests: New file.
38433         * tests/unicase/test-u16-is-cased.c: New file.
38434
38435         Tests for module 'unicase/u8-is-cased'.
38436         * modules/unicase/u8-is-cased-tests: New file.
38437         * tests/unicase/test-u8-is-cased.c: New file.
38438         * tests/unicase/test-is-cased.h: New file.
38439
38440         New module 'unicase/u32-is-cased'.
38441         * lib/unicase/u32-is-cased.c: New file.
38442         * modules/unicase/u32-is-cased: New file.
38443
38444         New module 'unicase/u16-is-cased'.
38445         * lib/unicase/u16-is-cased.c: New file.
38446         * modules/unicase/u16-is-cased: New file.
38447
38448         New module 'unicase/u8-is-cased'.
38449         * lib/unicase/u8-is-cased.c: New file.
38450         * lib/unicase/u-is-cased.h: New file.
38451         * modules/unicase/u8-is-cased: New file.
38452
38453         Tests for module 'unicase/u32-is-casefolded'.
38454         * modules/unicase/u32-is-casefolded-tests: New file.
38455         * tests/unicase/test-u32-is-casefolded.c: New file.
38456
38457         Tests for module 'unicase/u16-is-casefolded'.
38458         * modules/unicase/u16-is-casefolded-tests: New file.
38459         * tests/unicase/test-u16-is-casefolded.c: New file.
38460
38461         Tests for module 'unicase/u8-is-casefolded'.
38462         * modules/unicase/u8-is-casefolded-tests: New file.
38463         * tests/unicase/test-u8-is-casefolded.c: New file.
38464         * tests/unicase/test-is-casefolded.h: New file.
38465
38466         New module 'unicase/u32-is-casefolded'.
38467         * lib/unicase/u32-is-casefolded.c: New file.
38468         * modules/unicase/u32-is-casefolded: New file.
38469
38470         New module 'unicase/u16-is-casefolded'.
38471         * lib/unicase/u16-is-casefolded.c: New file.
38472         * modules/unicase/u16-is-casefolded: New file.
38473
38474         New module 'unicase/u8-is-casefolded'.
38475         * lib/unicase/u8-is-casefolded.c: New file.
38476         * modules/unicase/u8-is-casefolded: New file.
38477
38478         Tests for module 'unicase/u32-is-titlecase'.
38479         * modules/unicase/u32-is-titlecase-tests: New file.
38480         * tests/unicase/test-u32-is-titlecase.c: New file.
38481
38482         Tests for module 'unicase/u16-is-titlecase'.
38483         * modules/unicase/u16-is-titlecase-tests: New file.
38484         * tests/unicase/test-u16-is-titlecase.c: New file.
38485
38486         Tests for module 'unicase/u8-is-titlecase'.
38487         * modules/unicase/u8-is-titlecase-tests: New file.
38488         * tests/unicase/test-u8-is-titlecase.c: New file.
38489         * tests/unicase/test-is-titlecase.h: New file.
38490
38491         New module 'unicase/u32-is-titlecase'.
38492         * lib/unicase/u32-is-titlecase.c: New file.
38493         * modules/unicase/u32-is-titlecase: New file.
38494
38495         New module 'unicase/u16-is-titlecase'.
38496         * lib/unicase/u16-is-titlecase.c: New file.
38497         * modules/unicase/u16-is-titlecase: New file.
38498
38499         New module 'unicase/u8-is-titlecase'.
38500         * lib/unicase/u8-is-titlecase.c: New file.
38501         * modules/unicase/u8-is-titlecase: New file.
38502
38503         Tests for module 'unicase/u32-is-lowercase'.
38504         * modules/unicase/u32-is-lowercase-tests: New file.
38505         * tests/unicase/test-u32-is-lowercase.c: New file.
38506
38507         Tests for module 'unicase/u16-is-lowercase'.
38508         * modules/unicase/u16-is-lowercase-tests: New file.
38509         * tests/unicase/test-u16-is-lowercase.c: New file.
38510
38511         Tests for module 'unicase/u8-is-lowercase'.
38512         * modules/unicase/u8-is-lowercase-tests: New file.
38513         * tests/unicase/test-u8-is-lowercase.c: New file.
38514         * tests/unicase/test-is-lowercase.h: New file.
38515
38516         New module 'unicase/u32-is-lowercase'.
38517         * lib/unicase/u32-is-lowercase.c: New file.
38518         * modules/unicase/u32-is-lowercase: New file.
38519
38520         New module 'unicase/u16-is-lowercase'.
38521         * lib/unicase/u16-is-lowercase.c: New file.
38522         * modules/unicase/u16-is-lowercase: New file.
38523
38524         New module 'unicase/u8-is-lowercase'.
38525         * lib/unicase/u8-is-lowercase.c: New file.
38526         * modules/unicase/u8-is-lowercase: New file.
38527
38528         Tests for module 'unicase/u32-is-uppercase'.
38529         * modules/unicase/u32-is-uppercase-tests: New file.
38530         * tests/unicase/test-u32-is-uppercase.c: New file.
38531
38532         Tests for module 'unicase/u16-is-uppercase'.
38533         * modules/unicase/u16-is-uppercase-tests: New file.
38534         * tests/unicase/test-u16-is-uppercase.c: New file.
38535
38536         Tests for module 'unicase/u8-is-uppercase'.
38537         * modules/unicase/u8-is-uppercase-tests: New file.
38538         * tests/unicase/test-u8-is-uppercase.c: New file.
38539         * tests/unicase/test-is-uppercase.h: New file.
38540
38541         New module 'unicase/u32-is-uppercase'.
38542         * lib/unicase/u32-is-uppercase.c: New file.
38543         * modules/unicase/u32-is-uppercase: New file.
38544
38545         New module 'unicase/u16-is-uppercase'.
38546         * lib/unicase/u16-is-uppercase.c: New file.
38547         * modules/unicase/u16-is-uppercase: New file.
38548
38549         New module 'unicase/u8-is-uppercase'.
38550         * lib/unicase/u8-is-uppercase.c: New file.
38551         * modules/unicase/u8-is-uppercase: New file.
38552
38553         New module 'unicase/u32-is-invariant'.
38554         * lib/unicase/u32-is-invariant.c: New file.
38555         * modules/unicase/u32-is-invariant: New file.
38556
38557         New module 'unicase/u16-is-invariant'.
38558         * lib/unicase/u16-is-invariant.c: New file.
38559         * modules/unicase/u16-is-invariant: New file.
38560
38561         New module 'unicase/u8-is-invariant'.
38562         * lib/unicase/u8-is-invariant.c: New file.
38563         * lib/unicase/invariant.h: New file.
38564         * lib/unicase/u-is-invariant.h: New file.
38565         * modules/unicase/u8-is-invariant: New file.
38566
38567         Tests for module 'unicase/u32-casecoll'.
38568         * modules/unicase/u32-casecoll-tests: New file.
38569         * tests/unicase/test-u32-casecoll.c: New file.
38570
38571         Tests for module 'unicase/u16-casecoll'.
38572         * modules/unicase/u16-casecoll-tests: New file.
38573         * tests/unicase/test-u16-casecoll.c: New file.
38574
38575         Tests for module 'unicase/u8-casecoll'.
38576         * modules/unicase/u8-casecoll-tests: New file.
38577         * tests/unicase/test-u8-casecoll.c: New file.
38578
38579         New module 'unicase/u32-casecoll'.
38580         * lib/unicase/u32-casecoll.c: New file.
38581         * modules/unicase/u32-casecoll: New file.
38582
38583         New module 'unicase/u16-casecoll'.
38584         * lib/unicase/u16-casecoll.c: New file.
38585         * modules/unicase/u16-casecoll: New file.
38586
38587         New module 'unicase/u8-casecoll'.
38588         * lib/unicase/u8-casecoll.c: New file.
38589         * lib/unicase/u-casecoll.h: New file.
38590         * modules/unicase/u8-casecoll: New file.
38591
38592         New module 'unicase/u32-casexfrm'.
38593         * lib/unicase/u32-casexfrm.c: New file.
38594         * modules/unicase/u32-casexfrm: New file.
38595
38596         New module 'unicase/u16-casexfrm'.
38597         * lib/unicase/u16-casexfrm.c: New file.
38598         * modules/unicase/u16-casexfrm: New file.
38599
38600         New module 'unicase/u8-casexfrm'.
38601         * lib/unicase/u8-casexfrm.c: New file.
38602         * lib/unicase/u-casexfrm.h: New file.
38603         * modules/unicase/u8-casexfrm: New file.
38604
38605         Tests for module 'unicase/u32-casecmp'.
38606         * modules/unicase/u32-casecmp-tests: New file.
38607         * tests/unicase/test-u32-casecmp.c: New file.
38608
38609         Tests for module 'unicase/u16-casecmp'.
38610         * modules/unicase/u16-casecmp-tests: New file.
38611         * tests/unicase/test-u16-casecmp.c: New file.
38612
38613         Tests for module 'unicase/u8-casecmp'.
38614         * modules/unicase/u8-casecmp-tests: New file.
38615         * tests/unicase/test-u8-casecmp.c: New file.
38616         * tests/unicase/test-casecmp.h: New file.
38617
38618         New module 'unicase/u32-casecmp'.
38619         * lib/unicase/u32-casecmp.c: New file.
38620         * modules/unicase/u32-casecmp: New file.
38621
38622         New module 'unicase/u16-casecmp'.
38623         * lib/unicase/u16-casecmp.c: New file.
38624         * modules/unicase/u16-casecmp: New file.
38625
38626         New module 'unicase/u8-casecmp'.
38627         * lib/unicase/u8-casecmp.c: New file.
38628         * lib/unicase/u-casecmp.h: New file.
38629         * modules/unicase/u8-casecmp: New file.
38630
38631         Tests for module 'unicase/u32-casefold'.
38632         * modules/unicase/u32-casefold-tests: New file.
38633         * tests/unicase/test-u32-casefold.c: New file.
38634
38635         Tests for module 'unicase/u16-casefold'.
38636         * modules/unicase/u16-casefold-tests: New file.
38637         * tests/unicase/test-u16-casefold.c: New file.
38638
38639         Tests for module 'unicase/u8-casefold'.
38640         * modules/unicase/u8-casefold-tests: New file.
38641         * tests/unicase/test-u8-casefold.c: New file.
38642
38643         New module 'unicase/u32-casefold'.
38644         * lib/unicase/u32-casefold.c: New file.
38645         * modules/unicase/u32-casefold: New file.
38646
38647         New module 'unicase/u16-casefold'.
38648         * lib/unicase/u16-casefold.c: New file.
38649         * modules/unicase/u16-casefold: New file.
38650
38651         New module 'unicase/u8-casefold'.
38652         * lib/unicase/u8-casefold.c: New file.
38653         * lib/unicase/u-casefold.h: New file.
38654         * modules/unicase/u8-casefold: New file.
38655
38656         New module 'unicase/tocasefold'.
38657         * lib/unicase/casefold.h: New file.
38658         * lib/unicase/tocasefold.c: New file.
38659         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38660         * modules/unicase/tocasefold: New file.
38661
38662         Tests for module 'unicase/u32-totitle'.
38663         * modules/unicase/u32-totitle-tests: New file.
38664         * tests/unicase/test-u32-totitle.c: New file.
38665
38666         Tests for module 'unicase/u16-totitle'.
38667         * modules/unicase/u16-totitle-tests: New file.
38668         * tests/unicase/test-u16-totitle.c: New file.
38669
38670         Tests for module 'unicase/u8-totitle'.
38671         * modules/unicase/u8-totitle-tests: New file.
38672         * tests/unicase/test-u8-totitle.c: New file.
38673
38674         New module 'unicase/u32-totitle'.
38675         * lib/unicase/u32-totitle.c: New file.
38676         * modules/unicase/u32-totitle: New file.
38677
38678         New module 'unicase/u16-totitle'.
38679         * lib/unicase/u16-totitle.c: New file.
38680         * modules/unicase/u16-totitle: New file.
38681
38682         New module 'unicase/u8-totitle'.
38683         * lib/unicase/u8-totitle.c: New file.
38684         * lib/unicase/u-totitle.h: New file.
38685         * modules/unicase/u8-totitle: New file.
38686
38687         Tests for module 'unicase/u32-tolower'.
38688         * modules/unicase/u32-tolower-tests: New file.
38689         * tests/unicase/test-u32-tolower.c: New file.
38690
38691         Tests for module 'unicase/u16-tolower'.
38692         * modules/unicase/u16-tolower-tests: New file.
38693         * tests/unicase/test-u16-tolower.c: New file.
38694
38695         Tests for module 'unicase/u8-tolower'.
38696         * modules/unicase/u8-tolower-tests: New file.
38697         * tests/unicase/test-u8-tolower.c: New file.
38698
38699         New module 'unicase/u32-tolower'.
38700         * lib/unicase/u32-tolower.c: New file.
38701         * modules/unicase/u32-tolower: New file.
38702
38703         New module 'unicase/u16-tolower'.
38704         * lib/unicase/u16-tolower.c: New file.
38705         * modules/unicase/u16-tolower: New file.
38706
38707         New module 'unicase/u8-tolower'.
38708         * lib/unicase/u8-tolower.c: New file.
38709         * modules/unicase/u8-tolower: New file.
38710
38711         Tests for module 'unicase/u32-toupper'.
38712         * modules/unicase/u32-toupper-tests: New file.
38713         * tests/unicase/test-u32-toupper.c: New file.
38714
38715         Tests for module 'unicase/u16-toupper'.
38716         * modules/unicase/u16-toupper-tests: New file.
38717         * tests/unicase/test-u16-toupper.c: New file.
38718
38719         Tests for module 'unicase/u8-toupper'.
38720         * modules/unicase/u8-toupper-tests: New file.
38721         * tests/unicase/test-u8-toupper.c: New file.
38722
38723         New module 'unicase/u32-toupper'.
38724         * lib/unicase/u32-toupper.c: New file.
38725         * modules/unicase/u32-toupper: New file.
38726
38727         New module 'unicase/u16-toupper'.
38728         * lib/unicase/u16-toupper.c: New file.
38729         * modules/unicase/u16-toupper: New file.
38730
38731         New module 'unicase/u8-toupper'.
38732         * lib/unicase/u8-toupper.c: New file.
38733         * modules/unicase/u8-toupper: New file.
38734
38735         New module 'unicase/u32-casemap'.
38736         * lib/unicase/u32-casemap.c: New file.
38737         * modules/unicase/u32-casemap: New file.
38738
38739         New module 'unicase/u16-casemap'.
38740         * lib/unicase/u16-casemap.c: New file.
38741         * modules/unicase/u16-casemap: New file.
38742
38743         New module 'unicase/u8-casemap'.
38744         * lib/unicase/unicasemap.h: New file.
38745         * lib/unicase/u8-casemap.c: New file.
38746         * lib/unicase/u-casemap.h: New file.
38747         * modules/unicase/u8-casemap: New file.
38748
38749         New module 'unicase/special-casing'.
38750         * lib/unicase/special-casing.h: New file.
38751         * lib/unicase/special-casing.c: New file.
38752         * lib/unicase/special-casing-table.gperf: New file, generated by
38753         gen-uni-tables.c.
38754         * modules/unicase/special-casing: New file.
38755
38756         Tests for module 'unicase/locale-language'.
38757         * modules/unicase/locale-language-tests: New file.
38758         * tests/unicase/test-locale-language.sh: New file.
38759         * tests/unicase/test-locale-language.c: New file.
38760
38761         New module 'unicase/locale-language'.
38762         * lib/unicase/locale-language.c: New file.
38763         * lib/unicase/locale-languages.gperf: New file.
38764         * modules/unicase/locale-language: New file.
38765
38766         Generate more tables for case conversion and case folding.
38767         * lib/gen-uni-tables.c (SCC_*): New enum items.
38768         (struct special_casing_rule): New type.
38769         (casing_rules, num_casing_rules, allocated_casing_rules): New
38770         variables.
38771         (add_casing_rule, fill_casing_rules): New functions.
38772         (struct casefold_rule): New type.
38773         (casefolding_rules, num_casefolding_rules,
38774         allocated_casefolding_rules): New variables.
38775         (fill_casefolding_rules): New function.
38776         (unicode_casefold): New variable.
38777         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38778         sort_casing_rules, output_casing_rules): New functions.
38779         (main): Accept to more arguments: SpecialCasing.txt and
38780         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38781         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38782         Output mapping for casefolding.
38783
38784         * lib/unicase.h: Include stdbool.h, uninorm.h.
38785         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38786         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38787         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38788         arguments.
38789         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38790         resultp arguments.
38791         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38792         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38793         resultp arguments.
38794         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38795         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38796         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38797         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38798         declarations.
38799         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38800
38801 2009-03-08  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38804         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38805         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38806         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38807
38808 2009-03-07  Bruno Haible  <bruno@clisp.org>
38809
38810         Adjust u*_normcmp, u*_normcoll API.
38811         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38812         u16_normcoll, u32_normcoll): Change failure conventions.
38813         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38814         errno and return -1.
38815         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38816
38817 2009-03-07  Bruno Haible  <bruno@clisp.org>
38818
38819         Tests for module 'uninorm/u32-normcoll'.
38820         * modules/uninorm/u32-normcoll-tests: New file.
38821         * tests/uninorm/test-u32-normcoll.c: New file.
38822
38823         Tests for module 'uninorm/u16-normcoll'.
38824         * modules/uninorm/u16-normcoll-tests: New file.
38825         * tests/uninorm/test-u16-normcoll.c: New file.
38826
38827         Tests for module 'uninorm/u8-normcoll'.
38828         * modules/uninorm/u8-normcoll-tests: New file.
38829         * tests/uninorm/test-u8-normcoll.c: New file.
38830
38831 2009-03-07  Bruno Haible  <bruno@clisp.org>
38832
38833         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38834         tests/uninorm/test-u32-normcmp.c.
38835         * tests/uninorm/test-u32-normcmp.c: Include it.
38836         (test_nonascii): New function, extracted from main. Add some more
38837         tests.
38838         (main): Invoke test_ascii and test_nonascii.
38839         * modules/uninorm/u32-normcmp-tests (Files): Add
38840         tests/uninorm/test-u32-normcmp.h.
38841         (Depends-on): Remove uninorm/u32-normcmp.
38842
38843         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38844         tests/uninorm/test-u16-normcmp.c.
38845         * tests/uninorm/test-u16-normcmp.c: Include it.
38846         (test_nonascii): New function, extracted from main. Add some more
38847         tests.
38848         (main): Invoke test_ascii and test_nonascii.
38849         * modules/uninorm/u16-normcmp-tests (Files): Add
38850         tests/uninorm/test-u16-normcmp.h.
38851         (Depends-on): Remove uninorm/u16-normcmp.
38852
38853         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38854         tests/uninorm/test-u8-normcmp.c.
38855         * tests/uninorm/test-u8-normcmp.c: Include it.
38856         (test_nonascii): New function, extracted from main. Add some more
38857         tests.
38858         (main): Invoke test_ascii and test_nonascii.
38859         * modules/uninorm/u8-normcmp-tests (Files): Add
38860         tests/uninorm/test-u8-normcmp.h.
38861         (Depends-on): Remove uninorm/u8-normcmp.
38862
38863 2009-03-07  Bruno Haible  <bruno@clisp.org>
38864
38865         New module 'uninorm/u32-normcoll'.
38866         * lib/uninorm/u32-normcoll.c: New file.
38867         * modules/uninorm/u32-normcoll: New file.
38868
38869         New module 'uninorm/u16-normcoll'.
38870         * lib/uninorm/u16-normcoll.c: New file.
38871         * modules/uninorm/u16-normcoll: New file.
38872
38873         New module 'uninorm/u8-normcoll'.
38874         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38875         declarations.
38876         * lib/uninorm/u8-normcoll.c: New file.
38877         * lib/uninorm/u-normcoll.h: New file.
38878         * modules/uninorm/u8-normcoll: New file.
38879
38880         New module 'uninorm/u32-normxfrm'.
38881         * lib/uninorm/u32-normxfrm.c: New file.
38882         * modules/uninorm/u32-normxfrm: New file.
38883
38884         New module 'uninorm/u16-normxfrm'.
38885         * lib/uninorm/u16-normxfrm.c: New file.
38886         * modules/uninorm/u16-normxfrm: New file.
38887
38888         New module 'uninorm/u8-normxfrm'.
38889         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38890         declarations.
38891         * lib/uninorm/u8-normxfrm.c: New file.
38892         * lib/uninorm/u-normxfrm.h: New file.
38893         * modules/uninorm/u8-normxfrm: New file.
38894
38895 2009-03-07  Bruno Haible  <bruno@clisp.org>
38896
38897         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38898         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38899         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38900
38901 2009-03-07  Bruno Haible  <bruno@clisp.org>
38902
38903         New module 'memxfrm'.
38904         * lib/memxfrm.h: New file.
38905         * lib/memxfrm.c: New file.
38906         * modules/memxfrm: New file.
38907
38908 2009-03-07  Bruno Haible  <bruno@clisp.org>
38909
38910         New module 'memcmp2'.
38911         * lib/memcmp2.h: New file.
38912         * lib/memcmp2.c: New file.
38913         * modules/memcmp2: New file.
38914
38915 2009-03-07  Bruno Haible  <bruno@clisp.org>
38916
38917         Tests for module 'uninorm/decomposing-form'.
38918         * modules/uninorm/decomposing-form-tests: New file.
38919         * tests/uninorm/test-decomposing-form.c: New file.
38920
38921         New module 'uninorm/decomposing-form'.
38922         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38923         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38924         Add 'decomposing_variant' field.
38925         * lib/uninorm/decomposing-form.c: New file.
38926         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38927         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38928         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38929         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38930         * modules/uninorm/decomposing-form: New file.
38931         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38932         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38933
38934 2009-03-07  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38937         strings.
38938
38939 2009-03-06  Bruno Haible  <bruno@clisp.org>
38940
38941         Tests for module 'uninorm/u32-normcmp'.
38942         * tests/uninorm/test-u32-normcmp.c: New file.
38943         * modules/uninorm/u32-normcmp-tests: New file.
38944
38945         Tests for module 'uninorm/u16-normcmp'.
38946         * tests/uninorm/test-u16-normcmp.c: New file.
38947         * modules/uninorm/u16-normcmp-tests: New file.
38948
38949         Tests for module 'uninorm/u8-normcmp'.
38950         * tests/uninorm/test-u8-normcmp.c: New file.
38951         * modules/uninorm/u8-normcmp-tests: New file.
38952
38953         New module 'uninorm/u32-normcmp'.
38954         * lib/uninorm/u32-normcmp.c: New file.
38955         * modules/uninorm/u32-normcmp: New file.
38956
38957         New module 'uninorm/u16-normcmp'.
38958         * lib/uninorm/u16-normcmp.c: New file.
38959         * modules/uninorm/u16-normcmp: New file.
38960
38961         New module 'uninorm/u8-normcmp'.
38962         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38963         declarations.
38964         * lib/uninorm/u8-normcmp.c: New file.
38965         * lib/uninorm/u-normcmp.h: New file.
38966         * modules/uninorm/u8-normcmp: New file.
38967
38968 2009-03-06  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38971         Reported by Eric Blake.
38972
38973 2009-03-06  Eric Blake  <ebb9@byu.net>
38974             Bruno Haible  <bruno@clisp.org>
38975
38976         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38977         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38978         condition.
38979         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38980         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38981         condition.
38982         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38983
38984 2009-03-06  Eric Blake  <ebb9@byu.net>
38985
38986         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38987         to avoid compiler warnings.
38988         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38989
38990 2009-03-05  Bruno Haible  <bruno@clisp.org>
38991
38992         * tests/test-ftell.c (main): Disable test beyond end of file on
38993         FreeMiNT.
38994         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38995
38996 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38997
38998         * lib/filevercmp.c: Move hidden files up in ordering.
38999         * tests/test-filevercmp.c: Add tests for hidden files.
39000
39001 2009-03-04  Bruno Haible  <bruno@clisp.org>
39002
39003         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39004         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39005         AM_CFLAGS.
39006         Reported by Simon Josefsson.
39007
39008 2009-03-03  Bruno Haible  <bruno@clisp.org>
39009
39010         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39011         Reported by Simon Josefsson.
39012
39013         * doc/ld-version-script.texi: Update node reference.
39014
39015 2009-03-03  Bruno Haible  <bruno@clisp.org>
39016
39017         * modules/visibility (License): Change to 'unlimited'.
39018         Suggested by Simon Josefsson.
39019
39020 2009-03-03  Jim Meyering  <meyering@redhat.com>
39021
39022         unlinkdir: cannot_unlink_dir may modify process state
39023         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39024         it's neither thread-safe nor appropriate for use in a library.
39025
39026 2009-03-03  Eric Blake  <ebb9@byu.net>
39027
39028         test-closein: silence test under Darwin
39029         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39030         care if it dies from EPIPE or EBADF.
39031
39032 2009-03-03  Bruno Haible  <bruno@clisp.org>
39033
39034         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39035         earlier.
39036         * doc/visibility.texi: Fix @node and @section.
39037
39038 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39039
39040         * doc/gnulib.texi: Link to sections for ld version script and
39041         visibility.
39042         * doc/visibility.texi: Add @node and @section.
39043         * modules/ld-version-script: New module.
39044         * m4/ld-version-script.m4: New file.
39045         * doc/ld-version-script.texi: New file.
39046
39047 2009-03-02  David Lutterkort  <lutter@redhat.com>
39048
39049         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39051
39052 2009-03-02  Bruno Haible  <bruno@clisp.org>
39053
39054         * doc/visibility.texi: Mention libtool's -export-symbols option.
39055
39056 2009-03-02  Jim Meyering  <meyering@redhat.com>
39057
39058         announce-gen: new option: --no-print-checksums
39059         * build-aux/announce-gen (usage): Describe it.
39060         (print_checksums): Print a newline here, not in the [*] footnote.
39061         (main): Honor it.
39062
39063 2009-03-01  Bruno Haible  <bruno@clisp.org>
39064
39065         Use socklen_t in the native Windows replacements prototypes.
39066         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39067         instead of 'int'.
39068         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39069         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39070         * modules/getsockopt (Depends-on): Add socklen.
39071         * modules/setsockopt (Depends-on): Add socklen.
39072
39073 2009-03-01  Bruno Haible  <bruno@clisp.org>
39074
39075         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39076         least 4.2.
39077
39078 2009-03-01  Eric Blake  <ebb9@byu.net>
39079             Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39082         error messages.
39083         * lib/wait-process.c (wait_subprocess): Omit error message about
39084         deadly signal sent to the child of termsigp != NULL.
39085
39086 2009-03-01  Eric Blake  <ebb9@byu.net>
39087
39088         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39089
39090 2009-03-01  Bruno Haible  <bruno@clisp.org>
39091
39092         Avoid a gcc warning.
39093         * tests/test-sched.c (b): Make global.
39094         Reported by Eric Blake.
39095
39096 2009-01-19  Martin Lambers  <marlam@marlam.de>
39097
39098         Provide POSIX semantics for socket timeout options on W32.
39099         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39100         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39101         * modules/setsockopt: Depend on sys_time module for struct timeval.
39102         * modules/getsockopt: Depend on sys_time module for struct timeval.
39103
39104 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39105
39106         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39107         __USE_GNU, for consistency with netdb.in.h.
39108         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39109
39110 2009-03-01  Bruno Haible  <bruno@clisp.org>
39111
39112         More support for FreeMiNT.
39113         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39114         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39115
39116 2009-03-01  Bruno Haible  <bruno@clisp.org>
39117
39118         More support for FreeMiNT.
39119         * lib/fpurge.c (fpurge): Correct last commit.
39120         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39121
39122 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39123
39124         Fix unportable awk script in vc-list-files.
39125         * build-aux/vc-list-files: In the replacement awk script, use
39126         substr with a second argument of 1, not zero.
39127         Report by Simon Josefsson.
39128
39129 2009-02-28  Bruno Haible  <bruno@clisp.org>
39130
39131         More support for FreeMiNT.
39132         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39133         to FreeMiNT today.
39134         * lib/fwriting.c (fwriting): Likewise.
39135         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39136
39137 2009-02-28  Bruno Haible  <bruno@clisp.org>
39138
39139         * tests/test-freadseek.c (main): Disable test beyond end of file on
39140         FreeMiNT.
39141         * tests/test-ftello.c (main): Likewise.
39142         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39143
39144 2009-02-28  Bruno Haible  <bruno@clisp.org>
39145
39146         Add tentative support for FreeMiNT.
39147         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39148         * lib/fpurge.c (fpurge): Likewise.
39149         * lib/freadable.c (freadable): Likewise.
39150         * lib/freading.c (freading): Likewise.
39151         * lib/freadptr.c (freadptr): Likewise.
39152         * lib/freadseek.c (freadptrinc): Likewise.
39153         * lib/fseeko.c (rpl_fseeko): Likewise.
39154         * lib/fseterr.c (fseterr): Likewise.
39155         * lib/fwritable.c (fwritable): Likewise.
39156         * lib/fwriting.c (fwriting): Likewise.
39157         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39158         Hourihane.
39159         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39160
39161 2009-02-28  Bruno Haible  <bruno@clisp.org>
39162
39163         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39164         SIGCHLD.
39165         Reported by Jim Meyering.
39166
39167 2009-02-28  Bruno Haible  <bruno@clisp.org>
39168
39169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39170         Mention the results of these tests on various platforms.
39171         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39172         order.
39173         * doc/posix-functions/printf.texi: Likewise.
39174         * doc/posix-functions/snprintf.texi: Likewise.
39175         * doc/posix-functions/sprintf.texi: Likewise.
39176         * doc/posix-functions/vfprintf.texi: Likewise.
39177         * doc/posix-functions/vprintf.texi: Likewise.
39178         * doc/posix-functions/vsnprintf.texi: Likewise.
39179         * doc/posix-functions/vsprintf.texi: Likewise.
39180         * doc/glibc-functions/obstack_printf.texi: Likewise.
39181         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39182
39183 2009-02-28  Bruno Haible  <bruno@clisp.org>
39184
39185         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39186         Reported by Loïc Minier <lool@dooz.org>.
39187
39188 2009-02-27  Bruno Haible  <bruno@clisp.org>
39189
39190         * gnulib-tool (func_import): Make the sed expression used to create the
39191         sed script for updating the .gitignore file POSIX compliant.
39192         Reported by Eric Blake.
39193
39194 2009-02-27  Bruno Haible  <bruno@clisp.org>
39195
39196         * gnulib-tool (sed): Don't alias as "sed --posix".
39197         Reported by Eric Blake.
39198
39199 2009-02-27  Bruno Haible  <bruno@clisp.org>
39200
39201         Avoid test link errors.
39202         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39203         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39204         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39205         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39207
39208 2009-02-27  Bruno Haible  <bruno@clisp.org>
39209
39210         Avoid spurious "(cached)" in configure output.
39211         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39212         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39213         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39214         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39216         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39217         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39218         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39219         Reported by Eric Blake.
39220
39221 2009-02-27  Eric Blake  <ebb9@byu.net>
39222
39223         printf: fix regression in previous patch
39224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39225
39226 2009-02-27  Bruno Haible  <bruno@clisp.org>
39227
39228         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39229         value.
39230         * lib/stdint.in.h: Likewise.
39231         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39232
39233 2009-02-27  Eric Blake  <ebb9@byu.net>
39234
39235         doc: mention more functions added in cygwin 1.7.0
39236         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39237         addition.
39238         * doc/posix-functions/open_wmemstream.texi: Likewise.
39239         * doc/posix-functions/wcsnlen.texi: Likewise.
39240         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39241         * doc/posix-functions/wcstod.texi: Likewise.
39242         * doc/posix-functions/wcstof.texi: Likewise.
39243         * doc/posix-functions/wcstoimax.texi: Likewise.
39244         * doc/posix-functions/wcstok.texi: Likewise.
39245         * doc/posix-functions/wcstoumax.texi: Likewise.
39246
39247         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39248         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39249         * doc/posix-functions/fprintf.texi: Update.
39250         * doc/posix-functions/printf.texi: Update.
39251         * doc/posix-functions/snprintf.texi: Update.
39252         * doc/posix-functions/sprintf.texi: Update.
39253         * doc/posix-functions/vfprintf.texi: Update.
39254         * doc/posix-functions/vprintf.texi: Update.
39255         * doc/posix-functions/vsnprintf.texi: Update.
39256         * doc/posix-functions/vsprintf.texi: Update.
39257         * doc/glibc-functions/obstack_printf.texi: Update.
39258         * doc/glibc-functions/obstack_vprintf.texi: Update.
39259
39260 2009-02-26  Eric Blake  <ebb9@byu.net>
39261
39262         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39263         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39264         compilation bug by using runtime conversion.
39265         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39266         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39267         * modules/ceill-tests (Files): Use nan.h.
39268         * modules/floorl-tests (Files): Likewise.
39269         * modules/frexpl-tests (Files): Likewise.
39270         * modules/isnanl-tests (Files): Likewise.
39271         * modules/ldexpl-tests (Files): Likewise.
39272         * modules/roundl-tests (Files): Likewise.
39273         * modules/truncl-tests (Files): Likewise.
39274         * tests/test-ceill.c (main): Use a working NaN.
39275         * tests/test-floorl.c (main): Likewise.
39276         * tests/test-frexpl.c (main): Likewise.
39277         * tests/test-isnan.c (test_long_double): Likewise.
39278         * tests/test-isnanl.h (main): Likewise.
39279         * tests/test-ldexpl.h (main): Likewise.
39280         * tests/test-roundl.h (main): Likewise.
39281         * tests/test-truncl.h (main): Likewise.
39282         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39283
39284 2009-02-26  Eric Blake  <ebb9@byu.net>
39285             Bruno Haible  <bruno@clisp.org>
39286
39287         Work around a *printf bug with %ls on Solaris.
39288         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39289         precision is specified, sprintf stops converting the wide string
39290         argument when the number of bytes that have been produced by this
39291         conversion equals or exceeds the precision.
39292         * doc/posix-functions/fprintf.texi: Update.
39293         * doc/posix-functions/printf.texi: Update.
39294         * doc/posix-functions/snprintf.texi: Update.
39295         * doc/posix-functions/sprintf.texi: Update.
39296         * doc/posix-functions/vfprintf.texi: Update.
39297         * doc/posix-functions/vprintf.texi: Update.
39298         * doc/posix-functions/vsnprintf.texi: Update.
39299         * doc/posix-functions/vsprintf.texi: Update.
39300         * doc/glibc-functions/obstack_printf.texi: Update.
39301         * doc/glibc-functions/obstack_vprintf.texi: Update.
39302
39303 2009-02-26  Eric Blake  <ebb9@byu.net>
39304
39305         stdlib: favor compiler check of random.h
39306         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39307         to avoid an ObjC random.h installed by Swarm.
39308
39309 2009-02-26  Bruno Haible  <bruno@clisp.org>
39310
39311         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39312         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39313         Reported by Gary V. Vaughan <gary@gnu.org>.
39314
39315 2009-02-26  Bruno Haible  <bruno@clisp.org>
39316
39317         Fix *printf behaviour regarding the %ls directive.
39318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39319         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39320         NEED_PRINTF_DIRECTIVE_LS.
39321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39322         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39324         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39325         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39326         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39327         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39332         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39336         * doc/posix-functions/fprintf.texi: Update.
39337         * doc/posix-functions/printf.texi: Update.
39338         * doc/posix-functions/snprintf.texi: Update.
39339         * doc/posix-functions/sprintf.texi: Update.
39340         * doc/posix-functions/vfprintf.texi: Update.
39341         * doc/posix-functions/vprintf.texi: Update.
39342         * doc/posix-functions/vsnprintf.texi: Update.
39343         * doc/posix-functions/vsprintf.texi: Update.
39344         * doc/glibc-functions/obstack_printf.texi: Update.
39345         * doc/glibc-functions/obstack_vprintf.texi: Update.
39346         Reported by Eric Blake.
39347
39348 2009-02-25  Bruno Haible  <bruno@clisp.org>
39349
39350         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39351         with known value.
39352         Reported by Gary V. Vaughan <gary@gnu.org>.
39353
39354 2009-02-25  Bruno Haible  <bruno@clisp.org>
39355
39356         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39357         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39358         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39359         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39360         Reported by Gary V. Vaughan <gary@gnu.org>.
39361
39362 2009-02-25  Bruno Haible  <bruno@clisp.org>
39363
39364         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39365         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39366         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39367         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39368         Reported by Gary V. Vaughan <gary@gnu.org>.
39369
39370 2009-02-25  Eric Blake  <ebb9@byu.net>
39371
39372         tests: skip fseek/ftell tests if ungetc is broken
39373         * m4/ungetc.m4: New file.
39374         * modules/fseek-tests: Split test, so ungetc dependency is
39375         separate from rest of test.
39376         * modules/fseeko-tests: Likewise.
39377         * modules/ftell-tests: Likewise.
39378         * modules/ftello-tests: Likewise.
39379         * tests/test-fseek.c (main): Isolate ungetc dependency.
39380         * tests/test-fseeko.c (main): Likewise.
39381         * tests/test-ftell.c (main): Likewise.
39382         * tests/test-ftello.c (main): Likewise.
39383         * tests/test-fseek2.sh: New file.
39384         * tests/test-fseeko2.sh: Likewise.
39385         * tests/test-ftell2.sh: Likewise.
39386         * tests/test-ftello2.sh: Likewise.
39387
39388 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39389
39390         test-getaddrinfo: fix usage of skip return code 77
39391         * tests/test-gettaddrinfo.c: Return skip code 77 only
39392         for first occurance of skip (4x77 is not 77)
39393
39394 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39395
39396         strtod: avoid C99 decl-after-statement
39397         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39398
39399 2009-02-24  Eric Blake  <ebb9@byu.net>
39400
39401         strtod: detect HP-UX 11.31 bug
39402         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39403         Reported by Gary V. Vaughan.
39404
39405 2009-02-23  Bruno Haible  <bruno@clisp.org>
39406
39407         Fix invalid read past end of memory block.
39408         * lib/vasnprintf.c (DCHAR_SET): Define.
39409         (local_wcslen): Define only when needed.
39410         (local_strnlen, local_wcsnlen): New functions.
39411         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39412         directives that involve a conversion ourselves.
39413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39414         wcsnlen, mbrtowc, wcrtomb.
39415         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39416         * tests/test-vasprintf-posix.c (test_function): Likewise.
39417         * tests/test-snprintf-posix.h (test_function): Likewise.
39418         * tests/test-sprintf-posix.h (test_function): Likewise.
39419         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39420
39421 2009-02-22  Bruno Haible  <bruno@clisp.org>
39422
39423         Implement new clarified decomposition of Hangul syllables.
39424         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39425         of type LTV, return only a pairwise decomposition.
39426         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39427         Likewise.
39428         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39429         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39430         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39431
39432 2009-02-22  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39435         zero-length results and shrink excess allocated memory.
39436         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39437         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39438         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39439         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39440         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39441         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39442         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39443         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39444         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39445         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39446         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39447         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39448
39449 2009-02-21  Bruno Haible  <bruno@clisp.org>
39450
39451         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39452         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39453         spaces after a period. Put a space between a macro name and its
39454         argument list. Trivial rewordings.
39455         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39456         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39457         (main): Return 0 explicitly.
39458
39459 2009-02-21  Bruno Haible  <bruno@clisp.org>
39460
39461         Tests for module 'uninorm/filter'.
39462         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39463         * modules/uninorm/filter-tests: New file.
39464
39465         New module 'uninorm/filter'.
39466         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39467         uninorm_filter_flush, uninorm_filter_free): New declarations.
39468         * lib/uninorm/uninorm-filter.c: New file.
39469         * modules/uninorm/filter: New file.
39470
39471 2009-02-21  Bruno Haible  <bruno@clisp.org>
39472
39473         Tests for module 'uninorm/nfkc'.
39474         * tests/uninorm/test-nfkc.c: New file.
39475         * tests/uninorm/test-u8-nfkc.c: New file.
39476         * tests/uninorm/test-u16-nfkc.c: New file.
39477         * tests/uninorm/test-u32-nfkc.c: New file.
39478         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39479         * tests/uninorm/test-u32-nfkc-big.c: New file.
39480         * modules/uninorm/nfkc-tests: New file.
39481
39482         New module 'uninorm/nfkc'.
39483         * lib/uninorm/nfkc.c: New file.
39484         * modules/uninorm/nfkc: New file.
39485
39486         Tests for module 'uninorm/nfkd'.
39487         * tests/uninorm/test-nfkd.c: New file.
39488         * tests/uninorm/test-u8-nfkd.c: New file.
39489         * tests/uninorm/test-u16-nfkd.c: New file.
39490         * tests/uninorm/test-u32-nfkd.c: New file.
39491         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39492         * tests/uninorm/test-u32-nfkd-big.c: New file.
39493         * modules/uninorm/nfkd-tests: New file.
39494
39495         New module 'uninorm/nfkd'.
39496         * lib/uninorm/nfkd.c: New file.
39497         * modules/uninorm/nfkd: New file.
39498
39499         Tests for module 'uninorm/nfc'.
39500         * tests/uninorm/test-nfc.c: New file.
39501         * tests/uninorm/test-u8-nfc.c: New file.
39502         * tests/uninorm/test-u16-nfc.c: New file.
39503         * tests/uninorm/test-u32-nfc.c: New file.
39504         * tests/uninorm/test-u32-nfc-big.sh: New file.
39505         * tests/uninorm/test-u32-nfc-big.c: New file.
39506         * modules/uninorm/nfc-tests: New file.
39507
39508         New module 'uninorm/nfc'.
39509         * lib/uninorm/nfc.c: New file.
39510         * modules/uninorm/nfc: New file.
39511
39512         Tests for module 'uninorm/nfd'.
39513         * tests/uninorm/test-nfd.c: New file.
39514         * tests/uninorm/test-u8-nfd.c: New file.
39515         * tests/uninorm/test-u16-nfd.c: New file.
39516         * tests/uninorm/test-u32-nfd.c: New file.
39517         * tests/uninorm/test-u32-nfd-big.sh: New file.
39518         * tests/uninorm/test-u32-nfd-big.c: New file.
39519         * tests/uninorm/test-u32-normalize-big.h: New file.
39520         * tests/uninorm/test-u32-normalize-big.c: New file.
39521         * tests/uninorm/NormalizationTest.txt: New file, created from
39522         Unicode 5.1.0 NormalizationTest.txt.
39523         * modules/uninorm/nfd-tests: New file.
39524
39525         New module 'uninorm/nfd'.
39526         * lib/uninorm/nfd.c: New file.
39527         * modules/uninorm/nfd: New file.
39528
39529         New module 'uninorm/u32-normalize'.
39530         * lib/uninorm/u32-normalize.c: New file.
39531         * modules/uninorm/u32-normalize: New file.
39532
39533         New module 'uninorm/u16-normalize'.
39534         * lib/uninorm/u16-normalize.c: New file.
39535         * modules/uninorm/u16-normalize: New file.
39536
39537         New module 'uninorm/u8-normalize'.
39538         * lib/uninorm/u8-normalize.c: New file.
39539         * lib/uninorm/normalize-internal.h: New file.
39540         * lib/uninorm/u-normalize-internal.h: New file.
39541         * modules/uninorm/u8-normalize: New file.
39542
39543         New module 'uninorm/decompose-internal'.
39544         * lib/uninorm/decompose-internal.c: New file.
39545         * modules/uninorm/decompose-internal: New file.
39546
39547         Tests for module 'uninorm/composition'.
39548         * tests/uninorm/test-composition.c: New file.
39549         * modules/uninorm/composition-tests: New file.
39550
39551         New module 'uninorm/composition'.
39552         * lib/uninorm/composition.c: New file.
39553         * lib/uninorm/composition-table.gperf: New file, generated by
39554         gen-uni-tables.
39555         * modules/uninorm/composition: New file.
39556
39557         Tests for module 'uninorm/compat-decomposition'.
39558         * tests/uninorm/test-compat-decomposition.c: New file.
39559         * modules/uninorm/compat-decomposition-tests: New file.
39560
39561         New module 'uninorm/compat-decomposition'.
39562         * lib/uninorm/decompose-internal.h: New file.
39563         * lib/uninorm/compat-decomposition.c: New file.
39564         * modules/uninorm/compat-decomposition: New file.
39565
39566         Tests for module 'uninorm/canonical-decomposition'.
39567         * tests/uninorm/test-canonical-decomposition.c: New file.
39568         * modules/uninorm/canonical-decomposition-tests: New file.
39569
39570         New module 'uninorm/canonical-decomposition'.
39571         * lib/uninorm/canonical-decomposition.c: New file.
39572         * modules/uninorm/canonical-decomposition: New file.
39573
39574         Tests for module 'uninorm/decomposition'.
39575         * tests/uninorm/test-decomposition.c: New file.
39576         * modules/uninorm/decomposition-tests: New file.
39577
39578         New module 'uninorm/decomposition'.
39579         * lib/uninorm/decomposition.c: New file.
39580         * modules/uninorm/decomposition: New file.
39581
39582         New module 'uninorm/decomposition-table'.
39583         * lib/uninorm/decomposition-table.h: New file.
39584         * lib/uninorm/decomposition-table.c: New file.
39585         * lib/uninorm/decomposition-table1.h: New file, generated by
39586         gen-uni-tables.
39587         * lib/uninorm/decomposition-table2.h: New file, generated by
39588         gen-uni-tables.
39589         * modules/uninorm/decomposition-table: New file.
39590
39591         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39592         (UC_DECOMP_*): New enumeration items.
39593         (get_decomposition): New function.
39594         (struct decomp_table): New type.
39595         (output_decomposition, output_decomposition_tables): New functions.
39596         (unicode_composition_exclusions): New variable.
39597         (fill_composition_exclusions, debug_output_composition_tables): New
39598         functions.
39599         (main): Accept one more argument. Invoke fill_composition_exclusions.
39600         Output decomposition and composition tables.
39601
39602         New module 'uninorm/base'.
39603         * lib/uninorm.h: New file.
39604         * lib/unictype.h: Update comment.
39605         * modules/uninorm/base: New file.
39606
39607 2009-02-21  David Lutterkort  <lutter@redhat.com>
39608
39609         Tests for module 'safe-alloc'.
39610         * tests/test-safe-alloc.c: New file.
39611         * modules/safe-alloc-tests: New file.
39612
39613         New module 'safe-alloc'.
39614         * lib/safe-alloc.h: New file.
39615         * lib/safe-alloc.c: New file.
39616         * m4/safe-alloc.m4: New file.
39617         * modules/safe-alloc: New file.
39618         * doc/safe-alloc.texi: New file.
39619         * doc/gnulib.texi: Include it.
39620         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39621         safe-alloc.
39622
39623 2009-02-18  Bruno Haible  <bruno@clisp.org>
39624
39625         Fix link error on non-glibc systems.
39626         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39627         variable.
39628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39629
39630 2009-02-18  Jim Meyering  <meyering@redhat.com>
39631
39632         fts: avoid used-uninitialized error due to recent change
39633         * lib/fts.c (fts_read): Guard uses of the new member,
39634         parent->fts_n_dirs_remaining, since it's not relevant for
39635         the parent of a directory specified on the command-line.
39636
39637 2009-02-17  James Youngman  <jay@gnu.org>
39638             Bruno Haible  <bruno@clisp.org>
39639
39640         * m4/include_next.m4: Reformulate comment.
39641
39642 2009-02-16  Jim Meyering  <meyering@redhat.com>
39643
39644         fts: add #if guards so that the fts_lgpl module still builds
39645         * lib/fts.c: Guard just-added hash-table-using parts with
39646         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39647         Reported by Simon Josefsson.
39648
39649 2009-02-15  Bruno Haible  <bruno@clisp.org>
39650
39651         * modules/array-mergesort-tests: New file.
39652         * tests/test-array-mergesort.c: New file.
39653
39654         New module 'array-mergesort'.
39655         * modules/array-mergesort: New file.
39656         * lib/array-mergesort.h: New file.
39657
39658 2009-02-15  Bruno Haible  <bruno@clisp.org>
39659
39660         Fix 2009-02-07 commit.
39661         * lib/gen-uni-tables.c (output_predicate, output_category,
39662         output_combclass, output_bidi_category, output_decimal_digit,
39663         output_digit, output_numeric, output_mirror, output_scripts,
39664         output_ident_category, output_simple_mapping): Fix format directives.
39665         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39666
39667 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39668
39669         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39670         fixes are available from IBM.
39671
39672 2009-02-13  Jim Meyering  <meyering@redhat.com>
39673
39674         fts: arrange not to stat non-directories in more cases
39675         This makes GNU find (when it doesn't need to stat each file)
39676         *much* more efficient at traversing reiserfs file systems.
39677         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39678         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39679         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39680         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39681         (leaf_optimization_applies): New function.
39682         (LCO_hash, LCO_compare): New helper functions.
39683         (link_count_optimize_ok): New function.
39684         (fts_stat): Initialize new member (if dir).
39685         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39686         we've just stat'ed a directory.  Skip the stat call when possible.
39687         ---
39688         Note this AFS-related exchange:
39689         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39690         and note find's pioctl call in find/fstype.c.
39691         But that is necessary only if you want to enable the
39692         optimization for AFS, and for now, I don't.
39693
39694         fts: move a function definition "up" (no semantic change)
39695         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39696         "up" to precede upcoming use of a related function.
39697
39698 2009-02-11  Jim Meyering  <meyering@redhat.com>
39699
39700         fts: correct internal computation of nlinks (optimization-related)
39701         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39702         whether the current entry is a directory, so don't test it.
39703
39704 2009-02-10  Bruno Haible  <bruno@clisp.org>
39705
39706         Tests for module 'uniwbrk/ulc-wordbreaks'.
39707         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39708         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39709         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39710
39711         Tests for module 'uniwbrk/u32-wordbreaks'.
39712         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39713         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39714
39715         Tests for module 'uniwbrk/u16-wordbreaks'.
39716         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39717         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39718
39719         Tests for module 'uniwbrk/u8-wordbreaks'.
39720         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39721         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39722
39723 2009-02-10  Bruno Haible  <bruno@clisp.org>
39724
39725         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39726         property.
39727         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39728         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39729         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39730
39731 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39732
39733         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39734         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39735
39736 2009-02-10  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39739         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39740         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39741         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39742         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39743         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39744
39745 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39746
39747         * lib/sockets.h (gl_fd_to_handle): New function.
39748
39749         * tests/test-sockets.c: Call gl_fd_to_handle.
39750
39751 2009-02-09  Bruno Haible  <bruno@clisp.org>
39752
39753         * doc/havelib.texi: Document the conventions on bi-arch systems.
39754
39755 2009-02-08  Bruno Haible  <bruno@clisp.org>
39756
39757         Document the AC_LIB_LINKFLAGS macro.
39758         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39759         * doc/gnulib.texi: Include it.
39760
39761 2009-02-08  Bruno Haible  <bruno@clisp.org>
39762
39763         Fix wrong order of sections, compared to TOC.
39764         * doc/gnulib.texi: Include relocatable-maint.texi after the
39765         "Regular expressions" node, not before.
39766
39767 2009-02-08  Bruno Haible  <bruno@clisp.org>
39768
39769         Tests for module 'unicase/totitle'.
39770         * modules/unicase/totitle-tests: New file.
39771
39772         Tests for module 'unicase/tolower'.
39773         * modules/unicase/tolower-tests: New file.
39774
39775         Tests for module 'unicase/toupper'.
39776         * modules/unicase/toupper-tests: New file.
39777         * tests/unicase/test-mapping-part1.h: New file.
39778         * tests/unicase/test-mapping-part2.h: New file.
39779
39780         New module 'unicase/totitle'.
39781         * modules/unicase/totitle: New file.
39782         * lib/unicase/totitle.c: New file.
39783
39784         New module 'unicase/tolower'.
39785         * modules/unicase/tolower: New file.
39786         * lib/unicase/tolower.c: New file.
39787
39788         New module 'unicase/toupper'.
39789         * modules/unicase/toupper: New file.
39790         * lib/unicase/toupper.c: New file.
39791         * lib/unicase/simple-mapping.h: New file.
39792
39793         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39794         (mapping_table): New structure.
39795         (output_simple_mapping): New function.
39796         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39797         * modules/gen-uni-tables (Description): Update.
39798         * lib/unicase/toupper.h: New file, automatically generated by
39799         gen-uni-tables.
39800         * lib/unicase/tolower.h: New file, automatically generated by
39801         gen-uni-tables.
39802         * lib/unicase/totitle.h: New file, automatically generated by
39803         gen-uni-tables.
39804         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39805         gen-uni-tables.
39806         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39807         gen-uni-tables.
39808         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39809         gen-uni-tables.
39810
39811         New module 'unicase/base'.
39812         * modules/unicase/base: New file.
39813         * lib/unicase.h: New file.
39814
39815 2009-02-08  Bruno Haible  <bruno@clisp.org>
39816
39817         New module 'uniwbrk/ulc-wordbreaks'.
39818         * modules/uniwbrk/ulc-wordbreaks: New file.
39819         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39820
39821         New module 'uniwbrk/u32-wordbreaks'.
39822         * modules/uniwbrk/u32-wordbreaks: New file.
39823         * lib/uniwbrk/u32-wordbreaks.c: New file.
39824
39825         New module 'uniwbrk/u16-wordbreaks'.
39826         * modules/uniwbrk/u16-wordbreaks: New file.
39827         * lib/uniwbrk/u16-wordbreaks.c: New file.
39828
39829         New module 'uniwbrk/u8-wordbreaks'.
39830         * modules/uniwbrk/u8-wordbreaks: New file.
39831         * lib/uniwbrk/u8-wordbreaks.c: New file.
39832         * lib/uniwbrk/u-wordbreaks.h: New file.
39833
39834         New module 'uniwbrk/table'.
39835         * modules/uniwbrk/table: New file.
39836         * lib/uniwbrk/wbrktable.h: New file.
39837         * lib/uniwbrk/wbrktable.c: New file.
39838
39839         New module 'uniwbrk/wordbreak-property'.
39840         * modules/uniwbrk/wordbreak-property: New file.
39841         * lib/uniwbrk/wordbreak-property.c: New file.
39842
39843         * lib/gen-uni-tables.c (WBP_*): New enum items.
39844         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39845         (unicode_org_wbp): New variable.
39846         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39847         New functions.
39848         (wbp_table): New structure.
39849         (output_wbp, output_wbrk_tables): New functions.
39850         (main): Accept additional argument. Invoke fill_org_wbp,
39851         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39852         output_wbrk_tables.
39853         * modules/gen-uni-tables (Description): Update.
39854         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39855         gen-uni-tables.
39856
39857         New module 'uniwbrk/base'.
39858         * modules/uniwbrk/base: New file.
39859         * lib/uniwbrk.h: New file.
39860
39861 2009-02-08  Bruno Haible  <bruno@clisp.org>
39862
39863         Update to Unicode 5.1.0.
39864         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39865         U+2185..U+2188.
39866         (is_property_default_ignorable_code_point): Don't include characters
39867         of category Cc or Cs and not-a-characters.
39868         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39869         U+0D79, U+109E, U+109F, U+A60C.
39870         * lib/unictype/bidi_of.h: Regenerated.
39871         * lib/unictype/blocks.h: Regenerated.
39872         * lib/unictype/categ_C.h: Regenerated.
39873         * lib/unictype/categ_Cf.h: Regenerated.
39874         * lib/unictype/categ_Cn.h: Regenerated.
39875         * lib/unictype/categ_L.h: Regenerated.
39876         * lib/unictype/categ_Ll.h: Regenerated.
39877         * lib/unictype/categ_Lm.h: Regenerated.
39878         * lib/unictype/categ_Lo.h: Regenerated.
39879         * lib/unictype/categ_Lu.h: Regenerated.
39880         * lib/unictype/categ_M.h: Regenerated.
39881         * lib/unictype/categ_Mc.h: Regenerated.
39882         * lib/unictype/categ_Me.h: Regenerated.
39883         * lib/unictype/categ_Mn.h: Regenerated.
39884         * lib/unictype/categ_N.h: Regenerated.
39885         * lib/unictype/categ_Nd.h: Regenerated.
39886         * lib/unictype/categ_Nl.h: Regenerated.
39887         * lib/unictype/categ_No.h: Regenerated.
39888         * lib/unictype/categ_P.h: Regenerated.
39889         * lib/unictype/categ_Pd.h: Regenerated.
39890         * lib/unictype/categ_Pe.h: Regenerated.
39891         * lib/unictype/categ_Pf.h: Regenerated.
39892         * lib/unictype/categ_Pi.h: Regenerated.
39893         * lib/unictype/categ_Po.h: Regenerated.
39894         * lib/unictype/categ_Ps.h: Regenerated.
39895         * lib/unictype/categ_S.h: Regenerated.
39896         * lib/unictype/categ_Sk.h: Regenerated.
39897         * lib/unictype/categ_Sm.h: Regenerated.
39898         * lib/unictype/categ_So.h: Regenerated.
39899         * lib/unictype/categ_of.h: Regenerated.
39900         * lib/unictype/combining.h: Regenerated.
39901         * lib/unictype/ctype_alnum.h: Regenerated.
39902         * lib/unictype/ctype_alpha.h: Regenerated.
39903         * lib/unictype/ctype_graph.h: Regenerated.
39904         * lib/unictype/ctype_lower.h: Regenerated.
39905         * lib/unictype/ctype_print.h: Regenerated.
39906         * lib/unictype/ctype_punct.h: Regenerated.
39907         * lib/unictype/ctype_upper.h: Regenerated.
39908         * lib/unictype/decdigit.h: Regenerated.
39909         * lib/unictype/digit.h: Regenerated.
39910         * lib/unictype/mirror.h: Regenerated.
39911         * lib/unictype/numeric.h: Regenerated.
39912         * lib/unictype/pr_alphabetic.h: Regenerated.
39913         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39914         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39915         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39916         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39917         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39918         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39919         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39920         * lib/unictype/pr_combining.h: Regenerated.
39921         * lib/unictype/pr_dash.h: Regenerated.
39922         * lib/unictype/pr_decimal_digit.h: Regenerated.
39923         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39924         * lib/unictype/pr_deprecated.h: Regenerated.
39925         * lib/unictype/pr_diacritic.h: Regenerated.
39926         * lib/unictype/pr_extender.h: Regenerated.
39927         * lib/unictype/pr_format_control.h: Regenerated.
39928         * lib/unictype/pr_grapheme_base.h: Regenerated.
39929         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39930         * lib/unictype/pr_grapheme_link.h: Regenerated.
39931         * lib/unictype/pr_id_continue.h: Regenerated.
39932         * lib/unictype/pr_id_start.h: Regenerated.
39933         * lib/unictype/pr_ideographic.h: Regenerated.
39934         * lib/unictype/pr_ignorable_control.h: Regenerated.
39935         * lib/unictype/pr_lowercase.h: Regenerated.
39936         * lib/unictype/pr_math.h: Regenerated.
39937         * lib/unictype/pr_numeric.h: Regenerated.
39938         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39939         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39940         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39941         * lib/unictype/pr_other_id_continue.h: Regenerated.
39942         * lib/unictype/pr_other_lowercase.h: Regenerated.
39943         * lib/unictype/pr_other_math.h: Regenerated.
39944         * lib/unictype/pr_punctuation.h: Regenerated.
39945         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39946         * lib/unictype/pr_soft_dotted.h: Regenerated.
39947         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39948         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39949         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39950         * lib/unictype/pr_uppercase.h: Regenerated.
39951         * lib/unictype/pr_xid_continue.h: Regenerated.
39952         * lib/unictype/pr_xid_start.h: Regenerated.
39953         * lib/unictype/pr_zero_width.h: Regenerated.
39954         * lib/unictype/scripts.h: Regenerated.
39955         * lib/unictype/scripts_byname.gperf: Regenerated.
39956         * lib/unictype/sy_java_ident.h: Regenerated.
39957         * lib/unilbrk/lbrkprop1.h: Regenerated.
39958         * lib/unilbrk/lbrkprop2.h: Regenerated.
39959         * tests/unictype/test-categ_C.c: Regenerated.
39960         * tests/unictype/test-categ_Cf.c: Regenerated.
39961         * tests/unictype/test-categ_Cn.c: Regenerated.
39962         * tests/unictype/test-categ_L.c: Regenerated.
39963         * tests/unictype/test-categ_Ll.c: Regenerated.
39964         * tests/unictype/test-categ_Lm.c: Regenerated.
39965         * tests/unictype/test-categ_Lo.c: Regenerated.
39966         * tests/unictype/test-categ_Lu.c: Regenerated.
39967         * tests/unictype/test-categ_M.c: Regenerated.
39968         * tests/unictype/test-categ_Mc.c: Regenerated.
39969         * tests/unictype/test-categ_Me.c: Regenerated.
39970         * tests/unictype/test-categ_Mn.c: Regenerated.
39971         * tests/unictype/test-categ_N.c: Regenerated.
39972         * tests/unictype/test-categ_Nd.c: Regenerated.
39973         * tests/unictype/test-categ_Nl.c: Regenerated.
39974         * tests/unictype/test-categ_No.c: Regenerated.
39975         * tests/unictype/test-categ_P.c: Regenerated.
39976         * tests/unictype/test-categ_Pd.c: Regenerated.
39977         * tests/unictype/test-categ_Pe.c: Regenerated.
39978         * tests/unictype/test-categ_Pf.c: Regenerated.
39979         * tests/unictype/test-categ_Pi.c: Regenerated.
39980         * tests/unictype/test-categ_Po.c: Regenerated.
39981         * tests/unictype/test-categ_Ps.c: Regenerated.
39982         * tests/unictype/test-categ_S.c: Regenerated.
39983         * tests/unictype/test-categ_Sk.c: Regenerated.
39984         * tests/unictype/test-categ_Sm.c: Regenerated.
39985         * tests/unictype/test-categ_So.c: Regenerated.
39986         * tests/unictype/test-ctype_alnum.c: Regenerated.
39987         * tests/unictype/test-ctype_alpha.c: Regenerated.
39988         * tests/unictype/test-ctype_graph.c: Regenerated.
39989         * tests/unictype/test-ctype_lower.c: Regenerated.
39990         * tests/unictype/test-ctype_print.c: Regenerated.
39991         * tests/unictype/test-ctype_punct.c: Regenerated.
39992         * tests/unictype/test-ctype_upper.c: Regenerated.
39993         * tests/unictype/test-decdigit.h: Regenerated.
39994         * tests/unictype/test-digit.h: Regenerated.
39995         * tests/unictype/test-numeric.h: Regenerated.
39996         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39997         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39998         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39999         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40000         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40001         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40002         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40003         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40004         * tests/unictype/test-pr_combining.c: Regenerated.
40005         * tests/unictype/test-pr_dash.c: Regenerated.
40006         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40007         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40008         * tests/unictype/test-pr_deprecated.c: Regenerated.
40009         * tests/unictype/test-pr_diacritic.c: Regenerated.
40010         * tests/unictype/test-pr_extender.c: Regenerated.
40011         * tests/unictype/test-pr_format_control.c: Regenerated.
40012         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40013         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40014         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40015         * tests/unictype/test-pr_id_continue.c: Regenerated.
40016         * tests/unictype/test-pr_id_start.c: Regenerated.
40017         * tests/unictype/test-pr_ideographic.c: Regenerated.
40018         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40019         * tests/unictype/test-pr_lowercase.c: Regenerated.
40020         * tests/unictype/test-pr_math.c: Regenerated.
40021         * tests/unictype/test-pr_numeric.c: Regenerated.
40022         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40023         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40024         Regenerated.
40025         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40026         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40027         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40028         * tests/unictype/test-pr_other_math.c: Regenerated.
40029         * tests/unictype/test-pr_punctuation.c: Regenerated.
40030         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40031         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40032         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40033         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40034         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40035         * tests/unictype/test-pr_uppercase.c: Regenerated.
40036         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40037         * tests/unictype/test-pr_xid_start.c: Regenerated.
40038         * tests/unictype/test-pr_zero_width.c: Regenerated.
40039
40040         Update to Unicode 5.1.0.
40041         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40042         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40043         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40044         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40045         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40046         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40047         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40048         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40049         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40050         (nonspacing_table_ind): Update.
40051         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40052
40053         Update to Unicode 5.1.0.
40054         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40055         code transform.
40056         * lib/uniname/uniname.c (unicode_character_name,
40057         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40058         * lib/uniname/uninames.h: Regenerated.
40059         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40060
40061 2009-02-07  Bruno Haible  <bruno@clisp.org>
40062
40063         Merge gen-ctype and gen-lbrk into a single program.
40064         * lib/gen-uni-tables.c: New file, incorporating
40065         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40066         Add directory prefixes to the names of the generated files.
40067         * lib/unictype/gen-ctype.c: Remove file.
40068         * lib/unilbrk/gen-lbrk.c: Remove file.
40069         * modules/gen-uni-tables: New file.
40070         * modules/unictype/gen-ctype: Remove file.
40071         * modules/unilbrk/gen-lbrk: Remove file.
40072
40073 2009-02-07  Bruno Haible  <bruno@clisp.org>
40074
40075         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40076
40077         New module 'unistr/u32-strcoll'.
40078         * modules/unistr/u32-strcoll: New file.
40079         * lib/unistr/u32-strcoll.c: New file.
40080
40081         New module 'unistr/u16-strcoll'.
40082         * modules/unistr/u16-strcoll: New file.
40083         * lib/unistr/u16-strcoll.c: New file.
40084
40085         New module 'unistr/u8-strcoll'.
40086         * modules/unistr/u8-strcoll: New file.
40087         * lib/unistr/u8-strcoll.c: New file.
40088         * lib/unistr/u-strcoll.h: New file.
40089
40090 2009-02-07  Bruno Haible  <bruno@clisp.org>
40091
40092         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40093         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40094         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40095         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40096         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40097         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40098
40099 2009-02-07  Bruno Haible  <bruno@clisp.org>
40100
40101         Make 64-bit clean.
40102         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40103         output_combclass, output_bidi_category, output_decimal_digit,
40104         output_digit, output_numeric, output_mirror, output_scripts,
40105         output_ident_category): Use proper width specifier in format strings.
40106
40107 2009-02-07  Bruno Haible  <bruno@clisp.org>
40108
40109         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40110         failure behaviour.
40111
40112 2009-02-07  Jim Meyering  <meyering@redhat.com>
40113
40114         regex: avoid compilation failure with upcoming gcc-4.4
40115         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40116         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40117         "... error: integer overflow in preprocessor expression".
40118
40119 2009-02-05  Ben Pfaff  <blp@gnu.org>
40120
40121         Fix link errors on Windows when close module is used.
40122         * modules/close: Add $(LIB_CLOSE) to Link section.
40123         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40124         $(LIB_CLOSE) on Windows.
40125
40126 2009-02-05  Jim Meyering  <meyering@redhat.com>
40127
40128         still avoid unused-parameter warnings, but do it cleanly
40129         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40130         (get_fs_usage): Cast to void instead.
40131         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40132         (dev_from_mount_options, read_file_system_list): Cast to void.
40133         Prompted by Bruno Haible.
40134
40135 2009-02-04  Jim Meyering  <meyering@redhat.com>
40136
40137         fsusage.c: correct copyright year
40138         * lib/fsusage.c: Reflect year in which the change is pushed into
40139
40140         avoid misc. warnings
40141         * lib/fsusage.c (UNUSED_PARAM): Define.
40142         (get_fs_usage): Mark parameter "disk" as unused.
40143         * lib/getugroups.c (getgrent): Use "void" in prototype.
40144         * lib/mountlist.c: Mark unused parameters.
40145         (read_file_system_list): Declare a local with "const".
40146         * lib/nanosleep.c (getnow): Declare static.
40147         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40148
40149         dirfd: set errno upon failure
40150         * lib/dirfd.c: Include <errno.h>.
40151         Set errno to ENOTSUP when returning -1.
40152         * modules/dirfd (Depends-on): Add errno.
40153         Suggested by John Kodis <kodis@comcast.net>.
40154
40155 2009-02-01  Bruno Haible  <bruno@clisp.org>
40156
40157         Don't assume sizeof (long) >= sizeof (void *).
40158         * lib/memcmp.c: Include stdint.h.
40159         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40160         srcp2 to 'const byte *'.
40161         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40162         types to uintptr_t.
40163         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40164         * modules/memcmp (Depends-on): Add stdint.
40165         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40166
40167 2009-01-30  Eric Blake  <ebb9@byu.net>
40168
40169         fix more require-before-expand issues
40170         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40171         expand, AC_PROG_AWK.
40172         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40173
40174 2009-01-28  Eric Blake  <ebb9@byu.net>
40175
40176         version-etc: use consistent URL formatting
40177         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40178         Improve formatting.  Use fputs for string without %.
40179
40180 2009-01-28  Jim Meyering  <meyering@redhat.com>
40181
40182         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40183         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40184         "underquoted definition of NAME" from autoconf-2.59.
40185
40186 2009-01-28  Bruno Haible  <bruno@clisp.org>
40187
40188         * doc/gnulib.texi: Add "Obsolete modules" to index.
40189
40190 2009-01-28  Jim Meyering  <meyering@redhat.com>
40191
40192         useless-if-before-free: recognize more variants
40193         * build-aux/useless-if-before-free: Also recognize e.g.,
40194         if (NULL != p) free (p);
40195
40196 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40197
40198         test-getaddrinfo: skip (don't fail) this test when there's no network
40199         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40200         on the presumption that it means you lack network access.
40201
40202 2009-01-26  Jim Meyering  <meyering@redhat.com>
40203
40204         fflush: avoid warnings on modern systems
40205         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40206         pos and result, into scopes where they're used.
40207
40208 2009-01-26  Eric Blake  <ebb9@byu.net>
40209
40210         Silence warning reintroduced by recent extensions patch.
40211         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40212         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40213         autoconf.
40214
40215         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40216         * m4/00gnulib.m4: New file.
40217         * gnulib-tool (func_get_filelist): Always use it.
40218         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40219         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40220
40221 2009-01-25  Bruno Haible  <bruno@clisp.org>
40222
40223         Make test-quotearg work on MacOS X and AIX.
40224         * tests/test-quotearg.sh: New file.
40225         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40226         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40227         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40228         include <libintl.h>.
40229         (fake_locale): Remove variable.
40230         (gettext, dgettext, dcgettext): Remove functions.
40231         (main): Instead of setting a fake locale, set a real locale. Call
40232         textdomain and bindtextdomain.
40233         * modules/quotearg-tests (Files): Add the new files.
40234         (Depends-on): Add gettext, setenv, unsetenv.
40235         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40236         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40237         Augment TESTS_ENVIRONMENT.
40238
40239 2009-01-25  Bruno Haible  <bruno@clisp.org>
40240
40241         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40242         fr_FR.ISO8859-1 locale on MacOS X.
40243         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40244         ja_JP.eucJP locale on MacOS X.
40245         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40246         zh_CN.GB18030 locale on MacOS X.
40247
40248 2009-01-25  Bruno Haible  <bruno@clisp.org>
40249
40250         Avoid link errors on MacOS X 10.3.
40251         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40252         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40253
40254 2009-01-25  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40257         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40258         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40259         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40260         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40261         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40262         posix_spawnattr_init, posix_spawnattr_setsigmask,
40263         posix_spawnattr_setflags, posix_spawnattr_destroy.
40264
40265         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40266         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40267         * modules/execute (Files): Remove m4/posix_spawn.m4.
40268         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40269         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40270         posix_spawnattr_init, posix_spawnattr_setsigmask,
40271         posix_spawnattr_setflags, posix_spawnattr_destroy.
40272
40273 2009-01-25  Bruno Haible  <bruno@clisp.org>
40274
40275         * lib/glthread/threadlib.c: Include <stdlib.h>.
40276
40277 2009-01-25  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/glthread/threadlib.c (dummy): New declaration.
40280
40281 2009-01-25  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40284         multibyte characters also for the GB18030 encoding. Don't crash when
40285         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40286
40287 2009-01-25  Bruno Haible  <bruno@clisp.org>
40288
40289         Avoid redefining 'struct random_data' on OSF/1 5.1.
40290         * lib/stdlib.in.h: Include <random.h> if it exists.
40291         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40292         HAVE_RANDOM_H. Include <random.h> when testing whether
40293         'struct random_data' exists.
40294         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40295
40296 2009-01-25  Bruno Haible  <bruno@clisp.org>
40297
40298         Don't install charset.alias on MacOS X >= 10.3.
40299         * lib/localcharset.c (DARWIN7): New macro.
40300         (get_charset_aliases): Hardcode the result for Darwin7.
40301         * modules/localcharset (install-exec-local): Don't install
40302         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40303
40304 2009-01-25  Bruno Haible  <bruno@clisp.org>
40305
40306         Don't install charset.alias on mingw and Cygwin.
40307         * modules/localcharset (install-exec-local): Don't install
40308         charset.alias on mingw and Cygwin, if the file does not yet exist.
40309         The result for these platforms is hardcoded in localcharset.c.
40310
40311 2009-01-25  Bruno Haible  <bruno@clisp.org>
40312
40313         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40314         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40315         before requiring AC_USE_SYSTEM_EXTENSIONS.
40316
40317 2009-01-25  Jim Meyering  <meyering@redhat.com>
40318
40319         c-strtod: avoid warnings
40320         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40321         "assignment discards qualifiers from pointer target type" warnings.
40322
40323 2009-01-24  Bruno Haible  <bruno@clisp.org>
40324
40325         Add support for non-UTF-8 locales on MacOS X.
40326         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40327         canonical encodings. For Darwin 7 and newer, don't map traditional
40328         encodings to UTF-8.
40329         Reported by Vincent Lefevre <vincent@vinc17.org>
40330         at <http://savannah.gnu.org/bugs/?25235>.
40331
40332 2009-01-24  Bruno Haible  <bruno@clisp.org>
40333
40334         * doc/gnulib.texi (Obsolete modules): New section.
40335         Reported by Mike Frysinger <vapier@gentoo.org>.
40336
40337 2009-01-24  Bruno Haible  <bruno@clisp.org>
40338
40339         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40340         (%.dvi): New rule.
40341
40342 2009-01-24  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40345         Reported by Eric Blake.
40346
40347 2009-01-24  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40350         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40351         Reported by Gary V. Vaughan <gary@gnu.org>.
40352
40353 2009-01-24  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40356
40357 2009-01-23  Bruno Haible  <bruno@clisp.org>
40358
40359         Make c-strtod, c-strtold usable in libraries.
40360         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40361         (C_STRTOD): Call strdup instead of xstrdup.
40362         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40363         * modules/c-strtold (Depends-on): Likewise.
40364         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40365         * NEWS: Mention the change.
40366         Reported by Michael Gold <mgold@ncf.ca>.
40367
40368 2009-01-23  Jim Meyering  <meyering@redhat.com>
40369
40370         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40371         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40372         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40373
40374 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40375
40376         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40377         GNU CoreUtils.
40378         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40379         * modules/version-etc (Description): Update.
40380
40381 2009-01-22  Bruno Haible  <bruno@clisp.org>
40382
40383         Cache the C locale object.
40384         * lib/c-strtod.c (c_locale_cache): New variable.
40385         (c_locale): New function.
40386         (C_STRTOD): Use it, and don't call freelocale.
40387         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40388         Suggested by Paolo Bonzini.
40389
40390 2009-01-21  Bruno Haible  <bruno@clisp.org>
40391
40392         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40393         conditions other than overflow.
40394
40395 2009-01-21  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/c-strtod.c: Include errno.h.
40398         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40399         value from STRTOD_L and STRTOD.
40400
40401 2009-01-21  Bruno Haible  <bruno@clisp.org>
40402         and Jim Meyering  <meyering@redhat.com>
40403
40404         nanosleep: skip configure test (fail it) for apple universal builds
40405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40406         universal builds, assume that nanosleep does not work.
40407         * modules/nanosleep (Depends-on): Add multiarch.
40408
40409         mktime: skip configure test (fail it) for apple universal builds
40410         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40411         universal builds, assume that mktime does not work.
40412         * modules/mktime (Depends-on): Add multiarch.
40413
40414 2009-01-21  Eric Blake  <ebb9@byu.net>
40415
40416         multiarch: avoid expand-before-require warning
40417         * modules/multiarch (configure.ac): Require, rather than expand,
40418         gl_MULTIARCH.
40419         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40420         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40421         enforce that all clients require it.  Partial reversion of
40422         2008-12-29 patch.
40423
40424         error: avoid expand-before-require warning
40425         * modules/errno (configure.ac): Require, rather than expand,
40426         gl_HEADER_ERRNO_H.
40427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40428         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40429         enforce that all clients require it.
40430
40431         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40432         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40433         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40434         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40435
40436 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40437
40438         Revert:
40439         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40440
40441         regex: do not depend on obsolete modules.
40442         * modules/regex: Remove memcmp and memmove.
40443
40444 2009-01-20  Bruno Haible  <bruno@clisp.org>
40445
40446         Make the 'link' module link on Windows NT 4.
40447         * lib/link.c (_WIN32_WINNT): Don't define.
40448         (CreateHardLinkFuncType): New type.
40449         (CreateHardLinkFunc, initialized): New variables.
40450         (initialize): New function.
40451         (link): Invoke CreateHardLink indirectly through the function pointer.
40452
40453 2009-01-20  Bruno Haible  <bruno@clisp.org>
40454
40455         Fix compilation failure on mingw.
40456         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40457
40458 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40459
40460         * doc/c-strtod.texi: Mention a couple of restrictions.
40461
40462 2009-01-20  Jim Meyering  <meyering@redhat.com>
40463
40464         gettimeofday: move more declarations out of functions
40465         * lib/gettimeofday.c: Move extern declarations of tzset and
40466         gmtime out of containing functions.  Prompted by Bruno Haible.
40467
40468 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40469
40470         regex: do not depend on obsolete modules.
40471         * modules/regex: Remove memcmp and memmove.
40472
40473 2009-01-19  Bruno Haible  <bruno@clisp.org>
40474
40475         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40476         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40477         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40478         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40479         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40480
40481 2009-01-19  Bruno Haible  <bruno@clisp.org>
40482
40483         * tests/test-link.c: Include <errno.h>.
40484         (main): Exit with code 77 when a hard link cannot be created due to
40485         the file system.
40486         * tests/test-link.sh: Skip test when a hard link cannot be created due
40487         to the file system.
40488         Suggested by Eric Blake.
40489
40490 2009-01-19  Martin Lambers  <marlam@marlam.de>
40491
40492         * modules/link-tests: New file.
40493         * tests/test-link.sh: New file.
40494         * tests/test-link.c: New file.
40495
40496 2009-01-19  Eric Blake  <ebb9@byu.net>
40497
40498         doc: mention another function added in cygwin 1.7.0
40499         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40500         Another new function in cygwin 1.7.
40501
40502 2009-01-19  Bruno Haible  <bruno@clisp.org>
40503
40504         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40505         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40506         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40507         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40509         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40511         * m4/md4.m4 (gl_MD4): Likewise.
40512         * m4/md5.m4 (gl_MD5): Likewise.
40513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40514         * m4/sha1.m4 (gl_SHA1): Likewise.
40515         * m4/sha256.m4 (gl_SHA256): Likewise.
40516         * m4/sha512.m4 (gl_SHA512): Likewise.
40517
40518 2009-01-19  Bruno Haible  <bruno@clisp.org>
40519
40520         * modules/uniname/uniname-tests (Depends-on): Add progname.
40521         * tests/uniname/test-uninames.c: Include progname.h.
40522         (main): Call set_program_name.
40523
40524         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40525         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40526         (main): Call set_program_name.
40527
40528         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40529         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40530         (main): Call set_program_name.
40531
40532         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40533         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40534         (main): Call set_program_name.
40535
40536         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40537         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40538         (main): Call set_program_name.
40539
40540         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40541         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40542         (main): Call set_program_name.
40543
40544         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40545         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40546         (main): Call set_program_name.
40547
40548         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40549         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40550         (main): Call set_program_name.
40551
40552         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40553         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40554         (main): Call set_program_name.
40555
40556 2009-01-19  Eric Blake  <ebb9@byu.net>
40557
40558         test-unistd: test previous patch
40559         * tests/test-unistd.c: Test *_FILENO macros.
40560
40561         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40562         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40563         Guarantee a definition.
40564         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40565         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40566         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40567         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40568         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40569         Likewise.
40570         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40571         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40572         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40573         Likewise.
40574         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40575         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40576         (STDERR_FILENO): Likewise.
40577         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40578         (STDERR_FILENO): Likewise.
40579         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40580         (STDERR_FILENO): Likewise.
40581         Reported by Elbert Pol.
40582
40583 2009-01-19  Eric Blake  <ebb9@byu.net>
40584
40585         doc: mention more functions added in cygwin 1.7.0
40586         * doc/posix-functions/abort.texi (abort): Update wording related
40587         to cygwin.
40588         * doc/posix-functions/daylight.texi (daylight): Likewise.
40589         * doc/posix-functions/optarg.texi (optarg): Likewise.
40590         * doc/posix-functions/optarg.texi (opterr): Likewise.
40591         * doc/posix-functions/optarg.texi (optind): Likewise.
40592         * doc/posix-functions/optarg.texi (optopt): Likewise.
40593         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40594         worked in 1.5.x, and was withdrawn in 1.7.
40595         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40596         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40597         cygwin versions.
40598         * doc/posix-functions/perror.texi (perror): Likewise.
40599         * doc/posix-functions/printf.texi (printf): Likewise.
40600         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40601         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40602         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40603         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40604         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40605         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40606         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40607         Likewise.
40608         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40609         Likewise.
40610         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40611         this function.
40612         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40613         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40614         Likewise.
40615         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40616         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40617         * doc/posix-functions/confstr.texi (confstr): Likewise.
40618         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40619         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40620         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40621         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40622         * doc/posix-functions/fputws.texi (fputws): Likewise.
40623         * doc/posix-functions/fwide.texi (fwide): Likewise.
40624         * doc/posix-functions/getwc.texi (getwc): Likewise.
40625         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40626         * doc/posix-functions/putwc.texi (putwc): Likewise.
40627         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40628         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40629         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40630         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40631         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40632         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40633         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40634         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40635         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40636         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40637         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40638
40639 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40640
40641         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40642         * lib/ioctl.c: Include <sys/ioctl.h>.
40643
40644 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40645
40646         * modules/getdate-tests (Depends-on): Add progname.
40647         * tests/test-getdate.c: Use progname module, to avoid link errors
40648         on non-glibc systems.
40649
40650 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40651
40652         * modules/filenamecat-tests (Depends-on): Add progname.
40653         * modules/fstrcmp-tests (Depends-on): Likewise.
40654
40655         * tests/test-filenamecat.c: Use progname module, to avoid link
40656         errors on non-glibc systems.
40657         * tests/test-fstrcmp.c: Likewise.
40658
40659 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40660
40661         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40662         * lib/gettimeofday.c: Move extern declaration out of function.
40663
40664 2009-01-18  Bruno Haible  <bruno@clisp.org>
40665
40666         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40667         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40668         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40669
40670 2009-01-18  Bruno Haible  <bruno@clisp.org>
40671
40672         * lib/strftime.c (MEMPCPY): Remove unused macro.
40673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40674
40675 2009-01-18  Martin Lambers  <marlam@marlam.de>
40676
40677         New module 'link'.
40678         * lib/unistd.in.h (link): New declaration.
40679         * lib/link.c: New file.
40680         * m4/link.m4: New file.
40681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40682         HAVE_LINK.
40683         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40684         * modules/link: New file.
40685         * doc/posix-functions/link.texi: Mention the new module.
40686
40687 2009-01-18  Bruno Haible  <bruno@clisp.org>
40688
40689         * tests/test-avltree_list.c (main): Call set_program_name.
40690         * tests/test-avltree_oset.c (main): Likewise.
40691         * tests/test-obstack-printf.c: Include progname.h.
40692         (main): Call set_program_name.
40693         * tests/test-quotearg.c: Include progname.h.
40694         (main): Call set_program_name.
40695         * tests/test-xmemdup0.c: Include progname.h.
40696         (main): Call set_program_name.
40697
40698 2009-01-18  Bruno Haible  <bruno@clisp.org>
40699
40700         New module 'alphasort'.
40701         * lib/dirent.in.h (alphasort): New declaration.
40702         * lib/alphasort.c: New file, from glibc with modifications.
40703         * m4/alphasort.m4: New file.
40704         * modules/alphasort: New file.
40705         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40706         HAVE_ALPHASORT.
40707         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40708         HAVE_ALPHASORT.
40709         * doc/posix-functions/alphasort.texi: Mention the new module and the
40710         portability problems.
40711
40712 2009-01-18  Bruno Haible  <bruno@clisp.org>
40713
40714         New module 'scandir'.
40715         * lib/dirent.in.h (scandir): New declaration.
40716         * lib/scandir.c: New file, from glibc with modifications.
40717         * m4/scandir.m4: New file.
40718         * modules/scandir: New file.
40719         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40720         HAVE_SCANDIR.
40721         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40722         HAVE_SCANDIR.
40723         * doc/posix-functions/scandir.texi: Mention the new module and the
40724         portability problems.
40725
40726 2009-01-17  Bruno Haible  <bruno@clisp.org>
40727
40728         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40729         Update documentation.
40730         (func_remove_suffix): Escape all dots in the suffix. Update
40731         documentation.
40732         (func_filter_filelist): Update documentation.
40733         Reported by Ralf Wildenhues.
40734
40735 2009-01-17  Bruno Haible  <bruno@clisp.org>
40736
40737         * modules/dprintf-posix-tests: New file.
40738         * tests/test-dprintf-posix.sh: New file.
40739         * tests/test-dprintf-posix.c: New file.
40740
40741         New modules 'dprintf', 'dprintf-posix'.
40742         * lib/stdio.in.h (dprintf): New declaration.
40743         * lib/dprintf.c: New file.
40744         * m4/dprintf.m4: New file.
40745         * m4/dprintf-posix.m4: New file.
40746         * modules/dprintf: New file.
40747         * modules/dprintf-posix: New file.
40748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40749         HAVE_DPRINTF, REPLACE_DPRINTF.
40750         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40751         HAVE_DPRINTF, REPLACE_DPRINTF.
40752         * doc/posix-functions/dprintf.texi: Mention the new modules.
40753
40754 2009-01-17  Bruno Haible  <bruno@clisp.org>
40755
40756         * modules/vdprintf-posix-tests: New file.
40757         * tests/test-vdprintf-posix.sh: New file.
40758         * tests/test-vdprintf-posix.c: New file.
40759
40760         New modules 'vdprintf', 'vdprintf-posix'.
40761         * lib/stdio.in.h (vdprintf): New declaration.
40762         * lib/vdprintf.c: New file.
40763         * m4/vdprintf.m4: New file.
40764         * m4/vdprintf-posix.m4: New file.
40765         * modules/vdprintf: New file.
40766         * modules/vdprintf-posix: New file.
40767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40768         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40769         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40770         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40771         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40772
40773 2009-01-17  Bruno Haible  <bruno@clisp.org>
40774
40775         Fix replacement of fopen on mingw.
40776         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40777         mingw.
40778
40779 2009-01-17  Bruno Haible  <bruno@clisp.org>
40780
40781         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40782         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40783
40784 2009-01-17  Bruno Haible  <bruno@clisp.org>
40785
40786         Avoid test-fflush2.sh failure on mingw.
40787         * tests/test-fflush2.c: Include binary-io.h.
40788         (main): Put standard input into binary mode.
40789         * modules/fflush-tests (Depends-on): Add binary-io.
40790
40791 2009-01-17  Bruno Haible  <bruno@clisp.org>
40792
40793         * lib/wchar.in.h: In another particular situation, include only the
40794         system's <wchar.h> file.
40795         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40796         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40797         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40798
40799 2009-01-17  Bruno Haible  <bruno@clisp.org>
40800
40801         Support for stripping executables in --enable-relocatable.
40802         * build-aux/install-reloc: Expect one more argument, or an environment
40803         variable RELOC_STRIP_PROG. If set, strip the destination program and
40804         its wrapper.
40805         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40806         RELOC_STRIP_PROG.
40807         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40808         to set RELOCATABLE_STRIP.
40809         * NEWS: Mention the new Makefile requirement.
40810
40811 2009-01-17  Bruno Haible  <bruno@clisp.org>
40812
40813         * build-aux/install-reloc: Remove debugging information left over by
40814         C compiler on MacOS X.
40815
40816 2009-01-17  Bruno Haible  <bruno@clisp.org>
40817
40818         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40819         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40820         _NSGetExecutablePath.
40821
40822 2009-01-16  Jim Meyering  <meyering@redhat.com>
40823
40824         strerror: avoid warnings about discarding "const"
40825         * lib/strerror.c (rpl_strerror): Instead of returning a const
40826         string from each and every "case", use a variable, and add a single
40827         cast after the switch.
40828
40829 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40830
40831         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40832
40833 2009-01-16  Bruno Haible  <bruno@clisp.org>
40834
40835         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40836         array initializer syntax that also works in C++ mode.
40837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40838
40839 2009-01-16  Jim Meyering  <meyering@redhat.com>
40840
40841         poll: suppress a warning
40842         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40843         to ignore "...unsigned expression < 0 is always false" warnings.
40844
40845 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40846
40847         poll: remove declarations of unused variables
40848         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40849         sockbuf and optlen.
40850
40851 2009-01-15  Bruno Haible  <bruno@clisp.org>
40852
40853         Make fflush-after-ungetc POSIX compliant on BSD systems.
40854         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40855         (clear_ungetc_buffer): Implement also for other systems.
40856         (rpl_fflush): On glibc systems, invoke
40857         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40858         clear_ungetc_buffer after fetching the stream's position, not before.
40859
40860 2009-01-15  Bruno Haible  <bruno@clisp.org>
40861
40862         Make fflush-after-ungetc POSIX compliant on glibc systems.
40863         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40864         after ungetc.
40865         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40866         (rpl_fflush): On glibc systems, simply call the system's fflush
40867         function after clearing the ungetc buffer.
40868         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40869         Instead, lseek only to the end of file, then use the system's fseeko
40870         for the rest. On glibc systems, reset the EOF indicator bit.
40871
40872 2009-01-15  Jim Meyering  <meyering@redhat.com>
40873
40874         openmp.m4: revert quote-adding change, for portability to older autoconf
40875         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40876         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40877         Simon Josefsson noticed the problem when using autoconf-2.61.
40878
40879 2009-01-15  Bruno Haible  <bruno@clisp.org>
40880
40881         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40882         * tests/test-fflush2.c (ASSERT): Always fail.
40883         (main): Add two tests for fflush() after ungetc(), taking into account
40884         the Austin Group's clarification.
40885         Suggested by Eric Blake.
40886
40887 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40888
40889         mktime.m4: remove K&R-style function prototypes
40890         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40891         for the Sun C++ compiler.
40892
40893 2009-01-14  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40896         while including <wchar.h>.
40897         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40898         the system's <wchar.h> file.
40899         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40900
40901 2009-01-14  Bruno Haible  <bruno@clisp.org>
40902
40903         * m4/csharp.m4: Don't mention gettext on the serial number line.
40904         * m4/csharpexec.m4: Likewise.
40905         * m4/eaccess.m4: Likewise.
40906         * m4/javaexec.m4: Likewise.
40907         * m4/sig_atomic_t.m4: Likewise.
40908         * m4/tmpdir.m4: Likewise.
40909         * m4/intldir.m4: Bump gettext version.
40910         * m4/lib-ld.m4: Likewise.
40911
40912 2009-01-14  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/progname.c (set_program_name): Add more comments.
40915         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40916
40917 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40918
40919         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40920         were sys/stat.h does not define it.
40921
40922 2009-01-14  Jim Meyering  <meyering@redhat.com>
40923
40924         many *.m4 files: improve m4 quoting
40925         99% of this change was performed by running the following commands:
40926         git ls-files | grep '\.m4$' | xargs perl -pi \
40927           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40928           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40929           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40930           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40931         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40932         The remainder were to add Copyright dates, increment serial numbers,
40933         undo some changes in comments, exclude m4/intl.m4, and add quotes
40934         around the "1" in ",1" where the unusual spacing prohibited the
40935         above regexps from doing the job.  For more details, see
40936         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40937         * m4/acl.m4: Modified.
40938         * m4/afs.m4: Likewise.
40939         * m4/alloca.m4: Likewise.
40940         * m4/argp.m4: Likewise.
40941         * m4/argz.m4: Likewise.
40942         * m4/atexit.m4: Likewise.
40943         * m4/bison-i18n.m4: Likewise.
40944         * m4/bison.m4: Likewise.
40945         * m4/byteswap.m4: Likewise.
40946         * m4/c-stack.m4: Likewise.
40947         * m4/c-strtod.m4: Likewise.
40948         * m4/calloc.m4: Likewise.
40949         * m4/canonicalize-lgpl.m4: Likewise.
40950         * m4/chown.m4: Likewise.
40951         * m4/clock_time.m4: Likewise.
40952         * m4/codeset.m4: Likewise.
40953         * m4/copy-file.m4: Likewise.
40954         * m4/csharp.m4: Likewise.
40955         * m4/csharpcomp.m4: Likewise.
40956         * m4/csharpexec.m4: Likewise.
40957         * m4/d-ino.m4: Likewise.
40958         * m4/d-type.m4: Likewise.
40959         * m4/dirfd.m4: Likewise.
40960         * m4/double-slash-root.m4: Likewise.
40961         * m4/eaccess.m4: Likewise.
40962         * m4/eealloc.m4: Likewise.
40963         * m4/environ.m4: Likewise.
40964         * m4/errno_h.m4: Likewise.
40965         * m4/euidaccess.m4: Likewise.
40966         * m4/execute.m4: Likewise.
40967         * m4/fatal-signal.m4: Likewise.
40968         * m4/fchdir.m4: Likewise.
40969         * m4/fcntl_h.m4: Likewise.
40970         * m4/fileblocks.m4: Likewise.
40971         * m4/filenamecat.m4: Likewise.
40972         * m4/findprog.m4: Likewise.
40973         * m4/flexmember.m4: Likewise.
40974         * m4/fnmatch.m4: Likewise.
40975         * m4/fopen.m4: Likewise.
40976         * m4/fpending.m4: Likewise.
40977         * m4/fprintf-posix.m4: Likewise.
40978         * m4/free.m4: Likewise.
40979         * m4/frexp.m4: Likewise.
40980         * m4/frexpl.m4: Likewise.
40981         * m4/fsusage.m4: Likewise.
40982         * m4/ftruncate.m4: Likewise.
40983         * m4/gc-camellia.m4: Likewise.
40984         * m4/gc-random.m4: Likewise.
40985         * m4/gc.m4: Likewise.
40986         * m4/getaddrinfo.m4: Likewise.
40987         * m4/getcwd-abort-bug.m4: Likewise.
40988         * m4/getcwd-path-max.m4: Likewise.
40989         * m4/getdate.m4: Likewise.
40990         * m4/getdomainname.m4: Likewise.
40991         * m4/getgroups.m4: Likewise.
40992         * m4/gethostname.m4: Likewise.
40993         * m4/gethrxtime.m4: Likewise.
40994         * m4/getline.m4: Likewise.
40995         * m4/getloadavg.m4: Likewise.
40996         * m4/getndelim2.m4: Likewise.
40997         * m4/getpass.m4: Likewise.
40998         * m4/gettext.m4: Likewise.
40999         * m4/gettime.m4: Likewise.
41000         * m4/gettimeofday.m4: Likewise.
41001         * m4/gnulib-common.m4: Likewise.
41002         * m4/group-member.m4: Likewise.
41003         * m4/host-os.m4: Likewise.
41004         * m4/iconv.m4: Likewise.
41005         * m4/iconv_open.m4: Likewise.
41006         * m4/inet_ntop.m4: Likewise.
41007         * m4/inet_pton.m4: Likewise.
41008         * m4/inline.m4: Likewise.
41009         * m4/intldir.m4: Likewise.
41010         * m4/intlmacosx.m4: Likewise.
41011         * m4/intmax.m4: Likewise.
41012         * m4/intmax_t.m4: Likewise.
41013         * m4/inttypes.m4: Likewise.
41014         * m4/inttypes_h.m4: Likewise.
41015         * m4/inttypes-pri.m4: Likewise.
41016         * m4/isapipe.m4: Likewise.
41017         * m4/isnand.m4: Likewise.
41018         * m4/isnanf.m4: Likewise.
41019         * m4/isnanl.m4: Likewise.
41020         * m4/javacomp.m4: Likewise.
41021         * m4/javaexec.m4: Likewise.
41022         * m4/jm-winsz1.m4: Likewise.
41023         * m4/jm-winsz2.m4: Likewise.
41024         * m4/lchown.m4: Likewise.
41025         * m4/lcmessage.m4: Likewise.
41026         * m4/ldexpl.m4: Likewise.
41027         * m4/lib-ld.m4: Likewise.
41028         * m4/lib-link.m4: Likewise.
41029         * m4/libsigsegv.m4: Likewise.
41030         * m4/link-follow.m4: Likewise.
41031         * m4/localcharset.m4: Likewise.
41032         * m4/locale-fr.m4: Likewise.
41033         * m4/locale-ja.m4: Likewise.
41034         * m4/locale-tr.m4: Likewise.
41035         * m4/locale-zh.m4: Likewise.
41036         * m4/lock.m4: Likewise.
41037         * m4/longlong.m4: Likewise.
41038         * m4/ls-mntd-fs.m4: Likewise.
41039         * m4/lstat.m4: Likewise.
41040         * m4/malloc.m4: Likewise.
41041         * m4/mathl.m4: Likewise.
41042         * m4/mbrtowc.m4: Likewise.
41043         * m4/mbstate_t.m4: Likewise.
41044         * m4/mbswidth.m4: Likewise.
41045         * m4/memchr.m4: Likewise.
41046         * m4/memcmp.m4: Likewise.
41047         * m4/memcpy.m4: Likewise.
41048         * m4/memmem.m4: Likewise.
41049         * m4/memmove.m4: Likewise.
41050         * m4/mempcpy.m4: Likewise.
41051         * m4/memrchr.m4: Likewise.
41052         * m4/memset.m4: Likewise.
41053         * m4/minmax.m4: Likewise.
41054         * m4/mkdir-slash.m4: Likewise.
41055         * m4/mkdtemp.m4: Likewise.
41056         * m4/mktime.m4: Likewise.
41057         * m4/mmap-anon.m4: Likewise.
41058         * m4/mountlist.m4: Likewise.
41059         * m4/nanosleep.m4: Likewise.
41060         * m4/nls.m4: Likewise.
41061         * m4/nocrash.m4: Likewise.
41062         * m4/open.m4: Likewise.
41063         * m4/openat.m4: Likewise.
41064         * m4/openmp.m4: Likewise.
41065         * m4/pathmax.m4: Likewise.
41066         * m4/perl.m4: Likewise.
41067         * m4/physmem.m4: Likewise.
41068         * m4/pipe.m4: Likewise.
41069         * m4/po.m4: Likewise.
41070         * m4/poll.m4: Likewise.
41071         * m4/posixtm.m4: Likewise.
41072         * m4/posixver.m4: Likewise.
41073         * m4/printf-frexp.m4: Likewise.
41074         * m4/printf-frexpl.m4: Likewise.
41075         * m4/printf-posix.m4: Likewise.
41076         * m4/printf-posix-rpl.m4: Likewise.
41077         * m4/printf.m4: Likewise.
41078         * m4/progtest.m4: Likewise.
41079         * m4/putenv.m4: Likewise.
41080         * m4/readline.m4: Likewise.
41081         * m4/readlink.m4: Likewise.
41082         * m4/readutmp.m4: Likewise.
41083         * m4/realloc.m4: Likewise.
41084         * m4/regex.m4: Likewise.
41085         * m4/relocatable.m4: Likewise.
41086         * m4/relocatable-lib.m4: Likewise.
41087         * m4/rename-dest-slash.m4: Likewise.
41088         * m4/rename.m4: Likewise.
41089         * m4/rmdir-errno.m4: Likewise.
41090         * m4/rmdir.m4: Likewise.
41091         * m4/roundf.m4: Likewise.
41092         * m4/roundl.m4: Likewise.
41093         * m4/rpmatch.m4: Likewise.
41094         * m4/save-cwd.m4: Likewise.
41095         * m4/selinux-selinux-h.m4: Likewise.
41096         * m4/setenv.m4: Likewise.
41097         * m4/settime.m4: Likewise.
41098         * m4/sig2str.m4: Likewise.
41099         * m4/sig_atomic_t.m4: Likewise.
41100         * m4/signalblocking.m4: Likewise.
41101         * m4/signbit.m4: Likewise.
41102         * m4/sigpipe.m4: Likewise.
41103         * m4/sockets.m4: Likewise.
41104         * m4/sockpfaf.m4: Likewise.
41105         * m4/st_dm_mode.m4: Likewise.
41106         * m4/stat-time.m4: Likewise.
41107         * m4/stdbool.m4: Likewise.
41108         * m4/stdint.m4: Likewise.
41109         * m4/stdint_h.m4: Likewise.
41110         * m4/stpcpy.m4: Likewise.
41111         * m4/stpncpy.m4: Likewise.
41112         * m4/strcase.m4: Likewise.
41113         * m4/strchrnul.m4: Likewise.
41114         * m4/strcspn.m4: Likewise.
41115         * m4/strdup.m4: Likewise.
41116         * m4/strftime.m4: Likewise.
41117         * m4/strndup.m4: Likewise.
41118         * m4/strnlen.m4: Likewise.
41119         * m4/strpbrk.m4: Likewise.
41120         * m4/strptime.m4: Likewise.
41121         * m4/strsep.m4: Likewise.
41122         * m4/strtod.m4: Likewise.
41123         * m4/strtoimax.m4: Likewise.
41124         * m4/strtok_r.m4: Likewise.
41125         * m4/strtol.m4: Likewise.
41126         * m4/strtoll.m4: Likewise.
41127         * m4/strtoul.m4: Likewise.
41128         * m4/strtoull.m4: Likewise.
41129         * m4/strtoumax.m4: Likewise.
41130         * m4/strverscmp.m4: Likewise.
41131         * m4/threadlib.m4: Likewise.
41132         * m4/timegm.m4: Likewise.
41133         * m4/tm_gmtoff.m4: Likewise.
41134         * m4/tmpdir.m4: Likewise.
41135         * m4/tmpfile.m4: Likewise.
41136         * m4/tzset.m4: Likewise.
41137         * m4/uintmax_t.m4: Likewise.
41138         * m4/unlinkdir.m4: Likewise.
41139         * m4/unlocked-io.m4: Likewise.
41140         * m4/uptime.m4: Likewise.
41141         * m4/userspec.m4: Likewise.
41142         * m4/utimbuf.m4: Likewise.
41143         * m4/utime.m4: Likewise.
41144         * m4/utimes-null.m4: Likewise.
41145         * m4/utimes.m4: Likewise.
41146         * m4/vararrays.m4: Likewise.
41147         * m4/vasnprintf.m4: Likewise.
41148         * m4/vfprintf-posix.m4: Likewise.
41149         * m4/vprintf-posix.m4: Likewise.
41150         * m4/wait-process.m4: Likewise.
41151         * m4/wchar_t.m4: Likewise.
41152         * m4/wint_t.m4: Likewise.
41153         * m4/write-any-file.m4: Likewise.
41154         * m4/yield.m4: Likewise.
41155
41156 2009-01-13  Bruno Haible  <bruno@clisp.org>
41157
41158         Avoid test-copy-file.sh failures when ACL support insufficient.
41159         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41160         TESTS_ENVIRONMENT.
41161         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41162         Reported by Jim Meyering.
41163
41164 2009-01-13  Bruno Haible  <bruno@clisp.org>
41165
41166         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41167         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41168         * modules/unistdio/u8-printf-parse (Files): Likewise.
41169         * modules/unistdio/u32-printf-parse (Files): Likewise.
41170         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41171
41172 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41173
41174         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41175         and m4/inttypes_h.m4 too.
41176
41177 2009-01-12  Eric Blake  <ebb9@byu.net>
41178
41179         tests: IRIX 6.2 cc can't compile -0.0 into .data
41180         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41181         rather than at compile-time.
41182         * tests/test-floorl.c (minus_zero): Likewise.
41183         * tests/test-frexpl.c (minus_zero): Likewise.
41184         * tests/test-isnan.c (minus_zerol): Likewise.
41185         * tests/test-isnanl.h (minus_zero): Likewise.
41186         * tests/test-ldexpl.c (minus_zero): Likewise.
41187         * tests/test-roundl.c (minus_zero): Likewise.
41188         * tests/test-signbit.c (minus_zerol): Likewise.
41189         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41190         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41191         * tests/test-truncl.c (minus_zero): Likewise.
41192         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41193         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41194         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41195
41196 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41197
41198         regex: fix glibc bug 9697
41199         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41200         handling.
41201
41202 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41203
41204         regex: fix glibc bug 697
41205         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41206         being NULL also if there are no backreferences.
41207
41208 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41209
41210         regex: merge glibc changes
41211         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41212         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41213         re_string_skip_chars, re_string_reconstruct): Likewise.
41214         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41215
41216 2009-01-07  Jim Meyering  <meyering@redhat.com>
41217
41218         poll: filter through cppi
41219         * lib/poll.c: Indent cpp directives to reflect nesting.
41220
41221 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41222
41223         poll: don't return uninitialized
41224         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41225
41226 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41227
41228         avoid compile failure on AIX 6.1
41229         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41230         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41231
41232 2009-01-04  Jim Meyering  <meyering@redhat.com>
41233
41234         remove duplicate inclusion of <stdio.h>
41235         * tests/test-fprintf-posix.c: Likewise.
41236         * tests/test-printf-posix.c: Likewise.
41237         * tests/test-snprintf-posix.c: Likewise.
41238         * tests/test-sprintf-posix.c: Likewise.
41239         * tests/test-vasprintf-posix.c: Likewise.
41240         * tests/test-vfprintf-posix.c: Likewise.
41241         * tests/test-vprintf-posix.c: Likewise.
41242         * tests/test-vsnprintf-posix.c: Likewise.
41243         * tests/test-vsprintf-posix.c: Likewise.
41244
41245 2009-01-03  Jim Meyering  <meyering@redhat.com>
41246
41247         gnulib-tool: fix sed-based filtering
41248         * gnulib-tool (func_filter_filelist): Remove extra backslash
41249         in sed_fff_filter definition.
41250
41251 2009-01-02  Jim Meyering  <meyering@redhat.com>
41252
41253         strftime: avoid compilation failure on Solaris 2.6
41254         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41255         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41256         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41257         be available.  Reported by Tom G. Christensen.  Details in
41258         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41259
41260 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41261             Bruno Haible  <bruno@clisp.org>
41262
41263         Speed up gnulib-tool by doing more string processing through shell
41264         built-ins.
41265         * gnulib-tool (fast_func_append): New variable.
41266         (func_remove_prefix, func_remove_suffix): New functions.
41267         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41268         (func_filter_filelist): New function.
41269         (func_get_dependencies): Use func_remove_suffix instead of sed.
41270         (func_get_automake_snippet): Use func_filter_filelist instead of a
41271         subshell and sed invocation.
41272
41273 2009-01-01  Bruno Haible  <bruno@clisp.org>
41274
41275         Fix a security bug.
41276         * gnulib-tool (func_import, import, update): Don't allow the characters
41277         '"', '$', '`', '\' in macro arguments that become part of commands that
41278         are evaluated.
41279
41280 2009-01-01  Bruno Haible  <bruno@clisp.org>
41281
41282         * gnulib-tool (func_reset_sigpipe): Add more comments.
41283
41284 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41285
41286         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41287         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41288         already know the answer.
41289
41290 2009-01-01  Jim Meyering  <meyering@redhat.com>
41291
41292         * lib/version-etc.c (version_etc_va): Update copyright year.
41293
41294 2008-12-30  Bruno Haible  <bruno@clisp.org>
41295
41296         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41297         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41298         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41299
41300 2008-12-29  Eric Blake  <ebb9@byu.net>
41301
41302         multiarch: avoid autoconf AC_REQUIRE bug
41303         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41304         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41305         2.63 and older.
41306         Reported by Bruno Haible, and analyzed in
41307         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41308
41309 2008-12-29  Bruno Haible  <bruno@clisp.org>
41310
41311         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41312         files in subdirectories correctly.
41313         Reported by Ralf Wildenhues.
41314
41315 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41316
41317         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41318         rather than 'join FILE -', for Solaris join.
41319
41320 2008-12-29  Bruno Haible  <bruno@clisp.org>
41321
41322         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41323         quoting.
41324         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41325         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41326         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41327         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41328         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41329         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41330         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41331         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41332         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41333         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41334         * m4/nls.m4 (AM_NLS): Likewise.
41335         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41336         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41337         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41338         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41339         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41340         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41341         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41342         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41343         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41344         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41345         * m4/xsize.m4 (gl_XSIZE): Likewise.
41346         Suggested by Jim Meyering.
41347
41348 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41349
41350         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41351         * lib/parse-duration.c: use a switch instead of cascading if's.
41352
41353 2008-12-29  Eric Blake  <ebb9@byu.net>
41354
41355         wchar.h: supply WEOF on Irix 5.3
41356         * lib/wchar.in.h (wint_t): Also supply WEOF.
41357         * lib/wctype.in.h (wint_t): Likewise.
41358         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41359         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41360         Reported by Tom G. Christensen.
41361
41362 2008-12-26  Bruno Haible  <bruno@clisp.org>
41363
41364         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41365         i486, i586, i686.
41366
41367 2008-12-26  Bruno Haible  <bruno@clisp.org>
41368
41369         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41370
41371 2008-12-26  Bruno Haible  <bruno@clisp.org>
41372
41373         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41374         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41375         not __STDC_CONSTANT_MACROS.
41376         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41377
41378 2008-12-25  Bruno Haible  <bruno@clisp.org>
41379
41380         Add support for universal builds to vasnprintf.
41381         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41382         universal builds, guess no.
41383         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41384         * modules/vasprintf-posix (Depends-on): Likewise.
41385         * modules/fprintf-posix (Depends-on): Likewise.
41386         * modules/vfprintf-posix (Depends-on): Likewise.
41387         * modules/snprintf-posix (Depends-on): Likewise.
41388         * modules/vsnprintf-posix (Depends-on): Likewise.
41389         * modules/sprintf-posix (Depends-on): Likewise.
41390         * modules/vsprintf-posix (Depends-on): Likewise.
41391         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41392         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41393         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41394         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41395         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41396         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41397         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41398
41399         Add support for universal builds to <inttypes.h>.
41400         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41401         _SCNu64_PREFIX): In Apple
41402         universal builds, define directly, using _LP64.
41403         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41404         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41405         * modules/inttypes (Depends-on): Add multiarch.
41406         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41407
41408         Add support for universal builds to <stdint.h>.
41409         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41410         universal builds, define directly, using _LP64.
41411         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41412         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41413         and size_t.
41414         * modules/stdint (Depends-on): Add multiarch.
41415         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41416
41417         New module 'multiarch'.
41418         * modules/multiarch: New file.
41419         * m4/multiarch.m4: New file.
41420
41421 2008-12-25  Bruno Haible  <bruno@clisp.org>
41422
41423         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41424
41425 2008-12-25  Bruno Haible  <bruno@clisp.org>
41426
41427         * modules/btowc (License): Relicense under LGPLv2+.
41428         * modules/mbsinit (License): Likewise.
41429         * modules/mbrtowc (License): Likewise.
41430         * modules/wcrtomb (License): Likewise.
41431         * modules/streq (License): Likewise.
41432         Reported by David Lutterkort <lutter@redhat.com>.
41433
41434 2008-12-23  Bruno Haible  <bruno@clisp.org>
41435
41436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41437
41438 2008-12-23  Bruno Haible  <bruno@clisp.org>
41439
41440         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41442         GETADDRINFO_LIB, not in LIBS.
41443         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41444         * modules/canon-host (Link): Likewise.
41445         * NEWS: Mention the change.
41446         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41447         GETADDRINFO_LIB.
41448
41449 2008-12-22  Bruno Haible  <bruno@clisp.org>
41450
41451         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41452         * doc/posix-functions/iswalpha_l.texi: Likewise.
41453         * doc/posix-functions/iswblank_l.texi: Likewise.
41454         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41455         * doc/posix-functions/iswctype_l.texi: Likewise.
41456         * doc/posix-functions/iswdigit_l.texi: Likewise.
41457         * doc/posix-functions/iswgraph_l.texi: Likewise.
41458         * doc/posix-functions/iswlower_l.texi: Likewise.
41459         * doc/posix-functions/iswprint_l.texi: Likewise.
41460         * doc/posix-functions/iswpunct_l.texi: Likewise.
41461         * doc/posix-functions/iswspace_l.texi: Likewise.
41462         * doc/posix-functions/iswupper_l.texi: Likewise.
41463         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41464         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41465         * doc/posix-functions/open_wmemstream.texi: Likewise.
41466         * doc/posix-functions/swscanf.texi: Likewise.
41467         * doc/posix-functions/towctrans_l.texi: Likewise.
41468         * doc/posix-functions/towlower.texi: Likewise.
41469         * doc/posix-functions/towlower_l.texi: Likewise.
41470         * doc/posix-functions/towupper.texi: Likewise.
41471         * doc/posix-functions/towupper_l.texi: Likewise.
41472         * doc/posix-functions/vfwprintf.texi: Likewise.
41473         * doc/posix-functions/vfwscanf.texi: Likewise.
41474         * doc/posix-functions/vswscanf.texi: Likewise.
41475         * doc/posix-functions/vwprintf.texi: Likewise.
41476         * doc/posix-functions/vwscanf.texi: Likewise.
41477         * doc/posix-functions/wcpcpy.texi: Likewise.
41478         * doc/posix-functions/wcpncpy.texi: Likewise.
41479         * doc/posix-functions/wcscasecmp.texi: Likewise.
41480         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41481         * doc/posix-functions/wcscoll_l.texi: Likewise.
41482         * doc/posix-functions/wcsdup.texi: Likewise.
41483         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41484         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41485         * doc/posix-functions/wcsnlen.texi: Likewise.
41486         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41487         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41488         * doc/posix-functions/wctrans_l.texi: Likewise.
41489         * doc/posix-functions/wctype_l.texi: Likewise.
41490         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41491         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41492         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41493         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41494         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41495         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41496         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41497         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41498         * doc/glibc-functions/wcschrnul.texi: Likewise.
41499         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41500         * doc/glibc-functions/wcstod_l.texi: Likewise.
41501         * doc/glibc-functions/wcstof_l.texi: Likewise.
41502         * doc/glibc-functions/wcstol_l.texi: Likewise.
41503         * doc/glibc-functions/wcstold_l.texi: Likewise.
41504         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41505         * doc/glibc-functions/wcstoq.texi: Likewise.
41506         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41507         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41508         * doc/glibc-functions/wcstouq.texi: Likewise.
41509         * doc/glibc-functions/wmempcpy.texi: Likewise.
41510
41511 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41512             Eric Blake  <ebb9@byu.net>
41513             Paolo Bonzini  <bonzini@gnu.org>
41514             Bruno Haible  <bruno@clisp.org>
41515
41516         Make c-stack work on Haiku.
41517         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41518         (c_stack_action): Use SA_ONSTACK flag.
41519
41520 2008-12-22  Bruno Haible  <bruno@clisp.org>
41521
41522         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41523
41524 2008-12-22  Bruno Haible  <bruno@clisp.org>
41525
41526         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41527         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41528         being overridden.
41529         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41530         New macros.
41531         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41533         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41534         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41535
41536 2008-12-22  Bruno Haible  <bruno@clisp.org>
41537
41538         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41539         from test code.
41540
41541 2008-12-22  Eric Blake  <ebb9@byu.net>
41542
41543         Avoid gcc warnings on cygwin.
41544         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41545         Avoid unused variable.
41546         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41547         Likewise.
41548
41549 2008-12-22  Bruno Haible  <bruno@clisp.org>
41550
41551         Remove HAVE_MBRTOWC conditionals.
41552         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41553         (mbscasecmp): Assume mbrtowc function.
41554         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41555         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41556         * lib/mbschr.c: Include mbuiter.h unconditionally.
41557         (mbschr): Assume mbrtowc function.
41558         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41559         (mbscspn): Assume mbrtowc function.
41560         * lib/mbslen.c: Include mbuiter.h unconditionally.
41561         (mbslen): Assume mbrtowc function.
41562         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41563         (mbsncasecmp): Assume mbrtowc function.
41564         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41565         (mbsnlen): Assume mbrtowc function.
41566         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41567         (mbspbrk): Assume mbrtowc function.
41568         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41569         (mbspcasecmp): Assume mbrtowc function.
41570         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41571         (mbsrchr): Assume mbrtowc function.
41572         * lib/mbssep.c: Include mbuiter.h unconditionally.
41573         (mbssep): Assume mbrtowc function.
41574         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41575         (mbsspn): Assume mbrtowc function.
41576         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41577         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41578         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41579         (mbstok_r): Assume mbrtowc function.
41580         * lib/propername.c: Include mbuiter.h unconditionally.
41581         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41582         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41583         (trim2): Assume mbrtowc function.
41584         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41585         (mbsnwidth): Assume mbrtowc function.
41586         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41587         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41588         fallback definitions.
41589         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41590
41591 2008-12-22  Bruno Haible  <bruno@clisp.org>
41592
41593         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41594
41595 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41596
41597         * modules/regex: Request emulations for the mb*/wc* functions we need.
41598         * m4/regex.m4: Don't look for those functions here.
41599         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41600
41601 2008-12-22  Bruno Haible  <bruno@clisp.org>
41602
41603         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41604
41605 2008-12-21  Bruno Haible  <bruno@clisp.org>
41606
41607         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41608         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41609         (Include): Remove conditionalization.
41610         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41611         (Include): Remove conditionalization.
41612         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41613         (Include): Remove conditionalization.
41614         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41615         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41616         * NEWS: Mention the change.
41617         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41618         via Sergey Poznyakoff <gray@gnu.org.ua>.
41619
41620 2008-12-21  Bruno Haible  <bruno@clisp.org>
41621
41622         * MODULES.html.sh (Extended multibyte and wide character utilities
41623         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41624         wcrtomb, wcsrtombs.
41625         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41626         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41627         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41628         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41629
41630 2008-12-21  Bruno Haible  <bruno@clisp.org>
41631
41632         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41633
41634 2008-12-21  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/wcsnrtombs-tests: New file.
41637         * tests/test-wcsnrtombs1.sh: New file.
41638         * tests/test-wcsnrtombs2.sh: New file.
41639         * tests/test-wcsnrtombs3.sh: New file.
41640         * tests/test-wcsnrtombs4.sh: New file.
41641         * tests/test-wcsnrtombs.c: New file.
41642
41643         New module 'wcsnrtombs'.
41644         * lib/wchar.in.h (wcsnrtombs): New declaration.
41645         * lib/wcsnrtombs.c: New file.
41646         * lib/wcsrtombs-state.c: New file.
41647         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41648         (internal_state): Remove variable.
41649         * m4/wcsnrtombs.m4: New file.
41650         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41651         compilation units.
41652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41653         HAVE_WCSNRTOMBS.
41654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41655         HAVE_WCSNRTOMBS.
41656         * modules/wcsnrtombs: New file.
41657         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41658         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41659
41660 2008-12-21  Bruno Haible  <bruno@clisp.org>
41661
41662         * modules/wcsrtombs-tests: New file.
41663         * tests/test-wcsrtombs1.sh: New file.
41664         * tests/test-wcsrtombs2.sh: New file.
41665         * tests/test-wcsrtombs3.sh: New file.
41666         * tests/test-wcsrtombs4.sh: New file.
41667         * tests/test-wcsrtombs.c: New file.
41668
41669         New module 'wcsrtombs'.
41670         * lib/wchar.in.h (wcsrtombs): New declaration.
41671         * lib/wcsrtombs.c: New file.
41672         * m4/wcsrtombs.m4: New file.
41673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41674         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41676         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41677         * modules/wcsrtombs: New file.
41678         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41679         bugs.
41680
41681 2008-12-21  Bruno Haible  <bruno@clisp.org>
41682
41683         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41684         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41685         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41686         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41687         if not correct.
41688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41689         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41690         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41691         m4/locale-zh.m4, m4/codeset.m4.
41692         * doc/posix-functions/wcrtomb.texi: Document the bug.
41693
41694 2008-12-21  Bruno Haible  <bruno@clisp.org>
41695
41696         Work around a btowc() bug on IRIX 6.5.
41697         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41698         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41699         REPLACE_WTOBC if not.
41700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41701         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41702         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41703
41704 2008-12-21  Bruno Haible  <bruno@clisp.org>
41705
41706         * modules/wcrtomb-tests: New file.
41707         * tests/test-wcrtomb.sh: New file.
41708         * tests/test-wcrtomb.c: New file.
41709
41710         New module 'wcrtomb'.
41711         * lib/wchar.in.h (wcrtomb): New declaration.
41712         * lib/wcrtomb.c: New file.
41713         * m4/wcrtomb.m4: New file.
41714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41715         HAVE_WCRTOMB.
41716         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41717         HAVE_WCRTOMB.
41718         * modules/wcrtomb: New file.
41719         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41720
41721 2008-12-21  Bruno Haible  <bruno@clisp.org>
41722
41723         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41724         * modules/mbsrtowcs (Files): Likewise.
41725         * modules/wctob (Files): Likewise.
41726         * modules/c-strcase-tests (Files): Likewise.
41727         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41728         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41729         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41730         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41731         * modules/vasnprintf-posix-tests (Files): Likewise.
41732
41733 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41734
41735         gitlog-to-changelog: pass all command-line arguments to git-log
41736         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41737         it is sometimes convenient to filter the commits in various ways.
41738         gitlog-to-changelog only allows --since to specify a start date,
41739         but git-log itself supports many other filtering mechanisms.
41740         At the moment, I want to filter by branch name.  Rather than
41741         adding a --branch option to gitlog-to-changelog, it seems more
41742         flexible to simply pass all options directly to git-log and let
41743         git do the work.  Notice that this effectively makes --since a
41744         redundant option for gitlog-to-changelog, but removing it would
41745         require current usage to change since calls would then require
41746         an additional '--'.
41747
41748 2008-12-21  Bruno Haible  <bruno@clisp.org>
41749
41750         * modules/mbsnrtowcs-tests: New file.
41751         * tests/test-mbsnrtowcs1.sh: New file.
41752         * tests/test-mbsnrtowcs2.sh: New file.
41753         * tests/test-mbsnrtowcs3.sh: New file.
41754         * tests/test-mbsnrtowcs4.sh: New file.
41755         * tests/test-mbsnrtowcs.c: New file.
41756
41757         New module 'mbsnrtowcs'.
41758         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41759         * lib/mbsnrtowcs.c: New file.
41760         * lib/mbsrtowcs-state.c: New file.
41761         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41762         (internal_state): Remove variable.
41763         * m4/mbsnrtowcs.m4: New file.
41764         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41765         compilation units.
41766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41767         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41768         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41769         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41770         * modules/mbsnrtowcs: New file.
41771         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41772         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41773         portability problem.
41774
41775 2008-12-21  Bruno Haible  <bruno@clisp.org>
41776
41777         Work around mbsrtowcs bug.
41778         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41779         (gl_FUNC_MBSRTOWCS): Invoke it.
41780         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41781         m4/locale-zh.m4.
41782         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41783
41784 2008-12-21  Bruno Haible  <bruno@clisp.org>
41785
41786         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41787
41788 2008-12-21  Bruno Haible  <bruno@clisp.org>
41789
41790         Update doc for AIX.
41791         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41792         16-bit wchar_t type.
41793         * doc/posix-functions/btowc.texi: Likewise.
41794         * doc/posix-functions/fgetwc.texi: Likewise.
41795         * doc/posix-functions/fgetws.texi: Likewise.
41796         * doc/posix-functions/fputwc.texi: Likewise.
41797         * doc/posix-functions/fputws.texi: Likewise.
41798         * doc/posix-functions/fwide.texi: Likewise.
41799         * doc/posix-functions/fwprintf.texi: Likewise.
41800         * doc/posix-functions/fwscanf.texi: Likewise.
41801         * doc/posix-functions/getwchar.texi: Likewise.
41802         * doc/posix-functions/getwc.texi: Likewise.
41803         * doc/posix-functions/iswalnum.texi: Likewise.
41804         * doc/posix-functions/iswalpha.texi: Likewise.
41805         * doc/posix-functions/iswblank.texi: Likewise.
41806         * doc/posix-functions/iswcntrl.texi: Likewise.
41807         * doc/posix-functions/iswctype.texi: Likewise.
41808         * doc/posix-functions/iswdigit.texi: Likewise.
41809         * doc/posix-functions/iswgraph.texi: Likewise.
41810         * doc/posix-functions/iswlower.texi: Likewise.
41811         * doc/posix-functions/iswprint.texi: Likewise.
41812         * doc/posix-functions/iswpunct.texi: Likewise.
41813         * doc/posix-functions/iswspace.texi: Likewise.
41814         * doc/posix-functions/iswupper.texi: Likewise.
41815         * doc/posix-functions/iswxdigit.texi: Likewise.
41816         * doc/posix-functions/mbrtowc.texi: Likewise.
41817         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41818         * doc/posix-functions/mbstowcs.texi: Likewise.
41819         * doc/posix-functions/mbtowc.texi: Likewise.
41820         * doc/posix-functions/putwchar.texi: Likewise.
41821         * doc/posix-functions/putwc.texi: Likewise.
41822         * doc/posix-functions/swprintf.texi: Likewise.
41823         * doc/posix-functions/tolower.texi: Likewise.
41824         * doc/posix-functions/toupper.texi: Likewise.
41825         * doc/posix-functions/towctrans.texi: Likewise.
41826         * doc/posix-functions/ungetwc.texi: Likewise.
41827         * doc/posix-functions/vswprintf.texi: Likewise.
41828         * doc/posix-functions/wcrtomb.texi: Likewise.
41829         * doc/posix-functions/wcscat.texi: Likewise.
41830         * doc/posix-functions/wcschr.texi: Likewise.
41831         * doc/posix-functions/wcscmp.texi: Likewise.
41832         * doc/posix-functions/wcscoll.texi: Likewise.
41833         * doc/posix-functions/wcscpy.texi: Likewise.
41834         * doc/posix-functions/wcscspn.texi: Likewise.
41835         * doc/posix-functions/wcsftime.texi: Likewise.
41836         * doc/posix-functions/wcslen.texi: Likewise.
41837         * doc/posix-functions/wcsncat.texi: Likewise.
41838         * doc/posix-functions/wcsncmp.texi: Likewise.
41839         * doc/posix-functions/wcsncpy.texi: Likewise.
41840         * doc/posix-functions/wcspbrk.texi: Likewise.
41841         * doc/posix-functions/wcsrchr.texi: Likewise.
41842         * doc/posix-functions/wcsrtombs.texi: Likewise.
41843         * doc/posix-functions/wcsspn.texi: Likewise.
41844         * doc/posix-functions/wcsstr.texi: Likewise.
41845         * doc/posix-functions/wcstod.texi: Likewise.
41846         * doc/posix-functions/wcstof.texi: Likewise.
41847         * doc/posix-functions/wcstoimax.texi: Likewise.
41848         * doc/posix-functions/wcstok.texi: Likewise.
41849         * doc/posix-functions/wcstold.texi: Likewise.
41850         * doc/posix-functions/wcstoll.texi: Likewise.
41851         * doc/posix-functions/wcstol.texi: Likewise.
41852         * doc/posix-functions/wcstombs.texi: Likewise.
41853         * doc/posix-functions/wcstoull.texi: Likewise.
41854         * doc/posix-functions/wcstoul.texi: Likewise.
41855         * doc/posix-functions/wcstoumax.texi: Likewise.
41856         * doc/posix-functions/wcswidth.texi: Likewise.
41857         * doc/posix-functions/wcsxfrm.texi: Likewise.
41858         * doc/posix-functions/wctob.texi: Likewise.
41859         * doc/posix-functions/wctomb.texi: Likewise.
41860         * doc/posix-functions/wctrans.texi: Likewise.
41861         * doc/posix-functions/wctype.texi: Likewise.
41862         * doc/posix-functions/wcwidth.texi: Likewise.
41863         * doc/posix-functions/wmemchr.texi: Likewise.
41864         * doc/posix-functions/wmemcmp.texi: Likewise.
41865         * doc/posix-functions/wmemcpy.texi: Likewise.
41866         * doc/posix-functions/wmemmove.texi: Likewise.
41867         * doc/posix-functions/wmemset.texi: Likewise.
41868         * doc/posix-functions/wprintf.texi: Likewise.
41869         * doc/posix-functions/wscanf.texi: Likewise.
41870
41871 2008-12-21  Bruno Haible  <bruno@clisp.org>
41872
41873         Update doc for HP-UX 11.11.
41874         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41875         in HP-UX version 11.00, not in all versions of HP-UX 11.
41876         * doc/posix-functions/fwide.texi: Likewise.
41877         * doc/posix-functions/fwprintf.texi: Likewise.
41878         * doc/posix-functions/fwscanf.texi: Likewise.
41879         * doc/posix-functions/inet_ntop.texi: Likewise.
41880         * doc/posix-functions/inet_pton.texi: Likewise.
41881         * doc/posix-functions/mbrlen.texi: Likewise.
41882         * doc/posix-functions/mbrtowc.texi: Likewise.
41883         * doc/posix-functions/mbsinit.texi: Likewise.
41884         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41885         * doc/posix-functions/swprintf.texi: Likewise.
41886         * doc/posix-functions/swscanf.texi: Likewise.
41887         * doc/posix-functions/towctrans.texi: Likewise.
41888         * doc/posix-functions/vfwprintf.texi: Likewise.
41889         * doc/posix-functions/vswprintf.texi: Likewise.
41890         * doc/posix-functions/vwprintf.texi: Likewise.
41891         * doc/posix-functions/wcrtomb.texi: Likewise.
41892         * doc/posix-functions/wcsrtombs.texi: Likewise.
41893         * doc/posix-functions/wcsstr.texi: Likewise.
41894         * doc/posix-functions/wctob.texi: Likewise.
41895         * doc/posix-functions/wctrans.texi: Likewise.
41896         * doc/posix-functions/wmemchr.texi: Likewise.
41897         * doc/posix-functions/wmemcmp.texi: Likewise.
41898         * doc/posix-functions/wmemcpy.texi: Likewise.
41899         * doc/posix-functions/wmemmove.texi: Likewise.
41900         * doc/posix-functions/wmemset.texi: Likewise.
41901         * doc/posix-functions/wprintf.texi: Likewise.
41902         * doc/posix-functions/wscanf.texi: Likewise.
41903
41904 2008-12-21  Bruno Haible  <bruno@clisp.org>
41905
41906         Work around a portability problem.
41907         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41908         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41909
41910 2008-12-20  Bruno Haible  <bruno@clisp.org>
41911
41912         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41913         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41914         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41916         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41917
41918         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41919         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41920         set.
41921         (GNULIB_defined_mbstate_t): New macro.
41922         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41923         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41924         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41925         reuses the system's mbrtowc function but works around the bugs.
41926         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41927         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41928         macros.
41929         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41930         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41931         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41932         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41933         REPLACE_MBSINIT if mbsinit needs to be overridden.
41934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41935         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41936         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41937         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41938         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41939         m4/locale-zh.m4.
41940         (Depends): Add mbsinit.
41941         * modules/mbsinit (Depends): Add mbrtowc.
41942         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41943
41944 2008-12-20  Bruno Haible  <bruno@clisp.org>
41945
41946         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41947         so that there are no conversion errors on AIX.
41948         * tests/test-mbsrtowcs.c (main): LIkewise.
41949
41950 2008-12-20  Bruno Haible  <bruno@clisp.org>
41951
41952         Work around wctob bug on Solaris <= 9.
41953         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41954         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41956         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41957         * modules/wctob (Files): Add m4/locale-fr.m4.
41958         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41959
41960 2008-12-20  Bruno Haible  <bruno@clisp.org>
41961
41962         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41963         /dev/null.
41964         * tests/test-select-in.sh: Likewise.
41965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41966
41967 2008-12-20  Bruno Haible  <bruno@clisp.org>
41968
41969         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41970         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41971         Cygwin 1.5.x.
41972
41973 2008-12-20  Bruno Haible  <bruno@clisp.org>
41974
41975         Ensure mbstate_t is defined on HP-UX 11.11.
41976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41977         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41978         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41979         AC_USE_SYSTEM_EXTENSIONS.
41980         * modules/fnmatch (Depends-on): Add extensions.
41981         * modules/mbrlen (Depends-on): Likewise.
41982         * modules/mbrtowc (Depends-on): Likewise.
41983         * modules/mbsinit (Depends-on): Likewise.
41984         * modules/mbsrtowcs (Depends-on): Likewise.
41985         * modules/mbswidth (Depends-on): Likewise.
41986         * modules/quotearg (Depends-on): Likewise.
41987         * modules/strftime (Depends-on): Likewise.
41988
41989 2008-12-20  Bruno Haible  <bruno@clisp.org>
41990
41991         Ensure wctob is declared on IRIX 6.5.
41992         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41993         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41994         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41996         of HAVE_WCTOB.
41997         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41998         HAVE_WCTOB.
41999         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42000
42001 2008-12-19  Bruno Haible  <bruno@clisp.org>
42002
42003         * modules/mbsrtowcs-tests: New file.
42004         * tests/test-mbsrtowcs1.sh: New file.
42005         * tests/test-mbsrtowcs2.sh: New file.
42006         * tests/test-mbsrtowcs3.sh: New file.
42007         * tests/test-mbsrtowcs4.sh: New file.
42008         * tests/test-mbsrtowcs.c: New file.
42009
42010         New module 'mbsrtowcs'.
42011         * lib/wchar.in.h (mbsrtowcs): New declaration.
42012         * lib/mbsrtowcs.c: New file.
42013         * m4/mbsrtowcs.m4: New file.
42014         * modules/mbsrtowcs: New file.
42015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42016         HAVE_MBSRTOWCS.
42017         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42018         HAVE_MBSRTOWCS.
42019         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42020
42021 2008-12-19  Bruno Haible  <bruno@clisp.org>
42022
42023         New module 'mbrlen'.
42024         * lib/wchar.in.h (mbrlen): New declaration.
42025         * lib/mbrlen.c: New file.
42026         * m4/mbrlen.m4: New file.
42027         * modules/mbrlen: New file.
42028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42029         HAVE_MBRLEN.
42030         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42031         HAVE_MBRLEN.
42032         * doc/posix-functions/mbrlen.texi: Document the new module.
42033
42034 2008-12-19  Bruno Haible  <bruno@clisp.org>
42035
42036         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42037         * modules/mbrtowc (Depends-on): Add verify.
42038         Suggested by Paul Eggert.
42039
42040 2008-12-18  Bruno Haible  <bruno@clisp.org>
42041
42042         * modules/mbsinit-tests: New file.
42043         * tests/test-mbsinit.sh: New file.
42044         * tests/test-mbsinit.c: New file.
42045
42046 2008-12-18  Bruno Haible  <bruno@clisp.org>
42047
42048         * modules/mbrtowc-tests: New file.
42049         * tests/test-mbrtowc1.sh: New file.
42050         * tests/test-mbrtowc2.sh: New file.
42051         * tests/test-mbrtowc3.sh: New file.
42052         * tests/test-mbrtowc4.sh: New file.
42053         * tests/test-mbrtowc.c: New file.
42054
42055         New module 'mbrtowc'.
42056         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42057         mbsinit and mbrtowc.
42058         (mbrtowc): New declaration.
42059         * lib/mbrtowc.c: New file.
42060         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42061         * modules/mbrtowc: New file.
42062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42063         HAVE_MBRTOWC.
42064         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42065         HAVE_MBRTOWC.
42066         * doc/posix-functions/mbrtowc.texi: Document the new module.
42067
42068 2008-12-18  Bruno Haible  <bruno@clisp.org>
42069
42070         New module 'wctob'.
42071         * lib/wchar.in.h (wctob): New declaration.
42072         * lib/wctob.c: New file.
42073         * m4/wctob.m4: New file.
42074         * modules/wctob: New file.
42075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42076         HAVE_WCTOB.
42077         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42078         * doc/posix-functions/wctob.texi: Document the new module.
42079
42080 2008-12-18  Bruno Haible  <bruno@clisp.org>
42081
42082         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42083         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42084
42085 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42086
42087         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42088         G. Christensen" <tgc@jupiterrise.com>.
42089
42090         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42091         G. Christensen" <tgc@jupiterrise.com>.
42092
42093         * lib/flock.c: Need to include string.h.  Reported by "Tom
42094         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42095         <ebb9@byu.net>.
42096
42097 2008-12-18  Bruno Haible  <bruno@clisp.org>
42098
42099         * m4/locale-ja.m4: New file, from GNU gettext.
42100
42101 2008-12-17  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42104         Suggested by Eric Blake.
42105
42106 2008-12-17  Bruno Haible  <bruno@clisp.org>
42107
42108         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42109
42110 2008-12-17  Bruno Haible  <bruno@clisp.org>
42111
42112         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42113         * modules/mbsinit (Depends-on): Add verify.
42114         Suggested by Paul Eggert.
42115
42116 2008-12-17  Bruno Haible  <bruno@clisp.org>
42117
42118         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42119         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42120         gl_FUNC_MBRTOWC.
42121         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42122         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42123         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42124         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42125         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42126         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42127         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42128         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42129         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42130         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42131         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42132         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42133         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42134         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42135         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42137         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42138         * modules/trim (configure.ac): Likewise.
42139
42140 2008-12-17  Bruno Haible  <bruno@clisp.org>
42141
42142         * modules/btowc-tests: New file.
42143         * tests/test-btowc1.sh: New file.
42144         * tests/test-btowc2.sh: New file.
42145         * tests/test-btowc.c: New file.
42146
42147         New module 'btowc'.
42148         * lib/wchar.in.h (btowc): New declaration.
42149         * lib/btowc.c: New file.
42150         * m4/btowc.m4: New file.
42151         * modules/btowc: New file.
42152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42153         HAVE_BTOWC.
42154         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42155         * doc/posix-functions/btowc.texi: Document the new module.
42156
42157 2008-12-17  Bruno Haible  <bruno@clisp.org>
42158
42159         New module 'mbsinit'.
42160         * lib/wchar.in.h (mbsinit): New declaration.
42161         * lib/mbsinit.c: New file.
42162         * m4/mbsinit.m4: New file.
42163         * modules/mbsinit: New file.
42164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42165         HAVE_MBSINIT.
42166         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42167         HAVE_MBSINIT.
42168         * doc/posix-functions/mbsinit.texi: Document the new module.
42169
42170 2008-12-16  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/unistd.in.h: Add comment.
42173         * tests/test-environ.c: Don't include <stdlib.h>.
42174
42175 2008-12-16  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/parse-duration.h (parse_duration): Document return value
42178         convention.
42179         * lib/parse-duration.c: Include specification header first. Add
42180         comments.
42181         (_): Remove macro.
42182         (parse_year_month_day, parse_hour_minute_second): Move side effects
42183         outside of strchr call.
42184         (parse_non_iso8601): Move side effects outside of isspace call.
42185         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42186         call.
42187
42188 2008-12-16  Bruno Haible  <bruno@clisp.org>
42189
42190         * tests/test-parse-duration.sh: Produce no output when the test
42191         succeeds.
42192
42193 2008-12-16  Bruno Haible  <bruno@clisp.org>
42194
42195         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42196         expressions.
42197
42198 2008-12-15  Bruno Haible  <bruno@clisp.org>
42199
42200         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42201         * doc/glibc-functions/flistxattr.texi: Likewise.
42202         * doc/glibc-functions/fopencookie.texi: Likewise.
42203         * doc/glibc-functions/fremovexattr.texi: Likewise.
42204         * doc/glibc-functions/fsetxattr.texi: Likewise.
42205         * doc/glibc-functions/getxattr.texi: Likewise.
42206         * doc/glibc-functions/lgetxattr.texi: Likewise.
42207         * doc/glibc-functions/listxattr.texi: Likewise.
42208         * doc/glibc-functions/llistxattr.texi: Likewise.
42209         * doc/glibc-functions/lremovexattr.texi: Likewise.
42210         * doc/glibc-functions/lsetxattr.texi: Likewise.
42211         * doc/glibc-functions/removexattr.texi: Likewise.
42212         * doc/glibc-functions/setxattr.texi: Likewise.
42213         * doc/posix-functions/open_memstream.texi: Likewise.
42214
42215 2008-12-15  Eric Blake  <ebb9@byu.net>
42216
42217         Update doc for cygwin 1.7.
42218         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42219         functions.
42220         * doc/posix-functions/fchmodat.texi: Likewise.
42221         * doc/posix-functions/fchownat.texi: Likewise.
42222         * doc/posix-functions/fdopendir.texi: Likewise.
42223         * doc/posix-functions/fmemopen.texi: Likewise.
42224         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42225         * doc/posix-functions/fstatat.texi: Likewise.
42226         * doc/posix-functions/futimens.texi: Likewise.
42227         * doc/posix-functions/gai_strerror.texi: Likewise.
42228         * doc/posix-functions/getaddrinfo.texi: Likewise.
42229         * doc/posix-functions/getnameinfo.texi: Likewise.
42230         * doc/posix-functions/if_freenameindex.texi: Likewise.
42231         * doc/posix-functions/if_indextoname.texi: Likewise.
42232         * doc/posix-functions/if_nameindex.texi: Likewise.
42233         * doc/posix-functions/if_nametoindex.texi: Likewise.
42234         * doc/posix-functions/insque.texi: Likewise.
42235         * doc/posix-functions/linkat.texi: Likewise.
42236         * doc/posix-functions/llrint.texi: Likewise.
42237         * doc/posix-functions/llrintf.texi: Likewise.
42238         * doc/posix-functions/llrintl.texi: Likewise.
42239         * doc/posix-functions/lockf.texi: Likewise.
42240         * doc/posix-functions/lrintl.texi: Likewise.
42241         * doc/posix-functions/mkdirat.texi: Likewise.
42242         * doc/posix-functions/mkfifoat.texi: Likewise.
42243         * doc/posix-functions/mknodat.texi: Likewise.
42244         * doc/posix-functions/mq_close.texi: Likewise.
42245         * doc/posix-functions/mq_getattr.texi: Likewise.
42246         * doc/posix-functions/mq_notify.texi: Likewise.
42247         * doc/posix-functions/mq_open.texi: Likewise.
42248         * doc/posix-functions/mq_receive.texi: Likewise.
42249         * doc/posix-functions/mq_send.texi: Likewise.
42250         * doc/posix-functions/mq_setattr.texi: Likewise.
42251         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42252         * doc/posix-functions/mq_timedsend.texi: Likewise.
42253         * doc/posix-functions/mq_unlink.texi: Likewise.
42254         * doc/posix-functions/open_memstream.texi: Likewise.
42255         * doc/posix-functions/openat.texi: Likewise.
42256         * doc/posix-functions/posix_fadvise.texi: Likewise.
42257         * doc/posix-functions/posix_fallocate.texi: Likewise.
42258         * doc/posix-functions/posix_madvise.texi: Likewise.
42259         * doc/posix-functions/posix_memalign.texi: Likewise.
42260         * doc/posix-functions/posix_openpt.texi: Likewise.
42261         * doc/posix-functions/readlinkat.texi: Likewise.
42262         * doc/posix-functions/remque.texi: Likewise.
42263         * doc/posix-functions/renameat.texi: Likewise.
42264         * doc/posix-functions/rintl.texi: Likewise.
42265         * doc/posix-functions/sem_unlink.texi: Likewise.
42266         * doc/posix-functions/shm_open.texi: Likewise.
42267         * doc/posix-functions/shm_unlink.texi: Likewise.
42268         * doc/posix-functions/signgam.texi: Likewise.
42269         * doc/posix-functions/sigset.texi: Likewise.
42270         * doc/posix-functions/stpcpy.texi: Likewise.
42271         * doc/posix-functions/stpncpy.texi: Likewise.
42272         * doc/posix-functions/strerror.texi: Likewise.
42273         * doc/posix-functions/strtod.texi: Likewise.
42274         * doc/posix-functions/symlinkat.texi: Likewise.
42275         * doc/posix-functions/unlinkat.texi: Likewise.
42276         * doc/posix-functions/utimensat.texi: Likewise.
42277         * doc/glibc-functions/bindresvport.texi: Likewise.
42278         * doc/glibc-functions/dn_expand.texi: Likewise.
42279         * doc/glibc-functions/exp10.texi: Likewise.
42280         * doc/glibc-functions/exp10f.texi: Likewise.
42281         * doc/glibc-functions/fgetxattr.texi: Likewise.
42282         * doc/glibc-functions/flistxattr.texi: Likewise.
42283         * doc/glibc-functions/fopencookie.texi: Likewise.
42284         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42285         * doc/glibc-functions/fremovexattr.texi: Likewise.
42286         * doc/glibc-functions/fsetxattr.texi: Likewise.
42287         * doc/glibc-functions/getifaddrs.texi: Likewise.
42288         * doc/glibc-functions/getxattr.texi: Likewise.
42289         * doc/glibc-functions/lgetxattr.texi: Likewise.
42290         * doc/glibc-functions/listxattr.texi: Likewise.
42291         * doc/glibc-functions/llistxattr.texi: Likewise.
42292         * doc/glibc-functions/lremovexattr.texi: Likewise.
42293         * doc/glibc-functions/lsetxattr.texi: Likewise.
42294         * doc/glibc-functions/pow10.texi: Likewise.
42295         * doc/glibc-functions/pow10f.texi: Likewise.
42296         * doc/glibc-functions/rcmd_af.texi: Likewise.
42297         * doc/glibc-functions/removexattr.texi: Likewise.
42298         * doc/glibc-functions/res_init.texi: Likewise.
42299         * doc/glibc-functions/res_mkquery.texi: Likewise.
42300         * doc/glibc-functions/res_query.texi: Likewise.
42301         * doc/glibc-functions/res_querydomain.texi: Likewise.
42302         * doc/glibc-functions/res_send.texi: Likewise.
42303         * doc/glibc-functions/rresvport_af.texi: Likewise.
42304         * doc/glibc-functions/setxattr.texi: Likewise.
42305         * doc/glibc-functions/strcasestr.texi: Likewise.
42306
42307 2008-12-15  Bruno Haible  <bruno@clisp.org>
42308
42309         Fix compilation error on OSF/1 4.0.
42310         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42311         <sys/time.h>, simply delegate to the system header.
42312         Reported by Daniel Richard G. <oss@teragram.com>.
42313
42314 2008-12-15  Bruno Haible  <bruno@clisp.org>
42315
42316         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42317         * doc/posix-functions/fchmodat.texi: Likewise.
42318         * doc/posix-functions/fchownat.texi: Likewise.
42319         * doc/posix-functions/fdopendir.texi: Likewise.
42320         * doc/posix-functions/fstatat.texi: Likewise.
42321         * doc/posix-functions/mkdirat.texi: Likewise.
42322         * doc/posix-functions/unlinkat.texi: Likewise.
42323
42324 2008-12-14  Bruno Haible  <bruno@clisp.org>
42325
42326         Update doc for POSIX:2008.
42327         * doc/posix-functions/faccessat.texi: New file.
42328         * doc/posix-functions/fchmodat.texi: New file.
42329         * doc/posix-functions/fchownat.texi: New file.
42330         * doc/posix-functions/fdopendir.texi: New file.
42331         * doc/posix-functions/fstatat.texi: New file.
42332         * doc/posix-functions/futimens.texi: New file.
42333         * doc/posix-functions/linkat.texi: New file.
42334         * doc/posix-functions/mkdirat.texi: New file.
42335         * doc/posix-functions/mkfifoat.texi: New file.
42336         * doc/posix-functions/mknodat.texi: New file.
42337         * doc/posix-functions/open_wmemstream.texi: New file.
42338         * doc/posix-functions/openat.texi: New file.
42339         * doc/posix-functions/psiginfo.texi: New file.
42340         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42341         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42342         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42343         * doc/posix-functions/readlinkat.texi: New file.
42344         * doc/posix-functions/renameat.texi: New file.
42345         * doc/posix-functions/strerror_l.texi: New file.
42346         * doc/posix-functions/symlinkat.texi: New file.
42347         * doc/posix-functions/unlinkat.texi: New file.
42348         * doc/posix-functions/utimensat.texi: New file.
42349         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42350
42351 2008-12-14  Bruno Haible  <bruno@clisp.org>
42352
42353         Update doc for POSIX:2008.
42354         * doc/posix-functions/alphasort.texi: Renamed from
42355         doc/glibc-functions/alphasort.texi.
42356         * doc/posix-functions/dirfd.texi: Renamed from
42357         doc/glibc-functions/dirfd.texi.
42358         * doc/posix-functions/dprintf.texi: Renamed from
42359         doc/glibc-functions/dprintf.texi.
42360         * doc/posix-functions/duplocale.texi: Renamed from
42361         doc/glibc-functions/duplocale.texi.
42362         * doc/posix-functions/fexecve.texi: Renamed from
42363         doc/glibc-functions/fexecve.texi.
42364         * doc/posix-functions/fmemopen.texi: Renamed from
42365         doc/glibc-functions/fmemopen.texi.
42366         * doc/posix-functions/freelocale.texi: Renamed from
42367         doc/glibc-functions/freelocale.texi.
42368         * doc/posix-functions/getdate_err.texi: Renamed from
42369         doc/glibc-functions/getdate_err.texi.
42370         * doc/posix-functions/isalnum_l.texi: Renamed from
42371         doc/glibc-functions/isalnum_l.texi.
42372         * doc/posix-functions/isalpha_l.texi: Renamed from
42373         doc/glibc-functions/isalpha_l.texi.
42374         * doc/posix-functions/isblank_l.texi: Renamed from
42375         doc/glibc-functions/isblank_l.texi.
42376         * doc/posix-functions/iscntrl_l.texi: Renamed from
42377         doc/glibc-functions/iscntrl_l.texi.
42378         * doc/posix-functions/isdigit_l.texi: Renamed from
42379         doc/glibc-functions/isdigit_l.texi.
42380         * doc/posix-functions/isgraph_l.texi: Renamed from
42381         doc/glibc-functions/isgraph_l.texi.
42382         * doc/posix-functions/islower_l.texi: Renamed from
42383         doc/glibc-functions/islower_l.texi.
42384         * doc/posix-functions/isprint_l.texi: Renamed from
42385         doc/glibc-functions/isprint_l.texi.
42386         * doc/posix-functions/ispunct_l.texi: Renamed from
42387         doc/glibc-functions/ispunct_l.texi.
42388         * doc/posix-functions/isspace_l.texi: Renamed from
42389         doc/glibc-functions/isspace_l.texi.
42390         * doc/posix-functions/isupper_l.texi: Renamed from
42391         doc/glibc-functions/isupper_l.texi.
42392         * doc/posix-functions/iswalnum_l.texi: Renamed from
42393         doc/glibc-functions/iswalnum_l.texi.
42394         * doc/posix-functions/iswalpha_l.texi: Renamed from
42395         doc/glibc-functions/iswalpha_l.texi.
42396         * doc/posix-functions/iswblank_l.texi: Renamed from
42397         doc/glibc-functions/iswblank_l.texi.
42398         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42399         doc/glibc-functions/iswcntrl_l.texi.
42400         * doc/posix-functions/iswctype_l.texi: Renamed from
42401         doc/glibc-functions/iswctype_l.texi.
42402         * doc/posix-functions/iswdigit_l.texi: Renamed from
42403         doc/glibc-functions/iswdigit_l.texi.
42404         * doc/posix-functions/iswgraph_l.texi: Renamed from
42405         doc/glibc-functions/iswgraph_l.texi.
42406         * doc/posix-functions/iswlower_l.texi: Renamed from
42407         doc/glibc-functions/iswlower_l.texi.
42408         * doc/posix-functions/iswprint_l.texi: Renamed from
42409         doc/glibc-functions/iswprint_l.texi.
42410         * doc/posix-functions/iswpunct_l.texi: Renamed from
42411         doc/glibc-functions/iswpunct_l.texi.
42412         * doc/posix-functions/iswspace_l.texi: Renamed from
42413         doc/glibc-functions/iswspace_l.texi.
42414         * doc/posix-functions/iswupper_l.texi: Renamed from
42415         doc/glibc-functions/iswupper_l.texi.
42416         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42417         doc/glibc-functions/iswxdigit_l.texi.
42418         * doc/posix-functions/isxdigit_l.texi: Renamed from
42419         doc/glibc-functions/isxdigit_l.texi.
42420         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42421         doc/glibc-functions/mbsnrtowcs.texi.
42422         * doc/posix-functions/mkdtemp.texi: Renamed from
42423         doc/glibc-functions/mkdtemp.texi.
42424         * doc/posix-functions/newlocale.texi: Renamed from
42425         doc/glibc-functions/newlocale.texi.
42426         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42427         doc/glibc-functions/nl_langinfo_l.texi.
42428         * doc/posix-functions/open_memstream.texi: Renamed from
42429         doc/glibc-functions/open_memstream.texi.
42430         * doc/posix-functions/opterr.texi: Renamed from
42431         doc/glibc-functions/opterr.texi.
42432         * doc/posix-functions/optind.texi: Renamed from
42433         doc/glibc-functions/optind.texi.
42434         * doc/posix-functions/optopt.texi: Renamed from
42435         doc/glibc-functions/optopt.texi.
42436         * doc/posix-functions/psignal.texi: Renamed from
42437         doc/glibc-functions/psignal.texi.
42438         * doc/posix-functions/scandir.texi: Renamed from
42439         doc/glibc-functions/scandir.texi.
42440         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42441         doc/glibc-functions/sched_get_priority_min.texi.
42442         * doc/posix-functions/signgam.texi: Renamed from
42443         doc/glibc-functions/signgam.texi.
42444         * doc/posix-functions/stpcpy.texi: Renamed from
42445         doc/glibc-functions/stpcpy.texi.
42446         * doc/posix-functions/stpncpy.texi: Renamed from
42447         doc/glibc-functions/stpncpy.texi.
42448         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42449         doc/glibc-functions/strcasecmp_l.texi.
42450         * doc/posix-functions/strcoll_l.texi: Renamed from
42451         doc/glibc-functions/strcoll_l.texi.
42452         * doc/posix-functions/strfmon_l.texi: Renamed from
42453         doc/glibc-functions/strfmon_l.texi.
42454         * doc/posix-functions/strftime_l.texi: Renamed from
42455         doc/glibc-functions/strftime_l.texi.
42456         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42457         doc/glibc-functions/strncasecmp_l.texi.
42458         * doc/posix-functions/strndup.texi: Renamed from
42459         doc/glibc-functions/strndup.texi.
42460         * doc/posix-functions/strnlen.texi: Renamed from
42461         doc/glibc-functions/strnlen.texi.
42462         * doc/posix-functions/strsignal.texi: Renamed from
42463         doc/glibc-functions/strsignal.texi.
42464         * doc/posix-functions/strxfrm_l.texi: Renamed from
42465         doc/glibc-functions/strxfrm_l.texi.
42466         * doc/posix-functions/timer_gettime.texi: Renamed from
42467         doc/glibc-functions/timer_gettime.texi.
42468         * doc/posix-functions/tolower_l.texi: Renamed from
42469         doc/glibc-functions/tolower_l.texi.
42470         * doc/posix-functions/toupper_l.texi: Renamed from
42471         doc/glibc-functions/toupper_l.texi.
42472         * doc/posix-functions/towctrans_l.texi: Renamed from
42473         doc/glibc-functions/towctrans_l.texi.
42474         * doc/posix-functions/towlower_l.texi: Renamed from
42475         doc/glibc-functions/towlower_l.texi.
42476         * doc/posix-functions/towupper_l.texi: Renamed from
42477         doc/glibc-functions/towupper_l.texi.
42478         * doc/posix-functions/uselocale.texi: Renamed from
42479         doc/glibc-functions/uselocale.texi.
42480         * doc/posix-functions/vdprintf.texi: Renamed from
42481         doc/glibc-functions/vdprintf.texi.
42482         * doc/posix-functions/wcpcpy.texi:
42483         Renamed from doc/glibc-functions/wcpcpy.texi.
42484         * doc/posix-functions/wcpncpy.texi: Renamed from
42485         doc/glibc-functions/wcpncpy.texi.
42486         * doc/posix-functions/wcscasecmp.texi: Renamed from
42487         doc/glibc-functions/wcscasecmp.texi.
42488         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42489         doc/glibc-functions/wcscasecmp_l.texi.
42490         * doc/posix-functions/wcscoll_l.texi: Renamed from
42491         doc/glibc-functions/wcscoll_l.texi.
42492         * doc/posix-functions/wcsdup.texi: Renamed from
42493         doc/glibc-functions/wcsdup.texi.
42494         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42495         doc/glibc-functions/wcsncasecmp.texi.
42496         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42497         doc/glibc-functions/wcsncasecmp_l.texi.
42498         * doc/posix-functions/wcsnlen.texi: Renamed from
42499         doc/glibc-functions/wcsnlen.texi.
42500         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42501         doc/glibc-functions/wcsnrtombs.texi.
42502         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42503         doc/glibc-functions/wcsxfrm_l.texi.
42504         * doc/posix-functions/wctrans_l.texi: Renamed from
42505         doc/glibc-functions/wctrans_l.texi.
42506         * doc/posix-functions/wctype_l.texi: Renamed from
42507         doc/glibc-functions/wctype_l.texi.
42508         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42509         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42510         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42511         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42512         these subsections.
42513         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42514         Remove sections.
42515
42516 2008-12-14  Bruno Haible  <bruno@clisp.org>
42517
42518         Update doc for POSIX:2008.
42519         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42520
42521 2008-12-14  Bruno Haible  <bruno@clisp.org>
42522
42523         Update doc for POSIX:2008.
42524         * doc/pastposix-functions/bcmp.texi: Renamed from
42525         doc/posix-functions/bcmp.texi.
42526         * doc/pastposix-functions/bcopy.texi: Renamed from
42527         doc/posix-functions/bcopy.texi.
42528         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42529         doc/posix-functions/bsd_signal.texi.
42530         * doc/pastposix-functions/bzero.texi: Renamed from
42531         doc/posix-functions/bzero.texi.
42532         * doc/pastposix-functions/ecvt.texi: Renamed from
42533         doc/posix-functions/ecvt.texi.
42534         * doc/pastposix-functions/fcvt.texi: Renamed from
42535         doc/posix-functions/fcvt.texi.
42536         * doc/pastposix-functions/ftime.texi: Renamed from
42537         doc/posix-functions/ftime.texi.
42538         * doc/pastposix-functions/gcvt.texi: Renamed from
42539         doc/posix-functions/gcvt.texi.
42540         * doc/pastposix-functions/getcontext.texi: Renamed from
42541         doc/posix-functions/getcontext.texi.
42542         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42543         doc/posix-functions/gethostbyaddr.texi.
42544         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42545         doc/posix-functions/gethostbyname.texi.
42546         * doc/pastposix-functions/getwd.texi: Renamed from
42547         doc/posix-functions/getwd.texi.
42548         * doc/pastposix-functions/h_errno.texi: Renamed from
42549         doc/posix-functions/h_errno.texi.
42550         * doc/pastposix-functions/index.texi: Renamed from
42551         doc/posix-functions/index.texi.
42552         * doc/pastposix-functions/makecontext.texi: Renamed from
42553         doc/posix-functions/makecontext.texi.
42554         * doc/pastposix-functions/mktemp.texi: Renamed from
42555         doc/posix-functions/mktemp.texi.
42556         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42557         doc/posix-functions/pthread_attr_getstackaddr.texi.
42558         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42559         doc/posix-functions/pthread_attr_setstackaddr.texi.
42560         * doc/pastposix-functions/rindex.texi: Renamed from
42561         doc/posix-functions/rindex.texi.
42562         * doc/pastposix-functions/scalb.texi: Renamed from
42563         doc/posix-functions/scalb.texi.
42564         * doc/pastposix-functions/setcontext.texi: Renamed from
42565         doc/posix-functions/setcontext.texi.
42566         * doc/pastposix-functions/swapcontext.texi: Renamed from
42567         doc/posix-functions/swapcontext.texi.
42568         * doc/pastposix-functions/ualarm.texi: Renamed from
42569         doc/posix-functions/ualarm.texi.
42570         * doc/pastposix-functions/usleep.texi: Renamed from
42571         doc/posix-functions/usleep.texi.
42572         * doc/pastposix-functions/vfork.texi: Renamed from
42573         doc/posix-functions/vfork.texi.
42574         * doc/pastposix-functions/wcswcs.texi: Renamed from
42575         doc/posix-functions/wcswcs.texi.
42576         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42577         (Function Substitutes): Update.
42578
42579 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42580
42581         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42582         m4/strerror.m4.
42583
42584 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42585             Bruno Haible  <bruno@clisp.org>
42586
42587         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42588
42589 2008-12-13  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/strtoull (Depends-on): Remove unistd.
42592
42593 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42594
42595         * modules/strtoull (Depends-on): Add stdlib.
42596
42597 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42598
42599         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42600
42601 2008-12-10  Jim Meyering  <meyering@redhat.com>
42602
42603         gl_ASSERT: don't say assertions are disabled when they're not
42604         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42605         "checking whether to enable assertions... no", when they are in
42606         fact enabled.  This is solely a bug in the output of configure.
42607         In spite of saying "no", NDEBUG was not defined in that case.
42608         Also, as noted by Eric Blake, leave assertions enabled upon
42609         --enable-assert=INVALID.
42610
42611 2008-12-10  Bruno Haible  <bruno@clisp.org>
42612
42613         Change MODULES.html to refer to POSIX:2008 where possible.
42614         * MODULES.html.sh (POSIX2008_URL): New variable.
42615         (posix_headers): Remove sys/timeb, ucontext.
42616         (posix2001_headers): New variable.
42617         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42618         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42619         index, makecontext, mktemp, pthread_attr_getstackaddr,
42620         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42621         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42622         (posix2001_functions): New variable.
42623         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42624         otherwise.
42625
42626 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42627
42628         add missing include to parse-duration.c
42629         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42630         * modules/parse-duration (Depends-on): Add xalloc.
42631
42632         fix sed script reading maint.mk
42633         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42634         (syntax-check-rules): Use it.
42635
42636 2008-12-09  Bruno Haible  <bruno@clisp.org>
42637
42638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42639         MacOS X 10.4/PowerPC.
42640         Reported by Simon Josefsson.
42641
42642 2008-12-08  Jim Meyering  <meyering@redhat.com>
42643
42644         work around mingw's lack of some S_IF definitions
42645         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42646         Reported by Simon Josefsson.
42647
42648 2008-12-08  Bruno Haible  <bruno@clisp.org>
42649
42650         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42651         applied to variables. Needed on MacOS X 10.4/PowerPC.
42652         Reported by Simon Josefsson.
42653
42654 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42655         and Eric Blake  <ebb9@byu.net>
42656
42657         assert: honor --enable-assert
42658         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42659         order to honor --enable-assert, rather than treating it as a
42660         synonym for --disable-assert.
42661
42662 2008-12-08  Jim Meyering  <meyering@redhat.com>
42663
42664         * lib/posixtm.c: Remove now-useless declaration of mktime.
42665
42666         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42667
42668 2008-12-07  Bruno Haible  <bruno@clisp.org>
42669
42670         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42671         test_once): Mark functions as static.
42672         * tests/test-tls.c (test_tls): Likewise.
42673
42674 2008-12-07  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42677         iconv_register_autodetect.
42678
42679 2008-12-07  Jim Meyering  <meyering@redhat.com>
42680
42681         posixtm.c: avoid a warning
42682         * lib/posixtm.c (posixtime): Don't initialize tm0.
42683         It's no longer needed to placate gcc4's -Wuninitialized,
42684         and the attempt to placate would elicit a new warning.
42685
42686         unicodeio.c: mark unused parameters
42687         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42688         (fallback_failure_callback): Likewise.
42689
42690 2008-12-07  Bruno Haible  <bruno@clisp.org>
42691
42692         * gnulib-tool (func_create_testdir): When building the tests
42693         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42694         Reported by Simon Josefsson.
42695
42696 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42697
42698         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42699
42700 2008-12-06  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42703         Suggested by Eric Blake.
42704
42705 2008-12-06  Bruno Haible  <bruno@clisp.org>
42706
42707         Fix a c-stack test failure on MacOS X.
42708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42709         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42710         handler for SIGBUS as well.
42711         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42712         install a signal handler for SIGBUS as well.
42713         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42714
42715 2008-12-06  Bruno Haible  <bruno@clisp.org>
42716
42717         Advocacy documentation.
42718         * doc/gnulib-intro.texi (Benefits): New section.
42719         * doc/gnulib.texi: Update.
42720
42721 2008-12-06  Bruno Haible  <bruno@clisp.org>
42722
42723         Document the 'manywarnings' module.
42724         * doc/manywarnings.texi: New file.
42725         * doc/gnulib.texi: Include it.
42726
42727 2008-12-05  Eric Blake  <ebb9@byu.net>
42728
42729         tests: silence some gcc warnings
42730         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42731         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42732         type mismatches.
42733
42734 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42735             Bruno Haible  <bruno@clisp.org>
42736
42737         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42738
42739 2008-11-29  Jim Meyering  <meyering@redhat.com>
42740
42741         unicodeio.c: mark unused parameters
42742         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42743         (fallback_failure_callback): Likewise.
42744
42745         fts: fix a thinko
42746         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42747         (set_stat_type): Return S_IF*-valued "type" directly.
42748         Prompted by James Youngman's spotting a related bug.
42749         Confirmed by further testing through find.
42750
42751         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42752         * lib/fts.c (D_TYPE): Define.
42753         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42754         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42755         (s_ifmt_shift_bits): New function.
42756         (set_stat_type): New function.
42757         (fts_build): When not calling fts_stat, call set_stat_type
42758         to propagate dirent.d_type info to fts_read caller.
42759         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42760         fts_statp->st_mode type information may be valid.
42761
42762 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42763
42764         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42765         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42766         <sds@gnu.org>.
42767
42768 2008-11-20  Bruno Haible  <bruno@clisp.org>
42769
42770         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42771         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42772         INCLUDE_NEXT.
42773         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42774         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42775         * modules/math (Makefile.am): Substitute
42776         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42777         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42778
42779 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42780             Bruno Haible  <bruno@clisp.org>
42781
42782         * lib/stdint.in.h: Define all type macros so that their expansion is
42783         a single typedef'ed token. Fixes a compilation failure in Boost which
42784         does "using ::int8_t;".
42785
42786 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42787
42788         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42789         gl_MANYWARN_ALL_GCC.
42790         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42791         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42792         * modules/manywarnings: New file.
42793         * MODULES.html.sh: Mention manywarnings module.
42794
42795 2008-11-18  Bruno Haible  <bruno@clisp.org>
42796
42797         * doc/gnulib-tool.texi (Unit tests): New section.
42798
42799 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42800
42801         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42802         paths like 'lib/po/foo.po'.
42803
42804 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42805
42806         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42807         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42808
42809 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42810
42811         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42812         parameter works.
42813
42814 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42815
42816         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42817
42818 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42819
42820         * modules/parse-duration-tests: New file.
42821         * tests/test-parse-duration.sh: New file.
42822         * tests/test-parse-duration.c: New file.
42823
42824         New module 'parse-duration'.
42825         * lib/parse-duration.h: New file.
42826         * lib/parse-duration.c: New file.
42827         * modules/parse-duration: New file.
42828
42829 2008-11-17  Bruno Haible  <bruno@clisp.org>
42830
42831         * tests/test-select-out.sh: Comment out the first pipe test.
42832         Reported by Simon Josefsson.
42833
42834 2008-11-17  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42838         gl_HOSTENT.
42839
42840 2008-11-17  Bruno Haible  <bruno@clisp.org>
42841
42842         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42843         -lnetwork and -lnet. Needed for Haiku and BeOS.
42844
42845 2008-11-16  Bruno Haible  <bruno@clisp.org>
42846
42847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42848
42849 2008-11-16  Bruno Haible  <bruno@clisp.org>
42850
42851         Avoid test failure on Haiku.
42852         * tests/test-fsync.c: Include <errno.h>.
42853         (main): Don't require that fsync (0) fails.
42854
42855 2008-11-15  Bruno Haible  <bruno@clisp.org>
42856
42857         New module 'hostent'.
42858         * modules/hostent: New file.
42859         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42860
42861 2008-11-15  Bruno Haible  <bruno@clisp.org>
42862
42863         New module 'servent'.
42864         * modules/servent: New file.
42865         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42866
42867 2008-11-15  Bruno Haible  <bruno@clisp.org>
42868
42869         Avoid generating same test program with two different rules.
42870         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42871         test-frexp to test-frexp-nolibm.
42872         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42873         test-frexpl to test-frexpl-nolibm.
42874
42875 2008-11-15  Bruno Haible  <bruno@clisp.org>
42876
42877         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42878         $(FREXPL_LIBM).
42879
42880 2008-11-15  Bruno Haible  <bruno@clisp.org>
42881
42882         * lib/netdb.in.h: Activate the definitions also when the system's
42883         <netdb.h> has 'struct addrinfo'.
42884         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42885         EAI_OVERFLOW or AI_NUMERICSERV.
42886         * doc/posix-headers/netdb.texi: Document the problem.
42887
42888 2008-11-15  Bruno Haible  <bruno@clisp.org>
42889
42890         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42891
42892         Make the 'sched' module work on platforms where <sched.h> exists but
42893         is incomplete (such as Haiku).
42894         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42895         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42896         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42897         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42898         HAVE_STRUCT_SCHED_PARAM.
42899         * modules/sched (Depends-on): Add include_next.
42900         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42901         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42902         * doc/posix-headers/sched.texi: Document the issue.
42903
42904 2008-11-13  Jim Meyering  <meyering@redhat.com>
42905
42906         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42907         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42908         test would fail due to the difference in the Report bugs to ...
42909         line.  The expected address is empty, "<>", while the actual
42910         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42911
42912 2008-11-12  Bruno Haible  <bruno@clisp.org>
42913
42914         lstat: don't compile lstat.c on systems lacking lstat
42915         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42916         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42917         Reported by Daniel P. Berrange via Jim Meyering.
42918
42919 2008-11-12  Jim Meyering  <meyering@redhat.com>
42920
42921         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42922
42923 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42924
42925         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42926         instead.
42927
42928 2008-11-12  Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/unicodeio.c: Include unistr.h.
42931         (utf8_wctomb): Remove function.
42932         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42933
42934 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42935
42936         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42937         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42938         <bruno@clisp.org>.
42939         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42940
42941 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42942
42943         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42944         * doc/gnulib.texi: Add section for warnings.
42945
42946 2008-11-11  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/sockets.h: Add a comment.
42949
42950 2008-11-11  Karl Berry  <karl@gnu.org>
42951
42952         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42953
42954 2008-11-11  Eric Blake  <ebb9@byu.net>
42955
42956         fdl.texi: avoid git symlinks
42957         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42958
42959 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42960
42961         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42962
42963 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42964
42965         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42966         (gl_WARN_ADD): Substitute $2 if literal.
42967
42968 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42969
42970         * m4/warning.m4: Remove.
42971
42972 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42973
42974         * m4/warnings.m4: Almost complete rewrite. :-)
42975
42976 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42977
42978         * modules/warnings: New module.
42979         * m4/warnings.m4: New file.
42980         * MODULES.html.sh: Mention warnings module.
42981         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42982         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42983
42984 2008-11-10  Eric Blake  <ebb9@byu.net>
42985
42986         fdl.texi: make a symlink to the latest version
42987         * doc/standards.texi: Revert today's earlier change.
42988         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42989         * doc/fdl.texi: ...and replace this with a symlink to the newer
42990         fdl-1.3.texi.
42991
42992 2008-11-10  Bruno Haible  <bruno@clisp.org>
42993
42994         * tests/test-select-fd.c (main): Accept the result file name as fourth
42995         argument.
42996         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42997         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42998
42999 2008-11-10  Bruno Haible  <bruno@clisp.org>
43000
43001         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43002         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43003         as autoconf-substituted macros.
43004         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43006         gl_NETDB_H_DEFAULTS. Set these variables.
43007         * modules/netdb (Makefile.am): Substitute these variables.
43008
43009 2008-11-10  Eric Blake  <ebb9@byu.net>
43010
43011         standards.texi: include correct file for FDL 1.3
43012         * doc/standards.texi (GNU Free Documentation License): Change
43013         include file to pull in FDL 1.3, not 1.2.
43014
43015         fdl.texi: revert accidental change to license
43016         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43017
43018 2008-11-10  Bruno Haible  <bruno@clisp.org>
43019
43020         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43021         cross-compiling guesses also when the native compile gives no result.
43022
43023 2008-11-10  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/spawni.c (__spawni): Force variable into the stack.
43026
43027 2008-11-10  Bruno Haible  <bruno@clisp.org>
43028
43029         Add support for Haiku.
43030         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43031         glibc and BeOS, but also on Haiku.
43032         * lib/fpurge.c (fpurge): Likewise.
43033         * lib/freadable.c (freadable): Likewise.
43034         * lib/freadahead.c (freadahead): Likewise.
43035         * lib/freading.c (freading): Likewise.
43036         * lib/freadptr.c (freadptr): Likewise.
43037         * lib/freadseek.c (freadptrinc): Likewise.
43038         * lib/fseeko.c (rpl_fseeko): Likewise.
43039         * lib/fseterr.c (fseterr): Likewise.
43040         * lib/fwritable.c (fwritable): Likewise.
43041         * lib/fwriting.c (fwriting): Likewise.
43042         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43043
43044 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43045
43046         * lib/config.charset: Treat Haiku like BeOS.
43047
43048 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43049
43050         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43051         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43052
43053 2008-11-08  Bruno Haible  <bruno@clisp.org>
43054
43055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43056         AC_CACHE_CHECK.
43057
43058 2008-11-08  Bruno Haible  <bruno@clisp.org>
43059
43060         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43061
43062 2008-11-08  Bruno Haible  <bruno@clisp.org>
43063
43064         * tests/test-select-fd.c: New file.
43065         * tests/test-select-in.sh: New file.
43066         * tests/test-select-out.sh: New file.
43067         * tests/test-select-stdin.c: New file.
43068         * modules/select-tests (Files): Add the new files.
43069         (Depends-on): Add gettimeofday.
43070         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43071         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43072         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43073
43074 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43075             Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43078
43079 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43080
43081         * build-aux/pmccabe2html: Added support for C++ source files.
43082
43083 2008-11-05  Ben Pfaff  <blp@gnu.org>
43084
43085         Fix lib/close.c build on Windows.
43086         * modules/close (Files): Add lib/w32sock.h.
43087
43088 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43089
43090         Accept Bison's NEWS format.
43091         * build-aux/announce-gen (print_news_deltas): Tweak
43092         $re_prefix.
43093
43094 2008-11-04  Bruno Haible  <bruno@clisp.org>
43095
43096         * modules/random_r (Maintainer): Add glibc.
43097
43098 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43099
43100         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43101         by karl@freefriends.org (Karl Berry).
43102         * doc/alloca.texi: Likewise.
43103         * doc/c-ctype.texi: Likewise.
43104         * doc/c-strcase.texi: Likewise.
43105         * doc/c-strcaseeq.texi: Likewise.
43106         * doc/c-strcasestr.texi: Likewise.
43107         * doc/c-strstr.texi: Likewise.
43108         * doc/c-strtod.texi: Likewise.
43109         * doc/c-strtold.texi: Likewise.
43110         * doc/ctime.texi: Likewise.
43111         * doc/error.texi: Likewise.
43112         * doc/fdl.texi: Likewise.
43113         * doc/gcd.texi: Likewise.
43114         * doc/getdate.texi: Likewise.
43115         * doc/gnulib-intro.texi: Likewise.
43116         * doc/gnulib-tool.texi: Likewise.
43117         * doc/gnulib.texi: Likewise.
43118         * doc/inet_ntoa.texi: Likewise.
43119         * doc/maintain.texi: Likewise.
43120         * doc/make-stds.texi: Likewise.
43121         * doc/quote.texi: Likewise.
43122         * doc/regexprops-generic.texi: Likewise.
43123         * doc/standards.texi: Likewise.
43124         * doc/verify.texi: Likewise.
43125         * doc/visibility.texi: Likewise.
43126         * doc/gnulib.texi (GNU Free Documentation License): Include
43127         fdl-1.3.texi instead of fdl.texi.
43128
43129 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43130
43131         * doc/fdl-1.3.texi: New file, from
43132         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43133         * modules/fdl-1.3: Add.
43134         * MODULES.html.sh: Add fdl-1.3.
43135
43136 2008-11-03  Bruno Haible  <bruno@clisp.org>
43137
43138         Make determination of absolute name of header file work with AIX xlc.
43139         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43140         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43141         preprocessing.
43142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43143         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43144
43145 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43146
43147         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43148         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43149         <ludo@gnu.org>.
43150
43151 2008-11-02  Bruno Haible  <bruno@clisp.org>
43152
43153         Mark 'strpbrk' obsolete.
43154         * modules/strpbrk (Status, Notice): New sections.
43155         * modules/strtok_r (Depends-on): Add strpbrk.
43156
43157 2008-11-02  Bruno Haible  <bruno@clisp.org>
43158
43159         Mark 'strdup' obsolete.
43160         * modules/strdup (Status, Notice): New sections.
43161         * modules/findprog (Depends-on): Add strdup.
43162         * modules/getaddrinfo (Depends-on): Likewise.
43163         * modules/localename (Depends-on): Likewise.
43164         * modules/relocatable-lib (Depends-on): Likewise.
43165         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43166         * modules/relocatable-prog (Depends-on): Likewise.
43167         * modules/trim (Depends-on): Likewise.
43168         * modules/unictype/gen-ctype (Depends-on): Likewise.
43169         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43170
43171 2008-11-02  Bruno Haible  <bruno@clisp.org>
43172
43173         Mark 'strcspn' obsolete.
43174         * modules/strcspn (Status, Notice): New sections.
43175
43176 2008-11-02  Bruno Haible  <bruno@clisp.org>
43177
43178         Mark 'rmdir' obsolete.
43179         * modules/rmdir (Status, Notice): New sections.
43180         * modules/clean-temp (Depends-on): Add rmdir.
43181         * modules/openat (Depends-on): Likewise.
43182
43183 2008-11-02  Bruno Haible  <bruno@clisp.org>
43184
43185         Mark 'raise' obsolete.
43186         * modules/raise (Status, Notice): New sections.
43187         (Include): Specify <signal.h>.
43188         * modules/stdio (Depends-on): Add raise.
43189         * modules/write (Depends-on): Likewise.
43190
43191 2008-11-02  Bruno Haible  <bruno@clisp.org>
43192
43193         Mark 'memset' obsolete.
43194         * modules/memset (Status, Notice): New sections.
43195
43196 2008-11-02  Bruno Haible  <bruno@clisp.org>
43197
43198         Mark 'memmove' obsolete.
43199         * modules/memmove (Status, Notice): New sections.
43200         * modules/argp (Depends-on): Add memmove.
43201         * modules/argz (Depends-on): Likewise.
43202         * modules/canonicalize (Depends-on): Likewise.
43203         * modules/canonicalize-lgpl (Depends-on): Likewise.
43204         * modules/fts (Depends-on): Likewise.
43205         * modules/getcwd (Depends-on): Likewise.
43206         * modules/human (Depends-on): Likewise.
43207         * modules/regex (Depends-on): Likewise.
43208         * modules/striconveh (Depends-on): Likewise.
43209         * modules/trim (Depends-on): Likewise.
43210         * modules/unistr/u8-move (Depends-on): Likewise.
43211         * modules/unistr/u16-move (Depends-on): Likewise.
43212         * modules/unistr/u32-move (Depends-on): Likewise.
43213
43214 2008-11-02  Bruno Haible  <bruno@clisp.org>
43215
43216         Mark 'memcpy' obsolete.
43217         * modules/memcpy (Status, Notice): New sections.
43218
43219 2008-11-02  Bruno Haible  <bruno@clisp.org>
43220
43221         Mark 'memcmp' obsolete.
43222         * modules/memcmp (Status, Notice): New sections.
43223         * modules/argmatch (Depends-on): Add memchr.
43224         * modules/backupfile (Depends-on): Likewise.
43225         * modules/c-strcasestr (Depends-on): Likewise.
43226         * modules/crypto/des (Depends-on): Likewise.
43227         * modules/csharpcomp (Depends-on): Likewise.
43228         * modules/fnmatch (Depends-on): Likewise.
43229         * modules/git-merge-changelog (Depends-on): Likewise.
43230         * modules/isnand (Depends-on): Likewise.
43231         * modules/isnand-nolibm (Depends-on): Likewise.
43232         * modules/isnanf (Depends-on): Likewise.
43233         * modules/isnanf-nolibm (Depends-on): Likewise.
43234         * modules/isnanl (Depends-on): Likewise.
43235         * modules/isnanl-nolibm (Depends-on): Likewise.
43236         * modules/mbchar (Depends-on): Likewise.
43237         * modules/memcoll (Depends-on): Likewise.
43238         * modules/quotearg (Depends-on): Likewise.
43239         * modules/regex (Depends-on): Likewise.
43240         * modules/relocatable-prog (Depends-on): Likewise.
43241         * modules/same (Depends-on): Likewise.
43242         * modules/signbit (Depends-on): Likewise.
43243         * modules/strcasestr-simple (Depends-on): Likewise.
43244         * modules/unictype/gen-ctype (Depends-on): Likewise.
43245         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43246         * modules/uniname/uniname (Depends-on): Likewise.
43247         * modules/unistr/u8-cmp (Depends-on): Likewise.
43248
43249 2008-11-02  Bruno Haible  <bruno@clisp.org>
43250
43251         Mark 'memchr' obsolete.
43252         * modules/memchr (Status, Notice): New sections.
43253         * modules/argp (Depends-on): Add memchr.
43254         * modules/base64 (Depends-on): Likewise.
43255         * modules/c-strcasestr (Depends-on): Likewise.
43256         * modules/chdir-long (Depends-on): Likewise.
43257         * modules/fnmatch (Depends-on): Likewise.
43258         * modules/getsubopt (Depends-on): Likewise.
43259         * modules/git-merge-changelog (Depends-on): Likewise.
43260         * modules/glob (Depends-on): Likewise.
43261         * modules/strcasestr-simple (Depends-on): Likewise.
43262         * modules/strnlen (Depends-on): Likewise.
43263
43264 2008-11-02  Bruno Haible  <bruno@clisp.org>
43265
43266         Mark 'atexit' obsolete.
43267         * modules/atexit (Status, Notice): New sections.
43268         * modules/chdir-long (Depends-on): Add atexit.
43269         * modules/wait-process (Depends-on): Likewise.
43270
43271 2008-11-02  Bruno Haible  <bruno@clisp.org>
43272
43273         * gnulib-tool: New option --with-obsolete.
43274         (func_usage): Document it.
43275         (func_modules_transitive_closure): Drop obsolete dependencies if
43276         incobsolete is not true.
43277         (func_import): Read and save the incobsolete variable to the cache.
43278
43279 2008-11-02  Bruno Haible  <bruno@clisp.org>
43280
43281         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43282         * gnulib-tool: New option --extract-status.
43283         (func_usage): Document it.
43284         (sed_extract_prog): Recognize it.
43285         (func_get_status): New function.
43286
43287 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43288
43289         * modules/sockets (License): Change from LGPL to LGPLv2+.
43290
43291 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43292
43293         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43294
43295 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43296
43297         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43298         Mention times and sys_times.
43299         * modules/sys_times, modules/sys_times-tests: New modules.
43300         * modules/times, modules/times-tests: Likewise
43301         * m4/sys_times_h.m4: New file.
43302         * lib/sys_times.in.h: Likewise
43303         * lib/times.c: Likewise.
43304         * tests/test-sys_times.c: Likewise.
43305         * tests/test-times.c: Likewise.
43306         * doc/posix-headers/sys_times.texi: Update.
43307         * doc/posix-functions/times.texi: Update.
43308
43309 2008-10-28  Jim Meyering  <meyering@redhat.com>
43310
43311         * modules/tempname (Depends-on): Add lstat.
43312
43313         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43314
43315 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43316
43317         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43318         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43319         using idiom used elsewhere in gnulib.
43320
43321 2008-10-27  Jim Meyering  <meyering@redhat.com>
43322
43323         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43324
43325 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43326
43327         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43328         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43329         programs.
43330         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43331
43332 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43333
43334         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43335
43336 2008-10-27  Bruno Haible  <bruno@clisp.org>
43337
43338         * tests/test-lstat.c: Include <stdio.h>.
43339
43340 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43341
43342         * modules/lstat-tests: New module.
43343         * tests/test-lstat.c: New file.
43344
43345 2008-10-26  Jim Meyering  <meyering@redhat.com>
43346
43347         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43348
43349 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43350             Bruno Haible  <bruno@clisp.org>
43351
43352         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43353         * modules/configmake (Include): Add a note that the include must come
43354         after all system headers.
43355         * lib/javaversion.c: Include configmake.h after all other includes.
43356
43357 2008-10-26  Bruno Haible  <bruno@clisp.org>
43358
43359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43360         HAVE_STRUCT_RANDOM_DATA to 1.
43361         (gl_STDLIB_H): Simplify.
43362
43363 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43364
43365         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43366         substitute HAVE_STRUCT_RANDOM_DATA.
43367         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43368         random_data.
43369         * modules/stdlib (Makefile.am): Substitute
43370         HAVE_STRUCT_RANDOM_DATA.
43371
43372 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43373
43374         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43375         * doc/gnulib-intro.texi (Copyright): Likewise.
43376
43377 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43378
43379         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43380         findings.
43381
43382 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43383             Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/unistd.in.h: Include <winsock2.h>.
43386         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43387         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43388         Provide dummy declarations.
43389         (gethostname): Override.
43390         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43391         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43392         gl_PREREQ_SYS_H_WINSOCK2.
43393         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43394         * doc/posix-functions/gethostname.texi: More details.
43395
43396 2008-10-25  Bruno Haible  <bruno@clisp.org>
43397
43398         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43399         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43400         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43401
43402         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43403         here ...
43404         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43406         gl_UNISTD_H_DEFAULTS.
43407
43408 2008-10-25  Eric Blake  <ebb9@byu.net>
43409
43410         signbit: avoid spurious compiler failure
43411         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43412         declarations inside function.
43413
43414 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43415             Bruno Haible  <bruno@clisp.org>
43416
43417         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43418         * modules/random_r (Depends-on): Add stdint.
43419
43420 2008-10-24  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43423         Eggert.
43424         * modules/strerror (License): Likewise.
43425
43426 2008-10-24  Jim Meyering  <meyering@redhat.com>
43427
43428         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43429         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43430
43431 2008-10-24  Eric Blake  <ebb9@byu.net>
43432
43433         getgroups: fix compilation when getgroups is available
43434         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43435         but with <config.h> override of getgroups disabled.
43436
43437 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43438
43439         * doc/gnulib.texi (Header files): Add note about C++ problems.
43440         Explained by Bruno Haible <bruno@clisp.org>.
43441
43442 2008-10-23  Bruno Haible  <bruno@clisp.org>
43443
43444         Define a dummy SA_NODEFER macro on Interix.
43445         * lib/signal.in.h (SA_NODEFER): Define fallback.
43446         Reported by Aleksey Cheusov <cheusov@tut.by> via
43447         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43448
43449 2008-10-23  Bruno Haible  <bruno@clisp.org>
43450
43451         * modules/freadahead (License): Change to LGPLv2+.
43452         Suggested by Simon Josefsson.
43453
43454 2008-10-23  Jim Meyering  <meyering@redhat.com>
43455
43456         random_r: new module
43457         * modules/random_r: New file.
43458         * m4/random_r.m4: New file.
43459         * lib/random_r.c: New file, from glibc.
43460         * modules/random_r-tests: New file.
43461         * tests/test-random_r.c: New file.
43462         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43463          Declare.
43464         (RAND_MAX): Define.
43465         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43466         * modules/stdlib: Substitute them, too.
43467         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43468         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43469         * doc/glibc-functions/random_r.texi: Likewise.
43470         * doc/glibc-functions/setstate_r.texi: Likewise.
43471         * doc/glibc-functions/srandom_r.texi: Likewise.
43472         * config/srclist.txt: Mention it.
43473
43474 2008-10-23  David Lutterkort  <lutter@redhat.com>
43475
43476         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43477         link requirement
43478
43479 2008-10-23  Jim Meyering  <meyering@redhat.com>
43480
43481         selinux-h: mark parameters of stub functions as intentionally unused
43482         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43483         * lib/se-context.in.h: Likewise.
43484
43485 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43486
43487         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43488
43489 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43490
43491         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43492
43493 2008-10-22  Eric Blake  <ebb9@byu.net>
43494
43495         glthread/thread: avoid compiler warning
43496         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43497         Add unreachable abort to silence compiler.
43498
43499 2008-10-22  Eric Blake  <ebb9@byu.net>
43500
43501         netdb: also supply struct addrinfo for cygwin 1.5.x
43502         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43503         older cygwin.
43504         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43505         cygwin.
43506         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43507
43508 2008-10-22  Bruno Haible  <bruno@clisp.org>
43509
43510         * users.txt: Update entry about pspp.
43511
43512 2008-10-21  Bruno Haible  <bruno@clisp.org>
43513
43514         Simplification.
43515         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43516         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43517
43518         Simplification.
43519         * lib/ioctl.c (ioctl): Don't undefine.
43520         * lib/socket.c (socket): Don't undefine.
43521
43522         Remove unused module indicator macros.
43523         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43524         GNULIB_$1 as a C macro.
43525
43526         * doc/posix-functions/close.texi: Undo last change.
43527         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43528         Windows platforms.
43529
43530 2008-10-21  Bruno Haible  <bruno@clisp.org>
43531
43532         Add gethostname() declaration to <unistd.h>.
43533         * lib/unistd.in.h (gethostname): New declaration.
43534         * lib/gethostname.c: Include <unistd.h>.
43535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43536         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43538         and HAVE_GETHOSTNAME.
43539         * modules/gethostname (Depends-on): Add unistd.
43540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43541         (Include): Specify <unistd.h>.
43542         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43543         HAVE_GETHOSTNAME.
43544         * tests/test-gethostname.c: Include <unistd.h> first.
43545
43546 2008-10-21  Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43549         * modules/select-tests (Depends-on): Likewise.
43550         Reported by Simon Josefsson.
43551
43552 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43553
43554         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43555         * lib/accept.c: New file, based on winsock.c.
43556         * lib/bind.c: New file, based on winsock.c.
43557         * lib/connect.c: New file, based on winsock.c.
43558         * lib/getpeername.c: New file, based on winsock.c.
43559         * lib/getsockname.c: New file, based on winsock.c.
43560         * lib/getsockopt.c: New file, based on winsock.c.
43561         * lib/ioctl.c: New file, based on winsock.c.
43562         * lib/listen.c: New file, based on winsock.c.
43563         * lib/recv.c: New file, based on winsock.c.
43564         * lib/recvfrom.c: New file, based on winsock.c.
43565         * lib/send.c: New file, based on winsock.c.
43566         * lib/sendto.c: New file, based on winsock.c.
43567         * lib/setsockopt.c: New file, based on winsock.c.
43568         * lib/shutdown.c: New file, based on winsock.c.
43569         * lib/socket.c: New file, based on winsock.c.
43570         * lib/w32sock.h: New file, based on winsock.c.
43571         * lib/winsock.c: Remove file.
43572         * modules/accept: Likewise.
43573         * modules/bind: Likewise.
43574         * modules/connect: Likewise.
43575         * modules/getpeername: Likewise.
43576         * modules/getsockname: Likewise.
43577         * modules/getsockopt: Likewise.
43578         * modules/ioctl: Likewise.
43579         * modules/listen: Likewise.
43580         * modules/recv: Likewise.
43581         * modules/recvfrom: Likewise.
43582         * modules/send: Likewise.
43583         * modules/sendto: Likewise.
43584         * modules/setsockopt: Likewise.
43585         * modules/shutdown: Likewise.
43586         * modules/socket: Use socket.c instead of winsock.c.
43587         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43588         * doc/posix-functions/accept.texi: Doc fix.
43589         * doc/posix-functions/bind.texi: Doc fix.
43590         * doc/posix-functions/close.texi: Doc fix.
43591         * doc/posix-functions/connect.texi: Doc fix.
43592         * doc/posix-functions/getpeername.texi: Doc fix.
43593         * doc/posix-functions/getsockname.texi: Doc fix.
43594         * doc/posix-functions/getsockopt.texi: Doc fix.
43595         * doc/posix-functions/ioctl.texi: Doc fix.
43596         * doc/posix-functions/listen.texi: Doc fix.
43597         * doc/posix-functions/recv.texi: Doc fix.
43598         * doc/posix-functions/recvfrom.texi: Doc fix.
43599         * doc/posix-functions/send.texi: Doc fix.
43600         * doc/posix-functions/sendto.texi: Doc fix.
43601         * doc/posix-functions/setsockopt.texi: Doc fix.
43602         * doc/posix-functions/shutdown.texi: Doc fix.
43603         * doc/posix-functions/socket.texi: Doc fix.
43604
43605 2008-10-20  Bruno Haible  <bruno@clisp.org>
43606
43607         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43608         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43609         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43610         as an alias for SIGABRT.
43611         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43612         (sigaction): Map it to SIGABRT.
43613         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43614
43615 2008-10-20  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/fts.c: Don't include lstat.h.
43618         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43619
43620         Move the lstat() declaration to <sys/stat.h>.
43621         * lib/lstat.h: Remove file.
43622         * lib/sys_stat.in.h: Add special invocation convention.
43623         (lstat): New declaration.
43624         * lib/lstat.c (orig_lstat): New function.
43625         (rpl_lstat): Use orig_lstat instead of lstat.
43626         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43627         AC_C_INLINE. Set REPLACE_LSTAT.
43628         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43629         and REPLACE_LSTAT.
43630         * modules/lstat (Files): Remove lib/lstat.h.
43631         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43632         (Include): Specify <sys/stat.h> instead of lstat.h.
43633         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43634         REPLACE_LSTAT.
43635         * NEWS: Mention the change.
43636
43637 2008-10-20  Bruno Haible  <bruno@clisp.org>
43638
43639         * modules/posix_spawn-tests: New file.
43640         * tests/test-posix_spawn3.c: New file.
43641
43642 2008-10-20  Bruno Haible  <bruno@clisp.org>
43643
43644         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43645         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43646         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43647         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43648         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43649
43650 2008-10-20  Bruno Haible  <bruno@clisp.org>
43651
43652         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43653         of posix_spawn on AIX 5.3.
43654
43655 2008-10-20  Bruno Haible  <bruno@clisp.org>
43656
43657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43658
43659 2008-10-20  Bruno Haible  <bruno@clisp.org>
43660
43661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43662         of AC_LANG_PROGRAM.
43663
43664 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43665
43666         * lib/netdb.in.h: Don't define GNU specific constants until they
43667         are supported or needed.  Reported by Bruno Haible
43668         <bruno@clisp.org>.
43669
43670 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43671
43672         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43673
43674 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43675
43676         * lib/getaddrinfo.h: Remove file.
43677         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43678         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43679         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43680         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43681         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43682         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43683         * tests/test-getaddrinfo.c: Likewise.
43684         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43685         * NEWS: Mention change.
43686
43687 2008-10-19  Bruno Haible  <bruno@clisp.org>
43688
43689         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43690
43691 2008-10-19  Bruno Haible  <bruno@clisp.org>
43692
43693         * lib/wait-process.c: Include simply <sys/wait.h>.
43694         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43695         WIFSTOPPED): Remove fallback definitions.
43696         * modules/wait-process (Depends-on): Add sys_wait.
43697
43698         New module 'sys_wait'.
43699         * modules/sys_wait: New file.
43700         * lib/sys_wait.in.h: New file, partially copied from
43701         lib/wait-process.c.
43702         * m4/sys_wait_h.m4: New file.
43703         * doc/posix-headers/sys_wait.texi: Mention the new module.
43704
43705 2008-10-19  Bruno Haible  <bruno@clisp.org>
43706
43707         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43708
43709 2008-10-19  Bruno Haible  <bruno@clisp.org>
43710
43711         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43712         * lib/wait-process.c (WAIT_T): Remove type.
43713         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43714         (wait_subprocess): Update.
43715
43716 2008-10-19  Bruno Haible  <bruno@clisp.org>
43717
43718         New module 'atoll'.
43719         * modules/atoll: New file.
43720         * lib/stdlib.in.h (atoll): New declaration.
43721         * lib/atoll.c: New file, from glibc with modifications.
43722         * m4/atoll.m4: New file.
43723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43724         HAVE_ATOLL.
43725         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43726         * doc/posix-functions/atoll.texi: Mention the new module.
43727
43728 2008-10-19  Bruno Haible  <bruno@clisp.org>
43729
43730         Add strtoull() declaration to <stdlib.h>.
43731         * lib/stdlib.in.h (strtoull): New declaration.
43732         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43733         Set HAVE_STRTOULL.
43734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43735         HAVE_STRTOULL.
43736         * modules/strtoull (Depends-on): Add stdlib.
43737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43738         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43739         HAVE_STRTOULL.
43740
43741 2008-10-19  Bruno Haible  <bruno@clisp.org>
43742
43743         Add strtoll() declaration to <stdlib.h>.
43744         * lib/stdlib.in.h (strtoll): New declaration.
43745         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43746         Set HAVE_STRTOLL.
43747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43748         HAVE_STRTOLL.
43749         * modules/strtoll (Depends-on): Add stdlib.
43750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43751         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43752
43753 2008-10-19  Bruno Haible  <bruno@clisp.org>
43754
43755         * modules/bcopy (Depends-on): Add strings.
43756         (Include): Specify <strings.h>.
43757
43758 2008-10-19  Bruno Haible  <bruno@clisp.org>
43759
43760         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43761
43762 2008-10-19  Bruno Haible  <bruno@clisp.org>
43763
43764         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43765         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43766         mingw.
43767
43768 2008-10-19  Bruno Haible  <bruno@clisp.org>
43769
43770         * lib/atanl.c: Don't include isnanl.h.
43771         * lib/cosl.c: Likewise.
43772         * lib/ldexpl.c: Likewise.
43773         * lib/logl.c: Likewise.
43774         * lib/sinl.c: Likewise.
43775         * lib/sqrtl.c: Likewise.
43776         * lib/tanl.c: Likewise.
43777
43778         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43779         * lib/isnanf.h: Remove file.
43780         * lib/isnand.h: Remove file.
43781         * lib/isnanl.h: Remove file.
43782         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43783         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43784         macros.
43785         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43786         HAVE_ISNANF, don't define it as a C macro.
43787         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43788         HAVE_ISNAND, don't define it as a C macro.
43789         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43790         HAVE_ISNANL, don't define it as a C macro.
43791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43792         HAVE_ISNAN[FDL].
43793         * modules/isnanf (Files): Remove lib/isnanf.h.
43794         (Depends-on): Add math.
43795         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43796         (Include): Specify <math.h> instead of isnanf.h.
43797         * modules/isnand (Files): Remove lib/isnand.h.
43798         (Depends-on): Add math.
43799         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43800         (Include): Specify <math.h> instead of isnand.h.
43801         * modules/isnanl (Files): Remove lib/isnanl.h.
43802         (Depends-on): Add math.
43803         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43804         (Include): Specify <math.h> instead of isnanl.h.
43805         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43806         HAVE_ISNAN[FDL].
43807         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43808         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43809         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43810         * NEWS: Mention the change.
43811
43812 2008-10-18  Bruno Haible  <bruno@clisp.org>
43813
43814         Add getusershell(), setusershell(), endusershell() declarations to
43815         <unistd.h>.
43816         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43817         declarations.
43818         * lib/getusershell.c: Include unistd.h.
43819         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43820         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43821         HAVE_GETUSERSHELL.
43822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43823         and HAVE_GETUSERSHELL.
43824         * modules/getusershell (Depends-on): Add unistd, extensions.
43825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43826         (Include): Specify <unistd.h>.
43827         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43828         HAVE_GETUSERSHELL.
43829
43830 2008-10-18  Bruno Haible  <bruno@clisp.org>
43831
43832         Add a getloadavg() declaration to <stdlib.h>.
43833         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43834         getloadavg declaration.
43835         (getloadavg): New declaration.
43836         * lib/getloadavg.c: Include <stdlib.h> first.
43837         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43838         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43839         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43841         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43842         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43844         (Include): Specify <stdlib.h>.
43845         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43846         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43847
43848 2008-10-18  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/dirchownmod.c: Don't include lchmod.h.
43851
43852         Move the lchmod() declaration to <sys/stat.h>.
43853         * lib/lchmod.h: Remove file.
43854         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43855         (lchmod): New declaration, moved here from lib/lchown.h.
43856         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43857         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43859         and HAVE_LCHMOD.
43860         * modules/lchmod (Files): Remove lib/lchmod.h.
43861         (Depends-on): Add sys_stat, extensions.
43862         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43863         (Include): Specify <sys/stat.h> instead of lchmod.h.
43864         * modules/sys_stat (Depends-on): Add link-warning.
43865         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43866         definition of GL_LINK_WARNING.
43867         * NEWS: Mention the change.
43868
43869 2008-10-18  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/fchdir.c: Don't include dirfd.h.
43872         * lib/fts.c: Likewise.
43873         * lib/getcwd.c: Likewise.
43874         * lib/glob.c: Likewise.
43875
43876         Move the dirfd() declaration to <dirent.h>.
43877         * lib/dirfd.h: Remove file.
43878         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43879         (dirfd): New declaration.
43880         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43882         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43883         HAVE_DECL_DIRFD.
43884         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43885         HAVE_DECL_DIRFD.
43886         * modules/dirfd (Files): Remove lib/dirfd.h.
43887         (Depends-on): Add dirent, extensions.
43888         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43889         (Include): Specify <dirent.h> instead of dirfd.h.
43890         * modules/dirent (Depends-on): Add link-warning.
43891         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43892         definition of GL_LINK_WARNING.
43893         * NEWS: Mention the change.
43894
43895 2008-10-18  Bruno Haible  <bruno@clisp.org>
43896
43897         Move the euidaccess() declaration to <unistd.h>.
43898         * lib/euidaccess.h: Remove file.
43899         * lib/unistd.in.h (euidaccess): New declaration.
43900         * lib/euidaccess.c: Don't include euidaccess.h.
43901         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43902         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43904         and HAVE_EUIDACCESS.
43905         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43906         (Depends-on): Add unistd.
43907         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43908         (Include): Specify <unistd.h> instead of euidaccess.h.
43909         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43910         HAVE_EUIDACCESS.
43911         * NEWS: Mention the change.
43912
43913 2008-10-18  Bruno Haible  <bruno@clisp.org>
43914
43915         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43916
43917         Move the getdomainname() declaration to <unistd.h>.
43918         * lib/getdomainname.h: Remove file.
43919         * lib/unistd.in.h (getdomainname): New declaration.
43920         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43921         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43922         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43923         HAVE_GETDOMAINNAME.
43924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43925         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43926         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43927         (Depends-on): Add unistd, extensions.
43928         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43929         (Includes): Specify <unistd.h> instead of getdomainname.h.
43930         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43931         HAVE_GETDOMAINNAME.
43932         * NEWS: Mention the change.
43933
43934 2008-10-18  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/dirent: New file.
43937         * m4/dirent_h.m4: New file.
43938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43939         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43940         * modules/fchdir (Files): Remove lib/dirent.in.h.
43941         (Depends-on): Add dirent.
43942         (Makefile.am): Move rules to modules/dirent.
43943         * doc/posix-headers/dirent.texi: Mention the new module.
43944
43945 2008-10-18  Bruno Haible  <bruno@clisp.org>
43946
43947         Avoid -Wunused-parameter warnings in public gnulib header files.
43948         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43949         macro.
43950         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43951
43952 2008-10-18  Bruno Haible  <bruno@clisp.org>
43953
43954         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43955         * doc/glibc-functions/error.texi: Mention the module 'error'.
43956         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43957         * doc/glibc-functions/getdomainname.texi: Mention the module
43958         'getdomainname'.
43959         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43960         * doc/glibc-functions/getpagesize.texi: Mention the module
43961         'getpagesize'.
43962         * doc/glibc-functions/getusershell.texi: Mention the module
43963         'getusershell'.
43964         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43965         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43966         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43967         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43968         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43969         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43970         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43971         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43972         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43973         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43974         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43975         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43976         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43977         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43978
43979 2008-10-17  Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43982         HP-UX and IRIX, use -0.0L.
43983         * tests/test-ceill.c (minus_zero): Likewise.
43984         * tests/test-floorl.c (minus_zero): Likewise.
43985         * tests/test-frexpl.c (minus_zero): Likewise.
43986         * tests/test-isnan.c (minus_zerol): Likewise.
43987         * tests/test-isnanl.h (minus_zero): Likewise.
43988         * tests/test-ldexpl.c (minus_zero): Likewise.
43989         * tests/test-roundl.c (minus_zero): Likewise.
43990         * tests/test-signbit.c (minus_zerol): Likewise.
43991         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43992         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43993         * tests/test-truncl.c (minus_zero): Likewise.
43994         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43995         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43996         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43997         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43998
43999 2008-10-17  Bruno Haible  <bruno@clisp.org>
44000
44001         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44002         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44003         that it gets activated only for gcc >= 3.0.
44004         * lib/dirent.in.h: Likewise.
44005         * lib/errno.in.h: Likewise.
44006         * lib/fcntl.in.h: Likewise.
44007         * lib/float.in.h: Likewise.
44008         * lib/iconv.in.h: Likewise.
44009         * lib/inttypes.in.h: Likewise.
44010         * lib/locale.in.h: Likewise.
44011         * lib/math.in.h: Likewise.
44012         * lib/netdb.in.h: Likewise.
44013         * lib/netinet_in.in.h: Likewise.
44014         * lib/search.in.h: Likewise.
44015         * lib/signal.in.h: Likewise.
44016         * lib/spawn.in.h: Likewise.
44017         * lib/stdarg.in.h: Likewise.
44018         * lib/stdint.in.h: Likewise.
44019         * lib/stdio.in.h: Likewise.
44020         * lib/stdlib.in.h: Likewise.
44021         * lib/string.in.h: Likewise.
44022         * lib/strings.in.h: Likewise.
44023         * lib/sys_file.in.h: Likewise.
44024         * lib/sys_ioctl.in.h: Likewise.
44025         * lib/sys_select.in.h: Likewise.
44026         * lib/sys_socket.in.h: Likewise.
44027         * lib/sys_stat.in.h: Likewise.
44028         * lib/sys_time.in.h: Likewise.
44029         * lib/sysexits.in.h: Likewise.
44030         * lib/time.in.h: Likewise.
44031         * lib/unistd.in.h: Likewise.
44032         * lib/wchar.in.h: Likewise.
44033         * lib/wctype.in.h: Likewise.
44034         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44035
44036 2008-10-17  Jim Meyering  <meyering@redhat.com>
44037
44038         ignore-value: don't depend on inline module
44039         * modules/ignore-value (Depends-on): Remove 'inline'.
44040         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44041         Suggestion from Bruno Haible.
44042
44043 2008-10-17  Bruno Haible  <bruno@clisp.org>
44044
44045         New implementation of condition variables for Win32.
44046         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44047         (gl_linked_waitqueue_t): New type.
44048         (gl_cond_t): Use it.
44049         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44050         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44051         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44052         (glthread_cond_init_func, glthread_cond_wait_func,
44053         glthread_cond_timedwait_func, glthread_cond_signal_func,
44054         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44055         Reimplemented on the basis of gl_linked_waitqueue_t.
44056         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44057         gl_waitqueue_t.
44058         (gl_rwlock_t): Update.
44059         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44060
44061 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44062
44063         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44064         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44065
44066 2008-10-17  Jim Meyering  <meyering@redhat.com>
44067
44068         ignore-value: new module
44069         * modules/ignore-value: New file.
44070         * lib/ignore-value.h: New file.
44071         * MODULES.html.sh (Compiler warning management): New section,
44072         just for this module.  More to come.
44073
44074 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44075
44076         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44077         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44078         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44079
44080 2008-10-16  Jim Meyering  <meyering@redhat.com>
44081
44082         openat-die.c: avoid 'no previous prototype' warning
44083         * lib/openat-die.c: Include "openat.h".
44084         Reported by Reuben Thomas <rrt@sc3d.org>.
44085
44086 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44087
44088         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44089         * lib/netdb.in.h: Fix typo.
44090         Reported by Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/netdb.in.h: Include sys/socket.h for platforms without
44093         netdb.h, to get structures like hostent on MinGW.
44094         * modules/netdb (Depends-on): Add sys_socket.
44095
44096 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44097
44098         * modules/netdb, modules/netdb-tests: New file.
44099         * m4/netdb_h.m4: New file.
44100         * lib/netdb.in.h: Add, currently just an empty file pending
44101         definitions.
44102         * tests/test-netdb.c: New file.
44103         * doc/posix-headers/netdb.texi: Mention that we replace it if
44104         needed.
44105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44106         netdb.
44107
44108 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44109
44110         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44111         with code.
44112
44113 2008-10-13  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/glthread/cond.c (glthread_cond_wait_func,
44116         glthread_cond_timedwait_func): Add a comment.
44117
44118 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44119
44120         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44121         * tests/test-select.c: Likewise,
44122
44123 2008-10-13  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/glthread/cond.c (glthread_cond_wait_func,
44126         glthread_cond_timedwait_func): Fix variable name.
44127         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44128
44129 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44130
44131         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44133         struct sockaddr.sa_len.
44134         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44135
44136 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44137
44138         * build-aux/pmccabe2html: Add css and css_url parameters.
44139
44140 2008-10-12  Bruno Haible  <bruno@clisp.org>
44141
44142         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44143         calling aclx_get.
44144         Reported by Rainer Tammer <tammer@tammer.net>.
44145
44146 2008-10-12  Bruno Haible  <bruno@clisp.org>
44147
44148         Use msvcrt aware primitives for creation/termination of Win32 threads.
44149         * lib/glthread/thread.c: Include <process.h>.
44150         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44151         (wrapper_func): Update signature.
44152         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44153
44154 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44155             Bruno Haible  <bruno@clisp.org>
44156
44157         Provide a Win32 implementation of the 'cond' module.
44158         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44159         * lib/glthread/cond.c (glthread_cond_init_func,
44160         glthread_cond_wait_func, glthread_cond_timedwait_func,
44161         glthread_cond_signal_func, glthread_cond_broadcast_func,
44162         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44163         * modules/cond (Dependencies): Add gettimeofday.
44164
44165 2008-10-11  Bruno Haible  <bruno@clisp.org>
44166
44167         Make sleep work on older versions of mingw.
44168         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44169         only whether it exists.
44170         * doc/posix-functions/sleep.texi: Mention the problem with older
44171         versions of mingw.
44172
44173 2008-10-11  Bruno Haible  <bruno@clisp.org>
44174
44175         New module 'shutdown'.
44176         * modules/shutdown: New file.
44177         * lib/sys_socket.in.h (shutdown): New declaration.
44178         * lib/winsock.c (shutdown): New function.
44179         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44180         GNULIB_SHUTDOWN.
44181         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44182         * doc/posix-functions/shutdown.texi: Document the new module.
44183
44184 2008-10-11  Jim Meyering  <meyering@redhat.com>
44185
44186         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44187
44188 2008-10-11  Bruno Haible  <bruno@clisp.org>
44189
44190         New module 'fclose'.
44191         * modules/fclose: New file.
44192         * lib/stdio.in.h (fclose): New declaration.
44193         * lib/fclose.c: New file.
44194         * m4/fclose.m4: New file.
44195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44196         REPLACE_FCLOSE.
44197         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44198         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44199         REPLACE_FCLOSE.
44200         * modules/close (Depends-on): fclose.
44201         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44202
44203 2008-10-11  Bruno Haible  <bruno@clisp.org>
44204
44205         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44206         set errno and don't call _close.
44207
44208 2008-10-10  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44211         ACL, not afterwards. Fixes test failure on Cygwin.
44212
44213 2008-10-09  Ben Pfaff  <blp@gnu.org>
44214
44215         * build-aux/announce-gen: Fix gnulib version related part of usage
44216         message.  Die with a useful error message if no tarballs are
44217         found.
44218
44219 2008-10-10  Jim Meyering  <meyering@redhat.com>
44220
44221         bootstrap: use git's --depth=N option only if it's supported
44222         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44223         recognize the --depth option.  Reported by Pádraig Brady.
44224
44225 2008-10-09  Bruno Haible  <bruno@clisp.org>
44226
44227         New module 'ioctl'.
44228         * modules/ioctl: New file.
44229         * lib/sys_socket.in.h (ioctl): Remove declaration.
44230         * lib/winsock.c: Include <sys/ioctl.h>.
44231         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44232         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44233         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44234         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44235         * doc/posix-functions/ioctl.texi: Mention the new module.
44236
44237 2008-10-09  Bruno Haible  <bruno@clisp.org>
44238
44239         New module 'sys_ioctl'.
44240         * lib/sys_ioctl.in.h: New file.
44241         * m4/sys_ioctl_h.m4: New file.
44242         * modules/sys_ioctl: New file.
44243         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44244
44245 2008-10-09  Bruno Haible  <bruno@clisp.org>
44246
44247         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44248         * lib/winsock.c: Include <stdarg.h>.
44249         (rpl_ioctl): Change to second argument 'int' and then varargs.
44250
44251 2008-10-09  Bruno Haible  <bruno@clisp.org>
44252
44253         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44254         when the sys_socket module is present and the system has <winsock2.h>.
44255
44256 2008-10-09  Bruno Haible  <bruno@clisp.org>
44257
44258         * doc/posix-functions/close.texi: Mention module 'close' instead of
44259         module 'sys_socket'.
44260
44261 2008-10-09  Bruno Haible  <bruno@clisp.org>
44262
44263         * doc/glibc-headers/sys_ioctl.texi: New file.
44264         * doc/gnulib.texi: Include it.
44265
44266 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44267             Bruno Haible  <bruno@clisp.org>
44268
44269         Combine the two replacements of 'close'.
44270         * lib/sys_socket.in.h (close): Define to a reminder to include
44271         <unistd.h>.
44272         (_gl_close_fd_maybe_socket): New declaration.
44273         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44274         * lib/winsock.c (close): Remove undefinition.
44275         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44276         needed for the gnulib module 'close'.
44277         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44278         define to an error symbol or to a warning, if suitable.
44279         * lib/close.c: Include <sys/socket.h>.
44280         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44281         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44282         UNISTD_H_HAVE_WINSOCK2_H.
44283         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44285         UNISTD_H_HAVE_WINSOCK2_H.
44286         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44287         (configure.ac): Set a module indicator.
44288         (Makefile.am): Substitute GNULIB_CLOSE.
44289         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44290         * modules/poll-tests (Depends-on): Add close.
44291         * modules/select-tests (Depends-on): Likewise.
44292
44293 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44294             Bruno Haible  <bruno@clisp.org>
44295
44296         New module 'close'.
44297         * modules/close: New file.
44298         * lib/unistd.in.h (close): Move declaration out of the
44299         FCHDIR_REPLACEMENT scope.
44300         (_gl_unregister_fd): New declaration.
44301         * lib/close.c: New file.
44302         * lib/fchdir.c (rpl_close): Remove function.
44303         * m4/close.m4: New file.
44304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44305         close.
44306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44307         REPLACE_CLOSE.
44308         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44309         REPLACE_CLOSE.
44310         * modules/fchdir (Depends-on): Add close.
44311
44312 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44313             Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/fcntl.in.h (open): Simplify conditionals.
44316         (_gl_register_fd): New declaration.
44317         * lib/fchdir.c (rpl_open): Remove function.
44318         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44319         also.
44320         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44322         open.
44323
44324 2008-10-09  Jim Meyering  <meyering@redhat.com>
44325
44326         GNUmakefile: use the more name-space-friendly "_version"
44327         * top/GNUmakefile (_dummy): Update.
44328         (_version): Rename from "version".
44329
44330 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44331             Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44334         rpl_close.
44335         (_gl_register_fd): New function, extracted from rpl_open.
44336         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44337         (rpl_open, rpl_opendir): Use _gl_register_fd.
44338
44339 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44340
44341         Fix organization of 'open' replacement.
44342         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44343         (gl_FUNC_OPEN): Use it.
44344         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44345
44346 2008-10-08  Bruno Haible  <bruno@clisp.org>
44347
44348         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44349
44350 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44351
44352         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44353         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44354         listen).
44355
44356 2008-10-08  Eric Blake  <ebb9@byu.net>
44357
44358         GNUmakefile: add 'make version' target
44359         * top/GNUmakefile (_curr-ver): Split version update rules...
44360         (version): ...into a target.
44361
44362 2008-10-07  Bruno Haible  <bruno@clisp.org>
44363
44364         Use a more portable replacement expression for -0.0L.
44365         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44366         instead of -0.0L. Fix m4 quotation.
44367
44368         * tests/test-signbit.c: Include <float.h>.
44369         (minus_zero): New variable.
44370         (test_signbitl): Use minus_zero instead of -zero.
44371         * modules/signbit-tests (Depends-on): Add float.
44372
44373         * tests/test-ceill.c: Include <float.h>.
44374         (zero): Remove variable.
44375         (minus_zero): New variable.
44376         (main): Use minus_zero instead of -zero.
44377         * modules/ceill-tests (Depends-on): Add float.
44378
44379         * tests/test-floorl.c: Include <float.h>.
44380         (zero): Remove variable.
44381         (minus_zero): New variable.
44382         (main): Use minus_zero instead of -zero.
44383         * modules/floorl-tests (Depends-on): Add float.
44384
44385         * tests/test-roundl.c: Include <float.h>.
44386         (zero): Remove variable.
44387         (minus_zero): New variable.
44388         (main): Use minus_zero instead of -zero.
44389         * modules/roundl-tests (Depends-on): Add float.
44390
44391         * tests/test-truncl.c: Include <float.h>.
44392         (zero): Remove variable.
44393         (minus_zero): New variable.
44394         (main): Use minus_zero instead of -zero.
44395         * modules/truncl-tests (Depends-on): Add float.
44396
44397         * tests/test-frexpl.c (zero): Remove variable.
44398         (minus_zero): New variable.
44399         (main): Use minus_zero instead of -zero.
44400         * modules/frexpl-tests (Depends-on): Add float.
44401
44402         * tests/test-isnan.c (zerol): Remove variable.
44403         (minus_zerol): New variable.
44404         (test_long_double): Use minus_zerol instead of -zerol.
44405         * modules/isnan-tests (Depends-on): Add float.
44406
44407         * tests/test-isnanl.h (zero): Remove variable.
44408         (minus_zero): New variable.
44409         (main): Use minus_zero instead of -zero.
44410         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44411         * modules/isnanl-tests (Depends-on): Add float.
44412
44413         * tests/test-ldexpl.c (zero): Remove variable.
44414         (minus_zero): New variable.
44415         (main): Use minus_zero instead of -zero.
44416         * modules/ldexpl-tests (Depends-on): Add float.
44417
44418         * tests/test-snprintf-posix.h (zerol): Remove variable.
44419         (minus_zerol): New variable.
44420         (test_function): Use minus_zerol instead of -zerol.
44421         * modules/snprintf-posix-tests (Depends-on): Add float.
44422         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44423
44424         * tests/test-sprintf-posix.h (zerol): Remove variable.
44425         (minus_zerol): New variable.
44426         (test_function): Use minus_zerol instead of -zerol.
44427         * modules/sprintf-posix-tests (Depends-on): Add float.
44428         * modules/vsprintf-posix-tests (Depends-on): Add float.
44429
44430         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44431         (minus_zerol): New variable.
44432         (test_function): Use minus_zerol instead of -zerol.
44433         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44434
44435         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44436         (minus_zerol): New variable.
44437         (test_function): Use minus_zerol instead of -zerol.
44438         * modules/vasprintf-posix-tests (Depends-on): Add float.
44439
44440 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44441
44442         * MODULES.html.sh (Support for building documentation): Mention
44443         pmccabe2html.  Sort entries.
44444
44445         Add pmccabe2html module, from gnupdf.
44446         * build-aux/pmccabe.css: New file.
44447         * build-aux/pmccabe2html: New file.
44448         * m4/pmccabe2html.m4: New file.
44449         * modules/pmccabe2html: New file.
44450
44451 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44452
44453         flock: new module
44454         * MODULES.html.sh: Add to list of modules.
44455         * lib/flock.c: flock implementation for Windows and Unix systems
44456         which have fcntl.
44457         * doc/glibc-functions/flock.texi: Update documentation.
44458         * lib/sys_file.in.h: <sys/file.h> header file.
44459         * m4/flock.m4: M4 macros.
44460         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44461         * modules/flock: flock module.
44462         * modules/flock-tests: flock tests module.
44463         * modules/sys_file: sys/file.h module.
44464         * tests/test-flock.c: test suite for flock.
44465
44466 2008-10-06  Jim Meyering  <meyering@redhat.com>
44467
44468         bootstrap: check for LT_INIT more portably still ;-)
44469         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44470         Spotted by Bruno Haible.
44471
44472 2008-10-06  Eric Blake  <ebb9@byu.net>
44473
44474         test-signbit: avoid tripping Irix cc bug on -0.0L
44475         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44476         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44477         entire testsuite consistent and avoids an Irix 6.2 bug.
44478
44479 2008-10-05  Bruno Haible  <bruno@clisp.org>
44480             Jim Meyering  <jim@meyering.net>
44481
44482         Add an option for ignoring EPIPE during close_stdout.
44483         * lib/closeout.h: Include <stdbool.h>.
44484         (close_stdout_set_ignore_EPIPE): New declaration.
44485         * lib/closeout.c: Include <stdbool.h>.
44486         (ignore_EPIPE): New variable.
44487         (close_stdout_set_ignore_EPIPE): New function.
44488         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44489         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44490         failure.
44491         * modules/closeout (Depends-on): Add stdbool.
44492
44493 2008-10-05  Bruno Haible  <bruno@clisp.org>
44494
44495         * modules/accept: New file.
44496         * modules/bind: New file.
44497         * modules/connect: New file.
44498         * modules/getpeername: New file.
44499         * modules/getsockname: New file.
44500         * modules/getsockopt: New file.
44501         * modules/listen: New file.
44502         * modules/recv: New file.
44503         * modules/recvfrom: New file.
44504         * modules/send: New file.
44505         * modules/sendto: New file.
44506         * modules/setsockopt: New file.
44507         * modules/socket: New file.
44508         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44509         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44510         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44511         the particular module is requested. Add a link warning when the
44512         particular module is not requested.
44513         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44514         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44515         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44516         the particular module is requested.
44517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44518         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44519         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44520         * modules/sys_socket (Depends-on): Add link-warning.
44521         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44522         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44523         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44524         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44525         GL_LINK_WARNING.
44526         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44527         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44528         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44529         * doc/posix-functions/getpeername.texi: Mention the new module
44530         'getpeername'.
44531         * doc/posix-functions/getsockname.texi: Mention the new module
44532         'getsockname'.
44533         * doc/posix-functions/getsockopt.texi: Mention the new module
44534         'getsockopt'.
44535         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44536         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44537         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44538         * doc/posix-functions/send.texi: Mention the new module 'send'.
44539         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44540         * doc/posix-functions/setsockopt.texi: Mention the new module
44541         'setsockopt'.
44542         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44543         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44544         listen, connect, accept.
44545         * modules/select-tests (Depends-on): Likewise.
44546
44547 2008-10-05  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/winsock.c (strerror): Remove unused #undef.
44550         (rpl_close): Remove unused local variable.
44551
44552         * modules/sys_socket (Depends-on); Add errno.
44553
44554 2008-10-05  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44557         (select): Add a link warning when the 'select' module is not used.
44558         * modules/sys_select (Depends-on): Add link-warning.
44559         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44560         Suggested by Paolo Bonzini.
44561
44562 2008-10-05  Jim Meyering  <meyering@redhat.com>
44563
44564         bootstrap: check for LT_INIT more portably
44565         * build-aux/bootstrap: Avoid using grep -E, since it's not
44566         portable enough.  Suggestion from Bruno Haible.
44567
44568 2008-10-05  Bruno Haible  <bruno@clisp.org>
44569
44570         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44571         as being fixed by gnulib.
44572
44573 2008-10-05  Bruno Haible  <bruno@clisp.org>
44574
44575         * modules/select-tests: New file, mostly copied from
44576         modules/sys_select-tests.
44577         * tests/test-select.c: New file, mostly copied from
44578         tests/test-sys_select.c.
44579         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44580         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44581         (Makefile.am): Remove test_sys_select_LDADD.
44582
44583         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44584         to an undefined symbol, for an error message.
44585         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44586         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44587         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44588         winsock-select.c here.
44589         * modules/sys_select (Files): Remove lib/winsock-select.c.
44590         (Depends-on): Remove alloca.
44591         (Makefile.am): Substitute GNULIB_SELECT.
44592         * modules/select: New file.
44593         * doc/posix-functions/select.texi: Update.
44594
44595 2008-10-05  Bruno Haible  <bruno@clisp.org>
44596
44597         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44598         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44599         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44600         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44601         getdtablesize.
44602         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44603         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44604
44605 2008-10-05  Bruno Haible  <bruno@clisp.org>
44606
44607         * modules/getdtablesize-tests: New file.
44608         * tests/test-getdtablesize.c: New file.
44609
44610         New module 'getdtablesize'.
44611         * lib/unistd.in.h (getdtablesize): New declaration.
44612         * lib/getdtablesize.c: New file.
44613         * m4/getdtablesize.m4: New file.
44614         * modules/getdtablesize: New file.
44615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44616         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44617         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44618         HAVE_GETDTABLESIZE.
44619         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44620
44621 2008-10-05  Bruno Haible  <bruno@clisp.org>
44622
44623         * modules/sched (Makefile.am): Fix typo.
44624         Reported by Simon Josefsson.
44625
44626 2008-10-05  Jim Meyering  <meyering@redhat.com>
44627
44628         bootstrap: check for LT_INIT, too
44629         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44630         are deprecated.  Suggestion from Ralf Wildenhues.
44631
44632 2008-10-05  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44635         overriding them by ours.
44636         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44637
44638 2008-10-05  Jim Meyering  <meyering@redhat.com>
44639
44640         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44641         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44642         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44643
44644 2008-10-04  Bruno Haible  <bruno@clisp.org>
44645
44646         * modules/dup2 (License): Change to LGPLv2+.
44647         * modules/sleep (License): Likewise.
44648         * modules/perror (License): Likewise.
44649         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44650         Blake.
44651         * modules/signal (License): Likewise.
44652         * modules/sigprocmask (License): Likewise.
44653         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44654         Meyering.
44655
44656 2008-10-04  Bruno Haible  <bruno@clisp.org>
44657
44658         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44659         Reported by Rainer Tammer <tammer@tammer.net>.
44660
44661 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44662             Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44665         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44666         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44667
44668 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44669
44670         filevercmp: new module
44671         * lib/filevercmp.h: New function filevercmp comparing version strings.
44672         * lib/filevercmp.c: Implementation of filevercmp function.
44673         * modules/filevercmp: Module metadata.
44674         * tests/test-filevercmp.c: Unit test for new module.
44675         * modules/filevercmp-tests: Unit test metadata.
44676         * MODULES.html.sh: Add filevercmp module.
44677
44678 2008-10-03  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/c-ctype.h: Add comment.
44681         Reported by Jim Meyering.
44682
44683 2008-10-02  Bruno Haible  <bruno@clisp.org>
44684
44685         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44686
44687 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44688
44689         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44690         name of bootstrap.conf accordingly.
44691
44692 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44693
44694         * build-aux/bootstrap: Install git-merge-changelog configuration
44695         items into .gitconfig if needed.
44696
44697 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44698
44699         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44700         git repository, and initialize/update it accordingly.
44701
44702 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44703
44704         * modules/fsync-tests: New file.
44705         * tests/test-fsync.c: New file.
44706
44707         New module 'fsync'.
44708         * lib/fsync.c: New file.
44709         * m4/fsync.m4: New file.
44710         * modules/fsync: New file.
44711         * lib/unistd.in.h (fsync): New declaration.
44712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44713         GNULIB_FSYNC and HAVE_FSYNC.
44714         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44715         * MODULES.html.sh (posix_functions): Add fsync.
44716         * doc/posix-functions/fsync.texi: Mention the new module.
44717
44718 2008-10-02  Jim Meyering  <meyering@redhat.com>
44719
44720         fts.c: sync with similar code from coreutils' remove.c
44721         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44722         Guard also with "#if defined __linux__", since for now at least,
44723         this code is Linux-kernel-specific.
44724
44725 2008-10-02  Jim Meyering  <meyering@redhat.com>
44726
44727         fts: bug fixes
44728         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44729         Include <sys/vfs.h>, not <sys/statfs.h>.
44730
44731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44732         Include <sys/vfs.h>, not <sys/statfs.h>.
44733
44734 2008-10-01  Bruno Haible  <bruno@clisp.org>
44735
44736         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44738         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44739         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44740         * doc/posix-functions/posix_spawnp.texi: Likewise.
44741         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44742         whether posix_spawn actually works.
44743         * m4/pipe.m4 (gl_PIPE): Likewise.
44744         * modules/execute (Files): Add m4/posix_spawn.m4.
44745         * modules/pipe (Files): Add m4/posix_spawn.m4.
44746         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44747
44748 2008-10-01  Jim Meyering  <meyering@redhat.com>
44749
44750         remove trailing spaces
44751         * NEWS: Likewise.
44752         * lib/poll.c (poll): Likewise.
44753         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44754         * lib/winsock.c (rpl_close): Likewise.
44755         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44756         * modules/yield: Likewise.
44757         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44758         * tests/test-sys_select.c (connect_to_socket): Likewise.
44759
44760         fts.c: adjust a new interface to be more generally useful
44761         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44762         (fts_build): Adjust caller.
44763
44764 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44765
44766         * modules/cond-tests: New file.
44767         * tests/test-cond.c: New file.
44768
44769 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44770             Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/cond (Dependencies): Add errno, time.
44773         * lib/glthread/cond.h: Include <time.h>.
44774         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44775         across platforms.
44776
44777 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44778             Bruno Haible  <bruno@clisp.org>
44779
44780         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44781
44782 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44783             Bruno Haible  <bruno@clisp.org>
44784
44785         * modules/tls-tests (Depends-on): Add thread, yield.
44786         (configure.ac): Remove all checks.
44787         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44788         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44789         gl_thread_self): Remove definitions. Include glthread/thread.h and
44790         glthread/yield.h instead.
44791         (test_tls): Pass an additional NULL argument to gl_thread_join.
44792
44793 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44794             Bruno Haible  <bruno@clisp.org>
44795
44796         * modules/lock-tests (Depends-on): Add thread, yield.
44797         (configure.ac): Remove all checks.
44798         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44799         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44800         gl_thread_self): Remove definitions. Include glthread/thread.h and
44801         glthread/yield.h instead.
44802         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44803         additional NULL argument to gl_thread_join.
44804
44805 2008-09-30  Bruno Haible  <bruno@clisp.org>
44806
44807         Fix the Win32 implementation of the 'thread' module.
44808         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44809         pointer type.
44810         (gl_thread_self): Invoke gl_thread_self_func.
44811         (gl_thread_self_func): New declaration.
44812         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44813         (do_init_self_key, init_self_key): New functions.
44814         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44815         Remove some fields.
44816         (running_threads, running_lock): Remove variables.
44817         (get_current_thread_handle): New function.
44818         (gl_thread_self_func, wrapper_func, glthread_create_func,
44819         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44820         simplified.
44821
44822 2008-09-30  Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44825         files.
44826
44827 2008-09-30  Jim Meyering  <meyering@redhat.com>
44828
44829         fts.m4: correct the test for statfs.f_type
44830         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44831         when checking for statfs.f_type.
44832
44833 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44834
44835         tests: avoid some compiler warnings
44836         * tests/test-memchr.c (main): Pass NULL indirectly.
44837         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44838
44839 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44840
44841         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44842         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44843         exactly specified dayshifts.
44844         (dayshift): New rule.
44845         (rel): Add dayshift.
44846         (relative_time_table) [tomorrow, yesterday, today, now]:
44847         Use tDAY_SHIFT in place of tDAY_UNIT.
44848         * tests/test-getdate.c: Add tests for now-disallowed countable
44849         dayshifts, e.g., "4 yesterday ago".
44850
44851 2008-09-29  Bruno Haible  <bruno@clisp.org>
44852
44853         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44854         * tests/test-posix_spawn1.in.sh: Renamed from
44855         tests/test-posix_spawn.in.sh.
44856         * tests/test-posix_spawn2.c: New file.
44857         * tests/test-posix_spawn2.in.sh: New file.
44858         * modules/posix_spawnp-tests (Files): Update.
44859         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44860
44861 2008-09-29  Bruno Haible  <bruno@clisp.org>
44862
44863         Propagate effects of putenv/setenv/unsetenv to child processes.
44864         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44865         * lib/pipe.c (create_pipe): Likewise.
44866
44867 2008-09-29  Bruno Haible  <bruno@clisp.org>
44868
44869         Enable use of shell scripts as executables in mingw.
44870         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44871         run the program as a shell script.
44872         * lib/pipe.c (create_pipe): Likewise.
44873         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44874         resulting array.
44875
44876 2008-09-29  Eric Blake  <ebb9@byu.net>
44877
44878         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44879
44880 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44881
44882         * doc/posix-functions/accept.texi: Update mingw problems.
44883         * doc/posix-functions/bind.texi: Update mingw problems.
44884         * doc/posix-functions/close.texi: Update mingw problems.
44885         * doc/posix-functions/connect.texi: Update mingw problems.
44886         * doc/posix-functions/getpeername.texi: Update mingw problems.
44887         * doc/posix-functions/getsockname.texi: Update mingw problems.
44888         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44889         * doc/posix-functions/ioctl.texi: Update mingw problems.
44890         * doc/posix-functions/listen.texi: Update mingw problems.
44891         * doc/posix-functions/recv.texi: Update mingw problems.
44892         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44893         * doc/posix-functions/select.texi: Update mingw problems.
44894         * doc/posix-functions/send.texi: Update mingw problems.
44895         * doc/posix-functions/sendto.texi: Update mingw problems.
44896         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44897         * doc/posix-functions/socket.texi: Update mingw problems.
44898
44899 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44900             Bruno Haible  <bruno@clisp.org>
44901
44902         * lib/sys_select.in.h: Include sys/time.h.
44903         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44904         * modules/sys_select: Depend on sys_time.
44905         * tests/test-sys_select.c: Test that sys/select.h defines struct
44906         timeval fully.
44907
44908 2008-09-29  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44911         * lib/sys_select.in.h: Likewise.
44912
44913 2008-09-29  Bruno Haible  <bruno@clisp.org>
44914
44915         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44916
44917 2008-09-29  Bruno Haible  <bruno@clisp.org>
44918
44919         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44920         Set LIBSOCKET instead of augmenting LIBS.
44921         * modules/sockets (Link): New section.
44922         * modules/sockets-tests (test_sockets_LDADD): New variable.
44923         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44924         * modules/poll-tests (test_poll_LDADD): New variable.
44925         * NEWS: Document the change.
44926
44927 2008-09-29  Bruno Haible  <bruno@clisp.org>
44928
44929         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44930         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44931         ARPA_INET_H directly.
44932         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44933
44934 2008-09-28  Bruno Haible  <bruno@clisp.org>
44935
44936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44937         from gl_HEADER_SYS_SOCKET.
44938         (gl_HEADER_SYS_SOCKET): Invoke it.
44939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44940
44941 2008-09-28  Bruno Haible  <bruno@clisp.org>
44942
44943         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44944         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44945         Needed on OSF/1 4.0.
44946
44947 2008-09-28  Bruno Haible  <bruno@clisp.org>
44948
44949         Override open more carefully.
44950         * lib/open.c (orig_open): New function.
44951         (rpl_open): Use orig_open instead of open.
44952         * lib/fcntl.in.h: Add special invocation convention.
44953         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44954         (gl_FUNC_OPEN): Invoke it.
44955
44956         Override freopen more carefully.
44957         * lib/freopen.c (orig_freopen): New function.
44958         (rpl_freopen): Use orig_freopen instead of freopen.
44959         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44960         (gl_FUNC_FREOPEN): Invoke it.
44961
44962         Override fopen more carefully.
44963         * lib/fopen.c (orig_fopen): New function.
44964         (rpl_fopen): Use orig_fopen instead of fopen.
44965         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44966         (gl_FUNC_FOPEN): Invoke it.
44967         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44968
44969 2008-09-28  Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44972         SIGPIPE.
44973
44974 2008-09-28  Bruno Haible  <bruno@clisp.org>
44975
44976         * tests/test-sigaction.c (handler, main): Disable the check whether
44977         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44978         glibc systems with LinuxThreads.
44979
44980 2008-09-28  Bruno Haible  <bruno@clisp.org>
44981
44982         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44983
44984         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44985         with AIX xlc.
44986         * lib/fcntl.in.h (open): Likewise.
44987         Reported by Rainer Tammer <tammer@tammer.net>.
44988
44989 2008-09-28  Bruno Haible  <bruno@clisp.org>
44990
44991         * modules/posix_spawnp-tests: New file.
44992         * tests/test-posix_spawn.c: New file.
44993         * tests/test-posix_spawn.in.sh: New file.
44994
44995         New module 'posix_spawnp'.
44996         * modules/posix_spawnp: New file.
44997         * lib/spawnp.c: New file, from GNU libc with modifications.
44998         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44999
45000         New module 'posix_spawn'.
45001         * modules/posix_spawn: New file.
45002         * lib/spawn.c: New file, from GNU libc with modifications.
45003         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45004
45005         New module 'posix_spawnattr_destroy'.
45006         * modules/posix_spawnattr_destroy: New file.
45007         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45008         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45009         module.
45010
45011         New module 'posix_spawnattr_setsigmask'.
45012         * modules/posix_spawnattr_setsigmask: New file.
45013         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45014         modifications.
45015         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45016         new module.
45017
45018         New module 'posix_spawnattr_getsigmask'.
45019         * modules/posix_spawnattr_getsigmask: New file.
45020         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45021         modifications.
45022         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45023         new module.
45024
45025         New module 'posix_spawnattr_setsigdefault'.
45026         * modules/posix_spawnattr_setsigdefault: New file.
45027         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45028         modifications.
45029         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45030         new module.
45031
45032         New module 'posix_spawnattr_getsigdefault'.
45033         * modules/posix_spawnattr_getsigdefault: New file.
45034         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45035         modifications.
45036         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45037         new module.
45038
45039         New module 'posix_spawnattr_setschedpolicy'.
45040         * modules/posix_spawnattr_setschedpolicy: New file.
45041         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45042         modifications.
45043         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45044         new module.
45045
45046         New module 'posix_spawnattr_getschedpolicy'.
45047         * modules/posix_spawnattr_getschedpolicy: New file.
45048         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45049         modifications.
45050         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45051         new module.
45052
45053         New module 'posix_spawnattr_setschedparam'.
45054         * modules/posix_spawnattr_setschedparam: New file.
45055         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45056         modifications.
45057         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45058         new module.
45059
45060         New module 'posix_spawnattr_getschedparam'.
45061         * modules/posix_spawnattr_getschedparam: New file.
45062         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45063         modifications.
45064         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45065         new module.
45066
45067         New module 'posix_spawnattr_setpgroup'.
45068         * modules/posix_spawnattr_setpgroup: New file.
45069         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45070         modifications.
45071         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45072         module.
45073
45074         New module 'posix_spawnattr_getpgroup'.
45075         * modules/posix_spawnattr_getpgroup: New file.
45076         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45077         modifications.
45078         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45079         module.
45080
45081         New module 'posix_spawnattr_setflags'.
45082         * modules/posix_spawnattr_setflags: New file.
45083         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45084         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45085         module.
45086
45087         New module 'posix_spawnattr_getflags'.
45088         * modules/posix_spawnattr_getflags: New file.
45089         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45090         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45091         module.
45092
45093         New module 'posix_spawnattr_init'.
45094         * modules/posix_spawnattr_init: New file.
45095         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45096         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45097         module.
45098
45099         New module 'posix_spawn_file_actions_destroy'.
45100         * modules/posix_spawn_file_actions_destroy: New file.
45101         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45102         modifications.
45103         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45104         the new module.
45105
45106         New module 'posix_spawn_file_actions_addopen'.
45107         * modules/posix_spawn_file_actions_addopen: New file.
45108         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45109         modifications.
45110         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45111         the new module.
45112
45113         New module 'posix_spawn_file_actions_adddup2'.
45114         * modules/posix_spawn_file_actions_adddup2: New file.
45115         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45116         modifications.
45117         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45118         the new module.
45119
45120         New module 'posix_spawn_file_actions_addclose'.
45121         * modules/posix_spawn_file_actions_addclose: New file.
45122         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45123         modifications.
45124         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45125         the new module.
45126
45127         New module 'posix_spawn_file_actions_init'.
45128         * modules/posix_spawn_file_actions_init: New file.
45129         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45130         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45131         new module.
45132
45133         New module 'posix_spawn-internal'.
45134         * modules/posix_spawn-internal: New file.
45135         * lib/spawn_int.h: New file, from GNU libc with modifications.
45136         * lib/spawni.c: New file, from GNU libc with modifications.
45137         * m4/posix_spawn.m4: New file.
45138
45139         New module 'spawn'.
45140         * modules/spawn: New file.
45141         * lib/spawn.in.h: New file, from GNU libc with modifications.
45142         * m4/spawn_h.m4: New file.
45143         * doc/posix-headers/spawn.texi: Mention the new module.
45144
45145 2008-09-28  Bruno Haible  <bruno@clisp.org>
45146
45147         * modules/sched-tests: New file.
45148         * tests/test-sched.c: New file.
45149
45150         New module 'sched'.
45151         * modules/sched: New file.
45152         * lib/sched.in.h: New file.
45153         * m4/sched_h.m4: New file.
45154         * doc/posix-headers/sched.texi: Mention the new module.
45155
45156 2008-09-27  Eric Blake  <ebb9@byu.net>
45157
45158         Fix previous patch, and tweak references to $0.
45159         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45160         (func_version, func_gnulib_dir): Don't call this program
45161         gnulib-tool.
45162         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45163         with using $0 in function.
45164         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45165         (func_fatal_error): Reuse the name the user invoked us with.
45166
45167 2008-09-27  Bruno Haible  <bruno@clisp.org>
45168
45169         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45170         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45171         (gl_ICONV_H): Not here.
45172         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45173         instead of assigning ICONV_H directly.
45174
45175         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45177         WCHAR_H directly.
45178
45179 2008-09-27  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45182         * modules/arpa_inet (Depends-on): Add link-warning.
45183         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45184         * modules/unistd (Makefile.am): Likewise.
45185
45186 2008-09-26  Bruno Haible  <bruno@clisp.org>
45187
45188         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45189         variables.
45190         (func_version): Essentially copied from gnulib-tool.
45191         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45192         func_readlink): Copied from gnulib-tool.
45193
45194 2008-09-26  Bruno Haible  <bruno@clisp.org>
45195
45196         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45197         invoking git-version-gen.
45198
45199 2008-09-26  Bruno Haible  <bruno@clisp.org>
45200
45201         * posix-modules: Update to directory names changed on 2008-01-19.
45202         Remove commas in output before splitting into words. No more need to
45203         avoid 'ftruncate' since 2007-02-19.
45204
45205 2008-09-26  Bruno Haible  <bruno@clisp.org>
45206
45207         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45208
45209 2008-09-26  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45212         * modules/fwriteerror (Depends-on): Add errno.
45213
45214 2008-09-26  Bruno Haible  <bruno@clisp.org>
45215
45216         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45217         * tests/test-vc-list-files-cvs.sh: Likewise.
45218
45219 2008-09-26  Bruno Haible  <bruno@clisp.org>
45220
45221         * doc/posix-headers/sys_resource.texi: Reorder items.
45222
45223 2008-09-26  Jim Meyering  <meyering@redhat.com>
45224
45225         fts: tweak inode comparison function
45226         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45227         inode numbers, as documented.
45228
45229         fts: sort dirent entries on inode number before traversing
45230         This avoids a quadratic, seek-related performance penalty when
45231         operating on a directory containing many entries (measurable at 10k;
45232         3.5 hours at 2 million entries with a cold cache) on certain types
45233         of file systems, including ext3 and ext4, but not tmpfs.
45234         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45235         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45236         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45237         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45238         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45239         (fts_build): Set the stat.st_ino member from D_INO.
45240         If it is likely to be useful, sort dirent entries on inode number.
45241
45242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45243         and the struct statfs.f_type member.
45244         * modules/fts (Depends-on): Add d-ino.
45245
45246 2008-09-26  Bruno Haible  <bruno@clisp.org>
45247
45248         * modules/sigpipe-die (Depends-on): Add sigpipe.
45249
45250         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45251         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45252         and GNULIB_STDIO_H_SIGPIPE are set.
45253         * lib/stdio-write.c: New file.
45254         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45255         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45256         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45257         REPLACE_STDIO_WRITE_FUNCS.
45258         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45259         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45260         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45261         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45262         * modules/stdio (Files): Add lib/stdio-write.c.
45263         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45264         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45265         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45266         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45267         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45268         REPLACE_FPRINTF_POSIX.
45269         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45270         REPLACE_PRINTF_POSIX.
45271         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45272         REPLACE_VFPRINTF_POSIX.
45273         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45274         REPLACE_VPRINTF_POSIX.
45275         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45276         SIGPIPE issue.
45277         * doc/posix-functions/fputc.texi: Likewise.
45278         * doc/posix-functions/fputs.texi: Likewise.
45279         * doc/posix-functions/fwrite.texi: Likewise.
45280         * doc/posix-functions/printf.texi: Likewise.
45281         * doc/posix-functions/putc.texi: Likewise.
45282         * doc/posix-functions/putchar.texi: Likewise.
45283         * doc/posix-functions/puts.texi: Likewise.
45284         * doc/posix-functions/vfprintf.texi: Likewise.
45285         * doc/posix-functions/vprintf.texi: Likewise.
45286
45287         * modules/safe-write (Depends-on): Add write.
45288
45289         * modules/sigpipe-tests: New file.
45290         * tests/test-sigpipe.c: New file.
45291         * tests/test-sigpipe.sh: New file.
45292
45293         * modules/write: New file.
45294         * lib/unistd.in.h: Include <sys/types.h>.
45295         (write): New declaration.
45296         * lib/write.c: New file.
45297         * m4/write.m4: New file.
45298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45299         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45300         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45301         GNULIB_WRITE, REPLACE_WRITE.
45302         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45303         and the SIGPIPE issue.
45304
45305         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45306         (raise): New declaration.
45307         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45308         (ext_signal): New function.
45309         (rpl_raise): New function.
45310         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45311         GNULIB_SIGNAL_H_SIGPIPE.
45312         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45313         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45314
45315         * modules/sigpipe: New file.
45316         * m4/sigpipe.m4: New file.
45317
45318 2008-09-25  Derek Price  <derek@ximbiot.com>
45319             Bruno Haible  <bruno@clisp.org>
45320
45321         * gnulib-tool (func_import): Report all license incompatibilities, not
45322         just the first one.
45323
45324 2008-09-25  Bruno Haible  <bruno@clisp.org>
45325
45326         * gnulib-tool (func_import): When computing the edits, consider not
45327         only the Makefile.ams that exist but also those that will be generated.
45328
45329 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45330
45331         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45332         fixes gnulib-tool --test warning about duplicate dependency.
45333
45334 2008-09-25  Bruno Haible  <bruno@clisp.org>
45335
45336         * gnulib-tool: Don't ask the user to perform edits in the generated
45337         Makefile.ams.
45338         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45339         apply to the Makefile.am being generated.
45340         (func_emit_tests_Makefile_am): Execute edits that apply to the
45341         Makefile.am being generated.
45342         (func_import): Setup list of Makefile.am edits before emitting the
45343         Makefile.ams, not at the end.
45344         (func_create_testdir): Update.
45345         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45346
45347 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45348
45349         * gnulib-tool (func_import): Store the --tests-base option in the
45350         comment in gnulib-cache.m4.
45351
45352 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45353
45354         * NEWS: Document increased portability that sys_select now provides.
45355
45356         * lib/sys_select.in.h: Install select wrapper.
45357         * lib/sys_socket.in.h: Use more descriptive name when there is no
45358         select wrapper.
45359         * lib/winsock-select.c: New.
45360         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45361         Require gl_HEADER_SYS_SOCKET.
45362         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45363         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45364         * tests/test-sys_select.c: Add functional tests.
45365
45366 2008-09-24  Eric Blake  <ebb9@byu.net>
45367
45368         open, fopen: close fd leak in last patch
45369         * lib/open.c (rpl_open): Close fd before returning error.
45370         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45371         * doc/posix-functions/open.texi (open): Document that Irix also
45372         has the bug.
45373         * doc/posix-functions/fopen.texi (fopen): Likewise.
45374         Reported by Paolo Bonzini.
45375
45376 2008-09-24  Bruno Haible  <bruno@clisp.org>
45377
45378         Ensure that a filename ending in a slash cannot be used to access a
45379         non-directory.
45380         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45381         to check whether it's really a directory.
45382         * lib/fopen.c: Include fcntl.h, unistd.h.
45383         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45384         and fdopen().
45385         * modules/fopen (Depends-on): Add unistd.
45386         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45387         * tests/test-fopen.c (main): Likewise.
45388         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45389         * doc/posix-functions/fopen.texi: Likewise.
45390         Reported by Eric Blake.
45391
45392 2008-09-23  Eric Blake  <ebb9@byu.net>
45393
45394         c-stack: avoid compiler optimizations when provoking overflow
45395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45396         recursion harder to optimize, to ensure a stack overflow occurs.
45397         * tests/test-c-stack.c (recurse): Likewise.
45398         Borrowed from libsigsegv.
45399
45400         c-stack: work around Irix sigaltstack bug
45401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45402         whether sigaltstack uses wrong end of stack_t (copied in part from
45403         libsigsegv).
45404         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45405         Irix bug, without requiring an over-allocation.
45406         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45407         bug.
45408
45409         fopen: document mingw bug on directories
45410         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45411         not allowing a stream visiting a directory, even though reading
45412         from such a stream is not portable.
45413
45414 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45415
45416         * lib/poll.c: Rewrite.
45417         * modules/poll: Depend on alloca.
45418
45419 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45420
45421         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45422         instead define prototypes for a full set of wrappers.  Ensure
45423         that Cygwin does not use the compatibility code, which is only
45424         for MinGW.
45425         * lib/winsock.c: New.
45426         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45427         * modules/sys_socket: Add lib/winsock.c.
45428
45429         * modules/poll-tests: Add errno and perror.
45430         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45431
45432 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45433
45434         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45435
45436 2008-09-23  Bruno Haible  <bruno@clisp.org>
45437
45438         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45439         * doc/glibc-functions/*: Likewise.
45440
45441 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45442
45443         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45444         success.
45445
45446 2008-09-22  Eric Blake  <ebb9@byu.net>
45447             Bruno Haible  <bruno@clisp.org>
45448
45449         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45450         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45451         supply %A but mishandle pseudo-NaN.
45452         Reported by Simon Josefsson.
45453
45454 2008-09-21  Bruno Haible  <bruno@clisp.org>
45455
45456         * tests/test-lock.c (main): Tweak skip message.
45457         * tests/test-tls.c (main): Likewise.
45458
45459 2008-09-21  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45462         whether 'struct sigaction' has sa_sigaction here...
45463         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45464         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45465
45466 2008-09-21  Bruno Haible  <bruno@clisp.org>
45467
45468         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45469         section.
45470         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45471         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45472         the new section.
45473         (Support for obsolete systems lacking POSIX:2001): New section.
45474         (String handling <string.h>): Move strdup to the new section.
45475         Suggested by Simon Josefsson and Paolo Bonzini.
45476
45477 2008-09-21  Bruno Haible  <bruno@clisp.org>
45478
45479         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45480         exponents in %e and %g results on 'long double'. Needed for mingw's
45481         improved *printf functions.
45482         * tests/test-vasprintf-posix.c (test_function): Likewise.
45483         * tests/test-snprintf-posix.h (test_function): Likewise.
45484         * tests/test-sprintf-posix.h (test_function): Likewise.
45485         Reported by Eric Blake.
45486
45487 2008-09-21  Bruno Haible  <bruno@clisp.org>
45488
45489         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45490         * tests/test-sprintf-posix.h (test_function): Likewise.
45491
45492 2008-09-21  Bruno Haible  <bruno@clisp.org>
45493
45494         * modules/getpass (Depends-on): Add strdup-posix.
45495
45496         New module 'strdup-posix'.
45497         * modules/strdup-posix: New file.
45498         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45499         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45501         REPLACE_STRDUP.
45502         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45503         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45505         strdup-posix.
45506
45507         * modules/strdup (Depends-on): Remove malloc-posix.
45508
45509 2008-09-20  Bruno Haible  <bruno@clisp.org>
45510
45511         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45512         Wildenhues.
45513
45514 2008-09-20  Bruno Haible  <bruno@clisp.org>
45515
45516         Ensure that wint_t gets defined on IRIX 5.3.
45517         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45518         * lib/wctype.in.h (wint_t): Likewise.
45519         (__wctype_wint_t): Remove type.
45520         (isw*): Use wint_t instead of __wctype_wint_t.
45521         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45522         * modules/wchar (Files): Add m4/wint_t.m4.
45523         (Makefile.am): Substitute HAVE_WINT_T.
45524         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45525         * tests/test-wctype.c: Check that wint_t is defined.
45526         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45527         * doc/posix-headers/wctype.texi: Likewise.
45528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45529
45530 2008-09-18  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool (func_exit): Update comment.
45533
45534 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45535
45536         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45537         assumes strdup exists and does not depend on strdup to return
45538         ENOMEM on out of memory conditions.
45539
45540 2008-09-18  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45543         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45544         digits for the exponent.
45545
45546 2008-09-18  Jim Meyering  <meyering@redhat.com>
45547             Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/vasnprintf.c (decimal_point_char): Define also if
45550         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45551
45552 2008-09-16  Bruno Haible  <bruno@clisp.org>
45553         and Eric Blake  <ebb9@byu.net>
45554
45555         vasnprintf: support Irix 5.3
45556         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45557         that mishandle long double infinity.
45558         Reported by Tom G. Christensen.
45559
45560 2008-09-16  Bruno Haible  <bruno@clisp.org>
45561
45562         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45563         Solaris 9.
45564         * doc/glibc-functions/alphasort.texi: Likewise.
45565         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45566
45567 2008-09-16  Jim Meyering  <meyering@redhat.com>
45568
45569         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45570         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45571         a umask modification leak out of a subshell.  Otherwise, the
45572         opensolaris /bin/sh would be accepted and thus cause unwarranted
45573         failures in the coreutils test suite.
45574
45575 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45576
45577         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45578         to succeed.
45579
45580 2008-09-16  Jim Meyering  <meyering@redhat.com>
45581
45582         avoid spurious test failure when library is built without ACL support
45583         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45584         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45585         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45586         * tests/test-copy-acl.sh: Likewise.
45587
45588 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45589
45590         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45591         based on character occurrence counts.
45592
45593 2008-09-15  Eric Blake  <ebb9@byu.net>
45594
45595         tests: avoid some compiler warnings
45596         * tests/test-memchr.c (main): Pass NULL indirectly.
45597         * tests/test-closein.c (main): Avoid unused variable.
45598
45599 2008-09-15  Bruno Haible  <bruno@clisp.org>
45600
45601         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45602         are missing on OpenBSD 4.0 individually.
45603         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45604
45605 2008-09-15  Bruno Haible  <bruno@clisp.org>
45606
45607         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45608         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45609         * doc/posix-functions/perror.texi: Likewise.
45610         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45611         is missing.
45612         Reported by Eric Blake.
45613
45614         * lib/errno.in.h: Use replacement values >= 2000.
45615         Reported by Eric Blake.
45616
45617 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45618
45619         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45620         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45621         limit.
45622         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45623         compareseq was aborted.
45624
45625 2008-09-14  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45628         yvec_edit_count.
45629         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45630         (fstrcmp_bounded): Simplify result computation accordingly.
45631
45632 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45633
45634         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45635         (fstrcmp): Define in terms of fstrcmp_bounded.
45636         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45637         lower_bound argument.
45638         Return quickly if the result is certainly < lower_bound.
45639         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45640
45641 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45642
45643         * lib/diffseq.h (EARLY_ABORT): New macro.
45644         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45645         evaluates to true.
45646
45647 2008-09-14  Bruno Haible  <bruno@clisp.org>
45648
45649         * modules/perror-tests: New file.
45650         * tests/test-perror.sh: New file.
45651         * tests/test-perror.c: New file.
45652
45653         New module 'perror'.
45654         * lib/stdio.in.h (perror): New declaration.
45655         * lib/perror.c: New file.
45656         * m4/perror.m4: New file.
45657         * modules/perror: New file.
45658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45659         * doc/posix-functions/perror.texi: Mention the perror module.
45660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45661         REPLACE_PERROR.
45662         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45663         REPLACE_PERROR.
45664
45665 2008-09-14  Bruno Haible  <bruno@clisp.org>
45666
45667         * modules/stdio (Makefile.am): Reorder to match the order in
45668         lib/stdio.in.h.
45669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45670
45671 2008-09-13  Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45674
45675 2008-09-13  Bruno Haible  <bruno@clisp.org>
45676
45677         Extend strerror to cover the added errno values.
45678         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45679         (rpl_strerror): Provide error messages for the added errno values and
45680         for the WSA* values.
45681         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45682         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45683         strerror.
45684         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45685         * modules/strerror (Depends-on): Add errno.
45686         * doc/posix-functions/strerror.texi: Document the change.
45687         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45688         and EOVERFLOW.
45689
45690 2008-09-13  Bruno Haible  <bruno@clisp.org>
45691
45692         * modules/EOVERFLOW: Remove file.
45693         * m4/eoverflow.m4: Remove file.
45694         * modules/EOVERFLOW-tests: Remove file.
45695         * tests/test-EOVERFLOW.c: Remove file.
45696         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45697         * modules/ftell (Depends-on): Likewise.
45698         * modules/getdelim (Depends-on): Likewise.
45699         * modules/getugroups (Depends-on): Likewise.
45700         * modules/poll (Depends-on): Likewise.
45701         * modules/snprintf (Depends-on): Likewise.
45702         * modules/sprintf-posix (Depends-on): Likewise.
45703         * modules/vasnprintf (Depends-on): Likewise.
45704         * modules/vasprintf (Depends-on): Likewise.
45705         * modules/vfprintf-posix (Depends-on): Likewise.
45706         * modules/vsnprintf (Depends-on): Likewise.
45707         * modules/vsprintf-posix (Depends-on): Likewise.
45708         * modules/xvasprintf (Depends-on): Likewise.
45709         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45710         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45711         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45712         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45713         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45714         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45715         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45716         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45717         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45718         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45719         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45720         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45722         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45723         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45724         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45725         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45726         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45727         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45728         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45729         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45730         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45731         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45732         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45733         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45734         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45735         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45736         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45737         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45738         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45739         * MODULES.html.sh: Remove EOVERFLOW.
45740         * NEWS: Mention the change.
45741
45742 2008-09-13  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/errno-tests: New file.
45745         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45746
45747         * lib/errno.in.h: New file.
45748         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45749         * modules/errno: New file.
45750         * doc/posix-headers/errno.texi: Update documentation.
45751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45752
45753 2008-09-13  Bruno Haible  <bruno@clisp.org>
45754
45755         * tests/test-poll.c: Use #if for native Windows, rather than testing
45756         __MSVCRT__.
45757
45758 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45759             Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/glob.c: Don't include <pwd.h> on native Windows.
45762         (WINDOWS32): New macro.
45763         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45764
45765 2008-09-13  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45768         (ETIMEDOUT): Remove macro.
45769         (glthread_cond_timedwait_multithreaded): New declaration.
45770         (glthread_cond_timedwait): Use it.
45771         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45772         (glthread_cond_timedwait_multithreaded): New function.
45773
45774 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45775
45776         * modules/poll-tests: Do not check for io.h.
45777         * tests/test-poll.c: Check for __MSVCRT__ instead.
45778
45779 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45780
45781         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45782         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45783         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45784
45785 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45786
45787         * modules/poll-tests: New.
45788         * tests/test-poll.c: New.
45789
45790 2008-09-12  Eric Blake  <ebb9@byu.net>
45791
45792         frexp: test for NetBSD failure on -0.0
45793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45794         not all, bugs from NetBSD 3.0 have been fixed.
45795         * doc/posix-functions/frexp.texi (frexp): Document bug.
45796         Reported by Thomas Klausner.
45797
45798         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45799         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45800         literal -0.0.
45801         Reported by Jonathan C. Patschke <jp@centtech.com>.
45802
45803 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45804
45805         * lib/glthread/cond.h: Use dummy implementation also if
45806         USE_WIN32_THREADS.
45807
45808 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45809
45810         * modules/fnmatch-posix (License): Change to LGPLv2+.
45811         * modules/fnmatch-gnu (License): Likewise.
45812
45813 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45814
45815         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45816
45817 2008-09-11  Jim Meyering  <meyering@redhat.com>
45818
45819         * users.txt: Add gtk-vnc.
45820
45821 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45822
45823         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45824         rotate amounts.
45825
45826         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45827         required for 16-bit and 8-bit rotates.
45828         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45829         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45830         UINT8_MAX instead of hard-coded constants.
45831         Suggested by Paul Eggert.
45832
45833 2008-09-07  Bruno Haible  <bruno@clisp.org>
45834
45835         * tests/test-striconveh.c (main): Check behaviour when converting from
45836         UTF-7.
45837
45838         Make striconveh work better with stateful encodings.
45839         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45840         that iconv does not increment the inptr when returning -1/EINVAL.
45841
45842 2008-09-07  Bruno Haible  <bruno@clisp.org>
45843
45844         * build-aux/config.rpath: Update according to libtool-2.2.6.
45845         * build-aux/config.libpath: Likewise.
45846
45847 2008-09-06  Bruno Haible  <bruno@clisp.org>
45848
45849         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45850         * lib/freadptr.c (freadptr): Likewise.
45851         * lib/freadseek.c (freadptrinc): Likewise.
45852         Reported by Simon Josefsson.
45853
45854 2008-09-06  Bruno Haible  <bruno@clisp.org>
45855
45856         * modules/freadptr (License): Change to LGPLv2+.
45857         * modules/freadseek (License): Likewise.
45858         Suggested by Eric Blake.
45859
45860         * modules/memchr2 (License): Change to LGPLv2+.
45861         Approved by Eric Blake.
45862
45863 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45864             Bruno Haible  <bruno@clisp.org>
45865
45866         Make gnulib-tool work with native 'sed' on AIX.
45867         * gnulib-tool (sed_noop): New variable.
45868         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45869         func_add_or_update, func_create_testdir): Use it to initialize sed
45870         script variables.
45871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45872
45873 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45874             Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45877         also works after #include directives.
45878
45879 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45880
45881         getdate.y: reject an out-of-range timezone value
45882         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45883         the range [-24...+24].  When specified with only one or two digits,
45884         * tests/test-getdate.c: Tests for the fix.
45885         * doc/getdate.texi: Document this change.
45886
45887 2008-09-03  Bruno Haible  <bruno@clisp.org>
45888
45889         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45890
45891 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45892
45893         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45894         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45895         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45896         Blake <ebb9@byu.net>.
45897
45898         * tests/test-bitrotate.c: Add more test vectors.
45899
45900 2008-09-02  Eric Blake  <ebb9@byu.net>
45901
45902         vasnprintf-posix: handle large precision via %.*d
45903         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45904         when handling it ourselves.
45905         * tests/test-vasnprintf-posix.c (test_function): Add test.
45906         * tests/test-snprintf-posix.h (test_function): Likewise.
45907         * tests/test-sprintf-posix.h (test_function): Likewise.
45908         * tests/test-vasprintf-posix.c (test_function): Likewise.
45909         Reported by Alain Guibert.
45910
45911 2008-09-01  Eric Blake  <ebb9@byu.net>
45912
45913         c-stack: make configure-time check more robust
45914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45915         successful sigaction call.
45916         Reported by Tom G. Christensen.
45917
45918 2008-09-01  Bruno Haible  <bruno@clisp.org>
45919
45920         New module 'findprog-lgpl'.
45921         * modules/findprog-lgpl: New file.
45922         * lib/findprog-lgpl.c: New file.
45923         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45924         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45925         to decide whether to use strdup or xstrdup, concatenated_filename or
45926         xconcatenated_filename.
45927
45928 2008-09-01  Bruno Haible  <bruno@clisp.org>
45929
45930         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45931         'xconcat-filename' (GPL).
45932         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45933         (License): Change to LGPLv2+.
45934         * modules/xconcat-filename: New file.
45935         * lib/concat-filename.h (concatenated_filename): Change specification.
45936         (xconcatenated_filename): New declaration.
45937         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45938         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45939         memory situations.
45940         * lib/xconcat-filename.c: New file.
45941         * NEWS: Mention the change.
45942         * lib/findprog.c: Include concat-filename.h, not filename.h.
45943         (find_in_path): Use xconcatenated_filename instead of
45944         concatenated_filename.
45945         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45946         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45947         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45948         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45949         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45950         instead of concatenated_filename.
45951         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45952         (execute_java_class): Use xconcatenated_filename instead of
45953         concatenated_filename.
45954         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45955         * modules/javacomp (Depends-on): Likewise.
45956         * modules/javaexec (Depends-on): Likewise.
45957
45958 2008-09-01  Bruno Haible  <bruno@clisp.org>
45959
45960         Split module 'filename' into 'filename' and 'concat-filename'.
45961         * modules/filename: Keep only lib/filename.h.
45962         (License): Change to LGPLv2+.
45963         * modules/concat-filename: New file, extracted from modules/filename.
45964         * lib/filename.h (concatenated_filename): Remove declaration.
45965         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45966         * lib/concat-filename.c: Include concat-filename.h.
45967         * NEWS: Mention the change.
45968
45969 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45970
45971         * lib/bitrotate.h (rotl8, rotr8): Add.
45972
45973         * modules/bitrotate (configure.ac): Need
45974         AC_REQUIRE([AC_C_INLINE]).
45975         (Description): Mention stdint.h.  Reported by Bruno Haible
45976         <bruno@clisp.org>.
45977
45978         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45979         Paolo Bonzini <bonzini@gnu.org>.
45980
45981 2008-08-31  Bruno Haible  <bruno@clisp.org>
45982
45983         Assume Solaris specific bi-arch conventions on Solaris systems.
45984         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45985         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45986         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45987         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45988         like acl_libdirstem.
45989         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45990         acl_libdirstem.
45991         * NEWS: Mention the change.
45992         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45993
45994 2008-08-31  Jim Meyering  <meyering@redhat.com>
45995
45996         * lib/strftime.h: Add comments describing the two added arguments.
45997
45998         remove duplicate #include directives
45999         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46000         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46001
46002 2008-08-31  Bruno Haible  <bruno@clisp.org>
46003
46004         New module 'sigpipe-die'.
46005         * modules/sigpipe-die: New file.
46006         * lib/sigpipe-die.h: New file.
46007         * lib/sigpipe-die.c: New file.
46008         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46009
46010 2008-08-31  Bruno Haible  <bruno@clisp.org>
46011
46012         Don't override previously installed signal handlers.
46013         * lib/fatal-signal.c (saved_sigactions): New variable.
46014         (uninstall_handlers): Reset the signal to the saved handler, not
46015         to SIG_DFL (except when ignored).
46016         (install_handlers): Save the previous handlers.
46017
46018 2008-08-30  Bruno Haible  <bruno@clisp.org>
46019
46020         * gnulib-tool (func_reset_sigpipe): New function.
46021         (func_get_automake_snippet, func_modules_transitive_closure,
46022         func_import): Invoke it before a join command that reads from stdin,
46023         to avoid "echo: write error: Broken pipe" error messages on stderr.
46024         Reported by Sam Steingold <sds@gnu.org>.
46025
46026 2008-08-30  Bruno Haible  <bruno@clisp.org>
46027
46028         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46029         Code copied from m4/open.m4.
46030         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46031         access and the filename ends in a slash. Code copied from lib/open.c.
46032         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46033         * tests/test-fopen.c (main): Check against bug with trailing slash.
46034
46035 2008-08-29  Bruno Haible  <bruno@clisp.org>
46036
46037         Avoid some "gcc -pedantic" warnings.
46038         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46039         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46040         * lib/dirent.in.h: Likewise.
46041         * lib/fcntl.in.h: Likewise.
46042         * lib/float.in.h: Likewise.
46043         * lib/iconv.in.h: Likewise.
46044         * lib/inttypes.in.h: Likewise.
46045         * lib/locale.in.h: Likewise.
46046         * lib/math.in.h: Likewise.
46047         * lib/netinet_in.in.h: Likewise.
46048         * lib/search.in.h: Likewise.
46049         * lib/signal.in.h: Likewise.
46050         * lib/stdarg.in.h: Likewise.
46051         * lib/stdint.in.h: Likewise.
46052         * lib/stdio.in.h: Likewise.
46053         * lib/stdlib.in.h: Likewise.
46054         * lib/string.in.h: Likewise.
46055         * lib/strings.in.h: Likewise.
46056         * lib/sys_select.in.h: Likewise.
46057         * lib/sys_socket.in.h: Likewise.
46058         * lib/sys_stat.in.h: Likewise.
46059         * lib/sys_time.in.h: Likewise.
46060         * lib/sysexits.in.h: Likewise.
46061         * lib/time.in.h: Likewise.
46062         * lib/unistd.in.h: Likewise.
46063         * lib/wchar.in.h: Likewise.
46064         * lib/wctype.in.h: Likewise.
46065         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46066         * modules/fchdir (Makefile.am): Likewise.
46067         * modules/fcntl (Makefile.am): Likewise.
46068         * modules/float (Makefile.am): Likewise.
46069         * modules/iconv_open (Makefile.am): Likewise.
46070         * modules/inttypes (Makefile.am): Likewise.
46071         * modules/locale (Makefile.am): Likewise.
46072         * modules/math (Makefile.am): Likewise.
46073         * modules/netinet_in (Makefile.am): Likewise.
46074         * modules/search (Makefile.am): Likewise.
46075         * modules/signal (Makefile.am): Likewise.
46076         * modules/stdarg (Makefile.am): Likewise.
46077         * modules/stdint (Makefile.am): Likewise.
46078         * modules/stdio (Makefile.am): Likewise.
46079         * modules/stdlib (Makefile.am): Likewise.
46080         * modules/string (Makefile.am): Likewise.
46081         * modules/strings (Makefile.am): Likewise.
46082         * modules/sys_select (Makefile.am): Likewise.
46083         * modules/sys_socket (Makefile.am): Likewise.
46084         * modules/sys_stat (Makefile.am): Likewise.
46085         * modules/sys_time (Makefile.am): Likewise.
46086         * modules/sysexits (Makefile.am): Likewise.
46087         * modules/time (Makefile.am): Likewise.
46088         * modules/unistd (Makefile.am): Likewise.
46089         * modules/wchar (Makefile.am): Likewise.
46090         * modules/wctype (Makefile.am): Likewise.
46091         Reported by Reuben Thomas <rrt@sc3d.org>.
46092
46093 2008-08-29  Bruno Haible  <bruno@clisp.org>
46094
46095         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46096         any more.
46097
46098 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46099
46100         * MODULES.html.sh (Misc): Add bitrotate.
46101
46102         * modules/bitrotate: New file.
46103
46104         * lib/bitrotate.h: New file.
46105
46106         * modules/bitrotate-tests: New file.
46107
46108         * tests/test-bitrotate.c: New file.
46109
46110         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46111         on the bitrotate module.
46112
46113         * lib/arctwo.c: Use new bitrotate module.
46114
46115 2008-08-29  Jim Meyering  <meyering@redhat.com>
46116
46117         bootstrap: merge changes from coreutils
46118         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46119         of copied files.  Remove a kludge, now that this is fixed.
46120         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46121         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46122         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46123
46124 2008-08-29  Bruno Haible  <bruno@clisp.org>
46125
46126         * MODULES.html.sh: Remove --cvs-urls option.
46127
46128 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46129
46130         maint.mk: adjust to file name change
46131         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46132
46133 2008-08-28  Jim Meyering  <meyering@redhat.com>
46134
46135         * modules/getndelim2 (License): Relicense to LGPLv2+.
46136         Approved by Richard Stallman for the version of 1995, and by
46137         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46138
46139 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46140
46141         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46142         dummy if one is not available.  Do not touch them if
46143         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46144         (getc_maybe_unlocked): New.
46145         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46146
46147 2008-08-26  Eric Blake  <ebb9@byu.net>
46148
46149         doc/INSTALL: resync from autoconf
46150         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46151         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46152         moving...
46153         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46154         * INSTALL: Regenerate.
46155         * INSTALL.ISO: New file.
46156         * INSTALL.UTF-8: Likewise.
46157
46158 2008-08-26  Jim Meyering  <meyering@redhat.com>
46159
46160         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46161         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46162         these definitions conditional, so that they may be overridden, too.
46163
46164 2008-08-26  Bruno Haible  <bruno@clisp.org>
46165
46166         Generate INSTALL file variants with prettier quotes.
46167         * doc/Makefile (INSTALL_PRELUDE): New macro.
46168         (INSTALL): Use it.
46169         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46170
46171 2008-08-26  Bruno Haible  <bruno@clisp.org>
46172
46173         Run makeinfo in an English locale.
46174         * doc/Makefile (MAKEINFO): New variable.
46175
46176 2008-08-26  Bruno Haible  <bruno@clisp.org>
46177
46178         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46179         Suggested by Eric Blake.
46180
46181 2008-08-25  Bruno Haible  <bruno@clisp.org>
46182
46183         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46184
46185 2008-08-25  Eric Blake  <ebb9@byu.net>
46186
46187         c-stack: test that stack overflow can be caught
46188         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46189         that platform allows handling stack overflow; at least OS/2 EMX
46190         has sigaltstack, but crashes before transferring control to
46191         handler on stack overflow.
46192         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46193         check for HAVE_STACK_OVERFLOW_HANDLING.
46194         Reported by Elbert Pol.
46195
46196 2008-08-25  Bruno Haible  <bruno@clisp.org>
46197
46198         * doc/posix-functions/strftime.texi: Fix description of strftime
46199         module.
46200
46201 2008-08-24  Bruno Haible  <bruno@clisp.org>
46202
46203         * tests/uniwidth/test-uc_width2.c: New file.
46204         * tests/uniwidth/test-uc_width2.sh: New file.
46205         * modules/uniwidth/width-tests (Files): Add the new files.
46206         (TESTS): Add uniwidth/test-uc_width2.sh.
46207         (TESTS_ENVIRONMENT): New variable.
46208         (check_PROGRAMS): Add test-uc_width2.
46209         (test_uc_width2_SOURCES): New variable.
46210
46211         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46212         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46213         not 0x00AB.
46214         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46215
46216 2008-08-22  Eric Blake  <ebb9@byu.net>
46217
46218         test-lock, test-tls: mention why a test is skipped
46219         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46220         skipped.
46221         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46222
46223         count-one-bits: relax license
46224         * modules/count-one-bits (License): Relicense to LGPLv2+.
46225         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46226
46227 2008-08-22  Andreas Schwab  <schwab@suse.de>
46228
46229         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46230         Remove spurious space in assignment.
46231
46232 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46233
46234         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46235         Paul Eggert <eggert@CS.UCLA.EDU>.
46236
46237 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46238
46239         * modules/gettext: Add m4/threadlib.m4.
46240
46241 2008-08-19  Eric Blake  <ebb9@byu.net>
46242
46243         test-c-stack: fix compilation failure on FreeBSD 5.0
46244         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46245         headers before <sys/resource.h>.
46246         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46247         the bug.
46248         Reported by Nelson H. F. Beebe.
46249
46250         strverscmp: migrate from "strverscmp.h" to <string.h>
46251         * modules/string (Makefile.am): Add new hooks.
46252         * modules/strverscmp (Files): Remove strverscmp.h.
46253         (Depends-on): Add string.
46254         (configure.ac): Add indicator.
46255         (Include): Mention new header.
46256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46257         defaults.
46258         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46259         results.
46260         * lib/strverscmp.h: Delete.
46261         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46262         * tests/test-strverscmp.c (includes): Adjust client.
46263         * lib/check-version.c (includes): Likewise.
46264         * NEWS: Document the change.
46265
46266         strverscmp: add unit test
46267         * modules/strverscmp-tests: New file.
46268         * tests/test-strverscmp.c: Likewise.
46269
46270 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46271
46272         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46273         regarding Windows crypto stuff, from Mono.
46274
46275 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46276
46277         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46278         if present, for intel RND.  Return error on failures.
46279
46280 2008-08-18  Ben Pfaff  <blp@gnu.org>
46281
46282         gitlog-to-changelog: give better diagnostic for failed pipe-open
46283         * build-aux/gitlog-to-changelog: Improve error message: suggest
46284         that the version of Git may be too old.
46285
46286 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46287
46288         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46289         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46290
46291 2008-08-18  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46294         pthread_in_use().
46295
46296 2008-08-18  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/glthread/threadlib.c: Include <pthread.h>.
46299
46300 2008-08-18  Bruno Haible  <bruno@clisp.org>
46301
46302         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46303         glthread_recursive_lock_* macros.
46304         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46305         Fix syntax error.
46306
46307 2008-08-18  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/glthread/thread.c: Avoid forcing a context switch right after
46310         thread creation.
46311
46312 2008-08-17  Bruno Haible  <bruno@clisp.org>
46313
46314         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46315         * lib/glthread/thread.h: Provide Win32 specific implementation.
46316         * modules/thread (Files): Add lib/glthread/thread.c.
46317         (Depends-on): Add lock.
46318         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46319
46320 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46321
46322         New module 'yield'.
46323         * modules/yield: New file.
46324         * lib/glthread/yield.h: New file.
46325         * m4/yield.m4: New file.
46326         * MODULES.html.sh (Multithreading): Add yield.
46327
46328 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46329
46330         New module 'thread'.
46331         * modules/thread: New file.
46332         * lib/glthread/thread.h: New file.
46333         * m4/thread.m4: New file.
46334         * MODULES.html.sh (Multithreading): Add thread.
46335
46336 2008-08-17  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/glthread/lock.h: Include <stdlib.h> always.
46339         * lib/glthread/tls.h: Likewise.
46340         * lib/glthread/cond.h: Likewise.
46341
46342 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46343
46344         New module 'cond'.
46345         * modules/cond: New file.
46346         * lib/glthread/cond.h: New file.
46347         * lib/glthread/cond.c: New file.
46348         * m4/cond.m4: New file.
46349         * MODULES.html.sh (Multithreading): Add cond.
46350
46351 2008-08-16  Eric Blake  <ebb9@byu.net>
46352
46353         c-stack: fix regression on Irix 5.3 from 2008-06-21
46354         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46355         sa_sigaction...
46356         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46357         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46358         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46359         * modules/signal (Makefile.am): Use the value.
46360         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46361         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46362         * doc/posix-headers/signal.texi (signal.h): Document this
46363         portability issue.
46364         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46365         Reported by Tom G. Christensen.
46366
46367 2008-08-17  Bruno Haible  <bruno@clisp.org>
46368
46369         New module 'threadlib'.
46370         * modules/threadlib: New file.
46371         * lib/glthread/threadlib.c: New file, extracted from
46372         lib/glthread/lock.c.
46373         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46374         functions.
46375         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46376         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46377         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46378         macros.
46379         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46380         (gl_DISABLE_THREADS): Remove macro.
46381         * modules/lock (Files): Remove build-aux/config.rpath.
46382         (Depends-on): Remove havelib. Add threadlib.
46383         (configure.ac-early): Remove section.
46384         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46385         * modules/tls (Depends-on): Remove lock. Add threadlib.
46386         (Link): New section, copied from threadlib.
46387         * MODULES.html.sh (Multithreading): Add threadlib.
46388
46389 2008-08-14  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46392         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46393         glthread_rwlock_unlock, glthread_rwlock_destroy,
46394         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46395         glthread_recursive_lock_destroy): Define as macros always.
46396         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46397         glthread_lock_lock.
46398         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46399         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46400         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46401         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46402         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46403         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46404         (glthread_recursive_lock_lock_func): Renamed from
46405         glthread_recursive_lock_lock.
46406         (glthread_recursive_lock_unlock_func): Renamed from
46407         glthread_recursive_lock_unlock.
46408         (glthread_recursive_lock_destroy_func): Renamed from
46409         glthread_recursive_lock_destroy.
46410
46411 2008-08-14  Bruno Haible  <bruno@clisp.org>
46412
46413         * lib/glthread/lock.h: Renamed from lib/lock.h.
46414         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46415         * lib/glthread/tls.h: Renamed from lib/tls.h.
46416         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46417         * lib/fstrcmp.c: Update includes.
46418         * lib/strsignal.c: Update includes.
46419         * modules/lock (Files, Makefile.am): Update.
46420         (Include): Change to "glthread/lock.h".
46421         * modules/tls (Files, Makefile.am): Update.
46422         (Include): Change to "glthread/tls.h".
46423         * tests/test-lock.c: Update includes.
46424         * tests/test-tls.c: Update includes.
46425         * NEWS: Mention the renamed header files.
46426
46427 2008-08-11  Jim Meyering  <meyering@redhat.com>
46428
46429         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46430
46431 2008-08-11  Eric Blake  <ebb9@byu.net>
46432
46433         test-c-stack: avoid C99-ism
46434         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46435         before statement.
46436         Reported by Alain Guibert.
46437
46438 2008-08-10  Jim Meyering  <meyering@redhat.com>
46439
46440         ensure that return value of uinttostr et al are not ignored
46441         * lib/inttostr.h (__GNUC_PREREQ): Define.
46442         (__attribute_warn_unused_result__): Define.
46443         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46444
46445 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46446
46447         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46448         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46449
46450 2008-08-07  Jim Meyering  <meyering@redhat.com>
46451
46452         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46453
46454         * modules/mkstemp (License): Relicense under LGPLv2+.
46455         * modules/tempname (License): Likewise.
46456
46457 2008-08-06  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/poll.c (poll): Further micro-optimization.
46460
46461 2008-08-06  Jim Meyering  <meyering@redhat.com>
46462
46463         inet_pton.c: use locale-independent tolower
46464         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46465         (inet_pton6): Use c_tolower rather than tolower.
46466         * modules/inet_pton (Depends-on): Add c-ctype.
46467
46468 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46469
46470         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46471         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46472
46473 2008-08-06  Jim Meyering  <meyering@redhat.com>
46474
46475         * modules/inet_pton (License): Relicense under LGPLv2+.
46476
46477 2008-08-03  Bruno Haible  <bruno@clisp.org>
46478
46479         Additional non-aborting API for lock and tls.
46480         * lib/lock.h: Include <errno.h>.
46481         (glthread_lock_init): New macro/function.
46482         (gl_lock_init): Define as wrapper around glthread_lock_init.
46483         (glthread_lock_lock): New macro/function.
46484         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46485         (glthread_lock_unlock): New macro/function.
46486         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46487         (glthread_lock_destroy): New macro/function.
46488         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46489         (glthread_rwlock_init): New macro/function.
46490         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46491         (glthread_rwlock_rdlock): New macro/function.
46492         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46493         (glthread_rwlock_wrlock): New macro/function.
46494         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46495         (glthread_rwlock_unlock): New macro/function.
46496         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46497         (glthread_rwlock_destroy): New macro/function.
46498         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46499         (glthread_recursive_lock_init): New macro/function.
46500         (gl_recursive_lock_init): Define as wrapper around
46501         glthread_recursive_lock_init.
46502         (glthread_recursive_lock_lock): New macro/function.
46503         (gl_recursive_lock_lock): Define as wrapper around
46504         glthread_recursive_lock_lock.
46505         (glthread_recursive_lock_unlock): New macro/function.
46506         (gl_recursive_lock_unlock): Define as wrapper around
46507         glthread_recursive_lock_unlock.
46508         (glthread_recursive_lock_destroy): New macro/function.
46509         (gl_recursive_lock_destroy): Define as wrapper around
46510         glthread_recursive_lock_destroy.
46511         (glthread_once): New macro/function.
46512         (gl_once): Define as wrapper around glthread_once.
46513         Update function declarations.
46514         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46515         glthread_rwlock_init. Return error code.
46516         (glthread_rwlock_rdlock_multithreaded): Renamed from
46517         glthread_rwlock_rdlock. Return error code.
46518         (glthread_rwlock_wrlock_multithreaded): Renamed from
46519         glthread_rwlock_wrlock. Return error code.
46520         (glthread_rwlock_unlock_multithreaded): Renamed from
46521         glthread_rwlock_unlock. Return error code.
46522         (glthread_rwlock_destroy_multithreaded): Renamed from
46523         glthread_rwlock_destroy. Return error code.
46524         (glthread_recursive_lock_init_multithreaded): Renamed from
46525         glthread_recursive_lock_init. Return error code.
46526         (glthread_recursive_lock_lock_multithreaded): Renamed from
46527         glthread_recursive_lock_lock. Return error code.
46528         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46529         glthread_recursive_lock_unlock. Return error code.
46530         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46531         glthread_recursive_lock_destroy. Return error code.
46532         (glthread_once_call): Make static.
46533         (glthread_once_multithreaded): Renamed from glthread_once.
46534         * lib/tls.h: Include <errno.h>.
46535         (glthread_tls_key_init): New macro/function.
46536         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46537         (glthread_tls_set): New macro/function.
46538         (gl_tls_set): Define as wrapper around glthread_tls_set.
46539         (glthread_tls_key_destroy): New macro/function.
46540         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46541         Update function declarations.
46542         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46543         glthread_tls_get.
46544         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46545
46546 2008-08-04  Eric Blake  <ebb9@byu.net>
46547
46548         gnumakefile: use space, not TAB, outside of targets
46549         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46550
46551 2008-08-02  Jim Meyering  <meyering@redhat.com>
46552
46553         getdate.y: avoid locale-dependent date parsing failure
46554         In Turkish locales, getdate would fail to recognize keywords
46555         containing a lowercase "i".  The solution is not to rely on
46556         locale-sensitive case-conversion.
46557         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46558         (lookup_word): Use c_toupper in place of toupper.
46559         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46560         Reported by Vefa Bicakci <bicave@superonline.com> in
46561         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46562         * modules/getdate (Depends-on): Add c-ctype.
46563
46564 2008-08-02  Bruno Haible  <bruno@clisp.org>
46565
46566         * gnulib-tool (func_import): When updating or creating a .gitignore
46567         file, prepend each added line with a slash, and ignore leading slashes
46568         from the existing lines.
46569         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46570
46571 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46572
46573         Portability fix for GNU make 3.79.1.
46574         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46575         versions do not understand.
46576
46577 2008-08-01  Bruno Haible  <bruno@clisp.org>
46578
46579         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46580         * tests/test-isnanf.h (zero): New variable.
46581         (main): Avoid literal -0.0f.
46582         * tests/test-isnand.h (zero): New variable.
46583         (main): Avoid literal -0.0.
46584         * tests/test-isnanl.h (zero): New variable.
46585         (main): Avoid literal -0.0L.
46586         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46587         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46588         -0.0, -0.0L.
46589         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46590         (test_signbitd): Avoid literal -0.0.
46591         (test_signbitl): Avoid literal -0.0L.
46592         * tests/test-ceilf1.c (zero): New variable.
46593         (main): Avoid literal -0.0f.
46594         * tests/test-ceill.c (zero): New variable.
46595         (main): Avoid literal -0.0L.
46596         * tests/test-floorf1.c (zero): New variable.
46597         (main): Avoid literal -0.0f.
46598         * tests/test-floorl.c (zero): New variable.
46599         (main): Avoid literal -0.0L.
46600         * tests/test-roundf1.c (zero): New variable.
46601         (main): Avoid literal -0.0f.
46602         * tests/test-round1.c (zero): New variable.
46603         (main): Avoid literal -0.0.
46604         * tests/test-roundl.c (zero): New variable.
46605         (main): Avoid literal -0.0L.
46606         * tests/test-truncf1.c (zero): New variable.
46607         (main): Avoid literal -0.0f.
46608         * tests/test-trunc1.c (zero): New variable.
46609         (main): Avoid literal -0.0.
46610         * tests/test-truncl.c (zero): New variable.
46611         (main): Avoid literal -0.0L.
46612         * tests/test-frexp.c (zero): New variable.
46613         (main): Avoid literal -0.0.
46614         * tests/test-frexpl.c (zero): New variable.
46615         (main): Avoid literal -0.0L.
46616         * tests/test-ldexpl.c (zero): New variable.
46617         (main): Avoid literal -0.0L.
46618         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46619         (zerod, zerol): New variables.
46620         (test_function): Avoid literals -0.0, -0.0L.
46621         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46622         (zerod, zerol): New variables.
46623         (test_function): Avoid literals -0.0, -0.0L.
46624         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46625         (zerod, zerol): New variables.
46626         (test_function): Avoid literals -0.0, -0.0L.
46627         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46628         (zerod, zerol): New variables.
46629         (test_function): Avoid literals -0.0, -0.0L.
46630         * tests/test-strtod.c (zero): New variable.
46631         (main): Avoid literal -0.0.
46632         Reported by Jonathan C. Patschke <jp@centtech.com>.
46633
46634 2008-07-31  Jim Meyering  <meyering@redhat.com>
46635
46636         sha256.h: correct definition of SHA224_DIGEST_SIZE
46637         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46638         Reported by Paulie Pena IV <paulie4@gmail.com>.
46639         Define as 224 / 8, rather than as a literal.
46640         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46641         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46642         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46643
46644 2008-07-31  Bruno Haible  <bruno@clisp.org>
46645
46646         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46647         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46648         Reported by Jonathan Patschke <jp@centtech.com>.
46649
46650 2008-07-31  Bruno Haible  <bruno@clisp.org>
46651
46652         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46653         Reported by Paolo Bonzini <bonzini@gnu.org>.
46654
46655 2008-07-30  Eric Blake  <ebb9@byu.net>
46656
46657         test-strtod: allow compilation without -lm
46658         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46659         Reported by Dennis Clarke <blastwave@gmail.com>.
46660
46661 2008-07-28  Jim Meyering  <meyering@redhat.com>
46662
46663         bootstrap: work also when there are no .po files in po/
46664         * build-aux/bootstrap (update_po_files): Complete the change
46665         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46666
46667 2008-07-27  Jim Meyering  <meyering@redhat.com>
46668
46669         * users.txt: Add zile.
46670
46671 2008-07-26  Ben Pfaff  <blp@gnu.org>
46672
46673         Add missing dependencies on new m4/exponent[fdl].m4 files.
46674         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46675         * modules/isnand-nolibm: Add m4/exponentd.m4.
46676         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46677         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46678         m4/isnan[fdl].m4, because the macros actually used moved.
46679         Reported by Jim Meyering.
46680
46681 2008-07-14  Ben Pfaff  <blp@gnu.org>
46682
46683         Add isinf module.
46684         * lib/isinf.c: New file.
46685         * lib/math.in.h: Define isinf macro if we have decided to replace
46686         it.
46687         * m4/isinf.m4: New file.
46688         * m4/math_h.m4: Initialize and substitute variables for isinf
46689         module.
46690         * modules/isinf: New file.
46691         * modules/isinf-tests: New file.
46692         * modules/math: Add substitutions for new module.
46693         * tests/test-isinf.c: New file.
46694         * doc/posix-functions/isinf.texi: Mention new module.
46695         * MODULES.html.sh: Mention new module.
46696
46697 2008-07-14  Ben Pfaff  <blp@gnu.org>
46698
46699         Factor out some macros for use by additional modules.
46700         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46701         exponentf.m4.
46702         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46703         exponentd.m4.
46704         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46705         file exponentl.m4.
46706         * m4/exponentf.m4: New file.
46707         * m4/exponentd.m4: New file.
46708         * m4/exponentl.m4: New file.
46709         * modules/isnanf: Use new file m4/exponentf.m4.
46710         * modules/isnand: Use new file m4/exponentd.m4.
46711         * modules/isnanl: Use new file m4/exponentl.m4.
46712
46713 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46714
46715         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46716         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46717         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46718         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46719
46720         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46721         readlink on platforms without PATH_MAX.
46722
46723 2008-07-21  Eric Blake  <ebb9@byu.net>
46724
46725         Warn, not fail, on stale version.
46726         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46727
46728         Don't allow installation with stale devel version number.
46729         * top/GNUmakefile (_is-install-target): New macro.
46730         (_curr-ver): Forbid installation with stale version number.
46731
46732 2008-07-20  Bruno Haible  <bruno@clisp.org>
46733
46734         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46735         TESTS_ENVIRONMENT.
46736         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46737
46738 2008-07-20  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/c-stack.h (c_stack_action): Add documentation.
46741         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46742
46743 2008-07-20  Bruno Haible  <bruno@clisp.org>
46744
46745         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46746         * modules/readlink (License): Likewise.
46747
46748 2008-07-17  Eric Blake  <ebb9@byu.net>
46749
46750         * modules/c-stack (Link): Fix typo.
46751
46752         Make c-stack use libsigsegv, when available.
46753         * modules/c-stack (Depends-on): Add libsigsegv.
46754         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46755         needed.
46756         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46757         (segv_handler, overflow_handler, c_stack_action)
46758         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46759         implementation when libsigsegv is available, but only when using
46760         the library is necessary.
46761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46762         comment, explaining why XSI check fails on Linux.
46763         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46764         * tests/test-c-stack2.sh: Tweak skip message.
46765         * NEWS: Document new link-time requirements.
46766
46767 2008-07-16  Eric Blake  <ebb9@byu.net>
46768
46769         c-stack: Expose false positives when not using libsigsegv.
46770         * modules/c-stack-tests (Files): Expand test.
46771         * tests/test-c-stack.c (main): Add means to conditionally trigger
46772         non-overflow SIGSEGV.
46773         * tests/test-c-stack2.sh: New file.
46774
46775 2008-07-14  Bruno Haible  <bruno@clisp.org>
46776
46777         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46778         Reported by Eric Blake.
46779
46780 2008-07-14  Sam Steingold  <sds@gnu.org>
46781             Bruno Haible  <bruno@clisp.org>
46782
46783         New module libsigsegv.
46784         * modules/libsigsegv: New file.
46785         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46786         modifications.
46787         * MODULES.html.sh (Signal handling): New section.
46788
46789 2008-07-14  Bruno Haible  <bruno@clisp.org>
46790
46791         * modules/unictype/ctype-* (Description): Add the word "function".
46792         Improves the resulting doc in MODULES.html.
46793
46794 2008-07-12  Ben Pfaff  <blp@gnu.org>
46795
46796         Add longlong module.
46797         * modules/longlong: New file.
46798
46799 2008-07-12  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46802         to empty.
46803
46804 2008-07-10  Ben Pfaff  <blp@gnu.org>
46805
46806         Add isnan module.
46807         * doc/posix-functions/isnan.texi: Mention new module.
46808         * lib/math.in.h: Define isnan macro if we have decided to replace
46809         it.
46810         * m4/isnan.m4: New file.
46811         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46812         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46813         also.
46814         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46815         redundancy.
46816         * m4/math_h.m4: Initialize and substitute variables for isnan
46817         module.
46818         * modules/isnan: New file.
46819         * modules/isnan-tests: New file.
46820         * modules/math: Add substitutions for new module.
46821         * tests/test-isnan.c: New file.
46822         * MODULES.html.sh: Mention new module.
46823
46824 2008-07-10  Ben Pfaff  <blp@gnu.org>
46825
46826         Add isnanf module.
46827         * lib/isnanf.m4: New file.
46828         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46829         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46830         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46831         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46832         * modules/isnanf: New file.
46833         * modules/isnanf-tests: New file.
46834         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46835         files.
46836         * tests/test-isnanf-nolibm.c: factored most of its contents into
46837         new file tests/test-isnanf.h.
46838         * tests/test-isnanf.h: New file.
46839         * tests/test-isnanf.c: New file.
46840         * MODULES.html.sh: Mention new module.
46841         * doc/glibc-functions/isnanf.texi: Mention new module.
46842
46843 2008-07-10  Ben Pfaff  <blp@gnu.org>
46844
46845         Add isnand module.
46846         * lib/isnand.h: New file.
46847         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46848         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46849         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46850         functionality also.
46851         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46852         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46853         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46854         * modules/isnand: New file.
46855         * modules/isnand-tests: New file.
46856         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46857         files.
46858         * tests/test-isnand-nolibm.c: factored most of its contents into
46859         new file tests/test-isnand.h.
46860         * tests/test-isnand.h: New file.
46861         * tests/test-isnand.c: New file.
46862         * MODULES.html.sh: Mention new module.
46863
46864 2008-07-10  Ben Pfaff  <blp@gnu.org>
46865
46866         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46867         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46868         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46869         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46870         * modules/isnanf-nolibm: Update references to renamed files.
46871         * modules/isnand-nolibm: Likewise.
46872         * modules/isnanf-nolibm-tests: Likewise.
46873         * modules/isnand-nolibm-tests: Likewise.
46874         * lib/frexp.c: Likewise.
46875         * lib/isfinite.c: Likewise.
46876         * lib/signbitd.c: Likewise.
46877         * lib/signbitf.c: Likewise.
46878         * lib/vasnprintf.c: Likewise.
46879         * tests/test-ceilf1.c: Likewise.
46880         * tests/test-ceilf2.c: Likewise.
46881         * tests/test-floorf1.c: Likewise.
46882         * tests/test-floorf2.c: Likewise.
46883         * tests/test-frexp.c: Likewise.
46884         * tests/test-round1.c: Likewise.
46885         * tests/test-round2.c: Likewise.
46886         * tests/test-roundf1.c: Likewise.
46887         * tests/test-strtod.c: Likewise.
46888         * tests/test-trunc1.c: Likewise.
46889         * tests/test-trunc2.c: Likewise.
46890         * tests/test-truncf1.c: Likewise.
46891         * tests/test-truncf2.c: Likewise.
46892         * NEWS: Mention the renamed header files.
46893
46894 2008-07-11  Jim Meyering  <meyering@redhat.com>
46895
46896         vc-list-files: make the last-resort awk code more portable
46897         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46898         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46899         does not support it.
46900
46901 2008-07-10  Eric Blake  <ebb9@byu.net>
46902
46903         Work with tar's bootstrap.
46904         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46905         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46906         an m4 comment.
46907
46908 2008-07-09  Jim Meyering  <meyering@redhat.com>
46909
46910         posix-shell.m4: fix typo that made this test malfunction
46911         * m4/posix-shell.m4: Remove capitalization in variable name.
46912
46913 2008-07-08  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/onceonly.m4: Update comments.
46916         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46917
46918 2008-07-04  Jim Meyering  <meyering@redhat.com>
46919
46920         * users.txt: Add vc-dwim.
46921         (bison, coreutils): Use the gitweb URL.
46922
46923 2008-07-03  Jim Meyering  <meyering@redhat.com>
46924
46925         * users.txt: Add libffcall.  From Sam Steingold.
46926
46927 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46928
46929         getdate.y: do not ignore TZ with relative day, month or year offset
46930         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46931         relative-date-handling, since otherwise, the latter would clobber the
46932         sole output (an updated Start value) of the tz-handling block.
46933         * tests/test-getdate.c: Tests for the fix
46934
46935 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46936
46937         Recognize 'foo_LIBRARIES += libgnu.a'.
46938         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46939         makefile snippet has already specified an installation location,
46940         also using '+='.
46941
46942 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46943
46944         getdate.y: factor out common actions
46945         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46946         Use them in place of open-coded actions.
46947
46948 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46949
46950         Add self-test for getdate module.
46951         * modules/getdate-tests: New file.
46952         * tests/test-getdate.c: New file.
46953
46954 2008-06-29  Bruno Haible  <bruno@clisp.org>
46955
46956         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46957         .gitignore.
46958         Reported by Sylvain Beucler <beuc@beuc.net>.
46959
46960 2008-06-29  Bruno Haible  <bruno@clisp.org>
46961
46962         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46963         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46964
46965 2008-06-29  Bruno Haible  <bruno@clisp.org>
46966
46967         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46968         EXTRA_DIST.
46969         Reported by Sylvain Beucler <beuc@beuc.net>.
46970
46971 2008-06-26  Jim Meyering  <meyering@redhat.com>
46972
46973         make several modules depend on the "open" module
46974         This provides slightly increased consistency when opening-for-write
46975         the name of a non-directory spelled with a trailing slash.
46976         * modules/chdir-safer: Likewise.
46977         * modules/chown: Likewise.
46978         * modules/clean-temp: Likewise.
46979         * modules/copy-file: Likewise.
46980         * modules/fchdir: Likewise.
46981         * modules/fcntl-safer: Likewise.
46982         * modules/pipe: Likewise.
46983         * modules/utime: Likewise.
46984         Prompted by Eric Blake and Bruno Haible.
46985
46986 2008-06-24  Andreas Schwab  <schwab@suse.de>
46987
46988         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46989         literals can be used as initializers for global variables.
46990
46991 2008-06-23  Eric Blake  <ebb9@byu.net>
46992
46993         Make gnulib-cache.m4 easier to diff.
46994         * gnulib-tool (func_import): Allow newlines when reading cached
46995         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46996
46997 2008-06-23  Bruno Haible  <bruno@clisp.org>
46998
46999         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47000         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47001         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47002         m4/signalblocking.m4.
47003         (gl_PREREQ_SIGACTION): Don't invoke it.
47004         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47005         gl_PREREQ_SIG_HANDLER_H.
47006         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47007         Don't check for sigaction here.
47008
47009 2008-06-23  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47012         (install_handlers): Don't set the SA_RESETHAND flag.
47013
47014 2008-06-23  Bruno Haible  <bruno@clisp.org>
47015
47016         * m4/sigaction.m4: Comment fixes.
47017         * lib/signal.in.h: Likewise.
47018
47019 2008-06-23  Eric Blake  <ebb9@byu.net>
47020
47021         Fix typo.
47022         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47023
47024         Avoid SA_ namespace.
47025         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47026         Reported by Ralf Wildenhues.
47027
47028         Avoid test failure due to SA_RESTORER.
47029         * tests/test-sigaction.c (SA_MASK): New macro.
47030         (main): Avoid failing due to extension flags being set.
47031         Reported by Jim Meyering.
47032
47033         Revert use of sig-handler.h in sigprocmask.c.
47034         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47035         it requires the existence of struct sigaction.
47036         * lib/sigprocmask.c (handler_t): Restore typedef.
47037         (rpl_signal, old_handlers): Use local type.
47038
47039 2008-06-22  Bruno Haible  <bruno@clisp.org>
47040
47041         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47042         conditionally.
47043         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47044
47045 2008-06-22  Bruno Haible  <bruno@clisp.org>
47046
47047         * doc/posix-functions/siginterrupt.texi: Move note.
47048
47049         * lib/signal.in.h (SA_RESTART): New macro.
47050         * lib/sigaction.c: Update comment.
47051
47052         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47053
47054         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47055         (gl_PREREQ_SIGPROCMASK): Invoke it.
47056         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47057
47058         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47059
47060         * lib/sigprocmask.c: Update a comment.
47061
47062 2008-06-21  Eric Blake  <ebb9@byu.net>
47063
47064         Use sigaction module rather than signal().
47065         * modules/c-stack (Depends-on): Add sigaction.
47066         * modules/fatal-signal (Depends-on): Likewise.
47067         * modules/nanosleep (Depends-on): Likewise.
47068         * modules/sigprocmask (Files): Add sig-handler.h.
47069         * modules/sigaction (Files): Likewise.
47070         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47071         Eggert.
47072         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47073         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47074         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47075         (init_fatal_signals): Likewise.
47076         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47077         (siginterrupt): Delete fallback.
47078         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47079         instead.
47080         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47081         siginterrupt.
47082
47083         New module sigaction, for mingw.
47084         * modules/sigaction: New module...
47085         * modules/sigaction-tests: ...and its test.
47086         * m4/sigaction.m4: New file.
47087         * lib/sigaction.c: Likewise.
47088         * tests/test-sigaction.c: Likewise.
47089         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47090         * modules/signal (Makefile.am): Likewise.
47091         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47092         needed.
47093         * doc/posix-headers/signal.texi (signal.h): Mention provided
47094         types.
47095         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47096         that sigaction is preferable.
47097         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47098         module.
47099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47100         sigaction.
47101
47102         Improve robustness of sigprocmask by overriding signal.
47103         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47104         is in use.
47105         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47106         (SIGKILL, SIGSTOP): Provide fallbacks.
47107         (rpl_signal): Implement.
47108         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47109         signal can be called inside handlers.
47110
47111         Fix nanosleep module on mingw.
47112         * modules/nanosleep (Depends-on): Add sys_select.
47113         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47114
47115         Fix licensing of sigprocmask.
47116         * modules/raise (License): Relicense as LGPL.
47117
47118 2008-06-21  Bruno Haible  <bruno@clisp.org>
47119
47120         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47121         result if it contains question marks.
47122         Reported by Michael Geng <linux@michaelgeng.de>.
47123
47124 2008-06-19  Bruno Haible  <bruno@clisp.org>
47125
47126         Fix CVS-ism.
47127         * doc/gnulib.texi: Include updated-stamp.texi.
47128         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47129         (updated-stamp.texi): New rule.
47130         (gnulib.info): Depend on it.
47131         * doc/.gitignore: Add updated-stamp.texi.
47132         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47133
47134 2008-06-19  Bruno Haible  <bruno@clisp.org>
47135
47136         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47138
47139 2008-06-19  Eric Blake  <ebb9@byu.net>
47140
47141         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47142         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47143         Reported by Stepan Kasal.
47144
47145 2008-06-18  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47148         Reported by Eric Blake.
47149
47150 2008-06-18  Eric Blake  <ebb9@byu.net>
47151
47152         Work around cygwin 1.5.25 strsignal bug.
47153         * tests/test-strsignal.c: Allow for const char *.
47154         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47155
47156 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47157
47158         * users.txt: Update URL to article and add author/date
47159         information.
47160
47161 2008-06-17  Bruno Haible  <bruno@clisp.org>
47162
47163         New macro gl_DISABLE_THREADS.
47164         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47165         if the user did not pass --enable-threads or --disable-threads option.
47166         (gl_DISABLE_THREADS): New macro.
47167         Reported by Eric Blake <ebb9@byu.net>.
47168
47169 2008-06-17  Bruno Haible  <bruno@clisp.org>
47170
47171         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47172         when the macro ignores it.
47173         Based on a patch by Eric Blake <ebb9@byu.net>.
47174
47175 2008-06-17  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/tls (License): Change to LGPLv2+.
47178         Reported by Eric Blake.
47179
47180 2008-06-17  Eric Blake  <ebb9@byu.net>
47181
47182         Simplify c-stack prerequisites.
47183         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47185         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47186         check.
47187         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47188         <sys/resource.h>.
47189
47190         Move c-stack test into testsuite.
47191         * modules/c-stack-tests: New file.
47192         * lib/c-stack.c [DEBUG]: Move test program...
47193         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47194         fail test if sigaltstack is lacking.
47195         * tests/test-c-stack.sh: New driver file.
47196
47197 2008-06-16  Eric Blake  <ebb9@byu.net>
47198
47199         Use raise module consistently.
47200         * modules/fatal-signal (Depends-on): Add raise.
47201         * modules/sigprocmask (Depends-on): Likewise.
47202         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47203         * lib/sigprocmask.c (sigprocmask): Likewise.
47204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47205         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47206
47207         Fix compliance bug in sigpending.
47208         * lib/sigprocmask.c (sigpending): Return pending array via
47209         parameter, not return value.
47210
47211 2008-06-14  Eric Blake  <ebb9@byu.net>
47212
47213         Improve obstack-printf test code.
47214         * tests/test-obstack-printf.c (test_function): Fix comment, and
47215         simplify usage of obstack_* in macros.  Add a test for coverage.
47216         Reported by Bruno Haible.
47217
47218 2008-06-14  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47221         array size as a constant, not as a const variable.
47222         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47223         AC_USE_SYSTEM_EXTENSIONS.
47224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47225         Test whether the obstack_printf function actually exists.
47226         * modules/obstack-printf (Depends-on): Add extensions.
47227         (Include): Remove obstack.h.
47228         * modules/obstack-printf-posix (Depends-on): Add extensions.
47229         (Include): Remove obstack.h.
47230
47231 2008-06-13  Eric Blake  <ebb9@byu.net>
47232
47233         Add obstack-printf and obstack-printf-posix modules.
47234         * modules/obstack-printf: New file.
47235         * modules/obstack-printf-posix: Likewise.
47236         * MODULES.html.sh (Misc): Mention them.
47237         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47238         Likewise.
47239         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47240         Likewise.
47241         * modules/stdio (Makefile.am): Accomodate new modules.
47242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47243         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47244         Declare.
47245         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47246         functions.
47247         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47248         (gl_REPLACE_OBSTACK_PRINTF): New macros
47249         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47250         * tests/test-obstack-printf.c: New file.
47251         * modules/obstack-printf-tests: Likewise.
47252         * modules/obstack-printf-posix-tests: Likewise.
47253
47254 2008-06-11  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47257         * lib/open.c: Include errno.h.
47258         (open): Fail when attempting to write to a file that has a trailing
47259         slash.
47260         * tests/test-open.c (main): Test against trailing slash bug.
47261         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47262
47263 2008-06-10  Bruno Haible  <bruno@clisp.org>
47264
47265         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47266         for $? to work inside the trap command, with various /bin/sh-s.
47267         * tests/test-vc-list-files-cvs.sh: Likewise.
47268
47269 2008-06-10  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/acl-internal.h: Don't include gettext.h here.
47272         * lib/set-mode-acl.c: Include gettext.h here.
47273         * lib/copy-acl.c: Likewise.
47274
47275 2008-06-10  Bruno Haible  <bruno@clisp.org>
47276
47277         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47278         * lib/wait-process.c (wait_subprocess): Likewise.
47279         * lib/execute.h (execute): Add termsigp argument.
47280         * lib/execute.c (execute): Likewise.
47281         * lib/csharpcomp.c (compile_csharp_using_pnet,
47282         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47283         * lib/csharpexec.c (execute_csharp_using_pnet,
47284         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47285         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47286         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47287         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47288         is_jikes_present): Update.
47289         * lib/javaexec.c (execute_java_class): Update.
47290         * lib/javaversion.c (execute_and_read_line): Update.
47291         * NEWS: Document the changes.
47292         Reported by Eric Blake.
47293
47294 2008-06-10  Eric Blake  <ebb9@byu.net>
47295
47296         Add missing include.
47297         * tests/test-strstr.c (includes): Add <signal.h>.
47298         * tests/test-strcasestr.c (includes): Likewise.
47299         * tests/test-memmem.c (includes): Likewise.
47300
47301 2008-06-10  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/wait-process.c (wait_subprocess): Add an assertion.
47304
47305 2008-06-10  Bruno Haible  <bruno@clisp.org>
47306
47307         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47308
47309 2008-06-10  Bruno Haible  <bruno@clisp.org>
47310
47311         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47312         using alarm().
47313         * tests/test-strcasestr.c (main): Likewise.
47314         * tests/test-strstr.c (main): Likewise.
47315
47316 2008-06-09  Bruno Haible  <bruno@clisp.org>
47317
47318         Work around the Solaris 10 ACE ACLs ABI change.
47319         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47320         declare if ACL_NO_TRIVIAL is present.
47321         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47322         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47323         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47324         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47325         define if ACL_NO_TRIVIAL is present.
47326         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47327         and use the current ABI.
47328         (file_has_acl): Use same #if condition as elsewhere.
47329         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47330         in use, and use the current ABI.
47331         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47332         Reported by Jim Meyering.
47333
47334 2008-06-09  Eric Blake  <ebb9@byu.net>
47335
47336         Work around environments that (stupidly) ignore SIGALRM.
47337         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47338         before using alarm().
47339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47341         Reported by Ian Beckwith <ianb@erislabs.net>.
47342
47343         Produce autobuild blurb earlier in log.
47344         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47345
47346 2008-06-09  Jim Meyering  <meyering@redhat.com>
47347         and OndÅ™ej Vašík  <ovasik@redhat.com>
47348
47349         utimens.c: correct kernel bug work-around
47350         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47351         failure, not success, and the kernel bug we're trying to work
47352         around affects not just the utimensat call, but also the fallback
47353         futimens call.
47354         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47355         not success.
47356         [HAVE_FUTIMENS]: Use the same work-around, here.
47357
47358 2008-06-09  Jim Meyering  <meyering@redhat.com>
47359
47360         add more guards around definition of ACE_-related code
47361         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47362         ALLOW and ACE_OWNER are also defined.
47363
47364 2008-06-08  Bruno Haible  <bruno@clisp.org>
47365
47366         * lib/acl-internal.h: Add me as co-author.
47367         * lib/file-has-acl.c: Likewise.
47368         * lib/set-mode-acl.c: Likewise.
47369         * lib/copy-acl.c: Likewise.
47370
47371 2008-06-08  Bruno Haible  <bruno@clisp.org>
47372
47373         Add support for AIX ACLs.
47374         * lib/acl-internal.h (acl_nontrivial): New declaration.
47375         * lib/file-has-acl.c (acl_nontrivial): New function.
47376         (file_has_acl): Add implementation using AIX 4 ACL API.
47377         * lib/set-mode-acl.c (qset_acl): Likewise.
47378         * lib/copy-acl.c (qcopy_acl): Likewise.
47379
47380 2008-06-08  Bruno Haible  <bruno@clisp.org>
47381
47382         Add support for HP-UX ACLs.
47383         * lib/acl-internal.h (acl_nontrivial): New declaration.
47384         * lib/file-has-acl.c (acl_nontrivial): New function.
47385         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47386         * lib/set-mode-acl.c (qset_acl): Likewise.
47387         * lib/copy-acl.c (qcopy_acl): Likewise.
47388
47389 2008-06-08  Bruno Haible  <bruno@clisp.org>
47390
47391         Add support for Cygwin ACLs.
47392         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47393         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47394         the chmod_or_fchmod call.
47395         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47396
47397 2008-06-08  Bruno Haible  <bruno@clisp.org>
47398
47399         Fix bug with setuid modes in Solaris 10+ code.
47400         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47401         succeeded, when the mode contains some special bits.
47402
47403 2008-06-08  Bruno Haible  <bruno@clisp.org>
47404
47405         Add support for Solaris 7..10 ACLs.
47406         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47407         declarations.
47408         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47409         functions.
47410         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47411         * lib/set-mode-acl.c (qset_acl): Likewise.
47412         * lib/copy-acl.c (qcopy_acl): Likewise.
47413
47414 2008-06-08  Bruno Haible  <bruno@clisp.org>
47415
47416         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47417         declaration.
47418         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47419         (acl_access_nontrivial): Remove MacOS X case.
47420         (file_has_acl): Use acl_extended_nontrivial.
47421         * lib/copy-acl.c (qcopy_acl): Likewise.
47422
47423 2008-06-08  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47426
47427 2008-06-08  Jim Meyering  <meyering@redhat.com>
47428
47429         * modules/acl (Maintainer): Add Bruno Haible.
47430
47431 2008-06-07  Bruno Haible  <bruno@clisp.org>
47432
47433         Improve support for Tru64 ACLs.
47434         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47435         ACL on OSF/1.
47436
47437 2008-06-07  Bruno Haible  <bruno@clisp.org>
47438
47439         Add support for MacOS X ACLs.
47440         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47441         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47442         * lib/set-mode-acl.c (qset_acl): Likewise.
47443         * lib/copy-acl.c (qcopy_acl): Likewise.
47444
47445 2008-06-07  Bruno Haible  <bruno@clisp.org>
47446
47447         Fix memory leak introduced on 2008-05-22.
47448         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47449         use.
47450
47451 2008-06-07  Bruno Haible  <bruno@clisp.org>
47452
47453         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47454         to construct an empty ACL.
47455
47456 2008-06-07  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47459         precisely.
47460         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47461
47462 2008-06-07  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47465         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47466
47467 2008-06-07  Bruno Haible  <bruno@clisp.org>
47468
47469         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47470         regardless of POSIX.
47471         * doc/posix-functions/_longjmp.texi: Likewise.
47472         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47473         SystemV platform in this case.
47474
47475 2008-06-06  Eric Blake  <ebb9@byu.net>
47476
47477         Document abort() bugs.
47478         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47479
47480         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47481         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47482         sigsetjmp.
47483         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47484         siglongjmp, but only as a macro.
47485         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47486         is obsolete.
47487         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47488
47489         Tweak documentation to cover cygwin argz bugs.
47490         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47491         argz bug fix; no code change needed since no cygwin releases
47492         occurred between the last fix and the bug being tested.
47493         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47494         module and recently fixed cygwin bugs.
47495         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47496         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47497         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47498         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47499         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47500         Likewise.
47501         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47502         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47503         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47504         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47505         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47506         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47507         Likewise.
47508
47509         Avoid gcc warning on cygwin.
47510         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47511         !ACL_NO_TRIVIAL]: Avoid unused variable.
47512
47513 2008-06-05  Eric Blake  <ebb9@byu.net>
47514
47515         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47516         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47517         git-version-gen fails to come up with a version.
47518         Reported by Simon Josefsson.
47519
47520 2008-06-05  Jim Meyering  <meyering@redhat.com>
47521             Paul Eggert  <eggert@cs.ucla.edu>
47522
47523         utimens.c: work around a probable Linux kernel bug
47524         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47525         appears to be a kernel bug that causes utimensat to return 280
47526         instead of 0, indicating success.
47527
47528 2008-06-04  Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47531         2008-06-01 commit.
47532
47533 2008-06-04  Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47536         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47537         (file_has_acl): Use it. Save errno afterwards.
47538         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47539
47540 2008-06-03  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47543         draft code. Simplify #ifs.
47544         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47545         Put Solaris code after POSIX-draft code. Fix comments regarding
47546         Solaris 10, HP-UX. Mention Cygwin.
47547         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47548
47549 2008-06-03  Eric Blake  <ebb9@byu.net>
47550
47551         Provide fallback for older kernels.
47552         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47553         Provide runtime fallback if kernel lacks support.
47554         Reported by Mike Frysinger.
47555
47556 2008-06-02  Bruno Haible  <bruno@clisp.org>
47557
47558         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47559         it exists.
47560
47561 2008-06-02  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47564         * lib/copy-acl.c (qcopy_acl): Update comment.
47565
47566 2008-06-02  Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47569         like ACL APIs.
47570
47571 2008-06-02  Bruno Haible  <bruno@clisp.org>
47572
47573         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47574         * tests/test-set-mode-acl.sh: Likewise.
47575         * tests/test-copy-acl.sh: Likewise.
47576         * tests/test-copy-file.sh: Likewise.
47577
47578 2008-06-02  Bruno Haible  <bruno@clisp.org>
47579
47580         * tests/test-file-has-acl.sh: Remove unused code.
47581
47582 2008-06-01  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47585         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47586         messages.
47587         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47588
47589 2008-06-01  Bruno Haible  <bruno@clisp.org>
47590
47591         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47592         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47593         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47594         APIs.
47595         * modules/acl-tests (configure.ac): Remove tests now contained in
47596         m4/acl.m4.
47597
47598 2008-06-02  Jim Meyering  <meyering@redhat.com>
47599
47600         announce-gen: use a better key-server host name
47601         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47602         it may be more consistently reliable.  Suggested by Werner Koch
47603         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47604
47605 2008-06-01  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47608         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47609
47610 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47611
47612         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47613
47614 2008-06-01  Bruno Haible  <bruno@clisp.org>
47615
47616         New ACL tests.
47617         * tests/test-file-has-acl.sh: New file.
47618         * tests/test-file-has-acl.c: New file.
47619         * tests/test-set-mode-acl.sh: New file.
47620         * tests/test-set-mode-acl.c: New file.
47621         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47622         * tests/test-copy-acl.c: New file.
47623         * modules/acl-tests: New file, based on modules/copy-file-tests.
47624         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47625         (Depends-on): Add acl-tests.
47626         (configure.ac): Remove checks.
47627         (Makefile.am): Don't create test-sameacls program here any more.
47628
47629 2008-06-01  Bruno Haible  <bruno@clisp.org>
47630
47631         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47632         * tests/test-sameacls.c: Include progname.h.
47633         (main): Invoke set_program_name. Portability fixes for MacOS X,
47634         Solaris, HP-UX.
47635
47636 2008-06-01  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47639         function.
47640         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47641
47642 2008-06-01  Bruno Haible  <bruno@clisp.org>
47643
47644         * modules/rpmatch (Depends-on): Add strdup.
47645
47646 2008-06-01  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/pipe.c: Include unistd-safer.h.
47649         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47650         * modules/pipe (Depends-on): Add unistd-safer.
47651
47652 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47653
47654         * modules/autobuild (configure.ac): Call AB_INIT.
47655
47656 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47657
47658         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47659         Suggested by Bruno Haible <bruno@clisp.org>.
47660
47661 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47662
47663         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47664         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47665         <bruno@clisp.org>.
47666
47667 2008-05-29  Eric Blake  <ebb9@byu.net>
47668
47669         Prefer new POSIX 200x interfaces over futimesat.
47670         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47671         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47672         when available.
47673         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47674
47675 2008-05-28  Bruno Haible  <bruno@clisp.org>
47676
47677         * modules/stpcpy (License): Change to LGPLv2+.
47678         Requested by David Lutterkort <dlutter@redhat.com>.
47679
47680 2008-05-27  Bruno Haible  <bruno@clisp.org>
47681
47682         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47683         current mingw.
47684         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47685
47686 2008-05-27  Bruno Haible  <bruno@clisp.org>
47687
47688         * modules/iconv_open (Link): New section, from module 'iconv'.
47689         * modules/striconv (Link): Likewise.
47690         * modules/striconveh (Link): Likewise.
47691         * modules/xstriconv (Link): Likewise.
47692         * modules/unicodeio (Link): Likewise.
47693         * modules/propername (Link): Likewise.
47694         Reported by Jim Meyering.
47695
47696 2008-05-26  Jim Meyering  <meyering@redhat.com>
47697
47698         sha256: do not artificially restrict buffer length to be < 2^32
47699         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47700         uint32_t to size_t.
47701         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47702         to match.
47703
47704         avoid unaligned access errors, e.g., on sparc
47705         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47706         direct access through a possibly-unaligned uint64* pointer.
47707         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47708         direct access through a possibly-unaligned uint32* pointer.
47709         Prompted by this patch from Tom "spot" Callaway:
47710         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47711
47712         sha512.c: fix typo in comment
47713         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47714
47715 2008-05-25  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47718         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47719         (Makefile.am): Update lib_SOURCES.
47720
47721 2008-05-25  Bruno Haible  <bruno@clisp.org>
47722
47723         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47724
47725 2008-05-25  Jim Meyering  <meyering@redhat.com>
47726
47727         useless-if-before-free: freed expr may have white-space differences
47728         * build-aux/useless-if-before-free: Recognize cases in which the
47729         freed expression differs from the tested one in embedded white
47730         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47731         $1 was used, so we can't make any regexp shy.  Improved tests now
47732         detect this.
47733
47734         useless-if-before-free: accept white space in the expression.
47735         * build-aux/useless-if-before-free: For now, any white space
47736         in the expression must be identical in the free argument.
47737
47738         useless-if-before-free: efficiency tweak
47739         * build-aux/useless-if-before-free: Make the expression-matching
47740         regexp "shy".
47741         Make the *outer* regexp shy, not the expr-matching one.
47742
47743         update code-in-comment to accept cast of free arg
47744         * build-aux/useless-if-before-free: Update regexp.
47745
47746 2008-05-25  Bruno Haible  <bruno@clisp.org>
47747
47748         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47749         * modules/copy-file-tests (Files, Makefile.am): Update.
47750         * tests/test-copy-file.c (func_test_copy): Update.
47751
47752 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47753
47754         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47755
47756 2008-05-23  Bruno Haible  <bruno@clisp.org>
47757
47758         Improve support for ACLs on OSF/1.
47759         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47760         Remove fallback for unknown flavors of ACLs.
47761
47762 2008-05-22  Bruno Haible  <bruno@clisp.org>
47763
47764         Add support for ACLs on OSF/1.
47765         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47766         replacements.
47767         (acl_free_text): New macro fallback.
47768         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47769         acl_free.
47770         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47771         acl_free_text function. Require AC_C_INLINE.
47772
47773 2008-05-22  Bruno Haible  <bruno@clisp.org>
47774
47775         Make copy_acl work on MacOS X 10.5.
47776         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47777         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47778         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47779         If MODE_INSIDE_ACL, don't assume that every system has the same text
47780         representation for ACLs as FreeBSD.
47781         * lib/copy-acl.c (copy_acl): Add support for platforms with
47782         !MODE_INSIDE_ACL.
47783         * lib/file-has-acl.c (file_has_acl): Likewise.
47784         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47785         FreeBSD, MacOS X, or IRIX, respectively.
47786
47787 2008-05-22  Bruno Haible  <bruno@clisp.org>
47788
47789         * lib/acl.h: Don't include <sys/acl.h>.
47790         (GETACLCNT): Move fallback to lib/acl-internal.h.
47791         * lib/acl-internal.h: Include <sys/acl.h> here.
47792         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47793
47794 2008-05-22  Bruno Haible  <bruno@clisp.org>
47795
47796         Split off copy_acl function to separate file.
47797         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47798         * lib/acl.c (copy_acl): Moved function to separate file.
47799         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47800         * modules/acl (Files): Add lib/copy-acl.c.
47801         (Makefiles.am): Augment lib_SOURCES.
47802
47803 2008-05-22  Bruno Haible  <bruno@clisp.org>
47804
47805         * modules/copy-file-tests: New file.
47806         * tests/test-copy-file.sh: New file.
47807         * tests/test-copy-file.c: New file.
47808         * tests/test-copy-file-sameacls.c: New file.
47809
47810 2008-05-22  Eric Blake  <ebb9@byu.net>
47811
47812         Avoid gcc warning.
47813         * tests/test-memcmp.c (main): Pass NULL indirectly.
47814
47815 2008-05-21  Bruno Haible  <bruno@clisp.org>
47816
47817         Add reference doc about ACLs.
47818         * doc/acl-resources.txt: New file.
47819         * doc/acl-cygwin.txt: New file.
47820
47821 2008-05-21  Bruno Haible  <bruno@clisp.org>
47822
47823         Avoid one more warning from gcc.
47824         * lib/vasnprintf.c (IF_LINT): Update comments.
47825         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47826
47827 2008-05-21  Jim Meyering  <meyering@redhat.com>
47828
47829         avoid a warning from gcc
47830         * lib/vasnprintf.c (IF_LINT): Define.
47831         (scale10_round_decimal_long_double):
47832         Use it to avoid a "may be used uninitialized" warning.
47833         (scale10_round_decimal_double): Likewise.
47834
47835 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47836
47837         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47838         declared.
47839
47840 2008-05-20  Bruno Haible  <bruno@clisp.org>
47841
47842         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47843         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47844
47845 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47846
47847         * modules/memcmp-tests: New file.
47848         * tests/test-memcmp.c: New file.
47849
47850 2008-05-19  Bruno Haible  <bruno@clisp.org>
47851
47852         * modules/propername (Notice, configure.ac): Put quoted "..." into
47853         --keyword option.
47854         * lib/propername.h: Update comments accordingly.
47855         Reported by Eric Blake.
47856
47857 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47858
47859         * modules/getpass-gnu (Depends-on): Add fseeko.
47860
47861 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47862
47863         * modules/base64-tests: New file.
47864
47865 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47866
47867         * lib/base64.c (base64_decode_ctx): If a decode context structure
47868         was passed in use it to ignore newlines.  If a context structure
47869         was _not_ passed in, continue to treat newlines as garbage (this
47870         is the historical behavior).  Formerly base64_decode.
47871         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47872         takes a decode context structure.
47873         * lib/base64.h (base64_decode): Macro for four-argument calls.
47874         (base64_decode_alloc): Likewise.
47875         * lib/base64.c (base64_decode_ctx): If a decode context structure
47876         was passed in use it to ignore newlines.  If a context structure
47877         was _not_ passed in, continue to treat newlines as garbage (this
47878         is the historical behavior).  Formerly base64_decode.
47879         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47880         takes a decode context structure.
47881         * lib/base64.h (base64_decode): Macro for four-argument calls.
47882         (base64_decode_alloc): Likewise.
47883
47884 2008-05-19  Jim Meyering  <meyering@redhat.com>
47885
47886         avoid a warning from gcc
47887         * lib/trim.c (IF_LINT): Define.
47888         (trim2): Use it to avoid a "may be used uninitialized" warning.
47889
47890         Fix doc typo.
47891         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47892
47893 2008-05-19  Bruno Haible  <bruno@clisp.org>
47894
47895         * doc/glibc-functions/getpass.texi: Document limits of other
47896         implementations.
47897
47898 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47899             Bruno Haible <bruno@clisp.org>
47900
47901         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47902
47903 2008-05-18  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/propername: New file, from GNU gettext.
47906         * lib/propername.h: New file, from GNU gettext.
47907         * lib/propername.c: New file, from GNU gettext.
47908         * MODULES.html.sh (Internationalization functions): Add propername.
47909
47910 2008-05-16  Jim Meyering  <meyering@redhat.com>
47911             Bruno Haible  <bruno@clisp.org>
47912
47913         Avoid some warnings from "gcc -Wshadow".
47914         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47915
47916 2008-05-15  Eric Blake  <ebb9@byu.net>
47917
47918         Extend previous patch to cygwin 1.7.0.
47919         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47920         fast implementation in cygwin >= 1.7.0.
47921         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47923
47924 2008-05-15  Bruno Haible  <bruno@clisp.org>
47925
47926         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47927         implementation in glibc >= 2.9.
47928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47930
47931 2008-05-15  Bruno Haible  <bruno@clisp.org>
47932
47933         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47934         (Unicode string functions): Add unilbrk/*.
47935         Reported by Karl Berry.
47936
47937 2008-05-15  Eric Blake  <ebb9@byu.net>
47938
47939         Fix violation of <stdbool.h> replacement in regex.
47940         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47941         * lib/regexec.c (re_search_internal): Likewise.
47942         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47943
47944 2008-05-15  Jim Meyering  <meyering@redhat.com>
47945
47946         avoid distracting test output when git or cvs is not found
47947         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47948         * tests/test-vc-list-files-git.sh: Likewise.
47949
47950 2008-05-15  Eric Blake  <ebb9@byu.net>
47951
47952         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47953         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47954         glibc version.
47955         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47956         * doc/posix-functions/strstr.texi (strstr): Likewise.
47957         * lib/str-two-way.h (MAX): Sychronize with glibc.
47958
47959 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47960
47961         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47962         opr.ctx_type.
47963         (calc_first): Initialize constraint field.
47964         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47965         Fix grammar.
47966         (duplicate_node): Merge constraint field for all node types.
47967         (calc_eclosure_iter): Look at constraint field for all node types.
47968         * lib/regex_internal.c (create_cd_newstate): Don't look at
47969         opr.ctx_type.
47970
47971 2008-05-14  Bruno Haible  <bruno@clisp.org>
47972
47973         Help GCC to do better code generation.
47974         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47975         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47976         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47977         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47978         Declare with attribute 'malloc' if supported.
47979
47980 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47981
47982         use "echo STR|wc -c" rather than unportable "expr length STR"
47983         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47984         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47985
47986 2008-05-14  Jim Meyering  <meyering@redhat.com>
47987
47988         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47989         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47990         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47991         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47992         via Collin Lasse.
47993
47994 2008-05-14  Eric Blake  <ebb9@byu.net>
47995
47996         Avoid quadratic growth in gl_LIBSOURCES.
47997         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47998         Suggested by Bruno Haible.
47999
48000         Test xmemdup0.
48001         * modules/xmemdup0-tests: New file.
48002         * tests/test-xmemdup0.c: Likewise.
48003
48004 2008-05-13  Eric Blake  <ebb9@byu.net>
48005
48006         Split xmemdup0 into its own module.
48007         * modules/xmemdup0: New file.
48008         * lib/xmemdup0.h: Likewise.
48009         * lib/xmemdup0.c: Likewise.
48010         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48011         * lib/xalloc.h (xmemdup0): Remove.
48012         * lib/xmalloc.c (xmemdup0): Likewise.
48013
48014 2008-05-13  Eric Blake  <ebb9@byu.net>
48015             Bruno Haible  <bruno@clisp.org>
48016
48017         Reduce number of forks required during autoconf.
48018         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48019         and gl_LIBSOURCES_DIR.
48020         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48021         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48022         m4_syscmd per file.
48023         <m4_foreach_w>: Move...
48024         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48025
48026 2008-05-13  Eric Blake  <ebb9@byu.net>
48027
48028         * gnulib-tool: Fix various comment typos.
48029
48030 2008-05-12  Bruno Haible  <bruno@clisp.org>
48031
48032         Tailor the linebreaking algorithm.
48033         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48034
48035 2008-05-12  Bruno Haible  <bruno@clisp.org>
48036
48037         Update to Unicode 5.0.0.
48038         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48039         LBP_JV, LBP_JT. Redistribute values.
48040         (unilbrk_table): Change size.
48041         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48042         Unicode TR#14 rev. 22.
48043         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48044         LBP_JV, LBP_JT. Redistribute values.
48045         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48046         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48047         Update.
48048         * lib/unilbrk/lbrkprop1.h: Regenerated.
48049         * lib/unilbrk/lbrkprop2.h: Regenerated.
48050         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48051         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48052         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48053         Likewise.
48054         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48055         Likewise.
48056         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48057         result.
48058         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48059         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48060         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48061         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48062         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48063         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48064
48065 2008-05-11  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48068
48069 2008-05-11  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48072         * modules/unilbrk/gen-lbrk: New file.
48073
48074 2008-05-11  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48077         * m4/sha512.m4 (gl_SHA512): Likewise.
48078
48079 2008-05-11  Jim Meyering  <meyering@redhat.com>
48080
48081         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48082         * modules/crypto/sha256: New file.
48083         * modules/crypto/sha512: Likewise.
48084         * lib/sha256.c: Likewise.
48085         * lib/sha256.h: Likewise.
48086         * lib/sha512.c: Likewise.
48087         * lib/sha512.h: Likewise.
48088         * lib/u64.h: Likewise.
48089         * m4/sha256.m4: Likewise.
48090         * m4/sha512.m4: Likewise.
48091         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48092
48093 2008-05-10  Bruno Haible  <bruno@clisp.org>
48094
48095         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48096         (Input/Output <stdio.h>): Add xprintf.
48097         (Signal handling <signal.h>): Add strsignal.
48098         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48099         (Core language properties): Add func.
48100         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48101         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48102         strings.
48103         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48104         (Input/output): New section.
48105         (File system functions): Add openat-die, stat-macros.
48106         (Networking functions): Add sockets.
48107         (Unicode string functions): Add unictype/*.
48108         (Support for building libraries and executables): Add gperf.
48109         (Support for building documentation): Add agpl-3.0.
48110         (Misc): Add nocrash.
48111
48112 2008-05-10  Bruno Haible  <bruno@clisp.org>
48113
48114         * modules/unictype/gen-ctype: New file.
48115
48116 2008-05-10  Jim Meyering  <meyering@redhat.com>
48117
48118         Make chdir-safer.c more efficient on a system with no symlinks.
48119         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48120         also if ELOOP is zero.  Suggested by Bruno Haible.
48121
48122         Make chdir-safer.c slightly safer.
48123         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48124         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48125
48126         Avoid compile failure on systems without ELOOP (like mingw).
48127         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48128         Reported by Bruno Haible.
48129
48130 2008-05-10  Bruno Haible  <bruno@clisp.org>
48131
48132         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48133         (is_utf8_encoding): Use a case-insensitive comparison.
48134         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48135         streq.
48136
48137 2008-05-10  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48140         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48141         * lib/unilbrk/ulc-common.h (iconv_string_length,
48142         iconv_string_keeping_offsets): Remove declarations.
48143         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48144         Don't include <iconv.h>, streq.h, xsize.h.
48145         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48146         conversion.
48147         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48148         <iconv.h>, streq.h, xsize.h.
48149         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48150         conversion.
48151         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48152         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48153         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48154         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48155
48156 2008-05-10  Bruno Haible  <bruno@clisp.org>
48157
48158         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48159         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48160
48161         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48162         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48163
48164         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48165         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48166
48167         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48168         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48169
48170         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48171         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48172
48173         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48174         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48175
48176         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48177         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48178
48179         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48180         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48181
48182 2008-05-10  Bruno Haible  <bruno@clisp.org>
48183
48184         Split up 'linebreak' module.
48185         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48186         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48187         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48188         modifications.
48189         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48190         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48191         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48192         lib/linebreak.c.
48193         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48194         lib/linebreak.c.
48195         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48196         lib/linebreak.c.
48197         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48198         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48199         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48200         lib/linebreak.c.
48201         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48202         lib/linebreak.c.
48203         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48204         lib/linebreak.c.
48205         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48206         lib/linebreak.c.
48207         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48208         lib/linebreak.c.
48209         * modules/unilbrk/base: New file.
48210         * modules/unilbrk/tables: New file.
48211         * modules/unilbrk/u8-possible-linebreaks: New file.
48212         * modules/unilbrk/u16-possible-linebreaks: New file.
48213         * modules/unilbrk/u32-possible-linebreaks: New file.
48214         * modules/unilbrk/ulc-common: New file.
48215         * modules/unilbrk/ulc-possible-linebreaks: New file.
48216         * modules/unilbrk/u8-width-linebreaks: New file.
48217         * modules/unilbrk/u16-width-linebreaks: New file.
48218         * modules/unilbrk/u32-width-linebreaks: New file.
48219         * modules/unilbrk/ulc-width-linebreaks: New file.
48220         * lib/linebreak.h: Remove file.
48221         * lib/linebreak.c: Remove file.
48222         * m4/linebreak.m4: Remove file.
48223         * modules/linebreak: Remove file.
48224         * NEWS: Mention the changes.
48225
48226 2008-05-09  Eric Blake  <ebb9@byu.net>
48227
48228         Add xmemdup0.
48229         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48230         implementation.
48231         * lib/xmalloc.c (xmemdup0): New C implementation.
48232
48233 2008-05-08  Bruno Haible  <bruno@clisp.org>
48234
48235         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48236
48237 2008-05-07  Eric Blake  <ebb9@byu.net>
48238
48239         Support cross-compilation of <wctype.h>.
48240         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48241         AC_CACHE_CHECK.
48242
48243 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48244
48245         * build-aux/vc-list-files: Add support for bzr.
48246
48247 2008-05-03  Jim Meyering  <meyering@redhat.com>
48248
48249         avoid failed assertion with tight malloc
48250         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48251
48252 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48253
48254         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48255         are needed from arpa/inet.h.
48256         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48257         Reported by Bruno Haible.
48258
48259 2008-05-02  Jim Meyering  <meyering@redhat.com>
48260
48261         avoid compilation error on FreeBSD 6
48262         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48263
48264 2008-05-01  Jim Meyering  <meyering@redhat.com>
48265
48266         useless-if-before-free: correct --help's exit status description
48267         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48268         for one or more matches, etc.  Reported by Bruno Haible.
48269
48270         vc-list-files: make the stand-alone gnulib test work
48271         * modules/vc-list-files-tests (configure.ac):
48272         Define and AC_SUBST abs_aux_dir.
48273         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48274         $(abs_top_srcdir) to each script and having each of them
48275         duplicate the work of setting PATH, set PATH here, using
48276         the new variable, abs_aux_dir instead.
48277         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48278         * tests/test-vc-list-files-git.sh: Likewise.
48279         Reported by Bruno Haible.
48280
48281 2008-05-01  Bruno Haible  <bruno@clisp.org>
48282
48283         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48284         reallocation. Rename 'done' to 'found_delimiter'.
48285
48286 2008-05-01  Jim Meyering  <meyering@redhat.com>
48287
48288         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48289         * build-aux/vc-list-files: Use `...`, not $(...).
48290
48291 2008-04-30  Jim Meyering  <meyering@redhat.com>
48292
48293         add tests for vc-list-files
48294         * modules/vc-list-files-tests: New module.
48295         * tests/test-vc-list-files-cvs.sh: New file.
48296         * tests/test-vc-list-files-git.sh: New file.
48297
48298         avoid a warning from gcc
48299         * lib/getndelim2.c (IF_LINT): Define.
48300         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48301
48302         vc-list-files: work properly with build-aux/cvsu, too
48303         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48304         to all cvs-based clauses.
48305
48306         vc-list-files: work properly in the CVS+awk case, too
48307         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48308
48309         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48310         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48311         take more than one file argument, so .  Add quotes, just in case $dir
48312         ever contains a shell meta-character.  Prompted by Soren Hansen in
48313         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48314
48315 2008-04-29  Eric Blake  <ebb9@byu.net>
48316
48317         Optimize getndelim2 to use block operations when possible.
48318         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48319         freadseek, and memchr2.
48320         * lib/getndelim2.c (getndelim2): Use them for block reads.
48321
48322 2008-04-29  Bruno Haible  <bruno@clisp.org>
48323
48324         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48325         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48326         * modules/inet_ntop (Depends-on): Add extensions.
48327         * modules/inet_pton (Depends-on): Likewise.
48328         Reported by Simon Josefsson.
48329
48330 2008-04-29  Jim Meyering  <meyering@redhat.com>
48331
48332         When the is more than one match in a block, match all of them.
48333         * build-aux/useless-if-before-free: Iterate through each block
48334         until there are no more matches.
48335
48336         Fix broken useless-if-before-free script.
48337         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48338         the expression to match cast of argument to free-like function.
48339
48340 2008-04-29  Eric Blake  <ebb9@byu.net>
48341
48342         Use new header.
48343         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48344
48345 2008-04-29  Jim Meyering  <meyering@redhat.com>
48346
48347         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48348         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48349         by gnulib to exist and to declare e.g., inet_ntop.
48350         Don't include "inet_ntop.h", now removed.
48351
48352         * m4/arpa_inet_h.m4: Remove trailing blanks.
48353
48354 2008-04-29  Eric Blake  <ebb9@byu.net>
48355
48356         Silence valgrind on safe reads beyond potential array bounds.
48357         * lib/rawmemchr.valgrind: New file.
48358         * lib/strchrnul.valgrind: Likewise.
48359         * modules/rawmemchr (Files): Distribute new file.
48360         * modules/strchrnul (Files): Likewise.
48361         Suggested by Bruno Haible.
48362
48363 2008-04-29  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48366         (inet_ntop, inet_pton): Change portability warning's wording.
48367         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48368         Invoke gl_CHECK_NEXT_HEADERS.
48369         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48370         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48371         set ARPA_INET_H.
48372         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48373         * modules/arpa_inet (Description): No longer only for systems that
48374         lack it.
48375         (Depends-on): Add include_next.
48376         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48377         HAVE_ARPA_INET_H.
48378
48379 2008-04-29  Jim Meyering  <meyering@redhat.com>
48380
48381         * modules/mkdir (License): Re-license as LGPLv2+.
48382
48383 2008-04-29  Bruno Haible  <bruno@clisp.org>
48384
48385         * modules/rawmemchr (Maintainer): Set to Eric.
48386         * modules/strchrnul (Maintainer): Likewise.
48387
48388 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48389
48390         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48391         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48392
48393         * modules/arpa_inet (arpa/inet.h): Use them.
48394
48395 2008-04-28  Eric Blake  <ebb9@byu.net>
48396
48397         Test getndelim2.
48398         * modules/getndelim2-tests: New file.
48399         * tests/test-getndelim2.c: Likewise.
48400         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48401         stream.
48402         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48403
48404         * MODULES.html.sh: Document new module.
48405
48406 2008-04-20  Bruno Haible  <bruno@clisp.org>
48407
48408         * lib/c-stack.c (die): Use raise.
48409         * modules/c-stack (Depends-on): Add raise.
48410
48411 2008-04-28  Bruno Haible  <bruno@clisp.org>
48412
48413         Expect rpmatch to be declared.
48414         * lib/yesno.c (rpmatch): Remove declaration.
48415
48416         Declare rpmatch.
48417         * lib/stdlib.in.h (rpmatch): New declaration.
48418         * lib/rpmatch.c: Include <stdlib.h> first.
48419         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48420         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48422         HAVE_RPMATCH.
48423         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48425         (Include): Set to <stdlib.h>.
48426         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48427         HAVE_RPMATCH.
48428         * NEWS: Document the change.
48429
48430 2008-04-28  Bruno Haible  <bruno@clisp.org>
48431
48432         Change rpmatch to use nl_langinfo when appropriate.
48433         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48434         (N_): New macro.
48435         (localized_pattern): New function/macro.
48436         (try): Remove match, nomatch arguments. Copy the pattern into safe
48437         memory before caching it.
48438         (rpmatch): Use localized_pattern. Add translator comments.
48439         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48440         Suggested by Eric Blake.
48441         * modules/rpmatch (Depends-on): Add stdbool.
48442
48443 2008-04-28  Eric Blake  <ebb9@byu.net>
48444
48445         Add rawmemchr module, matching glibc.
48446         * modules/string (Makefile.am): New indicator.
48447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48448         * lib/string.in.h (rawmemchr): Declare when appropriate.
48449         * modules/rawmemchr: New file.
48450         * m4/rawmemchr.m4: Likewise.
48451         * lib/rawmemchr.c: Likewise.
48452         * modules/rawmemchr-tests: Likewise.
48453         * tests/test-rawmemchr.c: Likewise.
48454         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48455         module.
48456         * modules/strchrnul (Depends-on): Add rawmemchr.
48457         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48458
48459         Whitespace cleanup.
48460         * tests/test-strchrnul.c: Reindent.
48461         * lib/strchrnul.c: Likewise.
48462
48463         Optimize and test strchrnul.
48464         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48465         * modules/strchrnul-tests: New file.
48466         * tests/test-strchrnul.c: Likewise.
48467
48468         Remove intprops dependency.
48469         * modules/memchr (Depends-on): Remove intprops.
48470         * modules/memrchr (Depends-on): Likewise.
48471         * modules/memchr2 (Depends-on): Likewise.
48472         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48473         * lib/memrchr.c (__memrchr): Likewise.
48474         * lib/memrchr2.c (memchr2): Likewise.
48475         Reported by Simon Josefsson.
48476
48477 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48478
48479         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48480         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48481
48482 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48483
48484         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48485
48486         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48487
48488         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48489
48490         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48491         declarations.
48492         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48493
48494         * m4/inet_pton.m4: Don't check for header files.
48495
48496         * m4/inet_ntop.m4: Don't check for header files.
48497
48498 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48499
48500         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48501         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48502         trigger for cygwin).
48503         Reported by Bruno Haible  <bruno@clisp.org>.
48504
48505 2008-04-28  Bruno Haible  <bruno@clisp.org>
48506
48507         * doc/posix-functions/strdup.texi: Mention mingw problem.
48508
48509 2008-04-27  Bruno Haible  <bruno@clisp.org>
48510
48511         * modules/stat-time-tests (Depends-on): Add sleep.
48512         * tests/test-stat-time.c (force_unlink): New function.
48513         (cleanup): Use it.
48514         (test_mtime): Remove the ctime related tests.
48515         (test_ctime): New function, containing the ctime related tests.
48516         (main): Call test_ctime, except on native Windows platforms.
48517
48518 2008-04-27  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/rpmatch.c (rpmatch): Add some comments.
48521         Reported by James Youngman <jay@gnu.org>.
48522
48523 2008-04-27  Bruno Haible  <bruno@clisp.org>
48524
48525         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48526         quiet NaNs.
48527
48528 2008-04-27  Bruno Haible  <bruno@clisp.org>
48529
48530         Make test-yesno.sh work on mingw.
48531         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48532         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48533         (main): Set stdin to binary mode.
48534         * modules/yesno-tests (Depends-on): Add binary-io.
48535
48536 2008-04-27  Bruno Haible  <bruno@clisp.org>
48537
48538         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48539         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48540         argument that lie outside the IEEE 854 domain.
48541         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48542         (gl_ISFINITE): Use it.
48543         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48544
48545 2008-04-27  Bruno Haible  <bruno@clisp.org>
48546
48547         Allow local renaming in config.h.
48548         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48549
48550 2008-04-27  Bruno Haible  <bruno@clisp.org>
48551
48552         * lib/memchr.c (__memchr): Change type of 'i'.
48553         * lib/memchr2.c (memchr2): Likewise.
48554
48555 2008-04-26  Eric Blake  <ebb9@byu.net>
48556         and Bruno Haible  <bruno@clisp.org>
48557
48558         Optimize and test memrchr.
48559         * modules/memrchr (Depends-on): Add intprops.
48560         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48561         * modules/memrchr-tests: New file.
48562         * tests/test-memrchr.c: New file.
48563
48564 2008-04-26  Bruno Haible  <bruno@clisp.org>
48565
48566         Add tentative support for DragonFly BSD.
48567         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48568         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48569         fp.
48570         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48571         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48572         * lib/fpurge.c (fpurge): Likewise.
48573         * lib/freadable.c (freaadable): Likewise.
48574         * lib/freadahead.c (freadahead): Likewise.
48575         * lib/freading.c (freading): Likewise.
48576         * lib/freadptr.c (freadptr): Likewise.
48577         * lib/freadseek.c (freadptrinc): Likewise.
48578         * lib/fseeko.c (fseeko): Likewise.
48579         * lib/fseterr.c (fseterr): Likewise.
48580         * lib/fwritable.c (fwritable): Likewise.
48581         * lib/fwriting.c (fwriting): Likewise.
48582
48583 2008-04-26  Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/stdio-impl.h: New file.
48586         * lib/fbufmode.c: Include stdio-impl.h.
48587         (fbufmode): Use fp_, remove redundant #defines.
48588         * lib/fflush.c: Include stdio-impl.h.
48589         (clear_ungetc_buffer): Remove redundant #defines.
48590         * lib/fpurge.c: Include stdio-impl.h.
48591         (fpurge): Remove redundant #defines.
48592         * lib/freadable.c: Include stdio-impl.h.
48593         (freadable): Remove redundant #defines.
48594         * lib/freadahead.c: Include stdio-impl.h.
48595         (freadahead): Remove redundant #defines.
48596         * lib/freading.c: Include stdio-impl.h.
48597         (freading): Remove redundant #defines.
48598         * lib/freadptr.c: Include stdio-impl.h.
48599         (freadptr): Remove redundant #defines.
48600         * lib/freadseek.c: Include stdio-impl.h.
48601         (freadptrinc): Remove redundant #defines.
48602         * lib/fseeko.c: Include stdio-impl.h.
48603         (rpl_fseeko): Remove redundant #defines.
48604         * lib/fseterr.c: Include stdio-impl.h.
48605         (fseterr): Remove redundant #defines.
48606         * lib/fwritable.c: Include stdio-impl.h.
48607         (fwritable: Remove redundant #defines.
48608         * lib/fwriting.c: Include stdio-impl.h.
48609         (fwriting): Remove redundant #defines.
48610         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48611         * modules/fflush (Files): Likewise.
48612         * modules/fpurge (Files): Likewise.
48613         * modules/freadable (Files): Likewise.
48614         * modules/freadahead (Files): Likewise.
48615         * modules/freading (Files): Likewise.
48616         * modules/freadptr (Files): Likewise.
48617         * modules/freadseek (Files): Likewise.
48618         * modules/fseeko (Files): Likewise.
48619         * modules/fseterr (Files): Likewise.
48620         * modules/fwritable (Files): Likewise.
48621         * modules/fwriting (Files): Likewise.
48622
48623 2008-04-26  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48626         restore_seek_optimization, update_fpos_cache): New functions, extracted
48627         from rpl_fflush.
48628         (rpl_fflush): Use them.
48629         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48630         (gl_REPLACE_FFLUSH): Use it.
48631
48632 2008-04-26  Bruno Haible  <bruno@clisp.org>
48633
48634         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48635         on Solaris.
48636         * tests/test-xstrtoimax.sh: Likewise.
48637         * tests/test-xstrtoumax.sh: Likewise.
48638         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48639
48640 2008-04-26  Bruno Haible  <bruno@clisp.org>
48641
48642         * modules/memchr-tests: New file.
48643         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48644
48645 2008-04-26  Eric Blake  <ebb9@byu.net>
48646             Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/memchr.c: Include intprops.h.
48649         (__memchr): Optimize parallel detection of matching bytes. Rename local
48650         variables. Add explanatory comments.
48651
48652 2008-04-26  Bruno Haible  <bruno@clisp.org>
48653
48654         Fix module 'memchr', broken since 2000-10-28.
48655         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48656
48657 2008-04-26  Bruno Haible  <bruno@clisp.org>
48658
48659         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48660         comments.
48661
48662 2008-04-25  Eric Blake  <ebb9@byu.net>
48663
48664         Use native fstatat on cygwin 1.7.0.
48665         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48666         first.
48667
48668 2008-04-23  Eric Blake  <ebb9@byu.net>
48669
48670         Improve memchr2 performance.
48671         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48672         NUL bytes.
48673         * modules/memchr2 (Depends-on): Use intprops.h.
48674
48675 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48676
48677         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48678         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48679         <blp@cs.stanford.edu>.
48680
48681 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48682
48683         * lib/arpa_inet.in.h: New file.
48684
48685         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48686         (Makefile.am): Sed in substitute header file.
48687
48688         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48689         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48690
48691         * modules/inet_ntop (configure.ac): Use
48692         gl_ARPA_INET_MODULE_INDICATOR.
48693
48694         * modules/inet_pton (configure.ac): Use
48695         gl_ARPA_INET_MODULE_INDICATOR.
48696
48697 2008-04-22  Jim Meyering  <meyering@redhat.com>
48698
48699         * modules/verify (License): Re-license as LGPLv2+.
48700
48701 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48702
48703         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48704         parameter to void* as per POSIX standard (MinGW uses char*).
48705
48706 2008-04-21  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48709         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48710         Define to replacements if REPLACE_ISWCNTRL is 1.
48711         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48712         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48713         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48714         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48715         what it fixes.
48716         * doc/posix-functions/iswalpha.texi: Likewise.
48717         * doc/posix-functions/iswblank.texi: Likewise.
48718         * doc/posix-functions/iswcntrl.texi: Likewise.
48719         * doc/posix-functions/iswdigit.texi: Likewise.
48720         * doc/posix-functions/iswgraph.texi: Likewise.
48721         * doc/posix-functions/iswlower.texi: Likewise.
48722         * doc/posix-functions/iswprint.texi: Likewise.
48723         * doc/posix-functions/iswpunct.texi: Likewise.
48724         * doc/posix-functions/iswspace.texi: Likewise.
48725         * doc/posix-functions/iswupper.texi: Likewise.
48726         * doc/posix-functions/iswxdigit.texi: Likewise.
48727         Reported by Alain Guibert.
48728
48729 2008-04-21  Bruno Haible  <bruno@clisp.org>
48730
48731         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48732         Patch by Alain Guibert.
48733
48734 2008-04-21  Bruno Haible  <bruno@clisp.org>
48735
48736         Fix test failures on mingw.
48737         * tests/test-xstrtol.c (print_no_progname): New function.
48738         (main): Install it in error_print_progname hook.
48739         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48740         * tests/test-xstrtoimax.sh: Likewise.
48741         * tests/test-xstrtoumax.sh: Likewise.
48742
48743 2008-04-21  Bruno Haible  <bruno@clisp.org>
48744
48745         Fix test failure on mingw.
48746         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48747
48748 2008-04-21  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48751         Actually assign a value.
48752
48753 2008-04-20  Bruno Haible  <bruno@clisp.org>
48754
48755         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48756         take 2.
48757         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48758         'canonicalize-lgpl' module is also used.
48759         * lib/canonicalize-lgpl.c: Undo last change.
48760         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48761
48762 2008-04-20  Bruno Haible  <bruno@clisp.org>
48763
48764         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48765         config.h. Provide _mkdir based fallback for mingw.
48766         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48767         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48768         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48769         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48770         rather than defining mkdir in config.h.
48771         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48772         (gl_SYS_STAT_H_DEFAULTS): New macro.
48773         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48774         HAVE_IO_H any more.
48775         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48776         HAVE_DECL_MKDIR and HAVE_IO_H.
48777
48778 2008-04-20  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/isapipe.c: Port to native Windows platforms.
48781
48782 2008-04-20  Bruno Haible  <bruno@clisp.org>
48783
48784         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48785
48786 2008-04-21  Eric Blake  <ebb9@byu.net>
48787
48788         Work around preprocessors that don't handle UINTMAX_MAX.
48789         * lib/memchr2.c (memchr2): Avoid embedded #if.
48790         Reported by Alain Guibert, fix suggested by Bruno Haible.
48791
48792 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48793
48794         * doc/posix-functions/strftime.texi (strftime): Explain better
48795         Windows incompatibility.  Suggested by Micah Cowan
48796         <micah@cowan.name>.
48797
48798 2008-04-20  Bruno Haible  <bruno@clisp.org>
48799
48800         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48801         unistr/u8-mblen.
48802
48803 2008-04-20  Bruno Haible  <bruno@clisp.org>
48804
48805         Fix test failure on platforms with non-GNU iconv.
48806         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48807         (U_TO_U8): Use it, rather than u16_to_u8.
48808         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48809         units at the end of the input string.
48810         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48811
48812 2008-04-20  Bruno Haible  <bruno@clisp.org>
48813
48814         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48815         when the resulting length is 0.
48816         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48817
48818 2008-04-20  Bruno Haible  <bruno@clisp.org>
48819
48820         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48821         works.
48822         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48823
48824 2008-04-20  Bruno Haible  <bruno@clisp.org>
48825
48826         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48827         * modules/tsearch-tests (configure.ac): Test for initstate function.
48828
48829 2008-04-20  Bruno Haible  <bruno@clisp.org>
48830
48831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48832         for nlink_t if missing.
48833         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48834
48835 2008-04-19  Bruno Haible  <bruno@clisp.org>
48836
48837         Work around snprintf bug on Linux libc5.
48838         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48840         gl_SNPRINTF_SIZE1.
48841         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48842         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48843         that test failed.
48844         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48845         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48846         * modules/snprintf (Files): Add m4/printf.m4.
48847         * modules/vsnprintf (Files): Likewise.
48848         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48849         * doc/posix-functions/vsnprintf.texi: Likewise.
48850
48851 2008-04-19  Bruno Haible  <bruno@clisp.org>
48852
48853         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48854         from 0.0058 to less than 10^-7.
48855
48856 2008-04-19  Bruno Haible  <bruno@clisp.org>
48857
48858         Fix rounding when a precision is given.
48859         * lib/vasnprintf.c (is_borderline): New function.
48860         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48861         9...9x.
48862         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48863         %e, %g.
48864         * tests/test-vasprintf-posix.c (test_function): Likewise.
48865         * tests/test-snprintf-posix.h (test_function): Likewise.
48866         * tests/test-sprintf-posix.h (test_function): Likewise.
48867         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48868         * tests/test-printf-posix.h (test_function): Likewise.
48869         * tests/test-printf-posix.output: Update.
48870         Reported by John Darrington <john@darrington.wattle.id.au> via
48871         Ben Pfaff <blp@cs.stanford.edu>.
48872
48873 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48874
48875         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48876         Suggested by Bruno Haible <bruno@clisp.org>.
48877
48878 2008-04-17  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48881         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48882         implementation.
48883         Patch by Bruce Merry <bmerry@gmail.com>.
48884
48885 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48886
48887         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48888         doesn't work under Windows.
48889
48890 2008-04-16  Bruno Haible  <bruno@clisp.org>
48891
48892         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48893         New macros.
48894         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48895         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48896         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48897         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48898         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48899         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48900         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48901         macros.
48902         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48903         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48904         Northern Sotho, Uighur.
48905
48906 2008-04-16  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48909         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48910         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48911         Reported by Daniel Bergström <daniel@octocode.com>.
48912
48913 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48914             Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48917         function.
48918         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48919         New functions, mostly extracted from gl_locale_name_default.
48920         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48921
48922 2008-04-16  Eric Blake  <ebb9@byu.net>
48923
48924         Adjust strtod detection to catch glibc 2.7 bug.
48925         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48926         Reported by John Gatewood Ham.
48927
48928 2008-04-16  Bruno Haible  <bruno@clisp.org>
48929
48930         Add tentative support for Linux libc5.
48931         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48932         * lib/fpurge.c (fpurge): Likewise.
48933         * lib/freadable.c (freadable): Likewise.
48934         * lib/freadahead.c (freadahead): Likewise.
48935         * lib/freading.c (freading): Likewise.
48936         * lib/freadptr.c (freadptr): Likewise.
48937         * lib/freadseek.c (freadptrinc): Likewise.
48938         * lib/fseeko.c (rpl_fseeko): Likewise.
48939         * lib/fseterr.c (fseterr): Likewise.
48940         * lib/fwritable.c (fwritable): Likewise.
48941         * lib/fwriting.c (fwriting): Likewise.
48942         Reported by Alain Guibert <alguibert+bts@free.fr>.
48943
48944 2008-04-15  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/mathl (configure.ac): Define module indicator.
48947
48948 2008-04-15  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/logl.c (logl): Remove unused variables.
48951
48952 2008-04-15  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48955         fails.
48956
48957 2008-04-15  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/trim.c (trim2): Fix argument of isspace() macro.
48960
48961 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48962
48963         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48964         to 0.
48965         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48966
48967 2008-04-14  Bruno Haible  <bruno@clisp.org>
48968
48969         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48970         AC_LANG_PROGRAM argument.
48971         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48972         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48974         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48975         * m4/math_h.m4 (gl_MATH_H): Likewise.
48976         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48978         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48979         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48980         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48981         * m4/regex.m4 (gl_REGEX): Likewise.
48982         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48983         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48985         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48987         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48990
48991 2008-04-14  Jim Meyering  <meyering@redhat.com>
48992
48993         test-strtod: fix typos: s/abs/fabs/
48994         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48995
48996 2008-04-13  Bruno Haible  <bruno@clisp.org>
48997
48998         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48999         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49000         module is also used and while not building the reloc-wrapper.
49001
49002 2008-04-13  Bruno Haible  <bruno@clisp.org>
49003
49004         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49005
49006 2008-04-13  Bruno Haible  <bruno@clisp.org>
49007
49008         Fix AIX compilation failure introduced on 2008-04-02.
49009         * tests/test-frexp.c (exp): Undefine before redefining.
49010         * tests/test-frexpl.c (exp): Likewise.
49011
49012 2008-04-13  Bruno Haible  <bruno@clisp.org>
49013
49014         Work around a HP-UX stdio bug.
49015         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49016         * tests/test-ftello.c (main): Likewise.
49017         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49018         * doc/posix-functions/ftello.texi: Likewise.
49019
49020 2008-04-13  Bruno Haible  <bruno@clisp.org>
49021
49022         Make test-signbit pass on HP-UX/hppa.
49023         * tests/test-signbit.c (minus_zerol): New variable.
49024         (test_signbitl): Use it.
49025
49026 2008-04-13  Bruno Haible  <bruno@clisp.org>
49027
49028         Make truncl work on OSF/1 4.0.
49029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49030         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49031         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49033         HAVE_DECL_TRUNCL.
49034         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49035         HAVE_DECL_TRUNCL.
49036         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49037
49038 2008-04-13  Bruno Haible  <bruno@clisp.org>
49039
49040         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49041
49042 2008-04-13  Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49045         expression, so as to avoid HP-UX 11 cc compiler bug.
49046
49047 2008-04-13  Bruno Haible  <bruno@clisp.org>
49048
49049         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49050
49051 2008-04-13  Bruno Haible  <bruno@clisp.org>
49052
49053         * lib/git-merge-changelog.c: Remove empty declaration outside of
49054         functions.
49055
49056 2008-04-13  Bruno Haible  <bruno@clisp.org>
49057
49058         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49059
49060 2008-04-13  Bruno Haible  <bruno@clisp.org>
49061
49062         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49063         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49065         also if it exists but lacks definitions of the SHUT_* macros.
49066         * modules/sys_socket (Description): Update.
49067         Reported by Elbert Pol <e.pol@chello.nl>.
49068
49069 2008-04-13  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/localcharset.c (OS2): Don't redefine if already defined.
49072         Reported by Elbert Pol <e.pol@chello.nl>.
49073
49074 2008-04-13  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/binary-io.h [__EMX__]: Include <io.h>.
49077         Reported by Elbert Pol <e.pol@chello.nl>.
49078
49079 2008-04-12  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/fpucw.h: Enable the definitions also for x86_64.
49082         Needed for NetBSD/x86_64.
49083         Reported by Thomas Klausner <tk@giga.or.at>.
49084
49085 2008-04-12  Bruno Haible  <bruno@clisp.org>
49086
49087         * tests/test-strtod.c: Include isnand.h.
49088         (main): Use isnand instead of isnan.
49089         Reported by Jim Meyering.
49090
49091 2008-04-12  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49094         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49095
49096 2008-04-12  Jim Meyering  <meyering@redhat.com>
49097
49098         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49099
49100 2008-04-12  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49103         Reported by Elbert Pol <e.pol@chello.nl>.
49104
49105 2008-04-12  Eric Blake  <ebb9@byu.net>
49106
49107         Work around Solaris 10 math.h bug.
49108         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49109         (gl_MATH_H_DEFAULTS): Set up default.
49110         * modules/math (Makefile.am): Replace new indicators.
49111         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49112         * tests/test-math.c (main): Test this.
49113         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49114         * doc/posix-headers/math.texi (math.h): Mention bug.
49115         Reported by Nelson H. F. Beebe and Jim Meyering.
49116
49117 2008-04-11  Bruno Haible  <bruno@clisp.org>
49118
49119         Adapt to future versions of Apple GCC.
49120         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49121         Reported by Peter O'Gorman <peter@pogma.com>.
49122
49123 2008-04-11  Bruno Haible  <bruno@clisp.org>
49124
49125         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49126
49127 2008-04-11  Bruno Haible  <bruno@clisp.org>
49128
49129         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49130
49131         * modules/getaddrinfo-tests (Makefile.am): Define
49132         test_getaddrinfo_LDADD.
49133
49134 2008-04-11  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49137         (init): Fix syntax error.
49138         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49139         is declared.
49140
49141 2008-04-11  Bruno Haible  <bruno@clisp.org>
49142
49143         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49144         * modules/glob (Depends-on): Add stdbool.
49145
49146 2008-04-11  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/trim.c: Include <string.h>.
49149
49150 2008-04-11  Eric Blake  <ebb9@byu.net>
49151
49152         Avoid compile failure on OS/2.
49153         * lib/regex_internal.h (internal_function): Disable optimization
49154         on OS/2 (__EMX__), where it caused compiler error.
49155         Reported by Elbert Pol.
49156
49157 2008-04-11  Bruno Haible  <bruno@clisp.org>
49158
49159         Flush the standard error stream before aborting. Needed on mingw.
49160         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49161         * tests/test-array_list.c (ASSERT): Likewise.
49162         * tests/test-array_oset.c (ASSERT): Likewise.
49163         * tests/test-avltree_list.c (ASSERT): Likewise.
49164         * tests/test-avltree_oset.c (ASSERT): Likewise.
49165         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49166         * tests/test-binary-io.c (ASSERT): Likewise.
49167         * tests/test-byteswap.c (ASSERT): Likewise.
49168         * tests/test-c-ctype.c (ASSERT): Likewise.
49169         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49170         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49171         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49172         * tests/test-c-strstr.c (ASSERT): Likewise.
49173         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49174         * tests/test-canonicalize.c (ASSERT): Likewise.
49175         * tests/test-carray_list.c (ASSERT): Likewise.
49176         * tests/test-ceilf1.c (ASSERT): Likewise.
49177         * tests/test-ceilf2.c (ASSERT): Likewise.
49178         * tests/test-ceill.c (ASSERT): Likewise.
49179         * tests/test-count-one-bits.c (ASSERT): Likewise.
49180         * tests/test-fbufmode.c (ASSERT): Likewise.
49181         * tests/test-fflush2.c (ASSERT): Likewise.
49182         * tests/test-floorf1.c (ASSERT): Likewise.
49183         * tests/test-floorf2.c (ASSERT): Likewise.
49184         * tests/test-floorl.c (ASSERT): Likewise.
49185         * tests/test-fopen.c (ASSERT): Likewise.
49186         * tests/test-fpending.c (ASSERT): Likewise.
49187         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49188         * tests/test-fpurge.c (ASSERT): Likewise.
49189         * tests/test-freadable.c (ASSERT): Likewise.
49190         * tests/test-freadahead.c (ASSERT): Likewise.
49191         * tests/test-freading.c (ASSERT): Likewise.
49192         * tests/test-freadptr.c (ASSERT): Likewise.
49193         * tests/test-freadptr2.c (ASSERT): Likewise.
49194         * tests/test-freadseek.c (ASSERT): Likewise.
49195         * tests/test-freopen.c (ASSERT): Likewise.
49196         * tests/test-frexp.c (ASSERT): Likewise.
49197         * tests/test-frexpl.c (ASSERT): Likewise.
49198         * tests/test-fseek.c (ASSERT): Likewise.
49199         * tests/test-fseeko.c (ASSERT): Likewise.
49200         * tests/test-fstrcmp.c (ASSERT): Likewise.
49201         * tests/test-ftell.c (ASSERT): Likewise.
49202         * tests/test-ftello.c (ASSERT): Likewise.
49203         * tests/test-func.c (ASSERT): Likewise.
49204         * tests/test-fwritable.c (ASSERT): Likewise.
49205         * tests/test-fwriting.c (ASSERT): Likewise.
49206         * tests/test-getdelim.c (ASSERT): Likewise.
49207         * tests/test-getline.c (ASSERT): Likewise.
49208         * tests/test-i-ring.c (ASSERT): Likewise.
49209         * tests/test-iconv-utf.c (ASSERT): Likewise.
49210         * tests/test-iconv.c (ASSERT): Likewise.
49211         * tests/test-isfinite.c (ASSERT): Likewise.
49212         * tests/test-isnand.c (ASSERT): Likewise.
49213         * tests/test-isnanf.c (ASSERT): Likewise.
49214         * tests/test-isnanl.h (ASSERT): Likewise.
49215         * tests/test-ldexpl.c (ASSERT): Likewise.
49216         * tests/test-linked_list.c (ASSERT): Likewise.
49217         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49218         * tests/test-localename.c (ASSERT): Likewise.
49219         * tests/test-lseek.c (ASSERT): Likewise.
49220         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49221         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49222         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49223         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49224         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49225         * tests/test-mbschr.c (ASSERT): Likewise.
49226         * tests/test-mbscspn.c (ASSERT): Likewise.
49227         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49228         * tests/test-mbspbrk.c (ASSERT): Likewise.
49229         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49230         * tests/test-mbsrchr.c (ASSERT): Likewise.
49231         * tests/test-mbsspn.c (ASSERT): Likewise.
49232         * tests/test-mbsstr1.c (ASSERT): Likewise.
49233         * tests/test-mbsstr2.c (ASSERT): Likewise.
49234         * tests/test-mbsstr3.c (ASSERT): Likewise.
49235         * tests/test-memchr2.c (ASSERT): Likewise.
49236         * tests/test-memmem.c (ASSERT): Likewise.
49237         * tests/test-open.c (ASSERT): Likewise.
49238         * tests/test-printf-frexp.c (ASSERT): Likewise.
49239         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49240         * tests/test-printf-posix.c (ASSERT): Likewise.
49241         * tests/test-quotearg.c (ASSERT): Likewise.
49242         * tests/test-rbtree_list.c (ASSERT): Likewise.
49243         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49244         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49245         * tests/test-round1.c (ASSERT): Likewise.
49246         * tests/test-roundf1.c (ASSERT): Likewise.
49247         * tests/test-roundl.c (ASSERT): Likewise.
49248         * tests/test-signbit.c (ASSERT): Likewise.
49249         * tests/test-sleep.c (ASSERT): Likewise.
49250         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49251         * tests/test-snprintf.c (ASSERT): Likewise.
49252         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49253         * tests/test-stat-time.c (ASSERT): Likewise.
49254         * tests/test-strcasestr.c (ASSERT): Likewise.
49255         * tests/test-strerror.c (ASSERT): Likewise.
49256         * tests/test-striconv.c (ASSERT): Likewise.
49257         * tests/test-striconveh.c (ASSERT): Likewise.
49258         * tests/test-striconveha.c (ASSERT): Likewise.
49259         * tests/test-strsignal.c (ASSERT): Likewise.
49260         * tests/test-strstr.c (ASSERT): Likewise.
49261         * tests/test-strtod.c (ASSERT): Likewise.
49262         * tests/test-trunc1.c (ASSERT): Likewise.
49263         * tests/test-trunc2.c (ASSERT): Likewise.
49264         * tests/test-truncf1.c (ASSERT): Likewise.
49265         * tests/test-truncf2.c (ASSERT): Likewise.
49266         * tests/test-truncl.c (ASSERT): Likewise.
49267         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49268         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49269         * tests/test-vasnprintf.c (ASSERT): Likewise.
49270         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49271         * tests/test-vasprintf.c (ASSERT): Likewise.
49272         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49273         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49274         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49275         * tests/test-vsnprintf.c (ASSERT): Likewise.
49276         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49277         * tests/test-wcwidth.c (ASSERT): Likewise.
49278         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49279         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49280         * tests/test-xvasprintf.c (ASSERT): Likewise.
49281         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49282         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49283         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49284         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49285         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49286         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49287         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49288         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49289         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49290         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49291         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49292         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49293         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49294         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49295         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49296         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49297         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49298         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49299         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49300         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49301         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49302         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49303         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49304         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49305         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49306         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49307         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49308         * tests/unictype/test-combining.c (ASSERT): Likewise.
49309         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49310         * tests/unictype/test-digit.c (ASSERT): Likewise.
49311         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49312         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49313         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49314         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49315         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49316         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49317         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49318         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49319         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49320         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49321         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49322         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49323         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49324         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49325         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49326         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49327         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49328         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49329         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49330         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49331         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49332         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49333         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49334         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49335         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49336         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49337         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49338         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49339         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49340         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49341         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49342         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49343         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49344         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49345         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49346         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49347         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49348         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49349         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49350         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49351         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49352         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49353         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49354         Reported by Eric Blake.
49355
49356 2008-04-11  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/wchar.in.h: Tweak comment.
49359
49360 2008-04-11  Bruno Haible  <bruno@clisp.org>
49361
49362         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49363         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49364         gl_COMMON.
49365         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49366
49367 2008-04-11  Bruno Haible  <bruno@clisp.org>
49368
49369         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49370
49371 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49372
49373         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49374         of attempting to use non-existing /dev/*random.  Based on patch
49375         from Adam Strzelecki <ono@java.pl> in
49376         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49377
49378 2008-04-08  Bruno Haible  <bruno@clisp.org>
49379
49380         Add tentative support for emx+gcc.
49381         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49382         * lib/fpurge.c (fpurge): Likewise.
49383         * lib/freadable.c (freadable): Likewise.
49384         * lib/freadahead.c (freadahead): Likewise.
49385         * lib/freading.c (freading): Likewise.
49386         * lib/freadptr.c (freadptr): Likewise.
49387         * lib/freadseek.c (freadptrinc): Likewise.
49388         * lib/fseeko.c (rpl_fseeko): Likewise.
49389         * lib/fseterr.c (fseterr): Likewise.
49390         * lib/fwritable.c (fwritable): Likewise.
49391         * lib/fwriting.c (fwriting): Likewise.
49392         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49393
49394 2008-04-09  Eric Blake  <ebb9@byu.net>
49395
49396         Avoid some autoconf warnings.
49397         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49398         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49399         * m4/afs.m4 (gl_AFS): Likewise.
49400         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49401         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49403         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49404         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49405         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49406         (AC_CHECK_DECLS_ONCE): Likewise.
49407         Rename file...
49408         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49409         gnulib-tool requires autoconf 2.59 or better.
49410         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49411
49412 2008-04-08  Eric Blake  <ebb9@byu.net>
49413
49414         Use 'git describe --match' if present (added in git 1.5.5).
49415         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49416         if possible.
49417
49418 2008-04-08  Bruno Haible  <bruno@clisp.org>
49419
49420         Add tentative support for OpenServer.
49421         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49422         _ptr, _cnt.
49423         * lib/fpurge.c (fpurge): Likewise.
49424         * lib/freadable.c (freadable): Likewise.
49425         * lib/freadahead.c (freadahead): Likewise.
49426         * lib/freading.c (freading): Likewise.
49427         * lib/freadptr.c (freadptr): Likewise.
49428         * lib/freadseek.c (freadptrinc): Likewise.
49429         * lib/fseeko.c (rpl_fseeko): Likewise.
49430         * lib/fseterr.c (fseterr): Likewise.
49431         * lib/fwritable.c (fwritable): Likewise.
49432         * lib/fwriting.c (fwriting): Likewise.
49433         Reported by Roger Cornelius <rac@tenzing.org> and
49434         Brian K. White <brian@aljex.com>.
49435
49436 2008-04-06  Jim Meyering  <meyering@redhat.com>
49437
49438         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49439
49440 2008-04-06  Bruno Haible  <bruno@clisp.org>
49441
49442         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49443         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49444         * tests/test-printf-posix.sh: Likewise.
49445         * tests/test-vfprintf-posix.sh: Likewise.
49446         * tests/test-vprintf-posix.sh: Likewise.
49447         * tests/test-xprintf-posix.sh: Likewise.
49448
49449 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49450
49451         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49452         hide error from 'ls', needed on OS/2.
49453         Report by Elbert Pol <elbert.pol@gmail.com>.
49454
49455 2008-04-04  Eric Blake  <ebb9@byu.net>
49456
49457         Make test-fseeko.c failures meaningful.
49458         * tests/test-fseeko.c: Print line number on failure.
49459         * tests/test-fseek.c: Likewise.
49460         Reported by Nelson H. F. Beebe.
49461
49462         Improve strtod bug detection check.
49463         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49464         required for Solaris 10.
49465         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49466
49467 2008-04-04  Bruno Haible  <bruno@clisp.org>
49468
49469         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49470         by m4/setenv.m4.
49471
49472 2008-04-03  Eric Blake  <ebb9@byu.net>
49473
49474         Ensure sane .version contents.
49475         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49476         version string.
49477         * build-aux/git-version-gen: Improve documentation.
49478
49479         Make GNU make output nicer.
49480         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49481         MAKECMDGOALS to enforce message for all command line targets.  Set
49482         srcdir for use in maint.mk.
49483
49484         Another maintainer tweak.
49485         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49486         a target that regenerates version.
49487
49488 2008-04-03  Jim Meyering  <meyering@redhat.com>
49489
49490         vc-list-files: don't cause coreutils "make po-check" failure
49491         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49492
49493 2008-04-03  Eric Blake  <ebb9@byu.net>
49494
49495         Allow VPATH usage of vc-list-files.
49496         * build-aux/vc-list-files (scriptversion): Add timestamp.
49497         (options): Add --help, --version, -C.
49498         (CVS): Support installed cvsu.
49499
49500 2008-04-02  Bruno Haible  <bruno@clisp.org>
49501
49502         Avoid some "statement with no effect" warnings from gcc.
49503         * tests/test-wctype.c (main): Explicitly ignore unused values.
49504         Reported by Jim Meyering.
49505
49506 2008-04-02  Jim Meyering  <meyering@redhat.com>
49507
49508         Avoid some warnings from "gcc -Wshadow".
49509         * tests/test-frexp.c (exp): Define to a different identifier.
49510         * tests/test-frexpl.c (exp): Likewise.
49511
49512 2008-04-03  Jim Meyering  <meyering@redhat.com>
49513
49514         bootstrap: remove dangling *.[ch] symlinks from lib
49515         * build-aux/bootstrap [dangling symlink removal]: Move find's
49516         -depth option to precede all others, to avoid a warning.
49517         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49518
49519 2008-04-02  Bruno Haible  <bruno@clisp.org>
49520
49521         Avoid some warnings from "gcc -Wshadow".
49522         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49523         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49524         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49525         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49526         Reported by Jim Meyering.
49527
49528 2008-04-01  Bruno Haible  <bruno@clisp.org>
49529
49530         Fix test to work on IRIX 6.5 with cc.
49531         * tests/test-math.c (numeric_equal): New function.
49532         (main): Use it.
49533
49534 2008-04-01  Bruno Haible  <bruno@clisp.org>
49535
49536         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49537
49538 2008-04-01  Bruno Haible  <bruno@clisp.org>
49539
49540         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49541         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49542         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49543         (Depends-on): Remove math.
49544
49545         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49546         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49547         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49548         (Depends-on): Remove math.
49549
49550         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49551         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49552         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49553         (Depends-on): Remove math.
49554         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49555         (Depends-on): Remove math.
49556
49557         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49558         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49559         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49560         (Depends-on): Remove math.
49561         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49562         (Depends-on): Remove math.
49563
49564         * tests/test-round1.c: Include nan.h.
49565         (main): Use NaNd instead of NAN.
49566         * modules/round-tests (Files): Add tests/nan.h.
49567
49568         * tests/test-trunc1.c: Include nan.h.
49569         (main): Use NaNd instead of NAN.
49570         * modules/trunc-tests (Files): Add tests/nan.h.
49571
49572         * tests/test-roundf1.c: Include nan.h.
49573         (main): Use NaNf instead of NAN.
49574         * modules/roundf-tests (Files): Add tests/nan.h.
49575
49576         * tests/test-truncf1.c: Include nan.h.
49577         (main): Use NaNf instead of NAN.
49578         * modules/truncf-tests (Files): Add tests/nan.h.
49579
49580         * tests/test-ceilf1.c: Include nan.h.
49581         (main): Use NaNf instead of NAN.
49582         * modules/ceilf-tests (Files): Add tests/nan.h.
49583
49584         * tests/test-floorf1.c: Include nan.h.
49585         (main): Use NaNf instead of NAN.
49586         * modules/floorf-tests (Files): Add tests/nan.h.
49587
49588         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49589         (main): Use NaNf instead of NAN.
49590         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49591
49592         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49593         (main): Use NaNd instead of NAN.
49594         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49595
49596         * tests/test-frexp.c: Include nan.h.
49597         (main): Use NaNd instead of NAN.
49598         * modules/frexp-tests (Files): Add tests/nan.h.
49599
49600         * lib/isnan.c: Don't include <math.h>.
49601         (FUNC): Don't use NAN macro.
49602         * modules/isnand-nolibm (Depends-on): Remove math.
49603         * modules/isnanf-nolibm (Depends-on): Remove math.
49604         * modules/isnanl (Depends-on): Remove math.
49605         * modules/isnanl-nolibm (Depends-on): Remove math.
49606
49607         * tests/nan.h: New file.
49608
49609 2008-04-01  Eric Blake  <ebb9@byu.net>
49610
49611         Fix typos.
49612         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49613         values to be the right type.
49614
49615         For now, cater to gnulib strtod inaccuracies.
49616         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49617         fractional results.  While not as nice from a QoI perspective, it
49618         is a quicker patch than correctly implementing decimal to binary
49619         rounding.
49620
49621 2008-03-31  Eric Blake  <ebb9@byu.net>
49622
49623         Guarantee a definition of NAN.
49624         * lib/math.in.h (NAN): Define if missing.
49625         * tests/test-math.c (main): Test it.
49626         * doc/posix-headers/math.texi (math.h): Document this.
49627         * lib/isnan.c (rpl_isnand): Use it.
49628         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49629         * tests/test-floorf1.c (NaN): Likewise.
49630         * tests/test-frexp.c (NaN): Likewise.
49631         * tests/test-isnand.c (NaN): Likewise.
49632         * tests/test-isnanf.c (NaN): Likewise.
49633         * tests/test-round1.c (NaN): Likewise.
49634         * tests/test-roundf1.c (NaN): Likewise.
49635         * tests/test-snprintf-posix.h (NaN): Likewise.
49636         * tests/test-sprintf-posix.h (NaN): Likewise.
49637         * tests/test-trunc1.c (NaN): Likewise.
49638         * tests/test-truncf1.c (NaN): Likewise.
49639         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49640         * tests/test-vasprintf-posix.c (NaN): Likewise.
49641         * modules/isnand-nolibm (Depends-on): Add math.
49642         * modules/isnanf-nolibm (Depends-on): Likewise.
49643         * modules/isnanl (Depends-on): Likewise.
49644         * modules/isnanl-nolibm (Depends-on): Likewise.
49645         * modules/snprintf-posix-tests (Depends-on): Likewise.
49646         * modules/sprintf-posix-tests (Depends-on): Likewise.
49647         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49648         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49649         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49650         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49651
49652 2008-03-31  Bruno Haible  <bruno@clisp.org>
49653
49654         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49655         * doc/posix-functions/strtod.texi: Likewise.
49656
49657 2008-03-31  Bruno Haible  <bruno@clisp.org>
49658
49659         * tests/test-strtod.c (main): Don't use C99 syntax.
49660
49661 2008-03-31  Bruno Haible  <bruno@clisp.org>
49662
49663         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49664         Reported by Eric Blake.
49665
49666 2008-03-31  Jim Meyering  <meyering@redhat.com>
49667
49668         Don't compare actual signbit return values.
49669         * tests/test-strtod.c (main): Rather, compare only their
49670         zero/non-zero nature.
49671
49672 2008-03-31  Eric Blake  <ebb9@byu.net>
49673
49674         More strtod documentation.
49675         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49676         failures as distinct bugs.
49677
49678 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49679
49680         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49681         Problem reported by Erik Benada in
49682         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49683
49684 2008-03-30  Bruno Haible  <bruno@clisp.org>
49685
49686         * tests/test-strtod.c: Add comments about which assertion fails on which
49687         platform.
49688         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49689
49690 2008-03-30  Eric Blake  <ebb9@byu.net>
49691
49692         Test signbit behavior on zeros.
49693         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49694         (test_signbitd, test_signbitl): Likewise.
49695
49696         More strtod touchups.
49697         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49698         sign of negative underflow, for now.  Use .5, not .1.
49699         * doc/posix-functions/strtod.texi (strtod): Mention these
49700         limitations.
49701         Reported by Jim Meyering.
49702
49703 2008-03-30  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49706         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49707
49708 2008-03-30  Bruno Haible  <bruno@clisp.org>
49709
49710         Avoid failure when attempting to return empty iconv results on some
49711         platforms.
49712         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49713         allocation, don't report ENOMEM when the resulting string is empty.
49714
49715 2008-03-30  Bruno Haible  <bruno@clisp.org>
49716
49717         Fix buffer overrun.
49718         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49719         Don't consider the width for tmp_length. Check count against tmp_length
49720         before doing the padding. Ensure enough allocation during padding.
49721
49722 2008-03-30  Eric Blake  <ebb9@byu.net>
49723
49724         strtod touchups.
49725         * lib/strtod.c (strtod): Avoid compiler warnings.
49726         Reported by Jim Meyering.
49727
49728 2008-03-30  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49731         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49732         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49733         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49734         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49735         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49736         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49737         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49738
49739         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49740         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49741         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49742         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49743         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49744         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49745         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49746         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49747
49748         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49749         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49750         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49751         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49752         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49753         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49754         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49755         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49756
49757         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49758         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49759
49760         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49761         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49762
49763         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49764         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49765
49766         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49768         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49769
49770         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49772         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49773
49774         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49776         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49777
49778         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49780         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49781
49782         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49783         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49785         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49786         (Depends-on): Add EOVERFLOW.
49787         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49788         (Depends-on): Add EOVERFLOW.
49789         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49790         (Depends-on): Add EOVERFLOW.
49791         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49792         (Depends-on): Add EOVERFLOW.
49793         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49794         (Depends-on): Add EOVERFLOW.
49795         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49796         (Depends-on): Add EOVERFLOW.
49797         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49798         (Depends-on): Add EOVERFLOW.
49799         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49800         (Depends-on): Add EOVERFLOW.
49801
49802         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49804         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49805
49806         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49808         * modules/snprintf (Depends-on): Add EOVERFLOW.
49809
49810         * lib/poll.c (EOVERFLOW): Remove fallback.
49811         * modules/poll (Depends-on): Add EOVERFLOW.
49812
49813         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49814         * modules/getugroups (Depends-on): Add EOVERFLOW.
49815
49816         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49817         * modules/getdelim (Depends-on): Add EOVERFLOW.
49818
49819         * lib/ftell.c (EOVERFLOW): Remove fallback.
49820         * modules/ftell (Depends-on): Add EOVERFLOW.
49821
49822         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49823         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49824         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49825
49826         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49827
49828         * modules/EOVERFLOW-tests: New file.
49829         * tests/test-EOVERFLOW.c: New file.
49830
49831         * modules/EOVERFLOW: New file.
49832         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49833
49834 2008-03-30  Bruno Haible  <bruno@clisp.org>
49835
49836         Fix bug introduced on 2007-06-10.
49837         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49838         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49839
49840 2008-03-30  Bruno Haible  <bruno@clisp.org>
49841
49842         Improve freadseek's efficiency after ungetc.
49843         * lib/freadseek.c: Include freadahead.h.
49844         (freadptrinc): New function, extracted from freadseek.
49845         (freadseek): Use it in a loop. Use freadahead to determine the number
49846         of loop iterations.
49847         * modules/freadseek (Depends-on): Add freadahead.
49848         (configure.ac): Require AC_C_INLINE.
49849
49850 2008-03-30  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/freadseek.c (freadseek): Don't ignore the return value of
49853         freadptr.
49854
49855 2008-03-29  Eric Blake  <ebb9@byu.net>
49856
49857         Add hex float support.
49858         * modules/strtod (Depends-on): Add c-ctype.
49859         (Link): Mention POW_LIB.
49860         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49861         whitespace between 'e' and exponent.
49862         * tests/test-strtod.c (main): Enable hex float tests.
49863         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49864         now provides.
49865
49866         Document various strtod bugs, with some fixes.
49867         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49868         "-0x", "inf", "nan", and hex constants.
49869         * doc/posix-functions/atof.texi (atof): Likewise.
49870         * modules/stdlib (Makefile.am): Support strtod.
49871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49872         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49873         detect additional strtod bugs.
49874         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49875         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49876         bool where appropriate.  Parse 'inf' and 'nan'.
49877         * tests/test-strtod.c: New file.
49878         * modules/strtod (Depends-on): Add stdbool, stdlib.
49879         (configure.ac): Turn on module indicator.
49880         * modules/strtod-tests: New module.
49881
49882 2008-03-29  Eric Blake  <ebb9@byu.net>
49883
49884         Fix ftell on mingw.
49885         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49886         * modules/ftell-tests (Depends-on): Add binary-io.
49887         * modules/ftello-tests (Depends-on): Likewise.
49888         * tests/test-ftell.c (main): Enhance test to cover behavior after
49889         ungetc.  Enforce binary mode.
49890         * tests/test-ftello.c (main): Likewise.
49891
49892         Pass test-freadseek on cygwin.
49893         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49894         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49895         ungetc buffer.
49896
49897         * tests/test-fflush2.c (main): Fix typo.
49898
49899 2008-03-29  Bruno Haible  <bruno@clisp.org>
49900
49901         * tests/test-fflush2.c (main): Temporarily disable the contents of
49902         this test.
49903         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49904         Reported by Eric Blake.
49905
49906 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49907
49908         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49909         (GC_SHA224_DIGEST_SIZE): Add.
49910
49911         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49912         (gc_hash_digest_length): Likewise.
49913         (gc_hash_buffer): Likewise.
49914
49915 2008-03-25  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49918         detail which gettext release to use.
49919         Reported by Simon Josefsson.
49920
49921 2008-03-26  Jim Meyering  <meyering@redhat.com>
49922
49923         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49924         * modules/gnumakefile (clean-GNUmakefile): Also, use
49925         test ... && ... || : syntax rather than if-then ... fi.
49926
49927         gnumakefile: Don't double-quote-expand $(VPATH) value.
49928         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49929
49930 2008-03-24  Eric Blake  <ebb9@byu.net>
49931
49932         Alter GNUmakefile to install into top directory.
49933         * modules/maintainer-makefile: Split, and add dependency...
49934         * modules/gnumakefile: to this new module.
49935         * build-aux/GNUmakefile: Move...
49936         * top/GNUmakefile: ...here.
49937         * build-aux/maint.mk: Move...
49938         * top/maint.mk: ...here.
49939         * MODULES.html.sh (Support for maintaining...): Document new
49940         module.
49941
49942 2008-03-23  Bruno Haible  <bruno@clisp.org>
49943
49944         * gnulib-tool: New options --vc-files, --no-vc-files.
49945         (func_usage): Document them.
49946         (vc_files): New variable.
49947         (func_import): Consider vc_files.
49948         (func_create_testdir): Set vc_files to empty.
49949         Suggested by Jim Meyering and Karl Berry.
49950
49951 2008-03-23  Bruno Haible  <bruno@clisp.org>
49952
49953         Fix regex compilation error on HP-UX 11.
49954         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49955         * modules/regex (Files): Add m4/mbstate_t.m4.
49956         Reported by Ton Voon <ton.voon@altinity.com>.
49957
49958 2008-03-23  Bruno Haible  <bruno@clisp.org>
49959
49960         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49961
49962 2008-03-23  Eric Blake  <ebb9@byu.net>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         Install files from top/ in the destination directory.
49966         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49967         augmentation also for the files from top/.
49968         (func_import, func_create_testdir): Rewrite file names:
49969         top/filename -> filename.
49970
49971 2008-03-23  Bruno Haible  <bruno@clisp.org>
49972
49973         Tweak "gnulib --version" output.
49974         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49975
49976 2008-03-23  Bruno Haible  <bruno@clisp.org>
49977
49978         Tweak "gnulib --version" output.
49979         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49980         rather than contents of ChangeLog, when possible.
49981
49982 2008-03-21  Eric Blake  <ebb9@byu.net>
49983
49984         More --version tweaks.
49985         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49986         date of last ChangeLog entry.
49987
49988 2008-03-21  Jim Meyering  <meyering@redhat.com>
49989
49990         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49991
49992 2008-03-20  Eric Blake  <ebb9@byu.net>
49993
49994         VPATH fix.
49995         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49996
49997 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49998
49999         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50000         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50001
50002 2008-03-20  Eric Blake  <ebb9@byu.net>
50003
50004         Sync GNUmakefile with coreutils.
50005         * build-aux/GNUmakefile (have-Makefile): Rename...
50006         (_have-Makefile): ...to this, for namespace consideration.
50007         (GNUmakefile.cfg): Include, if present.
50008         (_autoreconf): Define a default.
50009         (_is-dist-target): New rule for rebuilds to pick up intra-release
50010         version.
50011         (maint-cfg.mk): Rename...
50012         (cfg.mk): ...to this.
50013
50014 2008-03-18  Jim Meyering  <meyering@redhat.com>
50015
50016         New script and module: mktempd
50017         * MODULES.html.sh (maint+release support): Add mktempd.
50018         * build-aux/mktempd: New file.
50019         * modules/mktempd: New file.
50020
50021 2008-03-15  Jim Meyering  <meyering@redhat.com>
50022
50023         Undo last change.
50024         * lib/sha1.c, lib/md5.c: 63 != ~63.
50025         Reported by Andreas Schwab.
50026
50027         sha1.c, md5.c: Hoist a redundant expression.
50028         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50029         "ctx->buflen" only once, before calling *_process_block.
50030         * lib/md5.c (md5_process_bytes): Likewise.
50031
50032 2008-03-14  Eric Blake  <ebb9@byu.net>
50033
50034         Bump copyright year in files generated by gnulib-tool.
50035         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50036         gnulib-tool, rather than hard-coding it.
50037
50038         Fix 'gnulib-tool --version' output to work with git.
50039         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50040         (startup): ...here.
50041         (func_version): Use it to invoke git-version-gen, rather than
50042         relying on CVS keyword expansion.  Modernize wording.
50043         (cvsdatestamp, last_checkin_date, version): Kill unused
50044         variables.
50045
50046 2008-03-12  Jim Meyering  <meyering@redhat.com>
50047
50048         Recognize optional cast of the argument to free.
50049         * build-aux/useless-if-before-free: Update regexps.
50050
50051         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50052
50053 2008-03-11  Bruno Haible  <bruno@clisp.org>
50054
50055         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50056         by a single package.
50057         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50058         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50059         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50060         Reported by Sam Steingold <sds@gnu.org>.
50061
50062 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50063
50064         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50065         repositories.
50066
50067 2008-03-11  Bruno Haible  <bruno@clisp.org>
50068
50069         Avoid conflicts between local macro definitions.
50070         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50071         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50072
50073 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50074             Bruno Haible  <bruno@clisp.org>
50075
50076         Make va_copy work with some version of xlc on AIX 5.1.
50077         * lib/stdarg.in.h: New file.
50078         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50079         On AIX, use a <stdarg.h> file substitute.
50080         * modules/stdarg (Files): Add lib/stdarg.in.h.
50081         (Depends-on): Add include_next.
50082         (Makefile.am): Build a stdarg.h substitute if requested.
50083         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50084
50085 2008-03-10  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50088         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50089         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50090
50091 2008-03-10  Bruno Haible  <bruno@clisp.org>
50092
50093         * modules/stdlib (Depends-on): Add include_next, remove
50094         absolute-header.
50095
50096 2008-03-09  Bruno Haible  <bruno@clisp.org>
50097
50098         * lib/freadahead.h (freadahead): Document more precisely.
50099         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50100         the sum of both buffer sizes.
50101         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50102         * NEWS: Document the change.
50103
50104 2008-03-09  Bruno Haible  <bruno@clisp.org>
50105
50106         Extend freadptr to return also the buffer size.
50107         * lib/freadptr.h (freadptr): Add sizep argument.
50108         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50109         (freadptr): Add sizep argument. Determine buffer size like freadahead
50110         does.
50111         * tests/test-freadptr.c: Don't include freadahead.h.
50112         (main): Adapt for new calling convention of freadptr.
50113         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50114         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50115         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50116         tests/test-freadptr2.sh.
50117         (Depends): Remove freadahead.
50118         (TESTS): Add test-freadptr2.sh.
50119         (check_PROGRAMS): Add test-freadptr2.
50120
50121 2008-03-09  Bruno Haible  <bruno@clisp.org>
50122
50123         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50124         Report and solution by Simon Josefsson.
50125
50126 2008-03-06  Bruno Haible  <bruno@clisp.org>
50127
50128         Make fflush after ungetc work on BSD platforms.
50129         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50130         * tests/test-fflush2.c: New file.
50131         * tests/test-fflush2.sh: New file.
50132         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50133         tests/test-fflush2.c.
50134         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50135         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50136
50137 2008-03-06  Eric Blake  <ebb9@byu.net>
50138
50139         Likewise for ftello.
50140         * modules/ftello (Dependencies): Add extensions.
50141         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50142
50143 2008-03-06  Bruno Haible  <bruno@clisp.org>
50144
50145         * modules/fseeko (Dependencies): Add extensions.
50146         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50147         Needed on glibc systems.
50148
50149 2008-03-06  Bruno Haible  <bruno@clisp.org>
50150
50151         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50152         email address.
50153         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50154
50155 2008-03-06  Bruno Haible  <bruno@clisp.org>
50156
50157         * users.txt: Add libgnupdf.
50158
50159 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50160
50161         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50162         (Header File Substitutes, Function Substitutes,
50163         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50164         (Build robot for gnulib): Fix typo.
50165
50166 2008-03-06  Bruno Haible  <bruno@clisp.org>
50167
50168         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50169         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50170
50171 2008-03-06  Bruno Haible  <bruno@clisp.org>
50172
50173         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50174         * doc/gnulib.texi: Include it.
50175
50176 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50177
50178         * modules/func (License): Change license to unlimited; there was
50179         no LGPL parts in the module anyway.
50180
50181 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50182
50183         * modules/__func__: Renamed to modules/func.
50184         * modules/__func__-tests: Renamed to modules/func-tests.
50185         * tests/test-__func__.c: Renamed to tests/test-func.c.
50186         * m4/__func__.m4: Renamed to m4/func.m4.
50187         * doc/gnulib.texi (__func__): Section renamed to func.
50188         Suggested by Eric Blake <ebb9@byu.net>.
50189
50190 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50191
50192         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50193         about __func__.  Make example self-contained.  Suggested by Eric
50194         Blake <ebb9@byu.net>.
50195
50196         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50197         Suggested by Eric Blake <ebb9@byu.net>.
50198
50199 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50200
50201         * modules/__func__: New file.
50202         * modules/__func__-tests: New file.
50203         * tests/test-__func__.c: New file.
50204         * m4/__func__.m4: New file.
50205         * doc/gnulib.texi (__func__): Document __func__ module.
50206
50207 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50208
50209         * modules/byteswap (License): Re-license as LGPLv2+.
50210
50211 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50212
50213         * doc/Makefile: Add pdf target.
50214
50215 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50216
50217         * modules/inline (License): Use 'unlimited', since there are only
50218         *.m4 files in this module.
50219
50220 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50221             Bruno Haible  <bruno@clisp.org>
50222
50223         Add support for HP C 7.1 on OpenVMS 8.3.
50224         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50225
50226 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50227
50228         Update VMS specifics.
50229         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50230
50231 2008-03-02  Jim Meyering  <meyering@redhat.com>
50232
50233         Remove the last dependency on the "free" module.
50234         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50235         Reported by Bob Proulx.
50236
50237         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50238
50239         Remove useless "if" tests before free.  Deprecate "free" module.
50240         * doc/posix-functions/free.texi: Mention that this
50241         module is no longer useful.
50242         * modules/free (Notice): Say this module is obsolete.
50243         * modules/readutmp (Depends-on): Remove free.
50244         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50245         * lib/putenv.c (putenv): Likewise.
50246         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50247         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50248         * tests/test-c-strcasestr.c (main): Likewise.
50249         * tests/test-c-strstr.c (main): Likewise.
50250         * tests/test-mbscasestr1.c (main): Likewise.
50251         * tests/test-mbscasestr2.c (main): Likewise.
50252         * tests/test-mbsstr1.c (main): Likewise.
50253         * tests/test-mbsstr2.c (main): Likewise.
50254         * tests/test-memmem.c (main): Likewise.
50255         * tests/test-strcasestr.c (main): Likewise.
50256         * tests/test-striconv.c (main): Likewise.
50257         * tests/test-striconveh.c (main): Likewise.
50258         * tests/test-striconveha.c (main): Likewise.
50259         * tests/test-strstr.c (main): Likewise.
50260
50261         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50262
50263         bootstrap: sync from coreutils again
50264         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50265
50266 2008-03-01  Jim Meyering  <meyering@redhat.com>
50267
50268         bootstrap: sync from coreutils
50269         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50270         also when the target doesn't exist.
50271
50272 2008-03-01  Eric Blake  <ebb9@byu.net>
50273
50274         Fix bugs in last patch.
50275         * lib/memchr2.c (memchr2): Fix typo.
50276         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50277         extension.
50278         Reported by Bruce Korb.
50279
50280         New module 'memchr2'.
50281         * modules/memchr2: New file.
50282         * modules/memchr2-tests: Likewise.
50283         * lib/memchr2.h: Likewise.
50284         * lib/memchr2.c: Likewise, based on memchr.c.
50285         * tests/test-memchr2.c: New test.
50286         * MODULES.html.sh (String handling): Add memchr2.
50287
50288 2008-02-29  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/freadseek-tests: New file.
50291         * tests/test-freadseek.sh: New file.
50292         * tests/test-freadseek.c: New file.
50293
50294         New module 'freadseek'.
50295         * modules/freadseek: New file.
50296         * lib/freadseek.h: New file.
50297         * lib/freadseek.c: New file.
50298         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50299
50300 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50301
50302         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50303         wydawca.
50304
50305         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50306         program_invocation_name and program_invocation_short_name are
50307         present.
50308
50309 2008-02-28  Bruno Haible  <bruno@clisp.org>
50310
50311         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50312         * tests/test-freadptr.sh: Also test non-seekable stdin.
50313
50314 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50315
50316         * build-aux/bootstrap (source_base, m4_base)
50317         (doc_base, tests_base): New variables.
50318         (gnulib_tool_options): Do not hardcode base directories, use
50319         the above variables instead.
50320
50321 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50322
50323         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50324
50325 2008-02-28  Bruno Haible  <bruno@clisp.org>
50326
50327         * modules/freadptr-tests: New file.
50328         * tests/test-freadptr.sh: New file.
50329         * tests/test-freadptr.c: New file.
50330
50331         New module 'freadptr'.
50332         * modules/freadptr: New file.
50333         * lib/freadptr.h: New file.
50334         * lib/freadptr.c: New file.
50335         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50336
50337 2008-02-26  Karl Berry  <karl@freefriends.org>
50338
50339         Sync from Libtool:
50340         * libltdl/argz.c (argz_add, argz_count): New functions.
50341         * libltdl/argz.in.h: Declare them.
50342         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50343
50344 2008-02-22  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50347         is a pointer type.  Needed for HP-UX 10.
50348         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50349         * doc/posix-functions/gmtime_r.texi: Likewise.
50350         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50351
50352 2008-02-24  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/environ-tests: New file.
50355         * tests/test-environ.c: New file.
50356
50357         New module 'environ'.
50358         * modules/environ: New file.
50359         * lib/unistd.in.h (environ): New declaration.
50360         * m4/environ.m4: New file.
50361         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50362         after use.
50363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50364         HAVE_DECL_ENVIRON.
50365         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50366         HAVE_DECL_ENVIRON.
50367         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50368         wrong claim that 'environ' is missing on some systems.
50369         * modules/execute (Depends-on): Add environ.
50370         * lib/execute.c (environ): Remove fallback declaration.
50371         * modules/pipe (Depends-on): Add environ.
50372         * lib/pipe.c (environ): Remove fallback declaration.
50373         * modules/setenv (Depends-on): Add environ.
50374         * lib/setenv.c (environ): Remove fallback declaration.
50375         * modules/unsetenv (Depends-on): Add environ.
50376         * lib/unsetenv.c (environ): Remove fallback declaration.
50377         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50378         m4/environ.m4.
50379         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50380         (gl_PREREQ_UNSETENV): Likewise.
50381
50382 2008-02-24  Bruno Haible  <bruno@clisp.org>
50383
50384         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50385
50386 2008-02-20  Bob Proulx  <bob@proulx.com>
50387
50388         Enable use of older two part flavor 'git describe'.
50389         * build-aux/git-version-gen: If using the older two part flavor of
50390         git version then recreate the third part now present in the
50391         newer three part flavor of git describe.
50392
50393 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50394
50395         * lib/fts.c (fts_build): Typo correction to comment.
50396
50397 2008-02-17  Bruno Haible  <bruno@clisp.org>
50398
50399         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50400         generating no-op conflicts.
50401
50402 2008-02-17  Bruno Haible  <bruno@clisp.org>
50403
50404         Speed up by 10%.
50405         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50406         result_entries, rather than an index-based loop.
50407
50408 2008-02-17  Bruno Haible  <bruno@clisp.org>
50409
50410         Speed up by 25%.
50411         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50412         'hashcode_cached'.
50413         (entry_create): New function.
50414         (entry_hashcode): Use the cached hashcode if possible.
50415         (read_changelog_file, try_split_merged_entry): Use entry_create.
50416
50417 2008-02-17  Bruno Haible  <bruno@clisp.org>
50418
50419         Speed up from O(n^2) to O(n) for long ChangeLog files.
50420         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50421         (read_changelog_file): Change implementation of entries_reversed list
50422         to rbtreehash.
50423         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50424
50425 2008-02-17  Bruno Haible  <bruno@clisp.org>
50426
50427         New option --split-merged-entry.
50428         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50429         (find_paragraph_end, try_split_merged_entry): New functions.
50430         (long_options): Add option --split-merged-entry.
50431         (usage): Document option --split-merged-entry.
50432         (main): Implement option --split-merged-entry.
50433         Reported by Eric Blake.
50434
50435 2008-02-17  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/git-merge-changelog.c: Include c-strstr.h.
50438         (main): Support the "git pull --rebase" situation.
50439         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50440         Reported by Eric Blake.
50441
50442 2008-02-16  Eric Blake  <ebb9@byu.net>
50443
50444         Avoid doubling \ in common case of "c-maybe" quoting style.
50445         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50446         eliding outer quotes.
50447         * lib/quotearg.h: Document this.
50448         * tests/test-quotearg.c (result_strings, inputs, results_g)
50449         (flag_results, locale_results): Test it by adding a new string to
50450         each test group.
50451         (compare_strings): Test new string.
50452
50453 2008-02-13  Eric Blake  <ebb9@byu.net>
50454
50455         Avoid trigraph quoting in default output.
50456         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50457         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50458         unless explicitly requested.
50459         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50460
50461 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50462
50463         Don't rely on signed integer overflowing to negative value.
50464         * lib/getugroups.c (getugroups): Include <limits.h>.
50465         Instead, compare against INT_MAX, and increment only if the test passes.
50466
50467 2008-02-13  Jim Meyering  <meyering@redhat.com>
50468         and Eric Blake  <ebb9@byu.net>
50469
50470         Avoid shadowing warning and compile errors on Linux.
50471         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50472         forwarding macros on Linux.
50473         (dcgettext): Define a stub, for Linux.
50474         (results_g, main): Avoid warnings.
50475
50476 2008-02-12  Eric Blake  <ebb9@byu.net>
50477
50478         Silence warning in last patch.
50479         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50480
50481         Quotearg part 4: add tests, fix c-maybe colon quoting.
50482         * lib/quotearg.h: Improve documentation.
50483         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50484         escapes when adding outer quotes.  When quoting trigraphs, use
50485         valid C notation.  When quoting NUL, omit extra characters if next
50486         character is not digit.  Alter prototype.
50487         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50488         callers.
50489         * modules/quotearg-tests: New module.
50490         * tests/test-quotearg.c: New test.
50491
50492 2008-02-07  Eric Blake  <ebb9@byu.net>
50493
50494         Quotearg part 3: add flag to control outer quote elision.
50495         * lib/quotearg.h (c_maybe_quoting_style): New style.
50496         (enum quoting_flags): Better documentation of flags.
50497         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50498         c-maybe style.
50499         (quotearg_buffer_restyled): Handle new flag to elide outer
50500         quotes.
50501
50502         Quotearg part 2: add flag that can control NUL elision.
50503         * lib/quotearg.h (set_quoting_flags): New prototype.
50504         * lib/quotearg.c (struct quoting_options): Add flag field.
50505         (set_quoting_flags): New function.
50506         (quotearg_buffer_restyled): Add flags parameter.
50507         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50508         (quotearg_n_options): Set the flag, since length cannot be
50509         returned.
50510         (quoting_options_from_style): Default flags correctly.
50511
50512         Quotearg part 1: more wrappers, restore quotearg_char state.
50513         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50514         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50515         (quotearg_colon_mem): New wrappers.
50516         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50517         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50518         functions.
50519         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50520         (quotearg_colon_mem): New functions.
50521
50522 2008-02-11  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50525         library in the current directory: it does not work with parallel make.
50526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50527
50528 2008-02-11  Bruno Haible  <bruno@clisp.org>
50529
50530         * .gitattributes: New file.
50531
50532 2008-02-11  Jim Meyering  <meyering@redhat.com>
50533
50534         useless-if-before-free: Fix reversed exit values.
50535         * build-aux/useless-if-before-free: Use correct values
50536         for EXIT_MATCH and EXIT_NO_MATCH.
50537
50538         * build-aux/useless-if-before-free: Close stdout carefully.
50539
50540 2008-02-10  Bruno Haible  <bruno@clisp.org>
50541
50542         New module 'git-merge-changelog'.
50543         * modules/git-merge-changelog: New file.
50544         * lib/git-merge-changelog.c: New file.
50545
50546 2008-02-10  Jim Meyering  <meyering@redhat.com>
50547
50548         useless-if-before-free: New option: --list (-l).
50549
50550         useless-if-before-free: Don't exit immediately upon open failure.
50551         * build-aux/useless-if-before-free: Exit 2 for errors.
50552         Upon failure to open a file, don't exit immediately.
50553         Rather, just warn and continue with any remaining files.
50554
50555 2008-02-10  Bruno Haible  <bruno@clisp.org>
50556
50557         New abstract list operation 'node_set_value'.
50558         * lib/gl_list.h (gl_list_node_set_value): New function.
50559         (struct gl_list_implementation): New field node_set_value.
50560         * lib/gl_list.c (gl_list_node_set_value): New function.
50561         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50562         (gl_array_list_implementation): Update.
50563         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50564         (gl_carray_list_implementation): Update.
50565         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50566         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50567         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50568         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50569         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50570         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50571         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50572         Update.
50573         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50574         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50575         (gl_sublist_list_implementation): Update.
50576
50577 2008-02-10  Bruno Haible  <bruno@clisp.org>
50578
50579         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50580         Needed when ELEMENT is #defined to 'some_type *'.
50581
50582 2008-02-10  Jim Meyering  <meyering@redhat.com>
50583
50584         New script and module: useless-if-before-free
50585         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50586         * build-aux/useless-if-before-free: New file.
50587         * modules/useless-if-before-free: New file.
50588
50589         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50590
50591         xstrtol_error: Fix typo.
50592         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50593         s/exit_failure/exit_status/.
50594
50595 2008-02-09  Jim Meyering  <meyering@redhat.com>
50596
50597         New script and module: gitlog-to-changelog
50598         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50599         * modules/gitlog-to-changelog: New file.
50600         * build-aux/gitlog-to-changelog: New file.
50601
50602 2008-02-08  Jim Meyering  <meyering@redhat.com>
50603
50604         Avoid two "parameter unused" warnings.
50605         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50606         Mark "st" as used.
50607
50608         Use "git COMMAND", not "git-COMMAND".
50609         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50610         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50611         * build-aux/git-version-gen: Use "git status", not "git-status".
50612
50613 2008-02-07  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50616         Avoids a crash on Windows Vista.
50617         Reported by Adam Strzelecki <ono@java.pl> via
50618         Simon Josefsson <simon@josefsson.org>.
50619
50620 2008-02-06  Bruno Haible  <bruno@clisp.org>
50621
50622         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50623         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50624         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50626         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50628         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50629         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50637         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50638         left-adjust flag.
50639         * tests/test-snprintf-posix.h (test_function): Likewise.
50640         * tests/test-sprintf-posix.h (test_function): Likewise.
50641         * tests/test-vasprintf-posix.c (test_function): Likewise.
50642         * doc/posix-functions/fprintf.texi: Update.
50643         * doc/posix-functions/printf.texi: Update.
50644         * doc/posix-functions/snprintf.texi: Update.
50645         * doc/posix-functions/sprintf.texi: Update.
50646         * doc/posix-functions/vfprintf.texi: Update.
50647         * doc/posix-functions/vprintf.texi: Update.
50648         * doc/posix-functions/vsnprintf.texi: Update.
50649         * doc/posix-functions/vsprintf.texi: Update.
50650         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50651
50652 2008-02-06  Bruno Haible  <bruno@clisp.org>
50653
50654         Fix bug introduced on 2008-01-26.
50655         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50656
50657 2008-02-06  Bruno Haible  <bruno@clisp.org>
50658
50659         Fix bug introduced on 2007-06-10.
50660         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50661         !NEED_PRINTF_FLAG_ZERO.
50662
50663 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50664
50665         getloadavg: use libperfstat on AIX5
50666         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50667
50668 2008-02-03  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/diffseq.h: Add comments about required #includes.
50671         Reported by Michael Biggs <gnulib@doubleplum.net>.
50672
50673 2008-02-01  Bruno Haible  <bruno@clisp.org>
50674
50675         * users.txt: Add gnuit.
50676
50677 2008-01-31  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/md4.c (set_uint32): Mark as inline.
50680         * lib/md5.c (set_uint32): Likewise.
50681         * lib/sha1.c (set_uint32): Likewise.
50682         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50683         * m4/md5.m4 (gl_MD5): Likewise.
50684         * m4/sha1.m4 (gl_SHA1): Likewise.
50685
50686 2008-01-31  Jim Meyering  <meyering@redhat.com>
50687
50688         Use "sizeof VAR", rather than a literal "4".
50689         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50690         * lib/md4.c (md4_read_ctx): Likewise.
50691         * lib/sha1.c (sha1_read_ctx): Likewise.
50692
50693 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50694
50695         * tests/test-sha1.c: New file, based on test-md5.c.
50696
50697         * modules/crypto/sha1-tests: New file.
50698
50699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50700
50701         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50702
50703 2008-01-31  Jim Meyering  <meyering@redhat.com>
50704
50705         Prefer "sizeof v" over the equivalent "4".
50706         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50707         * lib/md5.c (set_uint32): Likewise.
50708         * lib/sha1.c (set_uint32): Likewise.
50709
50710 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50711
50712         * lib/sha1.c (set_uint32): Mark function as static.
50713
50714 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50715
50716         md2: clarify comments to say that alignment is not required.
50717         * lib/md2.h: Remove warning about alignment in comment.
50718         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50719         never been required.
50720
50721 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50722
50723         md4: adapt alignment constraint fix from sha1.
50724         * lib/md4.c (set_uint32): New function, from sha1.c
50725         (md4_read_ctx): Use it.
50726         (md4_finish_ctx): Doc fix.
50727         * lib/md4.h: Doc fix.
50728
50729 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50730
50731         md5: adapt alignment constraint fix from sha1.
50732         * lib/md5.c (set_uint32): New function, from sha1.c
50733         (md5_read_ctx): Use it.
50734         (md5_finish_ctx): Doc fix.
50735         * lib/md5.h: Doc fix.
50736
50737 2008-01-30  Peter Palfrader  <weasel@debian.org>
50738
50739         sha1: remove the result buffer alignment constraint
50740         * lib/sha1.c (set_uint32): New function.
50741         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50742         constraint.
50743         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50744         * lib/sha1.h: Likewise.
50745
50746 2008-01-30  Andreas Schwab  <schwab@suse.de>
50747             Bruno Haible  <bruno@clisp.org>
50748
50749         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50750         correct definition of LDBL_MIN_EXP.
50751
50752 2008-01-30  Karl Berry  <karl@gnu.org>
50753
50754         * config/srclist-update: try to preserve x bit on updates.
50755         * config/srclistvars.sh: update for karl.
50756
50757 2008-01-29  Jim Meyering  <meyering@redhat.com>
50758
50759         vasnprintf.c: Avoid warning about unused label
50760         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50761         "overflow" label definition and associated code with the
50762         same cpp condition that guards the sole use of that label.
50763
50764 2008-01-26  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50767         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50768         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50769         * lib/isnanl-nolibm.h (isnanl): Likewise.
50770         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50771
50772 2008-01-26  Bruno Haible  <bruno@clisp.org>
50773
50774         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50775         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50776
50777 2008-01-26  Bruno Haible  <bruno@clisp.org>
50778
50779         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50780         GCC >= 4.0 built-in.
50781         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50782
50783 2008-01-26  Bruno Haible  <bruno@clisp.org>
50784
50785         Rename isnan, applicable to 'double' only, to isnand.
50786         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50787         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50788         (configure.ac): Update.
50789         (Include): Replace "isnan.h" with "isnand.h".
50790         * m4/isnand.m4: Renamed from m4/isnan.m4.
50791         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50792         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50793         instead of isnan.c.
50794         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50795         instead of HAVE_ISNAN_IN_LIBC.
50796         (isnand): Renamed from isnan.
50797         * lib/isnand.c: New file.
50798         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50799         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50800         (Makefile.am): Update.
50801         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50802         Include isnand.h instead of isnan.h.
50803         (main): Test isnand instead of isnan.
50804         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50805         isnan-nolibm.
50806         * modules/frexp (Depends-on): Likewise.
50807         * modules/frexp-tests (Depends-on): Likewise.
50808         * modules/frexp-nolibm (Depends-on): Likewise.
50809         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50810         * modules/isfinite (Depends-on): Likewise.
50811         * modules/round-tests (Depends-on): Likewise.
50812         * modules/signbit (Depends-on): Likewise.
50813         * modules/signbit-tests (Depends-on): Likewise.
50814         * modules/snprintf-posix (Depends-on): Likewise.
50815         * modules/sprintf-posix (Depends-on): Likewise.
50816         * modules/trunc-tests (Depends-on): Likewise.
50817         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50818         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50819         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50820         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50821         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50822         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50823         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50824         * modules/vasnprintf-posix (Depends-on): Likewise.
50825         * modules/vasprintf-posix (Depends-on): Likewise.
50826         * modules/vfprintf-posix (Depends-on): Likewise.
50827         * modules/vsnprintf-posix (Depends-on): Likewise.
50828         * modules/vsprintf-posix (Depends-on): Likewise.
50829         * lib/frexp.c: Include isnand.h instead of isnan.h.
50830         (ISNAN): Set to isnand instead of isnan.
50831         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50832         (gl_isfinited): Use isnand instead of isnan.
50833         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50834         (gl_signbitd): Use isnand instead of isnan.
50835         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50836         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50837         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50838         (main): Use isnand instead of isnan.
50839         * tests/test-round1.c: Include isnand.h.
50840         (main): Use isnand instead of isnan.
50841         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50842         (ISNAN): Set to isnand instead of isnan.
50843         * tests/test-trunc1.c: Include isnand.h.
50844         (main): Use isnand instead of isnan.
50845         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50846         (equal): Use isnand instead of isnan.
50847         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50848         isnand-nolibm.
50849         * NEWS: Mention the change.
50850
50851 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50852             Bruno Haible  <bruno@clisp.org>
50853
50854         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50855         the GCC builtins for signbits are present and set
50856         REPLACE_SIGNBIT_USING_GCC if so.
50857         * lib/math.in.h (signbit): Define using GCC builtins if
50858         REPLACE_SIGNBIT_USING_GCC is set.
50859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50860         REPLACE_SIGNBIT_USING_GCC.
50861         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50862
50863 2008-01-25  Jim Meyering  <meyering@redhat.com>
50864
50865         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50866         * lib/poll.c: Include <config.h>, not "config.h".
50867         * tests/test-getaddrinfo.c: Likewise.
50868
50869 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50870
50871         * modules/sockets-tests: New file.
50872
50873 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50874
50875         * modules/sockets: New module, can be used to call WSA_Startup and
50876         WSA_Cleanup when needed.
50877
50878         * lib/sockets.h, lib/sockets.c: New files.
50879
50880         * m4/sockets.m4: New file.
50881
50882         * tests/test-sockets.c: New file.
50883
50884 2008-01-19  Bruno Haible  <bruno@clisp.org>
50885
50886         * doc/posix-headers: Renamed from doc/headers.
50887         * doc/posix-functions: Renamed from doc/functions.
50888         * doc/gnulib.texi: Update.
50889
50890 2008-01-19  Bruno Haible  <bruno@clisp.org>
50891
50892         * doc/glibc-functions/strcasestr.texi: Include contents of
50893         doc/functions/strcasestr.texi, fixing the list of platforms.
50894         * doc/functions/strcasestr.texi: Remove file.
50895
50896 2008-01-19  Bruno Haible  <bruno@clisp.org>
50897
50898         * doc/glibc-functions/memmem.texi: Include contents of
50899         doc/functions/memmem.texi.
50900         * doc/functions/memmem.texi: Remove file.
50901
50902 2008-01-18  Bruno Haible  <bruno@clisp.org>
50903
50904         * doc/glibc-functions/*.texi: New files.
50905         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50906         to use the new files.
50907
50908 2008-01-17  Bruno Haible  <bruno@clisp.org>
50909
50910         * tests/test-gethostname.c (main): Fix printf statement.
50911
50912 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50913
50914         * modules/gethostname-tests: New file.
50915
50916         * tests/test-gethostname.c: New file.
50917
50918 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50919
50920         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50921         used by the UNAME case.  Reported by Bruno Haible
50922         <bruno@clisp.org>.
50923
50924 2008-01-17  Eric Blake  <ebb9@byu.net>
50925
50926         Convert c-strcasestr to be more efficient.
50927         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50928         (Depends-on): Add c-strcase, remove malloca, strnlen.
50929         * tests/test-c-strcasestr.c (main): Enhance test.
50930         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50931
50932 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50933
50934         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50935         Use it in creating po/Makevars.
50936
50937 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50938
50939         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50940         Applications that requires it should initialize libgcrypt
50941         manually.
50942
50943 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50944
50945         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50946
50947 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         Fix problem with getdate on mingw32 reported by Simon Josefsson
50950         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50951         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50952         tzname", when deciding whether to declare tzname.
50953         * lib/strftime.c (tzname): Likewise.
50954
50955 2008-01-15  Bruno Haible  <bruno@clisp.org>
50956
50957         Work around a MacOS X 10.5 bug in frexpl().
50958         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50959         * doc/functions/frexpl.texi: Document the bug.
50960         Reported by Elias Pipping <pipping@gentoo.org>.
50961
50962 2008-01-14  Eric Blake  <ebb9@byu.net>
50963
50964         Touch up previous patch.
50965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50966         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50967
50968         Convert strcasestr module to use Two-Way algorithm.
50969         * modules/strcasestr-simple: New module, based on the old
50970         strcasestr, but with Two-Way rather than KMP.
50971         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50972         * lib/string.in.h (rpl_strcasestr): Declare.
50973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50974         performance.
50975         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50976         * modules/string (Makefile.am): Support strcasestr.
50977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50978         * modules/strcasestr-tests (Depends-on): Check for alarm.
50979         * tests/test-strcasestr.c: Augment test.
50980         * lib/str-two-way.h: Clean up stray macro.
50981         * NEWS: Document new module.
50982         * MODULES.html.sh (string handling): Likewise.
50983         * doc/functions/strcasestr.texi: New file.
50984         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50985         here, since it is not a POSIX function.
50986
50987 2008-01-14  Colin Watson  <cjwatson@debian.org>
50988             Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50991         works fine; if not, set REPLACE_STRSIGNAL.
50992         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50994         REPLACE_STRSIGNAL.
50995         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50996         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50997         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50998
50999 2008-01-14  Bruno Haible  <bruno@clisp.org>
51000
51001         * modules/strsignal (Include): Change to <string.h>.
51002
51003 2008-01-14  Colin Watson  <cjwatson@debian.org>
51004
51005         * modules/argp (Notice): Add a notice recommending to change
51006         XGETTEXT_OPTIONS.
51007         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51008
51009 2008-01-13  Colin Watson  <cjwatson@debian.org>
51010
51011         * modules/strsignal-tests: New file.
51012         * tests/test-strsignal.c: New file.
51013
51014         * lib/strsignal.c: New file, from glibc with modifications.
51015         * lib/siglist.h: New file, from glibc with modifications.
51016         * lib/string.in.h (strsignal): New declaration.
51017         * m4/strsignal.m4: New file.
51018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51019         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51020         * modules/strsignal: New file.
51021         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51022         HAVE_DECL_STRSIGNAL.
51023
51024 2008-01-13  Bruno Haible  <bruno@clisp.org>
51025
51026         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51027         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51028         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51029         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51030
51031 2008-01-13  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51034         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51035         * lib/argp.h (__attribute__): Likewise.
51036         * lib/c-stack.c (__attribute__): Likewise.
51037         * lib/error.h (__attribute__): Likewise.
51038         * lib/fts.c (__attribute__): Likewise.
51039         * lib/openat.h (__attribute__): Likewise.
51040         * lib/stdio.in.h (__attribute__): Likewise.
51041         * lib/string.in.h (__attribute__): Likewise.
51042         * lib/utimens.c (__attribute__): Likewise.
51043         * lib/vasnprintf.h (__attribute__): Likewise.
51044         * lib/xalloc.h (__attribute__): Likewise.
51045         * lib/xprintf.h (__attribute__): Likewise.
51046         * lib/xstrtol.h (__attribute__): Likewise.
51047         * lib/xvasprintf.h (__attribute__): Likewise.
51048
51049 2008-01-12  Bruno Haible  <bruno@clisp.org>
51050
51051         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51052         * doc/glibc-headers/a.out.texi: New file.
51053         * doc/glibc-headers/aliases.texi: New file.
51054         * doc/glibc-headers/alloca.texi: New file.
51055         * doc/glibc-headers/ar.texi: New file.
51056         * doc/glibc-headers/argp.texi: New file.
51057         * doc/glibc-headers/argz.texi: New file.
51058         * doc/glibc-headers/byteswap.texi: New file.
51059         * doc/glibc-headers/crypt.texi: New file.
51060         * doc/glibc-headers/endian.texi: New file.
51061         * doc/glibc-headers/envz.texi: New file.
51062         * doc/glibc-headers/err.texi: New file.
51063         * doc/glibc-headers/error.texi: New file.
51064         * doc/glibc-headers/execinfo.texi: New file.
51065         * doc/glibc-headers/fpu_control.texi: New file.
51066         * doc/glibc-headers/fstab.texi: New file.
51067         * doc/glibc-headers/fts.texi: New file.
51068         * doc/glibc-headers/getopt.texi: New file.
51069         * doc/glibc-headers/ieee754.texi: New file.
51070         * doc/glibc-headers/ifaddrs.texi: New file.
51071         * doc/glibc-headers/libintl.texi: New file.
51072         * doc/glibc-headers/mcheck.texi: New file.
51073         * doc/glibc-headers/mntent.texi: New file.
51074         * doc/glibc-headers/obstack.texi: New file.
51075         * doc/glibc-headers/paths.texi: New file.
51076         * doc/glibc-headers/printf.texi: New file.
51077         * doc/glibc-headers/pty.texi: New file.
51078         * doc/glibc-headers/resolv.texi: New file.
51079         * doc/glibc-headers/shadow.texi: New file.
51080         * doc/glibc-headers/sysexits.texi: New file.
51081         * doc/glibc-headers/ttyent.texi: New file.
51082
51083 2008-01-12  Jim Meyering  <meyering@redhat.com>
51084
51085         announce-gen: emit Gnulib's git-based version string.
51086         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51087         New option --gnulib-version=V, where V is expected to be
51088         the output of running git describe in the gnulib directory.
51089         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51090         not useful, and plan to stop publishing an xdelta file with each
51091         coreutils release.
51092
51093         * build-aux/announce-gen: Also check for lzma-compressed files.
51094
51095 2008-01-11  Bruno Haible  <bruno@clisp.org>
51096
51097         * tests/test-memmem.c (main): Increase maximum allowed time.
51098         * tests/test-strstr.c (main): Likewise.
51099
51100 2008-01-11  Bruno Haible  <bruno@clisp.org>
51101
51102         * doc/functions/memmem.texi: Add more precisions about platforms.
51103         * doc/functions/strstr.texi: Likewise.
51104
51105 2008-01-10  Eric Blake  <ebb9@byu.net>
51106
51107         * m4/strstr.m4: Delete cruft from copy-n-paste.
51108         Reported by Bruno Haible.
51109
51110 2008-01-10  Bruno Haible  <bruno@clisp.org>
51111
51112         Make c-strstr rely on strstr.
51113         * lib/c-strstr.c: Don't include str-kmp.h.
51114         (c_strstr): Define in terms of strstr.
51115         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51116         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51117
51118 2008-01-10  Bruno Haible  <bruno@clisp.org>
51119
51120         * doc/gnulib.texi (String Functions in C Locale): New section.
51121         * doc/c-ctype.texi: New file.
51122         * doc/c-strcase.texi: New file.
51123         * doc/c-strcaseeq.texi: New file.
51124         * doc/c-strcasestr.texi: New file.
51125         * doc/c-strstr.texi: New file.
51126         * doc/c-strtod.texi: New file.
51127         * doc/c-strtold.texi: New file.
51128
51129 2008-01-10  Eric Blake  <ebb9@byu.net>
51130
51131         * lib/relocatable.h: Fix a comment.
51132
51133 2008-01-10  Eric Blake  <ebb9@byu.net>
51134
51135         Share two-way algorithm.
51136         * lib/str-two-way.h: New file, merged from...
51137         * lib/memmem.c: ...here...
51138         * lib/strstr.c: ...and here.
51139         * modules/memmem (Files): Use it.
51140         * modules/strstr (Files): Likewise.
51141
51142         Avoid quadratic strstr implementations.
51143         * lib/strstr.c: New file.
51144         * m4/strstr.m4: Likewise.
51145         * modules/strstr: Likewise.
51146         * modules/strstr-tests: Likewise.
51147         * tests/test-strstr.c: Likewise.
51148         * lib/string.in.h (rpl_strstr): Declare.
51149         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51151         * modules/string (Makefile.am): Likewise.
51152         * MODULES.html.sh (string handling): Mention new module.
51153         * doc/functions/strstr.texi (strstr): Document the bug.
51154
51155 2008-01-10  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/relocatable.h (relocate): State whether result is freshly
51158         allocated or not.
51159         * lib/relocatable.c (relocate): Return a freshly allocated string
51160         instead of a pointer to a privately held string.
51161         Reported by Sylvain Beucler <beuc@gnu.org>.
51162
51163 2008-01-10  Colin Watson  <cjwatson@debian.org>
51164
51165         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51166         s/S_ISNLK/S_ISLNK/.
51167
51168 2008-01-09  Bruno Haible  <bruno@clisp.org>
51169
51170         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51171         and other files.
51172         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51173         if it's only a guess.
51174         * modules/memmem: Simplify by depending on memmem-simple.
51175
51176 2008-01-09  Bruno Haible  <bruno@clisp.org>
51177
51178         Work around OpenBSD 4.0 tdelete() bug.
51179         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51180         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51181         macros and don't redefine the enum values.
51182         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51183         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51184         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51185
51186 2008-01-09  Bruno Haible  <bruno@clisp.org>
51187
51188         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51189         (main): Don't perform the tests if setlocale did not install a UTF-8
51190         locale. Needed on OpenBSD 4.0.
51191         * modules/wcwidth-tests (Depends-on): Add localcharset.
51192
51193 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51194
51195         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51196         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51197         * NEWS: announce this.
51198         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51199
51200 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51201         and Eric Blake  <ebb9@byu.net>
51202
51203         Add memmem-simple module.
51204         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51205         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51206         * modules/memmem-simple: New file.
51207         * modules/memmem (Description): Tweak.
51208         * MODULES.html.sh (string handling): Mention new module.
51209         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51210         addressed by memmem-simple.
51211         * NEWS: Document the difference.
51212
51213 2008-01-09  Eric Blake  <ebb9@byu.net>
51214
51215         Give gcc some memmem optimization hints.
51216         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51217         (strcasestr): Declare as pure.
51218         * modules/memmem (Maintainer): Claim my implementation.
51219
51220 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51221
51222         Support AIX 6.1 and higher.
51223         * build-aux/config.libpath: Likewise.
51224         * build-aux/config.rpath: Likewise.
51225
51226 2008-01-08  Jim Meyering  <meyering@redhat.com>
51227             Bruno Haible  <bruno@clisp.org>
51228
51229         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51230         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51231         Reported by Peter Fales in
51232         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51233
51234 2008-01-08  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/unictype/category-of (Depends-on): Add
51237         unictype/category-none.
51238         * modules/unictype/category-and-tests (Depends-on): Add
51239         unictype/category-{L,N,Lu,Nd}.
51240         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51241         * modules/unictype/category-or-tests (Depends-on): Add
51242         unictype/category-{L,N}.
51243         * modules/unictype/category-name-tests (Depends-on): Add
51244         unictype/category-{Z,Nl}.
51245         Reported by Simon Josefsson.
51246
51247 2008-01-08  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51250         convention better.
51251         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51252         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51253         Reported by Peter Miller <millerp@canb.auug.org.au>.
51254
51255 2008-01-08  Eric Blake  <ebb9@byu.net>
51256
51257         Rewrite memmem to guarantee linear complexity without malloc.
51258         * lib/memmem.c (memmem): Use Two-Way rather than
51259         Knuth-Morris-Pratt, to allow O(1) space usage.
51260         (critical_factorization, two_way_short_needle)
51261         (two_way_long_needle): New functions.
51262         (knuth_morris_pratt): Delete.
51263         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51264         Add stdint.
51265         * tests/test-memmem.c (main): Add tests for periodic needle and
51266         sublinear performance.
51267         * doc/functions/memmem.texi (memmem): Document other deficiencies
51268         in cygwin and older glibc.
51269
51270 2008-01-08  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51273         augmentation.
51274
51275 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51276
51277         Add a configure time option: --disable-acl.
51278         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51279         AC_ARG_ENABLE(acl).
51280
51281 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51282
51283         * tests/test-localename.c: Don't include obsolete "setenv.h".
51284
51285         * modules/localename-tests (Depends-on): Need unsetenv.
51286
51287 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51288
51289         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51290
51291 2008-01-06  Colin Watson  <cjwatson@debian.org>
51292
51293         * users.txt: Add man-db.
51294
51295 2008-01-07  Bruno Haible  <bruno@clisp.org>
51296
51297         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51298         previous section name.
51299
51300 2008-01-07  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/progname.c (set_program_name): Don't strip off a leading
51303         "lt-" prefix outside a .libs directory.
51304         Suggested by Paul Eggert.
51305
51306 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51307             Bruno Haible  <bruno@clisp.org>
51308
51309         Improve memory cleanup in 'relocatable' module.
51310         * lib/relocatable.h (compute_curr_prefix): Change return type to
51311         'char *'.
51312         * lib/relocatable.c (compute_curr_prefix): Change return type to
51313         'char *'. Free curr_installdir after use.
51314         (relocate): Free curr_prefix_better after use.
51315         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51316
51317 2008-01-01  Bruno Haible  <bruno@clisp.org>
51318
51319         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51320         failure on older glibc systems.
51321         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51322
51323 2008-01-05  Eric Blake  <ebb9@byu.net>
51324
51325         Avoid quadratic system memmem.
51326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51327         Reported by Ralf Wildenhues.
51328
51329         Fix memmem test for mingw.
51330         * modules/memmem-tests (configure.ac): Check for alarm.
51331         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51332         it.
51333         * doc/functions/memmem.texi: New file.
51334         * doc/gnulib.texi (Function Substitutes): Add memmem.
51335         Reported by Bruno Haible.
51336
51337 2008-01-04  Bruno Haible  <bruno@clisp.org>
51338
51339         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51340         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51341         gl_HEADER_STRING_H_DEFAULTS.
51342
51343 2008-01-04  Eric Blake  <ebb9@byu.net>
51344
51345         Shorten duration of memmem test.
51346         * tests/test-memmem.c (main): Use alarm to declare failure if test
51347         is taking too long.
51348         Reported by Ralf Wildenhues.
51349
51350 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51351
51352         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51353         string, needed by strerror.
51354
51355 2008-01-03  Colin Watson  <cjwatson@debian.org>
51356             Bruno Haible  <bruno@clisp.org>
51357
51358         * doc/gnulib-tool.texi (Localization): New section.
51359
51360 2008-01-02  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51363         variables to 'unsigned char *' type.
51364         Reported by Paul Eggert.
51365
51366 2008-01-02  Jim Meyering  <jim@meyering.net>
51367
51368         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51369
51370 2007-12-31  Jim Meyering  <jim@meyering.net>
51371
51372         Avoid use of private FTS type name.
51373         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51374
51375 2007-12-30  Karl Berry  <karl@gnu.org>
51376
51377         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51378         work around defect in Texinfo and/or the standalone Info browser.
51379
51380 2007-12-30  Bruno Haible  <bruno@clisp.org>
51381
51382         Unify 5 copies of the KMP code.
51383         * lib/str-kmp.h: New file.
51384         * lib/c-strcasestr.c: Include str-kmp.h.
51385         (knuth_morris_pratt): Remove function.
51386         (c_strcasestr): Update.
51387         * lib/c-strstr.c: Include str-kmp.h.
51388         (knuth_morris_pratt): Remove function.
51389         (c_strcasestr): Update.
51390         * lib/mbscasestr.c: Include str-kmp.h.
51391         (knuth_morris_pratt_unibyte): Remove function.
51392         * lib/mbsstr.c: Include str-kmp.h.
51393         (knuth_morris_pratt_unibyte): Remove function.
51394         * lib/strcasestr.c: Include str-kmp.h.
51395         (knuth_morris_pratt): Remove function.
51396         (strcasestr): Update.
51397         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51398         * modules/c-strstr (Files): Likewise.
51399         * modules/mbscasestr (Files): Likewise.
51400         * modules/mbsstr (Files): Likewise.
51401         * modules/strcasestr (Files): Likewise.
51402         Suggested by Paul Eggert.
51403
51404 2007-12-30  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51407         defined.
51408
51409 2007-12-30  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/xmalloca.h: Include xalloc.h.
51412         (xnmalloca): New macro.
51413
51414 2007-12-30  Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/malloca.h (nmalloca): New macro.
51417         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51418         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51419         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51420         knuth_morris_pratt_multibyte): Likewise.
51421         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51422         knuth_morris_pratt_multibyte): Likewise.
51423         * lib/memmem.c (knuth_morris_pratt): Likewise.
51424         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51425
51426 2007-12-25  Bruno Haible  <bruno@clisp.org>
51427
51428         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51429         * lib/glob.c: Don't include openat.h.
51430         (link_exists2_p): Add back the code that deals with the
51431         !GLOB_ALTDIRFUNC case.
51432         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51433         let it do the filename concatenation.
51434         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51435         * modules/glob (Depends-on): Remove openat.
51436
51437 2007-12-31  Bruno Haible  <bruno@clisp.org>
51438
51439         * modules/dirfd (License): Change to LGPLv2+.
51440         Approved by Jim Meyering.
51441
51442 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51443
51444         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51445         when multiplying M by sizeof (size_t).
51446
51447 2007-12-10  Martin Lambers  <marlam@marlam.de>
51448
51449         Override getpagesize on mingw.
51450         * lib/getpagesize.c: New file.
51451         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51452         * modules/getpagesize (Files): Add lib/getpagesize.c.
51453         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51455         REPLACE_GETPAGESIZE.
51456         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51457
51458 2007-12-25  Bruno Haible  <bruno@clisp.org>
51459
51460         * modules/localcharset (Notice): New field.
51461         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51462         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51463
51464 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51465             Bruno Haible  <bruno@clisp.org>
51466
51467         Avoid using the syntax symbol() in formatted documentation.
51468         * MODULES.html.sh (func_module): When replacing symbol() with a
51469         hyperlink, remove the parentheses. Show an error if some remain.
51470         Recognize and render the '...' syntax.
51471         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51472         Rework. Add paragraph about GCC's inlining.
51473         * doc/alloca.texi: Likewise.
51474         * doc/error.texi: Remove parentheses from symbol reference.
51475         * doc/gnulib-intro.texi: Likewise.
51476         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51477         * modules/fnmatch (Description): Reword to say "the ... function".
51478         * modules/full-read (Description): Likewise.
51479         * modules/full-write (Description): Likewise.
51480         * modules/safe-read (Description): Likewise.
51481         * modules/safe-write (Description): Likewise.
51482         * modules/strchrnul (Description): Likewise.
51483         * modules/trim (Description): Likewise.
51484         * modules/error (Description): Remove parentheses from symbol
51485         references.
51486         * modules/verror (Description): Likewise.
51487         Reported by Karl Berry.
51488
51489 2007-12-25  Bruno Haible  <bruno@clisp.org>
51490
51491         Fixup after 2007-10-16 commit.
51492         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51493
51494 2007-12-24  Bruno Haible  <bruno@clisp.org>
51495
51496         Make --enable-relocatable work with DESTDIR.
51497         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51498         to compute installdir from destprog.
51499         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51500         also set the RELOC_DESTDIR variable.
51501         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51502
51503 2007-12-24  Bruno Haible  <bruno@clisp.org>
51504
51505         Fix link error due to xalloc_die().
51506         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51507         of xreadlink.
51508         * lib/relocwrapper.c: Update comments.
51509         * build-aux/install-reloc: Remove xreadlink.c from file list.
51510         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51511         xreadlink.c.
51512         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51513
51514 2007-12-24  Bruno Haible  <bruno@clisp.org>
51515
51516         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51517         * lib/setenv.h: Remove file.
51518         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51519         lib/setenv.h.
51520         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51521         (Depends-on): Add stdlib.
51522         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51523         gl_FUNC_UNSETENV.
51524         (Include): Replace setenv.h with <stdlib.h>.
51525         * modules/unsetenv: New file.
51526         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51527         * lib/unsetenv.c: Include <stdlib.h> first.
51528         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51529         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51530         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51531         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51532         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51533         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51535         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51536         * doc/functions/unsetenv.texi: Update.
51537         * modules/xsetenv (Depends-on): Add unsetenv.
51538         * modules/getdate (Depends-on): Likewise.
51539         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51540         * lib/xsetenv.c: Don't include setenv.h.
51541         * lib/getdate.y: Likewise.
51542         * lib/relocwrapper.c: Likewise.
51543         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51544         (Depends-on): Add stdlib.
51545         * NEWS: Mention the changes.
51546         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51547
51548 2007-12-23  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51551         indentation.
51552
51553 2007-12-23  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/c-strcasestr.c: Add more comments.
51556         * lib/c-strstr.c: Likewise.
51557         * lib/mbscasestr.c: Likewise.
51558         * lib/mbsstr.c: Likewise.
51559         * lib/strcasestr.c: Likewise.
51560         * lib/memmem.c: Likewise.
51561
51562 2007-12-23  Bruno Haible  <bruno@clisp.org>
51563
51564         * tests/test-memmem.c: Include <string.h> first.
51565
51566 2007-12-22  Bruno Haible  <bruno@clisp.org>
51567
51568         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51569         the contents of $testsbase.
51570         Reported by Ralf Wildenhues.
51571
51572 2007-12-22  Bruno Haible  <bruno@clisp.org>
51573
51574         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51575         two variables local_ldadd_before, local_ldadd_last.
51576
51577 2007-12-20  Eric Blake  <ebb9@byu.net>
51578
51579         Work around circular library issue when cross-compiling.
51580         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51581         that progname.o does not need to pull in rpl_memcmp.
51582
51583 2007-12-19  Eric Blake  <ebb9@byu.net>
51584
51585         Fix memmem to avoid O(n^2) worst-case complexity.
51586         * lib/memmem.c (knuth_morris_pratt): New function.
51587         (memmem): Use it if first few naive iterations fail.
51588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51589         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51590         * modules/memchr (License): Likewise.
51591         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51592         malloca.
51593         * tests/test-memmem.c: Rewrite, borrowing ideas from
51594         test-mbsstr1.c; the old version wouldn't even compile!
51595         * modules/memmem-tests: New file.
51596         * lib/string.in.h (rpl_memmem): Add declaration.
51597         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51599         REPLACE_MEMMEM.
51600
51601 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51602
51603         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51604         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51605         before any system include files, and undef after them all.  This
51606         should fix a problem on VMS reported by John E. Malmberg in
51607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51608
51609 2007-12-17  Eric Blake  <ebb9@byu.net>
51610
51611         Revert addition of verify, for BSD/OS.
51612         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51613         can't handle large files, for the sake of obsolete platforms.
51614         * modules/fseeko (Depends-on): Remove verify.
51615         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51616         * doc/functions/ftello.texi (ftello): Likewise.
51617         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51618         Reported by Larry Jones.
51619
51620 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51621
51622         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51623         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51624
51625 2007-12-17  Jim Meyering  <meyering@redhat.com>
51626
51627         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51628         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51629         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51630         * modules/getcwd (Depends-on): Add openat.
51631         Reported by Petr Salinger.
51632
51633 2007-12-17  Bruno Haible  <bruno@clisp.org>
51634
51635         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51636         avoid a segmentation fault of the configure test on x86_64 systems.
51637
51638 2007-12-15  Jim Meyering  <meyering@redhat.com>
51639
51640         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51641
51642 2007-12-13  Eric Blake  <ebb9@byu.net>
51643
51644         Another fseek test.
51645         * tests/test-fseek.c (main): Also test ungetc handling.
51646         * tests/test-fseeko.c (main): Likewise.
51647         * modules/fseeko (Depends-on): Add verify.
51648         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51649         large.
51650         Reported by Larry Jones.
51651
51652         Fix fseeko on mingw.
51653         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51654         seek.
51655
51656         Beef up fseek tests.
51657         * tests/test-fseek.c (main): Also test eof handling.
51658         * tests/test-fseeko.c (main): Likewise.
51659         Reported by Larry Jones.
51660
51661 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51662
51663         Fix fseeko on BSD-based platforms.
51664         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51665         successful seek.
51666
51667 2007-12-12  Eric Blake  <ebb9@byu.net>
51668
51669         Allow circular dependency of separate libtests.a
51670         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51671         when use_libtests.
51672
51673 2007-12-11  Eric Blake  <ebb9@byu.net>
51674
51675         Fix bug with -0.0L in previous patch.
51676         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51677         * tests/test-isnan.c (main): Also test on zeroes.
51678         * tests/test-isnanf.c (main): Likewise.
51679         * tests/test-isnanl.h (main): Likewise.
51680
51681         Detect pseudo-denormals on x86 even when cross-compiling.
51682         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51683         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51684         invalid bit patterns that happen to satisfy ==.
51685
51686         Avoid link failures with separate libtests.a.
51687         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51688         last, to satisfy circular dependencies.
51689
51690 2007-12-11  Eric Blake  <ebb9@byu.net>
51691         and Bruno Haible  <bruno@clisp.org>
51692
51693         Fix OpenBSD 4.0 <float.h> handling of long double.
51694         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51695         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51696         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51697
51698 2007-12-11  Jim Meyering  <meyering@redhat.com>
51699
51700         * users.txt: Add libvirt.
51701
51702         Support versions of autoconf prior to 2.59c.
51703         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51704         if it is not already defined.
51705
51706 2007-12-09  Bruno Haible  <bruno@clisp.org>
51707
51708         Let 'gnulib-tool --import' collect sources needed for the tests in
51709         tests/ rather than in lib/.
51710         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51711         argument. If true, add rules to generate libtests.a, and put libtests.a
51712         into $(LDADD). Consider source files in subdirectories and set
51713         uses_subdirs.
51714         (func_emit_initmacro_start, func_emit_initmacro_end,
51715         func_emit_initmacro_done): Pass all arguments explicitly.
51716         (func_import): Determine two module lists main_modules,
51717         testsrelated_modules. Determine use_libtests. Determine two variables
51718         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51719         instead of just sed_transform_lib_file. Determine two variables
51720         main_files and testsrelated_files. Compute 'files' as the union of
51721         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51722         func_add_or_update. In the generated gnulib-comp.m4, collect the
51723         object files for tests/ in different variables than those for lib/.
51724         Substitute LIBTESTS_LIBDEPS.
51725         (func_create_testdir): Combine the uses_subdirs results from
51726         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51727
51728 2007-12-09  Bruno Haible  <bruno@clisp.org>
51729
51730         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51731         the build-aux directory.
51732
51733 2007-12-09  Bruno Haible  <bruno@clisp.org>
51734
51735         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51736         introduced on 2006-09-09.
51737
51738 2007-12-07  Jim Meyering  <meyering@redhat.com>
51739
51740         Let these macros work also with autoconf-2.59.
51741         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51742         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51744
51745 2007-12-06  Jim Meyering  <meyering@redhat.com>
51746
51747         Avoid a configure-time syntax error in gl_FUNC_ACL.
51748         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51749         function in each branch, before testing the cache variable.
51750
51751 2007-12-04  Eric Blake  <ebb9@byu.net>
51752
51753         Make scripts executable.
51754         * build-aux/config.guess: Add execute permissions.
51755         * build-aux/config.sub: Likewise.
51756         * build-aux/gendocs.sh: Likewise.
51757
51758         Fix frexp on mingw.
51759         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51760         cross-compiling.
51761         * doc/functions/frexp.texi (frexp): Document the bug.
51762
51763         Make cygwin fseeko check more reliable.
51764         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51765         version numbers, rather than unrelated feature check.
51766         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51767         * doc/functions/ftello.texi (ftello): Likewise.
51768         Reported by Bruno Haible.
51769
51770         * m4/strerror.m4: Bump version number.
51771
51772 2007-12-03  Bruno Haible  <bruno@clisp.org>
51773
51774         * doc/functions/mprotect.texi: Mention the mingw problem.
51775
51776 2007-12-03  Eric Blake  <ebb9@byu.net>
51777
51778         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51779         REPLACE_STRERROR is initialized before this macro.
51780
51781 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51784         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51785         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51786         put -lsec in even for programs other than 'ls'.  This fixes a problem
51787         for gettext reported by Bruno Haible in
51788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51789         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51790         Add support for Solaris 10.  This isn't efficient, but should get the
51791         job done for now.
51792
51793 2007-12-03  James Youngman  <jay@gnu.org>
51794
51795         * doc/regexprops-generic.texi: change "an close-group" to "a
51796         close-group" and "illegal" to "not allowed".
51797
51798 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51799
51800         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51801         pr_byname.h. Needed for the rare case when the maintainer has done
51802         "make maintainer-clean" in the source directory and then attempts a
51803         build outside the source directory.
51804         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51805         scripts_byname.h.
51806
51807 2007-12-02  Martin Lambers <marlam@marlam.de>
51808             Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/getpagesize.h: Remove file.
51811         * lib/unistd.in.h: Include declaration of getpagesize here.
51812         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51813         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51814         HAVE_SYS_PARAM_H.
51815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51816         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51817         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51818         (Depends-on): Add unistd.
51819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51820         (Include): Use <unistd.h> instead of getpagesize.h.
51821         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51822         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51823         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51824         gl_GETPAGESIZE invocation, already handled by module dependency.
51825         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51826
51827 2007-12-02  Bruno Haible  <bruno@clisp.org>
51828
51829         * modules/strings-tests: New file.
51830         * tests/test-strings.c: New file.
51831
51832         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51833         * lib/strings.in.h: New file.
51834         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51835         * m4/strings_h.m4: New file.
51836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51837         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51838         * modules/strings: New file.
51839         * modules/string (Makefile.am): Update.
51840         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51841         Reported by Karl Berry.
51842
51843 2007-12-01  Eric Blake  <ebb9@byu.net>
51844
51845         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51846         accomodate fix in cygwin 1.5.25.
51847
51848 2007-12-01  Jim Meyering  <meyering@redhat.com>
51849
51850         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51851         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51852         that would inhibit utf8-optimization of a regexp containing line-
51853         or buffer-anchors, e.g., `^', `$'.
51854
51855 2007-11-30  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51858         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51859         glthread_recursive_lock_init.
51860         * lib/lock.c (glthread_recursive_lock_init)
51861         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51862         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51863
51864 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         New function qset_acl, like set_acl but with syscall semantics.
51867         * lib/acl.h (qset_acl): New decl.
51868         * lib/acl.c (qset_acl): New function.
51869         (set_acl): Use new function.  Use more-consistent diagnostics.
51870
51871 2007-11-28  Jim Meyering  <meyering@redhat.com>
51872
51873         * modules/physmem (License): Change from GPL to LGPLv2+.
51874
51875 2007-11-26  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51878         'long double' type has excess precision.
51879         Reported by Jim Meyering in
51880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51881
51882 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51883
51884         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51885         Sync from <http://gnu.org/licenses>.
51886         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51887         with license text from same location.
51888         * doc/maintain.texi, doc/standards.texi:  Sync from
51889         <http://savannah.gnu.org/projects/gnustandards>.
51890
51891 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51892         and Jim Meyering  <meyering@redhat.com>
51893
51894         Adjust getdate' grammar to accept a slightly more regular language.
51895         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51896         Before, the former was rejected.
51897         * lib/getdate.y (digits_to_date_time): New function, factored
51898         out of ...
51899         (number): ...here.  Just call digits_to_date_time.
51900         (hybrid): New non-terminal to handle an <unsigned number,
51901         signed relative offset> sequence consistently.
51902
51903 2007-11-18  Jim Meyering  <meyering@redhat.com>
51904
51905         Pull my changes from coreutils:
51906         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51907         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51908         use of $gnulib_tool_option_extras, so that it's separated from the
51909         preceding argument.
51910
51911         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51912         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51913         parent destination directories before copying a file into place.
51914
51915 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51916
51917         bootstrap: work also with 4-argument variant of AC_INIT
51918         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51919
51920 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         Port test-getaddrinfo to Solaris.
51923         Problem reported by Bruno Haible in
51924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51925         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51926         explanation of setting 'hints'.
51927         Don't reject an implementation merely because it returns EAI_SERVICE.
51928         (EAI_SERVICE): Define to 0 if not defined.
51929
51930 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         The license of gnu-make and posix-shell is now "GPLed build tool".
51933         * modules/gnu-make (License): Likewise.
51934         * modules/posix-shell (License): Likewise.
51935
51936         New module posix-shell, for determining a POSIX shell
51937         or perhaps something that is close enough to a POSIX shell.
51938         * m4/posix-shell.m4: New file.
51939         * modules/posix-shell: New file.
51940
51941         * MODULES.html.sh: Mention new module.
51942
51943         New module gnu-make, for determining whether we're using GNU Make.
51944         * m4/gnu-make.m4: New file.
51945         * modules/gnu-make: New file.
51946         * MODULES.html.sh: Mention new module.
51947
51948 2007-11-14  Jim Meyering  <meyering@redhat.com>
51949
51950         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51951         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51952         use this macro to create a function _definition_.
51953         Remove useless "#undef ARGMATCH_DIE".
51954
51955 2007-11-14  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/config.charset: Update for OpenBSD 4.1.
51958         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51959
51960 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51961
51962         Document 64-bit #if problems in stdint.texi.
51963         * doc/headers/stdint.texi (stdint.h): Mention problems with
51964         64-bit-#if, and how to work around them.
51965
51966         Don't insist on 'long long int' support in the preprocessor.  It
51967         breaks too many things.  For example, PRIdMAX still uses a 'long
51968         long int' format with the latest Sun compiler, even though
51969         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51970         preprocessor problem.  This causes the latest coreutils to dump
51971         core on Solaris 10 sparc with the Sun C compiler.
51972         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51973         the troublesome expressions at configure-time, not at #if-time.
51974         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51975         preprocessor.
51976         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51977         compile-time C checks, done at 'configure'-time.
51978         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51979         * modules/inttypes (Makefile): Substitute the new symbols that
51980         gl_INTTYPES_H now generates.
51981         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51982
51983 2007-11-12  Bruno Haible  <bruno@clisp.org>
51984
51985         Tests for Unicode character classification functions.
51986
51987         * modules/unictype/bidicategory-byname-tests: New file.
51988         * modules/unictype/bidicategory-name-tests: New file.
51989         * modules/unictype/bidicategory-of-tests: New file.
51990         * modules/unictype/bidicategory-test-tests: New file.
51991         * modules/unictype/block-list-tests: New file.
51992         * modules/unictype/block-of-tests: New file.
51993         * modules/unictype/block-test-tests: New file.
51994         * modules/unictype/category-C-tests: New file.
51995         * modules/unictype/category-Cc-tests: New file.
51996         * modules/unictype/category-Cf-tests: New file.
51997         * modules/unictype/category-Cn-tests: New file.
51998         * modules/unictype/category-Co-tests: New file.
51999         * modules/unictype/category-Cs-tests: New file.
52000         * modules/unictype/category-L-tests: New file.
52001         * modules/unictype/category-Ll-tests: New file.
52002         * modules/unictype/category-Lm-tests: New file.
52003         * modules/unictype/category-Lo-tests: New file.
52004         * modules/unictype/category-Lt-tests: New file.
52005         * modules/unictype/category-Lu-tests: New file.
52006         * modules/unictype/category-M-tests: New file.
52007         * modules/unictype/category-Mc-tests: New file.
52008         * modules/unictype/category-Me-tests: New file.
52009         * modules/unictype/category-Mn-tests: New file.
52010         * modules/unictype/category-N-tests: New file.
52011         * modules/unictype/category-Nd-tests: New file.
52012         * modules/unictype/category-Nl-tests: New file.
52013         * modules/unictype/category-No-tests: New file.
52014         * modules/unictype/category-P-tests: New file.
52015         * modules/unictype/category-Pc-tests: New file.
52016         * modules/unictype/category-Pd-tests: New file.
52017         * modules/unictype/category-Pe-tests: New file.
52018         * modules/unictype/category-Pf-tests: New file.
52019         * modules/unictype/category-Pi-tests: New file.
52020         * modules/unictype/category-Po-tests: New file.
52021         * modules/unictype/category-Ps-tests: New file.
52022         * modules/unictype/category-S-tests: New file.
52023         * modules/unictype/category-Sc-tests: New file.
52024         * modules/unictype/category-Sk-tests: New file.
52025         * modules/unictype/category-Sm-tests: New file.
52026         * modules/unictype/category-So-tests: New file.
52027         * modules/unictype/category-Z-tests: New file.
52028         * modules/unictype/category-Zl-tests: New file.
52029         * modules/unictype/category-Zp-tests: New file.
52030         * modules/unictype/category-Zs-tests: New file.
52031         * modules/unictype/category-and-not-tests: New file.
52032         * modules/unictype/category-and-tests: New file.
52033         * modules/unictype/category-byname-tests: New file.
52034         * modules/unictype/category-name-tests: New file.
52035         * modules/unictype/category-none-tests: New file.
52036         * modules/unictype/category-of-tests: New file.
52037         * modules/unictype/category-or-tests: New file.
52038         * modules/unictype/category-test-withtable-tests: New file.
52039         * modules/unictype/combining-class-tests: New file.
52040         * modules/unictype/ctype-alnum-tests: New file.
52041         * modules/unictype/ctype-alpha-tests: New file.
52042         * modules/unictype/ctype-blank-tests: New file.
52043         * modules/unictype/ctype-cntrl-tests: New file.
52044         * modules/unictype/ctype-digit-tests: New file.
52045         * modules/unictype/ctype-graph-tests: New file.
52046         * modules/unictype/ctype-lower-tests: New file.
52047         * modules/unictype/ctype-print-tests: New file.
52048         * modules/unictype/ctype-punct-tests: New file.
52049         * modules/unictype/ctype-space-tests: New file.
52050         * modules/unictype/ctype-upper-tests: New file.
52051         * modules/unictype/ctype-xdigit-tests: New file.
52052         * modules/unictype/decimal-digit-tests: New file.
52053         * modules/unictype/digit-tests: New file.
52054         * modules/unictype/mirror-tests: New file.
52055         * modules/unictype/numeric-tests: New file.
52056         * modules/unictype/property-alphabetic-tests: New file.
52057         * modules/unictype/property-ascii-hex-digit-tests: New file.
52058         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52059         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52060         * modules/unictype/property-bidi-block-separator-tests: New file.
52061         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52062         * modules/unictype/property-bidi-common-separator-tests: New file.
52063         * modules/unictype/property-bidi-control-tests: New file.
52064         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52065         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52066         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52067         * modules/unictype/property-bidi-european-digit-tests: New file.
52068         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52069         * modules/unictype/property-bidi-left-to-right-tests: New file.
52070         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52071         * modules/unictype/property-bidi-other-neutral-tests: New file.
52072         * modules/unictype/property-bidi-pdf-tests: New file.
52073         * modules/unictype/property-bidi-segment-separator-tests: New file.
52074         * modules/unictype/property-bidi-whitespace-tests: New file.
52075         * modules/unictype/property-byname-tests: New file.
52076         * modules/unictype/property-combining-tests: New file.
52077         * modules/unictype/property-composite-tests: New file.
52078         * modules/unictype/property-currency-symbol-tests: New file.
52079         * modules/unictype/property-dash-tests: New file.
52080         * modules/unictype/property-decimal-digit-tests: New file.
52081         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52082         * modules/unictype/property-deprecated-tests: New file.
52083         * modules/unictype/property-diacritic-tests: New file.
52084         * modules/unictype/property-extender-tests: New file.
52085         * modules/unictype/property-format-control-tests: New file.
52086         * modules/unictype/property-grapheme-base-tests: New file.
52087         * modules/unictype/property-grapheme-extend-tests: New file.
52088         * modules/unictype/property-grapheme-link-tests: New file.
52089         * modules/unictype/property-hex-digit-tests: New file.
52090         * modules/unictype/property-hyphen-tests: New file.
52091         * modules/unictype/property-id-continue-tests: New file.
52092         * modules/unictype/property-id-start-tests: New file.
52093         * modules/unictype/property-ideographic-tests: New file.
52094         * modules/unictype/property-ids-binary-operator-tests: New file.
52095         * modules/unictype/property-ids-trinary-operator-tests: New file.
52096         * modules/unictype/property-ignorable-control-tests: New file.
52097         * modules/unictype/property-iso-control-tests: New file.
52098         * modules/unictype/property-join-control-tests: New file.
52099         * modules/unictype/property-left-of-pair-tests: New file.
52100         * modules/unictype/property-line-separator-tests: New file.
52101         * modules/unictype/property-logical-order-exception-tests: New file.
52102         * modules/unictype/property-lowercase-tests: New file.
52103         * modules/unictype/property-math-tests: New file.
52104         * modules/unictype/property-non-break-tests: New file.
52105         * modules/unictype/property-not-a-character-tests: New file.
52106         * modules/unictype/property-numeric-tests: New file.
52107         * modules/unictype/property-other-alphabetic-tests: New file.
52108         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52109         * modules/unictype/property-other-grapheme-extend-tests: New file.
52110         * modules/unictype/property-other-id-continue-tests: New file.
52111         * modules/unictype/property-other-id-start-tests: New file.
52112         * modules/unictype/property-other-lowercase-tests: New file.
52113         * modules/unictype/property-other-math-tests: New file.
52114         * modules/unictype/property-other-uppercase-tests: New file.
52115         * modules/unictype/property-paired-punctuation-tests: New file.
52116         * modules/unictype/property-paragraph-separator-tests: New file.
52117         * modules/unictype/property-pattern-syntax-tests: New file.
52118         * modules/unictype/property-pattern-white-space-tests: New file.
52119         * modules/unictype/property-private-use-tests: New file.
52120         * modules/unictype/property-punctuation-tests: New file.
52121         * modules/unictype/property-quotation-mark-tests: New file.
52122         * modules/unictype/property-radical-tests: New file.
52123         * modules/unictype/property-sentence-terminal-tests: New file.
52124         * modules/unictype/property-soft-dotted-tests: New file.
52125         * modules/unictype/property-space-tests: New file.
52126         * modules/unictype/property-terminal-punctuation-tests: New file.
52127         * modules/unictype/property-test-tests: New file.
52128         * modules/unictype/property-titlecase-tests: New file.
52129         * modules/unictype/property-unassigned-code-value-tests: New file.
52130         * modules/unictype/property-unified-ideograph-tests: New file.
52131         * modules/unictype/property-uppercase-tests: New file.
52132         * modules/unictype/property-variation-selector-tests: New file.
52133         * modules/unictype/property-white-space-tests: New file.
52134         * modules/unictype/property-xid-continue-tests: New file.
52135         * modules/unictype/property-xid-start-tests: New file.
52136         * modules/unictype/property-zero-width-tests: New file.
52137         * modules/unictype/scripts-tests: New file.
52138         * modules/unictype/syntax-c-ident-tests: New file.
52139         * modules/unictype/syntax-c-whitespace-tests: New file.
52140         * modules/unictype/syntax-java-ident-tests: New file.
52141         * modules/unictype/syntax-java-whitespace-tests: New file.
52142         * tests/unictype/test-bidi_byname.c: New file.
52143         * tests/unictype/test-bidi_name.c: New file.
52144         * tests/unictype/test-bidi_of.c: New file.
52145         * tests/unictype/test-bidi_test.c: New file.
52146         * tests/unictype/test-block_list.c: New file.
52147         * tests/unictype/test-block_of.c: New file.
52148         * tests/unictype/test-block_test.c: New file.
52149         * tests/unictype/test-categ_and.c: New file.
52150         * tests/unictype/test-categ_and_not.c: New file.
52151         * tests/unictype/test-categ_byname.c: New file.
52152         * tests/unictype/test-categ_name.c: New file.
52153         * tests/unictype/test-categ_none.c: New file.
52154         * tests/unictype/test-categ_of.c: New file.
52155         * tests/unictype/test-categ_or.c: New file.
52156         * tests/unictype/test-categ_test_withtable.c: New file.
52157         * tests/unictype/test-combining.c: New file.
52158         * tests/unictype/test-decdigit.c: New file.
52159         * tests/unictype/test-digit.c: New file.
52160         * tests/unictype/test-mirror.c: New file.
52161         * tests/unictype/test-numeric.c: New file.
52162         * tests/unictype/test-pr_byname.c: New file.
52163         * tests/unictype/test-pr_test.c: New file.
52164         * tests/unictype/test-predicate-part1.h: New file.
52165         * tests/unictype/test-predicate-part2.h: New file.
52166         * tests/unictype/test-scripts.c: New file.
52167         * tests/unictype/test-sy_c_ident.c: New file.
52168         * tests/unictype/test-sy_java_ident.c: New file.
52169
52170         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52171         for Unicode 5.0.0.
52172         * tests/unictype/test-categ_Cc.c: Likewise.
52173         * tests/unictype/test-categ_Cf.c: Likewise.
52174         * tests/unictype/test-categ_Cn.c: Likewise.
52175         * tests/unictype/test-categ_Co.c: Likewise.
52176         * tests/unictype/test-categ_Cs.c: Likewise.
52177         * tests/unictype/test-categ_L.c: Likewise.
52178         * tests/unictype/test-categ_Ll.c: Likewise.
52179         * tests/unictype/test-categ_Lm.c: Likewise.
52180         * tests/unictype/test-categ_Lo.c: Likewise.
52181         * tests/unictype/test-categ_Lt.c: Likewise.
52182         * tests/unictype/test-categ_Lu.c: Likewise.
52183         * tests/unictype/test-categ_M.c: Likewise.
52184         * tests/unictype/test-categ_Mc.c: Likewise.
52185         * tests/unictype/test-categ_Me.c: Likewise.
52186         * tests/unictype/test-categ_Mn.c: Likewise.
52187         * tests/unictype/test-categ_N.c: Likewise.
52188         * tests/unictype/test-categ_Nd.c: Likewise.
52189         * tests/unictype/test-categ_Nl.c: Likewise.
52190         * tests/unictype/test-categ_No.c: Likewise.
52191         * tests/unictype/test-categ_P.c: Likewise.
52192         * tests/unictype/test-categ_Pc.c: Likewise.
52193         * tests/unictype/test-categ_Pd.c: Likewise.
52194         * tests/unictype/test-categ_Pe.c: Likewise.
52195         * tests/unictype/test-categ_Pf.c: Likewise.
52196         * tests/unictype/test-categ_Pi.c: Likewise.
52197         * tests/unictype/test-categ_Po.c: Likewise.
52198         * tests/unictype/test-categ_Ps.c: Likewise.
52199         * tests/unictype/test-categ_S.c: Likewise.
52200         * tests/unictype/test-categ_Sc.c: Likewise.
52201         * tests/unictype/test-categ_Sk.c: Likewise.
52202         * tests/unictype/test-categ_Sm.c: Likewise.
52203         * tests/unictype/test-categ_So.c: Likewise.
52204         * tests/unictype/test-categ_Z.c: Likewise.
52205         * tests/unictype/test-categ_Zl.c: Likewise.
52206         * tests/unictype/test-categ_Zp.c: Likewise.
52207         * tests/unictype/test-categ_Zs.c: Likewise.
52208         * tests/unictype/test-ctype_alnum.c: Likewise.
52209         * tests/unictype/test-ctype_alpha.c: Likewise.
52210         * tests/unictype/test-ctype_blank.c: Likewise.
52211         * tests/unictype/test-ctype_cntrl.c: Likewise.
52212         * tests/unictype/test-ctype_digit.c: Likewise.
52213         * tests/unictype/test-ctype_graph.c: Likewise.
52214         * tests/unictype/test-ctype_lower.c: Likewise.
52215         * tests/unictype/test-ctype_print.c: Likewise.
52216         * tests/unictype/test-ctype_punct.c: Likewise.
52217         * tests/unictype/test-ctype_space.c: Likewise.
52218         * tests/unictype/test-ctype_upper.c: Likewise.
52219         * tests/unictype/test-ctype_xdigit.c: Likewise.
52220         * tests/unictype/test-decdigit.h: Likewise.
52221         * tests/unictype/test-digit.h: Likewise.
52222         * tests/unictype/test-numeric.h: Likewise.
52223         * tests/unictype/test-pr_alphabetic.c: Likewise.
52224         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52225         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52226         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52227         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52228         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52229         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52230         * tests/unictype/test-pr_bidi_control.c: Likewise.
52231         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52232         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52233         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52234         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52235         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52236         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52237         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52238         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52239         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52240         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52241         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52242         * tests/unictype/test-pr_combining.c: Likewise.
52243         * tests/unictype/test-pr_composite.c: Likewise.
52244         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52245         * tests/unictype/test-pr_dash.c: Likewise.
52246         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52247         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52248         * tests/unictype/test-pr_deprecated.c: Likewise.
52249         * tests/unictype/test-pr_diacritic.c: Likewise.
52250         * tests/unictype/test-pr_extender.c: Likewise.
52251         * tests/unictype/test-pr_format_control.c: Likewise.
52252         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52253         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52254         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52255         * tests/unictype/test-pr_hex_digit.c: Likewise.
52256         * tests/unictype/test-pr_hyphen.c: Likewise.
52257         * tests/unictype/test-pr_id_continue.c: Likewise.
52258         * tests/unictype/test-pr_id_start.c: Likewise.
52259         * tests/unictype/test-pr_ideographic.c: Likewise.
52260         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52261         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52262         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52263         * tests/unictype/test-pr_iso_control.c: Likewise.
52264         * tests/unictype/test-pr_join_control.c: Likewise.
52265         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52266         * tests/unictype/test-pr_line_separator.c: Likewise.
52267         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52268         * tests/unictype/test-pr_lowercase.c: Likewise.
52269         * tests/unictype/test-pr_math.c: Likewise.
52270         * tests/unictype/test-pr_non_break.c: Likewise.
52271         * tests/unictype/test-pr_not_a_character.c: Likewise.
52272         * tests/unictype/test-pr_numeric.c: Likewise.
52273         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52274         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52275         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52276         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52277         * tests/unictype/test-pr_other_id_start.c: Likewise.
52278         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52279         * tests/unictype/test-pr_other_math.c: Likewise.
52280         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52281         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52282         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52283         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52284         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52285         * tests/unictype/test-pr_private_use.c: Likewise.
52286         * tests/unictype/test-pr_punctuation.c: Likewise.
52287         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52288         * tests/unictype/test-pr_radical.c: Likewise.
52289         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52290         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52291         * tests/unictype/test-pr_space.c: Likewise.
52292         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52293         * tests/unictype/test-pr_titlecase.c: Likewise.
52294         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52295         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52296         * tests/unictype/test-pr_uppercase.c: Likewise.
52297         * tests/unictype/test-pr_variation_selector.c: Likewise.
52298         * tests/unictype/test-pr_white_space.c: Likewise.
52299         * tests/unictype/test-pr_xid_continue.c: Likewise.
52300         * tests/unictype/test-pr_xid_start.c: Likewise.
52301         * tests/unictype/test-pr_zero_width.c: Likewise.
52302         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52303         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52304
52305 2007-11-12  Bruno Haible  <bruno@clisp.org>
52306
52307         Unicode character classification functions.
52308         * lib/unictype.h: New file.
52309         * modules/unictype/base: New file.
52310         * modules/unictype/category-L: New file.
52311         * modules/unictype/category-Lu: New file.
52312         * modules/unictype/category-Ll: New file.
52313         * modules/unictype/category-Lt: New file.
52314         * modules/unictype/category-Lm: New file.
52315         * modules/unictype/category-Lo: New file.
52316         * modules/unictype/category-M: New file.
52317         * modules/unictype/category-Mn: New file.
52318         * modules/unictype/category-Mc: New file.
52319         * modules/unictype/category-Me: New file.
52320         * modules/unictype/category-N: New file.
52321         * modules/unictype/category-Nd: New file.
52322         * modules/unictype/category-Nl: New file.
52323         * modules/unictype/category-No: New file.
52324         * modules/unictype/category-P: New file.
52325         * modules/unictype/category-Pc: New file.
52326         * modules/unictype/category-Pd: New file.
52327         * modules/unictype/category-Ps: New file.
52328         * modules/unictype/category-Pe: New file.
52329         * modules/unictype/category-Pi: New file.
52330         * modules/unictype/category-Pf: New file.
52331         * modules/unictype/category-Po: New file.
52332         * modules/unictype/category-S: New file.
52333         * modules/unictype/category-Sm: New file.
52334         * modules/unictype/category-Sc: New file.
52335         * modules/unictype/category-Sk: New file.
52336         * modules/unictype/category-So: New file.
52337         * modules/unictype/category-Z: New file.
52338         * modules/unictype/category-Zs: New file.
52339         * modules/unictype/category-Zl: New file.
52340         * modules/unictype/category-Zp: New file.
52341         * modules/unictype/category-C: New file.
52342         * modules/unictype/category-Cc: New file.
52343         * modules/unictype/category-Cf: New file.
52344         * modules/unictype/category-Cs: New file.
52345         * modules/unictype/category-Co: New file.
52346         * modules/unictype/category-Cn: New file.
52347         * modules/unictype/category-or: New file.
52348         * modules/unictype/category-of: New file.
52349         * modules/unictype/category-test: New file.
52350         * modules/unictype/category-test-withtable: New file.
52351         * modules/unictype/category-byname: New file.
52352         * modules/unictype/category-none: New file.
52353         * modules/unictype/category-and: New file.
52354         * modules/unictype/category-and-not: New file.
52355         * modules/unictype/category-name: New file.
52356         * modules/unictype/combining-class: New file.
52357         * modules/unictype/category-all: New file.
52358         * modules/unictype/bidicategory-all: New file.
52359         * modules/unictype/bidicategory-byname: New file.
52360         * modules/unictype/bidicategory-name: New file.
52361         * modules/unictype/bidicategory-of: New file.
52362         * modules/unictype/bidicategory-test: New file.
52363         * modules/unictype/decimal-digit: New file.
52364         * modules/unictype/digit: New file.
52365         * modules/unictype/numeric: New file.
52366         * modules/unictype/mirror: New file.
52367         * modules/unictype/property-white-space: New file.
52368         * modules/unictype/property-alphabetic: New file.
52369         * modules/unictype/property-other-alphabetic: New file.
52370         * modules/unictype/property-not-a-character: New file.
52371         * modules/unictype/property-default-ignorable-code-point: New file.
52372         * modules/unictype/property-other-default-ignorable-code-point: New
52373         file.
52374         * modules/unictype/property-deprecated: New file.
52375         * modules/unictype/property-logical-order-exception: New file.
52376         * modules/unictype/property-variation-selector: New file.
52377         * modules/unictype/property-private-use: New file.
52378         * modules/unictype/property-unassigned-code-value: New file.
52379         * modules/unictype/property-uppercase: New file.
52380         * modules/unictype/property-other-uppercase: New file.
52381         * modules/unictype/property-lowercase: New file.
52382         * modules/unictype/property-other-lowercase: New file.
52383         * modules/unictype/property-titlecase: New file.
52384         * modules/unictype/property-soft-dotted: New file.
52385         * modules/unictype/property-id-start: New file.
52386         * modules/unictype/property-other-id-start: New file.
52387         * modules/unictype/property-id-continue: New file.
52388         * modules/unictype/property-other-id-continue: New file.
52389         * modules/unictype/property-xid-start: New file.
52390         * modules/unictype/property-xid-continue: New file.
52391         * modules/unictype/property-pattern-white-space: New file.
52392         * modules/unictype/property-pattern-syntax: New file.
52393         * modules/unictype/property-join-control: New file.
52394         * modules/unictype/property-grapheme-base: New file.
52395         * modules/unictype/property-grapheme-extend: New file.
52396         * modules/unictype/property-other-grapheme-extend: New file.
52397         * modules/unictype/property-grapheme-link: New file.
52398         * modules/unictype/property-bidi-control: New file.
52399         * modules/unictype/property-bidi-left-to-right: New file.
52400         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52401         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52402         * modules/unictype/property-bidi-european-digit: New file.
52403         * modules/unictype/property-bidi-eur-num-separator: New file.
52404         * modules/unictype/property-bidi-eur-num-terminator: New file.
52405         * modules/unictype/property-bidi-arabic-digit: New file.
52406         * modules/unictype/property-bidi-common-separator: New file.
52407         * modules/unictype/property-bidi-block-separator: New file.
52408         * modules/unictype/property-bidi-segment-separator: New file.
52409         * modules/unictype/property-bidi-whitespace: New file.
52410         * modules/unictype/property-bidi-non-spacing-mark: New file.
52411         * modules/unictype/property-bidi-boundary-neutral: New file.
52412         * modules/unictype/property-bidi-pdf: New file.
52413         * modules/unictype/property-bidi-embedding-or-override: New file.
52414         * modules/unictype/property-bidi-other-neutral: New file.
52415         * modules/unictype/property-hex-digit: New file.
52416         * modules/unictype/property-ascii-hex-digit: New file.
52417         * modules/unictype/property-ideographic: New file.
52418         * modules/unictype/property-unified-ideograph: New file.
52419         * modules/unictype/property-radical: New file.
52420         * modules/unictype/property-ids-binary-operator: New file.
52421         * modules/unictype/property-ids-trinary-operator: New file.
52422         * modules/unictype/property-zero-width: New file.
52423         * modules/unictype/property-space: New file.
52424         * modules/unictype/property-non-break: New file.
52425         * modules/unictype/property-iso-control: New file.
52426         * modules/unictype/property-format-control: New file.
52427         * modules/unictype/property-dash: New file.
52428         * modules/unictype/property-hyphen: New file.
52429         * modules/unictype/property-punctuation: New file.
52430         * modules/unictype/property-line-separator: New file.
52431         * modules/unictype/property-paragraph-separator: New file.
52432         * modules/unictype/property-quotation-mark: New file.
52433         * modules/unictype/property-sentence-terminal: New file.
52434         * modules/unictype/property-terminal-punctuation: New file.
52435         * modules/unictype/property-currency-symbol: New file.
52436         * modules/unictype/property-math: New file.
52437         * modules/unictype/property-other-math: New file.
52438         * modules/unictype/property-paired-punctuation: New file.
52439         * modules/unictype/property-left-of-pair: New file.
52440         * modules/unictype/property-combining: New file.
52441         * modules/unictype/property-composite: New file.
52442         * modules/unictype/property-decimal-digit: New file.
52443         * modules/unictype/property-numeric: New file.
52444         * modules/unictype/property-diacritic: New file.
52445         * modules/unictype/property-extender: New file.
52446         * modules/unictype/property-ignorable-control: New file.
52447         * modules/unictype/property-test: New file.
52448         * modules/unictype/property-byname: New file.
52449         * modules/unictype/property-all: New file.
52450         * modules/unictype/scripts: New file.
52451         * modules/unictype/scripts-all: New file.
52452         * modules/unictype/block-of: New file.
52453         * modules/unictype/block-test: New file.
52454         * modules/unictype/block-list: New file.
52455         * modules/unictype/block-all: New file.
52456         * modules/unictype/syntax-c-whitespace: New file.
52457         * modules/unictype/syntax-java-whitespace: New file.
52458         * modules/unictype/syntax-c-ident: New file.
52459         * modules/unictype/syntax-java-ident: New file.
52460         * modules/unictype/ctype-alnum: New file.
52461         * modules/unictype/ctype-alpha: New file.
52462         * modules/unictype/ctype-cntrl: New file.
52463         * modules/unictype/ctype-digit: New file.
52464         * modules/unictype/ctype-graph: New file.
52465         * modules/unictype/ctype-lower: New file.
52466         * modules/unictype/ctype-print: New file.
52467         * modules/unictype/ctype-punct: New file.
52468         * modules/unictype/ctype-space: New file.
52469         * modules/unictype/ctype-upper: New file.
52470         * modules/unictype/ctype-xdigit: New file.
52471         * modules/unictype/ctype-blank: New file.
52472         * lib/unictype/bidi_byname.c: New file.
52473         * lib/unictype/bidi_name.c: New file.
52474         * lib/unictype/bidi_of.c: New file.
52475         * lib/unictype/bidi_test.c: New file.
52476         * lib/unictype/bitmap.h: New file.
52477         * lib/unictype/block_test.c: New file.
52478         * lib/unictype/blocks.c: New file.
52479         * lib/unictype/categ_C.c: New file.
52480         * lib/unictype/categ_Cc.c: New file.
52481         * lib/unictype/categ_Cf.c: New file.
52482         * lib/unictype/categ_Cn.c: New file.
52483         * lib/unictype/categ_Co.c: New file.
52484         * lib/unictype/categ_Cs.c: New file.
52485         * lib/unictype/categ_L.c: New file.
52486         * lib/unictype/categ_Ll.c: New file.
52487         * lib/unictype/categ_Lm.c: New file.
52488         * lib/unictype/categ_Lo.c: New file.
52489         * lib/unictype/categ_Lt.c: New file.
52490         * lib/unictype/categ_Lu.c: New file.
52491         * lib/unictype/categ_M.c: New file.
52492         * lib/unictype/categ_Mc.c: New file.
52493         * lib/unictype/categ_Me.c: New file.
52494         * lib/unictype/categ_Mn.c: New file.
52495         * lib/unictype/categ_N.c: New file.
52496         * lib/unictype/categ_Nd.c: New file.
52497         * lib/unictype/categ_Nl.c: New file.
52498         * lib/unictype/categ_No.c: New file.
52499         * lib/unictype/categ_P.c: New file.
52500         * lib/unictype/categ_Pc.c: New file.
52501         * lib/unictype/categ_Pd.c: New file.
52502         * lib/unictype/categ_Pe.c: New file.
52503         * lib/unictype/categ_Pf.c: New file.
52504         * lib/unictype/categ_Pi.c: New file.
52505         * lib/unictype/categ_Po.c: New file.
52506         * lib/unictype/categ_Ps.c: New file.
52507         * lib/unictype/categ_S.c: New file.
52508         * lib/unictype/categ_Sc.c: New file.
52509         * lib/unictype/categ_Sk.c: New file.
52510         * lib/unictype/categ_Sm.c: New file.
52511         * lib/unictype/categ_So.c: New file.
52512         * lib/unictype/categ_Z.c: New file.
52513         * lib/unictype/categ_Zl.c: New file.
52514         * lib/unictype/categ_Zp.c: New file.
52515         * lib/unictype/categ_Zs.c: New file.
52516         * lib/unictype/categ_and.c: New file.
52517         * lib/unictype/categ_and_not.c: New file.
52518         * lib/unictype/categ_byname.c: New file.
52519         * lib/unictype/categ_name.c: New file.
52520         * lib/unictype/categ_none.c: New file.
52521         * lib/unictype/categ_of.c: New file.
52522         * lib/unictype/categ_or.c: New file.
52523         * lib/unictype/categ_test.c: New file.
52524         * lib/unictype/combining.c: New file.
52525         * lib/unictype/ctype_alnum.c: New file.
52526         * lib/unictype/ctype_alpha.c: New file.
52527         * lib/unictype/ctype_blank.c: New file.
52528         * lib/unictype/ctype_cntrl.c: New file.
52529         * lib/unictype/ctype_digit.c: New file.
52530         * lib/unictype/ctype_graph.c: New file.
52531         * lib/unictype/ctype_lower.c: New file.
52532         * lib/unictype/ctype_print.c: New file.
52533         * lib/unictype/ctype_punct.c: New file.
52534         * lib/unictype/ctype_space.c: New file.
52535         * lib/unictype/ctype_upper.c: New file.
52536         * lib/unictype/ctype_xdigit.c: New file.
52537         * lib/unictype/decdigit.c: New file.
52538         * lib/unictype/digit.c: New file.
52539         * lib/unictype/identsyntaxmap.h: New file.
52540         * lib/unictype/mirror.c: New file.
52541         * lib/unictype/numeric.c: New file.
52542         * lib/unictype/pr_alphabetic.c: New file.
52543         * lib/unictype/pr_ascii_hex_digit.c: New file.
52544         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52545         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52546         * lib/unictype/pr_bidi_block_separator.c: New file.
52547         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52548         * lib/unictype/pr_bidi_common_separator.c: New file.
52549         * lib/unictype/pr_bidi_control.c: New file.
52550         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52551         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52552         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52553         * lib/unictype/pr_bidi_european_digit.c: New file.
52554         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52555         * lib/unictype/pr_bidi_left_to_right.c: New file.
52556         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52557         * lib/unictype/pr_bidi_other_neutral.c: New file.
52558         * lib/unictype/pr_bidi_pdf.c: New file.
52559         * lib/unictype/pr_bidi_segment_separator.c: New file.
52560         * lib/unictype/pr_bidi_whitespace.c: New file.
52561         * lib/unictype/pr_byname.c: New file.
52562         * lib/unictype/pr_byname.gperf: New file.
52563         * lib/unictype/pr_combining.c: New file.
52564         * lib/unictype/pr_composite.c: New file.
52565         * lib/unictype/pr_currency_symbol.c: New file.
52566         * lib/unictype/pr_dash.c: New file.
52567         * lib/unictype/pr_decimal_digit.c: New file.
52568         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52569         * lib/unictype/pr_deprecated.c: New file.
52570         * lib/unictype/pr_diacritic.c: New file.
52571         * lib/unictype/pr_extender.c: New file.
52572         * lib/unictype/pr_format_control.c: New file.
52573         * lib/unictype/pr_grapheme_base.c: New file.
52574         * lib/unictype/pr_grapheme_extend.c: New file.
52575         * lib/unictype/pr_grapheme_link.c: New file.
52576         * lib/unictype/pr_hex_digit.c: New file.
52577         * lib/unictype/pr_hyphen.c: New file.
52578         * lib/unictype/pr_id_continue.c: New file.
52579         * lib/unictype/pr_id_start.c: New file.
52580         * lib/unictype/pr_ideographic.c: New file.
52581         * lib/unictype/pr_ids_binary_operator.c: New file.
52582         * lib/unictype/pr_ids_trinary_operator.c: New file.
52583         * lib/unictype/pr_ignorable_control.c: New file.
52584         * lib/unictype/pr_iso_control.c: New file.
52585         * lib/unictype/pr_join_control.c: New file.
52586         * lib/unictype/pr_left_of_pair.c: New file.
52587         * lib/unictype/pr_line_separator.c: New file.
52588         * lib/unictype/pr_logical_order_exception.c: New file.
52589         * lib/unictype/pr_lowercase.c: New file.
52590         * lib/unictype/pr_math.c: New file.
52591         * lib/unictype/pr_non_break.c: New file.
52592         * lib/unictype/pr_not_a_character.c: New file.
52593         * lib/unictype/pr_numeric.c: New file.
52594         * lib/unictype/pr_other_alphabetic.c: New file.
52595         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52596         * lib/unictype/pr_other_grapheme_extend.c: New file.
52597         * lib/unictype/pr_other_id_continue.c: New file.
52598         * lib/unictype/pr_other_id_start.c: New file.
52599         * lib/unictype/pr_other_lowercase.c: New file.
52600         * lib/unictype/pr_other_math.c: New file.
52601         * lib/unictype/pr_other_uppercase.c: New file.
52602         * lib/unictype/pr_paired_punctuation.c: New file.
52603         * lib/unictype/pr_paragraph_separator.c: New file.
52604         * lib/unictype/pr_pattern_syntax.c: New file.
52605         * lib/unictype/pr_pattern_white_space.c: New file.
52606         * lib/unictype/pr_private_use.c: New file.
52607         * lib/unictype/pr_punctuation.c: New file.
52608         * lib/unictype/pr_quotation_mark.c: New file.
52609         * lib/unictype/pr_radical.c: New file.
52610         * lib/unictype/pr_sentence_terminal.c: New file.
52611         * lib/unictype/pr_soft_dotted.c: New file.
52612         * lib/unictype/pr_space.c: New file.
52613         * lib/unictype/pr_terminal_punctuation.c: New file.
52614         * lib/unictype/pr_test.c: New file.
52615         * lib/unictype/pr_titlecase.c: New file.
52616         * lib/unictype/pr_unassigned_code_value.c: New file.
52617         * lib/unictype/pr_unified_ideograph.c: New file.
52618         * lib/unictype/pr_uppercase.c: New file.
52619         * lib/unictype/pr_variation_selector.c: New file.
52620         * lib/unictype/pr_white_space.c: New file.
52621         * lib/unictype/pr_xid_continue.c: New file.
52622         * lib/unictype/pr_xid_start.c: New file.
52623         * lib/unictype/pr_zero_width.c: New file.
52624         * lib/unictype/scripts.c: New file.
52625         * lib/unictype/sy_c_ident.c: New file.
52626         * lib/unictype/sy_c_whitespace.c: New file.
52627         * lib/unictype/sy_java_ident.c: New file.
52628         * lib/unictype/sy_java_whitespace.c: New file.
52629
52630         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52631         Unicode 5.0.0.
52632         * lib/unictype/blocks.h: Likewise.
52633         * lib/unictype/categ_C.h: Likewise.
52634         * lib/unictype/categ_Cc.h: Likewise.
52635         * lib/unictype/categ_Cf.h: Likewise.
52636         * lib/unictype/categ_Cn.h: Likewise.
52637         * lib/unictype/categ_Co.h: Likewise.
52638         * lib/unictype/categ_Cs.h: Likewise.
52639         * lib/unictype/categ_L.h: Likewise.
52640         * lib/unictype/categ_Ll.h: Likewise.
52641         * lib/unictype/categ_Lm.h: Likewise.
52642         * lib/unictype/categ_Lo.h: Likewise.
52643         * lib/unictype/categ_Lt.h: Likewise.
52644         * lib/unictype/categ_Lu.h: Likewise.
52645         * lib/unictype/categ_M.h: Likewise.
52646         * lib/unictype/categ_Mc.h: Likewise.
52647         * lib/unictype/categ_Me.h: Likewise.
52648         * lib/unictype/categ_Mn.h: Likewise.
52649         * lib/unictype/categ_N.h: Likewise.
52650         * lib/unictype/categ_Nd.h: Likewise.
52651         * lib/unictype/categ_Nl.h: Likewise.
52652         * lib/unictype/categ_No.h: Likewise.
52653         * lib/unictype/categ_P.h: Likewise.
52654         * lib/unictype/categ_Pc.h: Likewise.
52655         * lib/unictype/categ_Pd.h: Likewise.
52656         * lib/unictype/categ_Pe.h: Likewise.
52657         * lib/unictype/categ_Pf.h: Likewise.
52658         * lib/unictype/categ_Pi.h: Likewise.
52659         * lib/unictype/categ_Po.h: Likewise.
52660         * lib/unictype/categ_Ps.h: Likewise.
52661         * lib/unictype/categ_S.h: Likewise.
52662         * lib/unictype/categ_Sc.h: Likewise.
52663         * lib/unictype/categ_Sk.h: Likewise.
52664         * lib/unictype/categ_Sm.h: Likewise.
52665         * lib/unictype/categ_So.h: Likewise.
52666         * lib/unictype/categ_Z.h: Likewise.
52667         * lib/unictype/categ_Zl.h: Likewise.
52668         * lib/unictype/categ_Zp.h: Likewise.
52669         * lib/unictype/categ_Zs.h: Likewise.
52670         * lib/unictype/categ_of.h: Likewise.
52671         * lib/unictype/combining.h: Likewise.
52672         * lib/unictype/ctype_alnum.h: Likewise.
52673         * lib/unictype/ctype_alpha.h: Likewise.
52674         * lib/unictype/ctype_blank.h: Likewise.
52675         * lib/unictype/ctype_cntrl.h: Likewise.
52676         * lib/unictype/ctype_digit.h: Likewise.
52677         * lib/unictype/ctype_graph.h: Likewise.
52678         * lib/unictype/ctype_lower.h: Likewise.
52679         * lib/unictype/ctype_print.h: Likewise.
52680         * lib/unictype/ctype_punct.h: Likewise.
52681         * lib/unictype/ctype_space.h: Likewise.
52682         * lib/unictype/ctype_upper.h: Likewise.
52683         * lib/unictype/ctype_xdigit.h: Likewise.
52684         * lib/unictype/decdigit.h: Likewise.
52685         * lib/unictype/digit.h: Likewise.
52686         * lib/unictype/mirror.h: Likewise.
52687         * lib/unictype/numeric.h: Likewise.
52688         * lib/unictype/pr_alphabetic.h: Likewise.
52689         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52690         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52691         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52692         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52693         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52694         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52695         * lib/unictype/pr_bidi_control.h: Likewise.
52696         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52697         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52698         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52699         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52700         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52701         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52702         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52703         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52704         * lib/unictype/pr_bidi_pdf.h: Likewise.
52705         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52706         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52707         * lib/unictype/pr_combining.h: Likewise.
52708         * lib/unictype/pr_composite.h: Likewise.
52709         * lib/unictype/pr_currency_symbol.h: Likewise.
52710         * lib/unictype/pr_dash.h: Likewise.
52711         * lib/unictype/pr_decimal_digit.h: Likewise.
52712         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52713         * lib/unictype/pr_deprecated.h: Likewise.
52714         * lib/unictype/pr_diacritic.h: Likewise.
52715         * lib/unictype/pr_extender.h: Likewise.
52716         * lib/unictype/pr_format_control.h: Likewise.
52717         * lib/unictype/pr_grapheme_base.h: Likewise.
52718         * lib/unictype/pr_grapheme_extend.h: Likewise.
52719         * lib/unictype/pr_grapheme_link.h: Likewise.
52720         * lib/unictype/pr_hex_digit.h: Likewise.
52721         * lib/unictype/pr_hyphen.h: Likewise.
52722         * lib/unictype/pr_id_continue.h: Likewise.
52723         * lib/unictype/pr_id_start.h: Likewise.
52724         * lib/unictype/pr_ideographic.h: Likewise.
52725         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52726         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52727         * lib/unictype/pr_ignorable_control.h: Likewise.
52728         * lib/unictype/pr_iso_control.h: Likewise.
52729         * lib/unictype/pr_join_control.h: Likewise.
52730         * lib/unictype/pr_left_of_pair.h: Likewise.
52731         * lib/unictype/pr_line_separator.h: Likewise.
52732         * lib/unictype/pr_logical_order_exception.h: Likewise.
52733         * lib/unictype/pr_lowercase.h: Likewise.
52734         * lib/unictype/pr_math.h: Likewise.
52735         * lib/unictype/pr_non_break.h: Likewise.
52736         * lib/unictype/pr_not_a_character.h: Likewise.
52737         * lib/unictype/pr_numeric.h: Likewise.
52738         * lib/unictype/pr_other_alphabetic.h: Likewise.
52739         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52740         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52741         * lib/unictype/pr_other_id_continue.h: Likewise.
52742         * lib/unictype/pr_other_id_start.h: Likewise.
52743         * lib/unictype/pr_other_lowercase.h: Likewise.
52744         * lib/unictype/pr_other_math.h: Likewise.
52745         * lib/unictype/pr_other_uppercase.h: Likewise.
52746         * lib/unictype/pr_paired_punctuation.h: Likewise.
52747         * lib/unictype/pr_paragraph_separator.h: Likewise.
52748         * lib/unictype/pr_pattern_syntax.h: Likewise.
52749         * lib/unictype/pr_pattern_white_space.h: Likewise.
52750         * lib/unictype/pr_private_use.h: Likewise.
52751         * lib/unictype/pr_punctuation.h: Likewise.
52752         * lib/unictype/pr_quotation_mark.h: Likewise.
52753         * lib/unictype/pr_radical.h: Likewise.
52754         * lib/unictype/pr_sentence_terminal.h: Likewise.
52755         * lib/unictype/pr_soft_dotted.h: Likewise.
52756         * lib/unictype/pr_space.h: Likewise.
52757         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52758         * lib/unictype/pr_titlecase.h: Likewise.
52759         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52760         * lib/unictype/pr_unified_ideograph.h: Likewise.
52761         * lib/unictype/pr_uppercase.h: Likewise.
52762         * lib/unictype/pr_variation_selector.h: Likewise.
52763         * lib/unictype/pr_white_space.h: Likewise.
52764         * lib/unictype/pr_xid_continue.h: Likewise.
52765         * lib/unictype/pr_xid_start.h: Likewise.
52766         * lib/unictype/pr_zero_width.h: Likewise.
52767         * lib/unictype/scripts.h: Likewise.
52768         * lib/unictype/scripts_byname.gperf: Likewise.
52769         * lib/unictype/sy_c_ident.h: Likewise.
52770         * lib/unictype/sy_c_whitespace.h: Likewise.
52771         * lib/unictype/sy_java_ident.h: Likewise.
52772         * lib/unictype/sy_java_whitespace.h: Likewise.
52773
52774         * lib/unictype/Makefile: New file.
52775         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52776         glibc.
52777         * lib/unictype/3level.h: New file, copied from glibc.
52778         * lib/unictype/3levelbit.h: New file.
52779
52780 2007-11-11  Bruno Haible  <bruno@clisp.org>
52781
52782         * modules/gperf: New file.
52783         * modules/iconv_open (Depends-on): Add it.
52784         (Makefile.am): Remove the GPERF definition.
52785
52786 2007-11-11  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52789         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52790
52791 2007-11-11  Bruno Haible  <bruno@clisp.org>
52792
52793         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52794         (usage): Remove function.
52795
52796 2007-11-11  Bruno Haible  <bruno@clisp.org>
52797
52798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52799         gl_FUNC_CEILF_LIBS.
52800         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52801         gl_FUNC_CEIL_LIBS.
52802         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52803         gl_FUNC_CEILL_LIBS.
52804         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52805         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52806         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52807
52808 2007-11-11  Bruno Haible  <bruno@clisp.org>
52809
52810         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52811         roundf were declared but do not exist on functions.
52812         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52813         roundl were declared but do not exist on functions.
52814         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52815         HAVE_FLOORL_AND_CEILL, respectively.
52816         Needed for Sun C on Solaris 10.
52817
52818 2007-11-11  Bruno Haible  <bruno@clisp.org>
52819
52820         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52821         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52822         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52823         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52824         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52825         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52826         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52827         HAVE_DECL_ROUNDF.
52828         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52829         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52831         of HAVE_DECL_ROUND*.
52832         * modules/math (Makefile.am): Update.
52833
52834 2007-11-10  Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52837         ptrdiff_t as m4/intl.m4.
52838
52839 2007-11-10  Jim Meyering  <meyering@redhat.com>
52840
52841         Avoid link failure for the argmatch test.
52842         * tests/test-argmatch.c (usage): Define function to avoid a link
52843         failure: argmatch_die requires a usage function.
52844
52845 2007-11-09  Bruno Haible  <bruno@clisp.org>
52846
52847         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52848         * doc/functions/vsnprintf.texi: Likewise.
52849         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52850         with a size argument < 2.
52851
52852 2007-11-09  Bruno Haible  <bruno@clisp.org>
52853
52854         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52855         buffer. Fixes an inefficiency introduced on 2007-11-03.
52856
52857 2007-11-09  Bruno Haible  <bruno@clisp.org>
52858
52859         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52860         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52861
52862 2007-11-08  Jim Meyering  <meyering@redhat.com>
52863
52864         Change cache variable name prefix "jm_" to "gl_" everywhere.
52865         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52866         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52867         * m4/uptime.m4: s/gl_/jm_/
52868
52869 2007-11-07  Bruno Haible  <bruno@clisp.org>
52870
52871         Update to GNU gettext 0.17.
52872         * m4/intl.m4: Update to GNU gettext 0.17.
52873         * m4/po.m4: Likewise.
52874         * modules/gettext (Files): Remove m4/ulonglong.m4.
52875         (configure.ac): Require gettext infrastructure from version 0.17.
52876
52877 2007-11-06  Bruno Haible  <bruno@clisp.org>
52878
52879         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52880         symbolic values are not defined in a public header.
52881         * lib/freadable.c (freadable) [QNX]: Likewise.
52882         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52883         * lib/freading.c (freading) [QNX]: Likewise.
52884         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52885         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52886         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52887         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52888         Reported by Alain Magloire.
52889
52890         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52891
52892 2007-11-05  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52895         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52896         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52897         Reported by Eric Blake.
52898
52899 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52900             Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52903         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52904         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52905         (malloc): Undefine also before including <stdlib.h>.
52906         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52907         Needed on OSF/1 4.0.
52908
52909 2007-11-05  Jim Meyering  <meyering@redhat.com>
52910
52911         git-version-gen: sync from coreutils.
52912         * build-aux/git-version-gen: Add comments.
52913         Change the first '-' to '.' in the snapshot version string,
52914         e.g., 6.9-377-08144 -> 6.9.377-08144
52915         Remove first parameter.
52916         Don't declare a version "-dirty" merely because a time
52917         stamp has changed.
52918
52919 2007-11-04  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/lock.h: Protect all macro definitions containing an 'if'
52922         statement through a "do { ... } while (0)".
52923         * lib/tls.h: Likewise.
52924
52925 2007-11-04  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52928
52929 2007-11-04  Bruno Haible  <bruno@clisp.org>
52930
52931         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52932         * modules/fprintf-posix (Depends-on): Add nocrash.
52933         * modules/snprintf-posix (Depends-on): Likewise.
52934         * modules/sprintf-posix (Depends-on): Likewise.
52935         * modules/vasnprintf-posix (Depends-on): Likewise.
52936         * modules/vasprintf-posix (Depends-on): Likewise.
52937         * modules/vfprintf-posix (Depends-on): Likewise.
52938         * modules/vsnprintf-posix (Depends-on): Likewise.
52939         * modules/vsprintf-posix (Depends-on): Likewise.
52940         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52941         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52942         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52943         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52944         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52945         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52946         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52947
52948 2007-11-04  Bruno Haible  <bruno@clisp.org>
52949
52950         * modules/nocrash: New file.
52951         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52952         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52953
52954 2007-11-04  Bruno Haible  <bruno@clisp.org>
52955
52956         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52957         precision handling.
52958         * tests/test-vasprintf-posix.c (test_function): Likewise.
52959         * tests/test-snprintf-posix.h (test_function): Likewise.
52960         * tests/test-sprintf-posix.h (test_function): Likewise.
52961
52962         Fix *printf behaviour for large precisions on mingw and BeOS.
52963         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52964         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52966         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52968         gl_PRINTF_PRECISION and test its result. Invoke
52969         gl_PREREQ_VASNPRINTF_PRECISION.
52970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52977         * doc/functions/fprintf.texi: Update.
52978         * doc/functions/printf.texi: Update.
52979         * doc/functions/snprintf.texi: Update.
52980         * doc/functions/sprintf.texi: Update.
52981         * doc/functions/vfprintf.texi: Update.
52982         * doc/functions/vprintf.texi: Update.
52983         * doc/functions/vsnprintf.texi: Update.
52984         * doc/functions/vsprintf.texi: Update.
52985
52986 2007-11-04  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52989
52990 2007-11-04  Bruno Haible  <bruno@clisp.org>
52991
52992         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52993         Reported by Sylvain Beucler <beuc@gnu.org>.
52994
52995 2007-11-03  Bruno Haible  <bruno@clisp.org>
52996
52997         * tests/test-fprintf-posix2.sh: New file.
52998         * tests/test-fprintf-posix2.c: New file.
52999         * modules/fprintf-posix-tests (Files): Add them.
53000         (TESTS): Add test-fprintf-posix2.sh.
53001         (configure.ac): Check for getrlimit and setrlimit.
53002         (check_PROGRAMS): Add test-fprintf-posix2.
53003
53004         * tests/test-printf-posix2.sh: New file.
53005         * tests/test-printf-posix2.c: New file.
53006         * modules/printf-posix-tests (Files): Add them.
53007         (TESTS): Add test-printf-posix2.sh.
53008         (configure.ac): Check for getrlimit and setrlimit.
53009         (check_PROGRAMS): Add test-printf-posix2.
53010
53011         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53012         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53013         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53014         (decode_double): New function, copied from decode_long_double.
53015         (scale10_round_decimal_decoded): New function, extracted from
53016         scale10_round_decimal_long_double.
53017         (scale10_round_decimal_long_double): Use it.
53018         (scale10_round_decimal_double): New function.
53019         (floorlog10): New function.
53020         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53022         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53024         gl_PRINTF_ENOMEM and test its result. Invoke
53025         gl_PREREQ_VASNPRINTF_ENOMEM.
53026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53033         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53034         * modules/snprintf-posix (Depends-on): Likewise.
53035         * modules/sprintf-posix (Depends-on): Likewise.
53036         * modules/vasnprintf-posix (Depends-on): Likewise.
53037         * modules/vasprintf-posix (Depends-on): Likewise.
53038         * modules/vfprintf-posix (Depends-on): Likewise.
53039         * modules/vsnprintf-posix (Depends-on): Likewise.
53040         * modules/vsprintf-posix (Depends-on): Likewise.
53041         * doc/functions/fprintf.texi: Update.
53042         * doc/functions/printf.texi: Update.
53043         * doc/functions/snprintf.texi: Update.
53044         * doc/functions/sprintf.texi: Update.
53045         * doc/functions/vfprintf.texi: Update.
53046         * doc/functions/vprintf.texi: Update.
53047         * doc/functions/vsnprintf.texi: Update.
53048         * doc/functions/vsprintf.texi: Update.
53049
53050 2007-11-03  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/frexp-nolibm-tests: New file.
53053
53054         * modules/frexp-nolibm: New file.
53055         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53056
53057 2007-11-03  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53060         value is C99 compliant.
53061         Needed for OSF/1 5.1.
53062
53063 2007-11-03  Bruno Haible  <bruno@clisp.org>
53064
53065         Fix out-of-memory handling of vasnprintf.
53066         * lib/printf-parse.c: Include <errno.h>.
53067         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53068         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53069         is already set.
53070
53071 2007-11-02  Eric Blake  <ebb9@byu.net>
53072
53073         Fix tests on cygwin.
53074         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53075
53076 2007-11-01  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53079         warning.
53080         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53081         needed for POSIX compatibility.
53082
53083 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53086         for compatibility with GNU.
53087
53088 2007-11-01  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53091         (putenv): Renamed from rpl_putenv. Change argument type from
53092         'const char *' to 'char *'.
53093         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53094         of defining putenv in config.h, just set REPLACE_PUTENV.
53095         * modules/putenv (Depends-on): Add stdlib.
53096         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53097         (Include): Use <stdlib.h>.
53098         * lib/stdlib.in.h (putenv): New declaration.
53099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53100         REPLACE_PUTENV.
53101         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53102         REPLACE_PUTENV.
53103         Needed for MacOS X 10.5.0.
53104         Reported by Peter O'Gorman <peter@pogma.com>.
53105
53106 2007-11-01  Jim Meyering  <meyering@redhat.com>
53107
53108         Treat an empty date string exactly like "0".
53109         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53110         if the remaining date string (to be parsed) is empty, use "0".
53111         Reported by Mischa Molhoek and discussed in this thread:
53112         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53113
53114 2007-10-31  Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53117         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53118         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53119         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53120         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53121         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53122
53123 2007-10-31  Bruno Haible  <bruno@clisp.org>
53124
53125         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53126         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53127         (AC_TYPE_LONG_LONG_INT): Use it.
53128         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53129         it as well.
53130         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53131         to m4/longlong.m4.
53132         * modules/stdint (Files): Remove m4/ulonglong.m4.
53133         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53134         m4/ulonglong.m4.
53135         * modules/strtoumax (Files): Likewise.
53136
53137 2007-10-30  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/xvasprintf-posix: New file.
53140         Suggested by Eric Blake.
53141
53142 2007-10-30  Bruno Haible  <bruno@clisp.org>
53143
53144         * modules/xprintf-posix-tests: New file.
53145         * tests/test-xprintf-posix.sh: New file.
53146         * tests/test-xprintf-posix.c: New file.
53147         * tests/test-xfprintf-posix.c: New file.
53148
53149         * modules/xprintf-posix: New file.
53150
53151 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53152
53153         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53154         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53155         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53156
53157 2007-10-29  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53160         contain the special marker '_cv_'.
53161         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53162         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53163         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53164         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53165         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53166         Reported by Ralf Wildenhues.
53167
53168 2007-10-29  Bruno Haible  <bruno@clisp.org>
53169
53170         * gnulib-tool (func_import): When --lgpl is not specified, set
53171         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53172         GPLv3.
53173         Reported by Simon Josefsson.
53174
53175 2007-10-28  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53178         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53179         HAVE_DECL_ISFINITE.
53180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53181         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53182         HAVE_DECL_ISFINITE.
53183
53184 2007-10-28  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53187         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53188
53189 2007-10-28  Bruno Haible  <bruno@clisp.org>
53190
53191         Fix link errors with Sun C 5.0 on Solaris 10.
53192         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53193         function is declared but not present in the compiler's libm.
53194         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53195         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53196         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53197         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53198         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53199         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53200         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53202         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53203         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53204         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53205         HAVE_DECL_FLOORL.
53206
53207 2007-10-28  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53210         gl_FUNC_FLOORL. Cache the result.
53211         (gl_FUNC_FLOORL): Use it.
53212         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53213         gl_FUNC_CEILL. Cache the result.
53214         (gl_FUNC_CEILL): Use it.
53215
53216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53217         gl_FUNC_FLOOR. Cache the result.
53218         (gl_FUNC_FLOOR): Use it.
53219         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53220         gl_FUNC_CEIL. Cache the result.
53221         (gl_FUNC_CEIL): Use it.
53222
53223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53224         gl_FUNC_FLOORF. Cache the result.
53225         (gl_FUNC_FLOORF): Use it.
53226         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53227         gl_FUNC_CEILF. Cache the result.
53228         (gl_FUNC_CEILF): Use it.
53229
53230 2007-10-28  Bruno Haible  <bruno@clisp.org>
53231
53232         * gnulib-tool: Allow specifying the LGPL version number through
53233         --lgpl=2 or --lgpl=3.
53234         (func_usage): Document --lgpl with argument.
53235         Handle --lgpl=... arguments.
53236         (func_import): Recognize also gl_LGPL calls with an argument. When
53237         --lgpl=2 is used and the module's license is just LGPL, report an
53238         error. Set sed_transform_lib_file according to the lgpl variable. In
53239         the generated files, use --lgpl or gl_LGPL invocations with argument,
53240         if necessary.
53241         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53242         an LGPv2+ license.
53243         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53244         gl_LGPL macro.
53245
53246 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53247             Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53250         (u16_uctomb_aux): Likewise.
53251         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53252         !HAVE_INLINE.
53253         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53254
53255 2007-10-28  Bruno Haible  <bruno@clisp.org>
53256
53257         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53258         Invoke AM_GETTEXT_OPTION if it exists.
53259         * modules/vasprintf: Likewise.
53260         * modules/verror: Likewise.
53261         * modules/xprintf: Likewise.
53262         * modules/xvasprintf: Likewise.
53263
53264 2007-10-27  Ben Pfaff  <blp@gnu.org>
53265
53266         * lib/math.in.h: Define isfinite macro and prototypes for
53267         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53268         implementations.
53269         * m4/math_h.m4: New substitutions for isfinite module.
53270         * lib/isfinite.c: New file.
53271         * m4/isfinite.m4: New file.
53272         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53273         * modules/isfinite: New file.
53274         * modules/isfinite-tests: New file.
53275         * tests/tests-isfinite.c: New file.
53276         * doc/functions/isfinite.texi: Mention isfinite module.
53277         * MODULES.html.sh: Mention new module.
53278
53279 2007-10-27  Ben Pfaff  <blp@gnu.org>
53280
53281         Ralf Wildenhues reported that Tru64 4.0D declares the round
53282         functions but does not have definitions.
53283         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53284         cannot be found in any library, set the output variable to
53285         "missing" instead of "".
53286         * m4/round.m4: Also use our substitute if we cannot find round in
53287         any library, even if it is declared.
53288         * m4/roundf.m4: Likewise for roundf.
53289         * m4/roundl.m4: Likewise for roundl.
53290         * lib/math.in.h: Undefine roundf, round, roundl before defining
53291         their replacements, to allow for hypothetical systems where these
53292         may be defined as macros but not available in libraries.
53293
53294 2007-10-27  Bruno Haible  <bruno@clisp.org>
53295
53296         * doc/gnulib.texi: Invoke @firstparagraphindent.
53297         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53298         changes in gnulib.
53299         (Source changes): New section.
53300
53301 2007-10-26  Bruno Haible  <bruno@clisp.org>
53302
53303         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53304         borrowed from autoconf.
53305
53306 2007-10-26  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53309         strerror returned the empty string. Needed on HP-UX 11.00.
53310
53311 2007-10-24  Micah Cowan  <micah@cowan.name>
53312
53313         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53314         * build-aux/bootstrap: Remove support for now-unnecessary option,
53315         --cvs-user, and envvars CVS_USER, CVS_RSH.
53316
53317 2007-10-24  Jim Meyering  <meyering@redhat.com>
53318
53319         Avoid diagnostics from sha1sum when there is no cached checksum.
53320         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53321         if the po.s1 file hasn't been created yet.
53322
53323         * build-aux/bootstrap: Sync from coreutils:
53324         2007-10-24  Jim Meyering  <meyering@redhat.com>
53325         Get gnulib from the git repository, not from an obsolete cvs one.
53326         * build-aux/bootstrap: Suggestion from Micah Cowan.
53327         2007-10-04  Jim Meyering  <jim@meyering.net>
53328         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53329         (update_po_files): Work also when there are no .po files in po/.
53330
53331 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         * README: Append ".git" to git and cg examples.
53334         Problem reported by Benoit Sigoure.
53335
53336 2007-10-23  Micah Cowan  <micah@cowan.name>
53337
53338         * users.txt: Add wget.
53339
53340 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53341
53342         Fix linking of some unistdio tests on FreeBSD.
53343         * modules/unistdio/u16-vsnprintf-tests
53344         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53345         * modules/unistdio/u16-vsprintf-tests
53346         (test_u16_vsnprintf1_LDADD): Likewise.
53347         * modules/unistdio/u32-vsnprintf-tests
53348         (test_u32_vsnprintf1_LDADD): Likewise.
53349         * modules/unistdio/u32-vsprintf-tests
53350         (test_u32_vsprintf1_LDADD): Likewise.
53351         * modules/unistdio/u8-vsnprintf-tests
53352         (test_u8_vsnprintf1_LDADD): Likewise.
53353         * modules/unistdio/u8-vsprintf-tests
53354         (test_u8_vsprintf1_LDADD): Likewise.
53355         * modules/unistdio/ulc-vsnprintf-tests
53356         (test_ulc_vsnprintf1_LDADD): Likewise.
53357         * modules/unistdio/ulc-vsprintf-tests
53358         (test_ulc_vsprintf1_LDADD): Likewise.
53359
53360         Fix linking of some uniconv tests on FreeBSD.
53361         * modules/uniconv/u16-conv-from-enc-tests
53362         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53363         * modules/uniconv/u16-conv-to-enc-tests
53364         (test_u16_conv_to_enc_LDADD): Likewise.
53365         * modules/uniconv/u16-strconv-from-enc-tests
53366         (test_u16_strconv_from_enc_LDADD): Likewise.
53367         * modules/uniconv/u16-strconv-to-enc-tests
53368         (test_u16_strconv_to_enc_LDADD): Likewise.
53369         * modules/uniconv/u32-conv-from-enc-tests
53370         (test_u32_conv_from_enc_LDADD): Likewise.
53371         * modules/uniconv/u32-conv-to-enc-tests
53372         (test_u32_conv_to_enc_LDADD): Likewise.
53373         * modules/uniconv/u32-strconv-from-enc-tests
53374         (test_u32_strconv_from_enc_LDADD): Likewise.
53375         * modules/uniconv/u32-strconv-to-enc-tests
53376         (test_u32_strconv_to_enc_LDADD): Likewise.
53377         * modules/uniconv/u8-conv-from-enc-tests
53378         (test_u8_conv_from_enc_LDADD): Likewise.
53379         * modules/uniconv/u8-conv-to-enc-tests
53380         (test_u8_conv_to_enc_LDADD): Likewise.
53381         * modules/uniconv/u8-strconv-from-enc-tests
53382         (test_u8_strconv_from_enc_LDADD): Likewise.
53383         * modules/uniconv/u8-strconv-to-enc-tests
53384         (test_u8_strconv_to_enc_LDADD): Likewise.
53385
53386 2007-10-22  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53389         size.
53390
53391 2007-10-22  Eric Blake  <ebb9@byu.net>
53392
53393         Tweak x*printf documentation.
53394         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53395         variable name and comments.
53396         Suggested by Bruno Haible.
53397
53398 2007-10-22  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/acl.c (copy_acl): Fix file name in comment.
53401
53402 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53403
53404         Fix Tru64 problem with stdbool.h.
53405         * lib/stdbool.in.h (false, true):
53406         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53407         Don't declare as an enum in this situation; it runs afoul of Tru64.
53408         Problem reported by Steven M. Schweda in
53409         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53410
53411 2007-10-22  Eric Blake  <ebb9@byu.net>
53412
53413         Also wrap vf?printf.
53414         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53415         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53416         (xvprintf, xvfprintf): New functions.
53417
53418 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53419
53420         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53421         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53422
53423         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53424         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53425
53426 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53429         by Bruno Haible.
53430
53431 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53432
53433         * lib/getloadavg.c
53434         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53435         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53436
53437         * tests/test-i-ring.c: Work for C89.
53438
53439 2007-10-22  Bruno Haible  <bruno@clisp.org>
53440
53441         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53442         -1u, in preprocessor expression, so that we don't test for the bug
53443         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53445
53446 2007-10-22  Eric Blake  <ebb9@byu.net>
53447
53448         * tests/test-yesno.sh: Silence stderr during test.
53449
53450 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53451
53452         * modules/crypto/gc-camellia: New file.
53453
53454         * m4/gc-camellia.m4: New file.
53455
53456         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53457
53458         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53459
53460 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53461
53462         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53463         --help to stdout.  Reported by sms@antinode.org (Steven
53464         M. Schweda).
53465
53466 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53467
53468         * users.txt: Fix link to libksba.
53469
53470 2007-10-21  Ben Pfaff  <blp@gnu.org>
53471
53472         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53473         round.c roundf implementation that depends on floorf and ceilf to
53474         be tested unconditionally.
53475
53476 2007-10-21  Ben Pfaff  <blp@gnu.org>
53477
53478         * m4/check-libm-func.m4: Removed.
53479         * m4/check-math-lib.m4: New file.
53480         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53481         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53482         definition and lack of AC_LIBOBJ([roundf]).
53483         * m4/roundl.m4: Ditto, and similarly for roundl.
53484         * modules/round: Reference new m4 file.
53485         * modules/roundf: Ditto.
53486         * modules/roundl: Ditto.
53487         * tests/test-round2.c (main): Use ROUND instead of round.
53488         Bug report from Bruno Haible.
53489
53490 2007-10-21  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53493         context.
53494
53495 2007-10-21  Bruno Haible  <bruno@clisp.org>
53496
53497         * tests/test-wcwidth.c (main): Allow negative result for some control
53498         characters.
53499
53500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53501         Needed on OSF/1 5.1.
53502
53503 2007-10-21  Bruno Haible  <bruno@clisp.org>
53504
53505         * tests/test-floorf1.c: Include isnanf.h.
53506         (main): Use isnanf() instead of isnan().
53507         * tests/test-ceilf1.c: Include isnanf.h.
53508         (main): Use isnanf() instead of isnan().
53509         * tests/test-truncf1.c: Include isnanf.h.
53510         (main): Use isnanf() instead of isnan().
53511         * tests/test-roundf1.c: Include isnanf.h.
53512         (main): Use isnanf() instead of isnan().
53513
53514 2007-10-21  Eric Blake  <ebb9@byu.net>
53515
53516         * users.txt: Update URL for m4.
53517
53518 2007-10-21  Bruno Haible  <bruno@clisp.org>
53519
53520         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53521
53522 2007-10-21  Bruno Haible  <bruno@clisp.org>
53523
53524         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53525         Git's management files if the CVS files are not present.
53526
53527 2007-10-20  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53530         gcc-3.4.x.
53531
53532 2007-10-20  Ben Pfaff  <blp@gnu.org>
53533
53534         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53535         implementations.
53536         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53537         * lib/round.c: New file.
53538         * lib/roundf.c: New file.
53539         * lib/roundl.c: New file.
53540         * m4/round.m4: New file.
53541         * m4/roundf.m4: New file.
53542         * m4/roundl.m4: New file.
53543         * m4/check-libm-func-m4: New file.
53544         * modules/math: Replace round, roundf, roundl related @VARS@ in
53545         math.in.h.
53546         * modules/round: New file.
53547         * modules/round-tests: New file.
53548         * modules/roundf: New file.
53549         * modules/roundf-tests: New file.
53550         * modules/roundl: New file.
53551         * modules/roundl-tests: New file.
53552         * tests/test-round1.c: New file.
53553         * tests/test-round2.c: New file.
53554         * tests/test-roundf1.c: New file.
53555         * tests/test-roundf2.c: New file.
53556         * tests/test-roundl.c: New file.
53557         * doc/functions/round.texi: Mention round module.
53558         * doc/functions/roundf.texi: Mention roundf module.
53559         * doc/functions/roundl.texi: Mention roundl module.
53560         * MODULES.html.sh: Mention new modules.
53561         Thanks to Bruno Haible for suggestions.
53562
53563 2007-10-20  Jim Meyering  <meyering@redhat.com>
53564
53565         * lib/xprintf.c: Include <config.h> unconditionally.
53566
53567         Change xprintf's license to GPL.
53568         * modules/xprintf (License): s/LGPL/GPL/, since this module
53569         depends on modules (exit and exitfail) which are GPL.
53570         Suggestion from Bruno Haible.
53571
53572         xprintf fixes.
53573         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53574         Use a clearer diagnostic.
53575         Patch from Bruno Haible.
53576
53577 2007-10-20  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53580         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53582
53583 2007-10-20  Bruno Haible  <bruno@clisp.org>
53584
53585         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53586         precision in the comparison result > x - 1 or similar.
53587         * tests/test-ceilf2.c (correct_result_p): Likewise.
53588         * tests/test-truncf2.c (correct_result_p): Likewise.
53589         * tests/test-trunc2.c (correct_result_p): Likewise.
53590         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53591
53592 2007-10-20  Bruno Haible  <bruno@clisp.org>
53593
53594         * modules/ceil: New file.
53595         * m4/ceil.m4: New file.
53596         * doc/functions/ceil.texi: Mention the 'ceil' module.
53597
53598 2007-10-20  Bruno Haible  <bruno@clisp.org>
53599
53600         * modules/floor: New file.
53601         * m4/floor.m4: New file.
53602         * doc/functions/floor.texi: Mention the 'floor' module.
53603
53604 2007-10-20  Bruno Haible  <bruno@clisp.org>
53605
53606         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53607         of %a.
53608         * modules/floorf-tests (Depends-on): Likewise.
53609         * modules/truncf-tests (Depends-on): Likewise.
53610         * modules/trunc-tests (Depends-on): Likewise.
53611         Reported by Ben Pfaff.
53612
53613 2007-10-19  Jim Meyering  <meyering@redhat.com>
53614
53615         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53616         Don't bother testing specific errno values.  Just test ferror.
53617
53618         New module: xprintf
53619         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53620
53621 2007-10-19  Bruno Haible  <bruno@clisp.org>
53622
53623         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53624         syntax.
53625         * modules/javaexec (Makefile.am): Likewise.
53626         * modules/relocatable-prog (Makefile.am): Likewise.
53627         Suggested by Jim Meyering.
53628
53629 2007-10-18  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53632         Reported by Jim Meyering.
53633
53634 2007-10-18  Eric Blake  <ebb9@byu.net>
53635
53636         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53637
53638 2007-10-18  Bruno Haible  <bruno@clisp.org>
53639
53640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53641         the format string into writable memory. Needed in Fortify conditions.
53642
53643 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53644             Bruno Haible  <bruno@clisp.org>
53645
53646         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53647         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53648         * modules/trim (Depends-on): Add mbchar.
53649         (configure.ac): Add gl_FUNC_MBRTOWC.
53650         (Makefile.am): Augment lib_SOURCES.
53651
53652 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53653
53654         Modify glob.c to use fstatat and dirfd, to simplify it.
53655         Suggested by Eric Blake.
53656         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53657         Don't include <stdbool.h>; not used.
53658         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53659         (link_exists_p): Simplify implementation, since we can now assume
53660         dirfd and fstatat.
53661         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53662
53663 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53664
53665         * gnulib-tool (func_get_dependencies): Fix sed script to
53666         match only tests.
53667
53668 2007-10-17  Bruno Haible  <bruno@clisp.org>
53669
53670         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53671         allow locale names without encoding suffix.
53672         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53674
53675 2007-10-16  Bruno Haible  <bruno@clisp.org>
53676
53677         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53678         * lib/getgroups.c (getgroups): Likewise.
53679         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53680
53681 2007-10-16  Bruno Haible  <bruno@clisp.org>
53682
53683         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53684         * modules/malloc-posix (License): Likewise.
53685         * modules/realloc-posix (License): Likewise.
53686         * modules/calloc-posix (License): Likewise.
53687         * modules/intprops (License): Change from GPL to LGPL, with
53688         Paul Eggert's approval.
53689
53690 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         Merge glibc changes into lib/glob.c.
53693
53694         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53695         2007-10-15 04:59:03 UTC.  Here are the changes:
53696
53697         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53698
53699         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53700
53701         * lib/glob.c: Add some branch prediction throughout.
53702
53703         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53704
53705         [BZ #5103]
53706         * lib/glob.c (glob): Recognize patterns starting \/.
53707
53708         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53709
53710         [BZ #3996]
53711         * lib/glob.c (attribute_hidden): Define if not defined.
53712         (glob): Unescape dirname, filename or username when needed and not
53713         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53714         is NULL.  Handle unescaped [ in pattern without closing ].
53715         Don't pass GLOB_CHECK down to recursive glob for directories.
53716         (__glob_pattern_type): New function.
53717         (__glob_pattern_p): Implement using __glob_pattern_type.
53718         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53719         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53720         Remove unreachable code.
53721
53722         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53723
53724         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53725         explain why there are no leaks.
53726
53727         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53728
53729         [BZ #3253]
53730         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53731         time, rather allocate increasingly bigger arrays of pointers, if
53732         possible with alloca, if too large with malloc.
53733
53734 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53737         Problem reported by H.Merijn Brand in
53738         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53739         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53740         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53741
53742 2007-10-15  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53745         with explicit rpl_ prefix.
53746         * lib/fopen.c (fopen): Likewise.
53747         * lib/freopen.c (freopen): Likewise.
53748         * lib/iconv.c (iconv): Likewise.
53749         * lib/iconv_close.c (iconv_close): Likewise.
53750
53751 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53752
53753         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53754
53755 2007-10-15  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53758         <stddef.h> instead of <stdlib.h> since we only need NULL.
53759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53760
53761 2007-10-15  Bruno Haible  <bruno@clisp.org>
53762
53763         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53764         Replace paragraph talking about LIBOBJS.
53765         Reported by Colin Watson <cjwatson@debian.org>.
53766
53767 2007-10-15  Bruno Haible  <bruno@clisp.org>
53768
53769         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53770         <stdlib.h> before using NULL.
53771
53772 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53773
53774         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53775         Reported by Albert Chin <china@thewrittenword.com>.
53776
53777 2007-10-14  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/iconv_open-utf-tests: New file.
53780         * tests/test-iconv-utf.c: New file.
53781
53782         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53783         * modules/iconv_open-utf: New file.
53784         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53785         (iconv, iconv_close): New declarations.
53786         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53787         be defined.
53788         (iconv_open): Add special handling of conversion between UTF-8 and
53789         UTF-{16,32}{BE,LE}.
53790         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53791         * lib/iconv_close.c: New file.
53792         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53793         gl_FUNC_ICONV_OPEN.
53794         (gl_FUNC_ICONV_OPEN): Use it.
53795         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53796         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53797         and REPLACE_ICONV_UTF.
53798         * modules/iconv_open (Depends-on): Add c-strcase.
53799         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53800         ICONV_CONST.
53801         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53802
53803 2007-10-13  Albert Chin  <china@thewrittenword.com>
53804             Bruno Haible  <bruno@clisp.org>
53805
53806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53807         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53808
53809 2007-10-13  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53812         defined, use the ISO C99 inline semantics.
53813         * lib/argp.h (ARGP_EI): Likewise.
53814
53815 2007-10-13  Bruno Haible  <bruno@clisp.org>
53816
53817         Handle 'inline' change in gcc 4.3.0.
53818         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53819         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53820         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53821         argp_fmtstream_point): Disable 'extern' declaration if the function
53822         definition is going to be provided inline.
53823         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53824         semantics, not the ISO C99 inline semantics.
53825         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53826         'extern' declaration if the function definition is going to be provided
53827         inline.
53828         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53829         the GNU C inline semantics, not the ISO C99 inline semantics. With
53830         GCC 4.2, avoid a warning.
53831
53832 2007-10-13  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/freading.h (freading): Enable the use of __freading for
53835         glibc >= 2.7.
53836         * lib/freading.c (freading): Likewise.
53837
53838 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53839
53840         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53841         "warning: C99 inline functions are not supported; using GNU89".
53842
53843 2007-10-12  Bruno Haible  <bruno@clisp.org>
53844
53845         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53846         of 2.
53847         * tests/test-ceilf2.c: New file.
53848         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53849
53850         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53851         * modules/ceilf-tests: Update.
53852
53853 2007-10-12  Bruno Haible  <bruno@clisp.org>
53854
53855         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53856         of 2.
53857         * tests/test-floorf2.c: New file.
53858         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53859
53860         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53861         * modules/floorf-tests: Update.
53862
53863 2007-10-12  Bruno Haible  <bruno@clisp.org>
53864
53865         * tests/test-trunc2.c: New file.
53866         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53867
53868         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53869         * modules/trunc-tests: Update.
53870
53871 2007-10-12  Bruno Haible  <bruno@clisp.org>
53872
53873         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53874         of 2.
53875         * tests/test-truncf2.c: New file.
53876         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53877
53878         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53879         * modules/truncf-tests: Update.
53880
53881 2007-10-11  Eric Blake  <ebb9@byu.net>
53882
53883         Don't claim strerror is broken on Interix.
53884         * doc/functions/strerror.texi (strerror): Known broken systems are
53885         now Solaris 8, and not Interix.
53886         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53887         Interix on cross-compile.
53888         Reported by Martin Koeppe in
53889         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53890
53891 2007-10-11  Bruno Haible  <bruno@clisp.org>
53892
53893         * modules/i-ring-tests: New file.
53894         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53895         instead of assert.
53896
53897 2007-10-11  Bruno Haible  <bruno@clisp.org>
53898
53899         * modules/filenamecat-tests: New file.
53900         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53901         * lib/filenamecat.c: Remove test code.
53902
53903 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53904
53905         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53906
53907         * lib/strerror.c: Include <string.h> always, to test interface,
53908         and to remove the need for the dummy.
53909         Include intprops.h to compute width instead of doing it ourselves
53910         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53911         (strerror): Define it to return NULL if there's no system strerror.
53912         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53913         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53914         ancient pre-strerror Unix systems well any more.  Saying "unknown
53915         system error" is enough.
53916         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53917         simpler strerror.c implementation.
53918         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53919         Simplify the tests to reflect the simpler strerror implementation.
53920         * modules/strerror (Depends-on): Add intprops.
53921
53922 2007-10-09  Eric Blake  <ebb9@byu.net>
53923
53924         Silence test-fpending.
53925         * modules/fpending-tests (Files): Add wrapper script.
53926         * tests/test-fpending.sh: New file.
53927
53928 2007-10-09  Bruno Haible  <bruno@clisp.org>
53929
53930         * MODULES.html.sh (func_module): Don't create a hyperlink for
53931         function names like 'printf_frexp'.
53932         (Misc): Add crc, memxor.
53933         (Characteristics of floating types): New section.
53934         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53935         isnanf-nolibm, signbit, trunc, truncf, truncl.
53936         (Enhancements for ISO C 99 functions): New subsection Input/output.
53937         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53938         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53939         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53940         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53941         (Enhancements for POSIX:2001 functions): Add chdir-long.
53942         (File system functions): Add areadlink, chdir-safer, read-file.
53943         Remove cycle-check.
53944         (File system as inode set): New section.
53945         (Date and time): Add gethrxtime.
53946         (Multithreading): Add openmp.
53947         (Internationalization functions): Add localename.
53948         (Unicode string functions): Add unistr/u*-mbsnlen.
53949         (Support for maintaining and releasing projects): Add git-version-gen.
53950         (Lone files): Remove directories.
53951
53952 2007-10-08  Ben Pfaff  <blp@gnu.org>
53953
53954         * lib/xmalloca.h: Fix typo in comment.
53955
53956 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53959         when avoiding problems with integer overflow.  Use a portable test
53960         instead.
53961
53962 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53963
53964         * modules/dummy (License): Change to LGPLv2+.
53965         * modules/float (License): Likewise
53966         * modules/realloc (License): Likewise
53967         * modules/stdlib (License): Likewise
53968
53969 2007-10-07  Bruno Haible  <bruno@clisp.org>
53970
53971         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53972         * floor.c (TWO_MANT_DIG): Likewise.
53973         * ceil.c (TWO_MANT_DIG): Likewise.
53974         Reported by Ben Pfaff.
53975
53976 2007-10-07  Bruno Haible  <bruno@clisp.org>
53977
53978         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53979         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53980         * lib/frexp.c (FUNC): Likewise.
53981         * lib/printf-frexp.h (printf_frexp): Likewise.
53982         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53983         * lib/printf-frexp.c (FUNC): Likewise.
53984         Suggested by Jim Meyering.
53985
53986 2007-10-07  Jim Meyering  <meyering@redhat.com>
53987
53988         Make xnanosleep's integer overflow test more robust.
53989         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53990         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53991
53992 2007-10-07  Bruno Haible  <bruno@clisp.org>
53993
53994         * NEWS: Mention the license change.
53995
53996         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53997         abbreviations in the modules files.
53998
53999         Change copyright notice from GPLv2+ to GPLv3+.
54000         * README: Change copyright notice.
54001         * MODULES.html.sh: Likewise.
54002         * build-aux/bootstrap.conf: Likewise.
54003         * build-aux/config.libpath: Likewise.
54004         * build-aux/csharpcomp.sh.in: Likewise.
54005         * build-aux/csharpexec.sh.in: Likewise.
54006         * build-aux/install-reloc: Likewise.
54007         * build-aux/javacomp.sh.in: Likewise.
54008         * build-aux/javaexec.sh.in: Likewise.
54009         * build-aux/ldd.sh.in: Likewise.
54010         * build-aux/reloc-ldflags: Likewise.
54011         * build-aux/relocatable.sh.in: Likewise.
54012         * build-aux/x-to-1.in: Likewise.
54013         * check-module: Likewise.
54014         * config/srclistvars.sh: Likewise.
54015         * gnulib-tool: Likewise.
54016         * lib/acl-internal.h: Likewise.
54017         * lib/acl.c: Likewise.
54018         * lib/acl.h: Likewise.
54019         * lib/acl_entries.c: Likewise.
54020         * lib/areadlink-with-size.c: Likewise.
54021         * lib/areadlink.c: Likewise.
54022         * lib/areadlink.h: Likewise.
54023         * lib/argmatch.c: Likewise.
54024         * lib/argmatch.h: Likewise.
54025         * lib/argp-ba.c: Likewise.
54026         * lib/argp-eexst.c: Likewise.
54027         * lib/argp-fmtstream.c: Likewise.
54028         * lib/argp-fmtstream.h: Likewise.
54029         * lib/argp-fs-xinl.c: Likewise.
54030         * lib/argp-help.c: Likewise.
54031         * lib/argp-namefrob.h: Likewise.
54032         * lib/argp-parse.c: Likewise.
54033         * lib/argp-pin.c: Likewise.
54034         * lib/argp-pv.c: Likewise.
54035         * lib/argp-pvh.c: Likewise.
54036         * lib/argp-xinl.c: Likewise.
54037         * lib/argp.h: Likewise.
54038         * lib/at-func.c: Likewise.
54039         * lib/atanl.c: Likewise.
54040         * lib/backupfile.c: Likewise.
54041         * lib/backupfile.h: Likewise.
54042         * lib/basename.c: Likewise.
54043         * lib/binary-io.h: Likewise.
54044         * lib/byteswap.in.h: Likewise.
54045         * lib/c-stack.c: Likewise.
54046         * lib/c-stack.h: Likewise.
54047         * lib/c-strcasestr.c: Likewise.
54048         * lib/c-strcasestr.h: Likewise.
54049         * lib/c-strstr.c: Likewise.
54050         * lib/c-strstr.h: Likewise.
54051         * lib/c-strtod.c: Likewise.
54052         * lib/calloc.c: Likewise.
54053         * lib/canon-host.c: Likewise.
54054         * lib/canon-host.h: Likewise.
54055         * lib/canonicalize-lgpl.c: Likewise.
54056         * lib/canonicalize.c: Likewise.
54057         * lib/canonicalize.h: Likewise.
54058         * lib/ceil.c: Likewise.
54059         * lib/ceilf.c: Likewise.
54060         * lib/ceill.c: Likewise.
54061         * lib/chdir-long.c: Likewise.
54062         * lib/chdir-long.h: Likewise.
54063         * lib/chdir-safer.c: Likewise.
54064         * lib/chdir-safer.h: Likewise.
54065         * lib/chown.c: Likewise.
54066         * lib/classpath.c: Likewise.
54067         * lib/classpath.h: Likewise.
54068         * lib/clean-temp.c: Likewise.
54069         * lib/clean-temp.h: Likewise.
54070         * lib/cloexec.c: Likewise.
54071         * lib/close-stream.c: Likewise.
54072         * lib/closein.c: Likewise.
54073         * lib/closein.h: Likewise.
54074         * lib/closeout.c: Likewise.
54075         * lib/closeout.h: Likewise.
54076         * lib/concat-filename.c: Likewise.
54077         * lib/copy-file.c: Likewise.
54078         * lib/copy-file.h: Likewise.
54079         * lib/count-one-bits.h: Likewise.
54080         * lib/crc.c: Likewise.
54081         * lib/crc.h: Likewise.
54082         * lib/creat-safer.c: Likewise.
54083         * lib/csharpcomp.c: Likewise.
54084         * lib/csharpcomp.h: Likewise.
54085         * lib/csharpexec.c: Likewise.
54086         * lib/csharpexec.h: Likewise.
54087         * lib/cycle-check.c: Likewise.
54088         * lib/cycle-check.h: Likewise.
54089         * lib/diacrit.c: Likewise.
54090         * lib/diacrit.h: Likewise.
54091         * lib/diffseq.h: Likewise.
54092         * lib/dirchownmod.c: Likewise.
54093         * lib/dirent.in.h: Likewise.
54094         * lib/dirfd.c: Likewise.
54095         * lib/dirfd.h: Likewise.
54096         * lib/dirname.c: Likewise.
54097         * lib/dirname.h: Likewise.
54098         * lib/dummy.c: Likewise.
54099         * lib/dup-safer.c: Likewise.
54100         * lib/dup2.c: Likewise.
54101         * lib/eealloc.h: Likewise.
54102         * lib/error.c: Likewise.
54103         * lib/error.h: Likewise.
54104         * lib/euidaccess.c: Likewise.
54105         * lib/exclude.c: Likewise.
54106         * lib/exclude.h: Likewise.
54107         * lib/execute.c: Likewise.
54108         * lib/execute.h: Likewise.
54109         * lib/exitfail.c: Likewise.
54110         * lib/exitfail.h: Likewise.
54111         * lib/expl.c: Likewise.
54112         * lib/fatal-signal.c: Likewise.
54113         * lib/fatal-signal.h: Likewise.
54114         * lib/fbufmode.c: Likewise.
54115         * lib/fbufmode.h: Likewise.
54116         * lib/fchdir.c: Likewise.
54117         * lib/fchmodat.c: Likewise.
54118         * lib/fchownat.c: Likewise.
54119         * lib/fcntl--.h: Likewise.
54120         * lib/fcntl-safer.h: Likewise.
54121         * lib/fcntl.in.h: Likewise.
54122         * lib/fd-safer.c: Likewise.
54123         * lib/fflush.c: Likewise.
54124         * lib/file-has-acl.c: Likewise.
54125         * lib/file-set.c: Likewise.
54126         * lib/file-type.c: Likewise.
54127         * lib/file-type.h: Likewise.
54128         * lib/fileblocks.c: Likewise.
54129         * lib/filemode.c: Likewise.
54130         * lib/filemode.h: Likewise.
54131         * lib/filename.h: Likewise.
54132         * lib/filenamecat.c: Likewise.
54133         * lib/filenamecat.h: Likewise.
54134         * lib/findprog.c: Likewise.
54135         * lib/findprog.h: Likewise.
54136         * lib/float.in.h: Likewise.
54137         * lib/floor.c: Likewise.
54138         * lib/floorf.c: Likewise.
54139         * lib/floorl.c: Likewise.
54140         * lib/fopen-safer.c: Likewise.
54141         * lib/fopen.c: Likewise.
54142         * lib/fpending.c: Likewise.
54143         * lib/fpending.h: Likewise.
54144         * lib/fprintf.c: Likewise.
54145         * lib/fprintftime.h: Likewise.
54146         * lib/fpucw.h: Likewise.
54147         * lib/fpurge.c: Likewise.
54148         * lib/fpurge.h: Likewise.
54149         * lib/freadable.c: Likewise.
54150         * lib/freadable.h: Likewise.
54151         * lib/freadahead.c: Likewise.
54152         * lib/freadahead.h: Likewise.
54153         * lib/freading.c: Likewise.
54154         * lib/freading.h: Likewise.
54155         * lib/free.c: Likewise.
54156         * lib/freopen.c: Likewise.
54157         * lib/frexp.c: Likewise.
54158         * lib/frexpl.c: Likewise.
54159         * lib/fseek.c: Likewise.
54160         * lib/fseterr.c: Likewise.
54161         * lib/fseterr.h: Likewise.
54162         * lib/fstatat.c: Likewise.
54163         * lib/fstrcmp.c: Likewise.
54164         * lib/fstrcmp.h: Likewise.
54165         * lib/fsusage.c: Likewise.
54166         * lib/fsusage.h: Likewise.
54167         * lib/ftell.c: Likewise.
54168         * lib/ftello.c: Likewise.
54169         * lib/fts-cycle.c: Likewise.
54170         * lib/fts.c: Likewise.
54171         * lib/fts_.h: Likewise.
54172         * lib/full-read.c: Likewise.
54173         * lib/full-read.h: Likewise.
54174         * lib/full-write.c: Likewise.
54175         * lib/full-write.h: Likewise.
54176         * lib/fwritable.c: Likewise.
54177         * lib/fwritable.h: Likewise.
54178         * lib/fwriteerror.c: Likewise.
54179         * lib/fwriteerror.h: Likewise.
54180         * lib/fwriting.c: Likewise.
54181         * lib/fwriting.h: Likewise.
54182         * lib/gcd.c: Likewise.
54183         * lib/gcd.h: Likewise.
54184         * lib/getcwd.c: Likewise.
54185         * lib/getdate.h: Likewise.
54186         * lib/getdate.y: Likewise.
54187         * lib/getdomainname.c: Likewise.
54188         * lib/getdomainname.h: Likewise.
54189         * lib/getgroups.c: Likewise.
54190         * lib/gethostname.c: Likewise.
54191         * lib/gethrxtime.c: Likewise.
54192         * lib/gethrxtime.h: Likewise.
54193         * lib/getloadavg.c: Likewise.
54194         * lib/getndelim2.c: Likewise.
54195         * lib/getndelim2.h: Likewise.
54196         * lib/getnline.c: Likewise.
54197         * lib/getnline.h: Likewise.
54198         * lib/getopt.c: Likewise.
54199         * lib/getopt.in.h: Likewise.
54200         * lib/getopt1.c: Likewise.
54201         * lib/getopt_int.h: Likewise.
54202         * lib/getpagesize.h: Likewise.
54203         * lib/getsubopt.c: Likewise.
54204         * lib/gettime.c: Likewise.
54205         * lib/getugroups.c: Likewise.
54206         * lib/getugroups.h: Likewise.
54207         * lib/getusershell.c: Likewise.
54208         * lib/gl_anyavltree_list1.h: Likewise.
54209         * lib/gl_anyavltree_list2.h: Likewise.
54210         * lib/gl_anyhash_list1.h: Likewise.
54211         * lib/gl_anyhash_list2.h: Likewise.
54212         * lib/gl_anylinked_list1.h: Likewise.
54213         * lib/gl_anylinked_list2.h: Likewise.
54214         * lib/gl_anyrbtree_list1.h: Likewise.
54215         * lib/gl_anyrbtree_list2.h: Likewise.
54216         * lib/gl_anytree_list1.h: Likewise.
54217         * lib/gl_anytree_list2.h: Likewise.
54218         * lib/gl_anytree_oset.h: Likewise.
54219         * lib/gl_anytreehash_list1.h: Likewise.
54220         * lib/gl_anytreehash_list2.h: Likewise.
54221         * lib/gl_array_list.c: Likewise.
54222         * lib/gl_array_list.h: Likewise.
54223         * lib/gl_array_oset.c: Likewise.
54224         * lib/gl_array_oset.h: Likewise.
54225         * lib/gl_avltree_list.c: Likewise.
54226         * lib/gl_avltree_list.h: Likewise.
54227         * lib/gl_avltree_oset.c: Likewise.
54228         * lib/gl_avltree_oset.h: Likewise.
54229         * lib/gl_avltreehash_list.c: Likewise.
54230         * lib/gl_avltreehash_list.h: Likewise.
54231         * lib/gl_carray_list.c: Likewise.
54232         * lib/gl_carray_list.h: Likewise.
54233         * lib/gl_linked_list.c: Likewise.
54234         * lib/gl_linked_list.h: Likewise.
54235         * lib/gl_linkedhash_list.c: Likewise.
54236         * lib/gl_linkedhash_list.h: Likewise.
54237         * lib/gl_list.c: Likewise.
54238         * lib/gl_list.h: Likewise.
54239         * lib/gl_oset.c: Likewise.
54240         * lib/gl_oset.h: Likewise.
54241         * lib/gl_rbtree_list.c: Likewise.
54242         * lib/gl_rbtree_list.h: Likewise.
54243         * lib/gl_rbtree_oset.c: Likewise.
54244         * lib/gl_rbtree_oset.h: Likewise.
54245         * lib/gl_rbtreehash_list.c: Likewise.
54246         * lib/gl_rbtreehash_list.h: Likewise.
54247         * lib/gl_sublist.c: Likewise.
54248         * lib/gl_sublist.h: Likewise.
54249         * lib/group-member.c: Likewise.
54250         * lib/group-member.h: Likewise.
54251         * lib/hard-locale.c: Likewise.
54252         * lib/hard-locale.h: Likewise.
54253         * lib/hash-pjw.c: Likewise.
54254         * lib/hash-pjw.h: Likewise.
54255         * lib/hash-triple.c: Likewise.
54256         * lib/hash.c: Likewise.
54257         * lib/hash.h: Likewise.
54258         * lib/human.c: Likewise.
54259         * lib/human.h: Likewise.
54260         * lib/i-ring.c: Likewise.
54261         * lib/i-ring.h: Likewise.
54262         * lib/idcache.c: Likewise.
54263         * lib/imaxabs.c: Likewise.
54264         * lib/imaxdiv.c: Likewise.
54265         * lib/inet_pton.c: Likewise.
54266         * lib/inet_pton.h: Likewise.
54267         * lib/intprops.h: Likewise.
54268         * lib/inttostr.c: Likewise.
54269         * lib/inttostr.h: Likewise.
54270         * lib/inttypes.in.h: Likewise.
54271         * lib/isapipe.c: Likewise.
54272         * lib/isdir.c: Likewise.
54273         * lib/isnan.c: Likewise.
54274         * lib/isnan.h: Likewise.
54275         * lib/isnanf.c: Likewise.
54276         * lib/isnanf.h: Likewise.
54277         * lib/isnanl-nolibm.h: Likewise.
54278         * lib/isnanl.c: Likewise.
54279         * lib/isnanl.h: Likewise.
54280         * lib/javacomp.c: Likewise.
54281         * lib/javacomp.h: Likewise.
54282         * lib/javaexec.c: Likewise.
54283         * lib/javaexec.h: Likewise.
54284         * lib/javaversion.c: Likewise.
54285         * lib/javaversion.h: Likewise.
54286         * lib/javaversion.java: Likewise.
54287         * lib/lbrkprop.h: Likewise.
54288         * lib/lchmod.h: Likewise.
54289         * lib/lchown.c: Likewise.
54290         * lib/ldexpl.c: Likewise.
54291         * lib/linebreak.c: Likewise.
54292         * lib/linebreak.h: Likewise.
54293         * lib/linebuffer.c: Likewise.
54294         * lib/linebuffer.h: Likewise.
54295         * lib/locale.in.h: Likewise.
54296         * lib/logl.c: Likewise.
54297         * lib/long-options.c: Likewise.
54298         * lib/long-options.h: Likewise.
54299         * lib/lstat.c: Likewise.
54300         * lib/lstat.h: Likewise.
54301         * lib/math.in.h: Likewise.
54302         * lib/mbchar.c: Likewise.
54303         * lib/mbchar.h: Likewise.
54304         * lib/mbfile.h: Likewise.
54305         * lib/mbiter.h: Likewise.
54306         * lib/mbscasecmp.c: Likewise.
54307         * lib/mbscasestr.c: Likewise.
54308         * lib/mbschr.c: Likewise.
54309         * lib/mbscspn.c: Likewise.
54310         * lib/mbslen.c: Likewise.
54311         * lib/mbsncasecmp.c: Likewise.
54312         * lib/mbsnlen.c: Likewise.
54313         * lib/mbspbrk.c: Likewise.
54314         * lib/mbspcasecmp.c: Likewise.
54315         * lib/mbsrchr.c: Likewise.
54316         * lib/mbssep.c: Likewise.
54317         * lib/mbsspn.c: Likewise.
54318         * lib/mbsstr.c: Likewise.
54319         * lib/mbstok_r.c: Likewise.
54320         * lib/mbswidth.c: Likewise.
54321         * lib/mbswidth.h: Likewise.
54322         * lib/mbuiter.h: Likewise.
54323         * lib/memcasecmp.c: Likewise.
54324         * lib/memcasecmp.h: Likewise.
54325         * lib/memchr.c: Likewise.
54326         * lib/memcmp.c: Likewise.
54327         * lib/memcoll.c: Likewise.
54328         * lib/memcoll.h: Likewise.
54329         * lib/memcpy.c: Likewise.
54330         * lib/memrchr.c: Likewise.
54331         * lib/mkancesdirs.c: Likewise.
54332         * lib/mkdir-p.c: Likewise.
54333         * lib/mkdir-p.h: Likewise.
54334         * lib/mkdir.c: Likewise.
54335         * lib/mkdirat.c: Likewise.
54336         * lib/mkdtemp.c: Likewise.
54337         * lib/mkstemp-safer.c: Likewise.
54338         * lib/mkstemp.c: Likewise.
54339         * lib/modechange.c: Likewise.
54340         * lib/modechange.h: Likewise.
54341         * lib/mountlist.c: Likewise.
54342         * lib/mountlist.h: Likewise.
54343         * lib/mpsort.c: Likewise.
54344         * lib/nanosleep.c: Likewise.
54345         * lib/obstack.c: Likewise.
54346         * lib/obstack.h: Likewise.
54347         * lib/open-safer.c: Likewise.
54348         * lib/open.c: Likewise.
54349         * lib/openat-die.c: Likewise.
54350         * lib/openat-priv.h: Likewise.
54351         * lib/openat-proc.c: Likewise.
54352         * lib/openat.c: Likewise.
54353         * lib/openat.h: Likewise.
54354         * lib/pagealign_alloc.c: Likewise.
54355         * lib/pagealign_alloc.h: Likewise.
54356         * lib/physmem.c: Likewise.
54357         * lib/physmem.h: Likewise.
54358         * lib/pipe-safer.c: Likewise.
54359         * lib/pipe.c: Likewise.
54360         * lib/pipe.h: Likewise.
54361         * lib/posixtm.c: Likewise.
54362         * lib/posixtm.h: Likewise.
54363         * lib/posixver.c: Likewise.
54364         * lib/printf-frexp.c: Likewise.
54365         * lib/printf-frexp.h: Likewise.
54366         * lib/printf-frexpl.c: Likewise.
54367         * lib/printf-frexpl.h: Likewise.
54368         * lib/printf.c: Likewise.
54369         * lib/progname.c: Likewise.
54370         * lib/progname.h: Likewise.
54371         * lib/progreloc.c: Likewise.
54372         * lib/putenv.c: Likewise.
54373         * lib/quote.c: Likewise.
54374         * lib/quote.h: Likewise.
54375         * lib/quotearg.c: Likewise.
54376         * lib/quotearg.h: Likewise.
54377         * lib/raise.c: Likewise.
54378         * lib/readline.c: Likewise.
54379         * lib/readline.h: Likewise.
54380         * lib/readlink.c: Likewise.
54381         * lib/readtokens.c: Likewise.
54382         * lib/readtokens.h: Likewise.
54383         * lib/readtokens0.c: Likewise.
54384         * lib/readtokens0.h: Likewise.
54385         * lib/readutmp.c: Likewise.
54386         * lib/readutmp.h: Likewise.
54387         * lib/realloc.c: Likewise.
54388         * lib/relocwrapper.c: Likewise.
54389         * lib/rename-dest-slash.c: Likewise.
54390         * lib/rename.c: Likewise.
54391         * lib/rmdir.c: Likewise.
54392         * lib/rpmatch.c: Likewise.
54393         * lib/safe-read.c: Likewise.
54394         * lib/safe-read.h: Likewise.
54395         * lib/safe-write.c: Likewise.
54396         * lib/safe-write.h: Likewise.
54397         * lib/same-inode.h: Likewise.
54398         * lib/same.c: Likewise.
54399         * lib/same.h: Likewise.
54400         * lib/save-cwd.c: Likewise.
54401         * lib/save-cwd.h: Likewise.
54402         * lib/savedir.c: Likewise.
54403         * lib/savedir.h: Likewise.
54404         * lib/savewd.c: Likewise.
54405         * lib/savewd.h: Likewise.
54406         * lib/search.in.h: Likewise.
54407         * lib/setenv.c: Likewise.
54408         * lib/setenv.h: Likewise.
54409         * lib/settime.c: Likewise.
54410         * lib/sh-quote.c: Likewise.
54411         * lib/sh-quote.h: Likewise.
54412         * lib/sig2str.c: Likewise.
54413         * lib/sig2str.h: Likewise.
54414         * lib/signal.in.h: Likewise.
54415         * lib/signbitd.c: Likewise.
54416         * lib/signbitf.c: Likewise.
54417         * lib/signbitl.c: Likewise.
54418         * lib/sigprocmask.c: Likewise.
54419         * lib/sincosl.c: Likewise.
54420         * lib/sleep.c: Likewise.
54421         * lib/sprintf.c: Likewise.
54422         * lib/sqrtl.c: Likewise.
54423         * lib/stat-time.h: Likewise.
54424         * lib/stdio--.h: Likewise.
54425         * lib/stdio-safer.h: Likewise.
54426         * lib/stdlib--.h: Likewise.
54427         * lib/stdlib-safer.h: Likewise.
54428         * lib/stdlib.in.h: Likewise.
54429         * lib/stpcpy.c: Likewise.
54430         * lib/stpncpy.c: Likewise.
54431         * lib/strchrnul.c: Likewise.
54432         * lib/strcspn.c: Likewise.
54433         * lib/strerror.c: Likewise.
54434         * lib/strftime.c: Likewise.
54435         * lib/strftime.h: Likewise.
54436         * lib/striconveh.c: Likewise.
54437         * lib/striconveh.h: Likewise.
54438         * lib/striconveha.c: Likewise.
54439         * lib/striconveha.h: Likewise.
54440         * lib/stripslash.c: Likewise.
54441         * lib/strnlen1.c: Likewise.
54442         * lib/strnlen1.h: Likewise.
54443         * lib/strtod.c: Likewise.
54444         * lib/strtoimax.c: Likewise.
54445         * lib/strtok_r.c: Likewise.
54446         * lib/strtol.c: Likewise.
54447         * lib/strtoll.c: Likewise.
54448         * lib/strtoul.c: Likewise.
54449         * lib/strtoull.c: Likewise.
54450         * lib/sysexits.in.h: Likewise.
54451         * lib/tempname.c: Likewise.
54452         * lib/tempname.h: Likewise.
54453         * lib/timespec.h: Likewise.
54454         * lib/tls.c: Likewise.
54455         * lib/tls.h: Likewise.
54456         * lib/tmpdir.c: Likewise.
54457         * lib/tmpdir.h: Likewise.
54458         * lib/tmpfile-safer.c: Likewise.
54459         * lib/tmpfile.c: Likewise.
54460         * lib/trigl.c: Likewise.
54461         * lib/trigl.h: Likewise.
54462         * lib/trim.c: Likewise.
54463         * lib/trim.h: Likewise.
54464         * lib/trunc.c: Likewise.
54465         * lib/truncf.c: Likewise.
54466         * lib/truncl.c: Likewise.
54467         * lib/tsearch.c: Likewise.
54468         * lib/unicodeio.c: Likewise.
54469         * lib/unicodeio.h: Likewise.
54470         * lib/unistd--.h: Likewise.
54471         * lib/unistd-safer.h: Likewise.
54472         * lib/unistdio/ulc-fprintf.c: Likewise.
54473         * lib/unistdio/ulc-vfprintf.c: Likewise.
54474         * lib/unlinkdir.c: Likewise.
54475         * lib/unlinkdir.h: Likewise.
54476         * lib/unlocked-io.h: Likewise.
54477         * lib/unsetenv.c: Likewise.
54478         * lib/userspec.c: Likewise.
54479         * lib/utime.c: Likewise.
54480         * lib/utimecmp.c: Likewise.
54481         * lib/utimecmp.h: Likewise.
54482         * lib/utimens.c: Likewise.
54483         * lib/verify.h: Likewise.
54484         * lib/verror.c: Likewise.
54485         * lib/verror.h: Likewise.
54486         * lib/version-etc-fsf.c: Likewise.
54487         * lib/version-etc.c: Likewise.
54488         * lib/version-etc.h: Likewise.
54489         * lib/vfprintf.c: Likewise.
54490         * lib/vprintf.c: Likewise.
54491         * lib/vsprintf.c: Likewise.
54492         * lib/w32spawn.h: Likewise.
54493         * lib/wait-process.c: Likewise.
54494         * lib/wait-process.h: Likewise.
54495         * lib/wcwidth.c: Likewise.
54496         * lib/write-any-file.c: Likewise.
54497         * lib/xalloc-die.c: Likewise.
54498         * lib/xalloc.h: Likewise.
54499         * lib/xasprintf.c: Likewise.
54500         * lib/xgetcwd.c: Likewise.
54501         * lib/xgetcwd.h: Likewise.
54502         * lib/xgetdomainname.c: Likewise.
54503         * lib/xgetdomainname.h: Likewise.
54504         * lib/xgethostname.c: Likewise.
54505         * lib/xmalloc.c: Likewise.
54506         * lib/xmalloca.c: Likewise.
54507         * lib/xmalloca.h: Likewise.
54508         * lib/xmemcoll.c: Likewise.
54509         * lib/xnanosleep.c: Likewise.
54510         * lib/xreadlink.c: Likewise.
54511         * lib/xreadlink.h: Likewise.
54512         * lib/xsetenv.c: Likewise.
54513         * lib/xsetenv.h: Likewise.
54514         * lib/xstriconv.c: Likewise.
54515         * lib/xstriconv.h: Likewise.
54516         * lib/xstrndup.c: Likewise.
54517         * lib/xstrndup.h: Likewise.
54518         * lib/xstrtod.c: Likewise.
54519         * lib/xstrtod.h: Likewise.
54520         * lib/xstrtol-error.c: Likewise.
54521         * lib/xstrtol.c: Likewise.
54522         * lib/xstrtol.h: Likewise.
54523         * lib/xtime.h: Likewise.
54524         * lib/xvasprintf.c: Likewise.
54525         * lib/xvasprintf.h: Likewise.
54526         * lib/yesno.c: Likewise.
54527         * lib/yesno.h: Likewise.
54528         * posix-modules: Likewise.
54529         * tests/test-alloca-opt.c: Likewise.
54530         * tests/test-arcfour.c: Likewise.
54531         * tests/test-arctwo.c: Likewise.
54532         * tests/test-argmatch.c: Likewise.
54533         * tests/test-argp-2.sh: Likewise.
54534         * tests/test-argp.c: Likewise.
54535         * tests/test-arpa_inet.c: Likewise.
54536         * tests/test-array_list.c: Likewise.
54537         * tests/test-array_oset.c: Likewise.
54538         * tests/test-atexit.c: Likewise.
54539         * tests/test-avltree_list.c: Likewise.
54540         * tests/test-avltree_oset.c: Likewise.
54541         * tests/test-avltreehash_list.c: Likewise.
54542         * tests/test-base64.c: Likewise.
54543         * tests/test-binary-io.c: Likewise.
54544         * tests/test-byteswap.c: Likewise.
54545         * tests/test-c-ctype.c: Likewise.
54546         * tests/test-c-strcasecmp.c: Likewise.
54547         * tests/test-c-strcasestr.c: Likewise.
54548         * tests/test-c-strncasecmp.c: Likewise.
54549         * tests/test-c-strstr.c: Likewise.
54550         * tests/test-canonicalize-lgpl.c: Likewise.
54551         * tests/test-canonicalize.c: Likewise.
54552         * tests/test-carray_list.c: Likewise.
54553         * tests/test-ceilf.c: Likewise.
54554         * tests/test-ceill.c: Likewise.
54555         * tests/test-count-one-bits.c: Likewise.
54556         * tests/test-crc.c: Likewise.
54557         * tests/test-dirname.c: Likewise.
54558         * tests/test-fbufmode.c: Likewise.
54559         * tests/test-fcntl.c: Likewise.
54560         * tests/test-fflush.c: Likewise.
54561         * tests/test-floorf.c: Likewise.
54562         * tests/test-floorl.c: Likewise.
54563         * tests/test-fopen.c: Likewise.
54564         * tests/test-fprintf-posix.c: Likewise.
54565         * tests/test-fprintf-posix.h: Likewise.
54566         * tests/test-fpurge.c: Likewise.
54567         * tests/test-freadable.c: Likewise.
54568         * tests/test-freadahead.c: Likewise.
54569         * tests/test-freading.c: Likewise.
54570         * tests/test-freopen.c: Likewise.
54571         * tests/test-frexp.c: Likewise.
54572         * tests/test-frexpl.c: Likewise.
54573         * tests/test-fseek.c: Likewise.
54574         * tests/test-fseeko.c: Likewise.
54575         * tests/test-fseterr.c: Likewise.
54576         * tests/test-fstrcmp.c: Likewise.
54577         * tests/test-ftell.c: Likewise.
54578         * tests/test-ftello.c: Likewise.
54579         * tests/test-fwritable.c: Likewise.
54580         * tests/test-fwriting.c: Likewise.
54581         * tests/test-getaddrinfo.c: Likewise.
54582         * tests/test-getpass.c: Likewise.
54583         * tests/test-gettimeofday.c: Likewise.
54584         * tests/test-hmac-md5.c: Likewise.
54585         * tests/test-hmac-sha1.c: Likewise.
54586         * tests/test-iconv.c: Likewise.
54587         * tests/test-iconvme.c: Likewise.
54588         * tests/test-inttypes.c: Likewise.
54589         * tests/test-isnan.c: Likewise.
54590         * tests/test-isnanf.c: Likewise.
54591         * tests/test-isnanl-nolibm.c: Likewise.
54592         * tests/test-isnanl.c: Likewise.
54593         * tests/test-isnanl.h: Likewise.
54594         * tests/test-ldexpl.c: Likewise.
54595         * tests/test-linked_list.c: Likewise.
54596         * tests/test-linkedhash_list.c: Likewise.
54597         * tests/test-locale.c: Likewise.
54598         * tests/test-localename.c: Likewise.
54599         * tests/test-lock.c: Likewise.
54600         * tests/test-lseek.c: Likewise.
54601         * tests/test-malloca.c: Likewise.
54602         * tests/test-math.c: Likewise.
54603         * tests/test-mbscasecmp.c: Likewise.
54604         * tests/test-mbscasestr1.c: Likewise.
54605         * tests/test-mbscasestr2.c: Likewise.
54606         * tests/test-mbscasestr3.c: Likewise.
54607         * tests/test-mbscasestr4.c: Likewise.
54608         * tests/test-mbschr.c: Likewise.
54609         * tests/test-mbscspn.c: Likewise.
54610         * tests/test-mbsncasecmp.c: Likewise.
54611         * tests/test-mbspbrk.c: Likewise.
54612         * tests/test-mbspcasecmp.c: Likewise.
54613         * tests/test-mbsrchr.c: Likewise.
54614         * tests/test-mbsspn.c: Likewise.
54615         * tests/test-mbsstr1.c: Likewise.
54616         * tests/test-mbsstr2.c: Likewise.
54617         * tests/test-mbsstr3.c: Likewise.
54618         * tests/test-md5.c: Likewise.
54619         * tests/test-memmem.c: Likewise.
54620         * tests/test-netinet_in.c: Likewise.
54621         * tests/test-open.c: Likewise.
54622         * tests/test-printf-frexp.c: Likewise.
54623         * tests/test-printf-frexpl.c: Likewise.
54624         * tests/test-printf-posix.c: Likewise.
54625         * tests/test-printf-posix.h: Likewise.
54626         * tests/test-rbtree_list.c: Likewise.
54627         * tests/test-rbtree_oset.c: Likewise.
54628         * tests/test-rbtreehash_list.c: Likewise.
54629         * tests/test-read-file.c: Likewise.
54630         * tests/test-rijndael.c: Likewise.
54631         * tests/test-search.c: Likewise.
54632         * tests/test-signbit.c: Likewise.
54633         * tests/test-sleep.c: Likewise.
54634         * tests/test-snprintf-posix.c: Likewise.
54635         * tests/test-snprintf-posix.h: Likewise.
54636         * tests/test-snprintf.c: Likewise.
54637         * tests/test-sprintf-posix.c: Likewise.
54638         * tests/test-sprintf-posix.h: Likewise.
54639         * tests/test-stat-time.c: Likewise.
54640         * tests/test-stdbool.c: Likewise.
54641         * tests/test-stdint.c: Likewise.
54642         * tests/test-stdio.c: Likewise.
54643         * tests/test-stdlib.c: Likewise.
54644         * tests/test-stpncpy.c: Likewise.
54645         * tests/test-strcasestr.c: Likewise.
54646         * tests/test-striconv.c: Likewise.
54647         * tests/test-striconveh.c: Likewise.
54648         * tests/test-striconveha.c: Likewise.
54649         * tests/test-string.c: Likewise.
54650         * tests/test-sys_select.c: Likewise.
54651         * tests/test-sys_socket.c: Likewise.
54652         * tests/test-sys_stat.c: Likewise.
54653         * tests/test-sys_time.c: Likewise.
54654         * tests/test-sysexits.c: Likewise.
54655         * tests/test-time.c: Likewise.
54656         * tests/test-tls.c: Likewise.
54657         * tests/test-trunc.c: Likewise.
54658         * tests/test-truncf.c: Likewise.
54659         * tests/test-truncl.c: Likewise.
54660         * tests/test-unistd.c: Likewise.
54661         * tests/test-vasnprintf-posix.c: Likewise.
54662         * tests/test-vasnprintf-posix2.c: Likewise.
54663         * tests/test-vasnprintf.c: Likewise.
54664         * tests/test-vasprintf-posix.c: Likewise.
54665         * tests/test-vasprintf.c: Likewise.
54666         * tests/test-verify.c: Likewise.
54667         * tests/test-vfprintf-posix.c: Likewise.
54668         * tests/test-vprintf-posix.c: Likewise.
54669         * tests/test-vsnprintf-posix.c: Likewise.
54670         * tests/test-vsnprintf.c: Likewise.
54671         * tests/test-vsprintf-posix.c: Likewise.
54672         * tests/test-wchar.c: Likewise.
54673         * tests/test-wctype.c: Likewise.
54674         * tests/test-wcwidth.c: Likewise.
54675         * tests/test-xstrtol.c: Likewise.
54676         * tests/test-xvasprintf.c: Likewise.
54677         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54678         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54679         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54680         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54681         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54682         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54683         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54684         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54685         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54686         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54687         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54688         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54689         * tests/uniname/test-uninames.c: Likewise.
54690         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54691         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54692         * tests/unistdio/test-u16-printf1.h: Likewise.
54693         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54694         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54695         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54696         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54697         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54698         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54699         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54700         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54701         * tests/unistdio/test-u32-printf1.h: Likewise.
54702         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54703         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54704         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54705         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54706         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54707         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54708         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54709         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54710         * tests/unistdio/test-u8-printf1.h: Likewise.
54711         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54712         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54713         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54714         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54715         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54716         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54717         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54718         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54719         * tests/unistdio/test-ulc-printf1.h: Likewise.
54720         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54721         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54722         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54723         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54724         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54725         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54726         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54727         * tests/uniwidth/test-u16-width.c: Likewise.
54728         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54729         * tests/uniwidth/test-u32-width.c: Likewise.
54730         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54731         * tests/uniwidth/test-u8-width.c: Likewise.
54732         * tests/uniwidth/test-uc_width.c: Likewise.
54733         * config/srclist-update: Likewise.
54734         (fixlicense): Update to GPLv3+.
54735
54736         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54737         * tests/test-tsearch.c: Change copyright notice.
54738
54739         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54740         * lib/c-strcaseeq.h: Change copyright notice.
54741         * lib/streq.h: Likewise.
54742         * lib/uniconv.h: Likewise.
54743         * lib/uniconv/u-conv-from-enc.h: Likewise.
54744         * lib/uniconv/u-conv-to-enc.h: Likewise.
54745         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54746         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54747         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54748         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54749         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54750         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54751         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54752         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54753         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54754         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54755         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54756         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54757         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54758         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54759         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54760         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54761         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54762         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54763         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54764         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54765         * lib/uniname.h: Likewise.
54766         * lib/uniname/uniname.c: Likewise.
54767         * lib/unistdio.h: Likewise.
54768         * lib/unistdio/u-asnprintf.h: Likewise.
54769         * lib/unistdio/u-asprintf.h: Likewise.
54770         * lib/unistdio/u-printf-args.c: Likewise.
54771         * lib/unistdio/u-printf-args.h: Likewise.
54772         * lib/unistdio/u-printf-parse.h: Likewise.
54773         * lib/unistdio/u-snprintf.h: Likewise.
54774         * lib/unistdio/u-sprintf.h: Likewise.
54775         * lib/unistdio/u-vasprintf.h: Likewise.
54776         * lib/unistdio/u-vsnprintf.h: Likewise.
54777         * lib/unistdio/u-vsprintf.h: Likewise.
54778         * lib/unistdio/u16-asnprintf.c: Likewise.
54779         * lib/unistdio/u16-asprintf.c: Likewise.
54780         * lib/unistdio/u16-printf-parse.c: Likewise.
54781         * lib/unistdio/u16-snprintf.c: Likewise.
54782         * lib/unistdio/u16-sprintf.c: Likewise.
54783         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54784         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54785         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54786         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54787         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54788         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54789         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54790         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54791         * lib/unistdio/u16-vasnprintf.c: Likewise.
54792         * lib/unistdio/u16-vasprintf.c: Likewise.
54793         * lib/unistdio/u16-vsnprintf.c: Likewise.
54794         * lib/unistdio/u16-vsprintf.c: Likewise.
54795         * lib/unistdio/u32-asnprintf.c: Likewise.
54796         * lib/unistdio/u32-asprintf.c: Likewise.
54797         * lib/unistdio/u32-printf-parse.c: Likewise.
54798         * lib/unistdio/u32-snprintf.c: Likewise.
54799         * lib/unistdio/u32-sprintf.c: Likewise.
54800         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54801         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54802         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54803         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54804         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54805         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54806         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54807         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54808         * lib/unistdio/u32-vasnprintf.c: Likewise.
54809         * lib/unistdio/u32-vasprintf.c: Likewise.
54810         * lib/unistdio/u32-vsnprintf.c: Likewise.
54811         * lib/unistdio/u32-vsprintf.c: Likewise.
54812         * lib/unistdio/u8-asnprintf.c: Likewise.
54813         * lib/unistdio/u8-asprintf.c: Likewise.
54814         * lib/unistdio/u8-printf-parse.c: Likewise.
54815         * lib/unistdio/u8-snprintf.c: Likewise.
54816         * lib/unistdio/u8-sprintf.c: Likewise.
54817         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54818         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54819         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54820         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54821         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54822         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54823         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54824         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54825         * lib/unistdio/u8-vasnprintf.c: Likewise.
54826         * lib/unistdio/u8-vasprintf.c: Likewise.
54827         * lib/unistdio/u8-vsnprintf.c: Likewise.
54828         * lib/unistdio/u8-vsprintf.c: Likewise.
54829         * lib/unistdio/ulc-asnprintf.c: Likewise.
54830         * lib/unistdio/ulc-asprintf.c: Likewise.
54831         * lib/unistdio/ulc-printf-parse.c: Likewise.
54832         * lib/unistdio/ulc-snprintf.c: Likewise.
54833         * lib/unistdio/ulc-sprintf.c: Likewise.
54834         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54835         * lib/unistdio/ulc-vasprintf.c: Likewise.
54836         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54837         * lib/unistdio/ulc-vsprintf.c: Likewise.
54838         * lib/unistr.h: Likewise.
54839         * lib/unistr/u-cpy-alloc.h: Likewise.
54840         * lib/unistr/u-cpy.h: Likewise.
54841         * lib/unistr/u-endswith.h: Likewise.
54842         * lib/unistr/u-move.h: Likewise.
54843         * lib/unistr/u-set.h: Likewise.
54844         * lib/unistr/u-startswith.h: Likewise.
54845         * lib/unistr/u-stpcpy.h: Likewise.
54846         * lib/unistr/u-stpncpy.h: Likewise.
54847         * lib/unistr/u-strcat.h: Likewise.
54848         * lib/unistr/u-strcpy.h: Likewise.
54849         * lib/unistr/u-strcspn.h: Likewise.
54850         * lib/unistr/u-strdup.h: Likewise.
54851         * lib/unistr/u-strlen.h: Likewise.
54852         * lib/unistr/u-strncat.h: Likewise.
54853         * lib/unistr/u-strncpy.h: Likewise.
54854         * lib/unistr/u-strnlen.h: Likewise.
54855         * lib/unistr/u-strpbrk.h: Likewise.
54856         * lib/unistr/u-strspn.h: Likewise.
54857         * lib/unistr/u-strstr.h: Likewise.
54858         * lib/unistr/u-strtok.h: Likewise.
54859         * lib/unistr/u16-check.c: Likewise.
54860         * lib/unistr/u16-chr.c: Likewise.
54861         * lib/unistr/u16-cmp.c: Likewise.
54862         * lib/unistr/u16-cpy-alloc.c: Likewise.
54863         * lib/unistr/u16-cpy.c: Likewise.
54864         * lib/unistr/u16-endswith.c: Likewise.
54865         * lib/unistr/u16-mblen.c: Likewise.
54866         * lib/unistr/u16-mbsnlen.c: Likewise.
54867         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54868         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54869         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54870         * lib/unistr/u16-mbtouc.c: Likewise.
54871         * lib/unistr/u16-mbtoucr.c: Likewise.
54872         * lib/unistr/u16-move.c: Likewise.
54873         * lib/unistr/u16-next.c: Likewise.
54874         * lib/unistr/u16-prev.c: Likewise.
54875         * lib/unistr/u16-set.c: Likewise.
54876         * lib/unistr/u16-startswith.c: Likewise.
54877         * lib/unistr/u16-stpcpy.c: Likewise.
54878         * lib/unistr/u16-stpncpy.c: Likewise.
54879         * lib/unistr/u16-strcat.c: Likewise.
54880         * lib/unistr/u16-strchr.c: Likewise.
54881         * lib/unistr/u16-strcmp.c: Likewise.
54882         * lib/unistr/u16-strcpy.c: Likewise.
54883         * lib/unistr/u16-strcspn.c: Likewise.
54884         * lib/unistr/u16-strdup.c: Likewise.
54885         * lib/unistr/u16-strlen.c: Likewise.
54886         * lib/unistr/u16-strmblen.c: Likewise.
54887         * lib/unistr/u16-strmbtouc.c: Likewise.
54888         * lib/unistr/u16-strncat.c: Likewise.
54889         * lib/unistr/u16-strncmp.c: Likewise.
54890         * lib/unistr/u16-strncpy.c: Likewise.
54891         * lib/unistr/u16-strnlen.c: Likewise.
54892         * lib/unistr/u16-strpbrk.c: Likewise.
54893         * lib/unistr/u16-strrchr.c: Likewise.
54894         * lib/unistr/u16-strspn.c: Likewise.
54895         * lib/unistr/u16-strstr.c: Likewise.
54896         * lib/unistr/u16-strtok.c: Likewise.
54897         * lib/unistr/u16-to-u32.c: Likewise.
54898         * lib/unistr/u16-to-u8.c: Likewise.
54899         * lib/unistr/u16-uctomb-aux.c: Likewise.
54900         * lib/unistr/u16-uctomb.c: Likewise.
54901         * lib/unistr/u32-check.c: Likewise.
54902         * lib/unistr/u32-chr.c: Likewise.
54903         * lib/unistr/u32-cmp.c: Likewise.
54904         * lib/unistr/u32-cpy-alloc.c: Likewise.
54905         * lib/unistr/u32-cpy.c: Likewise.
54906         * lib/unistr/u32-endswith.c: Likewise.
54907         * lib/unistr/u32-mblen.c: Likewise.
54908         * lib/unistr/u32-mbsnlen.c: Likewise.
54909         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54910         * lib/unistr/u32-mbtouc.c: Likewise.
54911         * lib/unistr/u32-mbtoucr.c: Likewise.
54912         * lib/unistr/u32-move.c: Likewise.
54913         * lib/unistr/u32-next.c: Likewise.
54914         * lib/unistr/u32-prev.c: Likewise.
54915         * lib/unistr/u32-set.c: Likewise.
54916         * lib/unistr/u32-startswith.c: Likewise.
54917         * lib/unistr/u32-stpcpy.c: Likewise.
54918         * lib/unistr/u32-stpncpy.c: Likewise.
54919         * lib/unistr/u32-strcat.c: Likewise.
54920         * lib/unistr/u32-strchr.c: Likewise.
54921         * lib/unistr/u32-strcmp.c: Likewise.
54922         * lib/unistr/u32-strcpy.c: Likewise.
54923         * lib/unistr/u32-strcspn.c: Likewise.
54924         * lib/unistr/u32-strdup.c: Likewise.
54925         * lib/unistr/u32-strlen.c: Likewise.
54926         * lib/unistr/u32-strmblen.c: Likewise.
54927         * lib/unistr/u32-strmbtouc.c: Likewise.
54928         * lib/unistr/u32-strncat.c: Likewise.
54929         * lib/unistr/u32-strncmp.c: Likewise.
54930         * lib/unistr/u32-strncpy.c: Likewise.
54931         * lib/unistr/u32-strnlen.c: Likewise.
54932         * lib/unistr/u32-strpbrk.c: Likewise.
54933         * lib/unistr/u32-strrchr.c: Likewise.
54934         * lib/unistr/u32-strspn.c: Likewise.
54935         * lib/unistr/u32-strstr.c: Likewise.
54936         * lib/unistr/u32-strtok.c: Likewise.
54937         * lib/unistr/u32-to-u16.c: Likewise.
54938         * lib/unistr/u32-to-u8.c: Likewise.
54939         * lib/unistr/u32-uctomb.c: Likewise.
54940         * lib/unistr/u8-check.c: Likewise.
54941         * lib/unistr/u8-chr.c: Likewise.
54942         * lib/unistr/u8-cmp.c: Likewise.
54943         * lib/unistr/u8-cpy-alloc.c: Likewise.
54944         * lib/unistr/u8-cpy.c: Likewise.
54945         * lib/unistr/u8-endswith.c: Likewise.
54946         * lib/unistr/u8-mblen.c: Likewise.
54947         * lib/unistr/u8-mbsnlen.c: Likewise.
54948         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54949         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54950         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54951         * lib/unistr/u8-mbtouc.c: Likewise.
54952         * lib/unistr/u8-mbtoucr.c: Likewise.
54953         * lib/unistr/u8-move.c: Likewise.
54954         * lib/unistr/u8-next.c: Likewise.
54955         * lib/unistr/u8-prev.c: Likewise.
54956         * lib/unistr/u8-set.c: Likewise.
54957         * lib/unistr/u8-startswith.c: Likewise.
54958         * lib/unistr/u8-stpcpy.c: Likewise.
54959         * lib/unistr/u8-stpncpy.c: Likewise.
54960         * lib/unistr/u8-strcat.c: Likewise.
54961         * lib/unistr/u8-strchr.c: Likewise.
54962         * lib/unistr/u8-strcmp.c: Likewise.
54963         * lib/unistr/u8-strcpy.c: Likewise.
54964         * lib/unistr/u8-strcspn.c: Likewise.
54965         * lib/unistr/u8-strdup.c: Likewise.
54966         * lib/unistr/u8-strlen.c: Likewise.
54967         * lib/unistr/u8-strmblen.c: Likewise.
54968         * lib/unistr/u8-strmbtouc.c: Likewise.
54969         * lib/unistr/u8-strncat.c: Likewise.
54970         * lib/unistr/u8-strncmp.c: Likewise.
54971         * lib/unistr/u8-strncpy.c: Likewise.
54972         * lib/unistr/u8-strnlen.c: Likewise.
54973         * lib/unistr/u8-strpbrk.c: Likewise.
54974         * lib/unistr/u8-strrchr.c: Likewise.
54975         * lib/unistr/u8-strspn.c: Likewise.
54976         * lib/unistr/u8-strstr.c: Likewise.
54977         * lib/unistr/u8-strtok.c: Likewise.
54978         * lib/unistr/u8-to-u16.c: Likewise.
54979         * lib/unistr/u8-to-u32.c: Likewise.
54980         * lib/unistr/u8-uctomb-aux.c: Likewise.
54981         * lib/unistr/u8-uctomb.c: Likewise.
54982         * lib/unitypes.h: Likewise.
54983         * lib/uniwidth.h: Likewise.
54984         * lib/uniwidth/cjk.h: Likewise.
54985         * lib/uniwidth/u16-strwidth.c: Likewise.
54986         * lib/uniwidth/u16-width.c: Likewise.
54987         * lib/uniwidth/u32-strwidth.c: Likewise.
54988         * lib/uniwidth/u32-width.c: Likewise.
54989         * lib/uniwidth/u8-strwidth.c: Likewise.
54990         * lib/uniwidth/u8-width.c: Likewise.
54991         * lib/uniwidth/width.c: Likewise.
54992
54993 2007-10-07  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54996         The file is still under LGPL (see modules/inttypes).
54997
54998 2007-10-06  Bruno Haible  <bruno@clisp.org>
54999
55000         * modules/trunc (Dependencies): Add 'extensions'.
55001         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55002         Reported by Ben Pfaff <blp@gnu.org>.
55003
55004 2007-10-06  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/freopen-tests: New file.
55007         * tests/test-freopen.c: New file.
55008
55009         * modules/fopen-tests: New file.
55010         * tests/test-fopen.c: New file.
55011
55012         * modules/fopen: New file.
55013         * lib/fopen.c: New file.
55014         * m4/fopen.m4: New file.
55015         * modules/freopen: New file.
55016         * lib/freopen.c: New file.
55017         * m4/freopen.m4: New file.
55018         * lib/stdio.in.h (fopen, freopen): New declarations.
55019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55020         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55021         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55022         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55023         * doc/functions/fopen.texi: Mention the 'fopen' module.
55024         * doc/functions/freopen.texi: Mention the 'freopen' module.
55025
55026 2007-10-06  Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/open-tests: New file.
55029         * tests/test-open.c: New file.
55030
55031         * modules/open: New file.
55032         * lib/open.c: New file.
55033         * m4/open.m4: New file.
55034         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55035         lib/open.c does.
55036         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55037         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55038         macros.
55039         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55040         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55041         REPLACE_OPEN.
55042         * doc/functions/open.texi: Mention the 'open' module.
55043
55044 2007-10-04  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/ceill-tests: New file.
55047         * tests/test-ceill.c: New file.
55048
55049         * modules/ceill: New file.
55050         * lib/ceill.c: Replace entire file.
55051         * m4/ceill.m4: New file.
55052         * lib/math.in.h (ceill): Replace declaration.
55053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55054         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55055         * doc/functions/ceill.texi: Mention the 'ceill' module.
55056         * modules/mathl (Files): Remove lib/ceill.c.
55057         (Depends-on): Add ceill.
55058
55059 2007-10-04  Bruno Haible  <bruno@clisp.org>
55060
55061         * modules/ceilf-tests: New file.
55062         * tests/test-ceilf.c: New file.
55063
55064         * modules/ceilf: New file.
55065         * lib/ceil.c: New file.
55066         * lib/ceilf.c: New file.
55067         * m4/ceilf.m4: New file.
55068         * lib/math.in.h (ceilf): New declaration.
55069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55070         HAVE_DECL_CEILF.
55071         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55072         HAVE_DECL_CEILF.
55073         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55074
55075 2007-10-04  Bruno Haible  <bruno@clisp.org>
55076
55077         * modules/floorl-tests: New file.
55078         * tests/test-floorl.c: New file.
55079
55080         * modules/floorl: New file.
55081         * lib/floorl.c: Replace entire file.
55082         * m4/floorl.m4: New file.
55083         * lib/math.in.h (floorl): Replace declaration.
55084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55085         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55086         * doc/functions/floorl.texi: Mention the 'floorl' module.
55087         * modules/mathl (Files): Remove lib/floorl.c.
55088         (Depends-on): Add floorl.
55089
55090 2007-10-04  Bruno Haible  <bruno@clisp.org>
55091
55092         * modules/floorf-tests: New file.
55093         * tests/test-floorf.c: New file.
55094
55095         * modules/floorf: New file.
55096         * lib/floor.c: New file.
55097         * lib/floorf.c: New file.
55098         * m4/floorf.m4: New file.
55099         * lib/math.in.h (floorf): New declaration.
55100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55101         HAVE_DECL_FLOORF.
55102         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55103         HAVE_DECL_FLOORF.
55104         * doc/functions/floorf.texi: Mention the 'floorf' module.
55105
55106 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55107             Bruno Haible  <bruno@clisp.org>
55108
55109         Advertise for the Git server instead of the CVS server.
55110         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55111         repository instead of the CVS one.
55112         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55113         about all VCS systems generically.
55114         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55115
55116 2007-10-04  Bruno Haible  <bruno@clisp.org>
55117
55118         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55119         means.
55120         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55121
55122 2007-10-04  Bruno Haible  <bruno@clisp.org>
55123
55124         * modules/truncl-tests: New file.
55125         * tests/test-truncl.c: New file.
55126
55127         * modules/truncl: New file.
55128         * lib/truncl.c: New file.
55129         * m4/truncl.m4: New file.
55130         * lib/math.in.h (truncl): New declaration.
55131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55132         HAVE_DECL_TRUNCL.
55133         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55134         HAVE_DECL_TRUNCL.
55135         * doc/functions/truncl.texi: Mention the 'truncl' module.
55136
55137 2007-10-04  Bruno Haible  <bruno@clisp.org>
55138
55139         * modules/truncf-tests: New file.
55140         * tests/test-truncf.c: New file.
55141
55142         * modules/truncf: New file.
55143         * lib/trunc.c: Make paramerizable through USE_* macros.
55144         * lib/truncf.c: New file.
55145         * m4/truncf.m4: New file.
55146         * lib/math.in.h (truncf): New declaration.
55147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55148         HAVE_DECL_TRUNCF.
55149         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55150         HAVE_DECL_TRUNCF.
55151         * doc/functions/truncf.texi: Mention the 'truncf' module.
55152
55153 2007-10-03  Bruno Haible  <bruno@clisp.org>
55154
55155         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55156         augmentation also for tests modules.
55157         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55158         * modules/atexit-tests (Makefile.am): Likewise.
55159         * modules/binary-io-tests (Makefile.am): Likewise.
55160         * modules/c-strcase-tests (Makefile.am): Likewise.
55161         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55162         * modules/canonicalize-tests (Makefile.am): Likewise.
55163         * modules/closein-tests (Makefile.am): Likewise.
55164         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55165         * modules/freadahead-tests (Makefile.am): Likewise.
55166         * modules/fseek-tests (Makefile.am): Likewise.
55167         * modules/fseeko-tests (Makefile.am): Likewise.
55168         * modules/ftell-tests (Makefile.am): Likewise.
55169         * modules/ftello-tests (Makefile.am): Likewise.
55170         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55171         * modules/isnanl-tests (Makefile.am): Likewise.
55172         * modules/lseek-tests (Makefile.am): Likewise.
55173         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55174         * modules/mbscasestr-tests (Makefile.am): Likewise.
55175         * modules/mbschr-tests (Makefile.am): Likewise.
55176         * modules/mbscspn-tests (Makefile.am): Likewise.
55177         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55178         * modules/mbspbrk-tests (Makefile.am): Likewise.
55179         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55180         * modules/mbsrchr-tests (Makefile.am): Likewise.
55181         * modules/mbsspn-tests (Makefile.am): Likewise.
55182         * modules/mbsstr-tests (Makefile.am): Likewise.
55183         * modules/printf-posix-tests (Makefile.am): Likewise.
55184         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55185         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55186         * modules/tsearch-tests (Makefile.am): Likewise.
55187         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55188         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55189         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55190         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55191         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55192         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55193         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55194         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55195         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55196         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55197         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55198         * modules/xstrtol-tests (Makefile.am): Likewise.
55199         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55200         * modules/yesno-tests (Makefile.am): Likewise.
55201
55202 2007-10-03  Bruno Haible  <bruno@clisp.org>
55203
55204         * modules/trunc-tests: New file.
55205         * tests/test-trunc.c: New file.
55206
55207         * modules/trunc: New file.
55208         * lib/trunc.c: New file.
55209         * m4/trunc.m4: New file.
55210         * lib/math.in.h (trunc): New declaration.
55211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55212         HAVE_DECL_TRUNC.
55213         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55214         HAVE_DECL_TRUNC.
55215         * doc/functions/trunc.texi: Mention the 'trunc' module.
55216
55217 2007-10-03  Bruno Haible  <bruno@clisp.org>
55218
55219         * tests/test-fpending.c: New file, mostly copied
55220         from coreutils/lib/t-fpending.c.
55221         * modules/fpending-tests: New file.
55222
55223 2007-10-03  Bruno Haible  <bruno@clisp.org>
55224
55225         Port the stdio extensions to QNX (untested).
55226         * lib/fseterr.c (fseterr): Add support for QNX.
55227         * lib/fbufmode.c (fbufmode): Likewise.
55228         * lib/freadable.c (freadable): Likewise.
55229         * lib/fwritable.c (fwritable): Likewise.
55230         * lib/freading.c (freading): Likewise.
55231         * lib/fwriting.c (fwriting): Likewise.
55232         * lib/freadahead.c (freadahed): Likewise.
55233         * lib/fpurge.c (fpurge): Likewise.
55234         * lib/fseeko.c (rpl_fseeko): Likewise.
55235
55236 2007-10-03  Bruno Haible  <bruno@clisp.org>
55237             Jim Meyering  <jim@meyering.net>
55238             Eric Blake  <ebb9@byu.net>
55239
55240         * doc/relocatable.texi: Use @command instead of @program.
55241
55242 2007-10-02  Jim Meyering  <jim@meyering.net>
55243
55244         Perform one more "_.h" -> ".in.h" substitution.
55245         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55246         instead of unistd_.h here, too.
55247
55248 2007-10-01  Bruno Haible  <bruno@clisp.org>
55249
55250         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55251         Needed for the alloca-opt module.
55252
55253 2007-09-30  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55256         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55257         alloca_.h.
55258         * lib/argz.in.h: Renamed from lib/argz_.h.
55259         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55260         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55261         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55262         byteswap_.h.
55263         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55264         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55265         dirent_.h.
55266         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55267         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55268         fcntl_.h.
55269         * lib/float.in.h: Renamed from lib/float_.h.
55270         * modules/float (Files, Makefile.am): Use float.in.h instead of
55271         float_.h.
55272         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55273         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55274         fnmatch_.h.
55275         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55276         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55277         getopt_.h.
55278         * lib/glob.in.h: Renamed from lib/glob_.h.
55279         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55280         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55281         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55282         iconv_.h.
55283         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55284         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55285         inttypes_.h.
55286         * lib/locale.in.h: Renamed from lib/locale_.h.
55287         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55288         locale_.h.
55289         * lib/math.in.h: Renamed from lib/math_.h.
55290         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55291         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55292         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55293         of netinet_in_.h. Add dependency.
55294         * lib/poll.in.h: Renamed from lib/poll_.h.
55295         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55296         * lib/search.in.h: Renamed from lib/search_.h.
55297         * modules/search (Files, Makefile.am): Use search.in.h instead of
55298         search_.h.
55299         * lib/signal.in.h: Renamed from lib/signal_.h.
55300         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55301         _signal.h.
55302         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55303         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55304         stdbool_.h.
55305         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55306         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55307         stdint_.h.
55308         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55309         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55310         stdio_.h.
55311         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55312         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55313         stdlib_.h.
55314         * lib/string.in.h: Renamed from lib/string_.h.
55315         * modules/string (Files, Makefile.am): Use string.in.h instead of
55316         string_.h.
55317         * doc/gnulib-tool.texi (Initial import): Update.
55318         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55319         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55320         of sys_select_.h. Add dependency.
55321         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55322         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55323         of sys_socket_.h.
55324         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55325         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55326         sys_stat_.h.
55327         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55328         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55329         sys_time_.h.
55330         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55331         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55332         sysexits_.h.
55333         * lib/time.in.h: Renamed from lib/time_.h.
55334         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55335         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55336         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55337         unistd_.h.
55338         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55339         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55340         wchar_.h.
55341         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55342         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55343         wctype_.h.
55344         * build-aux/bootstrap (slurp): Update.
55345         * lib/.cppi-disable: Update.
55346
55347 2007-09-30  Bruno Haible  <bruno@clisp.org>
55348
55349         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55350         Needed on BeOS.
55351
55352 2007-09-30  Bruno Haible  <bruno@clisp.org>
55353
55354         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55355
55356 2007-09-29  Bruno Haible  <bruno@clisp.org>
55357
55358         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55359
55360 2007-09-29  Bruno Haible  <bruno@clisp.org>
55361
55362         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55363         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55364         * build-aux/install-reloc: Compile also areadlink.c.
55365         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55366
55367 2007-09-29  Bruno Haible  <bruno@clisp.org>
55368
55369         * gnulib-tool (func_emit_initmacro_done): Indentation.
55370
55371 2007-09-29  Bruno Haible  <bruno@clisp.org>
55372
55373         * README: Add CVS checkout update instructions.
55374         Info from Bob Proulx <bob@proulx.com>.
55375
55376 2007-09-28  Eric Blake  <ebb9@byu.net>
55377
55378         Provide move-if-change.
55379         * build-aux/move-if-change: New file, based on best practice
55380         rather than any canonical upstream location.
55381
55382 2007-09-28  Jim Meyering  <jim@meyering.net>
55383
55384         Fix canonicalize loop-detection corner case.
55385         Do not attempt to stat the symlink values stored via seen_triple.
55386         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55387         on linux-2.6.18, (but not 2.6.22).
55388         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55389         triple_compare.  The former compares dev,ino,filename, while the latter
55390         would actually stat dirname(filename) when dev and ino were equal.
55391         * lib/hash-triple.c: Install <string.h>.
55392         (STREQ): Define.
55393         (triple_compare_ino_str): New function.
55394         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55395
55396 2007-09-28  Eric Blake  <ebb9@byu.net>
55397
55398         Enforce that AC_REPLACE_FUNCS files exist.
55399         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55400         override check for typos.
55401
55402         Fix test-closein on Solaris 10.
55403         * tests/test-closein.c (main): Don't assume stdin can be inherited
55404         closed on all systems.
55405         * tests/test-closein.sh: Likewise.
55406         Reported by Piotr Tarnowski.
55407
55408 2007-09-28  Jim Meyering  <jim@meyering.net>
55409
55410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55411
55412 2007-09-27  Jim Meyering  <jim@meyering.net>
55413
55414         canonicalize: Avoid a false-positive cycle failure.
55415         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55416         Sort.  Remove cycle-check.
55417         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55418         not cycle-check.h.
55419         (seen_triple): New function.
55420         (canonicalize_filename_mode): Use it instead of cycle-check.
55421         * tests/test-canonicalize.c: Add a test for this bug.
55422         * tests/test-canonicalize.sh: Set up and run the test.
55423
55424         New module, file-set, from coreutils.
55425         * modules/file-set: Define it.
55426         * lib/file-set.c, lib/file-set.h: Implement.
55427
55428         New module, hash-triple, from coreutils.
55429         * modules/hash-triple: Define it.
55430         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55431
55432 2007-09-25  Eric Blake  <ebb9@byu.net>
55433
55434         Fix strerror on Interix.
55435         * lib/string_.h (strerror): Declare replacement.
55436         * doc/functions/strerror.texi (strerror): Document the Interix
55437         shortcoming.
55438         * modules/string (Makefile.am): Support new hooks.
55439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55440         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55441         gl_FUNC_STRERROR_SEPARATE.
55442         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55443         * lib/strerror.c (rpl_strerror): Provide replacement.
55444         * modules/strerror (Depends-on): Add string.
55445         (configure.ac): Detect use of module.
55446         * tests/test-strerror.c: New file.
55447         * modules/strerror-tests: New test module.
55448         * modules/argp (Depends-on): Add strerror.
55449         * modules/error (Depends-on): Likewise.
55450         Reported by Martin Koeppe.
55451
55452 2007-09-24  Bruno Haible  <bruno@clisp.org>
55453
55454         * README: Update git instructions.
55455
55456 2007-09-24  Eric Blake  <ebb9@byu.net>
55457
55458         Revert fpending breakage from 2007-09-08.
55459         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55460         __fpending.c.
55461
55462 2007-09-24  Jim Meyering  <jim@meyering.net>
55463
55464         filenamecat.c: Add a test.
55465         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55466         showing how the function works when DIR is the empty string.
55467
55468 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55469
55470         * tests/test-canonicalize.sh: Turn on executable bit.
55471
55472 2007-09-19  Eric Blake  <ebb9@byu.net>
55473
55474         * README: Update CVS instructions.
55475
55476 2007-09-18  Bruno Haible  <bruno@clisp.org>
55477
55478         * modules/areadlink: New file.
55479         * lib/areadlink.h (areadlink): New declaration.
55480         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55481
55482 2007-09-17  Jim Meyering  <jim@meyering.net>
55483
55484         * lib/savewd.c (ESTALE) [!defined]: Define.
55485         Reported to be required on Interix by Martin Koeppe.
55486
55487 2007-09-17  Bruno Haible  <bruno@clisp.org>
55488
55489         * gnulib-tool (func_version): Use $version.
55490
55491 2007-09-16  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55494         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55495         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55496         Reported by Greg Schafer <gschafer@zip.com.au>.
55497
55498 2007-09-15  Bruno Haible  <bruno@clisp.org>
55499
55500         * gnulib-tool (sed): Try a little harder to make bash understand the
55501         alias.
55502         Reported by Bruce Korb <bruce.korb@gmail.com>.
55503
55504 2007-09-13  Eric Blake  <ebb9@byu.net>
55505
55506         * ChangeLog: Remove conflict markers.
55507
55508 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55509
55510         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55511         Reported by Bruno Haible <bruno@clisp.org>.
55512
55513 2007-09-12  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55516         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55517         is not defined.
55518
55519 2007-09-12  Eric Blake  <ebb9@byu.net>
55520
55521         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55522         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55523         Autoconf definition.
55524         * modules/euidaccess (Depends-on): Add extensions, for
55525         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55526         * modules/fnmatch (Depends-on): Likewise.
55527         * modules/getaddrinfo (Depends-on): Likewise.
55528         * modules/getdelim (Depends-on): Likewise.
55529         * modules/getline (Depends-on): Likewise.
55530         * modules/getsubopt (Depends-on): Likewise.
55531         * modules/gettext (Depends-on): Likewise.
55532         * modules/group-member (Depends-on): Likewise.
55533         * modules/mbchar (Depends-on): Likewise.
55534         * modules/memmem (Depends-on): Likewise.
55535         * modules/mempcpy (Depends-on): Likewise.
55536         * modules/memrchr (Depends-on): Likewise.
55537         * modules/pagealign_alloc (Depends-on): Likewise.
55538         * modules/readutmp (Depends-on): Likewise.
55539         * modules/stpcpy (Depends-on): Likewise.
55540         * modules/stpncpy (Depends-on): Likewise.
55541         * modules/strchrnul (Depends-on): Likewise.
55542         * modules/strndup (Depends-on): Likewise.
55543         * modules/strsep (Depends-on): Likewise.
55544         * modules/strverscmp (Depends-on): Likewise.
55545         * modules/vasprintf (Depends-on): Likewise.
55546         * modules/wcwidth (Depends-on): Likewise.
55547         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55548         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55549         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55551         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55552         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55553         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55554         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55555         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55556         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55557         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55558         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55559         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55560         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55561         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55562         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55563         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55564         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55566         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55569         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55570         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55571         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55573         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55574         so that lock.m4 can be used in gettext without extensions module.
55575
55576 2007-09-11  Bruno Haible  <bruno@clisp.org>
55577
55578         * m4/isc-posix.m4: Remove file.
55579         Suggested by Eric Blake.
55580
55581 2007-09-11  Eric Blake  <ebb9@byu.net>
55582
55583         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55584
55585 2007-09-10  Bruno Haible  <bruno@clisp.org>
55586
55587         * posix-modules: Fix typo in error message.
55588         Reported by Matt <mkraai@beckman.com>.
55589
55590 2007-09-09  Bruno Haible  <bruno@clisp.org>
55591
55592         * doc/functions/getdelim.texi: Update list of platforms lacking the
55593         function.
55594         * doc/functions/getline.texi: Likewise.
55595
55596 2007-09-09  Jim Meyering  <jim@meyering.net>
55597
55598         * lib/hash.c (hash_initialize): Detect calloc failure.
55599         Reported by Bruno Haible.
55600
55601 2007-09-09  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55604         malloc or realloc fails.
55605
55606 2007-09-09  Bruno Haible  <bruno@clisp.org>
55607
55608         * modules/getcwd (Depends-on): Add malloc-posix.
55609         * modules/glob (Depends-on): Likewise.
55610         * modules/putenv (Depends-on): Likewise.
55611         * modules/strdup (Depends-on): Likewise.
55612         * modules/getdelim (Depends-on): Add realloc-posix.
55613         * modules/read-file (Depends-on): Likewise.
55614
55615 2007-09-09  Bruno Haible  <bruno@clisp.org>
55616
55617         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55618         (gl_FUNC_MALLOC_POSIX): Require it.
55619         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55620         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55621         * modules/realloc (Files): Add m4/malloc.m4.
55622         * modules/calloc (Files): Likewise.
55623
55624 2007-09-09  Bruno Haible  <bruno@clisp.org>
55625
55626         * modules/malloc-posix: New file.
55627         * modules/malloc (Depends-on): Add malloc-posix.
55628         * lib/malloc.c: Include errno.h.
55629         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55630         and a POSIX-compatible malloc into a single function. Set ENOMEM
55631         when returning NULL.
55632         * m4/malloc.m4: New file.
55633         * doc/functions/malloc.texi: Mention the malloc-posix module.
55634         * lib/stdlib_.h (malloc): New declaration.
55635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55636         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55637         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55638         and HAVE_MALLOC_POSIX.
55639
55640 2007-09-09  Bruno Haible  <bruno@clisp.org>
55641
55642         * modules/realloc-posix: New file.
55643         * modules/realloc (Depends-on): Add realloc-posix.
55644         * lib/realloc.c: Include errno.h.
55645         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55646         and a POSIX-compatible realloc into a single function. Set ENOMEM
55647         when returning NULL.
55648         * m4/realloc.m4: New file.
55649         * doc/functions/realloc.texi: Mention the realloc-posix module.
55650         * lib/stdlib_.h (realloc): New declaration.
55651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55652         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55653         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55654         and HAVE_REALLOC_POSIX.
55655
55656 2007-09-09  Bruno Haible  <bruno@clisp.org>
55657
55658         * modules/calloc-posix: New file.
55659         * modules/calloc (Depends-on): Add calloc-posix.
55660         * lib/calloc.c: Include errno.h.
55661         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55662         and a POSIX-compatible calloc into a single function. Set ENOMEM
55663         when returning NULL.
55664         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55665         * doc/functions/calloc.texi: Mention the calloc-posix module.
55666         * lib/stdlib_.h (calloc): New declaration.
55667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55668         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55669         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55670         and HAVE_CALLOC_POSIX.
55671
55672 2007-09-09  Bruno Haible  <bruno@clisp.org>
55673
55674         Allow for modules to show an arbitrary notice.
55675         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55676         * gnulib-tool: New option --extract-notice.
55677         (func_usage): Document it.
55678         (sed_extract_prog): Update.
55679         (func_get_notice): New function.
55680         (func_modules_notice): New function.
55681         (func_import, func_create_testdir): Invoke it.
55682         Suggested by Jim Meyering.
55683
55684 2007-09-09  Bruno Haible  <bruno@clisp.org>
55685
55686         * gnulib-tool: New options --verbose, --quiet.
55687         (func_usage): Document them.
55688         (verbose): New variable.
55689         (func_execute_command): New function.
55690         (func_import): Don't show the module list and the file list if
55691         $verbose < 0.
55692         (func_create_testdir): Likewise. Use func_execute_command.
55693         (func_create_megatestdir): Use func_execute_command.
55694
55695 2007-09-08  Bruno Haible  <bruno@clisp.org>
55696
55697         * gnulib-tool (func_import): Prefer rsync over wget when available,
55698         for fetching the PO files.
55699
55700 2007-09-08  Bruno Haible  <bruno@clisp.org>
55701
55702         * posix-modules: New file. Portions copied from gnulib-tool.
55703         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55704
55705 2007-09-08  Jim Meyering  <jim@meyering.net>
55706
55707         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55708         * lib/fpending.h: Rename from __fpending.h.
55709         * lib/fpending.c: Rename from __fpending.c.
55710         Include "fpending.h", not "__fpending.h".
55711         * lib/__fpending.h, lib/__fpending.c: Remove files.
55712         * modules/fpending (Files): Reflect new file names.
55713         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55714
55715 2007-09-08  Bruno Haible  <bruno@clisp.org>
55716
55717         * m4/inttypes-h.m4: Remove stub file.
55718
55719 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55720
55721         * doc/headers/stdint.texi: Discuss #include_next issue.
55722
55723 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55726
55727 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55728
55729         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55730         in variable name.
55731
55732 2007-09-03  Jim Meyering  <jim@meyering.net>
55733
55734         New module: git-version-gen.
55735         * modules/git-version-gen: New file.
55736
55737         Import changes from coreutils for bootstrap script.
55738
55739         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55740
55741         bootstrap: uses rsync to download the .po files
55742         * build-aux/bootstrap (po_download_command_format): New global.
55743         (download_po_files): Use rsync.
55744         (update_po_files): Don't remove .po files after download,
55745         so future rsync runs can take advantage of the copies.
55746
55747         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55748
55749         Solve the unnecessary-.po-file-regeneration problem once and for all.
55750         * build-aux/bootstrap (download_po_files): New function, renamed from
55751         get_translations.  Now, downloads, but doesn't update LINGUAS.
55752         (update_po_files): New function.
55753
55754         bootstrap: Ignore more.
55755         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55756         uniwidth to e.g., lib/.gitignore.
55757         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55758
55759         * build-aux/bootstrap: New setting: vc_ignore.
55760         (insert_sorted_if_absent): Create $file if absent.
55761         Adapt to new, possibly empty, list: $vc_ignore.
55762
55763         bootstrap: generate more ignorable names
55764         * build-aux/bootstrap (slurp): When generating ignorable names,
55765         also map .sin to .sed, .gperf to .c, and .y to .c.
55766
55767 2007-09-03  Jim Meyering  <jim@meyering.net>
55768
55769         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55770         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55771
55772 2007-09-02  Bruno Haible  <bruno@clisp.org>
55773
55774         Fix mis-recognition of 'mcs' on QNX 6.
55775         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55776         output contains the string "Mono".
55777         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55778         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55779
55780 2007-09-01  Bruno Haible  <bruno@clisp.org>
55781
55782         Fix collision between uniwidth/* and linebreak modules.
55783         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55784         u32_width): Remove declarations.
55785         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55786         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55787         streq3, streq2, streq1, streq0): Remove functions.
55788         (STREQ): Remove macro.
55789         (is_cjk_encoding): Remove function.
55790         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55791         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55792         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55793         * NEWS: Document the change.
55794
55795 2007-09-01  Bruno Haible  <bruno@clisp.org>
55796
55797         * lib/streq.h: Add double-inclusion guard.
55798
55799 2007-09-01  Karl Berry  <karl@gnu.org>
55800
55801         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55802
55803 2007-08-28  Jim Meyering  <jim@meyering.net>
55804
55805         Rename mreadlink_with_size to areadlink_with_size.
55806         * NEWS: Document the change.
55807         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55808         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55809         * lib/mreadlink.h: Rename this to...
55810         * lib/areadlink.h: ...this.
55811         * modules/mreadlink-with-size: Rename this to...
55812         * modules/areadlink-with-size: ...this.
55813         * lib/canonicalize.c: Reflect the renaming.
55814         * modules/canonicalize: Likewise.
55815
55816 2007-08-26  Bruno Haible  <bruno@clisp.org>
55817
55818         * gnulib-tool (func_import): When deciding which files to remove,
55819         consider also dangling symbolic links.
55820         Reported by Eric Blake.
55821
55822 2007-08-26  Bruno Haible  <bruno@clisp.org>
55823
55824         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55825
55826 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55827
55828         * lib/readline.c: Don't include getline.h, the prototype is now
55829         found in stdio.h.
55830
55831 2007-08-23  Jim Meyering  <jim@meyering.net>
55832
55833         Getdelim touchup.
55834         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55835         around the funlockfile call, since funlockfile never sets errno.
55836         Don't set errno upon failed realloc.
55837
55838 2007-08-22  Eric Blake  <ebb9@byu.net>
55839
55840         Getline touchups.
55841         * lib/getdelim.c (getdelim): Revert regression that required *n to
55842         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55844         getdelim, rather than whether implementation is missing.
55845         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55846         * lib/stdio_.h (getline): Also declare if replacement is
55847         required.
55848         * doc/functions/getdelim.texi: New file.
55849         * doc/functions/getline.texi: Likewise.
55850         * doc/gnulib.texi (Function Substitutes): Add new files.
55851         Reported by Bruno Haible.
55852
55853 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55854
55855         * users.txt: Add Guile.
55856
55857 2007-08-22  Eric Blake  <ebb9@byu.net>
55858
55859         * tests/test-getdelim.c (main): Use remove, not unlink.
55860         * tests/test-getline.c (main): Likewise.
55861
55862         Move getline and getdelim into stdio.h, per POSIX 200x.
55863         * modules/getline (Files): Remove getline.h.
55864         (Depends-on): Add stdio.
55865         (configure.ac): Add module indicator.
55866         * modules/getdelim (Files): Remove getdelim.h.
55867         (Depends-on): Add stdio.
55868         (configure.ac): Add module indicator.
55869         * modules/stdio (Makefile.am): Work with new indicators.
55870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55871         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55872         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55873         * lib/getdelim.h: Delete.
55874         * lib/getline.h: Delete.
55875         * lib/stdio_.h (getdelim, getline): Declare.
55876         * modules/getdelim-tests: New module.
55877         * modules/getline-tests: Likewise.
55878         * tests/test-getdelim.c: New file.
55879         * tests/test-getline.c: Likewise.
55880         * NEWS: Document the change.
55881         * lib/getline.c: Update choice of header.
55882         * lib/csharpcomp.c: Likewise.
55883         * lib/getpass.c: Likewise.
55884         * lib/javacomp.c: Likewise.
55885         * lib/javaversion.c: Likewise.
55886         * lib/yesno.c: Likewise.
55887         * lib/getdelim.c: Likewise.
55888         (getdelim): Set errno on failure, and avoid memory leak.
55889
55890 2007-08-19  Bruno Haible  <bruno@clisp.org>
55891
55892         * modules/closein (Depends-on): Add freadahead.
55893         * lib/closein.c: Include freadahead.h.
55894         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55895         is zero.
55896
55897 2007-08-19  Bruno Haible  <bruno@clisp.org>
55898
55899         * modules/freadahead-tests: New file.
55900         * tests/test-freadahead.sh: New file.
55901         * tests/test-freadahead.c: New file.
55902
55903         * modules/freadahead: New file.
55904         * lib/freadahead.h: New file.
55905         * lib/freadahead.c: New file.
55906         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55907         fbufmode, fpurge, freadable, fwritable.
55908
55909 2007-08-19  Eric Blake  <ebb9@byu.net>
55910
55911         Test yesno in combination with closein.
55912         * lib/yesno.c (yesno): Document use of stdin.
55913         * modules/yesno-tests (Files): New module.
55914         * tests/test-yesno.c (main): New file.
55915         * tests/test-yesno.sh: Likewise.
55916
55917 2007-08-19  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55920         * lib/fseeko.c (rpl_fseeko): Likewise.
55921         * lib/fseterr.c (fseterr): Likewise.
55922
55923 2007-08-19  Bruno Haible  <bruno@clisp.org>
55924
55925         * tests/test-lseek.c (main): Disable a test for BeOS.
55926         * doc/functions/lseek.texi: Document the BeOS bug.
55927
55928 2007-08-19  Bruno Haible  <bruno@clisp.org>
55929             Eric Blake  <ebb9@byu.net>
55930
55931         * lib/lseek.c: Include <sys/stat.h>.
55932         (rpl_lseek): Add workaround code also for Unix platforms.
55933         Needed for BeOS.
55934         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55935         * doc/functions/lseek.texi: Document BeOS definiency.
55936
55937 2007-08-18  Bruno Haible  <bruno@clisp.org>
55938
55939         * modules/fstrcmp-tests: New file.
55940         * tests/test-fstrcmp.c: New file.
55941
55942 2007-08-18  Bruno Haible  <bruno@clisp.org>
55943
55944         * modules/fstrcmp: New file, from GNU gettext with modifications.
55945         * lib/fstrcmp.h: New file, from GNU gettext.
55946         * lib/fstrcmp.c: New file, from GNU gettext.
55947         * MODULES.html.sh (String handling): Add fstrcmp.
55948
55949 2007-08-18  Bruno Haible  <bruno@clisp.org>
55950
55951         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55952         'bool'.
55953         (diag, compareseq): Remove const from the ctxt argument.
55954         (USE_HEURISTIC): Undefine at the end.
55955
55956 2007-08-18  Jim Meyering  <jim@meyering.net>
55957
55958         New file: lib/idcache.h
55959         * NEWS: Mention the addition.
55960         * modules/idcache (Files): Add lib/idcache.h
55961         * lib/idcache.c: Include "idcache.h".
55962         Don't include <sys/types.h>.
55963         Add a FIXME comment.
55964         Move file-scoped "static" declarations to the top.
55965         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55966
55967 2007-08-17  Bruno Haible  <bruno@clisp.org>
55968         and Paul Eggert  <eggert@cs.ucla.edu>
55969
55970         * MODULES.html.sh: Add diffseq.
55971         * modules/diffseq: New file.
55972         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55973         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55974
55975 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         Import changes from coreutils for bootstrap script.
55978
55979         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * build-aux/bootstrap (slurp): Work even in environments where
55982         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55983         current code does not slurp files whose names start with ".", and
55984         this looks like it might be a troublesome area.
55985
55986         2007-07-11  Jim Meyering  <jim@meyering.net>
55987
55988         If there's a GPL vN copyright comment, require that N == 3.
55989
55990         2007-07-08  Jim Meyering  <jim@meyering.net>
55991
55992         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55993         * build-aux/bootstrap (mam_template): Move definition out of loop.
55994
55995         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55996
55997         * build-aux/bootstrap (symlink_to_dir): Rename function from
55998         symlink_to_gnulib.  Add a directory parameter.  Update all
55999         callers.
56000         (cp_mark_as_generated): Also check for -- and link to -- files in
56001         gl/.
56002
56003         2007-07-08  Jim Meyering  <jim@meyering.net>
56004
56005         Adapt to deeper hierarchy in gnulib.
56006         * build-aux/bootstrap (symlink_to_dir): If the destination
56007         directory doesn't exist, create it. This is required at least for
56008         "lib/uniwidth/cjk.h".
56009
56010         2007-05-15  Jim Meyering  <jim@meyering.net>
56011
56012         * build-aux/bootstrap: Now that generated Makefile.am files
56013         are no longer under version control, they must be created at
56014         bootstrap time.
56015
56016 2007-08-14  Ben Pfaff  <blp@gnu.org>
56017
56018         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56019
56020 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56021
56022         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56023         given the changes below.
56024         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56025         even on hosts that have padding bits beyond the supported 64.
56026
56027 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56030         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56031         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56032         depends on it.
56033         (xstrtol_error): Remove.
56034         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56035         but with a different signature.
56036         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56037         * lib/xstrtol-error.c: Include exitfail.h.
56038         (xstrtol_fatal): New function, with a different signature from the
56039         old xstrtol_error, so that the caller need not worry about passing
56040         in an exit status, or about storage management of the option argument.
56041         (xstrtol_error): Now a static function.  Redo signature to
56042         implement xstrtol_fatal.  Output the correct number of hyphens in
56043         front of the option so that the caller need not worry about
56044         storage management.
56045         (N_): New macro.
56046         (_): Remove; not used now.
56047         * modules/xstrtol: Depend on getopt.
56048         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56049         of old STRTOL_FATAL_ERROR macro.
56050         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56051         of test program.
56052         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56053         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56054
56055 2007-08-08  Eric Blake  <ebb9@byu.net>
56056
56057         * lib/xstrtol-error.c: Add missing include.
56058
56059         Move xstrtol messages into gnulib domain, when --pobase is used.
56060         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56061         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56062         * modules/xstrtol (Files): Distribute new file.
56063         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56064         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56065         * tests/test-xstrtol.c: ...into new file.
56066         * tests/test-xstrtoul.c: Also test xstrtoul.
56067         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56068         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56069         * tests/test-xstrtol.sh: Drive the tests.
56070         * tests/test-xstrtoimax.sh: Likewise.
56071         * tests/test-xstrtoumax.sh: Likewise.
56072         * modules/xstrtol-tests: New module.
56073         * modules/xstrtoimax-tests: Likewise.
56074         * modules/xstrtoumax-tests: Likewise.
56075
56076 2007-08-08  Jim Meyering  <jim@meyering.net>
56077
56078         New function: mfile_name_concat.
56079         * lib/filenamecat.c (mfile_name_concat): New function, just like
56080         file_name_concat, but return NULL upon failure rather than exiting
56081         with a diagnostic.
56082         * lib/filenamecat.h: Declare it.
56083
56084 2007-08-07  Bruno Haible  <bruno@clisp.org>
56085
56086         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56087         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56088         warning from gcc.
56089         Reported by Eric Blake.
56090
56091 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56092
56093         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56094         * modules/crypto/arcfour (License): Likewise.
56095         * modules/crypto/des-tests (License): Likewise.
56096         * modules/crypto/gc-arctwo-tests (License): Likewise.
56097         * modules/crypto/gc-des-tests (License): Likewise.
56098         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56099         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56100         * modules/crypto/gc-md2-tests (License): Likewise.
56101         * modules/crypto/gc-md4-tests (License): Likewise.
56102         * modules/crypto/gc-md5-tests (License): Likewise.
56103         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56104         * modules/crypto/gc-rijndael-tests (License): Likewise.
56105         * modules/crypto/gc-sha1-tests (License): Likewise.
56106         * modules/crypto/gc-tests (License): Likewise.
56107         * modules/crypto/hmac-md5 (License): Likewise.
56108         * modules/crypto/hmac-sha1 (License): Likewise.
56109         * modules/crypto/md2-tests (License): Likewise.
56110         * modules/crypto/md4-tests (License): Likewise.
56111         * modules/crypto/md5 (License): Likewise.
56112         * modules/crypto/rijndael (License): Likewise.
56113         * modules/crypto/sha1 (License): Likewise.
56114         * modules/memxor (License): Likewise.
56115
56116 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56117         and Bruno Haible  <bruno@clisp.org>
56118
56119         * NEWS: Describe interface changes to human, xstrtol.
56120         * lib/human.h: Include <xstrtol.h>.
56121         (human_options): Return enum strtol_error, not int.  Remove
56122         bool arg; take int * instead.
56123         * lib/human.c: Don't include "gettext.h".
56124         (_): Remove; no longer used.
56125         Don't include <xstrtol.h>, since human.h does it.
56126         (human_options): Adjust to abovementioned interface changes.
56127         Do not report error to stderr; that's now the caller's
56128         responsibility.
56129         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56130         interface change.
56131         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56132         Str, Argument_type_string.  All uses changed.  Put " argument"
56133         in diagnostics to make them clearer.  Change wording of suffix
56134         message for clarity.
56135         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56136         Argument_type_string.
56137         (STRTOL_FATAL_WARN): Remove; no longer used.
56138         * modules/human (Depends-on): Remove gettext-h.
56139
56140 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56141
56142         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56143
56144 2007-07-31  Bruno Haible  <bruno@clisp.org>
56145
56146         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56147         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56148         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56149
56150 2007-07-31  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56153         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56154
56155 2007-07-30  Bruno Haible  <bruno@clisp.org>
56156
56157         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56158         * modules/c-ctype (License): Likewise.
56159         * modules/c-strcase (License): Likewise.
56160         * modules/check-version (License): Likewise.
56161         * modules/iconv (License): Likewise.
56162         * modules/iconv_open (License): Likewise.
56163         * modules/read-file (License): Likewise.
56164         * modules/striconv (License): Likewise.
56165         * modules/strverscmp (License): Likewise.
56166         * modules/vasprintf (License): Likewise.
56167         * modules/crypto/des (License): Likewise.
56168         * modules/crypto/gc (License): Likewise.
56169         * modules/crypto/gc-arcfour (License): Likewise.
56170         * modules/crypto/gc-arctwo (License): Likewise.
56171         * modules/crypto/gc-des (License): Likewise.
56172         * modules/crypto/gc-hmac-md5 (License): Likewise.
56173         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56174         * modules/crypto/gc-md2 (License): Likewise.
56175         * modules/crypto/gc-md4 (License): Likewise.
56176         * modules/crypto/gc-md5 (License): Likewise.
56177         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56178         * modules/crypto/gc-random (License): Likewise.
56179         * modules/crypto/gc-rijndael (License): Likewise.
56180         * modules/crypto/gc-sha1 (License): Likewise.
56181         * modules/crypto/md2 (License): Likewise.
56182         * modules/crypto/md4 (License): Likewise.
56183
56184 2007-07-30  Jim Meyering  <jim@meyering.net>
56185
56186         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56187         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56188         it has valid stat data.  This bug would cause du not to count the
56189         sizes of inaccessible directories.
56190         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56191         in <http://bugzilla.redhat.com/250077>.
56192
56193 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56194             Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56197         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56198         #include_next, gives a diagnostic about it, but reports no error in
56199         the exit code.
56200         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56201
56202 2007-07-24  Ben Pfaff  <blp@gnu.org>
56203
56204         Improve name: "count-one-bits" is better than "popcount".
56205         * MODULES.html.sh: Update name.
56206         * lib/popcount.h: Renamed lib/count-one-bits.h.
56207         (popcount): Renamed count_one_bits.
56208         (popcountl): Renamed count_one_bits_l.
56209         (popcountll): Renamed count_one_bits_ll.
56210         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56211         * modules/popcount: Renamed module/count-one-bits.
56212         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56213         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56214
56215 2007-07-23  Ben Pfaff  <blp@gnu.org>
56216
56217         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56218         better code generation, and add U to large constants to avoid
56219         warnings, in non-GCC case.
56220         Suggested by Bruno Haible.
56221
56222 2007-07-23  Ben Pfaff  <blp@gnu.org>
56223
56224         * lib/popcount.h: Use verify_true instead of if...abort.
56225         * modules/popcount: Depend on verify module.
56226         Suggested by Jim Meyering.
56227
56228 2007-07-23  Bruno Haible  <bruno@clisp.org>
56229
56230         * gnulib-tool (func_import): Create a .cvsignore file also when the
56231         directory is not yet in CVS but the toplevel directory is. When
56232         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56233         Reported by Karl Berry.
56234
56235 2007-07-22  Ben Pfaff  <blp@gnu.org>
56236
56237         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56238         case.
56239         Suggested by Eric Blake.
56240
56241 2007-07-22  Ben Pfaff  <blp@gnu.org>
56242
56243         New module: popcount.
56244         * MODULES.html.sh: Add popcount.
56245         * modules/popcount: New file.
56246         * modules/popcount-tests: New file.
56247         * tests/test-popcount.c: New file.
56248         * lib/popcount.h: New file.
56249         * m4/popcount.m4: New file.
56250
56251 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         * build-aux/announce-gen: Update to GPLv3.
56254
56255         * build-aux/config.guess: Update from config.
56256
56257 2007-07-21  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56260         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56261
56262 2007-07-20  Jim Meyering  <jim@meyering.net>
56263
56264         * check-module: Diagnose a self-dependency.
56265
56266 2007-07-19  Bruno Haible  <bruno@clisp.org>
56267
56268         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56269         empty.
56270         Reported by Eric Blake.
56271
56272 2007-07-18  Bruno Haible  <bruno@clisp.org>
56273
56274         * gnulib-tool: New options --po-base, --po-domain.
56275         (func_usage): Document them.
56276         (pobase, po_domain): New variables.
56277         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56278         DEFAULT_TEXT_DOMAIN.
56279         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56280         (func_import): Consider pobase and po_domain. Create a po/ directory.
56281         (func_create_testdir): Set pobase and po_domain to empty.
56282         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56283         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56284
56285 2007-07-18  Bruno Haible  <bruno@clisp.org>
56286
56287         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56288         EXTRA_DIST augmentation for files in build-aux/.
56289
56290 2007-07-16  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56293         * modules/getdelim (License): Likewise.
56294
56295 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56296
56297         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56298         * modules/d-type (License): Likewise.
56299         * modules/extensions (License): Likewise.
56300         * modules/fnmatch (License): Likewise.
56301         * modules/fseeko (License): Likewise.
56302         * modules/getaddrinfo (License): Likewise.
56303         * modules/getline (License): Likewise.
56304         * modules/getlogin_r (License): Likewise.
56305         * modules/getpass (License): Likewise.
56306         * modules/gettimeofday (License): Likewise.
56307         * modules/glob (License): Likewise.
56308         * modules/inet_ntop (License): Likewise.
56309         * modules/malloc (License): Likewise.
56310         * modules/malloca (License): Likewise.
56311         * modules/memmem (License): Likewise.
56312         * modules/mempcpy (License): Likewise.
56313         * modules/memset (License): Likewise.
56314         * modules/minmax (License): Likewise.
56315         * modules/mktime (License): Likewise.
56316         * modules/netinet_in (License): Likewise.
56317         * modules/pathmax (License): Likewise.
56318         * modules/poll (License): Likewise.
56319         * modules/regex (License): Likewise.
56320         * modules/snprintf (License): Likewise.
56321         * modules/stdbool (License): Likewise.
56322         * modules/stdint (License): Likewise.
56323         * modules/stdio (License): Likewise.
56324         * modules/strcase (License): Likewise.
56325         * modules/strcasestr (License): Likewise.
56326         * modules/strdup (License): Likewise.
56327         * modules/string (License): Likewise.
56328         * modules/strndup (License): Likewise.
56329         * modules/strnlen (License): Likewise.
56330         * modules/strpbrk (License): Likewise.
56331         * modules/strptime (License): Likewise.
56332         * modules/strsep (License): Likewise.
56333         * modules/sys_select (License): Likewise.
56334         * modules/sys_socket (License): Likewise.
56335         * modules/sys_stat (License): Likewise.
56336         * modules/sys_time (License): Likewise.
56337         * modules/time (License): Likewise.
56338         * modules/time_r (License): Likewise.
56339         * modules/timegm (License): Likewise.
56340         * modules/unistd (License): Likewise.
56341         * modules/vsnprintf (License): Likewise.
56342         * modules/wctype (License): Likewise.
56343
56344 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56345
56346         * modules/argz (License): LGPLv2+.
56347
56348 2007-07-15  Karl Berry  <karl@gnu.org>
56349
56350         * doc/gnulib.texi: revise node structure per new fdl.texi.
56351
56352 2007-07-14  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56355         the output file.
56356         * lib/uniname/uninames.h: Regenerated.
56357
56358 2007-07-14  Karl Berry  <karl@gnu.org>
56359
56360         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56361         omitting sectioning and index commands.
56362
56363 2007-07-13  Bruno Haible  <bruno@clisp.org>
56364
56365         New gnulib-tool option --more-symlinks.
56366         * gnulib-tool (func_usage): Document --more-symlinks.
56367         (do_copyrights): New variable.
56368         Recognize option --more-symlinks.
56369         (func_import): Don't add a copyright notice transform to
56370         sed_transform_lib_file if do_copyrights is empty.
56371
56372 2007-07-13  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/vasnprintf.c (decimal_point_char): Define also if
56375         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56376         && !NEED_PRINTF_DIRECTIVE_A.
56377         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56378         Gary V. Vaughan <gary@gnu.org>.
56379
56380 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56381
56382         * lib/inttypes_.h: Undo previous change, since it was fixed
56383         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56384
56385 2007-07-13  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56388         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56389
56390 2007-07-13  Jim Meyering  <jim@meyering.net>
56391
56392         df: Don't fail for Tru64's "file-on-file mount".
56393         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56394         so we fall through and use statfs instead.  Details here:
56395         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56396         Reported by Albert Chin.
56397
56398 2007-07-13  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56401         * modules/configmake (License): Likewise.
56402         * modules/gettext (License): Likewise.
56403         * modules/gettext-h (License): Likewise.
56404         * modules/include_next (License): Likewise.
56405         * modules/link-warning (License): Likewise.
56406         * modules/localcharset (License): Likewise.
56407         * modules/localename (License): Likewise.
56408         * modules/lock (License): Likewise.
56409         * modules/relocatable-lib-lgpl (License): Likewise.
56410         * modules/size_max (License): Likewise.
56411         * modules/vasnprintf (License): Likewise.
56412         * modules/wchar (License): Likewise.
56413         * modules/xsize (License): Likewise.
56414
56415 2007-07-13  Bruno Haible  <bruno@clisp.org>
56416
56417         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56418         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56419
56420 2007-07-12  Bruno Haible  <bruno@clisp.org>
56421
56422         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56423         in the modules files.
56424
56425 2007-07-11  Karl Berry  <karl@gnu.org>
56426
56427         * MODULES.html.sh (func_module): use
56428          sed -e '\|^'"${includefile}"'$|d'
56429          instead of /.../d, to avoid errors on $includefile's containing /.
56430
56431 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56432
56433         * gnulib-tool (func_import): Avoid duplication of --avoid
56434         statements
56435         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56436         names to `_' in variable names.
56437
56438 2007-07-10  Eric Blake  <ebb9@byu.net>
56439
56440         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56441         * NEWS: Document this change.
56442
56443 2007-07-08  Bruno Haible  <bruno@clisp.org>
56444
56445         Update to Unicode 5.0.
56446         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56447         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56448         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56449         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56450         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56451         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56452         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56453         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56454         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56455         U+10A3F, U+1D242..U+1D244.
56456         (nonspacing_table_ind): Update.
56457         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56458         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56459
56460 2007-07-08  Bruno Haible  <bruno@clisp.org>
56461
56462         Update to Unicode 5.0.
56463         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56464         code transform. Extend the name index field of unicode_name_to_code and
56465         unicode_code_to_name from 16 to 24 bits.
56466         * lib/uniname/uniname.c (unicode_character_name,
56467         unicode_name_character): Add the range 0x12xxx to the code transform.
56468         * lib/uniname/uninames.h: Regenerated.
56469         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56470
56471 2007-07-07  Bruno Haible  <bruno@clisp.org>
56472
56473         * modules/wcwidth-tests: New file.
56474         * tests/test-wcwidth.c: New file.
56475
56476         Work around MacOS X wcwidth() bug.
56477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56478         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56479         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56480         original wcwidth in non-UTF-8 locales.
56481         * modules/wcwidth (Depends-on): Add localcharset, streq,
56482         uniwidth/width.
56483         * doc/functions/wcwidth.texi: Update.
56484
56485 2007-07-07  Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56488         (wcwidth): New declaration.
56489         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56490         macros.
56491         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56492         here. Prepare for creating <wchar.h> unconditionally.
56493         * modules/wchar (Depends-on): Add link-warning.
56494         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56495         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56496         * lib/wcwidth.h: Remove file.
56497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56498         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56499         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56500         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56501         (Include): Replace wcwidth.h with <wchar.h>.
56502         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56503         * lib/mbchar.h: Don't include wcwidth.h.
56504         * lib/mbswidth.c: Likewise.
56505         * NEWS: Mention the change.
56506
56507 2007-07-07  Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56510         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56511         definition with an external declaration.
56512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56513         defined as a function. Remove AC_C_INLINE requirement.
56514         * modules/wcwidth (Files): Add lib/wcwidth.c.
56515         (Makefile.am): Remove redundant statement.
56516
56517 2007-07-07  Bruno Haible  <bruno@clisp.org>
56518
56519         * MODULES.html.sh (Unicode string functions): Add the new modules.
56520
56521         * tests/uniwidth/test-u32-strwidth.c: New file.
56522         * modules/uniwidth/u32-strwidth-tests: New file.
56523
56524         * lib/uniwidth/u32-strwidth.c: New file.
56525         * modules/uniwidth/u32-strwidth: New file.
56526
56527         * tests/uniwidth/test-u16-strwidth.c: New file.
56528         * modules/uniwidth/u16-strwidth-tests: New file.
56529
56530         * lib/uniwidth/u16-strwidth.c: New file.
56531         * modules/uniwidth/u16-strwidth: New file.
56532
56533         * tests/uniwidth/test-u8-strwidth.c: New file.
56534         * modules/uniwidth/u8-strwidth-tests: New file.
56535
56536         * lib/uniwidth/u8-strwidth.c: New file.
56537         * modules/uniwidth/u8-strwidth: New file.
56538
56539         * tests/uniwidth/test-u32-width.c: New file.
56540         * modules/uniwidth/u32-width-tests: New file.
56541
56542         * lib/uniwidth/u32-width.c: New file.
56543         * modules/uniwidth/u32-width: New file.
56544
56545         * tests/uniwidth/test-u16-width.c: New file.
56546         * modules/uniwidth/u16-width-tests: New file.
56547
56548         * lib/uniwidth/u16-width.c: New file.
56549         * modules/uniwidth/u16-width: New file.
56550
56551         * tests/uniwidth/test-u8-width.c: New file.
56552         * modules/uniwidth/u8-width-tests: New file.
56553
56554         * lib/uniwidth/u8-width.c: New file.
56555         * modules/uniwidth/u8-width: New file.
56556
56557         * tests/uniwidth/test-uc_width.c: New file.
56558         * modules/uniwidth/width-tests: New file.
56559
56560         * lib/uniwidth/width.c: New file, from GNU libiconv.
56561         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56562         * modules/uniwidth/width: New file.
56563
56564         * lib/uniwidth.h: New file, from GNU libiconv.
56565         * modules/uniwidth/base: New file.
56566
56567 2007-07-07  Bruno Haible  <bruno@clisp.org>
56568
56569         * lib/uniname.h: New file, from GNU gettext.
56570         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56571         * lib/uniname/uninames.h: New file, from GNU gettext.
56572         * lib/uniname/uniname.c: New file, from GNU gettext.
56573         * tests/uniname/test-uninames.sh: New file.
56574         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56575         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56576         * modules/uniname/base: New file.
56577         * modules/uniname/uniname: New file.
56578         * modules/uniname/uniname-tests: New file.
56579         * MODULES.html.sh (Unicode string functions): Add the new modules.
56580
56581 2007-07-06  Bruno Haible  <bruno@clisp.org>
56582
56583         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56584
56585 2007-07-06  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56588         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56589         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56590         include <sys/time.h>.
56591         Reported by Eric Blake.
56592
56593 2007-07-06  Eric Blake  <ebb9@byu.net>
56594
56595         Fix testing canonicalize on cygwin.
56596         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56597         Revert patch from 2007-06-19.
56598         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56599         canonicalize module is also in use.
56600         * tests/test-canonicalize.c: New file.
56601         * tests/test-canonicalize.sh: Likewise.
56602         * modules/canonicalize-tests: Likewise.
56603
56604 2007-07-06  Jim Meyering  <jim@meyering.net>
56605
56606         * lib/getugroups.c (getugroups): Detect getgrent failure.
56607         Adjust comment to reflect reality: this function may return -1.
56608
56609 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56610
56611         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56612         the new TP address.
56613         (usage): Fix typo
56614         (gnulib_mk): New variable.
56615
56616 2007-07-05  Jim Meyering  <jim@meyering.net>
56617
56618         Don't let endgrent clobber errno, no matter how improbable.
56619         * lib/getugroups.c (getugroups): Save and restore errno around
56620         endgrent call.
56621
56622         Close the group DB even when failing with 2^31 or more members.
56623         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56624
56625 2007-07-04  Jim Meyering  <jim@meyering.net>
56626
56627         * lib/getugroups.h: New file.
56628         * lib/getugroups.c: Include "getugroups.h".
56629         Remove uses of "register" keyword.
56630         Move local variable, "cp", down into scope where used.
56631         Give "username" parameter the "const" attribute.
56632         * modules/getugroups (Files): Add lib/getugroups.h
56633
56634 2007-07-04  Karl Berry  <karl@gnu.org>
56635
56636         * MODULES.html.sh (func_all_modules): Complete rename of
56637         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56638
56639 2007-07-02  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56642         mode, when inttypes.h comes from gnulib.
56643         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56644
56645 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56646
56647         * NEWS: Mention lgpl module name change.
56648
56649         * modules/lgpl-2.1: Renamed from lgpl.
56650
56651         * NEWS: Mention gpl module name change.
56652
56653         * modules/gpl-3.0: New file, based on gpl-2.0.
56654
56655         * modules/gpl-2.0: Renamed from gpl.
56656
56657         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56658         doc/gpl-2.0.texi.
56659
56660 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56663         #define __STDC_LIMIT_MACROS temporarily while including
56664         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56665         Problem reported by Joel E. Denny in
56666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56667
56668 2007-07-01  Bruno Haible  <bruno@clisp.org>
56669
56670         * lib/unistdio.h: New file.
56671         * lib/unistdio/u-asnprintf.h: New file.
56672         * lib/unistdio/u-asprintf.h: New file.
56673         * lib/unistdio/u-printf-args.c: New file.
56674         * lib/unistdio/u-printf-args.h: New file.
56675         * lib/unistdio/u-printf-parse.h: New file.
56676         * lib/unistdio/u-snprintf.h: New file.
56677         * lib/unistdio/u-sprintf.h: New file.
56678         * lib/unistdio/u-vasprintf.h: New file.
56679         * lib/unistdio/u-vsnprintf.h: New file.
56680         * lib/unistdio/u-vsprintf.h: New file.
56681         * lib/unistdio/ulc-asnprintf.c: New file.
56682         * lib/unistdio/ulc-asprintf.c: New file.
56683         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56684         * lib/unistdio/ulc-printf-parse.c: New file.
56685         * lib/unistdio/ulc-snprintf.c: New file.
56686         * lib/unistdio/ulc-sprintf.c: New file.
56687         * lib/unistdio/ulc-vasnprintf.c: New file.
56688         * lib/unistdio/ulc-vasprintf.c: New file.
56689         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56690         * lib/unistdio/ulc-vsnprintf.c: New file.
56691         * lib/unistdio/ulc-vsprintf.c: New file.
56692         * lib/unistdio/u8-asnprintf.c: New file.
56693         * lib/unistdio/u8-asprintf.c: New file.
56694         * lib/unistdio/u8-printf-parse.c: New file.
56695         * lib/unistdio/u8-snprintf.c: New file.
56696         * lib/unistdio/u8-sprintf.c: New file.
56697         * lib/unistdio/u8-vasnprintf.c: New file.
56698         * lib/unistdio/u8-vasprintf.c: New file.
56699         * lib/unistdio/u8-vsnprintf.c: New file.
56700         * lib/unistdio/u8-vsprintf.c: New file.
56701         * lib/unistdio/u8-u8-asnprintf.c: New file.
56702         * lib/unistdio/u8-u8-asprintf.c: New file.
56703         * lib/unistdio/u8-u8-snprintf.c: New file.
56704         * lib/unistdio/u8-u8-sprintf.c: New file.
56705         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56706         * lib/unistdio/u8-u8-vasprintf.c: New file.
56707         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56708         * lib/unistdio/u8-u8-vsprintf.c: New file.
56709         * lib/unistdio/u16-asnprintf.c: New file.
56710         * lib/unistdio/u16-asprintf.c: New file.
56711         * lib/unistdio/u16-printf-parse.c: New file.
56712         * lib/unistdio/u16-snprintf.c: New file.
56713         * lib/unistdio/u16-sprintf.c: New file.
56714         * lib/unistdio/u16-vasnprintf.c: New file.
56715         * lib/unistdio/u16-vasprintf.c: New file.
56716         * lib/unistdio/u16-vsnprintf.c: New file.
56717         * lib/unistdio/u16-vsprintf.c: New file.
56718         * lib/unistdio/u16-u16-asnprintf.c: New file.
56719         * lib/unistdio/u16-u16-asprintf.c: New file.
56720         * lib/unistdio/u16-u16-snprintf.c: New file.
56721         * lib/unistdio/u16-u16-sprintf.c: New file.
56722         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56723         * lib/unistdio/u16-u16-vasprintf.c: New file.
56724         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56725         * lib/unistdio/u16-u16-vsprintf.c: New file.
56726         * lib/unistdio/u32-asnprintf.c: New file.
56727         * lib/unistdio/u32-asprintf.c: New file.
56728         * lib/unistdio/u32-printf-parse.c: New file.
56729         * lib/unistdio/u32-snprintf.c: New file.
56730         * lib/unistdio/u32-sprintf.c: New file.
56731         * lib/unistdio/u32-vasnprintf.c: New file.
56732         * lib/unistdio/u32-vasprintf.c: New file.
56733         * lib/unistdio/u32-vsnprintf.c: New file.
56734         * lib/unistdio/u32-vsprintf.c: New file.
56735         * lib/unistdio/u32-u32-asnprintf.c: New file.
56736         * lib/unistdio/u32-u32-asprintf.c: New file.
56737         * lib/unistdio/u32-u32-snprintf.c: New file.
56738         * lib/unistdio/u32-u32-sprintf.c: New file.
56739         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56740         * lib/unistdio/u32-u32-vasprintf.c: New file.
56741         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56742         * lib/unistdio/u32-u32-vsprintf.c: New file.
56743         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56744         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56745         * tests/unistdio/test-ulc-printf1.h: New file.
56746         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56747         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56748         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56749         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56750         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56751         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56752         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56753         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56754         * tests/unistdio/test-u8-asnprintf1.c: New file.
56755         * tests/unistdio/test-u8-asnprintf1.h: New file.
56756         * tests/unistdio/test-u8-printf1.h: New file.
56757         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56758         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56759         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56760         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56761         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56762         * tests/unistdio/test-u8-vasprintf1.c: New file.
56763         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56764         * tests/unistdio/test-u8-vsprintf1.c: New file.
56765         * tests/unistdio/test-u16-asnprintf1.c: New file.
56766         * tests/unistdio/test-u16-asnprintf1.h: New file.
56767         * tests/unistdio/test-u16-printf1.h: New file.
56768         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56769         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56770         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56771         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56772         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56773         * tests/unistdio/test-u16-vasprintf1.c: New file.
56774         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56775         * tests/unistdio/test-u16-vsprintf1.c: New file.
56776         * tests/unistdio/test-u32-asnprintf1.c: New file.
56777         * tests/unistdio/test-u32-asnprintf1.h: New file.
56778         * tests/unistdio/test-u32-printf1.h: New file.
56779         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56780         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56781         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56782         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56783         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56784         * tests/unistdio/test-u32-vasprintf1.c: New file.
56785         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56786         * tests/unistdio/test-u32-vsprintf1.c: New file.
56787         * modules/unistdio/base: New file.
56788         * modules/unistdio/u-printf-args: New file.
56789         * modules/unistdio/ulc-asnprintf: New file.
56790         * modules/unistdio/ulc-asprintf: New file.
56791         * modules/unistdio/ulc-fprintf: New file.
56792         * modules/unistdio/ulc-printf-parse: New file.
56793         * modules/unistdio/ulc-snprintf: New file.
56794         * modules/unistdio/ulc-sprintf: New file.
56795         * modules/unistdio/ulc-vasnprintf: New file.
56796         * modules/unistdio/ulc-vasprintf: New file.
56797         * modules/unistdio/ulc-vfprintf: New file.
56798         * modules/unistdio/ulc-vsnprintf: New file.
56799         * modules/unistdio/ulc-vsprintf: New file.
56800         * modules/unistdio/u8-asnprintf: New file.
56801         * modules/unistdio/u8-asprintf: New file.
56802         * modules/unistdio/u8-printf-parse: New file.
56803         * modules/unistdio/u8-snprintf: New file.
56804         * modules/unistdio/u8-sprintf: New file.
56805         * modules/unistdio/u8-vasnprintf: New file.
56806         * modules/unistdio/u8-vasprintf: New file.
56807         * modules/unistdio/u8-vsnprintf: New file.
56808         * modules/unistdio/u8-vsprintf: New file.
56809         * modules/unistdio/u8-u8-asnprintf: New file.
56810         * modules/unistdio/u8-u8-asprintf: New file.
56811         * modules/unistdio/u8-u8-snprintf: New file.
56812         * modules/unistdio/u8-u8-sprintf: New file.
56813         * modules/unistdio/u8-u8-vasnprintf: New file.
56814         * modules/unistdio/u8-u8-vasprintf: New file.
56815         * modules/unistdio/u8-u8-vsnprintf: New file.
56816         * modules/unistdio/u8-u8-vsprintf: New file.
56817         * modules/unistdio/u16-asnprintf: New file.
56818         * modules/unistdio/u16-asprintf: New file.
56819         * modules/unistdio/u16-printf-parse: New file.
56820         * modules/unistdio/u16-snprintf: New file.
56821         * modules/unistdio/u16-sprintf: New file.
56822         * modules/unistdio/u16-vasnprintf: New file.
56823         * modules/unistdio/u16-vasprintf: New file.
56824         * modules/unistdio/u16-vsnprintf: New file.
56825         * modules/unistdio/u16-vsprintf: New file.
56826         * modules/unistdio/u16-u16-asnprintf: New file.
56827         * modules/unistdio/u16-u16-asprintf: New file.
56828         * modules/unistdio/u16-u16-snprintf: New file.
56829         * modules/unistdio/u16-u16-sprintf: New file.
56830         * modules/unistdio/u16-u16-vasnprintf: New file.
56831         * modules/unistdio/u16-u16-vasprintf: New file.
56832         * modules/unistdio/u16-u16-vsnprintf: New file.
56833         * modules/unistdio/u16-u16-vsprintf: New file.
56834         * modules/unistdio/u32-asnprintf: New file.
56835         * modules/unistdio/u32-asprintf: New file.
56836         * modules/unistdio/u32-printf-parse: New file.
56837         * modules/unistdio/u32-snprintf: New file.
56838         * modules/unistdio/u32-sprintf: New file.
56839         * modules/unistdio/u32-vasnprintf: New file.
56840         * modules/unistdio/u32-vasprintf: New file.
56841         * modules/unistdio/u32-vsnprintf: New file.
56842         * modules/unistdio/u32-vsprintf: New file.
56843         * modules/unistdio/u32-u32-asnprintf: New file.
56844         * modules/unistdio/u32-u32-asprintf: New file.
56845         * modules/unistdio/u32-u32-snprintf: New file.
56846         * modules/unistdio/u32-u32-sprintf: New file.
56847         * modules/unistdio/u32-u32-vasnprintf: New file.
56848         * modules/unistdio/u32-u32-vasprintf: New file.
56849         * modules/unistdio/u32-u32-vsnprintf: New file.
56850         * modules/unistdio/u32-u32-vsprintf: New file.
56851         * modules/unistdio/ulc-asnprintf-tests: New file.
56852         * modules/unistdio/ulc-vasnprintf-tests: New file.
56853         * modules/unistdio/ulc-vasprintf-tests: New file.
56854         * modules/unistdio/ulc-vsnprintf-tests: New file.
56855         * modules/unistdio/ulc-vsprintf-tests: New file.
56856         * modules/unistdio/u8-asnprintf-tests: New file.
56857         * modules/unistdio/u8-vasnprintf-tests: New file.
56858         * modules/unistdio/u8-vasprintf-tests: New file.
56859         * modules/unistdio/u8-vsnprintf-tests: New file.
56860         * modules/unistdio/u8-vsprintf-tests: New file.
56861         * modules/unistdio/u16-asnprintf-tests: New file.
56862         * modules/unistdio/u16-vasnprintf-tests: New file.
56863         * modules/unistdio/u16-vasprintf-tests: New file.
56864         * modules/unistdio/u16-vsnprintf-tests: New file.
56865         * modules/unistdio/u16-vsprintf-tests: New file.
56866         * modules/unistdio/u32-asnprintf-tests: New file.
56867         * modules/unistdio/u32-vasnprintf-tests: New file.
56868         * modules/unistdio/u32-vasprintf-tests: New file.
56869         * modules/unistdio/u32-vsnprintf-tests: New file.
56870         * modules/unistdio/u32-vsprintf-tests: New file.
56871         * MODULES.html.sh (Unicode string functions): Add the new modules.
56872
56873 2007-07-01  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/sprintf.c (sprintf): Limit the available length estimation,
56876         to avoid address wraparound.
56877         * lib/vsprintf.c (vsprintf): Likewise.
56878         * modules/sprintf-posix (Dependencies): Add stdint.
56879         * modules/vsprintf-posix (Dependencies): Likewise.
56880
56881 2007-07-01  Bruno Haible  <bruno@clisp.org>
56882
56883         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56884         Windows PATH as well. Conservative double-quoting. Comments.
56885
56886 2007-07-01  Bruno Haible  <bruno@clisp.org>
56887             Eric Blake  <ebb9@byu.net>
56888             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56889
56890         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56891         empty components in $PATH, denoting '.'.
56892
56893 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56894
56895         * gnulib-tool: Fix indentation.
56896         (func_create_megatestdir): Likewise.
56897         Report by Bruno Haible.
56898
56899 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56900
56901         Sync from Automake.
56902         * build-aux/gnupload: Fix shell portability issues with for loops.
56903         Report by Karl Berry.
56904
56905 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56906
56907         * build-aux/maint.mk (POURL): Use translationproject.org.
56908
56909 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56910             Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56913         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56914         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56915         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56916         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56917
56918 2007-06-27  Bruno Haible  <bruno@clisp.org>
56919
56920         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56921         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56922
56923 2007-06-26  Karl Berry  <karl@gnu.org>
56924
56925         * MODULES.html.sh: remove xreadlink-with-size.
56926
56927 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56930         method that I hope also handles the double-include problem noted
56931         by Bruno Haible in
56932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56933
56934 2007-06-23  Bruno Haible  <bruno@clisp.org>
56935
56936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56937         Don't let the 'mostlyclean' target fail if the last subdirectory could
56938         not be removed.
56939         Reported by Karl Berry.
56940
56941 2007-06-23  Bruno Haible  <bruno@clisp.org>
56942
56943         * gnulib-tool (echo): Add a speedier workaround for ksh.
56944         * tests/test-echo.sh: Likewise.
56945
56946 2007-06-23  Bruno Haible  <bruno@clisp.org>
56947
56948         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56949         * tests/test-echo.sh: Likewise.
56950
56951 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56952
56953         * gnulib-tool (IFS): Initialize early, so we don't set it to
56954         empty later.
56955         (self_abspathname): Rewrite algorithm to set it, reindent.
56956         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56957         (func_create_megatestdir): Merge some sed scripts.
56958
56959 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56960
56961         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56962         exposed by Sun Studio 11 cc on Solaris 8.
56963
56964 2007-06-22  Bruno Haible  <bruno@clisp.org>
56965
56966         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56967         backslashes.
56968         * tests/test-echo.sh: New file.
56969
56970 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56971
56972         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56973         simplify `sed_replace_build_aux' scripts, they are portable but
56974         echoing them with `echo' is not.
56975         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56976
56977 2007-06-21  Karl Berry  <karl@gnu.org>
56978
56979         * config/srclist.txt: guess we can't handle the licenses via
56980         srclist at the moment.
56981
56982 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         * MODULES.html.sh: Add include_next.
56985         * modules/include_next: New file.
56986
56987 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56990         INCLUDE_NEXT.
56991         (gl_CHECK_NEXT_HEADERS): New macro.
56992         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56993         the obsolescent gl_ABSOLUTE_HEADER.
56994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56995         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56996         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56998         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56999         * m4/math_h.m4 (gl_MATH_H): Likewise.
57000         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57001         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57002         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57003         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57004         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57005         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57006         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57007         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57008         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57011         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57012         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57013         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57014         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57015         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57016         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57017         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57018         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57019         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57020         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57021         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57022         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57023         * lib/float_.h: Likewise.
57024         * lib/inttypes_.h: Likewise.
57025         * lib/math_.h: Likewise.
57026         * lib/search_.h: Likewise.
57027         * lib/signal_.h: Likewise.
57028         * lib/stdint_.h: Likewise.
57029         * lib/stdio_.h: Likewise.
57030         * lib/stdlib_.h: Likewise.
57031         * lib/string_.h: Likewise.
57032         * lib/sys_stat_.h: Likewise.
57033         * lib/sys_time_.h: Likewise.
57034         * lib/time_.h: Likewise.
57035         * lib/unistd_.h: Likewise.
57036         * lib/wchar_.h: Likewise.
57037         * lib/wctype_.h: Likewise.
57038         * lib/dirent_.h: Likewise.
57039         * lib/iconv_.h: Likewise.
57040         * lib/locale_.h: Likewise.
57041         * lib/netinet_in_.h: Likewise.
57042         * lib/sys_select_.h: Likewise.
57043         * lib/sys_socket_.h: Likewise.
57044         * lib/sysexits_.h: Likewise.
57045         * modules/fcntl (Depends-on): Depend on include_next, not
57046         absolute_header.
57047         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57048         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57049         * modules/fchdir: Likewise.
57050         * modules/float: Likewise.
57051         * modules/iconv_open: Likewise.
57052         * modules/inttypes: Likewise.
57053         * modules/locale: Likewise.
57054         * modules/math: Likewise.
57055         * modules/netinet_in: Likewise.
57056         * modules/search: Likewise.
57057         * modules/signal: Likewise.
57058         * modules/stdint: Likewise.
57059         * modules/stdio: Likewise.
57060         * modules/stdlib: Likewise.
57061         * modules/string: Likewise.
57062         * modules/sys_select: Likewise.
57063         * modules/sys_socket: Likewise.
57064         * modules/sys_stat: Likewise.
57065         * modules/sys_time: Likewise.
57066         * modules/sysexits: Likewise.
57067         * modules/time: Likewise.
57068         * modules/unistd: Likewise.
57069         * modules/wchar: Likewise.
57070         * modules/wctype: Likewise.
57071         * modules/sys_stat: Change maintainer to "all".
57072         * modules/unistd: Likewise.
57073
57074 2007-06-20  Karl Berry  <karl@gnu.org>
57075
57076         * config/srclist.txt: track www changes in license files.
57077
57078 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57079
57080         * build-aux/bootstrap: Remove stray dot.
57081         Make sure build_aux settings are honored when linking
57082         gnulib_extra_files.
57083
57084 2007-06-19  Eric Blake  <ebb9@byu.net>
57085
57086         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57087         Allow compilation on cygwin.
57088
57089 2007-06-19  Jim Meyering  <jim@meyering.net>
57090
57091         xreadlink-with-size: Remove module.  No longer used.
57092         Ex-callers now use xreadlink or mreadlink-with-size.
57093         * modules/xreadlink-with-size: Remove module.
57094         * lib/xreadlink-with-size.c: Remove file.
57095         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57096         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57097         just before the function definition *is* accurate.
57098
57099         Eliminate one way canonicalize_filename_mode could exit.
57100         * lib/canonicalize.c (canonicalize_filename_mode):
57101         Use mreadlink_with_size, not xreadlink_with_size.
57102
57103 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         Detect porting problems to FreeBSD/arm, which has time_t wider than
57106         long int.  Original problem reported for GNU diff by Xin Li in
57107         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57108         * modules/getdate (Depends-on): Add intprops, verify.
57109         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57110         is an integer type no wider than long int.
57111
57112 2007-06-18  Jim Meyering  <jim@meyering.net>
57113
57114         New module: mreadlink-with-size.
57115         * MODULES.html.sh: Add mreadlink-with-size.
57116         * modules/mreadlink-with-size: New module
57117         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57118         not xreadlink-with-size.
57119         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57120
57121 2007-06-16  Bruno Haible  <bruno@clisp.org>
57122
57123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57124         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57125         Reported by Gary V. Vaughan <gary@gnu.org>.
57126
57127 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         Revamp lchown so that it lives in unistd.h where it belongs.
57130         * lib/lchown.h: Remove.
57131         * lib/dirchownmod.c: Don't include lib/lchown.h.
57132         * lib/fchownat.c: Likewise.
57133         * lib/openat.c: Likewise.
57134         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57135         does not follow symlinks.
57136         (EOPNOTSUPP): Define if not defined.
57137         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57138         is defined to 0.
57139         (lchown): New decl.
57140         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57141         Do not check for lchown decl.
57142         Set REPLACE_LCHOWN.
57143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57144         REPLACE_LCHOWN.
57145         * modules/chown: Make it clear it follows symlinks.
57146         * modules/lchown: Make it clear it doesn't follow symlinks.
57147         (Files): Remove lib/lchown.h
57148         (Depends-on): Add unistd.
57149         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57150         (Include): Include <unistd.h>, not "lchown.h".
57151         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57152         REPLACE_LCHOWN.
57153
57154 2007-06-15  Jim Meyering  <jim@meyering.net>
57155
57156         Change license (GPL to LGPL) of fsusage and dependents.
57157         * modules/fsusage (License): Change to LGPL.
57158         * modules/full-read (License): Likewise.
57159         * modules/full-write (License): Likewise.
57160         * modules/safe-read (License): Likewise.
57161         * modules/safe-write (License): Likewise.
57162
57163 2007-06-14  Ben Pfaff  <blp@gnu.org>
57164
57165         Missing part of allocsa -> malloca transition.
57166         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57167         gl_MALLOCA.
57168
57169 2007-06-12  Bruno Haible  <bruno@clisp.org>
57170
57171         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57172         to ia64, x86_64, i386.
57173         Reported by Eric Blake.
57174
57175 2007-06-12  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57178         cross-compiling to x86_64.
57179
57180 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57183         glitch reported by Ralf Wildenhues in
57184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57185
57186         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57187         Vin Shelton.
57188
57189 2007-06-11  Bruno Haible  <bruno@clisp.org>
57190
57191         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57192         replacement string.
57193         Reported by Eric Blake.
57194
57195 2007-06-10  Bruno Haible  <bruno@clisp.org>
57196
57197         Prepare vasnprintf code for use with Unicode strings.
57198         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57199         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57200         TYPE_U32_STRING.
57201         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57202         a_u32_string variants.
57203         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57204         * lib/printf-args.c: Don't include config.h and the specification
57205         header if PRINTF_FETCHARGS is already defined.
57206         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57207         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57208         TYPE_U16_STRING, TYPE_U32_STRING.
57209         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57210         u16_directive, u16_directives, u32_directive, u32_directives): New
57211         types.
57212         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57213         New declarations.
57214         * lib/printf-parse.c: Don't include config.h and the specification
57215         header if PRINTF_PARSE is already defined. Eliminate the set of
57216         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57217         them now. Include c-ctype.h.
57218         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57219         directive and CHAR_T_ONLY_ASCII.
57220         * lib/vasnprintf.c: Don't include config.h and the specification header
57221         if VASNPRINTF is already defined.
57222         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57223         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57224         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57225         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57226         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57227         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57228         code accordingly.
57229         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57230         pad_ourselves also in this case, with the 'c' and 's' directives, and
57231         with a different notion of "width".
57232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57233
57234 2007-06-10  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/unistr/u32-mbsnlen: New file.
57237         * lib/unistr/u32-mbsnlen.c: New file.
57238
57239         * modules/unistr/u16-mbsnlen: New file.
57240         * lib/unistr/u16-mbsnlen.c: New file.
57241
57242         * modules/unistr/u8-mbsnlen: New file.
57243         * lib/unistr/u8-mbsnlen.c: New file.
57244
57245         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57246         declarations.
57247
57248 2007-06-10  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/string_.h (mbsnlen): New declaration.
57251         * lib/mbsnlen.c: New file.
57252         * m4/mbsnlen.m4: New file.
57253         * modules/mbsnlen: New file.
57254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57255         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57256         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57257
57258 2007-06-10  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57261
57262 2007-06-10  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57265         * lib/mbuiter.h: Likewise.
57266
57267 2007-06-10  Bruno Haible  <bruno@clisp.org>
57268
57269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57270         declaration.
57271
57272 2007-06-10  Karl Berry  <karl@gnu.org>
57273
57274         * config/srclist.txt: remove gettext entries, Bruno prefers
57275         to update individually.
57276
57277 2007-06-10  Bruno Haible  <bruno@clisp.org>
57278
57279         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57280         'maxlen'. Ensure only length + width bytes are allocated, not
57281         length + 1 + width.
57282
57283 2007-06-09  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57286         (CHAR_T): Remove macro.
57287         (VASNPRINTF): Update.
57288
57289 2007-06-09  Bruno Haible  <bruno@clisp.org>
57290
57291         * MODULES.html.sh (Unicode string functions): Add the new modules.
57292
57293         * modules/uniconv/u32-conv-to-enc: New file.
57294         * lib/uniconv/u32-conv-to-enc.c: New file.
57295         * modules/uniconv/u32-conv-to-enc-tests: New file.
57296         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57297
57298         * modules/uniconv/u16-conv-to-enc: New file.
57299         * lib/uniconv/u16-conv-to-enc.c: New file.
57300         * lib/uniconv/u-conv-to-enc.h: New file.
57301         * modules/uniconv/u16-conv-to-enc-tests: New file.
57302         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57303
57304         * modules/uniconv/u8-conv-to-enc: New file.
57305         * lib/uniconv/u8-conv-to-enc.c: New file.
57306         * modules/uniconv/u8-conv-to-enc-tests: New file.
57307         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57308
57309         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57310         u32_conv_to_encoding): New declarations.
57311
57312 2007-06-09  Bruno Haible  <bruno@clisp.org>
57313
57314         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57315
57316 2007-06-09  Bruno Haible  <bruno@clisp.org>
57317
57318         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57319         * modules/malloca: Renamed from modules/allocsa, updated.
57320         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57321         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57322         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57323         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57324         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57325         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57326         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57327         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57328         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57329         * modules/c-strcasestr (Depends-on): Update.
57330         * lib/c-strcasestr.c: Update.
57331         * modules/c-strstr (Depends-on): Update.
57332         * lib/c-strstr.c: Update.
57333         * modules/canonicalize-lgpl (Depends-on): Update.
57334         * lib/canonicalize-lgpl.c: Update.
57335         * modules/clean-temp (Depends-on): Update.
57336         * lib/clean-temp.c: Update.
57337         * modules/csharpcomp (Depends-on): Update.
57338         * lib/csharpcomp.c: Update.
57339         * modules/csharpexec (Depends-on): Update.
57340         * lib/csharpexec.c: Update.
57341         * modules/javacomp (Depends-on): Update.
57342         * lib/javacomp.c: Update.
57343         * modules/javaexec (Depends-on): Update.
57344         * lib/javaexec.c: Update.
57345         * modules/mbscasestr (Depends-on): Update.
57346         * lib/mbscasestr.c: Update.
57347         * modules/mbsstr (Depends-on): Update.
57348         * lib/mbsstr.c: Update.
57349         * modules/setenv (Depends-on): Update.
57350         * lib/setenv.c: Update.
57351         * modules/strcasestr (Depends-on): Update.
57352         * lib/strcasestr.c: Update.
57353         * modules/striconveha (Depends-on): Update.
57354         * lib/striconveha.c: Update.
57355         * modules/relocatable-prog-wrapper (Files): Update.
57356         * lib/relocwrapper.c: Update.
57357         * build-aux/install-reloc: Update.
57358         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57359
57360 2007-06-08  Bruno Haible  <bruno@clisp.org>
57361
57362         Port to uClibc.
57363         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57364         * lib/fpurge.c (fpurge): Likewise.
57365         * lib/freading.c (freading): Likewise.
57366         * lib/fseeko.c (rpl_fseeko): Likewise.
57367         * lib/fseterr.c (fseterr): Likewise.
57368         * lib/fwriting.c (fwriting): Likewise.
57369         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57370
57371 2007-06-08  Bruno Haible  <bruno@clisp.org>
57372
57373         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57374         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57375         * modules/gettext (Files): Add m4/intlmacosx.m4.
57376
57377 2007-06-07  Bruno Haible  <bruno@clisp.org>
57378
57379         * modules/localename-tests: New file.
57380         * tests/test-localename.c: New file.
57381
57382         New module 'localename'.
57383         * lib/localename.h: New file.
57384         * lib/localename.c: New file, from GNU gettext.
57385         * m4/localename.m4: New file.
57386         * modules/localename: New file.
57387
57388 2007-06-07  Bruno Haible  <bruno@clisp.org>
57389
57390         Work around the lack of <wchar.h> on some builds of uClibc.
57391         * doc/headers/wchar.texi: Update.
57392         * lib/wchar_.h: Include <wchar.h> only if it exists.
57393         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57394         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57395         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57396         doesn't exist.
57397         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57398         * modules/mbfile (Depends-on): Add wchar.
57399         * modules/mbiter (Depends-on): Likewise.
57400         * modules/mbuiter (Depends-on): Likewise.
57401         Reported by Simon Josefsson.
57402
57403 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57404
57405         Work around problem reported by Steven M. Schweda in
57406         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57407         Tru64 5.1B with the Compaq compiler environment installed declares
57408         an 'isblank' function but does not define it in the C library.
57409         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57410         * lib/regex_internal.h (isblank): Likewise.
57411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57412         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57413
57414 2007-06-05  Bruno Haible  <bruno@clisp.org>
57415
57416         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57417         ia64.
57418         * modules/printf-safe: New file.
57419         * modules/fprintf-posix (Depends-on): Add printf-safe.
57420         * modules/printf-posix (Depends-on): Likewise.
57421         * modules/snprintf-posix (Depends-on): Likewise.
57422         * modules/sprintf-posix (Depends-on): Likewise.
57423         * modules/vasnprintf-posix (Depends-on): Likewise.
57424         * modules/vasprintf-posix (Depends-on): Likewise.
57425         * modules/vfprintf-posix (Depends-on): Likewise.
57426         * modules/vprintf-posix (Depends-on): Likewise.
57427         * modules/vsnprintf-posix (Depends-on): Likewise.
57428         * modules/vsprintf-posix (Depends-on): Likewise.
57429         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57430         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57431         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57432         "no" on i386, x86_64, ia64.
57433         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57434         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57435         on i386, x86_64, ia64.
57436         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57437         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57438         on i386, x86_64, ia64.
57439         * tests/test-vasnprintf-posix.c: Include float.h.
57440         (LDBL80_WORDS): New macro.
57441         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57442         on i386, x86_64, ia64.
57443         * tests/test-vasprintf-posix.c: Include float.h.
57444         (LDBL80_WORDS): New macro.
57445         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57446         on i386, x86_64, ia64.
57447         * tests/test-snprintf-posix.c: Include float.h.
57448         * tests/test-sprintf-posix.c: Likewise.
57449         * tests/test-vsnprintf-posix.c: Likewise.
57450         * tests/test-vsprintf-posix.c: Likewise.
57451
57452 2007-06-05  Bruno Haible  <bruno@clisp.org>
57453
57454         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57455         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57456         non-IEEE numbers on i386, x86_64, ia64.
57457         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57458         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57459         * tests/test-isnanl.h: Include float.h.
57460         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57461
57462 2007-06-05  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57465         also the %a / %A. Handle the %a / %A code before this extra handling.
57466
57467 2007-06-05  Bruno Haible  <bruno@clisp.org>
57468
57469         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57470         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57471
57472 2007-06-05  Bruno Haible  <bruno@clisp.org>
57473
57474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57475         typo in variable name.
57476
57477 2007-06-05  Eric Blake  <ebb9@byu.net>
57478
57479         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57480         Reported by Simon Josefsson.
57481
57482 2007-06-04  Bruno Haible  <bruno@clisp.org>
57483
57484         Avoid test failures on some PowerPC platforms.
57485         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57486         Define differently for PowerPC.
57487         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57488         Reported by Gary V. Vaughan <gary@gnu.org>.
57489
57490 2007-06-02  Bruno Haible  <bruno@clisp.org>
57491
57492         Fix test-stdint failure on FreeBSD/ia64.
57493         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57494         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57495         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57496         * doc/headers/stdint.texi: Update.
57497
57498 2007-06-01  Bruno Haible  <bruno@clisp.org>
57499
57500         * tests/test-binary-io.c (main): Pass a third argument to open().
57501         Reported by Gary V. Vaughan <gary@gnu.org>.
57502
57503 2007-06-01  Bruno Haible  <bruno@clisp.org>
57504
57505         * doc/functions/frexpl.texi: Update for mingw.
57506
57507 2007-06-01  Bruno Haible  <bruno@clisp.org>
57508
57509         * tests/test-lseek.c (main): Disable test of errno for invalid third
57510         argument.
57511         * doc/functions/lseek.texi: Update.
57512         Reported by Gary V. Vaughan <gary@gnu.org>.
57513
57514 2007-05-28  Bruno Haible  <bruno@clisp.org>
57515
57516         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57517
57518 2007-05-31  Eric Blake  <ebb9@byu.net>
57519
57520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57521         cross compiling.
57522
57523 2007-05-30  Eric Blake  <ebb9@byu.net>
57524         and Bruno Haible  <bruno@clisp.org>
57525
57526         Work around mingw test failures exposed by m4-1.4.9b.
57527         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57528         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57529         moment.
57530
57531 2007-05-30  Bruno Haible  <bruno@clisp.org>
57532
57533         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57534         assuming that they are closed. Needed on HP-UX 11.
57535
57536 2007-05-29  Bruno Haible  <bruno@clisp.org>
57537
57538         Fix a problem with #include_next.
57539         * lib/dirent_.h: Split the double-inclusion guard.
57540         * lib/fcntl_.h: Likewise.
57541         * lib/float_.h: Likewise.
57542         * lib/iconv_.h: Likewise.
57543         * lib/inttypes_.h: Likewise.
57544         * lib/locale_.h: Likewise.
57545         * lib/math_.h: Likewise.
57546         * lib/netinet_in_.h: Likewise.
57547         * lib/search_.h: Likewise.
57548         * lib/signal_.h: Likewise.
57549         * lib/stdint_.h: Likewise.
57550         * lib/stdio_.h: Likewise.
57551         * lib/stdlib_.h: Likewise.
57552         * lib/string_.h: Likewise.
57553         * lib/sys_select_.h: Likewise.
57554         * lib/sys_socket_.h: Likewise.
57555         * lib/sys_stat_.h: Likewise.
57556         * lib/sys_time_.h: Likewise.
57557         * lib/sysexits_.h: Likewise.
57558         * lib/time_.h: Likewise.
57559         * lib/unistd_.h: Likewise.
57560         * lib/wchar_.h: Likewise.
57561         * lib/wctype_.h: Likewise.
57562
57563 2007-05-29  Bruno Haible  <bruno@clisp.org>
57564
57565         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57566         for the moment.
57567
57568 2007-05-29  Bruno Haible  <bruno@clisp.org>
57569
57570         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57571         invocation.
57572         Reported by Eric Blake.
57573
57574 2007-05-29  Bruno Haible  <bruno@clisp.org>
57575
57576         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57577         compiling case.
57578
57579 2007-05-29  Eric Blake  <ebb9@byu.net>
57580             Bruno Haible  <bruno@clisp.org>
57581
57582         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57583         cross compiles.
57584
57585 2007-05-28  Eric Blake  <ebb9@byu.net>
57586
57587         * modules/closein-tests (test_closein_LDADD): Support test on
57588         cygwin with libtool.
57589
57590 2007-05-28  Bruno Haible  <bruno@clisp.org>
57591
57592         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57593         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57594         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57595         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57596         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57597         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57598         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57599         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57600         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57601
57602 2007-05-28  Eric Blake  <ebb9@byu.net>
57603
57604         Unconditionally include <config.h> in unit tests.
57605         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57606         * tests/test-allocsa.c, tests/test-arcfour.c,
57607         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57608         tests/test-array_list.c, tests/test-array_oset.c,
57609         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57610         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57611         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57612         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57613         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57614         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57615         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57616         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57617         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57618         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57619         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57620         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57621         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57622         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57623         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57624         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57625         test-md5.c, test-memmem.c, test-printf-posix.c,
57626         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57627         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57628         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57629         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57630         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57631         test-vasnprintf-posix2.c, test-vasnprintf.c,
57632         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57633         test-vfprintf-posix.c, test-vprintf-posix.c,
57634         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57635         test-xvasprintf.c: Likewise.
57636
57637 2007-05-28  Bruno Haible  <bruno@clisp.org>
57638
57639         * gnulib-tool (func_import): Remember the --with-tests command-line
57640         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57641         Reported by Eric Blake.
57642
57643 2007-05-28  Bruno Haible  <bruno@clisp.org>
57644
57645         * modules/ftell-tests: New file.
57646         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57647         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57648
57649         * lib/ftell.c: New file.
57650         * modules/ftell: New file.
57651         * m4/ftell.m4: New file.
57652         * doc/functions/ftell.texi: Update.
57653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57654         REPLACE_FTELL.
57655         * lib/stdio_.h (rpl_ftell): New declaration.
57656         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57657         REPLACE_FTELL.
57658
57659 2007-05-28  Eric Blake  <ebb9@byu.net>
57660
57661         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57662
57663 2007-05-28  Bruno Haible  <bruno@clisp.org>
57664
57665         * modules/fseek-tests: New file.
57666         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57667         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57668
57669         * lib/fseek.c: New file.
57670         * modules/fseek: New file.
57671         * m4/fseek.m4: New file.
57672         * doc/functions/fseek.texi: Update.
57673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57674         REPLACE_FSEEK.
57675         * lib/stdio_.h (rpl_fseek): New declaration.
57676         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57677         REPLACE_FSEEK.
57678
57679 2007-05-28  Bruno Haible  <bruno@clisp.org>
57680
57681         * lib/stdio_.h (fflush): More comments.
57682
57683 2007-05-28  Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57686         runtime test.
57687
57688 2007-05-28  Eric Blake  <ebb9@byu.net>
57689
57690         Improve lseek module.
57691         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57692         * lib/unistd_.h (lseek): Scale back link warning message.
57693         * tests/test-lseek.c: Beef up test.
57694         * tests/test-lseek.sh: Exercise more facets of lseek.
57695         Reported by Bruno Haible.
57696
57697 2007-05-28  Bruno Haible  <bruno@clisp.org>
57698
57699         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57700         to define.
57701
57702 2007-05-27  Bruno Haible  <bruno@clisp.org>
57703
57704         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57705
57706 2007-05-27  Bruno Haible  <bruno@clisp.org>
57707
57708         * modules/openmp: New file.
57709         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57710         Noah Misch.
57711
57712 2007-05-26  Bruno Haible  <bruno@clisp.org>
57713
57714         * modules/chdir-long (Depends-on): Add fchdir.
57715         * modules/chdir-safer (Depends-on): Likewise.
57716         * modules/fts (Depends-on): Likewise.
57717         * modules/fts-lgpl (Depends-on): Likewise.
57718         * modules/openat (Depends-on): Likewise.
57719         * modules/savewd (Depends-on): Likewise.
57720
57721 2007-05-24  Eric Blake  <ebb9@byu.net>
57722
57723         Fix lseek on mingw.
57724         * modules/lseek: New module.
57725         * m4/lseek.m4: New file.
57726         * lib/lseek.c: New file.
57727         * modules/lseek-tests: New file.
57728         * tests/test-lseek.c: New file.
57729         * tests/test-lseek.sh: New file.
57730         * MODULES.html.sh: Document lseek module.
57731         * modules/fflush (Depends-on): Add lseek, fseeko.
57732         * modules/fseeko (Depends-on): Likewise.
57733         * modules/ftello (Depends-on): Likewise.
57734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57735         broken.
57736         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57737         broken.
57738         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57739         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57740         * lib/ftello.c (rpl_ftello): Likewise.
57741         * tests/test-fseeko.c (main): Test this.
57742         * tests/test-fseeko.sh: Likewise.
57743         * tests/test-ftello.c (main): Likewise.
57744         * tests/test-ftello.sh: Likewise.
57745         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57746         implies replacing fseek.
57747         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57748         HAVE_FTELLO.
57749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57750         * modules/unistd (Makefile.am): Likewise.
57751         * lib/unistd_.h (lseek): Declare a replacement.
57752         * doc/functions/lseek.texi (lseek): Document this fix.
57753         * doc/functions/fseek.texi (fseek): Likewise.
57754         * doc/functions/ftell.texi (ftell): Likewise.
57755
57756 2007-05-24  Bruno Haible  <bruno@clisp.org>
57757
57758         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57759         in the printed representation of a NaN.
57760         * tests/test-vasprintf-posix.c (test_function): Likewise.
57761         * tests/test-snprintf-posix.h (test_function): Likewise.
57762         * tests/test-sprintf-posix.h (test_function): Likewise.
57763         Reported by Eric Blake.
57764
57765 2007-05-23  Eric Blake  <ebb9@byu.net>
57766
57767         Fix fseeko/ftello on cygwin 1.5.24.
57768         * doc/functions/fseeko.texi (fseeko): Document the fix.
57769         * doc/functions/ftello.texi (ftello): Document the fix.
57770         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57771         * doc/functions/stdout.text (stdout): New file.
57772         * doc/functions/stderr.text (stderr): New file.
57773         * doc/gnulib.texi (Function Substitutes): Use new files.
57774         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57775         prior to 1.7.0.
57776         * tests/test-ftello.c (main): Likewise for ftello.
57777         * tests/test-fseeko.sh: New file.
57778         * tests/test-ftello.sh: New file.
57779         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57780         with seekable stdin.
57781         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57782         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57783         (gl_REPLACE_FSEEKO): New macro.
57784         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57785         * modules/fseeko (Files): Distribute fseeko.c.
57786         * modules/ftello (Files): Distribute ftello.c.
57787         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57788         mode.
57789         * lib/ftello.c (rpl_ftello): New file.
57790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57791         fseeko, ftello.
57792         (gl_STDIN_LARGE_OFFSET): New macro.
57793         * modules/stdio (Makefile.am): Perform the replacement.
57794         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57795
57796 2007-05-23  Bruno Haible  <bruno@clisp.org>
57797
57798         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57799         GNULIB_POSIXCHECK is defined.
57800
57801 2007-05-21  Bruno Haible  <bruno@clisp.org>
57802
57803         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57804         Check also the output for NaN arguments. When cross-compiling, guess
57805         no on IRIX.
57806         * lib/vasnprintf.c: Update comments.
57807         * tests/test-vasnprintf-posix.c (strisnan): New function.
57808         (test_function): Use it.
57809         * tests/test-vasprintf-posix.c (strisnan): New function.
57810         (test_function): Use it.
57811         * tests/test-snprintf-posix.h (strisnan): New function.
57812         (test_function): Use it.
57813         * tests/test-sprintf-posix.h (strisnan): New function.
57814         (test_function): Use it.
57815         Reported by Eric Blake.
57816
57817 2007-05-20  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57820         numbers that fails on BeOS.
57821         * doc/functions/frexpl.texi: Update.
57822
57823 2007-05-20  Jim Meyering  <jim@meyering.net>
57824
57825         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57826         forced upon us by glibc-2.6.
57827
57828 2007-05-20  Bruno Haible  <bruno@clisp.org>
57829
57830         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57831         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57832         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57833         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57834         NEED_PRINTF_INFINITE.
57835         (is_infinitel): New function.
57836         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57838         gl_PREREQ_VASNPRINTF_INFINITE.
57839         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57841         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57842         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57843         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57844         gl_PREREQ_VASNPRINTF_INFINITE.
57845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57852         * doc/functions/fprintf.texi: Update.
57853         * doc/functions/printf.texi: Update.
57854         * doc/functions/snprintf.texi: Update.
57855         * doc/functions/sprintf.texi: Update.
57856         * doc/functions/vfprintf.texi: Update.
57857         * doc/functions/vprintf.texi: Update.
57858         * doc/functions/vsnprintf.texi: Update.
57859         * doc/functions/vsprintf.texi: Update.
57860
57861 2007-05-20  Bruno Haible  <bruno@clisp.org>
57862
57863         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57864         was not found in libc.
57865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57866
57867 2007-05-20  Bruno Haible  <bruno@clisp.org>
57868
57869         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57870         printed as "-nan" instead of "nan".
57871         * tests/test-vasprintf-posix.c (test_function): Likewise.
57872         * tests/test-snprintf-posix.h (test_function): Likewise.
57873         * tests/test-sprintf-posix.h (test_function): Likewise.
57874         Needed for HP-UX 11.
57875
57876 2007-05-20  Jim Meyering  <jim@meyering.net>
57877
57878         Fix buggy test for the fchownat-deref bug.
57879         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57880         symlink required for the run-test.  Without it, this test would
57881         always declare that fchownat doesn't work, and client code would
57882         unnecessarily use the replacement function with fixed libc.
57883         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57884         Reported by Greg Schafer.
57885
57886 2007-05-19  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57889         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57890         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57891         Needed for IRIX 6.5 and Solaris 2.5.1.
57892
57893 2007-05-19  Bruno Haible  <bruno@clisp.org>
57894
57895         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57896         (test_function): Skip tests involving -0.0 on platforms where
57897         -0.0 = 0.0.
57898         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57899         (test_function): Skip tests involving -0.0 on platforms where
57900         -0.0 = 0.0.
57901         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57902         (test_function): Skip tests involving -0.0 on platforms where
57903         -0.0 = 0.0.
57904         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57905         (test_function): Skip tests involving -0.0 on platforms where
57906         -0.0 = 0.0.
57907         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57908         tests.
57909         * tests/test-printf-posix.h (test_function): Likewise.
57910         * tests/test-printf-posix.output: Remove all -0.0 related results.
57911         Needed for IRIX 6.5.
57912
57913 2007-05-19  Bruno Haible  <bruno@clisp.org>
57914
57915         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57916         printed as "nan0x7fffffff" instead of "nan".
57917         * tests/test-vasprintf-posix.c (test_function): Likewise.
57918         * tests/test-snprintf-posix.h (test_function): Likewise.
57919         * tests/test-sprintf-posix.h (test_function): Likewise.
57920         * tests/test-fprintf-posix.h (NaN): Remove macro.
57921         (test_function): Remove all NaN related tests.
57922         * tests/test-printf-posix.h (NaN): Remove macro.
57923         (test_function): Remove all NaN related tests.
57924         * tests/test-printf-posix.output: Remove all NaN related results.
57925         Needed for IRIX 6.5.
57926
57927 2007-05-19  Bruno Haible  <bruno@clisp.org>
57928
57929         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57931
57932 2007-05-19  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/float_.h: New file.
57935         * m4/float_h.m4: New file.
57936         * modules/float: New file.
57937         * modules/isnanl (Dependencies): Add float.
57938         * modules/isnanl-nolibm (Dependencies): Likewise.
57939         * modules/mathl (Dependencies): Likewise.
57940         * modules/printf-frexpl (Dependencies): Likewise.
57941         * modules/signbit (Dependencies): Likewise.
57942         * modules/vasnprintf (Dependencies): Likewise.
57943         * doc/headers/float.texi: Update.
57944
57945 2007-05-19  Jim Meyering  <jim@meyering.net>
57946
57947         * lib/utimens.c (gl_futimens): Rename from futimens,
57948         now that glibc-2.6 declares futimens.
57949         * lib/utimens.h: Likewise.
57950
57951 2007-05-19  Bruno Haible  <bruno@clisp.org>
57952
57953         Avoid test failures on mingw.
57954         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57955         * tests/test-printf-posix.sh: Likewise.
57956         * tests/test-vfprintf-posix.sh: Likewise.
57957         * tests/test-vprintf-posix.sh: Likewise.
57958
57959 2007-05-19  Bruno Haible  <bruno@clisp.org>
57960
57961         Fix *printf result for NaN, Inf, -0.0 on mingw.
57962         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57963         * lib/vasnprintf.c: Include math.h and isnan.h.
57964         (is_infinite_or_zero): New function.
57965         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57966         values in the %f, %F, %e, %E, %g, %G directives.
57967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57969         gl_PRINTF_INFINITE and test its result. Invoke
57970         gl_PREREQ_VASNPRINTF_INFINITE.
57971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57978         * doc/functions/fprintf.texi: Update.
57979         * doc/functions/printf.texi: Update.
57980         * doc/functions/snprintf.texi: Update.
57981         * doc/functions/sprintf.texi: Update.
57982         * doc/functions/vfprintf.texi: Update.
57983         * doc/functions/vprintf.texi: Update.
57984         * doc/functions/vsnprintf.texi: Update.
57985         * doc/functions/vsprintf.texi: Update.
57986
57987 2007-05-19  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57990         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57991         Instead of multiplying with 10^k, set extra_zeroes to k.
57992         (scale10_round_long_double): Remove function.
57993
57994 2007-05-18  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57997         introduced on 2007-05-06.
57998
57999 2007-05-18  Bruno Haible  <bruno@clisp.org>
58000
58001         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58002         %g directives.
58003         * tests/test-vasprintf-posix.c (test_function): Likewise.
58004         * tests/test-snprintf-posix.h (test_function): Likewise.
58005         * tests/test-sprintf-posix.h (test_function): Likewise.
58006
58007 2007-05-18  Bruno Haible  <bruno@clisp.org>
58008
58009         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58010         (strmatch): New function.
58011         (test_function): Test the %f directive on numbers of various exponents.
58012         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58013         (strmatch): New function.
58014         (test_function): Test the %f directive on numbers of various exponents.
58015         * tests/test-snprintf-posix.h (strmatch): New function.
58016         (test_function): Test the %f directive on numbers of various exponents.
58017         * tests/test-sprintf-posix.h (strmatch): New function.
58018         (test_function): Test the %f directive on numbers of various exponents.
58019         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58020         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58021         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58022         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58023
58024 2007-05-18  Bruno Haible  <bruno@clisp.org>
58025
58026         Add support for 'long double' number output.
58027         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58028         * lib/vasnprintf.c: Include math.h and float+.h.
58029         (mp_limb_t): New type.
58030         (GMP_LIMB_BITS): New macro.
58031         (mp_twolimb_t): New type.
58032         (GMP_TWOLIMB_BITS): New macro.
58033         (mpn_t): New type.
58034         (multiply, divide, convert_to_decimal, decode_long_double,
58035         scale10_round_long_double, scale10_round_decimal_long_double,
58036         floorlog10l): New functions.
58037         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58038         for the %f, %F, %e, %E, %g, %G directives.
58039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58041         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58042         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58047         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58050         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58051         * modules/snprintf-posix (Depends-on): Likewise.
58052         * modules/sprintf-posix (Depends-on): Likewise.
58053         * modules/vasnprintf-posix (Depends-on): Likewise.
58054         * modules/vasprintf-posix (Depends-on): Likewise.
58055         * modules/vfprintf-posix (Depends-on): Likewise.
58056         * modules/vsnprintf-posix (Depends-on): Likewise.
58057         * modules/vsprintf-posix (Depends-on): Likewise.
58058         * modules/vasnprintf (Files): Add lib/float+.h.
58059         * doc/functions/fprintf.texi: Update.
58060         * doc/functions/printf.texi: Update.
58061         * doc/functions/snprintf.texi: Update.
58062         * doc/functions/sprintf.texi: Update.
58063         * doc/functions/vfprintf.texi: Update.
58064         * doc/functions/vprintf.texi: Update.
58065         * doc/functions/vsnprintf.texi: Update.
58066         * doc/functions/vsprintf.texi: Update.
58067
58068 2007-05-18  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58071
58072 2007-05-18  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58075         for printing 64-bit integers. Needed for mingw.
58076
58077 2007-05-18  Bruno Haible  <bruno@clisp.org>
58078
58079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58080         gl_FUNC_FREXPL_WORKS.
58081         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58082
58083 2007-05-18  Bruno Haible  <bruno@clisp.org>
58084
58085         * modules/frexpl-nolibm-tests: New file.
58086
58087         * modules/frexpl-nolibm: New file.
58088         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58089
58090 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58093         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58094         GCC 4.2, which otherwise issues a lot of warnings.
58095         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58096         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58097         Likewise.
58098         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58099         * modules/iconv_open (iconv.h): Likewise.
58100         * modules/locale (locale.h): Likewise.
58101         * modules/netinet_in (netinet/in.h): Likewise.
58102         * modules/sys_select (sys_select.h): Likewise.
58103         * modules/sys_socket (sys/socket.h): Likewise.
58104         * modules/sys_stat (sys/stat.h): Likewise.
58105         * modules/sysexits (sysexits.h): Likewise.
58106         * modules/unistd (unistd.h): Likewise.
58107
58108 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58109
58110         * modules/closein-tests (Makefile.am): Distribute
58111         `test-closein.sh'.
58112
58113 2007-05-17  Bruno Haible  <bruno@clisp.org>
58114
58115         * tests/test-printf-posix.output: Renamed from
58116         tests/test-fprintf-posix.out.
58117         * modules/fprintf-posix-tests: Update.
58118         * modules/printf-posix-tests: Update.
58119         * modules/vfprintf-posix-tests: Update.
58120         * modules/vprintf-posix-tests: Update.
58121         * tests/test-fprintf-posix.sh: Update.
58122         * tests/test-printf-posix.sh: Update.
58123         * tests/test-vfprintf-posix.sh: Update.
58124         * tests/test-vprintf-posix.sh: Update.
58125         Reported by Ralf Wildenhues.
58126
58127 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58130         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58131         GCC 4.2, which otherwise issues a lot of warnings.
58132         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58133         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58134         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58135         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58136         it should no longer be needed.
58137         * lib/string_.h: Likewise.
58138         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58139         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58140         * modules/inttypes (inttypes.h): Likewise.
58141         * modules/math (math.h): Likewise.
58142         * modules/search (search.h): Likewise.
58143         * modules/signal (signal.h): Likewise.
58144         * modules/stdint (stdint.h): Likewise.
58145         * modules/stdio (stdio.h): Likewise.
58146         * modules/stdlib (stdlib.h): Likewise.
58147         * modules/string (string.h): Likewise.
58148         * modules/sys_time (sys/time.h): Likewise.
58149         * modules/time (time.h): Likewise.
58150         * modules/wchar (wchar.h): Likewise.
58151         * modules/wctype (wtype.h): Likewise.
58152
58153 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58154
58155         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58156
58157 2007-05-13  Bruno Haible  <bruno@clisp.org>
58158
58159         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58160         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58161         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58162         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58163         (gl_PREREQ_STRTOK_R): Don't require it here.
58164
58165 2007-05-13  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58168         when used in C++ mode.
58169
58170 2007-05-12  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/linebuffer.h: Tweak doc.
58173         * lib/linebuffer.c: Likewise.
58174
58175 2007-05-12  James Youngman  <jay@gnu.org>
58176
58177         * lib/linebuffer.c (readlinebuffer_delim): New function,
58178         like readlinebuffer, but use a caller-specified delimiter.
58179         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58180         as the delimiter.
58181         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58182
58183 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58184
58185         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58186         * modules/openat (Files): Remove openat-die.c.
58187         (Depends-on): Add openat-die.
58188         * modules/openat-die: New module.
58189
58190 2007-05-06  Bruno Haible  <bruno@clisp.org>
58191
58192         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58193         Update with info about Cygwin.
58194         * doc/functions/fprintf.texi: Update.
58195         * doc/functions/printf.texi: Update.
58196         * doc/functions/snprintf.texi: Update.
58197         * doc/functions/sprintf.texi: Update.
58198         * doc/functions/vfprintf.texi: Update.
58199         * doc/functions/vprintf.texi: Update.
58200         * doc/functions/vsnprintf.texi: Update.
58201         * doc/functions/vsprintf.texi: Update.
58202         Reported by Eric Blake.
58203
58204 2007-05-06  Bruno Haible  <bruno@clisp.org>
58205
58206         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58207         padding ourselves for the floating-point directives.
58208         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58211         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58212         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58220         * tests/test-snprintf-posix.h (test_function): Also check the width
58221         and some flags in the %f directive.
58222         * tests/test-sprintf-posix.h (test_function): Likewise.
58223         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58224         * tests/test-vasprintf-posix.c (test_function): Likewise.
58225         * doc/functions/fprintf.texi: Update.
58226         * doc/functions/printf.texi: Update.
58227         * doc/functions/snprintf.texi: Update.
58228         * doc/functions/sprintf.texi: Update.
58229         * doc/functions/vfprintf.texi: Update.
58230         * doc/functions/vprintf.texi: Update.
58231         * doc/functions/vsnprintf.texi: Update.
58232         * doc/functions/vsprintf.texi: Update.
58233
58234 2007-05-06  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58237         pass the ' flag character to sprintf or snprintf.
58238         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58241         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58242         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58250         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58251         flag.
58252         * tests/test-sprintf-posix.h (test_function): Likewise.
58253         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58254         * tests/test-vasprintf-posix.c (test_function): Likewise.
58255         * doc/functions/fprintf.texi: Update.
58256         * doc/functions/printf.texi: Update.
58257         * doc/functions/snprintf.texi: Update.
58258         * doc/functions/sprintf.texi: Update.
58259         * doc/functions/vfprintf.texi: Update.
58260         * doc/functions/vprintf.texi: Update.
58261         * doc/functions/vsnprintf.texi: Update.
58262         * doc/functions/vsprintf.texi: Update.
58263
58264 2007-05-01  Bruno Haible  <bruno@clisp.org>
58265
58266         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58267
58268 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58271         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58272
58273 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58276         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58278
58279 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58280
58281         * lib/argp-help.c (struct hol_entry): New member `ord'.
58282         (HOL_ENTRY_PTRCMP): Use ord for comparison
58283         (hol_sort): Initialize ord.
58284
58285 2007-05-01  Bruno Haible  <bruno@clisp.org>
58286
58287         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58288         Reported by Eric Blake.
58289         * doc/gnulib.texi (Function Substitutes): Update.
58290
58291 2007-05-01  Bruno Haible  <bruno@clisp.org>
58292
58293         * doc/functions.texi: Remove file, now redundant through
58294         doc/functions/*.texi.
58295
58296 2007-05-01  Bruno Haible  <bruno@clisp.org>
58297
58298         * modules/argp (Depends-on): Add sleep.
58299
58300 2007-05-01  Bruno Haible  <bruno@clisp.org>
58301
58302         * modules/sleep-tests: New file.
58303         * tests/test-sleep.c: New file.
58304
58305         * modules/sleep: New file.
58306         * lib/sleep.c: New file.
58307         * m4/sleep.m4: New file.
58308         * lib/unistd_.h (sleep): New declaration.
58309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58310         HAVE_SLEEP.
58311         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58312         * doc/functions/sleep.texi: Document the sleep module.
58313
58314 2007-05-01  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/sigprocmask.h: Remove file.
58317         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58318         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58319         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58320         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58321         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58322         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58323         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58324         HAVE_SIGSET_T as a shell variable.
58325         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58326         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58327         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58328         (Depends-on): Add signal. Remove verify.
58329         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58330         (Include): Mention <signal.h> instead of sigprocmask.h.
58331         * NEWS: Mention the change.
58332         * lib/fatal-signal.c: Don't include sigprocmask.h.
58333
58334 2007-05-01  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/signal: New file.
58337         * lib/signal_.h: New file.
58338         * m4/signal_h.m4: New file.
58339
58340 2007-05-01  Bruno Haible  <bruno@clisp.org>
58341
58342         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58343         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58344         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58345         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58346
58347 2007-05-01  Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58350         configure time.
58351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58352         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58353         * modules/sys_stat (Makefile.am): Substitute their values into
58354         sys/stat.h.
58355
58356 2007-05-01  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58359         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58360         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58361
58362 2007-05-01  Bruno Haible  <bruno@clisp.org>
58363
58364         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58365         'assert' module here.
58366
58367 2007-05-01  Bruno Haible  <bruno@clisp.org>
58368
58369         * doc/functions/*.texi: New files.
58370         * doc/functions/google-ranking.txt: New file.
58371         * doc/gnulib.texi (Function Substitutes): New chapter.
58372         (ctime, inet_ntoa): Remove sections.
58373         * doc/ctime.texi: Remove file.
58374         * doc/inet_ntoa.texi: Remove file.
58375         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58376         dependencies.
58377         (%.info): New rule, specifying a --reference-limit.
58378
58379 2007-05-01  Bruno Haible  <bruno@clisp.org>
58380
58381         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58382
58383 2007-05-01  Bruno Haible  <bruno@clisp.org>
58384
58385         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58386         the portability of 'mkdir' to mingw systems.
58387
58388 2007-05-01  Bruno Haible  <bruno@clisp.org>
58389
58390         * doc/headers/google-ranking.txt: New file.
58391
58392 2007-04-30  Eric Blake  <ebb9@byu.net>
58393
58394         Prefer fseeko to fseek.
58395         * modules/getpass (Depends-on): Add fseeko.
58396         * lib/getpass.c (getpass): Use fseeko, not fseek.
58397
58398 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58399
58400         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58401         assumes the sorting is stable, while most qsort implementations
58402         are not.  Use argument addresses to ensure they never compare as
58403         equal.
58404
58405         * tests/test-argp-2.sh (usage-indent test): Fix output
58406         (func_compare): Restore diff options
58407         * tests/test-argp.c: Restore #include "progname.h"
58408
58409 2007-04-29  Bruno Haible  <bruno@clisp.org>
58410
58411         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58413         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58415         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58416         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58417         (TESTS, check_PROGRAMS): Add test-snprintf.
58418         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58419         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58420         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58421         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58422         assertions that fail on HP-UX, OSF/1, or IRIX.
58423         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58424
58425 2007-04-29  Bruno Haible  <bruno@clisp.org>
58426
58427         * MODULES.html.sh (posix_functions): Remove 'contents'.
58428
58429 2007-04-29  Karl Berry  <karl@gnu.org>
58430
58431         * config/srclist.txt (gendocs_template_min): new entry.
58432
58433 2007-04-29  Bruno Haible  <bruno@clisp.org>
58434
58435         Work around fpurge bug on BSD systems.
58436         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58437         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58438         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58439         fpurge to rpl_fpurge if the system already has this function.
58440         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58441         the case where the system already has this function. Correct invariants
58442         on BSD systems.
58443         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58444         BSD systems.
58445
58446 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58447
58448         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58449         proposed by Sven Verdoolaege.
58450
58451         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58452         options.
58453         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58454         (usage and help tests): Update
58455
58456 2007-04-29  Bruno Haible  <bruno@clisp.org>
58457
58458         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58459         Print more information in case of failure. Disable a test on BeOS.
58460
58461 2007-04-29  Bruno Haible  <bruno@clisp.org>
58462
58463         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58464         This helps debugging on systems on which no gdb is available.
58465
58466 2007-04-29  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/freading.h: Improve comments.
58469         * lib/fwriting.h: Likewise.
58470         * tests/test-freading.c (main): Don't check freading immediately after
58471         repositioning. Needed for glibc.
58472
58473 2007-04-29  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/freading.c (freading): Trivial simplification.
58476
58477 2007-04-28  Bruno Haible  <bruno@clisp.org>
58478
58479         * tests/test-fwriting.c (main): Also test the interaction between
58480         fflush and fwriting.
58481         * modules/fwriting-tests (Depends-on): Add fflush.
58482
58483         * tests/test-freading.c (main): Also test the interaction between
58484         fflush and freading.
58485         * modules/freading-tests (Depends-on): Add fflush.
58486
58487 2007-04-28  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58490         fseeko and ftello.
58491         Suggested by Eric Blake.
58492
58493 2007-04-28  Jim Meyering  <jim@meyering.net>
58494
58495         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58496         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58497         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58498
58499 2007-04-27  Eric Blake  <ebb9@byu.net>
58500
58501         * doc/headers/assert.texi (assert.h): Document assert module use.
58502
58503 2007-04-27  Bruno Haible  <bruno@clisp.org>
58504
58505         * doc/headers/*.texi: New files.
58506         * doc/gnulib.texi (Header File Substitutes): New chapter.
58507         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58508         dependencies.
58509         (standards.info ,standards.html, standards.dvi): Update dependencies.
58510         (mostlyclean, clean): New targets.
58511
58512 2007-04-27  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58515         * modules/sysexits (Files, Makefile.am): Update.
58516
58517         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58518         * modules/sys_socket (Files, Makefile.am): Update.
58519
58520         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58521         * modules/sys_stat (Files, Makefile.am): Update.
58522
58523 2007-04-27  Eric Blake  <ebb9@byu.net>
58524
58525         * lib/freading.h: Improve comments.
58526         * lib/fwriting.h: Likewise.
58527         * lib/fflush.c: Likewise.
58528
58529         Fix closein for mingw.
58530         * modules/closein-tests: Add tests for closein.
58531         * tests/test-closein.c: New file.
58532         * tests/test-closein.sh: Likewise.
58533         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58534         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58535
58536 2007-04-27  Bruno Haible  <bruno@clisp.org>
58537
58538         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58539         version is < 6.
58540         * lib/math_.h [__DECC]: Likewise.
58541         * lib/stdio_.h [__DECC]: Likewise.
58542         * lib/stdlib_.h [__DECC]: Likewise.
58543         * lib/string_.h [__DECC]: Likewise.
58544         * lib/time_.h [__DECC]: Likewise.
58545         * lib/wchar_.h [__DECC]: Likewise.
58546         * lib/wctype_.h [__DECC]: Likewise.
58547
58548 2007-04-27  Bruno Haible  <bruno@clisp.org>
58549
58550         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58551
58552 2007-04-27  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/fflush.c: Add comments.
58555         * modules/fpurge-tests (Depends-on): Add fflush.
58556         * modules/freadable-tests (Depends-on): Likewise.
58557         * modules/fwritable-tests (Depends-on): Likewise.
58558
58559 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58560
58561         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58562         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58563         Report by Bruno Haible <bruno@clisp.org>.
58564
58565 2007-04-26  Eric Blake  <ebb9@byu.net>
58566
58567         Fix fflush on mingw.
58568         * modules/fflush (Depends-on): Add freading.
58569         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58570         but unread data.
58571
58572 2007-04-26  Eric Blake  <ebb9@byu.net>
58573         and Bruno Haible  <bruno@clisp.org>
58574
58575         Implement freading and fwriting.
58576         * lib/freading.c: New file.
58577         * lib/freading.h: Likewise.
58578         * m4/freading.m4: Likewise.
58579         * modules/freading: Likewise.
58580         * modules/freading-tests: Likewise.
58581         * tests/test-freading.c: Likewise.
58582         * lib/fwriting.c: New file.
58583         * lib/fwriting.h: Likewise.
58584         * m4/fwriting.m4: Likewise.
58585         * modules/fwriting: Likewise.
58586         * modules/fwriting-tests: Likewise.
58587         * tests/test-fwriting.c: Likewise.
58588         * MODULES.html.sh (File stream based Input/Output): Mention them.
58589
58590 2007-04-26  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58593         'long' when we assume it.
58594         Suggested by Eric Blake.
58595
58596 2007-04-26  Bruno Haible  <bruno@clisp.org>
58597
58598         Ensure fseeko, ftello are declared on glibc systems.
58599         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58600         * modules/fseeko (configure.ac-early): Likewise.
58601         * modules/ftello (configure.ac-early): Likewise.
58602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58603         AC_FUNC_FSEEKO for this.
58604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58605         (gl_CHECK_FSEEKO): Remove macro.
58606
58607 2007-04-26  Bruno Haible  <bruno@clisp.org>
58608
58609         * tests/test-fflush.c (main): Also check the ftell result after
58610         fflush and fseek/fseeko.
58611         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58612         file descriptor position cache in the stream.
58613         * lib/fseeko.c (rpl_fseeko): Likewise.
58614
58615 2007-04-26  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/fflush-tests (Depends-on): Add fseeko.
58618
58619 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58620             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58621
58622         * lib/argz_.h: ensure error_t definition is obtained in same
58623         mechanism system argz.h would have.
58624         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58625         argz facilities are known bad.  Err on the side of caution if
58626         cross-compiling.
58627
58628 2007-04-25  Eric Blake  <ebb9@byu.net>
58629
58630         * lib/fpurge.c (includes): Use stdlib.h for free.
58631         * tests/test-fflush.c (main): Also test fflush-fseeko.
58632
58633 2007-04-25  Bruno Haible  <bruno@clisp.org>
58634
58635         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58636         * lib/fseeko.c: New file.
58637         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58638         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58639         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58640         gl_FUNC_FSEEKO.
58641         (gl_FUNC_FSEEKO): Invoke it.
58642         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58643         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58644         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58645
58646 2007-04-25  Bruno Haible  <bruno@clisp.org>
58647
58648         * modules/fflush (Depends-on): Add ftello.
58649
58650 2007-04-25  Bruno Haible  <bruno@clisp.org>
58651
58652         * modules/ftello-tests: New file.
58653         * tests/test-ftello.c: New file.
58654
58655         * modules/ftello: New file.
58656         * m4/ftello.m4: New file.
58657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58658         HAVE_FTELLO.
58659         * lib/stdio_.h (ftello): New declaration.
58660         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58661         HAVE_FTELLO.
58662
58663 2007-04-25  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/fseeko-tests: New file.
58666         * tests/test-fseeko.c: New file.
58667
58668         * modules/fseeko: New file.
58669         * m4/fseeko.m4: New file.
58670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58671         HAVE_FSEEKO.
58672         * lib/stdio_.h (fseeko): New declaration.
58673         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58674         HAVE_FSEEKO.
58675
58676 2007-04-25  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58679
58680 2007-04-25  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58683         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58684         * tests/test-unistd.c: Likewise.
58685         * tests/test-fcntl.c: Likewise.
58686
58687 2007-04-23  Eric Blake  <ebb9@byu.net>
58688
58689         * lib/fflush.c: Fix missing include.
58690         Reported by Bruno Haible.
58691
58692 2007-04-23  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58695         Reported by Eric Blake.
58696
58697 2007-04-23  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58700
58701 2007-04-23  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58704
58705 2007-04-23  Bruno Haible  <bruno@clisp.org>
58706
58707         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58708         Needed on HP-UX 11.
58709
58710 2007-04-16  Eric Blake  <ebb9@byu.net>
58711
58712         Make fflush rely on fpurge.
58713         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58714         open coding all variants.
58715         * modules/fflush (Depends-on): Add fpurge and unistd.
58716         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58717         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58718
58719         Fix --with-tests compilation on cygwin.
58720         * modules/argmatch-tests (Makefile.am): List gnulib library first
58721         in LDADD.
58722         * modules/argp-tests (Makefile.am): Likewise.
58723         * modules/array-list-tests (Makefile.am): Likewise.
58724         * modules/array-oset-tests (Makefile.am): Likewise.
58725         * modules/avltree-list-tests (Makefile.am): Likewise.
58726         * modules/avltree-oset-tests (Makefile.am): Likewise.
58727         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58728         * modules/carray-list-tests (Makefile.am): Likewise.
58729         * modules/dirname-tests (Makefile.am): Likewise.
58730         * modules/frexp-tests (Makefile.am): Likewise.
58731         * modules/isnanl-tests (Makefile.am): Likewise.
58732         * modules/linked-list-tests (Makefile.am): Likewise.
58733         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58734         * modules/lock-tests (Makefile.am): Likewise.
58735         * modules/rbtree-list-tests (Makefile.am): Likewise.
58736         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58737         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58738         * modules/tls-tests (Makefile.am): Likewise.
58739         * modules/tsearch-tests (Makefile.am): Likewise.
58740         * modules/xvasprintf-tests (Makefile.am): Likewise.
58741
58742         Fix fpurge for cygwin.
58743         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58744         value.
58745         * modules/fpurge-tests (Depends-on): Clean up trash.
58746
58747 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58748
58749         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58750
58751         * m4/autobuild.m4: Re-indent.
58752
58753 2007-04-13  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/fpurge-tests: New file.
58756         * tests/test-fpurge.c: New file.
58757
58758         * modules/fpurge: New file.
58759         * lib/fpurge.h: New file.
58760         * lib/fpurge.c: New file.
58761         * m4/fpurge.m4: New file.
58762
58763 2007-04-13  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/fbufmode-tests: New file.
58766         * tests/test-fbufmode.c: New file.
58767
58768         * modules/fbufmode: New file.
58769         * lib/fbufmode.h: New file.
58770         * lib/fbufmode.c: New file.
58771         * m4/fbufmode.m4: New file.
58772
58773 2007-04-13  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/fwritable-tests: New file.
58776         * tests/test-fwritable.c: New file.
58777
58778         * modules/fwritable: New file.
58779         * lib/fwritable.h: New file.
58780         * lib/fwritable.c: New file.
58781         * m4/fwritable.m4: New file.
58782
58783 2007-04-13  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/freadable-tests: New file.
58786         * tests/test-freadable.c: New file.
58787
58788         * modules/freadable: New file.
58789         * lib/freadable.h: New file.
58790         * lib/freadable.c: New file.
58791         * m4/freadable.m4: New file.
58792
58793 2007-04-13  Bruno Haible  <bruno@clisp.org>
58794
58795         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58796         MOSTLYCLEANFILES.
58797
58798 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58801         gzip bootstrap.conf to avoid dragging in i18n machinery.
58802         (gnulib_tool_option): Use it.
58803
58804 2007-04-13  Bruno Haible  <bruno@clisp.org>
58805
58806         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58807         %F directives.
58808         * tests/test-vasprintf-posix.c (test_function): Likewise.
58809         * tests/test-snprintf-posix.h (test_function): Likewise.
58810         * tests/test-sprintf-posix.h (test_function): Likewise.
58811         * tests/test-fprintf-posix.h (test_function): Likewise.
58812         * tests/test-printf-posix.h (test_function): Likewise.
58813         * tests/test-fprintf-posix.out: Likewise.
58814
58815 2007-04-13  Bruno Haible  <bruno@clisp.org>
58816
58817         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58818         * modules/tls-tests (configure.ac): Likewise.
58819         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58820
58821 2007-04-13  Bruno Haible  <bruno@clisp.org>
58822
58823         * lib/tls.c (glthread_tls_get): Fix return type.
58824         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58825
58826 2007-04-12  Eric Blake  <ebb9@byu.net>
58827
58828         * modules/gettime (Depends-on): Remove gettime.
58829         Reported by Dmitry V. Levin.
58830
58831 2007-04-12  Bruno Haible  <bruno@clisp.org>
58832
58833         * modules/fflush (Include): Mention <stdio.h>.
58834         * modules/strtoimax (Include): Mention <inttypes.h>.
58835         * modules/strtoumax (Include): Likewise.
58836
58837 2007-04-12  Eric Blake  <ebb9@byu.net>
58838
58839         * .cvsignore: New file.
58840         * .gitignore: Likewise.
58841
58842 2007-04-12  Bruno Haible  <bruno@clisp.org>
58843
58844         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58845         not before, since $(LDADD) often contains libgnu.a.
58846         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58847         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58848         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58849         Needed on Cygwin.
58850
58851 2007-04-12  Eric Blake  <ebb9@byu.net>
58852
58853         Work around glibc's failure to flush stdin on fclose.
58854         * lib/closein.c (close_stdin): Flush stdin before closing.
58855
58856         Work around glibc's failure to reset seekable stdin on exit.
58857         * modules/closein: New module.
58858         * lib/closein.c: New file.
58859         * lib/closein.h: Likewise.
58860         * m4/closein.m4: Likewise.
58861         * MODULES.html.sh (File stream based Input/Output): Document it.
58862
58863 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58864
58865         * gnulib-tool: Rename generated 'autobuild' script to
58866         'do-autobuild' in --create-megatestdir output.
58867
58868         * doc/gnulib.texi (Build robot for gnulib): Fix.
58869
58870 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58871
58872         * modules/sysexits (Depends-on): Add absolute-header.
58873
58874 2007-04-12  Eric Blake  <ebb9@byu.net>
58875
58876         No need to preserve errno on success.
58877         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58878         Reported by Bruno Haible.
58879
58880 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58881
58882         * MODULES.html.sh (Support for maintaining and releasing
58883         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58884
58885 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58886
58887         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58888
58889 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58890
58891         * modules/autobuild: New module.
58892
58893         * m4/autobuild.m4: New file.
58894
58895 2007-04-11  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58898         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58905         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58906         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58908         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58909         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58911         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58912         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58914         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58915         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58917         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58918         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58920         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58921         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58923         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58924         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58925         Reported by Eric Blake.
58926
58927 2007-04-11  Bruno Haible  <bruno@clisp.org>
58928
58929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58930
58931 2007-04-10  Bruno Haible  <bruno@clisp.org>
58932
58933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58934         for NaN and Infinity. Needed on FreeBSD 6.1.
58935         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58936         regarding results for "%010a" of Infinity and NaN.
58937         * tests/test-vasprintf-posix.c (test_function): Likewise.
58938         * tests/test-snprintf-posix.h (test_function): Likewise.
58939         * tests/test-sprintf-posix.h (test_function): Likewise.
58940         * tests/test-fprintf-posix.h (test_function): Likewise.
58941         * tests/test-printf-posix.h (test_function): Likewise.
58942         * tests/test-fprintf-posix.out: Likewise.
58943
58944 2007-04-10  Bruno Haible  <bruno@clisp.org>
58945
58946         * modules/locale-tests: New file.
58947         * tests/test-locale.c: New file.
58948
58949         * modules/locale: New file.
58950         * lib/locale_.h: New file.
58951         * m4/locale_h.m4: New file.
58952
58953 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58954             Bruno Haible  <bruno@clisp.org>
58955
58956         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58957         be determined, test for availability of the copysignf, copysign,
58958         copysignl functions.
58959         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58960         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58961         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58962
58963 2007-04-09  Eric Blake  <ebb9@byu.net>
58964
58965         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58966         * modules/stdio (Makefile.am): Support fflush.
58967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58968         * modules/fflush: New file.
58969         * lib/fflush.c: Likewise.
58970         * m4/fflush.m4: Likewise.
58971         * modules/fflush-tests: New test.
58972         * tests/test-fflush.c: Likewise.
58973         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58974
58975 2007-04-06  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58978         (VASNPRINTF): Use signbit for faster determination whether to print a
58979         minus sign.
58980         * modules/vasnprintf (Files): Remove lib/float+.h.
58981         * modules/fprintf-posix (Depends-on): Add signbit.
58982         * modules/snprintf-posix (Depends-on): Likewise.
58983         * modules/sprintf-posix (Depends-on): Likewise.
58984         * modules/vasnprintf-posix (Depends-on): Likewise.
58985         * modules/vasprintf-posix (Depends-on): Likewise.
58986         * modules/vfprintf-posix (Depends-on): Likewise.
58987         * modules/vsnprintf-posix (Depends-on): Likewise.
58988         * modules/vsprintf-posix (Depends-on): Likewise.
58989
58990 2007-04-06  Bruno Haible  <bruno@clisp.org>
58991
58992         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58993         * tests/test-frexpl.c (main): Likewise.
58994         * tests/test-ldexpl.c (main): Likewise.
58995         * modules/frexp-tests (Depends-on): Add signbit.
58996         * modules/frexpl-tests (Depdends-on): Likewise.
58997         * modules/ldexpl-tests (Depdends-on): Likewise.
58998
58999 2007-04-06  Bruno Haible  <bruno@clisp.org>
59000
59001         * modules/signbit-tests: New file.
59002         * tests/test-signbit.c: New file.
59003
59004         * modules/signbit: New file.
59005         * lib/signbitf.c: New file.
59006         * lib/signbitd.c: New file.
59007         * lib/signbitl.c: New file.
59008         * m4/signbit.m4: New file.
59009         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59010         (signbit): New macro.
59011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59012         REPLACE_SIGNBIT.
59013         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59014         REPLACE_FREXPL into math.h.
59015
59016 2007-04-06  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/isnanf-nolibm-tests: New file.
59019         * tests/test-isnanf.c: New file.
59020
59021         * modules/isnanf-nolibm: New file.
59022         * lib/isnanf.h: New file.
59023         * lib/isnanf.c: New file.
59024         * lib/isnan.c: Consider the USE_FLOAT macro.
59025         * m4/isnanf.m4: New file.
59026
59027 2007-04-06  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59030         (Link): New section.
59031
59032         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59033
59034 2007-04-06  Bruno Haible  <bruno@clisp.org>
59035
59036         Assume the 'long double' type.
59037         * m4/longdouble.m4: Remove file.
59038         * config/srclist.txt: Don't mention longdouble.m4.
59039         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59040         * lib/float+.h: Likewise.
59041         * lib/frexp.c: Likewise.
59042         * lib/printf-args.h: Likewise.
59043         * lib/printf-args.c: Likewise.
59044         * lib/printf-frexp.c: Likewise.
59045         * lib/printf-parse.c: Likewise.
59046         * lib/vasnprintf.c: Likewise.
59047         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59048         * m4/intl.m4: Likewise.
59049         * m4/isnanl.m4: Likewise.
59050         * m4/printf.m4: Likewise.
59051         * m4/printf-frexpl.m4: Likewise.
59052         * m4/vasnprintf.m4: Likewise.
59053         * modules/allocsa (Files): Remove m4/longdouble.m4.
59054         * modules/gettext (Files): Likewise.
59055         * modules/relocatable-prog-wrapper (Files): Likewise.
59056         * modules/vasnprintf (Files): Likewise.
59057         * modules/isnanl (Files): Likewise.
59058         (Include): Simplify.
59059         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59060         (Include): Simplify.
59061         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59062         (Include): Simplify.
59063         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59064         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59065         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59066         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59067         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59068         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59069         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59070         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59071         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59072         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59073         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59074         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59075         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59076         * tests/test-isnanl.c: Likewise.
59077         * tests/test-snprintf-posix.h: Likewise.
59078         * tests/test-sprintf-posix.h: Likewise.
59079         * tests/test-vasnprintf-posix.c: Likewise.
59080         * tests/test-vasnprintf-posix2.c: Likewise.
59081         * tests/test-vasprintf-posix.c: Likewise.
59082
59083 2007-04-06  Bruno Haible  <bruno@clisp.org>
59084
59085         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59086         * lib/math_.h [__DECC]: Include the overridden include file through
59087         #include_next, outside the double-inclusion guard.
59088         * lib/stdio_.h [__DECC]: Likewise.
59089         * lib/stdlib_.h [__DECC]: Likewise.
59090         * lib/string_.h [__DECC]: Likewise.
59091         * lib/time_.h [__DECC]: Likewise.
59092         * lib/wchar_.h [__DECC]: Likewise.
59093         * lib/wctype_.h [__DECC]: Likewise.
59094         * lib/inttypes_.h [__DECC]: Likewise.
59095         Reported by Albert Chin <china@thewrittenword.com> in
59096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59097
59098 2007-04-04  Eric Blake  <ebb9@byu.net>
59099
59100         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59101         1.5.x.
59102
59103 2007-04-04  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59106         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59107
59108 2007-04-04  Bruno Haible  <bruno@clisp.org>
59109
59110         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59111         results for "%010a" of Infinity and NaN.
59112         * tests/test-vasprintf-posix.c (test_function): Likewise.
59113         * tests/test-snprintf-posix.h (test_function): Likewise.
59114         * tests/test-sprintf-posix.h (test_function): Likewise.
59115         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59116         * tests/test-printf-posix.h (test_function): Likewise.
59117         * tests/test-fprintf-posix.out: Update.
59118         Needed for FreeBSD 6.1.
59119
59120 2007-04-04  Bruno Haible  <bruno@clisp.org>
59121
59122         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59123         directly used by the gnulib modules nor by gnulib-tool.
59124
59125 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * DEPENDENCIES: Give overall description of version dependency
59128         desirability.  Use more-typical names for apps.
59129         Add shell, coreutils, diffutils, grep, tar, gzip.
59130
59131 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59132
59133         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59134
59135 2007-04-04  Karl Berry  <karl@gnu.org>
59136
59137         * MODULES.html.sh (func_module): missing '.
59138
59139 2007-04-03  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/argmatch-tests (Makefile.am): New variable
59142         test_argmatch_LDADD.
59143         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59144         * modules/array-list-tests (Makefile.am): New variable
59145         test_array_list_LDADD.
59146         * modules/array-oset-tests (Makefile.am): New variable
59147         test_array_oset_LDADD.
59148         * modules/avltree-list-tests (Makefile.am): New variable
59149         test_avltree_list_LDADD.
59150         * modules/avltree-oset-tests (Makefile.am): New variable
59151         test_avltree_oset_LDADD.
59152         * modules/avltreehash-list-tests (Makefile.am): New variable
59153         test_avltreehash_list_LDADD.
59154         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59155         test_canonicalize_lgpl_LDADD.
59156         * modules/carray-list-tests (Makefile.am): New variable
59157         test_carray_list_LDADD.
59158         * modules/dirname-tests (Makefile.am): New variable
59159         test_dirname_LDADD.
59160         * modules/linked-list-tests (Makefile.am): New variable
59161         test_linked_list_LDADD.
59162         * modules/linkedhash-list-tests (Makefile.am): New variable
59163         test_linkedhash_list_LDADD.
59164         * modules/rbtree-list-tests (Makefile.am): New variable
59165         test_rbtree_list_LDADD.
59166         * modules/rbtree-oset-tests (Makefile.am): New variable
59167         test_rbtree_oset_LDADD.
59168         * modules/rbtreehash-list-tests (Makefile.am): New variable
59169         test_rbtreehash_list_LDADD.
59170         * modules/xvasprintf-tests (Makefile.am): New variable
59171         test_xvasprintf_LDADD.
59172         Reported by Eric Blake.
59173
59174 2007-04-03  Eric Blake  <ebb9@byu.net>
59175
59176         * DEPENDENCIES: Weaken m4 requirements.
59177
59178 2007-04-03  Bruno Haible  <bruno@clisp.org>
59179
59180         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59181         * modules/isnanl-tests (configure.ac): Likewise.
59182
59183 2007-04-03  Ben Pfaff  <blp@gnu.org>
59184
59185         * modules/iconv_open: Add $(srcdir)/ to source directory
59186         references in Makefile fragments that call gperf, to fix VPATH
59187         builds.
59188
59189 2007-04-03  Bruno Haible  <bruno@clisp.org>
59190
59191         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59192         * lib/ldexpl.c: Undo last change.
59193
59194 2007-04-03  Bruno Haible  <bruno@clisp.org>
59195
59196         * modules/printf-frexpl (Depends-on): Undo last change.
59197         (Files): Add m4/ldexpl.m4.
59198
59199 2007-04-03  Bruno Haible  <bruno@clisp.org>
59200
59201         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59202         * modules/isnanl (Link): New section.
59203
59204         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59205         * modules/frexp (Link): New section.
59206
59207         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59208         * modules/frexpl (Link): New section.
59209
59210         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59211         * modules/ldexpl (Link): New section.
59212
59213 2007-04-03  Bruno Haible  <bruno@clisp.org>
59214
59215         * modules/TEMPLATE-EXTENDED: New file.
59216         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59217
59218 2007-04-03  Bruno Haible  <bruno@clisp.org>
59219
59220         * DEPENDENCIES: New file.
59221         Suggested by Simon Josefsson.
59222
59223 2007-04-03  Bruno Haible  <bruno@clisp.org>
59224
59225         * doc/gnulib.texi: Escape @.
59226
59227 2007-04-03  James Youngman  <jay@gnu.org>
59228         and Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59231         birthtime on all systems that have birthtime, not just those which
59232         use st_birthtimensec rather than st_birthtim.  Putting zero in
59233         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59234         that the birth time is not available for files on an NFS mount.
59235
59236 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59237
59238         * modules/memxor: Move back from crypto/, suggested by Bruno.
59239         * modules/crypto/hmac-sha1: Fix memxor dependency.
59240
59241         * modules/crypto/gc: Moved from ../.
59242
59243 2007-04-02  Eric Blake  <ebb9@byu.net>
59244
59245         * lib/ldexpl.c (includes): Avoid libm.
59246
59247         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59248
59249 2007-04-02  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59252         on IRIX.
59253
59254 2007-04-02  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59257         x86 or x86_64 platforms running MacOS X.
59258         Reported by Ryan Schmidt <@ryandesign.com>.
59259
59260 2007-04-02  Bruno Haible  <bruno@clisp.org>
59261
59262         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59263         i386.
59264
59265 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59266
59267         * modules/crypto/arcfour: Moved from ../.
59268         * modules/crypto/arcfour-tests: Moved from ../.
59269         * modules/crypto/arctwo: Moved from ../.
59270         * modules/crypto/arctwo-tests: Moved from ../.
59271         * modules/crypto/des: Moved from ../.
59272         * modules/crypto/des-tests: Moved from ../.
59273         * modules/crypto/gc-arcfour: Moved from ../.
59274         * modules/crypto/gc-arcfour-tests: Moved from ../.
59275         * modules/crypto/gc-arctwo: Moved from ../.
59276         * modules/crypto/gc-arctwo-tests: Moved from ../.
59277         * modules/crypto/gc-des: Moved from ../.
59278         * modules/crypto/gc-des-tests: Moved from ../.
59279         * modules/crypto/gc-hmac-md5: Moved from ../.
59280         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59281         * modules/crypto/gc-hmac-sha1: Moved from ../.
59282         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59283         * modules/crypto/gc-md2: Moved from ../.
59284         * modules/crypto/gc-md2-tests: Moved from ../.
59285         * modules/crypto/gc-md4: Moved from ../.
59286         * modules/crypto/gc-md4-tests: Moved from ../.
59287         * modules/crypto/gc-md5: Moved from ../.
59288         * modules/crypto/gc-md5-tests: Moved from ../.
59289         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59290         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59291         * modules/crypto/gc-random: Moved from ../.
59292         * modules/crypto/gc-rijndael: Moved from ../.
59293         * modules/crypto/gc-rijndael-tests: Moved from ../.
59294         * modules/crypto/gc-sha1: Moved from ../.
59295         * modules/crypto/gc-sha1-tests: Moved from ../.
59296         * modules/crypto/gc-tests: Moved from ../.
59297         * modules/crypto/hmac-md5: Moved from ../.
59298         * modules/crypto/hmac-md5-tests: Moved from ../.
59299         * modules/crypto/hmac-sha1: Moved from ../.
59300         * modules/crypto/hmac-sha1-tests: Moved from ../.
59301         * modules/crypto/md2: Moved from ../.
59302         * modules/crypto/md2-tests: Moved from ../.
59303         * modules/crypto/md4: Moved from ../.
59304         * modules/crypto/md4-tests: Moved from ../.
59305         * modules/crypto/md5: Moved from ../.
59306         * modules/crypto/md5-tests: Moved from ../.
59307         * modules/crypto/memxor: Moved from ../.
59308         * modules/crypto/rijndael: Moved from ../.
59309         * modules/crypto/rijndael-tests: Moved from ../.
59310         * modules/crypto/sha1: Moved from ../.
59311
59312 2007-03-30  James Youngman  <jay@gnu.org>
59313
59314         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59315         rename() to change the ctime of a file (because ctime is unaffected
59316         by rename on jfs2 on AIX 5.1).
59317         (main): Start by doing cleanup, in case a previous run failed leaving
59318         test files behind.
59319
59320 2007-03-31  Bruno Haible  <bruno@clisp.org>
59321
59322         Support old proprietary implementations of iconv.
59323         * modules/iconv_open: New file.
59324         * lib/iconv_.h: New file.
59325         * m4/iconv_h.m4: New file.
59326         * lib/iconv_open.c: New file.
59327         * lib/iconv_open-aix.gperf: New file.
59328         * lib/iconv_open-hpux.gperf: New file.
59329         * lib/iconv_open-irix.gperf: New file.
59330         * lib/iconv_open-osf.gperf: New file.
59331         * m4/iconv_open.m4: New file.
59332         * modules/linebreak (Depends-on): Add iconv_open.
59333         * modules/striconv (Depends-on): Likewise.
59334         * modules/striconveh (Depends-on): Likewise.
59335         * modules/unicodeio (Depends-on): Likewise.
59336         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59337         (iconv_t)(-1).
59338         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59339         conversion if cd is (iconv_t)(-1).
59340         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59341         is not possible.
59342
59343 2007-03-31  Bruno Haible  <bruno@clisp.org>
59344
59345         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59346         work on Solaris either. Protect also second use of "autodetect_jp".
59347
59348 2007-03-31  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59351         the function is not present.
59352
59353 2007-03-31  Bruno Haible  <bruno@clisp.org>
59354
59355         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59356         the function is not present.
59357
59358 2007-03-31  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59361         a bug in HP-UX iconv_open().
59362
59363 2007-03-31  Bruno Haible  <bruno@clisp.org>
59364
59365         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59366         (Mathematics <math.h>): New section, add fpieee.
59367         (Input/output <stdio.h>): Add fseterr.
59368         (Mathematics <math.h>): New section, add printf-frexp.
59369         (Container data structures): Add sublist.
59370         (Core language properties): Add fpucw, inline.
59371         (Functions for greatest-width integer types <inttypes.h>): Add
59372         imaxabs, imaxdiv, inttypes.
59373         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59374         isnanl-nolibm, ldexp.
59375         (Mathematics <math.h>): New section, add printf-frexpl.
59376         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59377         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59378         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59379         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59380         (Unicode string functions): Add unistr/u*-mbtoucr.
59381         (Java): Add javacomp-script, javaexec-script.
59382         (C#): Add csharpcomp-script, csharpexec-script.
59383         (Support for building libraries and executables): Add havelib,
59384         relocatable-*.
59385         (Support for maintaining and releasing projects): Renamed from
59386         'Support for maintaining and release projects'. Add announce-gen.
59387
59388 2007-03-31  Bruno Haible  <bruno@clisp.org>
59389
59390         * README: Talk primarily about git.
59391         (git and CVS): Renamed from CVS.
59392         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59393         gnulib is available through git.
59394         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59395
59396 2007-03-30  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59399         * lib/poll_.h: Likewise.
59400         * lib/stat_.h: Likewise.
59401         * lib/sys_time_.h: Likewise.
59402         * lib/sysexit_.h: Likewise.
59403         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59404         * lib/stdbool_.h: Likewise.
59405         * lib/byteswap_.h: Add double-inclusion guard.
59406
59407 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59408
59409         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59410
59411 2007-03-30  Karl Berry  <karl@gnu.org>
59412
59413         * config/srclist-update: double space after USA in the license
59414         substitution, since that's how it's usually (?) written.
59415
59416 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59419         reported by Bruno Haible.
59420
59421 2007-03-29  Bruno Haible  <bruno@clisp.org>
59422
59423         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59424         a bug in AIX iconv().
59425
59426 2007-03-29  Bruno Haible  <bruno@clisp.org>
59427
59428         * modules/ldexpl-tests: New file.
59429         * tests/test-ldexpl.c: New file.
59430
59431 2007-03-29  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/ldexpl.c: Include fpucw.h.
59434         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59435         multiplication.
59436         * modules/ldexpl (Depends-on): Add fpucw.
59437
59438 2007-03-29  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/ldexpl: New file.
59441         * m4/ldexpl.m4: New file.
59442         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59443         set.
59444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59445         REPLACE_LDEXPL.
59446         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59447         REPLACE_LDEXPL.
59448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59449         gl_FUNC_LDEXPL_WORKS.
59450         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59451         * modules/mathl (Files): Remove lib/ldexpl.c.
59452         (Depends-on): Add ldexpl.
59453
59454 2007-03-29  Bruno Haible  <bruno@clisp.org>
59455
59456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59457
59458 2007-03-29  Bruno Haible  <bruno@clisp.org>
59459
59460         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59461         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59462         and possibly also HP-UX.
59463         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59464         work on AIX, IRIX, HP-UX, OSF/1.
59465         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59466         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59467         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59468         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59469         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59470         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59471
59472 2007-03-29  Bruno Haible  <bruno@clisp.org>
59473
59474         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59475
59476 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59479         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59480
59481 2007-03-29  Eric Blake  <ebb9@byu.net>
59482
59483         * lib/acl-internal.h: Remove redundant include.
59484         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59485         Cygwin when a file is locked.
59486
59487 2007-03-29  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59490         file.
59491         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59492
59493 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59496         try to remove a parent directory if the child couldn't be removed
59497         (except for the first rmdir, which could fail because the child
59498         doesn't exist).  Problem reported by Jeff Blaine in
59499         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59500
59501 2007-03-28  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/striconveh.c (utf8conv_carefully): New function.
59504         (mem_cd_iconveh_internal): Invoke it.
59505
59506 2007-03-28  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59509         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59510         input.
59511         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59512         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59513         unistr/u8-uctomb.
59514
59515 2007-03-28  Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/unistr/u8-mbtoucr: New file.
59518         * lib/unistr/u8-mbtoucr.c: New file.
59519         * modules/unistr/u16-mbtoucr: New file.
59520         * lib/unistr/u16-mbtoucr.c: New file.
59521         * modules/unistr/u16-mbtoucr: New file.
59522         * lib/unistr/u16-mbtoucr.c: New file.
59523         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59524
59525 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59526             Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59529         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59530         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59531
59532         * m4/stdio_h.m4: Add stubs for vasprintf too.
59533
59534         * modules/stdio: Support vasprintf in sed command.
59535
59536         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59537         vasprintf.h.  Add stdio module indicator.
59538
59539         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59540         vasprintf.h.
59541
59542         * lib/vasprintf.h: File removed.
59543
59544         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59545         * lib/vasprintf.c: Ditto.
59546         * lib/xvasprintf.c: Ditto.
59547         * tests/test-vasprintf-posix.c: Ditto.
59548         * tests/test-vasprintf.c: Ditto.
59549
59550 2007-03-27  Bruno Haible  <bruno@clisp.org>
59551
59552         Make vasnprintf multithread-safe.
59553         * lib/vasnprintf.c (decimal_point_char): New function.
59554         (VASNPRINTF): Use it.
59555         Suggested by Simon Josefsson.
59556
59557 2007-03-27  Eric Blake  <ebb9@byu.net>
59558
59559         Support sub-second birthtime on cygwin.
59560         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59561         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59562         (get_stat_birthtime): Also work with st_birthtim.
59563
59564 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59567         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59568         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59569         (get_stat_birthtime_ns): Simplify compile-time tests.
59570         (get_stat_birthtime): Change the API to look like
59571         get_stat_mtime etc., except return a negative tv_nsec on error.
59572         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59573         Don't check for "spare" fields.
59574         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59575         or for struct stat.st_birthtime, as these tests aren't used.
59576         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59577
59578 2007-03-27  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/stat-time.h: Include <sys/stat.h>.
59581
59582 2007-03-27  James Youngman  <jay@gnu.org>
59583
59584         * lib/stat-time.h (get_stat_birthtime): New function for
59585           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59586         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59587           and its variants.
59588         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59589         * modules/stat-time-test: New file.
59590         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59591
59592 2007-03-26  Bruno Haible  <bruno@clisp.org>
59593
59594         Better support of signalling NaNs.
59595         * lib/atanl.c: Include isnanl.h.
59596         (atanl): Perform test for NaN at the beginning of the function and
59597         through a call to isnanl.
59598         * lib/cosl.c: Include isnanl.h.
59599         (cosl): Perform test for NaN at the beginning of the function and
59600         through a call to isnanl.
59601         * lib/ldexpl.c: Include isnanl.h.
59602         (ldexpl): Perform test for NaN through a call to isnanl.
59603         * lib/logl.c: Include isnanl.h.
59604         (logl): Perform test for NaN at the beginning of the function and
59605         through a call to isnanl.
59606         * lib/sinl.c: Include isnanl.h.
59607         (sinl): Perform test for NaN at the beginning of the function and
59608         through a call to isnanl.
59609         * lib/sqrtl.c: Include isnanl.h.
59610         (sqrtl): Perform test for NaN at the beginning of the function and
59611         through a call to isnanl.
59612         * lib/tanl.c: Include isnanl.h.
59613         (tanl): Perform test for NaN at the beginning of the function and
59614         through a call to isnanl.
59615         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59616         * modules/mathl (Depends-on): Add isnanl.
59617
59618 2007-03-26  Eric Blake  <ebb9@byu.net>
59619
59620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59621         regression in logic sense of previous patch.
59622
59623 2007-03-26  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59626         unportable shell command "if ! ...".
59627         Reported by Ralf Wildenhues.
59628
59629 2007-03-25  Bruno Haible  <bruno@clisp.org>
59630
59631         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59632         <sysexits.h> file, and only add EX_CONFIG.
59633         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59634         absolute file name and whether it is sufficient. Substitute also
59635         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59636         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59637         ABSOLUTE_SYSEXITS_H into sysexits.h.
59638
59639 2007-03-25  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59642         hints is NULL.
59643
59644 2007-03-25  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59647         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59648
59649 2007-03-25  Bruno Haible  <bruno@clisp.org>
59650
59651         * lib/vasnprintf.c: Include langinfo.h.
59652         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59653         multithread-safe.
59654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59663         Reported by Simon Josefsson.
59664
59665 2007-03-25  Bruno Haible  <bruno@clisp.org>
59666
59667         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59668         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59669         * modules/vasnprintf (Depends-on): Add stdint.
59670
59671 2007-03-25  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/fpieee: New file.
59674         * m4/fpieee.m4: New file.
59675         * modules/isnan-nolibm (Depends-on): Add fpieee.
59676         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59677         * modules/isnanl (Depends-on): Add fpieee.
59678
59679 2007-03-25  Bruno Haible  <bruno@clisp.org>
59680
59681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59682
59683 2007-03-25  Bruno Haible  <bruno@clisp.org>
59684
59685         Avoid test failures on IRIX 6.5.
59686         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59687         (main): Use it.
59688         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59689         macros.
59690         (main): Use them.
59691
59692 2007-03-25  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59695         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59696         exists but doesn't work.
59697         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59698         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59700         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59701         math.h.
59702
59703 2007-03-25  Bruno Haible  <bruno@clisp.org>
59704
59705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59706         returns inf. Needed on IRIX 6.5.
59707
59708 2007-03-25  Bruno Haible  <bruno@clisp.org>
59709
59710         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59711         (main): Use isnanl instead of x != x idiom.
59712         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59713
59714         * tests/test-frexp.c: Include isnan.h.
59715         (main): Use isnan instead of x != x idiom.
59716         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59717
59718 2007-03-25  Bruno Haible  <bruno@clisp.org>
59719
59720         * tests/test-frexp.c (NaN): New function/macro.
59721         (main): Use it instead of 0.0 / 0.0.
59722         * tests/test-isnan.c (NaN): New function/macro.
59723         (main): Use it instead of 0.0 / 0.0.
59724         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59725         (test_function): Use it instead of 0.0 / 0.0.
59726         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59727         (test_function): Use it instead of 0.0 / 0.0.
59728         * tests/test-snprintf-posix.h (NaN): New function/macro.
59729         (test_function): Use it instead of 0.0 / 0.0.
59730         * tests/test-sprintf-posix.h (NaN): New function/macro.
59731         (test_function): Use it instead of 0.0 / 0.0.
59732         * tests/test-fprintf-posix.h (NaN): New function/macro.
59733         (test_function): Use it instead of 0.0 / 0.0.
59734         * tests/test-printf-posix.h (NaN): New function/macro.
59735         (test_function): Use it instead of 0.0 / 0.0.
59736
59737         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59738
59739 2007-03-25  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59742
59743 2007-03-25  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/regexec.c (merge_state_with_log): Make static.
59746
59747 2007-03-25  Bruno Haible  <bruno@clisp.org>
59748
59749         * lib/trigl.c (kernel_rem_pio2): Make static.
59750
59751 2007-03-25  Bruno Haible  <bruno@clisp.org>
59752
59753         * lib/sincosl.c (sincosl_table): Make static.
59754
59755 2007-03-25  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59758         if the compiler does not support C99.
59759
59760 2007-03-25  Bruno Haible  <bruno@clisp.org>
59761
59762         * modules/time (Makefile.am): Ensure all rule action lines start with a
59763         tab.
59764
59765 2007-03-24  Bruno Haible  <bruno@clisp.org>
59766
59767         * modules/tsearch-tests: New file.
59768         * tests/test-tsearch.sh: New file.
59769         * tests/test-tsearch.c: New file, mostly copied from glibc.
59770
59771         * modules/search-tests: New file.
59772         * tests/test-search.c: New file.
59773
59774         * modules/search: New file.
59775         * lib/search_.h: New file, incorporating lib/tsearch.h.
59776         * m4/search_h.m4: New file.
59777         * lib/tsearch.h: Remove file.
59778         * lib/tsearch.c: Include search.h instead of tsearch.h.
59779         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59780         HAVE_TSEARCH.
59781         * modules/tsearch (Files): Remove lib/tsearch.h.
59782         (Depends-on): Add search.
59783         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59784         (Include): Change tsearch.h into search.h.
59785
59786 2007-03-24  Bruno Haible  <bruno@clisp.org>
59787
59788         * modules/fpucw: New file.
59789         * lib/fpucw.h: New file.
59790         * lib/frexp.c: Include fpucw.h.
59791         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59792         (FUNC): Use them.
59793         * lib/printf-frexp.c: Include fpucw.h.
59794         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59795         (FUNC): Use them.
59796         * lib/vasnprintf.c: Include fpucw.h.
59797         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59798         'long double' calculations.
59799         * tests/test-frexpl.c: Include fpucw.h.
59800         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59801         * tests/test-printf-frexpl.c: Include fpucw.h.
59802         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59803         * modules/frexpl (Depends-on): Add fpucw.
59804         * modules/printf-frexpl (Depends-on): Likewise.
59805         * modules/fprintf-posix (Depends-on): Likewise.
59806         * modules/snprintf-posix (Depends-on): Likewise.
59807         * modules/sprintf-posix (Depends-on): Likewise.
59808         * modules/vasnprintf-posix (Depends-on): Likewise.
59809         * modules/vasprintf-posix (Depends-on): Likewise.
59810         * modules/vfprintf-posix (Depends-on): Likewise.
59811         * modules/vsnprintf-posix (Depends-on): Likewise.
59812         * modules/vsprintf-posix (Depends-on): Likewise.
59813         * modules/frexpl-tests (Depends-on): Likewise.
59814         * modules/printf-frexpl-tests (Depends-on): Likewise.
59815
59816 2007-03-24  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/float+.h: New file.
59819         * lib/isnan.c: Include float+.h.
59820         (SIZE): New macro.
59821         (FUNC): Compare only SIZE bytes of the value.
59822         * lib/vasnprintf.c: Include float+.h.
59823         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59824         SIZEOF_LDBL or SIZEOF_DBL bytes.
59825         * modules/isnan-nolibm (Files): Add lib/float+.h.
59826         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59827         * modules/isnanl (Files): Add lib/float+.h.
59828         * modules/vasnprintf (Files): Add lib/float+.h.
59829
59830 2007-03-24  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59833         include isnanl-nolibm.h.
59834
59835 2007-03-24  Bruno Haible  <bruno@clisp.org>
59836
59837         * tests/test-read-file.c (main): Don't produce spurious output for
59838         expected situations. Make the test fail if it encountered unexpected
59839         results.
59840
59841 2007-03-24  Bruno Haible  <bruno@clisp.org>
59842
59843         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59844         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59845
59846 2007-03-24  Bruno Haible  <bruno@clisp.org>
59847
59848         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59849
59850 2007-03-24  Bruno Haible  <bruno@clisp.org>
59851
59852         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59853         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59854
59855         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59856         * modules/utf8-ucs4: Turn into a symbolic link to module
59857         unistr/u8-mbtouc.
59858
59859         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59860         utf8-ucs4-unsafe.
59861         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59862         unistr/u8-mbtouc-unsafe.
59863
59864         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59865         * modules/utf16-ucs4: Turn into a symbolic link to module
59866         unistr/u16-mbtouc.
59867
59868         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59869         utf16-ucs4-unsafe.
59870         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59871         unistr/u16-mbtouc-unsafe.
59872
59873         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59874         * modules/ucs4-utf8: Turn into a symbolic link to module
59875         unistr/u8-ubtomb.
59876
59877         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59878         * modules/ucs4-utf16: Turn into a symbolic link to module
59879         unistr/u16-ubtomb.
59880
59881 2007-03-24  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59884         Enable the function only if HAVE_INLINE.
59885         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59886         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59887         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59888         Enable the function only if HAVE_INLINE.
59889         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59890         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59891         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59892         Enable the function only if HAVE_INLINE.
59893         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59894         Enable the function only if HAVE_INLINE.
59895         * modules/utf8-ucs4: Update.
59896         * modules/utf8-ucs4-unsafe: Update.
59897         * modules/utf16-ucs4: Update.
59898         * modules/utf16-ucs4-unsafe: Update.
59899         * modules/ucs4-utf8: Update.
59900         * modules/ucs4-utf16: Update.
59901
59902 2007-03-24  Bruno Haible  <bruno@clisp.org>
59903
59904         * lib/utf8-ucs4.h: Remove file.
59905         * lib/utf8-ucs4-unsafe.h: Remove file.
59906         * lib/utf16-ucs4.h: Remove file.
59907         * lib/utf16-ucs4-unsafe.h: Remove file.
59908         * lib/ucs4-utf8.h: Remove file.
59909         * lib/ucs4-utf16.h: Remove file.
59910         * lib/unistr.h: Include their previous contents.
59911         * m4/utf-ucs4.m4: Remove file.
59912         * m4/ucs4-utf.m4: Remove file.
59913         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59914         (Depends-on): Add unistr/base.
59915         (configure.ac): Remove gl_UTF_UCS4.
59916         (Makefile.am): Update.
59917         (Include): Change to unistr.h.
59918         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59919         (Depends-on): Add unistr/base.
59920         (configure.ac): Remove gl_UTF_UCS4.
59921         (Makefile.am): Update.
59922         (Include): Change to unistr.h.
59923         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59924         (Depends-on): Add unistr/base.
59925         (configure.ac): Remove gl_UTF_UCS4.
59926         (Makefile.am): Update.
59927         (Include): Change to unistr.h.
59928         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59929         (Depends-on): Add unistr/base.
59930         (configure.ac): Remove gl_UTF_UCS4.
59931         (Makefile.am): Update.
59932         (Include): Change to unistr.h.
59933         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59934         (Depends-on): Add unistr/base.
59935         (configure.ac): Remove gl_UCS4_UTF.
59936         (Makefile.am): Update.
59937         (Include): Change to unistr.h.
59938         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59939         (Depends-on): Add unistr/base.
59940         (configure.ac): Remove gl_UCS4_UTF.
59941         (Makefile.am): Update.
59942         (Include): Change to unistr.h.
59943         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59944         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59945         utf8-ucs4-unsafe.h.
59946         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59947         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59948         utf16-ucs4-unsafe.h.
59949         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59950         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59951         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59952         * lib/unistr/u8-strchr.c: Likewise.
59953         * lib/unistr/u8-strrchr.c: Likewise.
59954         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59955         * lib/unistr/u16-strchr.c: Likewise.
59956         * lib/unistr/u16-strrchr.c: Likewise.
59957         * lib/striconveh.c: Update.
59958         * lib/linebreak.c: Update.
59959
59960 2007-03-24  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59963         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59964
59965 2007-03-22  Bruno Haible  <bruno@clisp.org>
59966
59967         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59968
59969 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59970
59971         * MODULES.html.sh (File system functions): New module write-any-file.
59972         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59973         * m4/write-any-file.m4: New files.
59974
59975 2007-03-23  Eric Blake  <ebb9@byu.net>
59976
59977         * gnulib-tool: Rearrange space-tab sequences, since some editors
59978         like to eat them.
59979
59980 2007-03-23  Eric Blake  <ebb9@byu.net>
59981
59982         * lib/version-etc.c (version_etc_va): Update license wording to
59983         be more concise.  Recommended by Richard Stallman.
59984
59985 2007-03-22  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/poll.c (MSG_PEEK): New fallback definition.
59988
59989 2007-03-22  Bruno Haible  <bruno@clisp.org>
59990
59991         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59992         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59993         (main): Update.
59994         Fixes a compilation error on BeOS.
59995
59996 2007-03-22  Bruno Haible  <bruno@clisp.org>
59997
59998         * modules/frexpl-tests: New file.
59999         * tests/test-frexpl.c: New file.
60000
60001         * modules/frexpl: New file.
60002         * m4/frexpl.m4: New file.
60003         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60004         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60006         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60007         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60008         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60009
60010 2007-03-22  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/frexpl.c: Share code with lib/frexp.c.
60013         * modules/mathl (Files): Add lib/frexp.c.
60014         (Depends-on): Add isnanl-nolibm.
60015
60016 2007-03-22  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/printf-frexp (Files): Add m4/frexp.m4.
60019         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60020         only if the found frexp function actually works.
60021
60022 2007-03-22  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/frexp.c: Remove older implementation that uses divisions.
60025
60026 2007-03-21  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/frexp-tests: New file.
60029         * tests/test-frexp.c: New file.
60030
60031         * modules/frexp: New file.
60032         * lib/frexp.c: New file.
60033         * m4/frexp.m4: New file.
60034         * lib/math_.h (frexp): New declaration.
60035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60036         REPLACE_FREXP.
60037         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60038
60039 2007-03-21  Bruno Haible  <bruno@clisp.org>
60040
60041         * modules/isnanl-tests: New file.
60042         * tests/test-isnanl.c: New file.
60043
60044         * modules/isnanl: New file.
60045         * lib/isnanl.h: New file.
60046         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60047         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60048         gl_FUNC_ISNANL_WORKS.
60049         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60050         New macros.
60051
60052 2007-03-21  Bruno Haible  <bruno@clisp.org>
60053
60054         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60055         lib/isnanl.h.
60056         (Include): Update.
60057         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60058         * lib/vasnprintf.c: Update.
60059         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60060         tests/test-isnanl.h, remove tests/test-isnanl.c.
60061         (Makefile.am): Update.
60062         * tests/test-isnanl-nolibm.c: New file.
60063         * tests/test-isnanl.h: New file.
60064         * tests/test-isnanl.c: Remove file.
60065
60066 2007-03-21  Jim Meyering  <jim@meyering.net>
60067
60068         When trying to open ".", treat ESTALE like EACCES.
60069         * lib/savewd.c (savewd_save): Resort to forking not just upon
60070         failure with EACCES, but also when errno is ESTALE.
60071
60072 2007-03-20  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60075         Needed on AIX 5.1. Reported by Matthew Woehlke.
60076
60077 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         Suggestions by Bruno Haible:
60080         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60081         our own.
60082         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60083         * modules/acl (Depends-on): Add gettext.
60084
60085 2007-03-19  Bruno Haible  <bruno@clisp.org>
60086
60087         * modules/iconvme: Remove file.
60088         * lib/iconvme.h: Remove file.
60089         * lib/iconvme.c: Remove file.
60090         * m4/iconvme.m4: Remove file.
60091
60092 2007-03-19  Bruno Haible  <bruno@clisp.org>
60093
60094         * doc/relocatable-maint.texi: Break long shell script line.
60095         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60096
60097 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60100         handle file_has_acl.
60101         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60102         * lib/acl.c: Move header inclusions and related macro defns into
60103         lib/acl-internal.h.
60104         (S_ISLNK): Remove defn, since that's now done for us.
60105         (file_has_acl): Move to lib/file-has-acl.c.
60106         Call acl_trivial if available.  This is the crucial part of the fix.
60107         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60108         shared within the library.  Rewrite a bit, partly to make it compatible
60109         with the GNU coding style.
60110         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60111         Remove unnecessary double-quotes.
60112         Don't test for acl_to_text; the build will catch that.
60113         Replace acl_entries if it doesn't exist and it is needed.
60114         Check for -lsec and acl_trivial (as used on Solaris 10).
60115         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60116         lib/file-has-acl.c.
60117         (Depends-on): Add sys_stat, for S_ISLNK.
60118
60119 2007-03-19  Ben Pfaff  <blp@gnu.org>
60120
60121         * doc/gnulib.texi: Fix typos.
60122         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60123
60124 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60127         If size is zero here, buf must be zero.
60128
60129 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60130
60131         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60132         <bruno@clisp.org>.
60133
60134 2007-03-18  Bruno Haible  <bruno@clisp.org>
60135
60136         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60137         Suggested by Eric Blake.
60138
60139 2007-03-18  Ben Pfaff  <blp@gnu.org>
60140
60141         * doc/relocatable.texi: Recommend using as prefix a directory
60142         that does not exist and will never be created.  Based on
60143         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60144         and others.
60145
60146 2007-03-17  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/fchownat.c: Include lchown.h.
60149
60150 2007-03-17  Bruno Haible  <bruno@clisp.org>
60151
60152         Fix endless loop when the given allocated size was > INT_MAX.
60153         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60154         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60155         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60156         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60157         * lib/sprintf.c (sprintf): Likewise.
60158
60159 2007-03-17  Bruno Haible  <bruno@clisp.org>
60160
60161         * tests/test-argp-2.sh (func_compare): Output a context diff.
60162
60163 2007-03-17  Bruno Haible  <bruno@clisp.org>
60164
60165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60166         locale's decimal-point character.
60167
60168 2007-03-17  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60171         before comparing it. Needed because on some platforms (e.g. x86) a
60172         'long double' occupies less bytes than sizeof (long double).
60173
60174 2007-03-17  Bruno Haible  <bruno@clisp.org>
60175
60176         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60177         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60178         * tests/test-getaddrinfo.c (simple): Likewise.
60179         * tests/test-read-file.c (main): Likewise.
60180
60181 2007-03-17  Bruno Haible  <bruno@clisp.org>
60182
60183         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60184
60185 2007-03-17  Bruno Haible  <bruno@clisp.org>
60186
60187         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60188         unused variable.
60189
60190 2007-03-17  Bruno Haible  <bruno@clisp.org>
60191
60192         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60193         * tests/test-c-strncasecmp.c: Likewise.
60194
60195 2007-03-17  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/stdlib (Depends-on): Add unistd.
60198         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60199         Needed for MacOS X 10.3.
60200
60201 2007-03-17  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60204
60205 2007-03-17  Bruno Haible  <bruno@clisp.org>
60206
60207         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60208
60209 2007-03-17  Bruno Haible  <bruno@clisp.org>
60210
60211         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60212         to reflect files copied from gnulib (with or without modifications).
60213         Suggested by Jim Meyering.
60214
60215 2007-03-17  Eric Blake  <ebb9@byu.net>
60216
60217         * NEWS: Document stdlib change from 2007-02-18.
60218
60219 2007-03-17  Jim Meyering  <jim@meyering.net>
60220
60221         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60222         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60223         someone uses a name containing shell meta-characters.
60224         Reported by Alfred M. Szmidt.
60225
60226         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60227
60228 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60229
60230         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60231         and copy gettext configuration files only if configure.ac contains
60232         a use of AM_GNU_GETTEXT_VERSION.
60233
60234 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60235
60236         * build-aux/bootstrap (gnulib_name): New variable.
60237         (gnulib_tool_options): Use it.
60238
60239 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60240
60241         * tests/test-des.c: Use new namespace.
60242
60243 2007-03-15  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60246         Reported by James Youngman <jay@gnu.org>.
60247
60248 2007-03-15  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60251         declared prototype. Needed with cc on OSF/1 5.1.
60252
60253 2007-03-15  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60256         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60257         (struct gl_list_implementation): Add dispose_fn argument to the
60258         'create_empty', 'create' methods.
60259         (struct gl_list_impl_base): Add field 'dispose_fn'.
60260         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60261         argument.
60262         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60263         dispose_fn argument.
60264         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60265         dispose_fn on the dropped values.
60266         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60267         dispose_fn argument.
60268         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60269         dropped values.
60270         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60271         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60272         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60273         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60274         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60275         argument.
60276         (gl_tree_list_free): Call dispose_fn on the dropped values.
60277         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60278         the dropped values.
60279         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60280         Add dispose_fn argument.
60281         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60282         Call dispose_fn on the dropped values.
60283         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60284         Add dispose_fn argument.
60285         (gl_sublist_create): Initialize the 'dispose_fn' field.
60286         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60287         * tests/test-array_list.c (main): Update.
60288         * tests/test-carray_list.c (main): Update.
60289         * tests/test-avltree_list.c (main): Update.
60290         * tests/test-rbtree_list.c (main): Update.
60291         * tests/test-avltreehash_list.c (main): Update.
60292         * tests/test-rbtreehash_list.c (main): Update.
60293         * tests/test-linked_list.c (main): Update.
60294         * tests/test-linkedhash_list.c (main): Update.
60295         * tests/test-array_oset.c (main): Update.
60296
60297 2007-03-15  Bruno Haible  <bruno@clisp.org>
60298
60299         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60300         (gl_oset_create_empty): Add dispose_fn argument.
60301         (struct gl_oset_implementation): Add dispose_fn argument to
60302         'create_empty' method.
60303         (struct gl_oset_impl_base): Add dispose_fn field.
60304         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60305         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60306         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60307         values.
60308         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60309         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60310         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60311         dropped value.
60312         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60313         dropped value.
60314         * tests/test-array_oset.c (main): Update.
60315         * tests/test-avltree_oset.c (main): Update.
60316         * tests/test-rbtree_oset.c (main): Update.
60317         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60318
60319 2007-03-13  Bruno Haible  <bruno@clisp.org>
60320
60321         * tests/test-stdbool.c (i): Update after last patch.
60322
60323 2007-03-12  Bruno Haible  <bruno@clisp.org>
60324
60325         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60326         the iswprint macro. Needed on Solaris 2.5.1.
60327
60328 2007-03-12  Bruno Haible  <bruno@clisp.org>
60329
60330         * tests/test-printf-frexp.c (main): Declare x as volatile.
60331
60332 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60333
60334         * doc/gnulib.texi (Build robot for gnulib): New section.
60335
60336 2007-03-12  Jim Meyering  <jim@meyering.net>
60337
60338         * build-aux/bootstrap: New file.
60339         * build-aux/bootstrap.conf: New file, from coreutils.
60340
60341 2007-03-11  Bruno Haible  <bruno@clisp.org>
60342
60343         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60344
60345 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60346
60347         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60348         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60349         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60350
60351 2007-03-11  Bruno Haible  <bruno@clisp.org>
60352
60353         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60354         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60355
60356 2007-03-11  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60359         formula. Needed for SunPRO C 5.0.
60360
60361 2007-03-11  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/long-options (Depends-on): Add getopt.
60364
60365 2007-03-11  Bruno Haible  <bruno@clisp.org>
60366
60367         * modules/modechange (Depends-on): Add stdbool.
60368
60369 2007-03-11  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/i-ring (Depends-on): Add stdbool.
60372
60373 2007-03-11  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/gc-des (Depends-on): Add stdbool.
60376
60377 2007-03-11  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60380
60381 2007-03-11  Bruno Haible  <bruno@clisp.org>
60382
60383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60384
60385 2007-03-11  Bruno Haible  <bruno@clisp.org>
60386
60387         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60388
60389 2007-03-11  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/vasnprintf.c (sprintf): Undefine.
60392
60393 2007-03-11  Bruno Haible  <bruno@clisp.org>
60394
60395         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60396         initializers in SunPRO C and Compaq C compilers.
60397
60398 2007-03-11  Bruno Haible  <bruno@clisp.org>
60399
60400         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60401         decrementing code ANSI C compliant.
60402
60403 2007-03-11  Bruno Haible  <bruno@clisp.org>
60404
60405         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60406         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60407
60408 2007-03-11  Bruno Haible  <bruno@clisp.org>
60409
60410         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60411         <stdbool.h> substitute doesn't pass.
60412
60413 2007-03-11  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60416
60417 2007-03-11  Bruno Haible  <bruno@clisp.org>
60418
60419         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60420         script, for submission to autobuild.josefsson.org.
60421
60422 2007-03-10  Bruno Haible  <bruno@clisp.org>
60423
60424         * modules/canonicalize-lgpl-tests: New file.
60425         * tests/test-canonicalize-lgpl.sh: New file.
60426         * tests/test-canonicalize-lgpl.c: New file.
60427
60428         * modules/c-strcase-tests: New file.
60429         * tests/test-c-strcase.sh: New file.
60430         * tests/test-c-strcasecmp.c: New file.
60431         * tests/test-c-strncasecmp.c: New file.
60432
60433         * modules/atexit-tests: New file.
60434         * tests/test-atexit.sh: New file.
60435         * tests/test-atexit.c: New file.
60436
60437 2007-03-10  Bruno Haible  <bruno@clisp.org>
60438
60439         * tests/test-binary-io.sh: Use temporary filenames that are not so
60440         likely to clash with those of other tests (in a parallel make).
60441         * tests/test-binary-io.c: Likewise.
60442
60443 2007-03-10  Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60446         fallback; use #error instead.
60447         Suggested by Simon Josefsson.
60448
60449 2007-03-10  Bruno Haible  <bruno@clisp.org>
60450
60451         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60452         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60453         first and the last.
60454
60455 2007-03-10  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60458
60459 2007-03-10  Bruno Haible  <bruno@clisp.org>
60460
60461         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60462         "make distcheck".
60463         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60464         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60465         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60466
60467 2007-03-10  Bruno Haible  <bruno@clisp.org>
60468
60469         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60470         variable.
60471         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60472         variable.
60473
60474 2007-03-09  Eric Blake  <ebb9@byu.net>
60475         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60476
60477         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60478         types are not being provided by gnulib.
60479         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60480         types are supported.
60481
60482 2007-03-10  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/stdio_.h (__attribute__): New macro.
60485         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60486         vsprintf): Specify __attribute__ __format__ for GCC.
60487         Suggested by Eric Blake.
60488
60489 2007-03-09  Bruno Haible  <bruno@clisp.org>
60490
60491         * modules/printf-posix-tests: New file.
60492         * tests/test-printf-posix.sh: New file.
60493         * tests/test-printf-posix.c: New file.
60494
60495         * modules/printf-posix: New file.
60496         * lib/printf.c: New file.
60497         * m4/printf-posix-rpl.m4: New file.
60498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60499         REPLACE_PRINTF.
60500         * lib/stdio_.h (printf): New declaration.
60501         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60502         ____strfmon____): New macros.
60503         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60504         REPLACE_PRINTF.
60505
60506 2007-03-09  Bruno Haible  <bruno@clisp.org>
60507
60508         * tests/test-vasnprintf-posix2.sh: New file.
60509         * tests/test-vasnprintf-posix2.c: New file.
60510         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60511         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60512         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60513
60514         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60515         a locale dependent decimal point, rather than always '.'.
60516
60517 2007-03-09  Eric Blake  <ebb9@byu.net>
60518
60519         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60520         spite of platforms like Tandem/NSK that define it to -1.
60521
60522 2007-03-08  Bruno Haible  <bruno@clisp.org>
60523
60524         * modules/vprintf-posix-tests: New file.
60525         * tests/test-vprintf-posix.sh: New file.
60526         * tests/test-vprintf-posix.c: New file.
60527         * tests/test-printf-posix.h: New file.
60528
60529         * modules/vprintf-posix: New file.
60530         * lib/vprintf.c: New file.
60531         * m4/vprintf-posix.m4: New file.
60532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60533         REPLACE_VPRINTF.
60534         * lib/stdio_.h (vprintf): New declaration.
60535         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60536         REPLACE_VPRINTF.
60537
60538 2007-03-08  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/fprintf-posix-tests: New file.
60541         * tests/test-fprintf-posix.sh: New file.
60542         * tests/test-fprintf-posix.c: New file.
60543
60544         * modules/fprintf-posix: New file.
60545         * lib/fprintf.c: New file.
60546         * m4/fprintf-posix.m4: New file.
60547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60548         REPLACE_FPRINTF.
60549         * lib/stdio_.h (fprintf): New declaration.
60550         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60551         REPLACE_FPRINTF.
60552
60553 2007-03-08  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/vfprintf-posix-tests: New file.
60556         * tests/test-vfprintf-posix.sh: New file.
60557         * tests/test-vfprintf-posix.c: New file.
60558         * tests/test-fprintf-posix.h: New file.
60559         * tests/test-fprintf-posix.out: New file.
60560
60561         * modules/vfprintf-posix: New file.
60562         * lib/vfprintf.c: New file.
60563         * m4/vfprintf-posix.m4: New file.
60564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60565         REPLACE_VFPRINTF.
60566         * lib/stdio_.h (vfprintf): New declaration.
60567         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60568         REPLACE_VFPRINTF.
60569
60570 2007-03-08  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60573
60574 2007-03-08  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60577         instead of 'expr' invocations.
60578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60583         Suggested by Paul Eggert.
60584
60585 2007-03-08  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/fseterr-tests: New file.
60588         * tests/test-fseterr.c: New file.
60589
60590         * modules/fseterr: New file.
60591         * lib/fseterr.h: New file.
60592         * lib/fseterr.c: New file.
60593
60594 2007-03-08  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60597         * lib/getopt_.h: Likewise.
60598         * lib/mbswidth.h: Likewise.
60599         * lib/setenv.h: Likewise.
60600         * lib/vasnprintf.h: Likewise.
60601         * lib/vasprintf.h: Likewise.
60602         * lib/verror.h: Likewise.
60603         * lib/xsetenv.h: Likewise.
60604         * lib/xvasprintf.h: Likewise.
60605
60606 2007-03-08  Jim Meyering  <jim@meyering.net>
60607
60608         * users.txt: Add parted.
60609
60610         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60611
60612 2007-03-07  Bruno Haible  <bruno@clisp.org>
60613
60614         * m4/printf.m4: Make the shell script snippets copy&pastable.
60615
60616 2007-03-02  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/netinet_in_.h: New file.
60619         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60620         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60621         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60622         (Depends-on): Add absolute-header.
60623         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60624         into netinet/in.h.
60625
60626 2007-03-03  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/sys_select_.h: New file.
60629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60630         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60631         * modules/sys_select (Files): Add lib/sys_select_.h.
60632         (Depends-on): Add absolute-header.
60633         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60634         into sys/select.h.
60635
60636 2007-03-02  Bruno Haible  <bruno@clisp.org>
60637
60638         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60639         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60640         values.
60641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60642         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60643         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60644         * modules/sys_socket (Depends-on): Add absolute-header.
60645         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60646         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60647         (Include): Remove requirement of inclusion of <sys/types.h>.
60648
60649 2007-03-02  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/byteswap_.h (bswap_32): Fix formula.
60652
60653 2007-03-06  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/sprintf-posix-tests: New file.
60656         * tests/test-sprintf-posix.c: New file.
60657
60658         * modules/sprintf-posix: New file.
60659         * lib/sprintf.c: New file.
60660         * m4/sprintf-posix.m4: New file.
60661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60662         REPLACE_SPRINTF.
60663         * lib/stdio_.h (sprintf): New declaration.
60664         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60665         REPLACE_SPRINTF.
60666
60667 2007-03-06  Bruno Haible  <bruno@clisp.org>
60668
60669         * modules/vsprintf-posix-tests: New file.
60670         * tests/test-vsprintf-posix.c: New file.
60671         * tests/test-sprintf-posix.h: New file.
60672
60673         * modules/vsprintf-posix: New file.
60674         * lib/vsprintf.c: New file.
60675         * m4/vsprintf-posix.m4: New file.
60676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60677         REPLACE_VSPRINTF.
60678         * lib/stdio_.h (vsprintf): New declaration.
60679         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60680         REPLACE_VSPRINTF.
60681
60682 2007-03-06  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/vsnprintf (Depend-on): Remove minmax.
60685
60686 2007-03-06  Bruno Haible  <bruno@clisp.org>
60687
60688         * modules/snprintf-posix-tests: New file.
60689         * tests/test-snprintf-posix.c: New file.
60690
60691         * modules/snprintf-posix: New file.
60692         * m4/snprintf-posix.m4: New file.
60693         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60694         gl_FUNC_SNPRINTF.
60695         (gl_FUNC_SNPRINTF): Invoke it.
60696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60697         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60698         is set.
60699         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60700
60701 2007-03-06  Bruno Haible  <bruno@clisp.org>
60702
60703         * modules/vsnprintf-posix-tests: New file.
60704         * tests/test-vsnprintf-posix.c: New file.
60705         * tests/test-snprintf-posix.h: New file.
60706
60707         * modules/vsnprintf-posix: New file.
60708         * m4/vsnprintf-posix.m4: New file.
60709         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60710         gl_FUNC_VSNPRINTF.
60711         (gl_FUNC_VSNPRINTF): Invoke it.
60712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60713         * lib/stdio_.h (vsnprintf): Define as a replacement if
60714         REPLACE_VSNPRINTF is set.
60715         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60716
60717 2007-03-06  Bruno Haible  <bruno@clisp.org>
60718
60719         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60721
60722 2007-03-06  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60725         (asinl): Declare also if HAVE_DECL_ASINL is set.
60726         (atanl): Declare also if HAVE_DECL_ATANL is set.
60727         (ceill): Declare also if HAVE_DECL_CEILL is set.
60728         (cosl): Declare also if HAVE_DECL_COSL is set.
60729         (expl): Declare also if HAVE_DECL_EXPL is set.
60730         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60731         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60732         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60733         (logl): Declare also if HAVE_DECL_LOGL is set.
60734         (sinl): Declare also if HAVE_DECL_SINL is set.
60735         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60736         (tanl): Declare also if HAVE_DECL_TANL is set.
60737         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60740         declaration of frexpl, ldexpl.
60741         * modules/printf-frexpl (Depends-on): Add math.
60742         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60743
60744 2007-03-05  Bruno Haible  <bruno@clisp.org>
60745
60746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60747         frexpl and ldexpl are declared.
60748         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60749
60750 2007-03-05  Bruno Haible  <bruno@clisp.org>
60751
60752         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60753         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60754
60755 2007-03-05  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/stdio_.h: Include <stddef.h>.
60758
60759 2007-03-05  Bruno Haible  <bruno@clisp.org>
60760
60761         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60762
60763 2007-03-05  Bruno Haible  <bruno@clisp.org>
60764
60765         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60766         NetBSD 4, from Ralf Wildenhues.
60767
60768 2007-03-04  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/vasprintf.h: Update #if logic for the case when the functions
60771         exist but are overridden.
60772
60773 2007-03-04  Bruno Haible  <bruno@clisp.org>
60774
60775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60776         implementations: glibc-2.4 and MacOS X 10.3.
60777         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60778         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60779         * tests/test-vasprintf-posix.c (test_function): Likewise.
60780
60781 2007-03-04  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/vasprintf-posix-tests: New file.
60784         * tests/test-vasprintf-posix.c: New file.
60785
60786         * modules/vasprintf-posix: New file.
60787         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60788         defined.
60789         * m4/vasprintf-posix.m4: New file.
60790         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60791         gl_FUNC_VASPRINTF.
60792         (gl_FUNC_VASPRINTF): Invoke it.
60793         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60794         here.
60795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60796
60797 2007-03-04  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60800         REPLACE_GETTIMEOFDAY.
60801         * modules/sys_time (Makefile.am): Likewise.
60802         * m4/sys_time_h.m4: Likewise.
60803         * m4/gettimeofday.m4: Likewise.
60804
60805 2007-03-04  Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/vasnprintf-posix-tests: New file.
60808         * tests/test-vasnprintf-posix.c: New file.
60809
60810         * modules/vasnprintf-posix: New file.
60811         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60812         printf-frexpl.h.
60813         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60814         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60815         REPLACE_VASNPRINTF is defined.
60816         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60817         gl_FUNC_VASNPRINTF.
60818         (gl_FUNC_VASNPRINTF): Invoke it.
60819         * m4/vasnprintf-posix.m4: New file.
60820         * m4/printf.m4: New file.
60821
60822 2007-03-04  Bruno Haible  <bruno@clisp.org>
60823
60824         Compile progreloc.c only if --enable-relocatable is specified.
60825         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60826         if --enable-relocatable was specified.
60827         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60828         lib_SOURCES.
60829
60830 2007-03-04  Jim Meyering  <jim@meyering.net>
60831
60832         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60833         Use it consistently, rather than enumerating errno constants.
60834
60835 2007-03-04  Bruno Haible  <bruno@clisp.org>
60836
60837         * modules/xvasprintf-tests: New file.
60838         * tests/test-xvasprintf.c: New file.
60839
60840         * modules/vasprintf-tests: New file.
60841         * tests/test-vasprintf.c: New file.
60842
60843         * modules/vasnprintf-tests: New file.
60844         * tests/test-vasnprintf.c: New file.
60845
60846         * modules/vsnprintf-tests: New file.
60847         * tests/test-vsnprintf.c: New file.
60848
60849         * modules/snprintf-tests: New file.
60850         * tests/test-snprintf.c: New file.
60851
60852 2007-03-04  Bruno Haible  <bruno@clisp.org>
60853
60854         Compile relocatable.c only if --enable-relocatable is specified.
60855         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60856         gl_RELOCATABLE_LIBRARY.
60857         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60858         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60859         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60860         gl_RELOCATABLE_LIBRARY.
60861         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60862         (Makefile.am): Remove lib_SOURCES.
60863         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60864         gl_RELOCATABLE_LIBRARY.
60865         (Makefile.am): Remove lib_SOURCES.
60866         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60867         always.
60868         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60869         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60870
60871 2007-03-04  Bruno Haible  <bruno@clisp.org>
60872
60873         * modules/argmatch-tests: New file.
60874         * tests/test-argmatch.c: New file.
60875
60876         * tests/test-allocsa.c (main): Halve the number of loop runs.
60877
60878         * modules/alloca-opt-tests: New file.
60879         * tests/test-alloca-opt.c: New file.
60880
60881 2007-03-04  Jim Meyering  <jim@meyering.net>
60882
60883         Work around difference between Linux ACLs and Solaris 10 ZFS.
60884         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60885         for EINVAL.
60886
60887 2007-03-03  Bruno Haible  <bruno@clisp.org>
60888
60889         * modules/relocatable-prog (Depends-on): Add back progreloc's
60890         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60891
60892 2007-03-03  Bruno Haible  <bruno@clisp.org>
60893
60894         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60895         * modules/relocatable-lib: New file.
60896
60897 2007-03-03  Bruno Haible  <bruno@clisp.org>
60898
60899         * modules/relocatable-prog: Renamed from modules/relocatable.
60900         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60901
60902 2007-03-03  Bruno Haible  <bruno@clisp.org>
60903
60904         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60905         m4/relocatable-lib.m4.
60906         (Depends-on): Remove 'relocatable'.
60907         (configure.ac): Add gl_RELOCATABLE_NOP.
60908
60909 2007-03-03  Bruno Haible  <bruno@clisp.org>
60910
60911         * modules/relocatable-prog-wrapper: New file.
60912         * modules/relocatable (Depends-on): Add it. Remove all other
60913         dependencies except progname.
60914         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60915
60916         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60917         (gl_FUNC_STRERROR): Nop.
60918         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60919
60920         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60921         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60922
60923         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60924         (gl_FUNC_READLINK): Update.
60925
60926         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60927
60928 2007-03-03  Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60931         * modules/xreadlink (Depends-on): Add unistd.
60932         * modules/xreadlink-with-size (Depends-on): Likewise.
60933
60934 2007-03-03  Bruno Haible  <bruno@clisp.org>
60935
60936         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60937         extracted from gt_FUNC_SETENV.
60938         (gt_FUNC_SETENV): Remove macro.
60939         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60940         remove gt_FUNC_SETENV.
60941
60942 2007-03-03  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60945         ENABLE_RELOCATABLE here.
60946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60947
60948 2007-03-03  Bruno Haible  <bruno@clisp.org>
60949
60950         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60951         * tests/test-rbtreehash_list.c: Include progname.h.
60952         (main): Call set_program_name.
60953
60954         * modules/rbtree-oset-tests (Depends-on): Add progname.
60955         * tests/test-rbtree_oset.c: Include progname.h.
60956         (main): Call set_program_name.
60957
60958         * modules/rbtree-list-tests (Depends-on): Add progname.
60959         * tests/test-rbtree_list.c: Include progname.h.
60960         (main): Call set_program_name.
60961
60962         * modules/linked-list-tests (Depends-on): Add progname.
60963         * tests/test-linked_list.c: Include progname.h.
60964         (main): Call set_program_name.
60965
60966 2007-03-03  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60969         All uses of __restrict changed to _Restrict_.
60970         * lib/glob_.h (__restrict): Remove macro.
60971
60972 2007-03-02  Bruno Haible  <bruno@clisp.org>
60973
60974         * modules/gettext (configure.ac): Require gettext infrastructure
60975         from version 0.16.1.
60976
60977 2007-03-02  Bruno Haible  <bruno@clisp.org>
60978
60979         * modules/linkedhash-list-tests (Depends-on): Add progname.
60980         * tests/test-linkedhash_list.c: Include progname.h.
60981         (main): Call set_program_name.
60982
60983         * modules/carray-list-tests (Depends-on): Add progname.
60984         * tests/test-carray_list.c: Include progname.h.
60985         (main): Call set_program_name.
60986
60987         * modules/avltreehash-list-tests (Depends-on): Add progname.
60988         * tests/test-avltreehash_list.c: Include progname.h.
60989         (main): Call set_program_name.
60990
60991         * modules/avltree-oset-tests (Depends-on): Add progname.
60992         * tests/test-avltree_oset.c: Include progname.h.
60993         (main): Call set_program_name.
60994
60995         * modules/avltree-list-tests (Depends-on): Add progname.
60996         * tests/test-avltree_list.c: Include progname.h.
60997         (main): Call set_program_name.
60998
60999         * modules/array-oset-tests (Depends-on): Add progname.
61000         * tests/test-array_oset.c: Include progname.h.
61001         (main): Call set_program_name.
61002
61003         * modules/array-list-tests (Depends-on): Add progname.
61004         * tests/test-array_list.c: Include progname.h.
61005         (main): Call set_program_name.
61006
61007         * modules/argp-tests (Depends-on): Add progname.
61008         * tests/test-argp.c: Include argp.h first. Include progname.h.
61009         (main): Call set_program_name.
61010
61011 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61012
61013         * doc/gnulib-tool.texi (Initial import): Reword description of
61014         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61015         limited effect even if defined after the first system include.
61016
61017 2007-03-01  Bruno Haible  <bruno@clisp.org>
61018
61019         * build-aux/config.libpath: Update to libtool-1.5.22.
61020         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61021
61022 2007-03-01  Bruno Haible  <bruno@clisp.org>
61023
61024         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61025         foo_CFLAGS.
61026         Reported by Ralf Wildenhues.
61027
61028 2007-03-01  Bruno Haible  <bruno@clisp.org>
61029
61030         * build-aux/install-reloc: Remove object files left over by some
61031         compilers.
61032         Reported by Ralf Wildenhues.
61033
61034 2007-03-01  Bruno Haible  <bruno@clisp.org>
61035
61036         * build-aux/install-reloc: Break long lines.
61037
61038 2007-03-01  Bruno Haible  <bruno@clisp.org>
61039
61040         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61041         Reported by Ralf Wildenhues.
61042
61043 2007-03-01  Bruno Haible  <bruno@clisp.org>
61044
61045         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61046         include ordering constraints.
61047
61048 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61049
61050         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61052         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61053         as another example.
61054         * lib/time_.h: Fix misspelling.
61055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61056         Require gl_HEADER_TIME_H_DEFAULTS.
61057         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61058         * m4/time_r.m4 (gl_TIME_R): Likewise.
61059         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61060
61061 2007-03-01  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61064         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61065
61066 2007-03-01  Jim Meyering  <jim@meyering.net>
61067
61068         * modules/xreadlink (Maintainer): Add my name.
61069         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61070
61071 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61072             Bruno Haible  <bruno@clisp.org>
61073
61074         * build-aux/install-reloc: Compile also c-ctype.c.
61075         * build-aux/relocatable.sh.in: New file.
61076         * doc/relocatable.texi: New file.
61077         * doc/relocatable-maint.texi: New file.
61078         * doc/gnulib.texi: Include relocatable-maint.texi.
61079         * lib/progreloc.c: Include unistd.h unconditionally.
61080         * lib/relocwrapper.c: Include unistd.h unconditionally.
61081         Include c-ctype.h.
61082         (add_dotbin): Use c_tolower.
61083         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61084         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61085         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61086         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61087         to m4/relocatable-lib.m4.
61088         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61089         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61090         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61091         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61092         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61093         * modules/relocatable: New file.
61094         * modules/relocatable-lib: New file.
61095         * modules/relocatable-script: New file.
61096
61097 2007-02-28  Bruno Haible  <bruno@clisp.org>
61098
61099         Import --enable-relocatable infrastructure.
61100         * build-aux/config.libpath: New file, from GNU gettext.
61101         * build-aux/install-reloc: New file, from GNU gettext.
61102         * build-aux/reloc-ldflags: New file, from GNU gettext.
61103         * lib/relocatable.h: New file, from GNU gettext.
61104         * lib/relocatable.c: New file, from GNU gettext.
61105         * lib/relocwrapper.c: New file, from GNU gettext.
61106         * m4/relocatable.m4: New file, from GNU gettext.
61107
61108 2007-02-28  Bruno Haible  <bruno@clisp.org>
61109
61110         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61111
61112         * modules/xreadlink: New file, from GNU gettext with modifications.
61113         * lib/xreadlink.c: New file, from GNU gettext.
61114         * lib/xreadlink.h: Add comments.
61115         (xreadlink): New declaration.
61116
61117         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61118         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61119         lib/xreadlink-with-size.c.
61120         (configure.ac): Remove gl_XREADLINK invocation.
61121         (Makefile.am): Augment lib_SOURCES.
61122         * m4/xreadlink.m4: Remove file.
61123         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61124         (xreadlink_with_size): Renamed from xreadink.
61125         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61126         * modules/canonicalize (Depends-on): Replace xreadlink with
61127         xreadlink-with-size.
61128         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61129
61130 2007-02-25  Jim Meyering  <jim@meyering.net>
61131
61132         * build-aux/announce-gen: When complaining about excess arguments,
61133         list them.
61134
61135 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * README: Document signed integer overflow situation more
61138         accurately.
61139
61140 2007-02-25  Bruno Haible  <bruno@clisp.org>
61141
61142         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61143         'a' or 'A' conversion.
61144
61145 2007-02-25  Bruno Haible  <bruno@clisp.org>
61146
61147         * modules/filename: Renamed from modules/pathname.
61148         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61149         lib/concatpath.c with lib/concat-filename.c.
61150         (Makefile.am): Update.
61151         (Include): Replace pathname.h with filename.h.
61152         * lib/filename.h: Renamed from lib/pathname.h.
61153         (concatenated_filename): Renamed from concatenated_pathname.
61154         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61155         (concatenated_filename): Renamed from concatenated_pathname.
61156         * lib/findprog.c: Include filename.h instead of pathname.h.
61157         (find_in_path): Update.
61158         * lib/javacomp.c: Include filename.h instead of pathname.h.
61159         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61160         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61161         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61162         is_oldgcj_14_13_usable, is_javac_usable): Update.
61163         * lib/javaexec.c: Include filename.h instead of pathname.h.
61164         (execute_java_class): Update.
61165         * modules/findprog: Update.
61166         * modules/javacomp: Update.
61167         * modules/javaexec: Update.
61168         * MODULES.html.sh (File system functions): Add 'filename', remove
61169         'pathname'.
61170
61171 2007-02-25  Bruno Haible  <bruno@clisp.org>
61172
61173         * modules/printf-frexpl-tests: New file.
61174         * tests/test-printf-frexpl.c: New file.
61175
61176         * modules/printf-frexpl: New file.
61177         * lib/printf-frexpl.h: New file.
61178         * lib/printf-frexpl.c: New file.
61179         * m4/printf-frexpl.m4: New file.
61180
61181 2007-02-25  Bruno Haible  <bruno@clisp.org>
61182
61183         * modules/printf-frexp-tests: New file.
61184         * tests/test-printf-frexp.c: New file.
61185
61186         * modules/printf-frexp: New file.
61187         * lib/printf-frexp.h: New file.
61188         * lib/printf-frexp.c: New file.
61189         * m4/printf-frexp.m4: New file.
61190
61191 2007-02-25  Bruno Haible  <bruno@clisp.org>
61192
61193         Assume automake >= 1.10 for the tests.
61194         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61195         * modules/arctwo-tests: Likewise.
61196         * modules/argp-tests: Likewise.
61197         * modules/avltree-list-tests: Likewise.
61198         * modules/avltree-oset-tests: Likewise.
61199         * modules/avltreehash-list-tests: Likewise.
61200         * modules/carray-list-tests: Likewise.
61201         * modules/crc-tests: Likewise.
61202         * modules/des-tests: Likewise.
61203         * modules/gc-arcfour-tests: Likewise.
61204         * modules/gc-arctwo-tests: Likewise.
61205         * modules/gc-des-tests: Likewise.
61206         * modules/gc-hmac-md5-tests: Likewise.
61207         * modules/gc-hmac-sha1-tests: Likewise.
61208         * modules/gc-md2-tests: Likewise.
61209         * modules/gc-md4-tests: Likewise.
61210         * modules/gc-md5-tests: Likewise.
61211         * modules/gc-pbkdf2-sha1-tests: Likewise.
61212         * modules/gc-rijndael-tests: Likewise.
61213         * modules/gc-sha1-tests: Likewise.
61214         * modules/gc-tests: Likewise.
61215         * modules/getaddrinfo-tests: Likewise.
61216         * modules/hmac-md5-tests: Likewise.
61217         * modules/hmac-sha1-tests: Likewise.
61218         * modules/linked-list-tests: Likewise.
61219         * modules/linkedhash-list-tests: Likewise.
61220         * modules/lock-tests: Likewise.
61221         * modules/md2-tests: Likewise.
61222         * modules/md4-tests: Likewise.
61223         * modules/md5-tests: Likewise.
61224         * modules/rbtree-list-tests: Likewise.
61225         * modules/rbtree-oset-tests: Likewise.
61226         * modules/rbtreehash-list-tests: Likewise.
61227         * modules/read-file-tests: Likewise.
61228         * modules/rijndael-tests: Likewise.
61229         * modules/stdint-tests: Likewise.
61230         * modules/tls-tests: Likewise.
61231
61232 2007-02-24  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61235         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61236         function; instead check whether isnan with a double argument links.
61237         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61238         function; instead check whether isnan with a 'long double' argument
61239         links.
61240         Reported by Eric Blake <ebb9@byu.net>.
61241
61242 2007-02-24  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61245         defined.
61246         * lib/isnanl.c: Remove all code. Just include isnan.c.
61247         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61248
61249 2007-02-25  Jim Meyering  <jim@meyering.net>
61250
61251         Avoid conflicting types for 'unsetenv' on FreeBSD.
61252         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61253         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61254         in stdlib.h.
61255
61256 2007-02-24  Bruno Haible  <bruno@clisp.org>
61257
61258         * modules/isnanl-nolibm-tests: New file.
61259         * tests/test-isnanl.c: New file.
61260
61261         * modules/isnanl-nolibm: New file.
61262         * lib/isnanl.h: New file.
61263         * lib/isnanl.c: New file.
61264         * m4/isnanl.m4: New file.
61265
61266 2007-02-24  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/isnan-nolibm-tests: New file.
61269         * tests/test-isnan.c: New file.
61270
61271         * modules/isnan-nolibm: New file.
61272         * lib/isnan.h: New file.
61273         * lib/isnan.c: New file.
61274         * m4/isnan.m4: New file.
61275
61276 2007-02-24  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61279         assume that an exponent fits in 20 bits.
61280
61281 2007-02-24  Jim Meyering  <jim@meyering.net>
61282
61283         * m4/regex.m4: Update the description of the configure-time option,
61284         --without-included-regex, to state accurately what the defaults are,
61285         and perhaps to give people an idea why using this option is risky.
61286
61287 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61290         loops on small arguments.  This attempts to avoid the problem
61291         Bruno Haible reported for AIX 4.3.2 in
61292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61293
61294 2007-02-23  Bruno Haible  <bruno@clisp.org>
61295
61296         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61297         Needed for help2man.
61298
61299 2007-02-23  Karl Berry  <karl@gnu.org>
61300
61301         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61302         exists, foo.h should be cvs-ignored, not committed.
61303
61304 2007-02-23  Eric Blake  <ebb9@byu.net>
61305
61306         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61307         * lib/stat-time.h (includes): Likewise.
61308         * lib/utimecmp.c (includes): Likewise.
61309         * lib/utimens.h (includes): Likewise.
61310         * lib/getdate.y (includes): Also include "timespec.h" for use
61311         internal to the module.
61312         * modules/utimens (Depends-on): Revert yesterday's patch.
61313         * modules/nanosleep (Depends-on): Add missing dependency.
61314
61315 2007-02-22  Bruno Haible  <bruno@clisp.org>
61316
61317         * lib/glob.c: Don't include getlogin_r.h.
61318
61319 2007-02-22  Jim Meyering  <jim@meyering.net>
61320
61321         * modules/utimens (Depends-on): Add timespec, required for
61322         utimens.h's inclusion of timespec.h.
61323
61324 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61327         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61328         Schwab in
61329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61330         I'll try to think of a better way to fix the Solaris problem.
61331
61332         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61333         like glibc; on Solaris 10, it fails with errno == EINVAL.
61334         POSIX says the behavior is unspecified if the first argument is NULL,
61335         so play it safe and never pass NULL to the system getcwd.
61336
61337 2007-02-21  Jim Meyering  <jim@meyering.net>
61338
61339         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61340         of gettimeofday.  It would conflict with the one now always
61341         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61342         an IRIX 6.5 build failure.
61343
61344 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         Minor fixups to port to Solaris 10 with Sun C 5.8.
61347         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61348         * modules/getcwd (Depends-on): Add dirfd.
61349         * lib/putenv.c (putenv): #undef it.
61350         (rpl_putenv): New decl.
61351         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61352
61353 2007-02-20  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/stdio-tests: New file.
61356         * tests/test-stdio.c: New file.
61357
61358         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61359         (Depends-on): Add stdio.
61360         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61361         (Include): Use <stdio.h> instead of vsnprintf.h.
61362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61363         HAVE_DECL_VSNPRINTF.
61364         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61365
61366         * modules/snprintf (Files): Remove lib/snprintf.h.
61367         (Depends-on): Add stdio.
61368         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61369         (Include): Use <stdio.h> instead of snprintf.h.
61370         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61371         HAVE_DECL_SNPRINTF.
61372         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61373         * lib/getaddrinfo.c: Likewise.
61374
61375         * modules/stdio: New file.
61376         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61377         * lib/snprintf.h: Remove file.
61378         * lib/vsnprintf.h: Remove file.
61379         * lib/.cppi-disable: Remove snprintf.h.
61380         * m4/stdio_h.m4: New file.
61381         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61382
61383 2007-02-20  Jim Meyering  <jim@meyering.net>
61384
61385         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61386         used by e.g., mingw.  From Bruno Haible.
61387
61388 2007-02-19  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61391         warnings.
61392         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61393
61394 2007-02-19  Bruno Haible  <bruno@clisp.org>
61395
61396         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61397         from mingw users.
61398
61399 2007-02-19  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61402         warnings.
61403         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61404
61405 2007-02-19  Jim Meyering  <jim@meyering.net>
61406
61407         Don't use FD after a successful "fdopendir (fd)".
61408         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61409         Reset it by calling dirfd on the just-obtained DIR*.
61410
61411         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61412         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61413
61414 2007-02-18  Bruno Haible  <bruno@clisp.org>
61415
61416         * lib/readlink.c: Include <unistd.h>.
61417         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61418         HAVE_READLINK.
61419         * modules/readlink (Depends-on): Add unistd.
61420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61421         (Include): Add <unistd.h>.
61422
61423         * lib/getlogin_r.h: Remove file.
61424         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61425         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61426         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61427         HAVE_DECL_GETLOGIN_R.
61428         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61430         (Include): Use <unistd.h> instead of getlogin_r.h.
61431
61432         * lib/getcwd.h: Remove file.
61433         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61434         * lib/xgetcwd.c: Likewise.
61435         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61436         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61437         * modules/getcwd (Files): Remove lib/getcwd.h.
61438         (Depends-on): Add unistd.
61439         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61440         (Include): Use <unistd.h> instad of getcwd.h.
61441
61442         * lib/ftruncate.c: Include <unistd.h> first.
61443         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61444         Set HAVE_FTRUNCATE.
61445         * modules/ftruncate (Depends-on): Add unistd.
61446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61447
61448         * lib/fchdir.c: Include <unistd.h> first.
61449         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61451         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61452         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61453         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61454
61455         * lib/dup2.c: Include <unistd.h> first.
61456         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61457         HAVE_DUP2.
61458         * modules/dup2 (Depends-on): Add unistd.
61459         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61460
61461         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61462         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61463         REPLACE_CHOWN. Don't define chown as a macro here.
61464         * modules/chown (Depends-on): Add unistd.
61465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61466
61467         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61468         Add definition for GL_LINK_WARNING.
61469         (chown, dup2): New declarations.
61470         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61471         link warning.
61472         (ftruncate): New declaration.
61473         (getcwd): New declaration, taken from old getcwd.h.
61474         (getlogin_r): New declaration, taken from old getlogin_r.h.
61475         (readlink): New declaration.
61476         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61477         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61478         (gl_PREREQ_UNISTD): Remove macro.
61479         (gl_UNISTD_MODULE_INDICATOR): New macro.
61480         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61481         many new variables. Don't set UNISTD_H.
61482         * modules/unistd (Description): Change.
61483         (Depends-on): Add link-warning.
61484         (configure.ac): Update.
61485         (Makefile.am): Create unistd.h always. Substitute many new variables
61486         into it.
61487
61488 2007-02-18  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61491         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61492         HAVE_GETSUBOPT.
61493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61494         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61495         * lib/getsubopt.h: Remove file.
61496         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61497         (Depends-on): Add stdlib.
61498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61499         (Includes): Use <stdlib.h> instead of getsubopt.h.
61500         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61501         Set HAVE_GETSUBOPT.
61502         * lib/getsubopt.c: Don't include getsubopt.h.
61503
61504 2007-02-18  Bruno Haible  <bruno@clisp.org>
61505
61506         * modules/fchdir (Depends-on): Add dup2.
61507
61508 2007-02-18  Bruno Haible  <bruno@clisp.org>
61509
61510         * lib/stdlib_.h: Handle glibc's special invocation convention
61511         specially.
61512
61513 2007-02-18  Bruno Haible  <bruno@clisp.org>
61514
61515         * modules/stdlib-tests: New file.
61516         * tests/test-stdlib.c: New file.
61517
61518         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61519         (Depends-on): Add stdlib.
61520         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61521         (Includes): Use <stdlib.h> instead of mkstemp.h.
61522         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61523         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61524         * lib/mkstemp.c: Don't include mkstemp.h.
61525         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61526         * lib/stdlib--.h: Don't include mkstemp.h.
61527
61528         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61529         (Depends-on): Add stdlib.
61530         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61531         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61532         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61533         HAVE_MKDTEMP.
61534         * lib/mkdtemp.c: Don't include mkdtemp.h.
61535         * lib/clean-temp.c: Don't include mkdtemp.h.
61536
61537         * modules/exit (Files): Remove lib/exit.h.
61538         (Depends-on): Add stdlib.
61539         (Makefile.am): Remove lib_SOURCES.
61540         (Include): Use <stdlib.h> instead of exit.h.
61541         * lib/argmatch.c: Don't include exit.h.
61542         * lib/execute.c: Likewise.
61543         * lib/pagealign_alloc.c: Likewise.
61544         * lib/pipe.c: Likewise.
61545         * lib/wait-process.c: Likewise.
61546         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61547         * lib/exitfail.c: Likewise.
61548         * lib/savewd.c: Likewise.
61549         * lib/xsetenv.c: Likewise.
61550
61551         * modules/stdlib: New file.
61552         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61553         and extra comments about mkstemp().
61554         * lib/exit.h: Remove file.
61555         * lib/mkdtemp.h: Remove file.
61556         * lib/mkstemp.h: Remove file.
61557         * m4/stdlib_h.m4: New file.
61558         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61559
61560 2007-02-18  Bruno Haible  <bruno@clisp.org>
61561
61562         * modules/math-tests: New file.
61563         * tests/test-math.c: New file.
61564
61565         * modules/math: New file.
61566         * modules/mathl (Files): Remove lib/mathl.h.
61567         (Depends-on): Add math.
61568         (Makefile.am): Don't mention mathl.h.
61569         (Include): Use <math.h> instead of mathl.h.
61570         * lib/math_.h: New file.
61571         * lib/mathl.h: Remove file.
61572         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61573         mathl.h.
61574         * lib/asinl.c: Likewise.
61575         * lib/atanl.c: Likewise.
61576         * lib/ceill.c: Likewise.
61577         * lib/cosl.c: Likewise.
61578         * lib/expl.c: Likewise.
61579         * lib/floorl.c: Likewise.
61580         * lib/frexpl.c: Likewise.
61581         * lib/ldexpl.c: Likewise.
61582         * lib/logl.c: Likewise.
61583         * lib/sincosl.c: Likewise.
61584         * lib/sinl.c: Likewise.
61585         * lib/sqrtl.c: Likewise.
61586         * lib/tanl.c: Likewise.
61587         * lib/trigl.c: Likewise.
61588         * m4/math_h.m4: New file.
61589         * MODULES.html.sh (Mathematics): Add math.
61590
61591 2007-02-17  Bruno Haible  <bruno@clisp.org>
61592
61593         * modules/wctype-tests: New file.
61594         * tests/test-wctype.c: New file.
61595
61596         * modules/wchar-tests: New file.
61597         * tests/test-wchar.c: New file.
61598
61599         * modules/unistd-tests: New file.
61600         * tests/test-unistd.c: New file.
61601
61602         * modules/time-tests: New file.
61603         * tests/test-time.c: New file.
61604
61605         * modules/sysexits-tests: New file.
61606         * tests/test-sysexits.c: New file.
61607
61608         * modules/sys_time-tests: New file.
61609         * tests/test-sys_time.c: New file.
61610
61611         * modules/sys_stat-tests: New file.
61612         * tests/test-sys_stat.c: New file.
61613
61614         * modules/sys_socket-tests: New file.
61615         * tests/test-sys_socket.c: New file.
61616
61617         * modules/sys_select-tests: New file.
61618         * tests/test-sys_select.c: New file.
61619
61620         * modules/string-tests: New file.
61621         * tests/test-string.c: New file.
61622
61623         * modules/stdbool-tests: New file.
61624         * tests/test-stdbool.c: New file.
61625
61626         * modules/netinet_in-tests: New file.
61627         * tests/test-netinet_in.c: New file.
61628
61629         * modules/inttypes-tests: New file.
61630         * tests/test-inttypes.c: New file.
61631
61632         * modules/fcntl-tests: New file.
61633         * tests/test-fcntl.c: New file.
61634
61635         * modules/byteswap-tests: New file.
61636         * tests/test-byteswap.c: New file.
61637
61638         * modules/arpa_inet-tests: New file.
61639         * tests/test-arpa_inet.c: New file.
61640
61641 2007-02-17  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61644         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61645         if the corresponding module is not enabled. Emit link warnings if
61646         the function is used nevertheless.
61647         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61648         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61649         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61650         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61651         * modules/inttypes (Depends-on): Add link-warning.
61652         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61653         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61654         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61655         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61656         * modules/imaxdiv (configure.ac): Likewise.
61657         * modules/strtoimax (configure.ac): Likewise.
61658         * modules/strtoumax (configure.ac): Likewise.
61659
61660 2007-02-17  Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61663         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61665         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61666
61667 2007-02-17  Bruno Haible  <bruno@clisp.org>
61668
61669         * modules/link-warning: New file.
61670         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61671         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61672         * modules/string (Depends-on): Add link-warning.
61673         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61674         string.h.
61675         * MODULES.html.sh (Support for building libraries and executables): Add
61676         link-warning.
61677
61678 2007-02-17  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61681         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61682         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61683         long lines.
61684
61685 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61686             Bruno Haible  <bruno@clisp.org>
61687
61688         * modules/tmpfile: New file.
61689         * lib/tmpfile.c: New file.
61690         * m4/tmpfile.m4: New file.
61691         * MODULES.html.sh (func_all_modules): New section "Input/output".
61692
61693 2007-02-15  Bruno Haible  <bruno@clisp.org>
61694
61695         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61696         (supports_delete_on_close): New function.
61697         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61698
61699 2007-02-14  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/mbspcasecmp-tests: New file.
61702         * tests/test-mbspcasecmp.sh: New file.
61703         * tests/test-mbspcasecmp.c: New file.
61704
61705         New module mbspcasecmp.
61706         * modules/mbspcasecmp: New file.
61707         * lib/mbspcasecmp.c: New file.
61708         * lib/string_.h (strncasecmp): Change warning message.
61709         (mbspcasecmp): New declaration.
61710         * m4/mbspcasecmp.m4: New file.
61711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61712         GNULIB_MBSPCASECMP.
61713         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61714         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61715
61716 2007-02-14  Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/mbsncasecmp-tests: New file.
61719         * tests/test-mbsncasecmp.sh: New file.
61720         * tests/test-mbsncasecmp.c: New file.
61721
61722         New module mbsncasecmp.
61723         * modules/mbsncasecmp: New file.
61724         * lib/mbsncasecmp.c: New file.
61725         * lib/string_.h (mbsncasecmp): New declaration.
61726         * m4/mbsncasecmp.m4: New file.
61727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61728         GNULIB_MBSNCASECMP.
61729         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61730         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61731
61732 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61735         Verify that it doesn't overlap with our flags.
61736         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61737         do not have the desired effect in multibyte locales; instead, use
61738         mbscasecmp.
61739         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61740         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61741         we don't require GNU fnmatch ourselves (if our users require it, they
61742         should do so explicitly).
61743
61744         Fix regex code so it doesn't rely on strcasecmp.
61745         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61746         Otherwise, include gnulib's langinfo.h.
61747         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61748         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61750         * modules/regex (FILES): Remove m4/codeset.m4.
61751         (Depends-on): Add localcharset.  Remove strcase.
61752
61753 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61754
61755         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61756         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61757
61758 2007-02-13  Bruno Haible  <bruno@clisp.org>
61759
61760         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61762
61763 2007-02-12  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61766         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61767         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61768         time warning rather than a link error.
61769
61770 2007-02-12  Bruno Haible  <bruno@clisp.org>
61771
61772         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61775
61776 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61779         args, not 2.
61780
61781 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         New module 'time', so that apps can include <time.h> as per
61784         POSIX and GNU instead of separate include files like time_r.h
61785         and timegm.h.  This implementation tries out a simpler approach
61786         for replacing decls in standard include files (as compared to
61787         the string module), somewhat as an experiment.
61788
61789         * config/srclist.txt: Comment out mktime.c for now.
61790         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61791         since it doesn't apply any more.  Use generic wording instead.
61792         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61793         'time'.
61794         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61795         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61796         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61797         Don't include <sys/types.h>; no longer needed since we assume C89.
61798         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61799         * lib/strftime.c: Likewise.
61800         * lib/time_r.c: Likewise.
61801         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61802         * lib/nanosleep.c: Include <time.h> first, to check interface.
61803         * lib/strptime.c: Likewise.
61804         * lib/time_r.c: Likewise.
61805         * lib/timegm.c: Likewise.
61806         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61807         needed.
61808         * lib/timegm.c: Don't include timegm.h; no longer needed.
61809         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61810         time.h now handles any problems in that area.
61811         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61812         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61813         that time.h defines struct timespec.
61814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61815         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61816         handles that.
61817         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61818         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61819         needed.  Set REPLACE_LOCALTIME.
61820         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61821         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61822         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61823         nanosleep; time_h.m4 now does that.  Don't require
61824         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61825         module handles this now.
61826         * modules/getdate (Depends-on): Remove timespec.  Add time.
61827         * modules/nanosleep (Depends-on): Likewise.
61828         * modules/stat-time (Depends-on): Likewise.
61829         * modules/nanosleep (Include): Include time.h, not timespec.h.
61830         * modules/strptime (Files): Remove lib/strptime.h.
61831         (Depends-on): Add extensions, time.
61832         (Include): Include time.h, not strptime.h.
61833         * modules/time_r (Files): Remove lib/time_r.h.
61834         (Depends-on): Add time.
61835         (Include): Include time.h, not time_r.h.
61836         * modules/timegm: Likewise.
61837         * modules/timespec (Description): Now does timespec-related decls
61838         of our own, instead of struct timespec itself.
61839         (Depends-on): Add time; remove extensions.
61840         (Maintainer): Add self.
61841         * modules/utimecmp (Depends-on): Add time; remove timespec.
61842         * modules/utimens (Depends-on): Likewise.
61843         * modules/xnanosleep (Depends-on): Likewise.
61844
61845 2007-02-11  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/c-strstr.c: Include allocsa.h.
61848         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61849         * lib/c-strcasestr.c: Include allocsa.h.
61850         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61851         * lib/strcasestr.c: Include allocsa.h.
61852         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61853         * lib/mbsstr.c: Include allocsa.h.
61854         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61855         allocsa/freesa instead of malloc/free.
61856         * lib/mbscasestr.c: Include allocsa.h.
61857         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61858         allocsa/freesa instead of malloc/free.
61859         * modules/c-strstr (Depends-on): Add allocsa.
61860         * modules/c-strcasestr (Depends-on): Likewise.
61861         * modules/strcasestr (Depends-on): Likewise.
61862         * modules/mbsstr (Depends-on): Likewise.
61863         * modules/mbscasestr (Depends-on): Likewise.
61864
61865 2007-02-11  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61868
61869         * modules/mbsspn-tests: New file.
61870         * tests/test-mbsspn.sh: New file.
61871         * tests/test-mbsspn.c: New file.
61872
61873 2007-02-11  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61876
61877         * modules/mbspbrk-tests: New file.
61878         * tests/test-mbspbrk.sh: New file.
61879         * tests/test-mbspbrk.c: New file.
61880
61881 2007-02-11  Bruno Haible  <bruno@clisp.org>
61882
61883         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61884         unneeded cast.
61885
61886         * modules/mbscspn-tests: New file.
61887         * tests/test-mbscspn.sh: New file.
61888         * tests/test-mbscspn.c: New file.
61889
61890 2007-02-11  Bruno Haible  <bruno@clisp.org>
61891
61892         * modules/mbscasecmp-tests: New file.
61893         * tests/test-mbscasecmp.sh: New file.
61894         * tests/test-mbscasecmp.c: New file.
61895
61896 2007-02-11  Bruno Haible  <bruno@clisp.org>
61897
61898         Ensure O(n) worst-case complexity of mbscasestr.
61899         * lib/mbscasestr.c: Include stdbool.h.
61900         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61901         functions.
61902         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61903         the bookkeeping indicates that it's worth it.
61904         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61905
61906         * modules/mbscasestr-tests: New file.
61907         * tests/test-mbscasestr1.c: New file.
61908         * tests/test-mbscasestr2.sh: New file.
61909         * tests/test-mbscasestr2.c: New file.
61910         * tests/test-mbscasestr3.sh: New file.
61911         * tests/test-mbscasestr3.c: New file.
61912         * tests/test-mbscasestr4.sh: New file.
61913         * tests/test-mbscasestr4.c: New file.
61914         * m4/locale-tr.m4: New file.
61915
61916 2007-02-11  Bruno Haible  <bruno@clisp.org>
61917
61918         Ensure O(n) worst-case complexity of mbsstr.
61919         * lib/mbsstr.c: Include stdbool.h.
61920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61921         functions.
61922         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61923         bookkeeping indicates that it's worth it.
61924         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61925
61926         * modules/mbsstr-tests: New file.
61927         * tests/test-mbsstr1.c: New file.
61928         * tests/test-mbsstr2.sh: New file.
61929         * tests/test-mbsstr2.c: New file.
61930         * tests/test-mbsstr3.sh: New file.
61931         * tests/test-mbsstr3.c: New file.
61932         * m4/locale-fr.m4: New file.
61933
61934 2007-02-11  Bruno Haible  <bruno@clisp.org>
61935
61936         * lib/mbsrchr.c (mbsrchr): Fix bug.
61937
61938         * modules/mbsrchr-tests: New file.
61939         * tests/test-mbsrchr.sh: New file.
61940         * tests/test-mbsrchr.c: New file.
61941
61942 2007-02-11  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/mbschr.c (mbschr): Fix bug.
61945
61946         * modules/mbschr-tests: New file.
61947         * tests/test-mbschr.sh: New file.
61948         * tests/test-mbschr.c: New file.
61949         * m4/locale-zh.m4: New file.
61950
61951 2007-02-11  Bruno Haible  <bruno@clisp.org>
61952
61953         Support for copying multibyte string iterators.
61954         * lib/mbiter.h: Include <string.h>.
61955         (mbiter_multi_copy): New function.
61956         (mbi_copy): New macro.
61957         * lib/mbuiter.h: Include <string.h>.
61958         (mbuiter_multi_copy): New function.
61959         (mbui_copy): New macro.
61960
61961 2007-02-11  Bruno Haible  <bruno@clisp.org>
61962
61963         New module mbslen.
61964         * modules/mbslen: New file.
61965         * lib/mbslen.c: New file.
61966         * lib/string_.h (mbslen): New declaration.
61967         * m4/mbslen.m4: New file.
61968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61969         GNULIB_MBSLEN.
61970         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61971         * MODULES.html.sh (Internationalization functions): Add mbslen.
61972
61973 2007-02-11  Bruno Haible  <bruno@clisp.org>
61974
61975         Ensure O(n) worst-case complexity of strcasestr substitute.
61976         * lib/strcasestr.c: Include stdbool.h.
61977         (knuth_morris_pratt): New function.
61978         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61979         bookkeeping indicates that it's worth it.
61980         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61981
61982         * modules/strcasestr-tests: New file.
61983         * tests/test-strcasestr.c: New file.
61984
61985 2007-02-11  Bruno Haible  <bruno@clisp.org>
61986
61987         Ensure O(n) worst-case complexity of c_strcasestr.
61988         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61989         (knuth_morris_pratt): New function.
61990         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61991         the bookkeeping indicates that it's worth it.
61992         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61993
61994         * modules/c-strcasestr-tests: New file.
61995         * tests/test-c-strcasestr.c: New file.
61996
61997 2007-02-11  Bruno Haible  <bruno@clisp.org>
61998
61999         Ensure O(n) worst-case complexity of c_strstr.
62000         * lib/c-strstr.c: Include stdbool.h, string.h.
62001         (knuth_morris_pratt): New function.
62002         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62003         bookkeeping indicates that it's worth it.
62004         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62005
62006         * lib/c-strstr.c: Complete rewrite for maintainability.
62007
62008         * modules/c-strstr-tests: New file.
62009         * tests/test-c-strstr.c: New file.
62010
62011 2007-02-11  Bruno Haible  <bruno@clisp.org>
62012
62013         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62014         5.2.1 and earlier, whereby \055 was treated just like the range
62015         delimiter '-'.
62016         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62017
62018 2007-02-08  Bruno Haible  <bruno@clisp.org>
62019
62020         * modules/regex (Depends-on): Add stdbool.
62021         Reported by Dalibor Topic <robilad@kaffe.org>.
62022
62023 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62026         Prefer returning from main to exiting from it.
62027         Remove unnecessary parens after sizeof.
62028
62029 2007-02-05  Bruno Haible  <bruno@clisp.org>
62030
62031         New module mbssep.
62032         * modules/mbssep: New file.
62033         * lib/mbssep.c: New file.
62034         * lib/string_.h (strsep): Add a conditional link warning.
62035         (mbssep): New declaration.
62036         * m4/mbssep.m4: New file.
62037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62038         GNULIB_MBSSEP.
62039         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62040         * MODULES.html.sh (Internationalization functions): Add mbssep.
62041
62042 2007-02-05  Bruno Haible  <bruno@clisp.org>
62043
62044         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62045         Optimize search in case of 1 delimiter.
62046
62047 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62048
62049         * lib/acl.h: Include sys/types.h before sys/acl.h.
62050
62051 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62052
62053         Merge upstream fix for glibc bugzilla #3957:
62054
62055         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62056
62057         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62058         bit for RE_HAT_LISTS_NOT_NEWLINE.
62059         (build_charclass_op): Remove bogus comment.
62060
62061 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62062
62063         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62064
62065 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62068         * lib/memmem.c [!defined _LIBC]: Include config.h.
62069
62070 2007-02-04  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62073         warning message.
62074
62075 2007-02-04  Bruno Haible  <bruno@clisp.org>
62076
62077         New module mbstok_r.
62078         * modules/mbstok_r: New file.
62079         * lib/mbstok_r.c: New file.
62080         * lib/string_.h (strtok_r): Change argument names to match the
62081         comments. Add a conditional link warning.
62082         (mbstok_r): New declaration.
62083         * m4/mbstok_r.m4: New file.
62084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62085         GNULIB_MBSTOK_R.
62086         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62087         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62088
62089 2007-02-04  Bruno Haible  <bruno@clisp.org>
62090
62091         New module mbsspn.
62092         * modules/mbsspn: New file.
62093         * lib/mbsspn.c: New file.
62094         * lib/string_.h (strspn): Add a conditional link warning.
62095         (mbsspn): New declaration.
62096         * m4/mbsspn.m4: New file.
62097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62098         GNULIB_MBSSPN.
62099         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62100         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62101
62102 2007-02-04  Bruno Haible  <bruno@clisp.org>
62103
62104         New module mbspbrk.
62105         * modules/mbspbrk: New file.
62106         * lib/mbspbrk.c: New file.
62107         * lib/string_.h (strpbrk): Add a conditional link warning.
62108         (mbspbrk): New declaration.
62109         * m4/mbspbrk.m4: New file.
62110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62111         GNULIB_MBSPBRK.
62112         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62113         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62114
62115 2007-02-04  Bruno Haible  <bruno@clisp.org>
62116
62117         New module mbscspn.
62118         * modules/mbscspn: New file.
62119         * lib/mbscspn.c: New file.
62120         * lib/string_.h (strcspn): Add a conditional link warning.
62121         (mbscspn): New declaration.
62122         * m4/mbscspn.m4: New file.
62123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62124         GNULIB_MBSCSPN.
62125         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62126         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62127
62128 2007-02-04  Bruno Haible  <bruno@clisp.org>
62129
62130         New module mbscasestr, reduced goal of strcasestr.
62131         * modules/mbscasestr: New file.
62132         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62133         (mbscasestr): Renamed from strcasestr.
62134         * lib/strcasestr.c: Don't include mbuiter.h.
62135         (strcasestr): Remove support for multibyte locales.
62136         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62137         Change the conditional link warning.
62138         (mbscasestr): New declaration.
62139         * m4/mbscasestr.m4: New file.
62140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62141         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62142         REPLACE_STRCASESTR.
62143         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62145         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62146         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62147         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62148         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62149         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62150         (Depends-on): Remove mbuiter.
62151         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62152
62153 2007-02-04  Bruno Haible  <bruno@clisp.org>
62154
62155         Simplify handling of strncasecmp.
62156         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62157         the conditional link warning.
62158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62159         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62160         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62161         * modules/strcase (configure.ac): Don't invoke
62162         gl_STRING_MODULE_INDICATOR.
62163         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62164
62165 2007-02-04  Bruno Haible  <bruno@clisp.org>
62166
62167         New module mbscasecmp, reduced goal of strcasecmp.
62168         * modules/mbscasecmp: New file.
62169         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62170         (mbscasecmp): Renamed from strcasecmp.
62171         * lib/strcasecmp.c: Don't include mbuiter.h.
62172         (strcasecmp): Remove support for multibyte locales.
62173         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62174         Change the conditional link warning.
62175         (mbscasecmp): New declaration.
62176         * m4/mbscasecmp.m4: New file.
62177         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62178         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62179         REPLACE_STRCASECMP.
62180         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62182         GNULIB_MBSCASECMP.
62183         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62184         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62185         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62186         (Depends-on): Remove mbuiter.
62187         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62188
62189 2007-02-04  Bruno Haible  <bruno@clisp.org>
62190
62191         New module mbsstr. Remove module strstr.
62192         * modules/mbsstr: New file.
62193         * modules/strstr: Remove file.
62194         * lib/mbsstr.c: Renamed from lib/strstr.c.
62195         (mbsstr): Renamed from strstr.
62196         * lib/string_.h (strstr): Remove declaration. Change the conditional
62197         link warning.
62198         (mbsstr): New declaration.
62199         * m4/mbsstr.m4: New file.
62200         * m4/strstr.m4: Remove file.
62201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62202         REPLACE_STRSTR.
62203         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62204         Don't initialize GNULIB_STRSTR.
62205         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62206         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62207         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62208         (Support for systems lacking ANSI C 89): Remove strstr.
62209
62210 2007-02-04  Bruno Haible  <bruno@clisp.org>
62211
62212         New module mbsrchr.
62213         * modules/mbsrchr: New file.
62214         * lib/mbsrchr.c: New file.
62215         * lib/string_.h (strrchr): Add a conditional link warning.
62216         (mbsrchr): New declaration.
62217         * m4/mbsrchr.m4: New file.
62218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62219         GNULIB_MBSRCHR.
62220         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62221         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62222
62223 2007-02-04  Bruno Haible  <bruno@clisp.org>
62224
62225         New module mbschr.
62226         * modules/mbschr: New file.
62227         * lib/mbschr.c: New file.
62228         * lib/string_.h (strchr): Add a conditional link warning.
62229         (mbschr): New declaration.
62230         * m4/mbschr.m4: New file.
62231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62232         GNULIB_MBSCHR.
62233         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62234         * MODULES.html.sh (Internationalization functions): Add mbschr.
62235
62236 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62237
62238         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62239
62240         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62241
62242 2007-02-04  Bruno Haible  <bruno@clisp.org>
62243
62244         New module description section 'configure.ac-early'.
62245         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62246         (func_get_autoconf_early_snippet): New function.
62247         (func_import, func_create_testdir): Use it. Remove special cases for
62248         modules 'extensions' and 'lock'.
62249         * modules/extensions (configure.ac-early): Require
62250         gl_USE_SYSTEM_EXTENSIONS.
62251         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62252
62253 2007-02-04  Bruno Haible  <bruno@clisp.org>
62254
62255         Make use of gcj-4.3's -fsource and -ftarget option.
62256         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62257         and if so try the options -fsource and -ftarget.
62258         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62259         source_version, ftarget_option, target_version arguments.
62260         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62261         (is_envjavac_oldgcj_14_14_usable): Renamed from
62262         is_envjavac_gcj_14_14_usable.
62263         (is_envjavac_oldgcj_14_13_usable): Renamed from
62264         is_envjavac_gcj_14_13_usable.
62265         (is_gcj_present): Update.
62266         (is_gcj_43, is_gcj43_usable): New functions.
62267         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62268         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62269         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62270         try the options -fsource and -ftarget.
62271
62272 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62275         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62276         larger value.
62277
62278 2007-02-03  Jim Meyering  <jim@meyering.net>
62279
62280         Give tools a better chance to allocate space for very large buffers.
62281         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62282
62283         Make pwd and readlink work also when run with an unreadable parent dir
62284         on systems with openat support.
62285         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62286         provided getcwd function, even when we have openat support.
62287         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62288
62289 2007-02-02  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62292         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62293         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62294         portability problems if one of these functions is only used on specific
62295         platforms.
62296         Reported by Paul Eggert.
62297
62298 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62301         is causing more trouble than it's curing.
62302         * lib/regex_internal.h (__mempcpy): Remove.
62303         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62304         (and make the code a tad smaller to boot).
62305         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62306
62307 2007-02-02  Jim Meyering  <jim@meyering.net>
62308
62309         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62310         section, not in the Makefile.am: one.
62311
62312 2007-02-02  Eric Blake  <ebb9@byu.net>
62313
62314         * lib/strchrnul.c: Always include config.h first.
62315
62316         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62317         gnulib strstr is not necessary here.
62318
62319 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62320
62321         * m4/socklen.m4: Fix typo.
62322
62323 2007-02-02  Eric Blake  <ebb9@byu.net>
62324
62325         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62326         * modules/netinet_in (Makefile.am): Likewise.
62327
62328 2007-02-01  Bruno Haible  <bruno@clisp.org>
62329
62330         * lib/string_.h (GL_LINK_WARNING): New macro.
62331         (strcasecmp, strstr, strcasestr): If provided by the system,
62332         conditionally define as a macro that leads to a warning instead of to
62333         an error.
62334         (strncasecmp): Conditionally define as a macro that leads to a warning.
62335
62336 2007-02-01  Karl Berry  <karl@gnu.org>
62337
62338         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62339
62340 2007-02-01  Bruno Haible  <bruno@clisp.org>
62341
62342         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62343         renamings.
62344
62345 2007-02-01  Eric Blake  <ebb9@byu.net>
62346
62347         * modules/regex (Depends-on): Revert dependence on mempcpy.
62348         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62349         module's definition of mempcpy.
62350         Reported by Paul Eggert.
62351
62352 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62353
62354         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62355         the symbol XYZ before redefining it.  This fixes a problem with
62356         programs that don't use XYZ, when compiled on systems that define
62357         XYZ to something else.
62358
62359 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62362         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62363         writeable to group or other and (2) is intended to have a special
62364         mode bit that is set or cleared.  In such a case, the directory
62365         should be neither group- nor other-writeable until the special
62366         mode bits are right.
62367
62368 2007-01-31  Eric Blake  <ebb9@byu.net>
62369
62370         * modules/mountlist (Depends-on): Add strstr.
62371
62372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62373         bug.
62374         * modules/string (Makefile.am): Remove redundant replacement.
62375         * modules/regex (Depends-on): Add mempcpy.
62376
62377 2007-01-31  Bruno Haible  <bruno@clisp.org>
62378
62379         New module description field 'Link'.
62380         * gnulib-tool (func_usage): Document --extract-link-directive.
62381         (sed_extract_prog): Recognize 'Link' directive.
62382         (func_get_link_directive): New function.
62383         (func_import): Show summary of link directives.
62384         Handle --extract-link-directive option.
62385         * modules/acl (Link): New section.
62386         * modules/clock-time (Link): New section.
62387         * modules/euidaccess (Link): New section.
62388         * modules/gettext (Link): New section.
62389         * modules/iconv (Link): New section.
62390         * modules/lock (Link): New section.
62391         * modules/nanosleep (Link): New section.
62392         * modules/readline (Link): New section.
62393
62394 2007-01-27  Bruno Haible  <bruno@clisp.org>
62395
62396         Enforce the use of gnulib modules for unportable <string.h> functions.
62397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62398         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62399         (gl_HEADER_STRING_H_BODY): Require it.
62400         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62401         the symbol XYZ to one that gives a link error.
62402         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62403         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62404         * modules/mempcpy (configure.ac): Likewise.
62405         * modules/memrchr (configure.ac): Likewise.
62406         * modules/stpcpy (configure.ac): Likewise.
62407         * modules/stpncpy (configure.ac): Likewise.
62408         * modules/strcase (configure.ac): Likewise.
62409         * modules/strcasestr (configure.ac): Likewise.
62410         * modules/strchrnul (configure.ac): Likewise.
62411         * modules/strdup (configure.ac): Likewise.
62412         * modules/strndup (configure.ac): Likewise.
62413         * modules/strnlen (configure.ac): Likewise.
62414         * modules/strpbrk (configure.ac): Likewise.
62415         * modules/strsep (configure.ac): Likewise.
62416         * modules/strstr (configure.ac): Likewise.
62417         * modules/strtok_r (configure.ac): Likewise.
62418
62419 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62420
62421         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62422
62423 2007-01-30  Jim Meyering  <jim@meyering.net>
62424
62425         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62426
62427 2007-01-29  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62430         * lib/execute.c: Likewise.
62431         * lib/pipe.c: Likewise.
62432         * lib/printf-args.h: Likewise.
62433         * lib/printf-args.c: Likewise.
62434         * lib/printf-parse.c: Likewise.
62435         * lib/vasnprintf.c: Likewise.
62436
62437 2007-01-29  Eric Blake  <ebb9@byu.net>
62438
62439         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62440         declaration.
62441
62442 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62443
62444         * lib/strptime.h (strptime): Use 'restrict' for args where
62445         POSIX requires this.
62446         * lib/strptime.c (strptime): Likewise.
62447         Change license notice from LGPL to GPL, since gnulib-tool will
62448         change this as needed.
62449         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62450         defined.
62451         Include "strptime.h" first, to check interface.
62452         Do not #undef _LIBC and _NL_CURRENT.
62453         Do not include <stdlib.h>; no longer needed.
62454         Include "time_r.h" and declare ptime_locale_status
62455         only if _LIBC is not defined.
62456         (__P): Remove unused macro.
62457         (match_string): Bring back glibc version, but use it only if _LIBC
62458         is defined.
62459         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62460         Remove unnecessary assertion and abort() call.
62461         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62462         * m4/strptime.m4: Fix serial number comment.
62463         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62464         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62465         (Depends-on): Add time_r.
62466
62467 2007-01-29  Bruno Haible  <bruno@clisp.org>
62468
62469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62470         strptime.
62471         * modules/strptime (Depends-on): Add stdbool.
62472         * lib/strptime.h: Include <time.h> always. Add comments.
62473
62474 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62475
62476         * modules/strptime: New file.
62477         * lib/strptime.h: New file.
62478         * lib/strptime.c: New file.
62479         * m4/strptime.m4: New file.
62480
62481 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * MODULES.html.sh: New module mpsort.
62484         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62485
62486         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62487         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62489         All uses changed.
62490         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62491         All uses changed.
62492         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62493         to _Restrict_.
62494         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62495         the parameter matches the prototype.
62496
62497 2007-01-28  Jim Meyering  <jim@meyering.net>
62498
62499         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62500         sys/time.h here, reverting that part of the previous patch:
62501         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62502
62503 2007-01-28  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62506         value of $(SYS_TIME_H).
62507         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62508         remove it conditionally, too. [added by Jim Meyering]
62509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62511         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62512         GETTIMEOFDAY_REPLACEMENT to 1.
62513
62514 2007-01-28  Bruno Haible  <bruno@clisp.org>
62515
62516         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62517         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62519         Set UNISTD_H instead of UNISTD_H2.
62520         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62521
62522 2007-01-28  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62525         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62526
62527 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62528
62529         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62530         (func_create_testdir): Ensure C locale for `grep' and `tr'
62531         character ranges.
62532         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62533         ACLOCAL_AMFLAGS parsing state machine.
62534
62535 2007-01-27  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/unistr/base: Update.
62538
62539 2007-01-27  Bruno Haible  <bruno@clisp.org>
62540
62541         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62542         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62543         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62544         modules/unistr/u32-mbtouc.
62545         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62546         * lib/unistr.h: Update.
62547         * lib/linebreak.c: Update.
62548         * modules/unistr/u32-mbtouc: Renamed from
62549         modules/unistr/u32-mbtouc-safe.
62550         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62551         * lib/unistr.h: Update.
62552         * lib/unistr/u32-to-u8.c: Update.
62553         * lib/unistr/u32-to-u16.c: Update.
62554
62555 2007-01-27  Bruno Haible  <bruno@clisp.org>
62556
62557         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62558         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62559         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62560         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62561         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62562         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62563         modules/unistr/u16-mbtouc.
62564         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62565         * lib/unistr.h: Update.
62566         * lib/linebreak.c: Update.
62567         * modules/linebreak: Update.
62568         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62569         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62570         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62571         * modules/unistr/u16-mbtouc: Renamed from
62572         modules/unistr/u16-mbtouc-safe.
62573         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62574         * lib/unistr.h: Update.
62575         * lib/unistr/u16-to-u8.c: Update.
62576         * modules/unistr/u16-to-u8: Update.
62577         * lib/unistr/u16-to-u32.c: Update.
62578         * modules/unistr/u16-to-u32: Update.
62579
62580 2007-01-27  Bruno Haible  <bruno@clisp.org>
62581
62582         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62583         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62584         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62585         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62586         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62587         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62588         modules/unistr/u8-mbtouc.
62589         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62590         * lib/unistr.h: Update.
62591         * lib/striconveh.c: Update.
62592         * modules/striconveh: Update.
62593         * lib/linebreak.c: Update.
62594         * modules/linebreak: Update.
62595         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62596         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62597         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62598         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62599         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62600         * lib/unistr.h: Update.
62601         * lib/striconveh.c: Update.
62602         * modules/striconveh: Update.
62603         * lib/unistr/u8-to-u16.c: Update.
62604         * modules/unistr/u8-to-u16: Update.
62605         * lib/unistr/u8-to-u32.c: Update.
62606         * modules/unistr/u8-to-u32: Update.
62607
62608 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62609
62610         Sync from Libtool.
62611         * lib/argz.c: Do not include strings.h nor memory.h, include
62612         string.h unconditionally.  Patch by Simon Josefsson.
62613
62614 2007-01-27  Bruno Haible  <bruno@clisp.org>
62615
62616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62617         from gl_HEADER_STRING_H_BODY.
62618         (gl_HEADER_STRING_H_BODY): Require it.
62619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62620         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62621         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62622         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62624         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62626         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62627         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62629         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62630         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62631         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62634
62635 2007-01-27  Bruno Haible  <bruno@clisp.org>
62636
62637         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62638         check_PROGRAMS into noinst_PROGRAMS.
62639         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62640         check_PROGRAMS in this case.
62641         (func_import): Set for_test to false.
62642         (func_create_testdir): Set for_test to true.
62643
62644 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62645             Bruno Haible  <bruno@clisp.org>
62646
62647         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62648         (Depends-on): Add string.
62649         (Includes): Use <string.h> instead of strcasestr.h.
62650         * modules/string (Makefile.am): Also substitute the value of
62651         REPLACE_STRCASESTR.
62652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62653         assume strcasestr is declared in <string.h> not <strings.h>. Also
62654         set REPLACE_STRCASESTR.
62655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62656         REPLACE_STRCASESTR.
62657         * lib/strcasestr.h: Remove file.
62658         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62659         * lib/string_.h (strcasestr): New declaration.
62660
62661 2007-01-27  Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/string_.h: Use 'extern'.
62664
62665 2007-01-27  Jim Meyering  <jim@meyering.net>
62666
62667         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62668         of set-but-not-used local, "q".
62669
62670         * lib/mempcpy.c: Include <config.h> before <string.h>.
62671         This fixes a compilation error on HP-UX, due to the system's
62672         "restrict"-using mempcpy prototype.
62673
62674 2007-01-26  Bruno Haible  <bruno@clisp.org>
62675
62676         Small optimization.
62677         * lib/javacomp.c: Include c-strstr.h.
62678          (is_envjavac_gcj): Use c_strstr instead of strstr.
62679         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62680
62681 2007-01-26  Bruno Haible  <bruno@clisp.org>
62682
62683         * MODULES.html.sh (Unicode string functions): Add the new modules.
62684
62685         * modules/uniconv/u32-strconv-to-locale: New file.
62686         * lib/uniconv/u32-strconv-to-locale.c: New file.
62687
62688         * modules/uniconv/u16-strconv-to-locale: New file.
62689         * lib/uniconv/u16-strconv-to-locale.c: New file.
62690
62691         * modules/uniconv/u8-strconv-to-locale: New file.
62692         * lib/uniconv/u8-strconv-to-locale.c: New file.
62693
62694         * modules/uniconv/u32-strconv-from-locale: New file.
62695         * lib/uniconv/u32-strconv-from-locale.c: New file.
62696
62697         * modules/uniconv/u16-strconv-from-locale: New file.
62698         * lib/uniconv/u16-strconv-from-locale.c: New file.
62699
62700         * modules/uniconv/u8-strconv-from-locale: New file.
62701         * lib/uniconv/u8-strconv-from-locale.c: New file.
62702
62703         * modules/uniconv/u32-strconv-to-enc: New file.
62704         * lib/uniconv/u32-strconv-to-enc.c: New file.
62705         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62706         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62707
62708         * modules/uniconv/u16-strconv-to-enc: New file.
62709         * lib/uniconv/u16-strconv-to-enc.c: New file.
62710         * lib/uniconv/u-strconv-to-enc.h: New file.
62711         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62712         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62713
62714         * modules/uniconv/u8-strconv-to-enc: New file.
62715         * lib/uniconv/u8-strconv-to-enc.c: New file.
62716         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62717         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62718
62719         * modules/uniconv/u32-strconv-from-enc: New file.
62720         * lib/uniconv/u32-strconv-from-enc.c: New file.
62721         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62722         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62723
62724         * modules/uniconv/u16-strconv-from-enc: New file.
62725         * lib/uniconv/u16-strconv-from-enc.c: New file.
62726         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62727         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62728
62729         * modules/uniconv/u8-strconv-from-enc: New file.
62730         * lib/uniconv/u8-strconv-from-enc.c: New file.
62731         * lib/uniconv/u-strconv-from-enc.h: New file.
62732         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62733         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62734
62735         * modules/uniconv/u32-conv-from-enc: New file.
62736         * lib/uniconv/u32-conv-from-enc.c: New file.
62737         * modules/uniconv/u32-conv-from-enc-tests: New file.
62738         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62739
62740         * modules/uniconv/u16-conv-from-enc: New file.
62741         * lib/uniconv/u16-conv-from-enc.c: New file.
62742         * lib/uniconv/u-conv-from-enc.h: New file.
62743         * modules/uniconv/u16-conv-from-enc-tests: New file.
62744         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62745
62746         * modules/uniconv/u8-conv-from-enc: New file.
62747         * lib/uniconv/u8-conv-from-enc.c: New file.
62748         * modules/uniconv/u8-conv-from-enc-tests: New file.
62749         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62750
62751         * modules/uniconv/base: New file.
62752         * lib/uniconv.h: New file.
62753
62754 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * doc/gnulib-tool.texi (Initial import): Update to match current
62757         behavior with strdup module.
62758         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62759         * lib/memmem.h: Remove; all uses removed.  This is now done
62760         by <string.h>.
62761         * lib/mempcpy.h: Likewise.
62762         * lib/memrchr.h: Likewise.
62763         * lib/stpcpy.h: Likewise.
62764         * lib/stpncpy.h: Likewise.
62765         * lib/strcase.h: Likewise.
62766         * lib/strchrnul.h: Likewise.
62767         * lib/strdup.h: Likewise.
62768         * lib/strndup.h: Likewise.
62769         * lib/strnlen.h: Likewise.
62770         * lib/strpbrk.h: Likewise.
62771         * lib/strsep.h: Likewise.
62772         * lib/strstr.h: Likewise.
62773         * lib/strtok_r.h: Likewise.
62774         * lib/string_.h: New file.
62775         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62776         Rely on <string.h> instead.
62777         * lib/canon-host.c: Likewise.
62778         * lib/chdir-long.c: Likewise.
62779         * lib/concatpath.c: Likewise.
62780         * lib/exclude.c: Likewise.
62781         * lib/fchdir.c: Likewise.
62782         * lib/getaddrinfo.c: Likewise.
62783         * lib/getcwd.c: Likewise.
62784         * lib/getsubopt.c: Likewise.
62785         * lib/glob.c: Likewise.
62786         * lib/hard-locale.c: Likewise.
62787         * lib/iconvme.c: Likewise.
62788         * lib/javacomp.c: Likewise.
62789         * lib/mempcpy.c: Likewise.
62790         * lib/memrchr.c: Likewise.
62791         * lib/regex_internal.h: Likewise.
62792         * lib/stpncpy.c: Likewise.
62793         * lib/strcasecmp.c: Likewise.
62794         * lib/strchrnul.c: Likewise.
62795         * lib/strdup.c: Likewise.
62796         * lib/striconv.c: Likewise.
62797         * lib/striconveh.c: Likewise.
62798         * lib/striconveha.c: Likewise.
62799         * lib/strncasecmp.c: Likewise.
62800         * lib/strndup.c: Likewise.
62801         * lib/strnlen.c: Likewise.
62802         * lib/strsep.c: Likewise.
62803         * lib/strstr.c: Likewise.
62804         * lib/strtok_r.c: Likewise.
62805         * lib/userspec.c: Likewise.
62806         * lib/w32spawn.h: Likewise.
62807         * lib/xstrndup.c: Likewise.
62808         * lib/mountlist.c (strstr): Remove decl.
62809         * m4/string_h.m4: New file.
62810         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62811         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62812         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62813         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62814         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62815         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62816         Set REPLACE_STRCASECMP if necessary.
62817         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62818         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62819         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62820         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62821         HAVE_DECL_STRDUP if necessary.
62822         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62823         since gl_FUNC_STRNDUP does that now.
62824         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62825         Check for decl here...
62826         (gl_PREREQ_STRNLEN): ... not here.
62827         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62828         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62829         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62830         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62831         necessary.
62832         * modules/string: New file.
62833         * modules/memmem (Files): Remove special-purpose include file.
62834         (Depends-on): Add string.
62835         (Include): Include <string.h>, not the removed file.
62836         * modules/mempcpy: Likewise.
62837         * modules/memrchr: Likewise.
62838         * modules/stpcpy: Likewise.
62839         * modules/stpncpy: Likewise.
62840         * modules/strcase: Likewise.
62841         * modules/strchrnul: Likewise.
62842         * modules/strdup: Likewise.
62843         * modules/strndup: Likewise.
62844         * modules/strnlen: Likewise.
62845         * modules/strpbrk: Likewise.
62846         * modules/strsep: Likewise.
62847         * modules/strstr: Likewise.
62848         * modules/strtok_r: Likewise.
62849         * tests/test-dirname.c: Don't include "strdup.h", since
62850         <string.h> now suffices.
62851         * tests/test-memmem.c: Don't include "memmem.h", since
62852         <string.h> now suffices.
62853
62854 2007-01-25  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62857         *resultp is 0.
62858
62859         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62860         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62861         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62862         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62863
62864         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62865         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62866         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62867         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62868         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62869         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62870
62871 2007-01-24  Bruno Haible  <bruno@clisp.org>
62872
62873         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62875         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62876         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62877         gl_FUNC_FTS_CORE.
62878         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62879         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62880         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62881         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62882         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62883         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62884         gl_FUNC_FCHOWNAT.
62885         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62886         gl_FUNC_STRFTIME.
62887         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62888         Reported by Ralf Wildenhues.
62889
62890 2007-01-24  Bruno Haible  <bruno@clisp.org>
62891
62892         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62893         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62894         gl_GETADDRINFO.
62895         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62896         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62897         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62898
62899 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62900
62901         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62902         Don't use 'exit'; just return from 'main'.
62903         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62904
62905         * lib/fnmatch_.h: Readjust white space and comments to match
62906         glibc, to avoid spurious diffs.
62907
62908 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62911         2004-12-01 change by Jakub Jelinek, since this code won't compile
62912         if !LIBC.  Problem reported by Bob Proulx.
62913
62914 2007-01-23  Bruno Haible  <bruno@clisp.org>
62915
62916         * lib/striconveh.c: Include c-strcaseeq.h.
62917         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62918         * modules/striconveh (Depends-on): Add c-strcaseeq.
62919
62920 2007-01-23  Bruno Haible  <bruno@clisp.org>
62921
62922         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62923
62924         * modules/c-strcaseeq: New file.
62925         * lib/c-strcaseeq.h: New file.
62926
62927         * modules/streq: New file.
62928         * lib/streq.h: New file.
62929
62930 2007-01-23  Bruno Haible  <bruno@clisp.org>
62931
62932         * modules/striconveha-tests: New file.
62933         * tests/test-striconveha.c: New file.
62934
62935         * lib/striconveha.h: Include <stdbool.h>.
62936         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62937         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62938         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62939         (mem_iconveha): New function.
62940         (str_iconveha_notranslit): Renamed from str_iconveha.
62941         (str_iconveha): New function.
62942         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62943         c-strcase.
62944
62945 2007-01-23  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62948         encodings without forgiving before trying any encoding with handler.
62949         (str_iconveha): Try all encodings without forgiving before trying any
62950         encoding with handler.
62951
62952 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         Import the following changes from libc.
62955
62956         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62957
62958         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62959
62960         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62961
62962         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62963         normal_bracket label.
62964
62965         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62966
62967         [BZ #361]
62968         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62969         to normal_bracket after fetching the next character.
62970
62971 2007-01-22  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62974         argument.
62975         * lib/striconveh.c (iconv_carefully_1): New function.
62976         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62977         argument.
62978         (str_cd_iconveh): Update.
62979         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62980         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62981         * tests/test-striconveh.c (MAGIC): New macro.
62982         (new_offsets): New function.
62983         (main): Test call with and without offsets.
62984
62985 2007-01-22  Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62988         * modules/sys_select (Makefile.am): Likewise.
62989         * modules/sys_socket (Makefile.am): Likewise.
62990         * modules/sys_time (Makefile.am): Likewise.
62991
62992 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62993
62994         * modules/gettimeofday (License): Change from GPL to LGPL, since
62995         gettimeofday is a library function.
62996
62997 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62998
62999         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63000
63001 2007-01-21  Bruno Haible  <bruno@clisp.org>
63002
63003         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63004
63005 2007-01-21  Bruno Haible  <bruno@clisp.org>
63006
63007         * modules/striconveha: New file.
63008         * lib/striconveha.h: New file.
63009         * lib/striconveha.c: New file.
63010         * MODULES.html.sh (Internationalization functions): Add striconveha.
63011         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63012         string.
63013         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63014
63015 2007-01-21  Bruno Haible  <bruno@clisp.org>
63016
63017         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63018         * lib/striconveh.c (str_iconveh): Likewise.
63019
63020 2007-01-21  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/striconveh.h (mem_iconveh): New declaration.
63023         * lib/striconveh.c (mem_iconveh): New function.
63024         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63025
63026 2007-01-21  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63029
63030         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63031         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63032         original result buffer.
63033         (str_cd_iconveh): Update.
63034         * tests/test-striconveh.c (main): Update.
63035
63036         * lib/striconv.h (mem_cd_iconv): Change specification.
63037         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63038         result buffer.
63039         (str_cd_iconv): Update.
63040         * tests/test-striconv.c (main): Update.
63041
63042 2007-01-21  Bruno Haible  <bruno@clisp.org>
63043
63044         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63045
63046 2007-01-20  Jim Meyering  <jim@meyering.net>
63047
63048         * lib/userspec.c (parse_with_separator): If a user or group string
63049         starts with "+", skip the corresponding name-to-ID look-up, since
63050         such a look-up must fail: user and group names may not include "+".
63051
63052 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63055         since we now assume the sys_time module.
63056         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63057         check for sys/time.h; no longer needed.
63058         * modules/poll (Depends-on): Depend on sys_time.
63059
63060 2007-01-18  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63064
63065         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63066         gettimeofday.
63067
63068         * tests/test-gettimeofday.c: Include <time.h>.
63069         (dummy): Remove variable.
63070
63071         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63072         gl_HEADER_SYS_TIME_H.
63073         (gl_HEADER_SYS_TIME_H): New macro.
63074
63075         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63076         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63078         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63079         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63081         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63082         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63083         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63084         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63085         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63086
63087         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63088         last change; it caused a compilation error when cross-compiling to
63089         Cygwin.
63090
63091 2007-01-18  Jim Meyering  <jim@meyering.net>
63092
63093         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63094         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63095         than the race-prone "test -d sys || mkdir sys".
63096         (configure.ac): Use AC_PROG_MKDIR_P.
63097         * modules/sys_select: Likewise.
63098         * modules/sys_socket: Likewise.
63099         * modules/sys_time: Likewise.
63100
63101 2007-01-18  Eric Blake  <ebb9@byu.net>
63102
63103         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63104         replace gettimeofday.
63105         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63106         name, to avoid infinite recursion.
63107
63108 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63111         module sys_time.
63112         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63113         assume timespec.h defines struct timeval.
63114         * lib/settime.c: Likewise.
63115         * lib/utimens.c: Likewise.
63116         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63117         since we now assume the gettimeofday module.
63118         * lib/tempname.c (__gen_tempname): Likewise.
63119         * lib/gettimeofday.h: Remove.
63120         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63121         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63122         Include <time.h>, for 'time()'.
63123         (localtime_buffer_addr): Also use this workaround if
63124         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63125         to simplify the uses.  All uses changed.
63126         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63127         that #undef is inside {}, and 'const' follows type name consistently.
63128         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63129         (gettimeofday): Do not use the maximum possible value for
63130         tv->tv_usec, since that might break usages other than ls.c.
63131         Instead, we'll leave ls.c alone.  This undoes today's patch
63132         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63133         we've never observed the problem but might as well keep the
63134         canary.
63135         * lib/nanosleep.c: Include timespec.h first, for interface check.
63136         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63137         now assume the sys_time module.
63138         * lib/tempname.c: Likewise.
63139         * lib/timespec.h: Likewise.
63140         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63141         needed.
63142         * lib/strftime.c: Likewise.
63143         * lib/timespec.h: Likewise.
63144         * lib/posixtm.c: Include posixtm.h first, for interface check.
63145         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63146         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63147         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63148         * lib/sys_time_.h: New file.
63149         * lib/timespec.h (struct timespec): Use long int, not long.
63150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63151         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63152         Remove obsolescent call to AC_HEADER_TIME.
63153         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63155         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63156         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63157         Likewise.
63158         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63159         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63161         into the sys_time module.  Check for gettimeofday just once.
63162         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63163         for gettimeofday signature to just check the signature.  Merely
63164         compile it, since linking doesn't test signature.  Improve test for
63165         whether gettimeofday.o is actually needed.
63166         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63167         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63168         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63169         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63170         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63171         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63172         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63173         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63174         than worrying about sys/time.h.
63175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63176         Don't bother worrying about TIME_WITH_SYS_TIME.
63177         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63178         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63179         * m4/sys_time_h.m4: New file.
63180         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63181         Don't include sys/time.h.  Return from main rather than exiting.
63182         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63183         all uses changed.
63184         * modules/gethrxtime (Depends-on): Add sys_time.
63185         * modules/gettime (Depends-on): Likewise.
63186         * modules/gettimeofday (Depends-on): Likewise.
63187         * modules/nanosleep (Depends-on): Likewise.
63188         * modules/settime (Depends-on): Likewise.
63189         * modules/tempname (Depends-on): Likewise.
63190         * modules/utimens (Depends-on): Likewise.
63191         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63192         (Include): Change back to <sys/time.h>.
63193         (Maintainer): Add self.
63194         * modules/sys_time: New file.
63195         * modules/tempname (Depends-on): Add gettimeofday.
63196         * tests/test-gettimeofday.c: Include <sys/time.h>
63197         rather than gettimeofday.h.
63198
63199 2007-01-17  Bruno Haible  <bruno@clisp.org>
63200
63201         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63202         the license default to GPL.
63203         (func_create_testdir): Don't complain if a module is LGPL and its
63204         tests module depends on GPLed modules.
63205
63206 2007-01-17  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/gettimeofday.c (gettimeofday): Add code for the case
63209         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63210         maximum possible value for tv->tv_usec, rather than the minimum one.
63211
63212 2005-10-08  Martin Lambers  <marlam@marlam.de>
63213 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63214 2007-01-16  Bruno Haible  <bruno@clisp.org>
63215
63216         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63217         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63218         gl_FUNC_GETTIMEOFDAY.
63219         (Include): Add gettimeofday.h.
63220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63221         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63222         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63223         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63224         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63225         * lib/gettimeofday.h: New file.
63226         * lib/gettimeofday.c: Include <sys/timeb.h>.
63227         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63228         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63229         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63230         fall back on time().
63231
63232         * tests/test-gettimeofday.c: New file.
63233         * modules/gettimeofday-tests: New file.
63234
63235 2007-01-16  Eric Blake  <ebb9@byu.net>
63236
63237         * modules/fnmatch (Depends-on): Depend on wchar.
63238         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63239         * m4/fnmatch.m4: Likewise.
63240         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63241         * m4/mbchar.m4: Likewise.
63242         * modules/mbswidth (Depends-on): Depend on wchar.
63243         * lib/mbswidth.c: Assume <wchar.h>.
63244         * m4/mbswidth.m4: Likewise.
63245         * modules/quotearg (Depends-on): Depend on wchar.
63246         * lib/quotearg.c: Assume <wchar.h>.
63247         * m4/quotearg.m4: Likewise.
63248         * modules/regex (Depends-on): Depend on wchar.
63249         * lib/regex_internal.h: Assume <wchar.h>.
63250         * m4/regex.m4: Likewise.
63251         * modules/stdint (Depends-on): Depend on wchar.
63252         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63253         * m4/stdint.m4: Likewise.
63254         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63255         * modules/strftime (Depends-on): Depend on wchar.
63256         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63257         * modules/strtol (Depends-on): Depend on wchar.
63258         * lib/strtol.c: Assume <wchar.h>.
63259         * modules/wcwidth (Depends-on): Depend on wchar.
63260         * lib/wcwidth.h: Assume <wchar.h>.
63261         * m4/wcwidth.m4: Likewise.
63262
63263 2007-01-16  Bruno Haible  <bruno@clisp.org>
63264
63265         * modules/csharpexec-script: New, created from...
63266         * modules/csharpexec: ... this.
63267
63268 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63269
63270         * modules/javaexec-script: New, created from...
63271         * modules/javaexec: ... this.
63272
63273 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63274
63275         * modules/poll (Dependencies): Add sys_select.
63276
63277 2007-01-15  Jim Meyering  <jim@meyering.net>
63278
63279         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63280         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63281         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63282         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63283
63284 2007-01-15  Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/striconveh: New file.
63287         * lib/striconveh.h: New file.
63288         * lib/striconveh.c: New file.
63289         * MODULES.html.sh (Internationalization functions): Add striconveh.
63290
63291         * modules/striconveh-tests: New file.
63292         * tests/test-striconveh.c: New file.
63293
63294 2007-01-15  Bruno Haible  <bruno@clisp.org>
63295
63296         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63297         not from GNU libiconv or GNU libc.
63298
63299 2007-01-15  Bruno Haible  <bruno@clisp.org>
63300
63301         * doc/gnulib-intro.texi (Copyright): Explain the different license
63302         terms for module descriptions, autoconf macros, tests, documentation.
63303
63304 2007-01-14  Bruno Haible  <bruno@clisp.org>
63305
63306         * modules/striconv-tests: New file.
63307         * tests/test-striconv.c: New file.
63308
63309 2007-01-14  Bruno Haible  <bruno@clisp.org>
63310
63311         * modules/iconv-tests: New file.
63312         * tests/test-iconv.c: New file.
63313
63314 2007-01-14  Bruno Haible  <bruno@clisp.org>
63315
63316         * gnulib-tool (func_get_license): For test modules, use the license of
63317         the main module.
63318
63319 2007-01-14  Bruno Haible  <bruno@clisp.org>
63320
63321         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63322         if iconv is found to exist.
63323
63324 2007-01-14  Bruno Haible  <bruno@clisp.org>
63325
63326         * modules/c-ctype-tests: New file.
63327         * tests/test-c-ctype.c: New file.
63328
63329 2007-01-14  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/binary-io-tests: New file.
63332         * tests/test-binary-io.sh: New file.
63333         * tests/test-binary-io.c: New file.
63334
63335 2007-01-14  Bruno Haible  <bruno@clisp.org>
63336
63337         * modules/array-oset-tests: New file.
63338         * tests/test-array_oset.c: New file.
63339
63340 2007-01-14  Bruno Haible  <bruno@clisp.org>
63341
63342         * modules/array-list-tests: New file.
63343         * tests/test-array_list.c: New file.
63344
63345 2007-01-14  Bruno Haible  <bruno@clisp.org>
63346
63347         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63348         and make.
63349         Reported by Simon Josefsson in
63350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63351
63352 2007-01-14  Bruno Haible  <bruno@clisp.org>
63353
63354         * modules/allocsa-tests: New file.
63355         * tests/test-allocsa.c: New file.
63356
63357 2007-01-14  Bruno Haible  <bruno@clisp.org>
63358
63359         * modules/fchdir (Depends-on): Add absolute-header.
63360         * modules/unistd (Depends-on): Likewise.
63361
63362 2006-12-30  Bruno Haible  <bruno@clisp.org>
63363
63364         * modules/fchdir: New file.
63365         * modules/unistd (Files): Add lib/unistd_.h.
63366         (Makefile.am): Generate unistd.h from unistd_.h.
63367         * lib/fchdir.c: New file.
63368         * lib/dirent_.h: New file.
63369         * lib/unistd_.h: New file.
63370         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63371         * m4/fchdir.m4: New file.
63372         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63373         (gl_HEADER_UNISTD): Invoke it.
63374         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63375         function.
63376         * lib/backupfile.c (opendir, closedir): Undefine.
63377         * lib/chown.c (open, close): Undefine.
63378         * lib/clean-temp.c (open, close): Undefine.
63379         * lib/copy-file.c (open, close): Undefine.
63380         * lib/execute.c (open, close): Undefine.
63381         * lib/fsusage.c (open, close): Undefine.
63382         * lib/gc-gnulib.c (open, close): Undefine.
63383         * lib/getcwd.c (opendir, closedir): Undefine.
63384         * lib/glob.c (opendir, closedir): Undefine.
63385         * lib/javacomp.c (open, close): Undefine.
63386         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63387         * lib/openat-proc.c (open, close): Undefine.
63388         * lib/pagealign_alloc.c (open, close): Undefine.
63389         * lib/pipe.c (open, close): Undefine.
63390         * lib/progreloc.c (open, close): Undefine.
63391         * lib/savedir.c (opendir, closedir): Undefine.
63392         * lib/utime.c (open, close): Undefine.
63393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63394
63395 2007-01-10  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63398
63399 2007-01-12  Eric Blake  <ebb9@byu.net>
63400
63401         Provide a robust <wchar.h>.  Further simplifications are now
63402         possible in other modules, but not included here.
63403         * modules/wchar: New module.
63404         * m4/wchar.m4: New file.
63405         * lib/wchar_.h: Likewise.
63406         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63407         of the new module.
63408         * MODULES.html.sh (Extended multibyte and wide character utilities):
63409         New section.
63410
63411 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63414         to a reasonable default for memory allocation.
63415         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63416         file system that reports garbage st_size values for symlinks.
63417         Problem reported by Liyang Hu.
63418
63419 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63420
63421         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63422         Emacs .#* auto-save files).
63423
63424 2007-01-11  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63427         directory.
63428
63429 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         Use @...@ consistently in lib/wctype_.h.
63432         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63433         on it being set to 1 or 0.
63434         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63435         go back to AC_SUBSTing it.
63436         * modules/wctype (Makefile.am): Undo previous change.
63437
63438 2007-01-10  Eric Blake  <ebb9@byu.net>
63439
63440         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63441         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63442         * modules/wctype (Makefile.am): Likewise.
63443         Reported by Chris McGuire.
63444
63445 2007-01-10  Jim Meyering  <jim@meyering.net>
63446
63447         fts.c: a small readability/maintainability improvement
63448         * lib/fts.c (fts_read): Make this code slightly more readable and
63449         maintainable by hoisting the "sp->fts_cur = p" assignments to
63450         immediately follow the statements that set P.  Derived from
63451         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63452
63453 2007-01-10  Eric Blake  <ebb9@byu.net>
63454
63455         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63456         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63458         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63459         Reported by Chris McGuire.
63460
63461 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63462
63463         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63464         in sed script.
63465
63466 2007-01-09  Bruno Haible  <bruno@clisp.org>
63467
63468         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63469         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63470         variables.
63471         (func_module): Use them.
63472
63473 2007-01-09  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/unistr/base: New file.
63476         * lib/unistr.h: New file.
63477
63478         * modules/unistr/u8-to-u16: New file.
63479         * lib/unistr/u8-to-u16.c: New file.
63480
63481         * modules/unistr/u8-to-u32: New file.
63482         * lib/unistr/u8-to-u32.c: New file.
63483
63484         * modules/unistr/u16-to-u8: New file.
63485         * lib/unistr/u16-to-u8.c: New file.
63486
63487         * modules/unistr/u16-to-u32: New file.
63488         * lib/unistr/u16-to-u32.c: New file.
63489
63490         * modules/unistr/u32-to-u8: New file.
63491         * lib/unistr/u32-to-u8.c: New file.
63492
63493         * modules/unistr/u32-to-u16: New file.
63494         * lib/unistr/u32-to-u16.c: New file.
63495
63496         * modules/unistr/u8-check: New file.
63497         * modules/unistr/u16-check: New file.
63498         * modules/unistr/u32-check: New file.
63499         * lib/unistr/u8-check.c: New file.
63500         * lib/unistr/u16-check.c: New file.
63501         * lib/unistr/u32-check.c: New file.
63502
63503         * modules/unistr/u8-chr: New file.
63504         * modules/unistr/u16-chr: New file.
63505         * modules/unistr/u32-chr: New file.
63506         * lib/unistr/u8-chr.c: New file.
63507         * lib/unistr/u16-chr.c: New file.
63508         * lib/unistr/u32-chr.c: New file.
63509
63510         * modules/unistr/u8-cmp: New file.
63511         * modules/unistr/u16-cmp: New file.
63512         * modules/unistr/u32-cmp: New file.
63513         * lib/unistr/u8-cmp.c: New file.
63514         * lib/unistr/u16-cmp.c: New file.
63515         * lib/unistr/u32-cmp.c: New file.
63516
63517         * modules/unistr/u8-cpy: New file.
63518         * modules/unistr/u16-cpy: New file.
63519         * modules/unistr/u32-cpy: New file.
63520         * lib/unistr/u8-cpy.c: New file.
63521         * lib/unistr/u16-cpy.c: New file.
63522         * lib/unistr/u32-cpy.c: New file.
63523         * lib/unistr/u-cpy.h: New file.
63524
63525         * modules/unistr/u8-cpy-alloc: New file.
63526         * modules/unistr/u16-cpy-alloc: New file.
63527         * modules/unistr/u32-cpy-alloc: New file.
63528         * lib/unistr/u8-cpy-alloc.c: New file.
63529         * lib/unistr/u16-cpy-alloc.c: New file.
63530         * lib/unistr/u32-cpy-alloc.c: New file.
63531         * lib/unistr/u-cpy-alloc.h: New file.
63532
63533         * modules/unistr/u8-endswith: New file.
63534         * modules/unistr/u16-endswith: New file.
63535         * modules/unistr/u32-endswith: New file.
63536         * lib/unistr/u8-endswith.c: New file.
63537         * lib/unistr/u16-endswith.c: New file.
63538         * lib/unistr/u32-endswith.c: New file.
63539         * lib/unistr/u-endswith.h: New file.
63540
63541         * modules/unistr/u8-mblen: New file.
63542         * modules/unistr/u16-mblen: New file.
63543         * modules/unistr/u32-mblen: New file.
63544         * lib/unistr/u8-mblen.c: New file.
63545         * lib/unistr/u16-mblen.c: New file.
63546         * lib/unistr/u32-mblen.c: New file.
63547
63548         * modules/unistr/u8-mbtouc: New file.
63549         * modules/unistr/u16-mbtouc: New file.
63550         * modules/unistr/u32-mbtouc: New file.
63551         * lib/unistr/u8-mbtouc.c: New file.
63552         * lib/unistr/u16-mbtouc.c: New file.
63553         * lib/unistr/u32-mbtouc.c: New file.
63554
63555         * modules/unistr/u8-mbtouc-safe: New file.
63556         * modules/unistr/u16-mbtouc-safe: New file.
63557         * modules/unistr/u32-mbtouc-safe: New file.
63558         * lib/unistr/u8-mbtouc-safe.c: New file.
63559         * lib/unistr/u16-mbtouc-safe.c: New file.
63560         * lib/unistr/u32-mbtouc-safe.c: New file.
63561
63562         * modules/unistr/u8-move: New file.
63563         * modules/unistr/u16-move: New file.
63564         * modules/unistr/u32-move: New file.
63565         * lib/unistr/u8-move.c: New file.
63566         * lib/unistr/u16-move.c: New file.
63567         * lib/unistr/u32-move.c: New file.
63568         * lib/unistr/u-move.h: New file.
63569
63570         * modules/unistr/u8-next: New file.
63571         * modules/unistr/u16-next: New file.
63572         * modules/unistr/u32-next: New file.
63573         * lib/unistr/u8-next.c: New file.
63574         * lib/unistr/u16-next.c: New file.
63575         * lib/unistr/u32-next.c: New file.
63576
63577         * modules/unistr/u8-prev: New file.
63578         * modules/unistr/u16-prev: New file.
63579         * modules/unistr/u32-prev: New file.
63580         * lib/unistr/u8-prev.c: New file.
63581         * lib/unistr/u16-prev.c: New file.
63582         * lib/unistr/u32-prev.c: New file.
63583
63584         * modules/unistr/u8-set: New file.
63585         * modules/unistr/u16-set: New file.
63586         * modules/unistr/u32-set: New file.
63587         * lib/unistr/u8-set.c: New file.
63588         * lib/unistr/u16-set.c: New file.
63589         * lib/unistr/u32-set.c: New file.
63590         * lib/unistr/u-set.h: New file.
63591
63592         * modules/unistr/u8-startswith: New file.
63593         * modules/unistr/u16-startswith: New file.
63594         * modules/unistr/u32-startswith: New file.
63595         * lib/unistr/u8-startswith.c: New file.
63596         * lib/unistr/u16-startswith.c: New file.
63597         * lib/unistr/u32-startswith.c: New file.
63598         * lib/unistr/u-startswith.h: New file.
63599
63600         * modules/unistr/u8-stpcpy: New file.
63601         * modules/unistr/u16-stpcpy: New file.
63602         * modules/unistr/u32-stpcpy: New file.
63603         * lib/unistr/u8-stpcpy.c: New file.
63604         * lib/unistr/u16-stpcpy.c: New file.
63605         * lib/unistr/u32-stpcpy.c: New file.
63606         * lib/unistr/u-stpcpy.h: New file.
63607
63608         * modules/unistr/u8-stpncpy: New file.
63609         * modules/unistr/u16-stpncpy: New file.
63610         * modules/unistr/u32-stpncpy: New file.
63611         * lib/unistr/u8-stpncpy.c: New file.
63612         * lib/unistr/u16-stpncpy.c: New file.
63613         * lib/unistr/u32-stpncpy.c: New file.
63614         * lib/unistr/u-stpncpy.h: New file.
63615
63616         * modules/unistr/u8-strcat: New file.
63617         * modules/unistr/u16-strcat: New file.
63618         * modules/unistr/u32-strcat: New file.
63619         * lib/unistr/u8-strcat.c: New file.
63620         * lib/unistr/u16-strcat.c: New file.
63621         * lib/unistr/u32-strcat.c: New file.
63622         * lib/unistr/u-strcat.h: New file.
63623
63624         * modules/unistr/u8-strchr: New file.
63625         * modules/unistr/u16-strchr: New file.
63626         * modules/unistr/u32-strchr: New file.
63627         * lib/unistr/u8-strchr.c: New file.
63628         * lib/unistr/u16-strchr.c: New file.
63629         * lib/unistr/u32-strchr.c: New file.
63630
63631         * modules/unistr/u8-strcmp: New file.
63632         * modules/unistr/u16-strcmp: New file.
63633         * modules/unistr/u32-strcmp: New file.
63634         * lib/unistr/u8-strcmp.c: New file.
63635         * lib/unistr/u16-strcmp.c: New file.
63636         * lib/unistr/u32-strcmp.c: New file.
63637
63638         * modules/unistr/u8-strcpy: New file.
63639         * modules/unistr/u16-strcpy: New file.
63640         * modules/unistr/u32-strcpy: New file.
63641         * lib/unistr/u8-strcpy.c: New file.
63642         * lib/unistr/u16-strcpy.c: New file.
63643         * lib/unistr/u32-strcpy.c: New file.
63644         * lib/unistr/u-strcpy.h: New file.
63645
63646         * modules/unistr/u8-strcspn: New file.
63647         * modules/unistr/u16-strcspn: New file.
63648         * modules/unistr/u32-strcspn: New file.
63649         * lib/unistr/u8-strcspn.c: New file.
63650         * lib/unistr/u16-strcspn.c: New file.
63651         * lib/unistr/u32-strcspn.c: New file.
63652         * lib/unistr/u-strcspn.h: New file.
63653
63654         * modules/unistr/u8-strdup: New file.
63655         * modules/unistr/u16-strdup: New file.
63656         * modules/unistr/u32-strdup: New file.
63657         * lib/unistr/u8-strdup.c: New file.
63658         * lib/unistr/u16-strdup.c: New file.
63659         * lib/unistr/u32-strdup.c: New file.
63660         * lib/unistr/u-strdup.h: New file.
63661
63662         * modules/unistr/u8-strlen: New file.
63663         * modules/unistr/u16-strlen: New file.
63664         * modules/unistr/u32-strlen: New file.
63665         * lib/unistr/u8-strlen.c: New file.
63666         * lib/unistr/u16-strlen.c: New file.
63667         * lib/unistr/u32-strlen.c: New file.
63668         * lib/unistr/u-strlen.h: New file.
63669
63670         * modules/unistr/u8-strmblen: New file.
63671         * modules/unistr/u16-strmblen: New file.
63672         * modules/unistr/u32-strmblen: New file.
63673         * lib/unistr/u8-strmblen.c: New file.
63674         * lib/unistr/u16-strmblen.c: New file.
63675         * lib/unistr/u32-strmblen.c: New file.
63676
63677         * modules/unistr/u8-strmbtouc: New file.
63678         * modules/unistr/u16-strmbtouc: New file.
63679         * modules/unistr/u32-strmbtouc: New file.
63680         * lib/unistr/u8-strmbtouc.c: New file.
63681         * lib/unistr/u16-strmbtouc.c: New file.
63682         * lib/unistr/u32-strmbtouc.c: New file.
63683
63684         * modules/unistr/u8-strncat: New file.
63685         * modules/unistr/u16-strncat: New file.
63686         * modules/unistr/u32-strncat: New file.
63687         * lib/unistr/u8-strncat.c: New file.
63688         * lib/unistr/u16-strncat.c: New file.
63689         * lib/unistr/u32-strncat.c: New file.
63690         * lib/unistr/u-strncat.h: New file.
63691
63692         * modules/unistr/u8-strncmp: New file.
63693         * modules/unistr/u16-strncmp: New file.
63694         * modules/unistr/u32-strncmp: New file.
63695         * lib/unistr/u8-strncmp.c: New file.
63696         * lib/unistr/u16-strncmp.c: New file.
63697         * lib/unistr/u32-strncmp.c: New file.
63698
63699         * modules/unistr/u8-strncpy: New file.
63700         * modules/unistr/u16-strncpy: New file.
63701         * modules/unistr/u32-strncpy: New file.
63702         * lib/unistr/u8-strncpy.c: New file.
63703         * lib/unistr/u16-strncpy.c: New file.
63704         * lib/unistr/u32-strncpy.c: New file.
63705         * lib/unistr/u-strncpy.h: New file.
63706
63707         * modules/unistr/u8-strnlen: New file.
63708         * modules/unistr/u16-strnlen: New file.
63709         * modules/unistr/u32-strnlen: New file.
63710         * lib/unistr/u8-strnlen.c: New file.
63711         * lib/unistr/u16-strnlen.c: New file.
63712         * lib/unistr/u32-strnlen.c: New file.
63713         * lib/unistr/u-strnlen.h: New file.
63714
63715         * modules/unistr/u8-strpbrk: New file.
63716         * modules/unistr/u16-strpbrk: New file.
63717         * modules/unistr/u32-strpbrk: New file.
63718         * lib/unistr/u8-strpbrk.c: New file.
63719         * lib/unistr/u16-strpbrk.c: New file.
63720         * lib/unistr/u32-strpbrk.c: New file.
63721         * lib/unistr/u-strpbrk.h: New file.
63722
63723         * modules/unistr/u8-strrchr: New file.
63724         * modules/unistr/u16-strrchr: New file.
63725         * modules/unistr/u32-strrchr: New file.
63726         * lib/unistr/u8-strrchr.c: New file.
63727         * lib/unistr/u16-strrchr.c: New file.
63728         * lib/unistr/u32-strrchr.c: New file.
63729
63730         * modules/unistr/u8-strspn: New file.
63731         * modules/unistr/u16-strspn: New file.
63732         * modules/unistr/u32-strspn: New file.
63733         * lib/unistr/u8-strspn.c: New file.
63734         * lib/unistr/u16-strspn.c: New file.
63735         * lib/unistr/u32-strspn.c: New file.
63736         * lib/unistr/u-strspn.h: New file.
63737
63738         * modules/unistr/u8-strstr: New file.
63739         * modules/unistr/u16-strstr: New file.
63740         * modules/unistr/u32-strstr: New file.
63741         * lib/unistr/u8-strstr.c: New file.
63742         * lib/unistr/u16-strstr.c: New file.
63743         * lib/unistr/u32-strstr.c: New file.
63744         * lib/unistr/u-strstr.h: New file.
63745
63746         * modules/unistr/u8-strtok: New file.
63747         * modules/unistr/u16-strtok: New file.
63748         * modules/unistr/u32-strtok: New file.
63749         * lib/unistr/u8-strtok.c: New file.
63750         * lib/unistr/u16-strtok.c: New file.
63751         * lib/unistr/u32-strtok.c: New file.
63752         * lib/unistr/u-strtok.h: New file.
63753
63754         * modules/unistr/u8-uctomb: New file.
63755         * modules/unistr/u16-uctomb: New file.
63756         * modules/unistr/u32-uctomb: New file.
63757         * lib/unistr/u8-uctomb.c: New file.
63758         * lib/unistr/u16-uctomb.c: New file.
63759         * lib/unistr/u32-uctomb.c: New file.
63760
63761         * MODULES.html.sh (Unicode string functions): Add the new modules.
63762
63763 2007-01-08  Bruno Haible  <bruno@clisp.org>
63764
63765         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63766         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63767         subdirectories.
63768
63769 2007-01-08  Karl Berry  <karl@gnu.org>
63770
63771         * doc/error.texi: mention that main() fns must set program_name
63772         when progname is used.
63773
63774 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63777         WCTYPE_H is empty, for the benefit of builds from non-distclean
63778         directories.  Problem reported by Eric Blake in
63779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63780
63781 2007-01-08  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63784         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63785         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63786         PROVIDE_CANONICALIZE_FILENAME_MODE.
63787         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63788
63789 2007-01-08  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63792         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63793         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63794         * lib/fts.c: Likewise.
63795         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63796
63797 2006-12-25  Bruno Haible  <bruno@clisp.org>
63798
63799         * modules/utf8-ucs4-safe: New file.
63800         * lib/utf8-ucs4-safe.h: New file.
63801         * lib/unistr/utf8-ucs4-safe.c: New file.
63802
63803         * modules/utf16-ucs4-safe: New file.
63804         * lib/utf16-ucs4-safe.h: New file.
63805         * lib/unistr/utf16-ucs4-safe.c: New file.
63806
63807         * MODULES.html.sh (Unicode string functions): Add the new modules.
63808
63809 2007-01-08  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63812         (Depends-on): Add unitypes.
63813         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63814         (u8_mbtouc_aux): Move out to separate file.
63815         (u8_mbtouc): Use ucs4_t, uint8_t types.
63816         * lib/unistr/utf8-ucs4.c: New file.
63817
63818         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63819         (Depends-on): Add unitypes.
63820         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63821         (u16_mbtouc_aux): Move out to separate file.
63822         (u16_mbtouc): Use ucs4_t, uint16_t types.
63823         * lib/unistr/utf16-ucs4.c: New file.
63824
63825         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63826         (Depends-on): Add unitypes.
63827         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63828         (u8_uctomb_aux): Move out to separate file.
63829         (u8_uctomb): Use ucs4_t, uint8_t types.
63830         * lib/unistr/ucs4-utf8.c: New file.
63831
63832         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63833         (Depends-on): Add unitypes.
63834         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63835         (u16_uctomb_aux): Move out to separate file.
63836         (u16_uctomb): Use ucs4_t, uint16_t types.
63837         * lib/unistr/ucs4-utf16.c: New file.
63838
63839 2006-12-25  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/unitypes: New file.
63842         * lib/unitypes.h: New file.
63843         * MODULES.html.sh (func_all_modules): New section "Unicode string
63844         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63845         this section. Add unitypes.
63846
63847 2007-01-08  Bruno Haible  <bruno@clisp.org>
63848
63849         Avoid variable names that conflict with those from libtool.
63850         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63851         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63852         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63853         library_names_spec to acl_library_names_spec, hardcode_* to
63854         acl_hardcode_*.
63855         Reported by Ralf Wildenhues.
63856
63857 2007-01-08  Bruno Haible  <bruno@clisp.org>
63858
63859         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63860         definition.
63861         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63862         definition.
63863         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63864         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63865         definition.
63866         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63867         definition.
63868         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63869         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63870         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63871         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63872         definition.
63873         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63874         definition.
63875         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63876         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63877         GC_USE_<algorithm>.
63878         * lib/gc-libgcrypt.c: Likewise.
63879         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63880         * modules/gc-arctwo (configure.ac): Likewise.
63881         * modules/gc-des (configure.ac): Likewise.
63882         * modules/gc-hmac-md5 (configure.ac): Likewise.
63883         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63884         * modules/gc-md2 (configure.ac): Likewise.
63885         * modules/gc-md4 (configure.ac): Likewise.
63886         * modules/gc-md5 (configure.ac): Likewise.
63887         * modules/gc-random (configure.ac): Likewise.
63888         * modules/gc-rijndael (configure.ac): Likewise.
63889         * modules/gc-sha1 (configure.ac): Likewise.
63890
63891 2007-01-08  Bruno Haible  <bruno@clisp.org>
63892
63893         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63894         macro definition.
63895         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63896         definition.
63897         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63898         definition.
63899         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63900         * modules/fcntl-safer (configure.ac): Likewise.
63901         * modules/fopen-safer (configure.ac): Likewise.
63902         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63903         GNULIB_FWRITEERROR macro definition.
63904
63905 2007-01-08  Bruno Haible  <bruno@clisp.org>
63906
63907         * m4/gnulib-common.m4: New file.
63908         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63909         (func_get_filelist): Add m4/gnulib-common.m4.
63910
63911 2007-01-08  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63914         command.
63915
63916 2007-01-08  Jim Meyering  <jim@meyering.net>
63917
63918         Use a more robust test for a "can't happen" condition.
63919         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63920         narrowed the st_size value.  Presuming the "can't happen" condition
63921         is true, that narrowing could conceivably convert an invalid st_size
63922         value into a valid one.  Instead, use a change based on Matthew
63923         Woehlke's original patch.
63924
63925         Slight readability improvement: use an assert-like macro
63926         in place of literal "abort ()" uses.
63927         * lib/fts.c (fts_assert): Define.
63928         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63929         Use this macro instead of a bare 'abort'.
63930
63931 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63934         simply work around them.
63935         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63936         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63937         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63938         declaring.
63939         Don't bother to define as macros, since the standard doesn't require it.
63940         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63941         longer worry about IRIX 5.3.
63942         (HAVE_WCTYPE_CTMP_BUG): Remove.
63943
63944 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63947         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63948         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63949         Problems reported by Georg Schwarz for IRIX 5.3.
63950
63951         * gnulib-tool (autoconf_minversion): Take the maximum version number
63952         found, not the minimum.  Problem reported by James Youngman.
63953
63954 2007-01-03  Karl Berry  <karl@gnu.org>
63955
63956         * doc/error.texi: new file, explaining interaction with progname.
63957         * doc/gnulib.texi: include it.  Update copyright.
63958
63959 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63960
63961         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63962         AC_CANONICAL_HOST, to improve autobuild outputs.
63963
63964 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63965             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63966
63967         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63968         sockets, server sockets, and other file descriptors.  Count errors
63969         to compute the return value.  Reorder the code a bit to be easier
63970         to follow.  Don't set event bits that were not requested (except
63971         POLLERR and POLLHUP).
63972
63973 2007-01-01  Bruno Haible  <bruno@clisp.org>
63974
63975         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63976
63977 2007-01-03  Jim Meyering  <jim@meyering.net>
63978
63979         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63980
63981 2007-01-02  Bruno Haible  <bruno@clisp.org>
63982
63983         * modules/settime (Include): Require timespec.h.
63984         * modules/nanosleep (Include): Likewise.
63985
63986 2007-01-01  Bruno Haible  <bruno@clisp.org>
63987
63988         * gnulib-tool (func_emit_copyright_notice): Bump year.
63989         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63990
63991 2007-01-01  Bruno Haible  <bruno@clisp.org>
63992
63993         Improve support for OpenBSD.
63994         * build-aux/config.rpath (libname_spec): Export.
63995         (library_names_spec): New variable. Export.
63996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63997         library_names_spec from the config.rpath output. Locate shared library
63998         through the name pattern in library_names_spec.
63999
64000 2007-01-01  Eric Blake  <ebb9@byu.net>
64001
64002         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64003
64004 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64007         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64008         assume the C locale, and avoid an "eval" that could cause trouble.
64009         Problem with SORT reported by Bob Proulx.
64010
64011         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64012         Define.  Trivial patch from Henning Nielsen Lund, originally
64013         sent to bug-grep@gnu.org today.
64014
64015 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64016
64017         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64018         struct stat.  Problem reported by Henning Nielsen Lund.
64019         * lib/acl.c: Include acl.h first, to check interface.  Don't
64020         bother to include sys/types.h and sys/stat.h again.
64021
64022 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         Import the following change from libc; problem reported by
64025         Sven Verdoolaege.
64026
64027         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64028
64029         [BZ #1373]
64030         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64031
64032 2006-12-28  Jim Meyering  <jim@meyering.net>
64033
64034         * build-aux/announce-gen: Do not assume that the package
64035         builds any of tar.gz, tar.bz2, and .xdelta files.
64036         Suggestion from Simon Josefsson.
64037
64038 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64039
64040         * modules/announce-gen: New file.
64041
64042 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64045         handles its gotchas now.
64046         * lib/mbswidth.c: Likewise.
64047         * lib/wcwidth.h: Likewise.
64048         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64049         and iswcntrl; the wctype module does this stuff now.
64050         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64052         * modules/mbchar (Depends-on): Add wctype.
64053         * modules/mbswidth (Depends-on): Likewise.
64054         * modules/wcwidth (Depends-on): Likewise.
64055
64056 2006-12-27  Eric Blake  <ebb9@byu.net>
64057
64058         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64059         module uses more than what <wctype.h> is required to provide.
64060
64061 2006-12-26  Eric Blake  <ebb9@byu.net>
64062
64063         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64064
64065 2006-12-26  Eric Blake  <ebb9@byu.net>
64066
64067         * modules/absolute-header: New module.
64068         * modules/fcntl (Depends-on): Depend on it.
64069         * modules/inttypes (Depends-on): Likewise.
64070         * modules/stdint (Depends-on): Likewise.
64071         * modules/sys_stat (Depends-on): Likewise.
64072         * modules/wctype (Depends-on): Likewise.
64073         * MODULES.html.sh (Support for building libraries and
64074         executables): Document it.
64075
64076 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * gnulib-tool (SED): Remove, undoing previous change.
64079         The problem was that it broke coreutils on Solaris, because
64080         "sed --posix" leaked into a makefile.
64081         (sed): New alias, if 'alias' and GNU sed.
64082
64083 2006-12-24  Jim Meyering  <jim@meyering.net>
64084
64085         Work around an fchownat bug in glibc-2.4:
64086         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64087         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64088         in spite of the -P option.
64089         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64090         New macros.
64091         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64092         * modules/openat (Files): Add lib/fchownat.c.
64093         * lib/openat.c (fchownat): Don't define here.  Move to...
64094         * lib/fchownat.c: ...this new file.
64095
64096 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         Fix bug reported by Bruno Haible in
64099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64100         where quotearg.c didn't compile on Mac OS X 10.2 because it
64101         lacks <wchar.h> and wint_t.
64102         * lib/wctype_.h (__wctype_wint_t): New type.
64103         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64105         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64106         Arg is now of type __wctype_wint_t, not wint_t.
64107         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64108         substitute HAVE_WINT_T.
64109         * modules/wctype (Files): Add m4/wint_t.m4.
64110         (wctype.h): Substitute HAVE_WINT_T.
64111
64112 2006-12-23  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64115
64116 2006-12-23  Bruno Haible  <bruno@clisp.org>
64117
64118         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64119         S_ISLNK.
64120         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64121         mingw.
64122
64123 2006-12-22  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/copy-file.c: Include acl.h.
64126         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64127         Close the file descriptors only after being done with copy_acl.
64128         * modules/copy-file (Depends-on): Add acl.
64129
64130 2006-12-22  Bruno Haible  <bruno@clisp.org>
64131
64132         * gnulib-tool (SED): New variable.
64133         Use $SED instead of sed everywhere.
64134
64135 2006-12-22  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/no-c++: New file.
64138         * m4/no-c++.m4: New file.
64139         * MODULES.html.sh (Support for building libraries and executables):
64140         Add no-c++.
64141
64142 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64145         Include <limits.h>, and use its INT_MAX to rewrite the
64146         j loop so that it does not overflow 'int'.  Problem reported by
64147         Ralf Wildenhues in
64148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64149         Play it safe by shifting left by 1 rather than multiplying by 2,
64150         as GCC is less likely to optimize this away when the value
64151         is signed (when it assumes overflow leads to undefined behavior).
64152         Also, don't assume time_t uses two's complement.
64153
64154 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         * MODULES.html.sh: New module wctype.
64157         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64158         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64159         <wctype.h>, since the new wctype module should fix this.
64160         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64161         the wctype module should arrange for it.
64162         * lib/regex_internal.h: Likewise.
64163         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64164         since the wctype module should handle this now.
64165         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64166         * modules/fnmatch (Depends-on): Add wctype.
64167         * modules/quotearg (Depends-on): Likewise.
64168         * modules/regex (Depends-on): Likewise.
64169
64170 2006-12-19  Bruno Haible  <bruno@clisp.org>
64171
64172         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64173         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64174
64175 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64176
64177         * modules/savewd (Depends-on): Fix dependency on fcntl.
64178
64179 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64182         conforms to C99, rather than relying on the user's environment
64183         setting of STDINT_H.
64184
64185 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64186         and Eric Blake  <ebb9@byu.net>
64187
64188         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64189         This is more consistent with the other defines here.
64190         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64191         Port to z/OS.  Problem reported by Paul Gilmartin.
64192         Change local vars to use gl_ prefix rather than ac_.
64193         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64194         with other defines.
64195         * modules/double-slash-root: New module.
64196         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64197         (Depends-on): Add double-slash-root.
64198         * MODULES.html.sh (File system functions): Mention new module.
64199
64200 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64203         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64204         This is for the benefit of gzip, which doesn't do i18n.
64205
64206 2006-12-12  Jim Meyering  <jim@meyering.net>
64207
64208         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64209         Reported by Andreas Schwab <schwab@suse.de>.
64210
64211 2006-12-12  Bruno Haible  <bruno@clisp.org>
64212
64213         Merge these changes.
64214         2006-09-05  Bruno Haible  <bruno@clisp.org>
64215         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64216         iconv_alloc succeeded.
64217         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64218         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64219         test for " && dest " at the end - dest is always != NULL there. Call
64220         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64221         with 2xNULL arguments, also to flush the state storage. Handle the
64222         IRIX iconv behaviour. Realloc the final result, to throw away unused
64223         memory.
64224
64225 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64228         and fchmodat unconditionally, since glibc 2.4 has them.
64229         Problem reported by Arkadiusz Miskiewicz.
64230
64231 2006-12-10  Bruno Haible  <bruno@clisp.org>
64232
64233         * gnulib-tool (func_import): Show the include files only for those
64234         modules that are copied and specified.
64235         Reported by Karl Berry.
64236
64237 2006-12-08  Jim Meyering  <jim@meyering.net>
64238
64239         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64240         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64241
64242         * build-aux/announce-gen: Add two new options, both optional:
64243         --bootstrap-tools=TOOL_LIST
64244               a comma-separated list of tools, e.g.,
64245               autoconf,automake,bison,gnulib
64246         --gnulib-snapshot-date=DATE
64247               if gnulib is in the bootstrap tool list,
64248               then report this as the snapshot date.
64249               If not specified, use the current date/time.
64250               If you specify a date here, be sure it's UTC.
64251
64252 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64253
64254         * tests/test-argp-2.sh: Fix test to match actual output.
64255         (func_compare): Fix sed script to be portable.
64256
64257 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64258
64259         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64260         workaround for this case.  It is not autoconfigured now; offhand
64261         it's hard to see how to autoconfigure it.
64262
64263 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64266         a directory that is about to be chowned.  Such a directory's
64267         initial file permissions should permit the owner only and this
64268         should not be changed until after the chown, since the group and
64269         other bits would be incorrect if they granted permission before
64270         the chown.
64271
64272         Fix porting problem for iswctype reported by Georg Schwarz in:
64273         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64274         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64275         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64277         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64278
64279 2006-12-03  Jim Meyering  <jim@meyering.net>
64280
64281         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64282         p->fts_statp may not yet be defined.
64283         (fts_read): Instead, set it in the caller, once p->fts_statp is
64284         sure to be defined, and corresponds to a top-level directory.
64285         This bug made du -x fail.  Here's the coreutils test case:
64286         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64287         Reported by Mike Frysinger.
64288
64289 2006-12-01  Jim Meyering  <jim@meyering.net>
64290
64291         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64292         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64293         Reported by Simon Josefsson.
64294
64295 2006-11-30  Jim Meyering  <jim@meyering.net>
64296
64297         * m4/warning.m4: Use the all-permissive copyright notice
64298         recommended by RMS (rather than LGPL).
64299         * m4/vararrays.m4: Likewise.
64300         * m4/flexmember.m4: Likewise.
64301
64302 2006-11-29  Bruno Haible  <bruno@clisp.org>
64303
64304         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64305         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64306         using +=.
64307         Reported by Simon Josefsson <simon@josefsson.org>.
64308
64309 2006-11-28  James Youngman <jay@gnu.org>
64310
64311         * README: Advise users that they might find the bug-gnulib@gnu.org
64312         and autotools-announce@gnu.org mailing lists useful.
64313
64314 2006-11-28  Bruno Haible  <bruno@clisp.org>
64315
64316         * m4/ptrdiff_max.m4: Remove file.
64317
64318 2006-11-21  Bruno Haible  <bruno@clisp.org>
64319
64320         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64321         _AC_COMPUTE_INT.
64322         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64323         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64324         _AC_COMPUTE_INT.
64325         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64326         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64327         _AC_COMPUTE_INT.
64328         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64329
64330 2006-11-28  Jim Meyering  <jim@meyering.net>
64331
64332         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64333         warning from "gcc -Wshadow" about shadowing the builtin.
64334
64335 2006-11-27  Bruno Haible  <bruno@clisp.org>
64336
64337         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64338         _AC_COMPUTE_INT.
64339         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64340
64341 2006-11-27  Bruno Haible  <bruno@clisp.org>
64342             Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64345
64346 2006-11-26  Bruno Haible  <bruno@clisp.org>
64347
64348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64349         noinst_LTLIBRARIES.
64350
64351 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64352             Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64355         if compiling with "gcc -ansi".
64356
64357 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         Fix some incompatibilities with gcc -ansi -pedantic.
64360         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64361         if compiling pedantically with GCC, unless it's C99 or later.
64362         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64363         it mishandles gcc -ansi -pedantic as well.
64364         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64365         if gcc -pedantic.
64366         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64367         initializers for struct if -pedantic, unless it's C99 or later.
64368
64369 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64370
64371         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64372         Don't close an fd more than once. Identical atimes indicate
64373         success, not failure.
64374
64375 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64376
64377         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64378
64379 2006-11-23  Jim Meyering  <jim@meyering.net>
64380
64381         * build-aux/announce-gen: New file.  From coreutils.
64382
64383 2006-11-22  Jim Meyering  <jim@meyering.net>
64384
64385         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64386         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64387         (fts_read): Use a temporary to narrow the overused st_size member
64388         before using it in a switch statement.  Reported by Matthew Woehlke.
64389
64390         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64391         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64392
64393 2006-11-20  Bruno Haible  <bruno@clisp.org>
64394
64395         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64396         changequote instead of pairs of brackets.
64397         Reported by Andreas Schwab <schwab@suse.de>.
64398
64399 2006-11-21  Jim Meyering  <jim@meyering.net>
64400
64401         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64402         so as to remain compatible with older compilers.
64403         Patch from Michael Deutschmann.
64404
64405 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * MODULES.html.sh (File system functions): Add openat.
64408
64409         * lib/openat.h (rpl_fstatat): New macro, if
64410         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64411         (fstatat): Define to rpl_fstatat under the same conditions,
64412         unless COMPILING_FSTATAT.
64413         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64414         seems to have the bug.
64415         * lib/fstatat.c: New file.
64416         * modules/openat (Files): Add it.
64417
64418 2006-11-20  Bruno Haible  <bruno@clisp.org>
64419
64420         * Makefile: New file.
64421
64422 2006-11-20  Jim Meyering  <jim@meyering.net>
64423
64424         The beginnings of syntax-related checks for gnulib.
64425         * lib/Makefile: New file.
64426         * lib/t-idcache: New script.  Ensure that the two halves of
64427         idcache.c stay in sync.
64428
64429         * lib/idcache.c: Adjust comments in user- and group- portions to
64430         be more accurate, and to be consistent with one another.
64431
64432 2006-11-20  Jim Meyering  <jim@meyering.net>
64433
64434         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64435         continue using the flexible array member (thus, this module performs
64436         half as many malloc calls), with the addition that...
64437         (getgroup, getuser): Consistently record a non-match via an empty
64438         "name" string, and map an empty string match to a NULL return value.
64439         * modules/idcache (Depends-on): Re-add flexmember.
64440
64441         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64442         (getuidbyname, getgroup, getgidbyname): Likewise.
64443
64444         Use cleaner syntax: NULL rather than 0.
64445         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64446
64447 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64448
64449         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64450         It mishandled the case where the group was missing.
64451         Problem reported by Greg Schafer.
64452         * modules/idcache: Likewise.
64453
64454 2006-11-18  Jim Meyering  <jim@meyering.net>
64455
64456         * check-module (%exempt_header): Add exception for some
64457         conditionally-included headers.
64458
64459         * modules/i-ring (Depends-on): Add verify.
64460         (License): Change to LGPL.
64461
64462 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64465         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64466         and inttostr.h.  Use snprintf rather than uinttostr, so that
64467         LGPLed code doesn't depend on GPLed.
64468
64469 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * modules/inline (License): Change from GPL to LGPL.
64472
64473 2006-11-17  Jim Meyering  <jim@meyering.net>
64474
64475         * modules/d-type (License): Switch to LGPL.
64476
64477 2006-11-15  Bruno Haible  <bruno@clisp.org>
64478
64479         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64480
64481 2006-11-15  Eric Blake  <ebb9@byu.net>
64482
64483         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64484         the module dependency.
64485
64486 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64487             Bruno Haible  <bruno@clisp.org>
64488
64489         * gnulib-tool (func_create_testdir): Add license consistency check.
64490
64491 2006-11-15  Eric Blake  <ebb9@byu.net>
64492
64493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64494         random "(cached)" in configure output.
64495
64496 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64497
64498         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64499         test for conforming inttypes.h is both announced and cached.
64500
64501         * MODULES.html.sh (seen_modules, seen_files): New variables.
64502         (func_module): Rewrite to use a few less gnulib-tool and sed
64503         invocations.  Avoid a couple of quadratic algorithms for ...
64504         (missed_modules, missed_files): ... these, with ...
64505         (func_append, func_tmpdir): ... these new functions, from
64506         gnulib-tool.  Analogously, install traps for cleanup.
64507
64508         * tests/test-gc.c (main): Remove unused variables.
64509         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64510
64511 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * modules/inttostr (License): Change to LGPL.
64514
64515 2006-11-14  Eric Blake  <ebb9@byu.net>
64516
64517         * modules/tempname (License): Change to LGPL.
64518
64519 2006-11-14  Eric Blake  <ebb9@byu.net>
64520
64521         * doc/functions.texi (Function Portability): *printf functions on
64522         Cygwin now understand all POSIX size specifiers.
64523
64524 2006-11-14  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/c-ctype (License): Change to LGPL.
64527
64528 2006-11-12  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64531         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64532         for GNOME libraries, for which the include files are installed in
64533         subdirectories of $prefix/include.
64534
64535 2006-11-12  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/lib-link.m4: Require at least autoconf-2.54.
64538         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64539         name to underscores for the --with option.
64540
64541 2006-11-13  Bruno Haible  <bruno@clisp.org>
64542
64543         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64544         the tests directory.
64545         Reported by Ralf Wildenhues.
64546
64547 2006-11-13  Bruno Haible  <bruno@clisp.org>
64548
64549         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64550         (func_emit_initmacro_end): Undo the override here.
64551         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64552         Works around the famous automake error in coreutils.
64553
64554 2006-11-13  Eric Blake  <ebb9@byu.net>
64555
64556         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64557         element, not its node.
64558
64559 2006-11-12  Bruno Haible  <bruno@clisp.org>
64560
64561         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64562         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64563
64564 2006-11-12  Bruno Haible  <bruno@clisp.org>
64565
64566         * gnulib-tool: New option --local-symlink.
64567         (func_usage): Document it.
64568         (lsymbolic): New variable.
64569         (func_import, func_create_testdir): If --symlink was not specified,
64570         test whether --local-symlink was specified and the file comes from
64571         the local_gnulib_dir.
64572
64573 2006-11-12  Bruno Haible  <bruno@clisp.org>
64574
64575         * gnulib-tool (func_ln): New function.
64576         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64577
64578 2006-11-12  Bruno Haible  <bruno@clisp.org>
64579
64580         Finish support for source files in subdirectories.
64581         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64582         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64583         AUTOMAKE_OPTIONS.
64584         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64585
64586 2006-11-12  Bruno Haible  <bruno@clisp.org>
64587
64588         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64589         EXTRA_lib_SOURCES augmentation.
64590         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64591
64592 2006-11-12  Jim Meyering  <jim@meyering.net>
64593
64594         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64595         file descriptors.  This also averts a failure on systems with
64596         native openat support when a traversed directory lacks "x" access.
64597         * lib/fts_.h: Include "i-ring.h"
64598         (struct FTS) [fts_fd_ring]: New member.
64599         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64600         (FCHDIR): Add parentheses.
64601         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64602         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64603         When descending, rather than simply closing the previous
64604         fts_cwd_fd value, push that file descriptor onto the ring.
64605         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64606         (fts_open): Initialize the new fd_ring member.
64607         (fts_close): Clear the ring.
64608         (fts_safe_changedir): When possible, use our new fd_ring to skip
64609         the diropen and fstat and dev/ino comparison that would normally
64610         accompany a virtual `chdir ("..")'.
64611
64612         * modules/fts (Depends-on): Add i-ring.
64613         * modules/i-ring: New module.
64614         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64615         * m4/i-ring.m4: New file.
64616
64617 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64618
64619         * gnulib-tool (func_create_testdir): Fix replacement of
64620         `build-aux' in configure.ac.  Run autotools in gltests
64621         subdirectory.
64622         (func_create_testdir, func_create_megatestdir, test): There is
64623         no need for '--force' in most autotool invocations in a new
64624         tree.  Actually fail the whole test if any of the tools, or the
64625         configure or make stages fail.
64626
64627         Sync from Automake.
64628         * build-aux/gnupload: Revert last change.  Add pointer to upload
64629         instructions of the GNU Maintenance Instructions.
64630         Suggestion by Karl Berry.
64631
64632 2006-11-10  Jim Meyering  <jim@meyering.net>
64633
64634         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64635
64636 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64637
64638         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64639         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64640         (bind_textdomain_codeset) [! ENABLE_NLS]:
64641         Evaluate all the arguments.  That way, callers get compatible behavior
64642         if the arguments have side effects.  Also, it avoids some GCC
64643         diagnostics in some cases; Joel E. Denny reported problems when Bison
64644         was configured with --enable-gcc-warnigs.
64645
64646 2006-11-10  Jim Meyering  <jim@meyering.net>
64647
64648         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64649         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64650         account.
64651
64652 2006-11-10  Jim Meyering  <jim@meyering.net>
64653
64654         * modules/inline: New file/module.
64655         * modules/xalloc (Files): Remove m4/inline.m4.
64656         (Depends-on): Add inline, instead.
64657         * modules/oset: Likewise.
64658         * modules/list: Likewise.
64659
64660 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64663         Problem reported by Matthew Woehlke.
64664
64665 2006-11-09  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/tempname.c (gen_tempname): Remove variant that invokes
64668         __gen_tempname.
64669         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64670         __gen_tempname.
64671
64672 2006-11-08  Bruno Haible  <bruno@clisp.org>
64673
64674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64675         to 'yes' instead of 'cross-compiling'.
64676
64677 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/quotearg.h (quotearg_free): New decl.
64680         * lib/quotearg.c (quotearg_free): New function.
64681         (slot0, nslots, slotvec0, slotvec):
64682         Now file-scope so that quotearg_free can get at them.
64683
64684 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64685
64686         Sync from Automake.
64687         * build-aux/gnupload: Add missing 'gnu' to example URL.
64688         Report by Karl Berry.
64689
64690 2006-11-08  Bruno Haible  <bruno@clisp.org>
64691
64692         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64693         Suggested by Paul Eggert.
64694
64695 2006-11-08  Jim Meyering  <jim@meyering.net>
64696
64697         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64698         It's already included if !_LIBC.
64699         (fts_safe_changedir): Add a comment.
64700
64701 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64704         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64705         Matthew Woehlke.
64706
64707         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64708         definitions up, to avoid colliding with change below.
64709         (static_inline) [HAVE_INLINE]: New macro.
64710         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64711         Provide extern decls when !HAVE_INLINE.  Do not define unless
64712         static_inline is defined, either by us or by xmalloc.c.  Use
64713         static_inline rather than static inline.
64714         (XCALLOC): Optimize sizeof(T) = 1 case.
64715         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64716
64717 2006-11-07  Bruno Haible  <bruno@clisp.org>
64718
64719         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64720         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64721         AC_C_INLINE.
64722         * modules/xalloc (Files): Add m4/inline.m4.
64723
64724 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64725
64726         * README: Fix typo.
64727         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64728         (Miscellanous Notes): ...from this.
64729
64730 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64731
64732         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64733         Mention that offsetof should be used instead of sizeof.
64734         From Bruno Haible.
64735
64736 2006-11-07  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64739
64740 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64743         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64744         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64745         (gl_tree_add_before, gl_tree_add_after):
64746         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64747         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64748         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64749         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64750         (gl_linked_add_after, gl_linked_add_at): Likewise.
64751         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64752         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64753         (gl_tree_add_before, gl_tree_add_after): Likewise.
64754         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64755         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64756         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64757
64758 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64759
64760         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64761
64762 2006-11-06  Bruno Haible  <bruno@clisp.org>
64763
64764         * m4/inline.m4: New file.
64765         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64766         * modules/list (Files): Add m4/inline.m4.
64767         * modules/oset (Files): Likewise.
64768
64769 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         * lib/idcache.c: Include <stddef.h>, for offsetof.
64772         (struct userid.name): Change from char * to a flexible array member.
64773         All uses changed.
64774         * modules/idcache (Depends-on): Add flexmember.
64775
64776         * MODULES.html.sh (Core language properties): New module flexmember.
64777         * modules/flexmember, m4/flexmember.m4: New files.
64778
64779         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64780         inline functions that are identical with the old xnmalloc_inline,
64781         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64782         that we can avoid some unnecessary integer multiplications and
64783         divisions in the common case where the element size is known at
64784         compile time.
64785         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64786         needed.
64787         (xnboundedmalloc): Remove.
64788         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64789         arguments, for consistency with rest of this header.
64790         (xcharalloc): Rewrite using XNMALLOC.
64791         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64792         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64793         versions have been moved to lib/xalloc.h and renamed to be the
64794         non-*_inline versions.
64795         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64796         and xnrealloc functions, since those functions are now inline and
64797         now call us.
64798         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64799         renaming described above.
64800         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64801         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64802         captures the dependency in AC_C_INLINE.
64803
64804         New module canonicalize-lgpl, proposed by Charles Wilson in
64805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64806         with a few small changes afterwards.
64807         * MODULES.html.sh (File system functions): New module
64808         canonicalize-lgpl.
64809         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64810         and canonicalize_file_name.
64811         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64812         * modules/canonicalize-lgpl: New files.
64813
64814 2006-11-05  Bruno Haible  <bruno@clisp.org>
64815
64816         * gnulib-tool (func_import, func_create_testdir): Create directories
64817         also for files in subdirectories of lib/.
64818
64819 2006-11-05  Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64822         ANSI C compliant.
64823
64824 2006-11-03  Bruno Haible  <bruno@clisp.org>
64825
64826         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64827         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64828         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64829         (xnboundedmalloc): New inline function.
64830         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64831         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64832         xmalloc.
64833         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64834         xmalloc.
64835         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64836         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64837         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64838         xmalloc.
64839         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64840         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64841         xmalloc.
64842         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64843         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64844         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64845         xmalloc.
64846         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64847         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64848         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64849         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64850         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64851         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64852         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64853
64854 2006-11-03  Bruno Haible  <bruno@clisp.org>
64855
64856         * lib/c-ctype.h [C++]: Define functions without name mangling.
64857         * lib/fwriteerror.h [C++]: Likewise.
64858         * lib/gcd.h [C++]: Likewise.
64859         * lib/linebreak.h [C++]: Likewise.
64860
64861 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64864         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64865         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64867         Check for functions and headers just once.
64868         Check for declaration of canonicalize_file_name.
64869         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64870
64871 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64872
64873         * gnulib-tool (func_import): Fix typo in actioncmd.
64874
64875 2006-11-02  Bruno Haible  <bruno@clisp.org>
64876
64877         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64878         newline sequence in the Makefile.am snippet as a space, like "make"
64879         does.
64880         Reported by Roger Persson <perrog@gmail.com>.
64881
64882 2006-11-01  Bruno Haible  <bruno@clisp.org>
64883
64884         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64885         already declared in <string.h>.
64886         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64887
64888 2006-11-01  Bruno Haible  <bruno@clisp.org>
64889
64890         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64891         * lib/strcase.h: Include <string.h>.
64892         (strcasecmp): Define to rpl_strcasecmp here.
64893
64894 2006-11-01  Bruno Haible  <bruno@clisp.org>
64895
64896         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64897
64898 2006-11-01  Eric Blake  <ebb9@byu.net>
64899
64900         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64901
64902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64903
64904 2006-10-29  Bruno Haible  <bruno@clisp.org>
64905
64906         Make it compile in C++ mode.
64907         * lib/full-write.c (full_rw): Add a cast.
64908
64909 2006-11-01  Bruno Haible  <bruno@clisp.org>
64910
64911         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64912         be POSIX compliant.
64913         Reported by Roger Persson <perrog@gmail.com>.
64914
64915 2006-11-01  Eric Blake  <ebb9@byu.net>
64916
64917         * lib/getopt_.h: Fix comments.
64918
64919 2006-10-31  Eric Blake  <ebb9@byu.net>
64920
64921         * modules/tmpdir (Depends-on): Add sys_stat.
64922         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64923         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64924         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64925         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64926         tempname.
64927
64928 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         Avoid some C++ diagnostics reported by Bruno Haible.
64931         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64932         xmalloc.
64933         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64934         (struct slotvec): Move to top level.
64935         (quotearg_n_options): Rewrite to avoid xmalloc.
64936         * lib/xalloc.h (xcharalloc): New function.
64937         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64938         [defined __cplusplus]: Add function template that provides result
64939         type propagation.  This part of the change is from Bruno Haible.
64940
64941 2006-10-29  Bruno Haible  <bruno@clisp.org>
64942
64943         Make it compile in C++ mode.
64944         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64945         * lib/strnlen1.c (strnlen1): Cast memchr result.
64946         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64947         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64948         (create_temp_dir): Rename local variable 'template'.
64949         (compile_csharp_using_sscli): Add cast.
64950         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64951         * lib/findprog.c (find_in_path): Likewise.
64952         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64953         * lib/wait-process.c (register_slave_subprocess): Likewise.
64954
64955 2006-10-22  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/tsearch: New file.
64958         * lib/tsearch.h: New file.
64959         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64960         * m4/tsearch.m4: New file.
64961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64962
64963 2006-10-29  Eric Blake  <ebb9@byu.net>
64964
64965         * lib/arcfour.c: Assume config.h.
64966         * lib/arctwo.c: Likewise.
64967         * lib/base64.c: Likewise.
64968         * lib/check-version.c: Likewise.
64969         * lib/crc.c: Likewise.
64970         * lib/des.c: Likewise.
64971         * lib/gc-gnulib.c: Likewise.
64972         * lib/gc-libgcrypt.c: Likewise.
64973         * lib/gc-pbkdf2-sha1.c: Likewise.
64974         * lib/getaddrinfo.c: Likewise.
64975         * lib/getdelim.c: Likewise.
64976         * lib/getline.c: Likewise.
64977         * lib/hmac-md5.c: Likewise.
64978         * lib/hmac-sha1.c: Likewise.
64979         * lib/iconvme.c: Likewise.
64980         * lib/md2.c: Likewise.
64981         * lib/md4.c: Likewise.
64982         * lib/memxor.c: Likewise.
64983         * lib/read-file.c: Likewise.
64984         * lib/readline.c: Likewise.
64985         * lib/rijndael-alg-fst.c: Likewise.
64986         * lib/rijndael-api-fst.c: Likewise.
64987         * lib/xgetdomainname.c: Likewise.
64988
64989 2006-10-28  Eric Blake  <ebb9@byu.net>
64990
64991         * lib/xstrndup.c: Assume config.h.
64992
64993 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64996         stat-macros.h is now for our own macros, whereas stat_h is for
64997         macros in the <sys/stat.h> name space.
64998         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64999         (STAT_MACROS_H): Remove.
65000         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65001         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65002         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65003         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65004         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65005         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65006         Move these macros to ...
65007         * lib/stat_.h: here.  Don't include stat-macros.h.
65008         * lib/canonicalize.c: Don't include stat-macros.h.
65009         * lib/chown.c: Likewise.
65010         * lib/euidaccess.c: Likewise.
65011         * lib/file-type.c: Likewise.
65012         * lib/filemode.c: Likewise.
65013         * lib/glob.c: Likewise.
65014         * lib/isapipe.c: Likewise.
65015         * lib/lchown.c: Likewise.
65016         * lib/lstat.c: Likewise.
65017         * lib/mkdir-p.c: Likewise.
65018         * lib/rmdir.c: Likewise.
65019         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65021         unless mkdir isn't declared, to speed up 'configure'.
65022         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65023         would define all the S_* symbols.
65024         * modules/canonicalize (Depends-on):
65025         Depend on sys_stat, not stat-macros.
65026         * modules/chown: Likewise.
65027         * modules/euidaccess: Likewise.
65028         * modules/filemode: Likewise.
65029         * modules/file-type: Likewise.
65030         * modules/glob: Likewise.
65031         * modules/isapipe: Likewise.
65032         * modules/lchown: Likewise.
65033         * modules/lstat: Likewise.
65034         * modules/mkancesdirs: Likewise.
65035         * modules/rmdir: Likewise.
65036         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65037         * modules/modechange: Likewise.
65038         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65039         (configure.ac): Remove gl_STAT_MACROS.
65040         * modules/sys_stat (Depends-on): Remove stat-macros.
65041
65042 2006-10-27  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/signed.m4: Remove file.
65045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65046         invocation.
65047         * modules/vasnprintf (Files): Remove m4/signed.m4.
65048
65049 2006-10-27  Bruno Haible  <bruno@clisp.org>
65050
65051         Update to GNU gettext 0.16.
65052         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65053         m4/inttypes-h.m4, m4/signed.m4.
65054         * m4/gettext.m4: Update to GNU gettext 0.16.
65055         * m4/intl.m4: New file, from GNU gettext.
65056         * m4/intldir.m4: New file, from GNU gettext.
65057         * config/srclist.txt: Update
65058
65059 2006-10-27  Eric Blake  <ebb9@byu.net>
65060
65061         * MODULES.html.sh: Document tempname.
65062         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65063         dependencies.
65064         (Files): Move lib/tempname.c...
65065         * modules/tempname: ...to this new module.
65066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65067         (gl_PREREQ_TEMPNAME): Move...
65068         * m4/tempname.m4: ...to this new file.
65069         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65070         * modules/sys_stat (Depends-on): Add stat-macros.
65071         * lib/stat_.h (includes): Pick up stat macros.
65072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65073         if stat macros are broken.
65074         * lib/tempname.c (includes): No need to include "stat-macros.h".
65075         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65076         (direxists, __path_search) [!_LIBC]: Don't compile these in
65077         gnulib; the tmpdir module covers that.
65078         * lib/tempname.h: New file.
65079
65080 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65081
65082         * COPYING: Explain how gnulib-tool converts licence headers.
65083         Almost all wording by Eric Blake.
65084
65085 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * lib/mbchar.h (is_basic_table): Make read-only.
65088         * lib/mbchar.c (is_basic_table): Likewise.
65089         Reported by John Darrington.
65090
65091 2006-10-25  Bruno Haible  <bruno@clisp.org>
65092
65093         * lib/progname.h (set_program_name): Undefine before defining.
65094
65095 2006-10-25  Bruno Haible  <bruno@clisp.org>
65096
65097         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65098         false for non-gcc C++ compilers.
65099         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65100
65101 2006-10-24  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65104         iconv implementations like Irix iconv.
65105
65106 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * modules/vararrays: New file.
65109         * m4/vararrays.m4: New file, taken from diffutils.
65110         * MODULES.html.sh: New module vararrays.
65111
65112 2006-10-24  Karl Berry  <karl@gnu.org>
65113
65114         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65115         Don't call GNU Unix.
65116
65117 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65118
65119         * users.txt: Add Libtool.
65120
65121         Sync from Libtool:
65122
65123         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65126         to gnulib's policy of including config.h unconditionally.
65127
65128 2006-10-24  Bruno Haible  <bruno@clisp.org>
65129
65130         * modules/wcwidth (Files): Add m4/wint_t.m4.
65131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65132         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65133
65134 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65137         to pacify GCC with some -W flags enabled.  Problem reported by
65138         Bruno Haible.
65139
65140 2006-10-24  Jim Meyering  <jim@meyering.net>
65141
65142         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65143         Reported by Karl Berry.
65144
65145 2006-10-23  Bruno Haible  <bruno@clisp.org>
65146
65147         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65148
65149 2006-10-24  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/gl_list.h: Use C comment style, not C++ comment style.
65152
65153 2006-10-23  Eric Blake  <ebb9@byu.net>
65154
65155         * lib/getaddrinfo.c (includes): Add missing include.
65156
65157 2006-10-23  Bruno Haible  <bruno@clisp.org>
65158             Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         Ability to rename obstack_free.
65161         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65162         obstack_free.
65163         (obstack_free): Invoke the __obstack_free macro.
65164         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65165
65166 2006-10-23  Bruno Haible  <bruno@clisp.org>
65167             Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65170         __argc, __argv from the declaration. (They are defined as macros on
65171         mingw.)
65172
65173 2006-10-22  Bruno Haible  <bruno@clisp.org>
65174
65175         * doc/gnulib-intro.texi: New file.
65176         * doc/gnulib.texi: Include it.
65177
65178 2006-10-21  Bruno Haible  <bruno@clisp.org>
65179
65180         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65181         "Introduction", "Miscellanous Notes", "Particular Modules".
65182
65183 2006-10-21  Bruno Haible  <bruno@clisp.org>
65184
65185         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65186         Change mostlyclean-local rule to avoid sh syntax error from bash
65187         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65188
65189 2006-10-23  Jim Meyering  <jim@meyering.net>
65190
65191         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65192         in place of snprintf.
65193
65194         * modules/inttostr (Files): Add lib/uinttostr.c.
65195         * lib/uinttostr.c (inttostr): New file/function.
65196         * lib/inttostr.h (uinttostr): Declare.
65197         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65198         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65199         Add uinttostr.
65200         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65201
65202 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/canonicalize.c (ELOOP): Define if not already defined.
65205         Problem reported by Bruno Haible in
65206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65207
65208 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65211         Problem reported by Perry Smith and Ville Laurikari.
65212
65213         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65214         uses.
65215
65216 2006-10-19  Bruno Haible  <bruno@clisp.org>
65217
65218         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65219         for mingw.
65220
65221 2006-10-19  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65224         Needed for mingw.
65225
65226 2006-10-19  Bruno Haible  <bruno@clisp.org>
65227
65228         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65229
65230 2006-10-19  Bruno Haible  <bruno@clisp.org>
65231
65232         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65233         it.
65234
65235 2006-10-19  Bruno Haible  <bruno@clisp.org>
65236
65237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65238         invocation.
65239
65240 2006-10-19  Bruno Haible  <bruno@clisp.org>
65241
65242         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65243         mountlist by default.
65244
65245 2006-10-16  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/c-strstr.c: Include c-strstr.h.
65248
65249 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65250
65251         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65252         in a slash.
65253
65254 2006-10-18  Bruno Haible  <bruno@clisp.org>
65255
65256         * lib/lock.h [C++]: Wrap definitions in extern "C".
65257
65258 2006-10-18  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65261         gl_LIBOBJS list.
65262
65263 2006-10-18  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65266
65267 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * lib/xstrtol.h: Include gettext.h.
65270         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65271         Problem reported by Eric Blake.
65272         * modules/xstrtol (Depends-on): Add gettext-h.
65273
65274 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65275
65276         * lib/strftime.c (advance): New macro.
65277         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65278         incomplete type, so you can't add 0 to it.  Problem and patch
65279         reported by Eelco Dolstra for dietlibc.
65280
65281 2006-10-18  Jim Meyering  <jim@meyering.net>
65282
65283         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65284         type for a local, and rename it: s/up/user_proc/.
65285
65286 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65287
65288         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65289         READ_UTMP_USER_PROCESS.
65290         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65291
65292 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65293
65294         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65295         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65296
65297 2006-10-17  Eric Blake  <ebb9@byu.net>
65298
65299         * lib/sigprocmask.c (sigprocmask): Fix typo.
65300
65301         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65302
65303         * modules/clean-temp (Makefile.am): Don't add to make output...
65304         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65305         config.h.
65306
65307 2006-10-17  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65310         differently if DEFAULT_TEXT_DOMAIN is set.
65311
65312 2006-10-16  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/clean-temp.c: Include fwriteerror.h.
65315
65316 2006-10-16  Bruno Haible  <bruno@clisp.org>
65317
65318         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65319
65320 2006-10-16  Bruno Haible  <bruno@clisp.org>
65321
65322         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65323         * lib/sigprocmask.h: Include <sys/types.h>.
65324         (sigset_t): Use the system's definition if present.
65325
65326 2006-10-17  Eric Blake  <ebb9@byu.net>
65327
65328         * lib/xvasprintf.c (includes): Assume config.h.
65329         * lib/xasprintf.c (includes): Likewise.
65330
65331 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65334         at least as wide as intmax_t.
65335
65336 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65337
65338         (Imported from Automake.)
65339         * build-aux/gnupload: Update to version 1.1 of directive file.
65340
65341 2006-10-16  Eric Blake  <ebb9@byu.net>
65342
65343         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65344         match Automake 1.10a.
65345
65346 2006-10-14  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/sigprocmask: New file.
65349         * lib/sigprocmask.h: New file.
65350         * lib/sigprocmask.c: New file.
65351         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65352         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65353         request sigprocmask.o.
65354         (gl_PREREQ_SIGPROCMASK): New macro.
65355         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65356         (Depends-on): Add sigprocmask.
65357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65358         gt_SIGNALBLOCKING. Test for 'raise' only once.
65359         * lib/fatal-signal.c: Include sigprocmask.h.
65360         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65361         unblock_fatal_signals): Define always.
65362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65363         sigprocmask.
65364
65365 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         Sync from Automake.
65368         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65369         which incorrectly sets the mode of an existing destination
65370         directory.  In some cases the unpatched install-sh could do the
65371         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65372         system.  We hope this is rare in practice, but it's clearly worth
65373         fixing.  Problem reported by Alex Unleashed in
65374         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65375         Also, don't bother to check for -m bugs unless we're using -m;
65376         suggested by Stepan Kasal.
65377
65378 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65379
65380         Sync from Automake.
65381         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65382         `-c' flag, so they appear at the same position as in %FASTDEP%
65383         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65384         which ignores unknown options only after the first non-option.
65385         Bug report against M4 by Nelson H. F. Beebe.
65386
65387 2006-10-13  Jim Meyering  <jim@meyering.net>
65388
65389         Fix a bug in yesterday's change.
65390         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65391         p->fts_statp->st_dev would be used uninitialized.
65392         Ensures that we always call fts_stat on the very first entry.
65393         Miklos Szeredi reported that find -xdev stopped working.
65394
65395 2006-10-12  Bruno Haible  <bruno@clisp.org>
65396
65397         * gnulib-tool (func_get_automake_snippet): Append an automatically
65398         computed EXTRA_DIST augmentation.
65399         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65400         * modules/alloca-opt (Makefile.am): Likewise.
65401         * modules/allocsa (Makefile.am): Likewise.
65402         * modules/arcfour (Makefile.am): Likewise.
65403         * modules/arctwo (Makefile.am): Likewise.
65404         * modules/argmatch (Makefile.am): Likewise.
65405         * modules/argz (Makefile.am): Likewise.
65406         * modules/atexit (Makefile.am): Likewise.
65407         * modules/backupfile (Makefile.am): Likewise.
65408         * modules/byteswap (Makefile.am): Likewise.
65409         * modules/c-strtod (Makefile.am): Likewise.
65410         * modules/c-strtold (Makefile.am): Likewise.
65411         * modules/calloc (Makefile.am): Likewise.
65412         * modules/canon-host (Makefile.am): Likewise.
65413         * modules/canonicalize (Makefile.am): Likewise.
65414         * modules/chdir-long (Makefile.am): Likewise.
65415         * modules/chdir-safer (Makefile.am): Likewise.
65416         * modules/check-version (Makefile.am): Likewise.
65417         * modules/chown (Makefile.am): Likewise.
65418         * modules/cloexec (Makefile.am): Likewise.
65419         * modules/close-stream (Makefile.am): Likewise.
65420         * modules/closeout (Makefile.am): Likewise.
65421         * modules/crc (Makefile.am): Likewise.
65422         * modules/csharpexec (Makefile.am): Likewise.
65423         * modules/cycle-check (Makefile.am): Likewise.
65424         * modules/des (Makefile.am): Likewise.
65425         * modules/dev-ino (Makefile.am): Likewise.
65426         * modules/dirfd (Makefile.am): Likewise.
65427         * modules/dirname (Makefile.am): Likewise.
65428         * modules/dup2 (Makefile.am): Likewise.
65429         * modules/eealloc (Makefile.am): Likewise.
65430         * modules/error (Makefile.am): Likewise.
65431         * modules/euidaccess (Makefile.am): Likewise.
65432         * modules/exclude (Makefile.am): Likewise.
65433         * modules/exitfail (Makefile.am): Likewise.
65434         * modules/fcntl-safer (Makefile.am): Likewise.
65435         * modules/fcntl (Makefile.am): Likewise.
65436         * modules/file-type (Makefile.am): Likewise.
65437         * modules/fileblocks (Makefile.am): Likewise.
65438         * modules/filemode (Makefile.am): Likewise.
65439         * modules/filenamecat (Makefile.am): Likewise.
65440         * modules/fnmatch (Makefile.am): Likewise.
65441         * modules/fopen-safer (Makefile.am): Likewise.
65442         * modules/fpending (Makefile.am): Likewise.
65443         * modules/fprintftime (Makefile.am): Likewise.
65444         * modules/free (Makefile.am): Likewise.
65445         * modules/fsusage (Makefile.am): Likewise.
65446         * modules/ftruncate (Makefile.am): Likewise.
65447         * modules/fts (Makefile.am): Likewise.
65448         * modules/gc-arcfour (Makefile.am): Likewise.
65449         * modules/gc-des (Makefile.am): Likewise.
65450         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65451         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65452         * modules/gc-md4 (Makefile.am): Likewise.
65453         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65454         * modules/gc-sha1 (Makefile.am): Likewise.
65455         * modules/gc (Makefile.am): Likewise.
65456         * modules/getaddrinfo (Makefile.am): Likewise.
65457         * modules/getcwd (Makefile.am): Likewise.
65458         * modules/getdelim (Makefile.am): Likewise.
65459         * modules/getdomainname (Makefile.am): Likewise.
65460         * modules/getgroups (Makefile.am): Likewise.
65461         * modules/gethostname (Makefile.am): Likewise.
65462         * modules/gethrxtime (Makefile.am): Likewise.
65463         * modules/getline (Makefile.am): Likewise.
65464         * modules/getloadavg (Makefile.am): Likewise.
65465         * modules/getlogin_r (Makefile.am): Likewise.
65466         * modules/getndelim2 (Makefile.am): Likewise.
65467         * modules/getopt (Makefile.am): Likewise.
65468         * modules/getpagesize (Makefile.am): Likewise.
65469         * modules/getpass-gnu (Makefile.am): Likewise.
65470         * modules/getpass (Makefile.am): Likewise.
65471         * modules/getsubopt (Makefile.am): Likewise.
65472         * modules/gettime (Makefile.am): Likewise.
65473         * modules/gettimeofday (Makefile.am): Likewise.
65474         * modules/getugroups (Makefile.am): Likewise.
65475         * modules/getusershell (Makefile.am): Likewise.
65476         * modules/glob (Makefile.am): Likewise.
65477         * modules/group-member (Makefile.am): Likewise.
65478         * modules/hard-locale (Makefile.am): Likewise.
65479         * modules/hash (Makefile.am): Likewise.
65480         * modules/hmac-md5 (Makefile.am): Likewise.
65481         * modules/hmac-sha1 (Makefile.am): Likewise.
65482         * modules/human (Makefile.am): Likewise.
65483         * modules/idcache (Makefile.am): Likewise.
65484         * modules/imaxabs (Makefile.am): Likewise.
65485         * modules/imaxdiv (Makefile.am): Likewise.
65486         * modules/inet_ntop (Makefile.am): Likewise.
65487         * modules/inet_pton (Makefile.am): Likewise.
65488         * modules/intprops (Makefile.am): Likewise.
65489         * modules/inttostr (Makefile.am): Likewise.
65490         * modules/inttypes (Makefile.am): Likewise.
65491         * modules/isapipe (Makefile.am): Likewise.
65492         * modules/javaversion (Makefile.am): Likewise.
65493         * modules/lchmod (Makefile.am): Likewise.
65494         * modules/lchown (Makefile.am): Likewise.
65495         * modules/localcharset (Makefile.am): Likewise.
65496         * modules/long-options (Makefile.am): Likewise.
65497         * modules/lstat (Makefile.am): Likewise.
65498         * modules/malloc (Makefile.am): Likewise.
65499         * modules/mathl (Makefile.am): Likewise.
65500         * modules/mbchar (Makefile.am): Likewise.
65501         * modules/md2 (Makefile.am): Likewise.
65502         * modules/md4 (Makefile.am): Likewise.
65503         * modules/md5 (Makefile.am): Likewise.
65504         * modules/memcasecmp (Makefile.am): Likewise.
65505         * modules/memchr (Makefile.am): Likewise.
65506         * modules/memcmp (Makefile.am): Likewise.
65507         * modules/memcoll (Makefile.am): Likewise.
65508         * modules/memcpy (Makefile.am): Likewise.
65509         * modules/memmem (Makefile.am): Likewise.
65510         * modules/memmove (Makefile.am): Likewise.
65511         * modules/mempcpy (Makefile.am): Likewise.
65512         * modules/memrchr (Makefile.am): Likewise.
65513         * modules/memset (Makefile.am): Likewise.
65514         * modules/memxor (Makefile.am): Likewise.
65515         * modules/mkancesdirs (Makefile.am): Likewise.
65516         * modules/mkdir-p (Makefile.am): Likewise.
65517         * modules/mkdir (Makefile.am): Likewise.
65518         * modules/mkdtemp (Makefile.am): Likewise.
65519         * modules/mkstemp (Makefile.am): Likewise.
65520         * modules/mktime (Makefile.am): Likewise.
65521         * modules/modechange (Makefile.am): Likewise.
65522         * modules/mountlist (Makefile.am): Likewise.
65523         * modules/nanosleep (Makefile.am): Likewise.
65524         * modules/obstack (Makefile.am): Likewise.
65525         * modules/openat (Makefile.am): Likewise.
65526         * modules/pagealign_alloc (Makefile.am): Likewise.
65527         * modules/pathmax (Makefile.am): Likewise.
65528         * modules/physmem (Makefile.am): Likewise.
65529         * modules/poll (Makefile.am): Likewise.
65530         * modules/posixtm (Makefile.am): Likewise.
65531         * modules/posixver (Makefile.am): Likewise.
65532         * modules/putenv (Makefile.am): Likewise.
65533         * modules/quote (Makefile.am): Likewise.
65534         * modules/quotearg (Makefile.am): Likewise.
65535         * modules/raise (Makefile.am): Likewise.
65536         * modules/read-file (Makefile.am): Likewise.
65537         * modules/readline (Makefile.am): Likewise.
65538         * modules/readlink (Makefile.am): Likewise.
65539         * modules/readtokens (Makefile.am): Likewise.
65540         * modules/readutmp (Makefile.am): Likewise.
65541         * modules/realloc (Makefile.am): Likewise.
65542         * modules/regex (Makefile.am): Likewise.
65543         * modules/rename-dest-slash (Makefile.am): Likewise.
65544         * modules/rename (Makefile.am): Likewise.
65545         * modules/rijndael (Makefile.am): Likewise.
65546         * modules/rmdir (Makefile.am): Likewise.
65547         * modules/rpmatch (Makefile.am): Likewise.
65548         * modules/safe-read (Makefile.am): Likewise.
65549         * modules/safe-write (Makefile.am): Likewise.
65550         * modules/same-inode (Makefile.am): Likewise.
65551         * modules/same (Makefile.am): Likewise.
65552         * modules/save-cwd (Makefile.am): Likewise.
65553         * modules/savedir (Makefile.am): Likewise.
65554         * modules/setenv (Makefile.am): Likewise.
65555         * modules/settime (Makefile.am): Likewise.
65556         * modules/sha1 (Makefile.am): Likewise.
65557         * modules/sig2str (Makefile.am): Likewise.
65558         * modules/snprintf (Makefile.am): Likewise.
65559         * modules/stat-macros (Makefile.am): Likewise.
65560         * modules/stat-time (Makefile.am): Likewise.
65561         * modules/stdbool (Makefile.am): Likewise.
65562         * modules/stdint (Makefile.am): Likewise.
65563         * modules/stdlib-safer (Makefile.am): Likewise.
65564         * modules/stpcpy (Makefile.am): Likewise.
65565         * modules/stpncpy (Makefile.am): Likewise.
65566         * modules/strcase (Makefile.am): Likewise.
65567         * modules/strcasestr (Makefile.am): Likewise.
65568         * modules/strchrnul (Makefile.am): Likewise.
65569         * modules/strcspn (Makefile.am): Likewise.
65570         * modules/strdup (Makefile.am): Likewise.
65571         * modules/strerror (Makefile.am): Likewise.
65572         * modules/strftime (Makefile.am): Likewise.
65573         * modules/strndup (Makefile.am): Likewise.
65574         * modules/strnlen (Makefile.am): Likewise.
65575         * modules/strpbrk (Makefile.am): Likewise.
65576         * modules/strsep (Makefile.am): Likewise.
65577         * modules/strstr (Makefile.am): Likewise.
65578         * modules/strtod (Makefile.am): Likewise.
65579         * modules/strtoimax (Makefile.am): Likewise.
65580         * modules/strtok_r (Makefile.am): Likewise.
65581         * modules/strtol (Makefile.am): Likewise.
65582         * modules/strtoll (Makefile.am): Likewise.
65583         * modules/strtoul (Makefile.am): Likewise.
65584         * modules/strtoull (Makefile.am): Likewise.
65585         * modules/strtoumax (Makefile.am): Likewise.
65586         * modules/strverscmp (Makefile.am): Likewise.
65587         * modules/sys_socket (Makefile.am): Likewise.
65588         * modules/sys_stat (Makefile.am): Likewise.
65589         * modules/sysexits (Makefile.am): Likewise.
65590         * modules/time_r (Makefile.am): Likewise.
65591         * modules/timegm (Makefile.am): Likewise.
65592         * modules/timespec (Makefile.am): Likewise.
65593         * modules/tmpfile-safer (Makefile.am): Likewise.
65594         * modules/trim (Makefile.am): Likewise.
65595         * modules/unistd-safer (Makefile.am): Likewise.
65596         * modules/unlinkdir (Makefile.am): Likewise.
65597         * modules/unlocked-io (Makefile.am): Likewise.
65598         * modules/userspec (Makefile.am): Likewise.
65599         * modules/utime (Makefile.am): Likewise.
65600         * modules/utimecmp (Makefile.am): Likewise.
65601         * modules/utimens (Makefile.am): Likewise.
65602         * modules/vasnprintf (Makefile.am): Likewise.
65603         * modules/vasprintf (Makefile.am): Likewise.
65604         * modules/vsnprintf (Makefile.am): Likewise.
65605         * modules/xalloc (Makefile.am): Likewise.
65606         * modules/xgetcwd (Makefile.am): Likewise.
65607         * modules/xnanosleep (Makefile.am): Likewise.
65608         * modules/xreadlink (Makefile.am): Likewise.
65609         * modules/xstrtod (Makefile.am): Likewise.
65610         * modules/xstrtol (Makefile.am): Likewise.
65611         * modules/xstrtold (Makefile.am): Likewise.
65612         * modules/yesno (Makefile.am): Likewise.
65613         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65614
65615 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * modules/error (Makefile.am): Distribute files through
65618         EXTRA_DIST, not lib_SOURCES.
65619
65620 2006-10-12  Eric Blake  <ebb9@byu.net>
65621
65622         * modules/error (Makefile.am): Distribute files in /lib.
65623         * modules/obstack (Makefile.am): Likewise.
65624
65625 2006-10-12  Bruno Haible  <bruno@clisp.org>
65626
65627         * modules/acl (Makefile.am): Distribute all files in lib/ through
65628         EXTRA_DIST.
65629         * modules/arcfour (Makefile.am): Likewise.
65630         * modules/arctwo (Makefile.am): Likewise.
65631         * modules/argmatch (Makefile.am): Likewise.
65632         * modules/argz (Makefile.am): Likewise.
65633         * modules/atexit (Makefile.am): Likewise.
65634         * modules/backupfile (Makefile.am): Likewise.
65635         * modules/c-strtod (Makefile.am): Likewise.
65636         * modules/c-strtold (Makefile.am): Likewise.
65637         * modules/calloc (Makefile.am): Likewise.
65638         * modules/canon-host (Makefile.am): Likewise.
65639         * modules/canonicalize (Makefile.am): Likewise.
65640         * modules/chdir-long (Makefile.am): Likewise.
65641         * modules/chdir-safer (Makefile.am): Likewise.
65642         * modules/check-version (Makefile.am): Likewise.
65643         * modules/chown (Makefile.am): Likewise.
65644         * modules/cloexec (Makefile.am): Likewise.
65645         * modules/close-stream (Makefile.am): Likewise.
65646         * modules/closeout (Makefile.am): Likewise.
65647         * modules/crc (Makefile.am): Likewise.
65648         * modules/cycle-check (Makefile.am): Likewise.
65649         * modules/des (Makefile.am): Likewise.
65650         * modules/dirfd (Makefile.am): Likewise.
65651         * modules/dirname (Makefile.am): Likewise.
65652         * modules/dup2 (Makefile.am): Likewise.
65653         * modules/euidaccess (Makefile.am): Likewise.
65654         * modules/exclude (Makefile.am): Likewise.
65655         * modules/exitfail (Makefile.am): Likewise.
65656         * modules/fcntl-safer (Makefile.am): Likewise.
65657         * modules/file-type (Makefile.am): Likewise.
65658         * modules/fileblocks (Makefile.am): Likewise.
65659         * modules/filemode (Makefile.am): Likewise.
65660         * modules/filenamecat (Makefile.am): Likewise.
65661         * modules/fnmatch (Makefile.am): Likewise.
65662         * modules/fopen-safer (Makefile.am): Likewise.
65663         * modules/fpending (Makefile.am): Likewise.
65664         * modules/fprintftime (Makefile.am): Likewise.
65665         * modules/free (Makefile.am): Likewise.
65666         * modules/fsusage (Makefile.am): Likewise.
65667         * modules/ftruncate (Makefile.am): Likewise.
65668         * modules/fts (Makefile.am): Likewise.
65669         * modules/gc (Makefile.am): Likewise.
65670         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65671         * modules/getaddrinfo (Makefile.am): Likewise.
65672         * modules/getcwd (Makefile.am): Likewise.
65673         * modules/getdelim (Makefile.am): Likewise.
65674         * modules/getdomainname (Makefile.am): Likewise.
65675         * modules/getgroups (Makefile.am): Likewise.
65676         * modules/gethostname (Makefile.am): Likewise.
65677         * modules/gethrxtime (Makefile.am): Likewise.
65678         * modules/getline (Makefile.am): Likewise.
65679         * modules/getloadavg (Makefile.am): Likewise.
65680         * modules/getlogin_r (Makefile.am): Likewise.
65681         * modules/getopt (Makefile.am): Likewise.
65682         * modules/getpass (Makefile.am): Likewise.
65683         * modules/getpass-gnu (Makefile.am): Likewise.
65684         * modules/getsubopt (Makefile.am): Likewise.
65685         * modules/gettime (Makefile.am): Likewise.
65686         * modules/gettimeofday (Makefile.am): Likewise.
65687         * modules/getugroups (Makefile.am): Likewise.
65688         * modules/getusershell (Makefile.am): Likewise.
65689         * modules/glob (Makefile.am): Likewise.
65690         * modules/group-member (Makefile.am): Likewise.
65691         * modules/hard-locale (Makefile.am): Likewise.
65692         * modules/hash (Makefile.am): Likewise.
65693         * modules/hmac-md5 (Makefile.am): Likewise.
65694         * modules/hmac-sha1 (Makefile.am): Likewise.
65695         * modules/human (Makefile.am): Likewise.
65696         * modules/idcache (Makefile.am): Likewise.
65697         * modules/imaxabs (Makefile.am): Likewise.
65698         * modules/imaxdiv (Makefile.am): Likewise.
65699         * modules/inet_ntop (Makefile.am): Likewise.
65700         * modules/inet_pton (Makefile.am): Likewise.
65701         * modules/inttostr (Makefile.am): Likewise.
65702         * modules/isapipe (Makefile.am): Likewise.
65703         * modules/lchown (Makefile.am): Likewise.
65704         * modules/long-options (Makefile.am): Likewise.
65705         * modules/lstat (Makefile.am): Likewise.
65706         * modules/malloc (Makefile.am): Likewise.
65707         * modules/mathl (Makefile.am): Likewise.
65708         * modules/mbchar (Makefile.am): Likewise.
65709         * modules/md2 (Makefile.am): Likewise.
65710         * modules/md4 (Makefile.am): Likewise.
65711         * modules/md5 (Makefile.am): Likewise.
65712         * modules/memcasecmp (Makefile.am): Likewise.
65713         * modules/memchr (Makefile.am): Likewise.
65714         * modules/memcmp (Makefile.am): Likewise.
65715         * modules/memcoll (Makefile.am): Likewise.
65716         * modules/memcpy (Makefile.am): Likewise.
65717         * modules/memmem (Makefile.am): Likewise.
65718         * modules/memmove (Makefile.am): Likewise.
65719         * modules/mempcpy (Makefile.am): Likewise.
65720         * modules/memrchr (Makefile.am): Likewise.
65721         * modules/memset (Makefile.am): Likewise.
65722         * modules/memxor (Makefile.am): Likewise.
65723         * modules/mkancesdirs (Makefile.am): Likewise.
65724         * modules/mkdir (Makefile.am): Likewise.
65725         * modules/mkdir-p (Makefile.am): Likewise.
65726         * modules/mkdtemp (Makefile.am): Likewise.
65727         * modules/mkstemp (Makefile.am): Likewise.
65728         * modules/mktime (Makefile.am): Likewise.
65729         * modules/modechange (Makefile.am): Likewise.
65730         * modules/mountlist (Makefile.am): Likewise.
65731         * modules/nanosleep (Makefile.am): Likewise.
65732         * modules/openat (Makefile.am): Likewise.
65733         * modules/pagealign_alloc (Makefile.am): Likewise.
65734         * modules/physmem (Makefile.am): Likewise.
65735         * modules/poll (Makefile.am): Likewise.
65736         * modules/posixtm (Makefile.am): Likewise.
65737         * modules/posixver (Makefile.am): Likewise.
65738         * modules/putenv (Makefile.am): Likewise.
65739         * modules/quote (Makefile.am): Likewise.
65740         * modules/quotearg (Makefile.am): Likewise.
65741         * modules/raise (Makefile.am): Likewise.
65742         * modules/read-file (Makefile.am): Likewise.
65743         * modules/readline (Makefile.am): Likewise.
65744         * modules/readlink (Makefile.am): Likewise.
65745         * modules/readtokens (Makefile.am): Likewise.
65746         * modules/readutmp (Makefile.am): Likewise.
65747         * modules/realloc (Makefile.am): Likewise.
65748         * modules/regex (Makefile.am): Likewise.
65749         * modules/rename (Makefile.am): Likewise.
65750         * modules/rename-dest-slash (Makefile.am): Likewise.
65751         * modules/rijndael (Makefile.am): Likewise.
65752         * modules/rmdir (Makefile.am): Likewise.
65753         * modules/rpmatch (Makefile.am): Likewise.
65754         * modules/safe-read (Makefile.am): Likewise.
65755         * modules/safe-write (Makefile.am): Likewise.
65756         * modules/same (Makefile.am): Likewise.
65757         * modules/save-cwd (Makefile.am): Likewise.
65758         * modules/savedir (Makefile.am): Likewise.
65759         * modules/setenv (Makefile.am): Likewise.
65760         * modules/settime (Makefile.am): Likewise.
65761         * modules/sha1 (Makefile.am): Likewise.
65762         * modules/sig2str (Makefile.am): Likewise.
65763         * modules/snprintf (Makefile.am): Likewise.
65764         * modules/stdlib-safer (Makefile.am): Likewise.
65765         * modules/stpcpy (Makefile.am): Likewise.
65766         * modules/stpncpy (Makefile.am): Likewise.
65767         * modules/strcase (Makefile.am): Likewise.
65768         * modules/strcasestr (Makefile.am): Likewise.
65769         * modules/strchrnul (Makefile.am): Likewise.
65770         * modules/strcspn (Makefile.am): Likewise.
65771         * modules/strdup (Makefile.am): Likewise.
65772         * modules/strerror (Makefile.am): Likewise.
65773         * modules/strftime (Makefile.am): Likewise.
65774         * modules/strndup (Makefile.am): Likewise.
65775         * modules/strnlen (Makefile.am): Likewise.
65776         * modules/strpbrk (Makefile.am): Likewise.
65777         * modules/strsep (Makefile.am): Likewise.
65778         * modules/strstr (Makefile.am): Likewise.
65779         * modules/strtod (Makefile.am): Likewise.
65780         * modules/strtoimax (Makefile.am): Likewise.
65781         * modules/strtok_r (Makefile.am): Likewise.
65782         * modules/strtol (Makefile.am): Likewise.
65783         * modules/strtoll (Makefile.am): Likewise.
65784         * modules/strtoul (Makefile.am): Likewise.
65785         * modules/strtoull (Makefile.am): Likewise.
65786         * modules/strtoumax (Makefile.am): Likewise.
65787         * modules/strverscmp (Makefile.am): Likewise.
65788         * modules/time_r (Makefile.am): Likewise.
65789         * modules/timegm (Makefile.am): Likewise.
65790         * modules/tmpfile-safer (Makefile.am): Likewise.
65791         * modules/unistd-safer (Makefile.am): Likewise.
65792         * modules/unlinkdir (Makefile.am): Likewise.
65793         * modules/userspec (Makefile.am): Likewise.
65794         * modules/utime (Makefile.am): Likewise.
65795         * modules/utimecmp (Makefile.am): Likewise.
65796         * modules/utimens (Makefile.am): Likewise.
65797         * modules/vasnprintf (Makefile.am): Likewise.
65798         * modules/vasprintf (Makefile.am): Likewise.
65799         * modules/vsnprintf (Makefile.am): Likewise.
65800         * modules/xalloc (Makefile.am): Likewise.
65801         * modules/xgetcwd (Makefile.am): Likewise.
65802         * modules/xnanosleep (Makefile.am): Likewise.
65803         * modules/xreadlink (Makefile.am): Likewise.
65804         * modules/xstrtod (Makefile.am): Likewise.
65805         * modules/xstrtol (Makefile.am): Likewise.
65806         * modules/xstrtold (Makefile.am): Likewise.
65807         * modules/yesno (Makefile.am): Likewise.
65808
65809 2006-10-12  Jim Meyering  <jim@meyering.net>
65810
65811         * m4/getloadavg.m4: Revert the change below.
65812
65813         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65814         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65815         fail with a symlink, which is what coreutils' ./bootstrap now
65816         creates by default.
65817
65818 2006-10-12  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65821         mingw.
65822         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65823         MSVC and mingw explicitly.
65824
65825 2006-10-11  Simon Josefsson  <jas@extundo.com>
65826             Bruno Haible  <bruno@clisp.org>
65827
65828         Add support for multiple gnulib-tool invocations in the scope of a
65829         single configure.ac file.
65830         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65831         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65832         with the same contents as the _LIBADD variable.
65833         (func_emit_initmacro_start, func_emit_initmacro_end,
65834         func_emit_initmacro_done): New functions.
65835         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65836         gl_LIBOBJS and gl_LTLIBOBJS.
65837
65838 2006-10-11  Bruno Haible  <bruno@clisp.org>
65839
65840         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65841         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65842         autoreconf. Instead, invoke autopoint explicitly but move back the
65843         *.m4 files from gnulib.
65844
65845 2006-10-11  Bruno Haible  <bruno@clisp.org>
65846
65847         * gnulib-tool (func_usage): Make module names after --create-testdir
65848         optional.
65849         (func_create_testdir): If no module was specified, use nearly all
65850         modules.
65851
65852 2006-10-12  Jim Meyering  <jim@meyering.net>
65853
65854         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65855         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65856         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65857         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65858         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65859         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65860         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65861         (fts_set_stat_required): New function.
65862         (fts_open): Defer the calls to fts_stat, if possible or requested.
65863         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65864         into fts_stat itself.
65865         (fts_read): Perform any required (deferred) fts_stat call.
65866         (fts_build): Likewise, for the directory we're about to open and read.
65867         In the readdir loop, carefully decide whether each entry will require
65868         an eventual call to fts_stat, using dirent.d_type info if available.
65869         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65870         a command line argument into this function.  Update all callers.
65871         Map a return value of FTS_DOT to FTS_D for a command line argument.
65872         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65873         Thanks to Miklos Szeredi for his tenacity and for the initial
65874         bug report about "find" failing on a FUSE-based file system.
65875
65876         * lib/fts.c (fts_open): Use consistent indentation.
65877
65878 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65881         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65882         reported by Jim Meyering.  All uses of cache variables renamed
65883         to match Autoconf's.
65884         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65885         the other one.
65886
65887         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65888         Fix misspelling in diagnostic.
65889
65890 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65893         defined.  Problem reported by Matthew Woehlke.
65894
65895         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65896         Add support for Tandem NonStop R series.
65897         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65898         Use new macro.
65899
65900         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65901         (has_trailing_slash): Omit size arg; all callers changed.
65902         Omit 'inline', since it doesn't help performance and we'd
65903         need to configure it.
65904         Don't count //, ///, etc. as having a trailing slash.
65905         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65906         (rpl_rename_dest_slash): On failure, use rename's errno rather
65907         than (in some cases) an incorrect or junk errno.
65908         Simplify code by removing need to compute length; this does
65909         cause it to make two passes instead of one over the file name,
65910         but it's worth it.
65911
65912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65913         change, since Autoconf's version may no longer be appropriate now
65914         that we are using CVS Autoconf's version.  Add support for Tandem.
65915
65916 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65917             Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65920         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65921         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65922         gl_AC_TYPE_LONG_LONG.
65923
65924         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65925         instead of HAVE_LONG_LONG.
65926         * lib/printf-args.c (printf_fetchargs): Likewise.
65927         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65928         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65930         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65931         gl_AC_TYPE_LONG_LONG.
65932
65933 2006-10-11  Bruno Haible  <bruno@clisp.org>
65934
65935         * m4/longlong.m4: Add comments.
65936         * m4/ulonglong.m4: Likewise.
65937
65938 2006-10-10  Bruno Haible  <bruno@clisp.org>
65939
65940         Make it possible to #define stpcpy, strdup to aliases.
65941         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65942         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65943
65944 2006-10-10  Bruno Haible  <bruno@clisp.org>
65945
65946         Make it possible to #define gcd to an alias.
65947         * lib/gcd.c: Include config.h.
65948
65949 2006-10-10  Bruno Haible  <bruno@clisp.org>
65950
65951         Make it possible to #define c_isascii to an alias.
65952         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65953         defined. Undefine the macros before defining them, to avoid gcc
65954         warnings.
65955         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65956         define NO_C_CTYPE_MACROS early.
65957
65958 2006-10-10  Bruno Haible  <bruno@clisp.org>
65959
65960         Make it possible to #define set_program_name to an alias.
65961         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65962         ENABLE_RELOCATABLE early.
65963
65964 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65965
65966         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65967         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65968         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65969         More generally, don't assume that 64-bit signed int is available
65970         if unsigned int is, and vice versa.
65971         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65972         unsigned symbols, not on their signed counterparts.
65973         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65974         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65975         (UINT64_C, UINTMAX_C):
65976         Likewise.
65977         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65978         unsigned counterparts.
65979         (Have_long_long, Unsigned): New macros.
65980         (Int): Renamed from INT.
65981         (strtoimax): Use the new macros.
65982         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65983         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65984         * modules/inttypes (inttypes.h): Substitute
65985         HAVE_UNSIGNED_LONG_LONG_INT.
65986         * modules/stdint (stdint.h): Likewise.
65987         (Files): Add m4/ulonglong.m4.
65988
65989 2006-10-10  Bruno Haible  <bruno@clisp.org>
65990
65991         Fix a gcc -Wshadow warning.
65992         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65993         to 'bucket'.
65994         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65995         gl_linked_indexof_from_to): Likewise.
65996         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65997         Likewise.
65998         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65999         Likewise.
66000         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66001         Reported by Eric Blake.
66002
66003 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66004
66005         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66006         for NetBSD.  Problem reported by Bruno Haible.
66007
66008 2006-10-09  Jim Meyering  <jim@meyering.net>
66009
66010         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66011         Patch from Bruno Haible.
66012
66013 2006-10-09  Jim Meyering  <jim@meyering.net>
66014
66015         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66016         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66017         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66018
66019 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         Don't include <config.h> twice; this doesn't work in some cases,
66022         e.g., when config.h has "#define intmax_t long long int" and
66023         we include <config.h>, <inttypes.h>, <config.h> in that order.
66024         Problem reported by Matthew Woehlke in:
66025         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66026         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66027         * lib/fts-cycle.c: Don't include config.h.
66028         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66029         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66030         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66031         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66032         inttypes.h.
66033         * lib/xstrtoumax.c: Likewise.
66034         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66035         __strtol and the like, so that this module is more like its siblings.
66036         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66037         Remove; no longer needed now that we assume gnulib inttypes.h.
66038
66039 2006-10-08  Bruno Haible  <bruno@clisp.org>
66040
66041         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66042         option.
66043
66044 2006-10-07  Jim Meyering  <jim@meyering.net>
66045
66046         * modules/inttypes (inttypes.h): Revert what seems to have been
66047         an inadvertent part of today's change: use "|", not "/" in the
66048         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66049
66050 2006-10-07  Bruno Haible  <bruno@clisp.org>
66051
66052         * modules/sublist: New file.
66053
66054 2006-10-07  Bruno Haible  <bruno@clisp.org>
66055
66056         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66057         * modules/argz (argz.h): Likewise.
66058         * modules/arpa_inet (arpa/inet.h): Likewise.
66059         * modules/byteswap (byteswap.h): Likewise.
66060         * modules/configmake (configmake.h): Likewise.
66061         * modules/fcntl (fcntl.h): Likewise.
66062         * modules/fnmatch (fnmatch.h): Likewise.
66063         * modules/getopt (getopt.h): Likewise.
66064         * modules/glob (glob.h): Likewise.
66065         * modules/inttypes (inttypes.h): Likewise.
66066         * modules/netinet_in (netinet/in.h): Likewise.
66067         * modules/poll (poll.h): Likewise.
66068         * modules/stdbool (stdbool.h): Likewise.
66069         * modules/stdint (stdint.h): Likewise.
66070         * modules/sys_select (sys/select.h): Likewise.
66071         * modules/sys_socket (sys/socket.h): Likewise.
66072         * modules/sys_stat (sys/stat.h): Likewise.
66073         * modules/sysexits (sysexits.h): Likewise.
66074         * modules/unistd (unistd.h): Likewise.
66075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66076         Add a "DO NOT EDIT" comment to the generated file.
66077         (func_import): Likewise for gnulib-comp.m4.
66078
66079 2006-10-07  Bruno Haible  <bruno@clisp.org>
66080
66081         * lib/gl_sublist.h: New file.
66082         * lib/gl_sublist.c: New file.
66083
66084 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66087         name (relative to the original working directory) and the file
66088         name component (relative to the temporary working directory).  All
66089         callers changed.
66090         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66091         * lib/mkdir-p.c (make_dir_parents): Likewise.
66092         * lib/mkdir-p.h (make_dir_parents): Likewise.
66093
66094 2006-10-06  Eric Blake  <ebb9@byu.net>
66095
66096         Define several macros for use by the clean-temp module.
66097         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66098         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66099         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66100
66101         * lib/clean-temp.h (close_stream_temp): New declaration.
66102         * lib/clean-temp.c (includes): Pull in headers according to what
66103         other modules are in use.
66104         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66105
66106 2006-10-06  Bruno Haible  <bruno@clisp.org>
66107
66108         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66109         instead of fopen, fwriteerror.
66110
66111 2006-10-06  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66114         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66115         int.
66116         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66117         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66118         Return an error indicator.
66119         Suggested by Eric Blake.
66120
66121 2006-10-06  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66124         Reported by Eric Blake.
66125
66126 2006-10-06  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/closeout (Description): Mention stderr too.
66129
66130 2006-10-06  Bruno Haible  <bruno@clisp.org>
66131         and Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * lib/closeout.c (close_stdout): Also close stderr.
66134         * lib/closeout.h: Update comment.
66135
66136 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66137
66138         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66140         * lib/dirchownmod.c: Include lchown.h.
66141         * lib/lchown.c: Don't include files that lchown.h now includes.
66142         Don't declare chown, since lchown.h now does that.
66143         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66144         (lchown): Define to rpl_chown if lchown is declared but
66145         does not exist.  Declare using a prototype if lchown is not
66146         declared.  Add a copyright notice.
66147         * lib/mkstemp.h: Include <unistd.h>.
66148         * lib/openat.c: Include lchown.h.
66149
66150         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66151         we now test for that separately.
66152         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66153         rather than O_NOFOLLOW, when testing whether it's possible to
66154         avoid a race condition reliably.
66155         * lib/savewd.c (savewd_chdir): Likewise.
66156
66157         Remove macros that are no longer needed now that stdint.h is
66158         reliable.
66159         * lib/fsusage.c (UINTMAX_MAX): Remove.
66160         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66161         * lib/utimecmp.c (SIZE_MAX): Remove.
66162
66163         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66164
66165         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66166         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66167         O_NOATIME works.
66168
66169 2006-10-05  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/gl_list.h (gl_sortedlist_search_from_to,
66172         gl_sortedlist_indexof_from_to): New declarations.
66173         (gl_list_implementation): New fields sortedlist_search_from_to,
66174         sortedlist_indexof_from_to.
66175         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66176         inline functions.
66177         * lib/gl_list.c (gl_sortedlist_search_from_to,
66178         gl_sortedlist_indexof_from_to): New functions.
66179         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66180         function.
66181         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66182         (gl_array_sortedlist_search_from_to): New function.
66183         (gl_array_list_implementation): Update.
66184         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66185         function.
66186         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66187         (gl_carray_sortedlist_search_from_to): New function.
66188         (gl_carray_list_implementation): Update.
66189         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66190         gl_linked_sortedlist_indexof_from_to): New functions.
66191         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66192         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66193         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66194         gl_tree_sortedlist_indexof_from_to): New functions.
66195         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66196         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66197         Update.
66198         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66199         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66200         Update.
66201
66202 2006-10-05  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66205         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66206         (struct gl_list_implementation): Add fields search_from_to,
66207         indexof_from_to. Remove fields search, indexof.
66208         (gl_list_search): Use the search_from_to method.
66209         (gl_list_search_from, gl_list_search_from_to): New functions.
66210         (gl_list_indexof): Use the indexof_from_to method.
66211         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66212         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66213         (gl_list_search_from, gl_list_search_from_to): New functions.
66214         (gl_list_indexof): Use the indexof_from_to method.
66215         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66216         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66217         gl_array_indexof. Add start_index, end_index arguments.
66218         (gl_array_search_from_to): Renamed from gl_array_search. Add
66219         start_index, end_index arguments.
66220         (gl_array_remove, gl_array_list_implementation): Update.
66221         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66222         gl_carray_indexof. Add start_index, end_index arguments.
66223         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66224         start_index, end_index arguments.
66225         (gl_carray_remove, gl_carray_list_implementation): Update.
66226         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66227         gl_linked_search. Add start_index, end_index arguments.
66228         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66229         start_index, end_index arguments.
66230         (gl_linked_remove): Update.
66231         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66232         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66233         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66234         field to 'size_t'.
66235         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66236         gl_tree_search. Add start_index, end_index arguments.
66237         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66238         start_index, end_index arguments.
66239         (gl_tree_remove): Update.
66240         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66241         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66242         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66243         function.
66244         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66245         gl_tree_search. Add start_index, end_index arguments.
66246         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66247         start_index, end_index arguments.
66248         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66249         Update.
66250         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66251
66252 2006-10-05  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66255
66256         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66257         fwriteerror_temp): New declarations.
66258         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66259         (descriptors): New variable.
66260         (cleanup): First, close the descriptors.
66261         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66262         fclose_temp, fwriteerror_temp): New functions.
66263
66264 2006-10-04  Jim Meyering  <jim@meyering.net>
66265
66266         * lib/fts.c (fts_open): Tiny comment change.
66267
66268 2006-10-04  Bruno Haible  <bruno@clisp.org>
66269
66270         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66271         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66272         gl_LOCK_BODY.
66273         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66274         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66275         gl_LOCK_EARLY_BODY.
66276         (gl_LOCK): Require gl_LOCK_BODY.
66277
66278 2006-10-04  Bruno Haible  <bruno@clisp.org>
66279
66280         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66281         (gl_oset_search_atleast): New declaration.
66282         (struct gl_oset_implementation): Add field 'search_atleast'.
66283         (gl_oset_search_atleast): New inline function.
66284         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66285         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66286         (gl_array_oset_implementation): Update.
66287         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66288         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66289         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66290
66291 2006-10-04  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66294
66295 2006-10-03  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66298         from gl_avltreehash_list_implementation.
66299
66300 2006-10-03  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/gl_oset.c (gl_oset_add): Fix return type.
66303
66304 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66305
66306         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66307
66308 2006-10-02  Eric Blake  <ebb9@byu.net>
66309
66310         * modules/strnlen (Depends-on): Add extensions.
66311
66312 2006-10-02  Eric Blake  <ebb9@byu.net>
66313
66314         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66315         definition in 2.60+.
66316
66317 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66318
66319         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66320         checks.
66321
66322 2006-10-02  Bruno Haible  <bruno@clisp.org>
66323
66324         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66325         to the AUTOMAKE_OPTIONS.
66326         Reported by Jim Meyering.
66327
66328 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         Work around bug in Solaris 10 /proc file system:
66331         /proc/self/fd/NNN/.. isn't the parent directory of
66332         the directory whose file descriptor is NNN.  This needs to
66333         be worked around at run time, not compile time, since a
66334         program might be built on Solaris 8, where things work, and
66335         run on Solaris 10.
66336         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66337         to use the following interface instead:
66338         (OPENAT_BUFFER_SIZE): New macro.
66339         (openat_proc_name): New function.
66340         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66341         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66342         Likewise.
66343         * lib/openat-proc.c: New file.
66344         * modules/openat (Files): Add lib/openat-proc.c.
66345         (Depends-on): Add same-inode, stdbool.
66346         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66347
66348 2006-09-29  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66351         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66352         argument. Set stdout_closed before testing for ferror, not after.
66353         (fwriteerror, fwriteerror_no_ebadf): New functions.
66354
66355 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66356
66357         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66358
66359 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66360
66361         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66362         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66363
66364 2006-09-28  Jim Meyering  <jim@meyering.net>
66365
66366         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66367         Include <unistd.h>.
66368
66369 2006-09-28  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66372         * modules/linkedhash-list (Depends-on): Likewise.
66373         * modules/rbtreehash-list (Depends-on): Likewise.
66374
66375 2006-09-28  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/strndup.h: Simplify the redefinition of strndup.
66378         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66380
66381 2006-09-28  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66384         * lib/gl_linkedhash_list.c: Likewise.
66385         * lib/gl_rbtreehash_list.c: Likewise.
66386
66387 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66390         getaddrinfo.
66391
66392         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66393         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66394         it causes <stdio_ext.h> to cause a compile-time error.
66395         Problem reported by Nelson H. F. Beebe.
66396         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66397         of HAVE_DECL___PENDING.
66398
66399         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66400         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66401         declaration.
66402
66403 2006-09-27  Jim Meyering  <jim@meyering.net>
66404
66405         This file could end up with a definition for a function
66406         named __strndup, rather than rpl_strndup on a system with
66407         incomplete weak_alias support.
66408         * lib/strndup.c (strndup): Rename from __strndup.
66409         Remove #defines that used to map __strndup to strndup.
66410         Don't use K&R prototypes.
66411         Remove LIBC-related code, since this file is not sync'd with glibc.
66412         * lib/strndup.h: Revamp, accordingly.
66413         * m4/strndup.m4: Modernize.
66414
66415 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * modules/savewd (Depends-on): Add 'raise'.
66418         * lib/savewd.c: Include <signal.h>, for 'raise'.
66419
66420 2006-09-26  Jim Meyering  <jim@meyering.net>
66421
66422         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66423         when we detect Darwin 8.7.0's acl_get_file bug.
66424         Rearrange to perform the new (below) run-test while $LIBS
66425         contains any acl-related library.  Set USE_ACL at the end.
66426         (gl_ACL_GET_FILE): New function.
66427
66428 2006-09-26  Eric Blake  <ebb9@byu.net>
66429
66430         * lib/verror.c: Include <config.h> unconditionally.
66431
66432 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * modules/clock-time (Maintainer): Add self.
66435         * modules/getlogin_r (Depends-on): Add extensions.
66436
66437 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66438
66439         * modules/clock-time: New module.
66440         * modules/nanosleep (Depends-on): Add clock-time.
66441         * modules/gethrxtime (Depends-on): Likewise.
66442         * modules/gettime (Depends-on): Likewise.
66443         * modules/settime (Depends-on): Likewise.
66444
66445         * modules/fts-lgpl: Depend on openat.
66446         * modules/mkancesdirs: Depend on savewd.
66447         * modules/mkdir-p: Likewise.
66448
66449 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66450
66451         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66452
66453         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66454         `gl_have_arbitrary_file_name_length_limit' to
66455         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66456         actually works between configure runs.
66457
66458 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66459             Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66462
66463 2006-09-25  Jim Meyering  <jim@meyering.net>
66464
66465         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66466         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66467
66468 2006-09-25  Eric Blake  <ebb9@byu.net>
66469
66470         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66471         exec's in 2006-09-18 patch when shuffling fds.
66472
66473 2006-09-25  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66476         Reported by Jim Meyering.
66477
66478 2006-09-24  Jim Meyering  <jim@meyering.net>
66479
66480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66481         compare a pointer against a literal "0".  That caused failures with
66482         at least HP-UX's hpcc.
66483
66484 2006-09-22  Simon Josefsson  <jas@extundo.com>
66485
66486         * modules/gc-sha1:
66487         * modules/gc-md4:
66488         * modules/gc-hmac-sha1:
66489         * modules/gc-hmac-md5:
66490         * modules/gc-des:
66491         * modules/gc-arcfour: Distribute more files.
66492
66493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66494
66495         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66496         (gl_linked_iterator_from_to): Initialize struct completely.
66497         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66498         (gl_tree_iterator_from_to): Likewise
66499         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66500         * lib/gl_array_list.c [lint] (gl_array_iterator)
66501         (gl_array_iterator_from_to): Likewise.
66502         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66503         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66504         (gl_carray_iterator_from_to): Likewise.
66505
66506         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66507         * lib/md4.c (md4_process_block): Remove unused variable.
66508         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66509         parentheses for clarity.
66510
66511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66512
66513         * modules/bison-i18n (Depends-on): Add gettext.
66514
66515 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66516
66517         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66518         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66519         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66520         also add missing comma that caused broken test.
66521         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66522         stdlib.h, for `abort'.
66523         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66524         variables.
66525         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66526         include unistd.h if present, for `rmdir'.
66527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66528         variables.
66529         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66530         in the process include standard headers for prototypes.
66531         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66532         gets declared on GNU/Linux.
66533         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66534         unistd.h, for `rmdir'.
66535         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66536
66537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66538         always true.
66539         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66540
66541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66542
66543 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66544
66545         * gnulib-tool (func_version): Create output all at once.  This
66546         may help avoid triggering unnecessary SIGPIPEs, and at any
66547         rate it doesn't hurt.
66548
66549 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66550             Bruno Haible  <bruno@clisp.org>
66551
66552         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66554         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66555
66556         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66557         (gl_FUNC_VASPRINTF): Invoke it.
66558
66559 2006-09-22  Bruno Haible  <bruno@clisp.org>
66560
66561         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66562         getloadavg.c as first argument.
66563
66564 2006-09-22  Bruno Haible  <bruno@clisp.org>
66565
66566         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66567         at the beginning of the gl_INIT macro.
66568         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66569         gl_GETLOADAVG.
66570
66571 2006-09-22  Bruno Haible  <bruno@clisp.org>
66572
66573         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66574         module.
66575         Suggested by Ralf Wildenhues.
66576
66577 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         Import this patch from libc:
66580
66581         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66582
66583         * lib/regex_internal.c (re_string_reconstruct): Handle
66584         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66585         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66586         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66587         re_string_context_at.
66588
66589         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66590         now requires it.
66591         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66592         gl_REGEX now does it for us.
66593         (gl_REGEX): Add test taken from
66594         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66595
66596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66597         Check that large offsets work.  Modernize Autoconf usages.
66598         Prefer "yes" to mean a good thing rather than a bad.
66599         Don't put "#define mkstemp" in config.h, as this might interfere
66600         with standard system headers that "#define mkstemp mkstemp64".
66601
66602         * modules/mkstemp (Depends-on): Add extensions, so that
66603         mkstemp is visible on some platforms.
66604         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66605         (Include): Change to "mkstemp.h" from <stdlib.h>.
66606         (Files): Add mkstemp.h.
66607
66608         * lib/mkstemp.h: New file, since some standard headers
66609         #define mkstemp.
66610         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66611         Include "mkstemp.h".
66612         Make the _LIBC code resemble glibc original more,
66613         e.g., use K&R style.
66614         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66615         (mkstemp): Remove, since mkstemp.h does this for us.
66616         * lib/stdlib--.h: Include mkstemp.h.
66617
66618         Import this patch from libc:
66619
66620         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66621
66622         * lib/tempname.c (__gen_tempname): Change attempts_min
66623         into a macro.  Use preprocessor to decide how to initialize
66624         attempts [Coverity CID 67].
66625
66626 2006-09-20  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/mkdtemp.c: Import from libc.
66629         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66630                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66631                 attempts_min into a macro.  Use preprocessor to decide how to
66632                 initialize attempts [Coverity CID 67].
66633         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66634                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66635                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66636
66637 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66638
66639         * gnulib-tool (func_exit): New function, to allow to pass the
66640         exit status portably through the trap.  Use everywhere.
66641         (--help, --version): Signal a write error.
66642         (trap): catch SIGPIPE, for write errors.
66643         Exit at the end of the trap, with the correct exit status.
66644
66645 2006-09-19  Karl Berry  <karl@gnu.org>
66646
66647         * doc/gnulib.texi: note about the license texinfo files.
66648
66649 2006-09-19  Eric Blake  <ebb9@byu.net>
66650
66651         * gnulib-tool: Avoid space-tab.
66652
66653 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66656         that prevented coreutils 6.1 from building.  Problem reported
66657         by Petter Reinholdtsen.
66658
66659 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * gnulib-tool (avoidlist): Fix typo that broke options like
66662         --avoid=lock that are used by coreutils bootstrap.
66663
66664 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66665
66666         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66667         more systematically.
66668
66669 2006-09-18  Jim Meyering  <jim@meyering.net>
66670
66671         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66672
66673 2006-09-18  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66676
66677 2006-09-18  Bruno Haible  <bruno@clisp.org>
66678
66679         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66680         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66681         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66682         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66683         * m4/gettext.m4: Require autoconf >= 2.52.
66684         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66685         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66686         of gl_cv_header_inttypes_h.
66687
66688 2006-09-18  Bruno Haible  <bruno@clisp.org>
66689
66690         * lib/javaversion.c: Include configmake.h.
66691
66692 2006-09-18  Bruno Haible  <bruno@clisp.org>
66693
66694         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66695         avoid that the while loops be executed in a subshell.
66696
66697 2006-09-18  Bruno Haible  <bruno@clisp.org>
66698
66699         * MODULES.html.sh (func_module): Break long lines.
66700         Suggested by Bruce Korb <bkorb@gnu.org>.
66701
66702 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66703
66704         Speed up by a factor of 1.12.
66705         * gnulib-tool (nl): New variable.
66706         (func_import): Rewrite include directive extraction to only read each
66707         directive once.
66708
66709 2006-09-17  Bruno Haible  <bruno@clisp.org>
66710
66711         * modules/javaversion (Makefile.am): Remove DEFS setting.
66712         (Depends-on): Add configmake, for PKGDATADIR definition.
66713
66714 2006-09-17  Bruno Haible  <bruno@clisp.org>
66715
66716         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66717
66718 2006-09-17  Bruno Haible  <bruno@clisp.org>
66719
66720         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66721         (func_modules_transitive_closure, func_modules_add_dummy,
66722         func_modules_to_filelist, func_import, func_create_testdir,
66723         func_create_megatestdir, ...): Use it wherever possible.
66724         Suggested by Ralf Wildenhues.
66725
66726 2006-09-16  Karl Berry  <karl@gnu.org>
66727
66728         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66729         to avoid sectioning errors.
66730         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66731         [ifinfo]: blank line after @center-ed titles.
66732         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66733         Spell FSF address consistently with others.
66734         (These changes approved by rms.)
66735
66736 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66737
66738         Speed up by a factor of 1.61.
66739         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66740         already checked module names again.
66741
66742 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66743
66744         Speed up by a factor of 1.13.
66745         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66746         for new_files, and the input to func_add_or_update.
66747
66748 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66749
66750         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66751         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66752
66753 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * modules/mkancesdirs (Depends-on): Add fcntl.
66756         * modules/savewd: New file.
66757         * MODULES.html.sh (File system functions): Add savewd.
66758
66759         * modules/configmake (Makefile.am): Add support for the
66760         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66761
66762 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * m4/savewd.m4: New file.
66765
66766 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66769         (dirchownmod): New arg FD.  All callers changed.
66770         Use FD rather than opening the directory ourself, as opening is
66771         now the caller's responsibility.
66772         * lib/dirchownmod.h: Likewise.
66773         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66774         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66775         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66776         (test_dir): Remove.
66777         (mkancesdirs): Return length of prefix of FILE that has already
66778         been made, or -2 if there is a child doing the work.  Redo
66779         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66780         ".", and treat ".." specially since it might stray back into
66781         already-created areas.  Use a subprocess if necessary.  New arg
66782         WD; all users changed.  MAKE_DIR function should now return 1
66783         if it creates a directory that is not readable.  Return -2 if
66784         a child process is spun off.
66785         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66786         Adjust signature to match code.
66787         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66788         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66789         all users changed.
66790         * lib/savewd.c, lib/savewd.h: New files.
66791
66792 2006-09-15  Jim Meyering  <jim@meyering.net>
66793
66794         * modules/rename-dest-slash: New module.
66795         * MODULES.html.sh (posix_compat): Add it here.
66796
66797         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66798
66799 2006-09-15  Jim Meyering  <jim@meyering.net>
66800
66801         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66802         file.
66803
66804         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66805
66806 2006-09-15  Jim Meyering  <jim@meyering.net>
66807
66808         * lib/rename-dest-slash.c (has_trailing_slash): Use
66809         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66810         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66811         test before testing whether SRC is a directory.
66812         Suggestions from Bruno Haible.
66813
66814         Avoid a warning about an unused variable.
66815         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66816         into the #ifdef block where it's used.
66817
66818         * lib/rename-dest-slash.c: New file.
66819
66820 2006-09-14  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/allocsa.c: Include <config.h> unconditionally.
66823         * lib/asnprintf.c: Likewise.
66824         * lib/asprintf.c: Likewise.
66825         * lib/c-strcasecmp.c: Likewise.
66826         * lib/c-strcasestr.c: Likewise.
66827         * lib/c-strncasecmp.c: Likewise.
66828         * lib/c-strstr.c: Likewise.
66829         * lib/classpath.c: Likewise.
66830         * lib/clean-temp.c: Likewise.
66831         * lib/concatpath.c: Likewise.
66832         * lib/copy-file.c: Likewise.
66833         * lib/csharpcomp.c: Likewise.
66834         * lib/csharpexec.c: Likewise.
66835         * lib/execute.c: Likewise.
66836         * lib/fatal-signal.c: Likewise.
66837         * lib/findprog.c: Likewise.
66838         * lib/fwriteerror.c: Likewise.
66839         * lib/gl_array_list.c: Likewise.
66840         * lib/gl_array_oset.c: Likewise.
66841         * lib/gl_avltree_list.c: Likewise.
66842         * lib/gl_avltree_oset.c: Likewise.
66843         * lib/gl_avltreehash_list.c: Likewise.
66844         * lib/gl_carray_list.c: Likewise.
66845         * lib/gl_linked_list.c: Likewise.
66846         * lib/gl_linkedhash_list.c: Likewise.
66847         * lib/gl_list.c: Likewise.
66848         * lib/gl_oset.c: Likewise.
66849         * lib/gl_rbtree_list.c: Likewise.
66850         * lib/gl_rbtree_oset.c: Likewise.
66851         * lib/gl_rbtreehash_list.c: Likewise.
66852         * lib/imaxabs.c: Likewise.
66853         * lib/imaxdiv.c: Likewise.
66854         * lib/javacomp.c: Likewise.
66855         * lib/javaexec.c: Likewise.
66856         * lib/javaversion.c: Likewise.
66857         * lib/linebreak.c: Likewise.
66858         * lib/localcharset.c: Likewise.
66859         * lib/lock.c: Likewise.
66860         * lib/mbchar.c: Likewise.
66861         * lib/mbswidth.c: Likewise.
66862         * lib/mkdtemp.c: Likewise.
66863         * lib/pipe.c: Likewise.
66864         * lib/printf-args.c: Likewise.
66865         * lib/printf-parse.c: Likewise.
66866         * lib/progname.c: Likewise.
66867         * lib/progreloc.c: Likewise.
66868         * lib/readlink.c: Likewise.
66869         * lib/sh-quote.c: Likewise.
66870         * lib/stpcpy.c: Likewise.
66871         * lib/stpncpy.c: Likewise.
66872         * lib/strcasecmp.c: Likewise.
66873         * lib/strcasestr.c: Likewise.
66874         * lib/strcspn.c: Likewise.
66875         * lib/striconv.c: Likewise.
66876         * lib/strncasecmp.c: Likewise.
66877         * lib/strnlen1.c: Likewise.
66878         * lib/strstr.c: Likewise.
66879         * lib/strtok_r.c: Likewise.
66880         * lib/tls.c: Likewise.
66881         * lib/tmpdir.c: Likewise.
66882         * lib/unicodeio.c: Likewise.
66883         * lib/unsetenv.c: Likewise.
66884         * lib/vasnprintf.c: Likewise.
66885         * lib/vasprintf.c: Likewise.
66886         * lib/wait-process.c: Likewise.
66887         * lib/xallocsa.c: Likewise.
66888         * lib/xsetenv.c: Likewise.
66889         * lib/xstriconv.c: Likewise.
66890
66891 2006-09-13  Simon Josefsson  <jas@extundo.com>
66892
66893         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66894         that internally, suggested by Ralf Wildenhues
66895         <Ralf.Wildenhues@gmx.de>.
66896
66897 2006-09-13  Simon Josefsson  <jas@extundo.com>
66898
66899         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66900         @LIBOBJS@.
66901         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66902
66903 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66906         longer worry about uses that don't define HAVE_CONFIG_H.
66907         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66908         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66909         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66910         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66911         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66912         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66913         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66914         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66915         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66916         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66917         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66918         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66919         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66920         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66921         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66922         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66923         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66924         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66925         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66926         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66927         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66928         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66929         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66930         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66931         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66932         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66933         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66934         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66935         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66936         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66937         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66938         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66939         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66940         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66941         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66942         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66943         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66944         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66945         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66946         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66947         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66948         Likewise.
66949
66950 2006-09-13  Eric Blake  <ebb9@byu.net>
66951
66952         * lib/getopt.c: Fix typo in last commit.
66953
66954 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66955
66956         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66957         dgettext.
66958
66959 2006-09-12  Jim Meyering  <jim@meyering.net>
66960
66961         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66962         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66963         Reported by Nelson H. F. Beebe.
66964
66965 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66966
66967         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66968         program_invocation_name and program_invocation_short_name are
66969         initialized.
66970         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66971         and program_invocation_short_name to argp.h, so they are visible
66972         to user programs.
66973         * lib/argp.h: Likewise
66974
66975 2006-09-10  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66978         m4/inttypes_h.m4, m4/uintmax_t.m4.
66979
66980 2006-09-10  Bruno Haible  <bruno@clisp.org>
66981
66982         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66983         gl_AC_TYPE_UINTMAX_T.
66984
66985 2006-09-10  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66988
66989 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66990
66991         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66992         convention.  Text proposed by Bruno Haible.
66993         (struct argp_option): Document the use of N_() wrappers.
66994
66995         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66996         '\v', and translate the two parts separately, instead of feeding
66997         the whole string to gettext.  This allows to exclude
66998         '\v' from the strings visible to the translator by writing doc
66999         strings as N_("..") "\v" N_("..").
67000
67001 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * config/srclist.txt: Undo latest change; the bug was fixed.
67004
67005 2006-09-09  Bruno Haible  <bruno@clisp.org>
67006
67007         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67008         assignments if building a library without libtool.
67009         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67010         in func_emit_lib_Makefile_am.
67011         (func_import): When building a static library libfoo.a, arrange to
67012         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67013         (func_create_testdir): Likewise.
67014         * modules/gc (configure.ac, Makefile.am): If building statically,
67015         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67016         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67017         * modules/striconv (configure.ac, Makefile.am): Likewise.
67018         Based on a suggestion by Ralf Wildenhues.
67019
67020 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67023         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67024         Also:
67025
67026         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67027         Add year_2050_test to catch glibc bug 2821
67028         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67029
67030         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67031         Prefer #ifdef to #if.
67032
67033         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67034         Return from 'main' instead of calling 'exit'.
67035
67036 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67039         returned the maximum time_t value rather than (time_t) -1.
67040         Problem originally reported by William Bardwell
67041         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67042
67043         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67044         Moved to here ...
67045         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67046         ... from here.
67047
67048 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67051         2821 is fixed.
67052
67053 2006-09-08  Jim Meyering  <jim@meyering.net>
67054
67055         Don't make generated files read-only.  That would bother too many
67056         people.  However, do retain the ability to work when targets are
67057         read-only: remove the destination and temporary files before writing
67058         them (when generated via sed or echo), or by using the -f option for
67059         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67060         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67061         * modules/byteswap, modules/configmake, modules/fcntl:
67062         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67063         * modules/localcharset, modules/netinet_in, modules/poll:
67064         * modules/stdbool, modules/stdint, modules/sys_select:
67065         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67066
67067 2006-09-08  Jim Meyering  <jim@meyering.net>
67068
67069         Avoid new build failure on FreeBSD 6.0.
67070         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67071         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67072         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67073
67074 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67075
67076         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67077
67078 2006-09-07  Jim Meyering  <jim@meyering.net>
67079
67080         Fix global typo in last change: use chmod u-w, not chmod u-x.
67081         Spotted by Paul Eggert and Bruce Korb.
67082         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67083         * modules/byteswap, modules/configmake, modules/fcntl:
67084         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67085         * modules/localcharset, modules/netinet_in, modules/poll:
67086         * modules/stdbool, modules/stdint, modules/sys_select:
67087         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67088
67089 2006-09-06  Jim Meyering  <jim@meyering.net>
67090
67091         Make generated files be read-only.
67092         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67093         Ensure that each generated file is now read-only.
67094         * modules/argz: Likewise.
67095         * modules/arpa_inet: Likewise.
67096         * modules/byteswap: Likewise.
67097         * modules/configmake: Likewise.
67098         * modules/fcntl: Likewise.
67099         * modules/fnmatch: Likewise.
67100         * modules/getopt: Likewise.
67101         * modules/glob: Likewise.
67102         * modules/inttypes: Likewise.
67103         * modules/netinet_in: Likewise.
67104         * modules/poll: Likewise.
67105         * modules/stdbool: Likewise.
67106         * modules/stdint: Likewise.
67107         * modules/sys_select: Likewise.
67108         * modules/sys_socket: Likewise.
67109         * modules/sys_stat: Likewise.
67110         * modules/sysexits: Likewise.
67111         * modules/localcharset: Same as above, but continue using temporary
67112         file named "t-$@" (why different?) rather than the "$@-t" used
67113         everywhere else.
67114
67115         * modules/sysexits (Makefile.am): Replace literal occurrences
67116         of "sysexit.h" more readable, and more consistent, "$@".
67117
67118 2006-09-06  Bruno Haible  <bruno@clisp.org>
67119
67120         * modules/striconv: New file.
67121         * modules/xstriconv: New file.
67122         * MODULES.html.sh (Internationalization functions): Add striconv,
67123         xstriconv.
67124
67125 2006-09-06  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67128         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67129         not using libtool correctly.
67130
67131 2006-09-06  Bruno Haible  <bruno@clisp.org>
67132
67133         * lib/striconv.h: New file.
67134         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67135         iconvstring.c.
67136         * lib/xstriconv.h: New file.
67137         * lib/xstriconv.c: New file.
67138
67139 2006-09-06  Bruno Haible  <bruno@clisp.org>
67140
67141         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67142         lib_..._LDFLAGS.
67143
67144 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67145
67146         * lib/argz_.h: Sync from Libtool.
67147
67148         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67149                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67150
67151         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67152
67153 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67154
67155         * modules/trim: New file.
67156
67157 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67158
67159         * lib/trim.h: New file.
67160         * lib/trim.c: New file.
67161
67162 2006-09-05  Bruno Haible  <bruno@clisp.org>
67163
67164         * MODULES.html.sh (String handling): Add trim.
67165
67166 2006-09-04  Karl Berry  <karl@gnu.org>
67167
67168         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67169         until next release.
67170
67171 2006-09-03  Bruno Haible  <bruno@clisp.org>
67172
67173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67174         correctly.
67175
67176 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67179         not gl_GETLOADAVG.  Omit unneeded semicolons.
67180         Problems reported by Ralf Wildenhues in
67181         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67182         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67183         at the end, which is the usual gnulib style.
67184
67185         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67186         of doing all the work ourselves.
67187         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67188         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67189
67190 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67191
67192         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67193         Problem reported by Ralf Wildenhues in
67194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67195
67196         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67197         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67198
67199 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67200
67201         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67202         yesterday's patch by changing test -n to test -z.
67203
67204 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67207         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67208         the former is now obsolescent.
67209
67210         * modules/chdir-long (Depends-on): Add fcntl.
67211
67212 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67215         obsolescent, and programs should use gnulib instead.
67216         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67217         but with prefixes changed.
67218
67219 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67222         or stdbool.h, because they might not exist while configuring.
67223
67224         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67225         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67226         does that for us.
67227         (O_DIRECTORY): Remove.
67228
67229 2006-08-31  Eric Blake  <ebb9@byu.net>
67230
67231         * gnulib-tool: Don't let emacs change spaces to TAB.
67232
67233 2006-08-31  Bruno Haible  <bruno@clisp.org>
67234
67235         * gnulib-tool: When calling func_import more than once, do it in a
67236         subshell.
67237         Reported by Eric Blake <ebb9@byu.net>.
67238
67239 2006-08-31  Bruno Haible  <bruno@clisp.org>
67240
67241         * gnulib-tool (nl): Remove variable.
67242         (sed_transform_lib_file): Use more robust test for config-h module.
67243         (func_import): Fix typo in 2006-08-25 patch.
67244
67245 2006-08-31  Bruno Haible  <bruno@clisp.org>
67246
67247         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67248         specified, augment Makefile.am variables instead of assigning them.
67249
67250 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         Work around a bug in both the Linux and SunOS 64-bit kernels:
67253         nanosleep mishandles sleeps for longer than 2**31 seconds.
67254         Problem reported by Frank v Waveren in
67255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67257         Check for nanosleep bug.
67258         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67259
67260 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         Work around a bug in both the Linux and SunOS 64-bit kernels:
67263         nanosleep mishandles sleeps for longer than 2**31 seconds.
67264         Problem reported by Frank v Waveren in
67265         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67266         * lib/nanosleep.c (BILLION): New constant.
67267         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67268         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67269         implementation.
67270
67271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * modules/nanosleep (Depends-on): Add gettime.
67274
67275 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67276         and Simon Josefsson  <jas@extundo.com>
67277         and Oskar Liljeblad  <oskar@osk.mine.nu>
67278
67279         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67280         * gnulib-tool (func_import): New license type 'unmodifiable license
67281         text'.
67282         * modules/fdl: Use it.  Longer description.
67283         * module/gpl, module/lgpl: New files.
67284
67285 2006-08-30  Jim Meyering  <jim@meyering.net>
67286
67287         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67288         shadowing the parameter.
67289
67290 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67291
67292         Sync from Libtool:
67293
67294         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67295
67296         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67297         sharing with gnulib.  Report by Eric Blake.
67298
67299 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         * modules/isapipe: New file.
67302         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67303
67304 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * modules/configmake (Makefile.am): Add a comment, and omit
67307         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67308         by Bruno Haible.
67309
67310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * m4/isapipe.m4: New file.
67313
67314 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * lib/isapipe.c, lib/isapipe.h: New files.
67317
67318 2006-08-29  Jim Meyering  <jim@meyering.net>
67319
67320         * modules/configmake (Makefile.am): Make configmake.h depend on
67321         Makefile.  Otherwise, a stale configmake.h could hang around.
67322
67323 2006-08-29  Eric Blake  <ebb9@byu.net>
67324
67325         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67326         resolution of upstream bug 3044.
67327
67328 2006-08-29  Bruno Haible  <bruno@clisp.org>
67329
67330         * modules/localcharset (Depends-on): Add configmake.
67331         (Makefile.am): Remove setting of LIBDIR through DEFS.
67332
67333 2006-08-29  Bruno Haible  <bruno@clisp.org>
67334
67335         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67336         defined.
67337
67338 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * modules/fcntl: New file.
67341         * modules/chdir-safer (Depends-on): Add fcntl.
67342         * modules/fts: Likewise.
67343         * modules/mkdir-p: Likewise.
67344
67345         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67346         This undoes the most recent change, since we're now addressing the
67347         problem in a different way.
67348
67349         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67350         into output, since the output might be called Makefile.am even
67351         if $makefile_name is something different.
67352         (func_import): Use $makefile_am rather than
67353         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67354         empty.
67355
67356         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67357
67358 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67361         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67362         recent change to stdint.m4, since we're now addressing the problem in a
67363         different way.
67364
67365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * m4/fcntl_h.m4: New file.
67368
67369 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * lib/fcntl_.h: New file.
67372         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67373         the fcntl module.
67374         * lib/dirchownmod.c: Likewise.
67375         * lib/fts.c: Likewise.
67376
67377         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67378         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67379         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67380         just before including <inttypes.h>, to avoid circular inclusion.
67381
67382 2006-08-28  Jim Meyering  <jim@meyering.net>
67383
67384         * doc/visibility.texi: Actually read and correct the grammar of the
67385         sentence affected by yesterday's change.
67386
67387 2006-08-28  Eric Blake  <ebb9@byu.net>
67388
67389         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67390         needs wrapper.
67391
67392 2006-08-28  Eric Blake  <ebb9@byu.net>
67393
67394         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67395
67396 2006-08-28  Eric Blake  <ebb9@byu.net>
67397
67398         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67399
67400 2006-08-28  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/c-strstr: New file, from GNU gettext.
67403         * MODULES.html.sh (String handling): Add c-strstr.
67404
67405 2006-08-28  Bruno Haible  <bruno@clisp.org>
67406
67407         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67408         macros.
67409         Reported by Eric Blake.
67410
67411 2006-08-28  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67414         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67415         * lib/vasprintf.c: Include errno.h, limits.h.
67416         (EOVERFLOW): New fallback definition.
67417         (vasprintf): Test here whether the string length is > INT_MAX.
67418         * lib/vsnprintf.c: Include errno.h, limits.h.
67419         (EOVERFLOW): New fallback definition.
67420         (vsnprintf): Fix bug when generated string was too long for the buffer.
67421         Test here whether the string length is > INT_MAX.
67422
67423 2006-08-28  Bruno Haible  <bruno@clisp.org>
67424
67425         * lib/inttypes_.h (SCNX*): Remove definitions.
67426         Reported by Eric Blake.
67427
67428 2006-08-28  Bruno Haible  <bruno@clisp.org>
67429
67430         * lib/c-strstr.h: New file, from GNU gettext.
67431         * lib/c-strstr.c: New file, from GNU gettext.
67432
67433 2006-08-28  Bruno Haible  <bruno@clisp.org>
67434
67435         * gnulib-tool: Reorder some statements.
67436
67437 2006-08-28  Bruno Haible  <bruno@clisp.org>
67438
67439         * gnulib-tool: New option --makefile-name.
67440         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67441         $makefile_name.
67442         (func_import): Write $makefile_name to the cache file, and read it from
67443         there unless explicitly specified. Use $makefile_name as file name
67444         instead of Makefile.am. Adjust the recommendations accordingly.
67445
67446 2006-08-28  Bruno Haible  <bruno@clisp.org>
67447
67448         * gnulib-tool (func_verify_module): Check against misapplying patch.
67449
67450 2006-08-28  Bruno Haible  <bruno@clisp.org>
67451
67452         * gnulib-tool (func_relativize, func_relconcat): New functions.
67453         Give an error if --local-dir is given with --update.
67454         Remove trailing slashes from $local_gnulib_dir.
67455         (func_import): Store the relativized $local_gnulib_dir in
67456         gnulib-cache.m4, and read it from there if not specified explicitly.
67457
67458 2006-08-28  Bruno Haible  <bruno@clisp.org>
67459
67460         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67461         is the current directory. Respect also $local_gnulib_dir.
67462
67463 2006-08-28  Bruno Haible  <bruno@clisp.org>
67464             Simon Josefsson  <jas@extundo.com>
67465
67466         BeOS portability.
67467         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67468
67469 2006-08-27  Jim Meyering  <jim@meyering.net>
67470
67471         * doc/visibility.texi: Remove duplicate word: "pointer".
67472
67473 2006-08-26  Bruno Haible  <bruno@clisp.org>
67474
67475         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67476         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67477         (Makefile.am): Create inttypes.h from inttypes_.h.
67478         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67479
67480         * modules/imaxabs: New file.
67481
67482         * modules/imaxdiv: New file.
67483
67484 2006-08-26  Bruno Haible  <bruno@clisp.org>
67485
67486         * m4/inttypes.m4: New file.
67487         * m4/_inttypes_h.m4: Remove file.
67488         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67489         PRI_MACROS_BROKEN.
67490         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67491
67492         * m4/imaxabs.m4: New file.
67493
67494         * m4/imaxdiv.m4: New file.
67495
67496 2006-08-26  Bruno Haible  <bruno@clisp.org>
67497
67498         * lib/inttypes_.h: New file.
67499         * lib/inttypes.h: Remove file.
67500         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67501
67502         * lib/imaxabs.c: New file.
67503
67504         * lib/imaxdiv.c: New file.
67505
67506 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67507
67508         New config-h module, so that "make" output needn't be cluttered
67509         by -DHAVE_CONFIG_H.
67510         * MODULES.html.sh (Support for building libraries and executables):
67511         Add config-h.
67512         * modules/config-h: New file.
67513         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67514         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67515         the config-h module is used.
67516
67517         New configmake module, so that "make" output needn't be cluttered
67518         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67519         * MODULES.html.sh (Support for building libraries and executables):
67520         Add configmake.
67521         * modules/configmake: New file.
67522
67523 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * m4/config-h.m4: New file.
67526
67527 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67528
67529         * config/srclist.txt: Add elisp-comp.
67530
67531 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * MODULES.html.sh (Support for building libraries and executables):
67534         Add elisp-comp.
67535         * build-aux/elisp-comp: New file.
67536         * modules/elisp-comp: New file.
67537
67538 2006-08-24  Bruno Haible  <bruno@clisp.org>
67539
67540         * gnulib-tool (func_create_testdir): Use non-default values of
67541         sourcebase and m4base.
67542
67543 2006-08-24  Bruno Haible  <bruno@clisp.org>
67544
67545         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67546         HTML structure.
67547
67548 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * modules/openat (Depends-on): Add lchown.
67551
67552 2006-08-23  Bruno Haible  <bruno@clisp.org>
67553
67554         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67555         of gl_LOCK_EARLY instead of gl_LOCK.
67556
67557 2006-08-23  Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67560         on OSF/1 to no.
67561         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67562
67563 2006-08-23  Bruno Haible  <bruno@clisp.org>
67564
67565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67566         as unusable.
67567
67568         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67569         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67570         (gl_LOCK): New macro.
67571
67572 2006-08-22  Simon Josefsson  <jas@extundo.com>
67573
67574         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67575         to md5 module.
67576
67577 2006-08-22  Simon Josefsson  <jas@extundo.com>
67578
67579         * MODULES.html.sh: Add "Support for maintaining and release
67580         projects".
67581
67582         * build-aux/gnupload: New file, from coreutils.
67583
67584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         Avoid the need for AC_LIBSOURCES in m4 macros.
67587         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67588         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67589         * modules/check-version (EXTRA_DIST): Add check-version.h.
67590         * modules/crc (EXTRA_DIST): Add crc.h.
67591         * modules/des (EXTRA_DIST): Add des.h.
67592         * modules/gc (EXTRA_DIST): Add gc.h.
67593         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67594         * modules/getline (EXTRA_DIST): Add getline.h.
67595         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67596         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67597         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67598         * modules/md2 (EXTRA_DIST): Add md2.h.
67599         * modules/md4 (EXTRA_DIST): Add md4.h.
67600         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67601         * modules/read-file (EXTRA_DIST): Add read-file.h.
67602         * modules/readline (EXTRA_DIST): Add readline.h.
67603         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67604         rijndael-api-fst.h.
67605
67606 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         * m4/rijndael.m4 (gl_ARCFOUR):
67609         * m4/arctwo.m4 (gl_ARCTWO):
67610         * m4/check-version.m4 (gl_CHECK_VERSION):
67611         * m4/crc.m4 (gl_CRC):
67612         * m4/des.m4 (gl_DES):
67613         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67614         * m4/gc.m4 (gl_GC):
67615         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67616         * m4/getline.m4 (gl_FUNC_GETLINE):
67617         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67618         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67619         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67620         * m4/md2.m4 (gl_MD2):
67621         * m4/md4.m4 (gl_MD4):
67622         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67623         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67624         * m4/readline.m4 (gl_FUNC_READLINE):
67625         * m4/rijndael.m4 (gl_RIJNDAEL):
67626         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67627         to get the necessary .h files and whatnot.
67628
67629 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67632         gnulib rather than the other way around.
67633         * config/srclistvars.sh (COREUTILS): Remove.
67634
67635 2006-08-22  Jim Meyering  <jim@meyering.net>
67636
67637         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67638
67639         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67640
67641 2006-08-22  Eric Blake  <ebb9@byu.net>
67642
67643         * modules/regexprops-generic: New file.
67644         * MODULES.html.sh (Support for building documentation): List it.
67645
67646 2006-08-22  Eric Blake  <ebb9@byu.net>
67647
67648         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67649         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67651         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67652
67653 2006-08-22  Bruno Haible  <bruno@clisp.org>
67654
67655         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67656         and lib_LTLIBRARIES like the other lib_* variables.
67657
67658 2006-08-22  Bruno Haible  <bruno@clisp.org>
67659
67660         * build-aux/x-to-1.in: New file, from GNU gettext.
67661
67662 2006-08-22  Bruno Haible  <bruno@clisp.org>
67663
67664         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67665         <utmpx.h> exists.
67666
67667 2006-08-22  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67670         <utmpx.h> exists.
67671
67672 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         BeOS portability.
67675         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67676         exist.
67677         Problem reported by Bruno Haible.
67678
67679 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         Avoid the need for AC_LIBSOURCES in m4 macros.
67682         * modules/acl (EXTRA_DIST): Add acl.h.
67683         * modules/argmatch (Files): Add m4/argmatch.m4.
67684         (configure.ac): Add gl_ARGMATCH.
67685         (EXTRA_DIST): Renamed from lib_SOURCES, for
67686         consistency with the other modules.  Remove argmatch.c.
67687         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67688         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67689         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67690         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67691         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67692         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67693         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67694         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67695         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67696         * modules/closeout (EXTRA_DIST): Add closeout.h.
67697         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67698         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67699         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67700         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67701         dirname.h; remove basename.c and stripslash.c.
67702         * modules/exclude (EXTRA_DIST): Add exclude.h.
67703         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67704         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67705         * modules/file-type (EXTRA_DIST): Add file-type.h.
67706         * modules/filemode (EXTRA_DIST): Add filemode.h.
67707         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67708         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67709         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67710         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67711         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67712         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67713         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67714         * modules/getdate (EXTRA_DIST): Add getdate.c.
67715         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67716         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67717         * modules/getpass (EXTRA_DIST): Add getpass.h.
67718         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67719         * modules/group-member (EXTRA_DIST): Add group-member.h.
67720         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67721         * modules/hash (EXTRA_DIST): Add hash.h.
67722         * modules/human (EXTRA_DIST): Add human.h.
67723         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67724         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67725         * modules/lchown (EXTRA_DIST): Add lchown.h.
67726         * modules/long-options (EXTRA_DIST): Add long-options.h.
67727         * modules/lstat (EXTRA_DIST): Add lstat.h.
67728         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67729         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67730         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67731         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67732         * modules/memxor (EXTRA_DIST): Add memxor.h.
67733         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67734         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67735         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67736         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67737         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67738         * modules/physmem (EXTRA_DIST): Add physmem.h.
67739         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67740         * modules/posixver (EXTRA_DIST): Add posixver.h.
67741         * modules/quote (EXTRA_DIST): Add quote.h.
67742         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67743         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67744         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67745         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67746         regex_internal.h regexec.c.
67747         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67748         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67749         * modules/same (EXTRA_DIST): Add same.h.
67750         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67751         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67752         * modules/savedir (EXTRA_DIST): Add savedir.h.
67753         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67754         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67755         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67756         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67757         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67758         * modules/strdup (EXTRA_DIST): Add strdup.h.
67759         * modules/strftime (EXTRA_DIST): Add strftime.h.
67760         * modules/strndup (EXTRA_DIST): Add strndup.h.
67761         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67762         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67763         * modules/time_r (EXTRA_DIST): Add time_r.h.
67764         * modules/timespec (EXTRA_DIST): Add timespec.h.
67765         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67766         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67767         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67768         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67769         * modules/userspec (EXTRA_DIST): Add userspec.h.
67770         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67771         * modules/utimens (EXTRA_DIST): Add utimens.h.
67772         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67773         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67774         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67775         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67776         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67777         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67778         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67779         * modules/yesno (EXTRA_DIST): Add yesno.h.
67780
67781 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67782
67783         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67784
67785         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67786         * m4/dev-ino.m4, same-inode.m4: Remove.
67787
67788         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67789         * m4/acl.m4 (AC_FUNC_ACL):
67790         * m4/backupfile.m4 (gl_BACKUPFILE):
67791         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67792         * m4/canon-host.m4 (gl_CANON_HOST):
67793         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67796         * m4/cloexec.m4 (gl_CLOEXEC):
67797         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67798         * m4/closeout.m4 (gl_CLOSEOUT):
67799         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67800         * m4/dirname.m4 (gl_DIRNAME):
67801         * m4/exclude.m4 (gl_EXCLUDE):
67802         * m4/exitfail.m4 (gl_EXITFAIL):
67803         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67804         * m4/file-type.m4 (gl_FILE_TYPE):
67805         * m4/filemode.m4 (gl_FILEMODE):
67806         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67807         * m4/fpending.m4 (gl_FUNC_FPENDING):
67808         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67809         * m4/fts.m4 (gl_FUNC_FTS):
67810         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67811         * m4/getdate.m4 (gl_GETDATE):
67812         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67813         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67814         * m4/getpass.m4 (gl_FUNC_GETPASS):
67815         * m4/gettime.m4 (gl_GETTIME):
67816         * m4/getugroups.m4 (gl_GETUGROUPS):
67817         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67818         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67819         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67820         * m4/hash.m4 (gl_HASH):
67821         * m4/idcache.m4 (gl_IDCACHE):
67822         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67823         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67824         * m4/long-options.m4 (gl_LONG_OPTIONS):
67825         * m4/lstat.m4 (gl_FUNC_LSTAT):
67826         * m4/md5.m4 (gl_MD5):
67827         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67828         * m4/memcoll.m4 (gl_MEMCOLL):
67829         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67831         * m4/memxor.m4 (gl_MEMXOR):
67832         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67833         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67834         * m4/modechange.m4 (gl_MODECHANGE):
67835         * m4/mountlist.m4 (gl_MOUNTLIST):
67836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67837         * m4/openat.m4 (gl_FUNC_OPENAT):
67838         * m4/pathmax.m4 (gl_PATHMAX):
67839         * m4/physmem.m4 (gl_PHYSMEM):
67840         * m4/posixtm.m4 (gl_POSIXTM):
67841         * m4/posixver.m4 (gl_POSIXVER):
67842         * m4/quote.m4 (gl_QUOTE):
67843         * m4/quotearg.m4 (gl_QUOTEARG):
67844         * m4/readtokens.m4 (gl_READTOKENS):
67845         * m4/readutmp.m4 (gl_READUTMP):
67846         * m4/regex.m4 (gl_REGEX):
67847         * m4/safe-read.m4 (gl_SAFE_READ):
67848         * m4/safe-write.m4 (gl_SAFE_WRITE):
67849         * m4/same.m4 (gl_SAME):
67850         * m4/save-cwd.m4 (gl_SAVE_CWD):
67851         * m4/savedir.m4 (gl_SAVEDIR):
67852         * m4/settime.m4 (gl_SETTIME):
67853         * m4/sha1.m4 (gl_SHA1):
67854         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67855         * m4/stat-macros.m4 (gl_STAT_MACROS):
67856         * m4/stat-time.m4 (gl_STAT_TIME):
67857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67858         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67859         * m4/strdup.m4 (gl_FUNC_STRDUP):
67860         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67861         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67862         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67863         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67864         * m4/time_r.m4 (gl_TIME_R):
67865         * m4/timespec.m4 (gl_TIMESPEC):
67866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67867         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67868         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67869         * m4/userspec.m4 (gl_USERSPEC):
67870         * m4/utimecmp.m4 (gl_UTIMECMP):
67871         * m4/utimens.m4 (gl_UTIMENS):
67872         * m4/xalloc.m4 (gl_XALLOC):
67873         * m4/xgetcwd.m4 (gl_XGETCWD):
67874         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67875         * m4/xreadlink.m4 (gl_XREADLINK):
67876         * m4/xstrtod.m4 (gl_XSTRTOD):
67877         * m4/yesno.m4 (gl_YESNO):
67878         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67879         to get the necessary .h files and whatnot.
67880
67881 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67882             Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67885         /bin/sh understanding of '!' conditional negation.
67886
67887 2006-08-21  Jim Meyering  <jim@meyering.net>
67888
67889         * modules/openat (Depends-on): Really alphabetize.
67890
67891         * modules/acl (Depends-on): Add error and quote.
67892
67893         * check-module (find_included_lib_files): Add at-func.c to the
67894         ok-to-include-more-than-once white list.
67895
67896         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67897
67898 2006-08-21  Bruno Haible  <bruno@clisp.org>
67899
67900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67901         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67902         Reported by Martin Lambers <marlam@marlam.de>.
67903
67904 2006-08-21  Bruno Haible  <bruno@clisp.org>
67905
67906         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67907         specify an installation location, don't emit a noinst_LIBRARIES or
67908         noinst_LTLIBRARIES assignment.
67909
67910 2006-08-21  Bruno Haible  <bruno@clisp.org>
67911
67912         BeOS portability.
67913         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67914         BeOS has mbrtowc() but no <wctype.h>.
67915
67916 2006-08-21  Bruno Haible  <bruno@clisp.org>
67917
67918         BeOS portability.
67919         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67920         exist.
67921
67922 2006-08-21  Bruno Haible  <bruno@clisp.org>
67923
67924         BeOS portability.
67925         * lib/mbchar.h: Include <wctype.h> only if it exists.
67926
67927 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         Remove files that are no longer needed by their respective modules.
67930         * m4/obstack.m4: Remove.
67931         * m4/strerror_r.m4: Remove.
67932         * m4/uint32_t.m4: Remove.
67933         * m4/uintptr_t.m4: Remove.
67934         * m4/ullong_max.m4: Remove.
67935         * m4/xstrtoimax.m4: Remove.
67936         * m4/xstrtoumax.m4: Remove.
67937
67938         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67939         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67940         dependencies now capture this.
67941
67942         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67943         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67944         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67945         * m4/human.m4 (gl_HUMAN): Likewise.
67946         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67947         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67948
67949         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67950
67951         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67952         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67953         stdint.
67954         * m4/human.m4 (gl_HUMAN): Likewise.
67955         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67956         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67957         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67959         * m4/xstrtol (gl_XSTRTOL): Likewise.
67960
67961         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67962         AC_TYPE_LONG_LONG_INT.
67963         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67964         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67965         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67966         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67967
67968         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67969         on stdbool.
67970
67971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67972         (gl_PREREQ_XSTRTOUL): Remove.
67973
67974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67975
67976         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67977         mode.
67978
67979 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67980
67981         Add and change modules to make it easier for coreutils to use
67982         gnulib-tool.
67983         * modules/backupfile (Files): Remove m4/d-ino.m4.
67984         (Depends-on): Add d-ino.
67985         * modules/cycle-check (Depends-on): Add stdint.
67986         (lib_SOURCES): Add cycle-check.h.
67987         * modules/d-ino: New module.
67988         * modules/d-type: New module.
67989         * modules/error (Files): Remove m4/strerror_r.m4.
67990         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67991         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67992         m4/inttypes_h.m4, m4/uintmax_t.m4.
67993         (Depends-on): Add stdint.
67994         (lib_SOURCES): Add fsusage.h.
67995         * modules/getcwd (Files): Remove d-ino.m4.
67996         (Depends-on): Add d-ino.
67997         * modules/getndelim2 (Depends-on): Add stdint.
67998         * modules/glob (Files): Remove m4/d-type.m4.
67999         (Depends-on): Add d-type.
68000         * modules/host-os: New module.
68001         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68002         m4/inttypes_h.m4, m4/uintmax_t.m4.
68003         * Depends-on: Add stdint.
68004         (lib_SOURCES): Add human.h.
68005         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68006         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68007         m4/uintmax_t.m4, m4/ulonglong.m4.
68008         (Depends-on): Add stdint.
68009         (EXTRA_DIST): Add inttostr.h.
68010         * modules/lchmod: New module.
68011         * modules/link-follow: New module.
68012         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68013         (Depends-on): Add lchmod.
68014         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68015         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68016         (Depends-on): Add stdint.
68017         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68018         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68019         (Depends-on): Add stdint.
68020         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68021         * modules/perl: New module.
68022         * modules/regex (Depends-on): Add stdint.
68023         * modules/rmdir-errno: New module.
68024         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68025         m4/intmax_t.m4.
68026         (Depends-on): Add stdint.
68027         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68028         m4/uintmax_t.m4.
68029         (Depends-on): Add stdint.
68030         * modules/unlink-busy: New module.
68031         * modules/utimecmp (Depends-on): Add stdint.
68032         * modules/uptime: New module.
68033         * modules/winsz-ioctl: New module.
68034         * modules/winsz-termios: New module.
68035         * modules/xnanosleep (Depends-on): Add nanosleep.
68036         * modules/ullong_max: Remove.
68037         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68038         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68039         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68040         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68041         (Depends-on): Add inttypes.
68042         (lib_SOURCES): Add xstrtol.h.
68043         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68044         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68045         * MODULES.html.sh: Move 'assert' into the assert section.
68046         Move 'dummy' into the linking section.
68047         Remove ullong_max.
68048         Add section for compatibility checks for POSIX:2001 functions,
68049         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68050         winsz-ioctl, and winsz-termios into it.
68051         Add lchmod.
68052         Add top-level Misc section and put host-os, perl, and uptime
68053         into it.
68054
68055 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68058         now assume the stdint module.  Do not include inttypes.h.
68059         * lib/fsusage.h: Likewise.
68060         * lib/getndelim2.c: Likewise.
68061         * lib/human.h: Likewise.
68062         * lib/inttostr.h: Likewise.
68063         * lib/obstack.c: Likewise.
68064         * lib/regex_internal.h: Likewise.
68065         * lib/tempname.c: Likewise.
68066         * lib/utimecmp.c: Likewise.
68067         * lib/xstrtol.h: Likewise.
68068
68069         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68070
68071         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68072         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68073         * lib/xtime.h: Likewise.
68074
68075 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68076
68077         * modules/openat (Files): Add lib/fchmodat.c.
68078         Fixes problem reported by Jay Youngman.
68079
68080 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68083         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68084
68085 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68086             Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68089         and is a script that invokes bison. Tighten the code. Add comments.
68090
68091 2006-08-18  Jim Meyering  <jim@meyering.net>
68092
68093         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68094         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68095         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68096         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68097
68098 2006-08-18  Bruno Haible  <bruno@clisp.org>
68099
68100         * modules/bison-i18n: New file.
68101         * MODULES.html.sh (Internationalization functions): Add it.
68102
68103 2006-08-18  Bruno Haible  <bruno@clisp.org>
68104
68105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68106         sys/statvfs.h. When getmntinfo was found, check its declaration and
68107         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68108
68109 2006-08-18  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/bison-i18n.m4: New file, from bison.
68112
68113 2006-08-18  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68116         (ME_DUMMY): Treat "kernfs" as a dummy.
68117         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68118
68119 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         Update from coreutils.
68122
68123         2006-08-15  Jim Meyering  <jim@meyering.net>
68124
68125         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68126
68127         2006-01-17  Jim Meyering  <jim@meyering.net>
68128
68129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68130
68131         2006-01-11  Jim Meyering  <jim@meyering.net>
68132
68133         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68134         Check for the lchmod function.
68135
68136 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         Update from coreutils.
68139
68140         * lib/__fpending.h: Add copyright notice.
68141         * lib/fprintftime.h: Likewise.
68142         * lib/savedir.c: Use (C) in copyright notice.
68143         * lib/savedir.h: Likewise.
68144
68145         2006-08-15  Jim Meyering  <jim@meyering.net>
68146
68147         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68148         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68149         in support of the EXPECTED_ERRNO macro.
68150         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68151         definitions.  Instead, define the appropriate symbols and include
68152         "at-func.c".
68153         * lib/mkdirat.c (mkdirat): Likewise.
68154         * lib/fchmodat.c (fchmodat): Likewise.
68155         (ENOSYS): Remove definition.
68156         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68157         it.  Don't include "unistd--.h" -- it wasn't ever used.
68158
68159         2006-01-17  Jim Meyering  <jim@meyering.net>
68160
68161         Rewrite fts.c not to change the current working directory,
68162         by using openat, fstatat, fdopendir, etc..
68163
68164         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68165         (HAVE_OPENAT_SUPPORT): Define.
68166         [_LIBC] (fchdir): Don't undef or define; no longer used.
68167         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68168         Now, this `function' always succeeds, and consumes its file descriptor
68169         parameter -- so callers must not close such FDs.  Update callers.
68170         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68171         (diropen): Add parameter, SP.  Adjust all callers.
68172         Implement using diropen_fd, rather than open.
68173         (fts_open): Initialize new member, fts_cwd_fd.
68174         Remove fts_rft-setting code.
68175         (fts_close): Close fts_cwd_fd, if necessary.
68176         (__opendir2): Define in terms of opendir or opendirat,
68177         depending on whether the FST_NOCHDIR flag is set.
68178         (fts_build): Since fts_safe_changedir consumes its FD, and since
68179         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68180         and close the dup'd file descriptor upon failure.
68181         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68182         (fts_safe_changedir): Tweak semantics to reflect that this function
68183         now calls cwd_advance_fd and hence consumes its FD argument.
68184         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68185         [struct FTS] (fts_rft): Remove now-unused member.
68186         [struct FTS] (fts_cycle.state): Improve comment.
68187
68188         * lib/openat.c (openat_needs_fchdir): New function.
68189         * lib/openat.h (openat_needs_fchdir): Declare it.
68190
68191 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68194         Problem and fix reported by Pádraig Brady in
68195         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68196
68197 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68200
68201 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/memcoll.c (memcoll): Optimize for the common case where the
68204         arguments are bytewise equal.
68205
68206 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         * doc/regexprops-generic.texi: Add a copyright notice.
68209
68210 2006-08-15  Bruno Haible  <bruno@clisp.org>
68211
68212         * modules/tmpdir (License): Change to LGPL.
68213
68214 2006-08-15  Bruno Haible  <bruno@clisp.org>
68215
68216         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68217         module.
68218
68219 2006-08-14  Simon Josefsson  <jas@extundo.com>
68220
68221         * config/srclist.txt: Add gnupload.
68222
68223 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68224
68225         Change copyright notice from LGPL 2 to GPL 2, since that's the
68226         standard form used in the gnulib repository.
68227         * tests/test-lock.c: Likewise.
68228         * tests/test-stdint.c: Likewise.
68229         * tests/test-tls.c: Likewise.
68230
68231         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68232         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68233         Add copyright notice.
68234
68235         * check-module: Add copyright notice.  Output a copyright
68236         notice if "--version" is specified.
68237         * modules/COPYING: New file.
68238         * tests/test-getaddrinfo.c: Add copyright notice.
68239         * tests/test-verify.c: Likewise.
68240
68241 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         Change copyright notice from LGPL 2 to GPL 2, since that's the
68244         standard form used in the gnulib repository.
68245         * lib/lock.c: LGPL -> GPL.
68246         * lib/lock.h: Likewise.
68247         * lib/strnlen1.c: Likewise.
68248         * lib/strnlen1.h: Likewise.
68249         * lib/tls.c: Likewise.
68250         * lib/tls.h: Likewise.
68251         * lib/tmpdir.c: Likewise.
68252
68253         * lib/TODO: Remove; this belongs only in coreutils.
68254
68255 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         Add copyright notices to long-enough files that lack them, since
68258         otherwise the files aren't clearly free.  Use the same notice that
68259         getdate.texi already uses.
68260         * doc/alloca-opt.texi: Add copyright notice.
68261         * doc/alloca.texi: Likewise.
68262         * doc/ctime.texi: Likewise.
68263         * doc/functions.texi: Likewise.
68264         * doc/gcd.texi: Likewise.
68265         * doc/gnulib-tool.texi: Likewise.
68266         * doc/inet_ntoa.texi: Likewise.
68267         * doc/visibility.texi: Likewise.
68268
68269         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68270         * doc/quote.texi: Add copyright notice.
68271
68272         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68273         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68274         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68275         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68276         is now obsolete, and give a pointer to the Sun list.
68277         Add copyright notice.
68278
68279 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         * config/srclistvars.sh: Add copyright notice.
68282
68283 2006-08-14  Eric Blake  <ebb9@byu.net>
68284
68285         Import the following change from libc:
68286
68287         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68288
68289         Upstream bug 2997.
68290         * lib/misc/error.c: Add space between program name and message if file
68291         name is missing.
68292
68293 2006-08-12  Karl Berry  <karl@gnu.org>
68294
68295         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68296         remove, these originate in gnulib now.
68297
68298 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68299
68300         * doc/Makefile (standards.info standards.html standards.dvi):
68301         Also depend on make-stds.texi.
68302
68303 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68304
68305         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68306         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68307
68308         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68309         in wchar_t.  Problem reported by Eric Blake.
68310
68311         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68312         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68313         Also, help the compiler to keep LEN in a register.
68314
68315 2006-08-11  Eric Blake  <ebb9@byu.net>
68316
68317         * users.txt: Sort.  Add tar.
68318
68319 2006-08-11  Bruno Haible  <bruno@clisp.org>
68320
68321         * users.txt: New file.
68322
68323 2006-08-11  Bruno Haible  <bruno@clisp.org>
68324
68325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68326         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68327
68328 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * modules/snprintf (Depends-on): Remove minmax.
68331         (Maintainer): Add self and Bruno.
68332
68333 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68336         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68337         (EOVERFLOW): Define if the system does not.
68338         Do not include "minmax.h"; it wasn't used.
68339         (snprintf): Don't assume size_t promotes to an unsigned type.
68340         Fix bug when generated string was too long for the buffer: the
68341         buffer's contents are supposed to be the initial prefix of the
68342         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68343         exceeds INT_MAX; do the check ourselves.
68344
68345         Import the following changes from libc:
68346
68347         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68348
68349         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68350         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68351         set wc to the byte which couldn't be converted.
68352         (re_string_reconstruct): Don't clear valid_raw_len before calling
68353         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68354         tip_context using re_string_context_at.
68355
68356         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68357
68358         * lib/posix/regex.h: g++ still cannot handled [restrict].
68359
68360         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68361
68362         * lib/posix/regex.h: Remove special handling for VMS.
68363
68364 2006-08-10  Jim Meyering  <jim@meyering.net>
68365
68366         * modules/same-inode: New module.
68367         * modules/dev-ino: New module.
68368         * modules/cycle-check: Depend on these modules, rather than simply
68369         including their .h files.
68370         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68371         required via m4/cycle-check.m4.
68372         * modules/same: Depend on new same-inode module, rather than
68373         including same-inode.h.
68374         * modules/chdir-safer: New file.
68375
68376         * modules/chown (Depends-on): Add stat-macros.
68377
68378 2006-08-10  Jim Meyering  <jim@meyering.net>
68379
68380         * m4/cycle-check.m4: New file.
68381         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68382         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68383
68384 2006-08-10  Eric Blake  <ebb9@byu.net>
68385
68386         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68387         in from original proposal.
68388
68389 2006-08-10  Eric Blake  <ebb9@byu.net>
68390         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68391
68392         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68393         namespace.
68394
68395 2006-08-10  Bruno Haible  <bruno@clisp.org>
68396
68397         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68398         as well.
68399
68400 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68401
68402         Sync from coreutils.
68403
68404         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68405
68406         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68407         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68408
68409 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * modules/restrict: Remove; no longer needed now that we assume
68412         Autoconf 2.59 or later.
68413         * MODULES.html.sh: Remove 'restrict'.
68414         * modules/argp (Depends-on): Remove 'restrict'.
68415         * modules/base64 (Depends-on): Likewise.
68416         * modules/gc (Depends-on): Likewise.
68417         * modules/getaddrinfo (Depends-on): Likewise.
68418         * modules/glob (Depends-on): Likewise.
68419         * modules/inet_ntop (Depends-on): Likewise.
68420         * modules/inet_pton (Depends-on): Likewise.
68421         * modules/memxor (Depends-on): Likewise.
68422         * modules/regex (Depends-on): Likewise.
68423         * modules/strtok_r (Depends-on): Likewise.
68424         * modules/time_r (Depends-on): Likewise.
68425
68426 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68429         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68430         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68431         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68432         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68433         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68434         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68435         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68436
68437         Merge from coreutils.
68438         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68439         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68441         * m4/time_r.m4 (gl_TIME_R): Likewise.
68442
68443 2006-08-09  Karl Berry  <karl@gnu.org>
68444
68445         * config/srclist.txt: no more gettext-tools, per Bruno.
68446
68447 2006-08-08  Eric Blake  <ebb9@byu.net>
68448
68449         * modules/verror: New module.
68450         * MODULES.html.sh: Document it.
68451
68452 2006-08-08  Eric Blake  <ebb9@byu.net>
68453
68454         * lib/verror.h, lib/verror.c: New files.
68455
68456 2006-08-08  Eric Blake  <ebb9@byu.net>
68457
68458         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68459         verror_at_line output complies with GNU Coding Standards even when
68460         file is NULL.
68461
68462 2006-08-07  Bruno Haible  <bruno@clisp.org>
68463
68464         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68465         versions of AIX.
68466         Reported by Ralf Wildenhues.
68467
68468 2006-08-07  Bruno Haible  <bruno@clisp.org>
68469
68470         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68471         in an AC_DEFUN. Needed so that the autoconf snippets can use
68472         AC_REQUIRE.
68473
68474 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68475
68476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68477         Initialize pkgdata_DATA.
68478         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68479         overriding it.
68480
68481 2006-08-06  Eric Blake  <ebb9@byu.net>
68482
68483         * lib/error.h: Fold in some upstream changes from glibc.
68484         * lib/error.c: Likewise.
68485
68486 2006-08-04  Bruno Haible  <bruno@clisp.org>
68487
68488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68489         Make the mostlyclean-local rule depend on mostlyclean-generic.
68490         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68491
68492 2006-07-31  Bruno Haible  <bruno@clisp.org>
68493
68494         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68495         <stdlib.h>, <string.h>.
68496
68497 2006-07-30  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/readlink (License): Change to LGPL.
68500
68501 2006-07-30  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68504         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68505         set PKGDATADIR to point to it.
68506
68507 2006-07-30  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/csharpexec (configure.ac): Comment out macro invocation.
68510         * modules/javaexec (configure.ac): Likewise.
68511         * modules/javacomp-script (configure.ac): Likewise.
68512
68513         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68514
68515 2006-07-30  Bruno Haible  <bruno@clisp.org>
68516
68517         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68518         linked-list.
68519
68520 2006-07-30  Bruno Haible  <bruno@clisp.org>
68521
68522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68523
68524 2006-07-30  Bruno Haible  <bruno@clisp.org>
68525
68526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68527         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68528         get removed.
68529
68530 2006-07-29  Bruno Haible  <bruno@clisp.org>
68531
68532         Make it possible for gnulib-tool to work with locally modified or
68533         augmented gnulib repositories.
68534         * gnulib-tool (func_usage): Document --local-dir option.
68535         (local_gnulib_dir): New variable.
68536         Handle --local-dir option.
68537         (func_lookup_file): New function.
68538         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68539         (func_get_description, func_get_filelist, func_get_description,
68540         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68541         func_get_automake_snippet, func_get_include_directive,
68542         func_get_license, func_get_maintainer): Use func_lookup_file.
68543         (func_import, func_create_testdir): Use func_lookup_file.
68544
68545 2006-07-29  Bruno Haible  <bruno@clisp.org>
68546
68547         * modules/setenv (Depends-on): Add unistd.
68548
68549 2006-07-29  Bruno Haible  <bruno@clisp.org>
68550
68551         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68552
68553 2006-07-29  Bruno Haible  <bruno@clisp.org>
68554
68555         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68556
68557 2006-07-29  Bruno Haible  <bruno@clisp.org>
68558
68559         * gnulib-tool (import, update): If there is no Makefile.am, look at
68560         aclocal.m4, instead of bailing out.
68561
68562 2006-07-29  Bruno Haible  <bruno@clisp.org>
68563
68564         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68565         Categorize the options by when they are useful.
68566
68567 2006-07-29  Bruno Haible  <bruno@clisp.org>
68568
68569         * gnulib-tool (func_usage): Document option --no-libtool.
68570         Handle option --no-libtool.
68571         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68572         for changed semantics of $libtool variable.
68573         (func_import): Likewise. If libtool is not used, show this through
68574         an option --no-libtool.
68575         (func_create_testdir): Update.
68576
68577 2006-07-29  Bruno Haible  <bruno@clisp.org>
68578
68579         * gnulib-tool (func_import): Extend error message about missing
68580         --doc-base.
68581
68582 2006-07-29  Bruno Haible  <bruno@clisp.org>
68583
68584         * gnulib-tool (func_import): Don't create the $docbase directory if
68585         there is no file to store there.
68586
68587 2006-07-29  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68590         relevant, look for configure.ac there, not in the current directory.
68591         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68592
68593 2006-07-29  Bruno Haible  <bruno@clisp.org>
68594
68595         * gnulib-tool (SORT): New variable.
68596         (func_usage): Undocument --assume-autoconf option.
68597         Remove --assume-autoconf option handling.
68598         (autoconf_minversion): Determine from the contents of configure.ac.
68599         (func_import): Remove autoconf_minversion handling.
68600         Suggested by Eric Blake.
68601
68602 2006-07-29  Bruno Haible  <bruno@clisp.org>
68603
68604         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68605
68606 2006-07-29  Bruno Haible  <bruno@clisp.org>
68607
68608         * config/srclist.txt (*setenv.[ch]): Remove rules.
68609
68610 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68611
68612         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68613
68614 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68615
68616         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68617         arpa/inet.h.
68618
68619 2006-07-28  Simon Josefsson  <jas@extundo.com>
68620
68621         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68622         * modules/inet_pton (Depends-on): Likewise.
68623
68624 2006-07-28  Simon Josefsson  <jas@extundo.com>
68625
68626         * m4/netinet_in_h.m4: New file.
68627
68628 2006-07-28  Simon Josefsson  <jas@extundo.com>
68629
68630         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68631         #include's.
68632
68633 2006-07-28  Simon Josefsson  <jas@extundo.com>
68634
68635         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68636         #include's.
68637
68638 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68641         setgid on directories only if they set these bits.
68642         * lib/modechange.h: Remove obsolete comment about masks.
68643
68644 2006-07-28  Eric Blake  <ebb9@byu.net>
68645
68646         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68647         macro expansion.
68648
68649 2006-07-28  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68652
68653 2006-07-28  Bruno Haible  <bruno@clisp.org>
68654
68655         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68656
68657 2006-07-28  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68660         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68661         Define fallbacks.
68662         Avoids link error on FreeBSD 4.x.
68663         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68664
68665         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68666         encoding.
68667         * lib/mbswidth.c (iswcntrl): Likewise.
68668
68669 2006-07-27  Bruno Haible  <bruno@clisp.org>
68670
68671         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68672         test.
68673
68674 2006-07-27  Bruno Haible  <bruno@clisp.org>
68675
68676         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68677         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68678         defined.
68679
68680 2006-07-26  Eric Blake  <ebb9@byu.net>
68681
68682         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68683
68684 2006-07-26  Eric Blake  <ebb9@byu.net>
68685
68686         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68687         like mingw that lack mkstemp.
68688         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68689         avoid compilation warning on mingw.
68690
68691 2006-07-26  Bruno Haible  <bruno@clisp.org>
68692
68693         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68694         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68695         INT_FAST*_MIN, INTPTR_MIN.
68696
68697 2006-07-25  Bruno Haible  <bruno@clisp.org>
68698
68699         * modules/version-etc (Depends-on): Add stdarg.
68700
68701 2006-07-25  Bruno Haible  <bruno@clisp.org>
68702
68703         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68704         complex commands.
68705
68706 2006-07-25  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68709         defined in <stdarg.h> or config.h.
68710
68711 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68714         (gl_STDIO_SAFER): Remove.
68715
68716 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * MODULES.html.sh (File stream based Input/Output):
68719         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68720         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68721         * modules/fopen-safer, modules/tmpfile-safer: New files.
68722         * modules/stdio-safer: Remove.
68723
68724 2006-07-24  Bruno Haible  <bruno@clisp.org>
68725
68726         * modules/tmpdir: New file.
68727         * MODULES.html.sh (File system functions): Add it.
68728
68729 2006-07-24  Bruno Haible  <bruno@clisp.org>
68730
68731         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68732         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68733
68734 2006-07-24  Bruno Haible  <bruno@clisp.org>
68735
68736         * modules/clean-temp: New file.
68737
68738 2006-07-24  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/tmpdir.m4: New file, from GNU gettext.
68741
68742 2006-07-24  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/tmpdir.h: New file, from GNU gettext.
68745         * lib/tmpdir.c: New file, from GNU gettext.
68746
68747 2006-07-24  Bruno Haible  <bruno@clisp.org>
68748
68749         * lib/clean-temp.h: New file, from GNU gettext.
68750         * lib/clean-temp.c: New file, from GNU gettext.
68751
68752 2006-07-23  Eric Blake  <ebb9@byu.net>
68753
68754         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68755         (Depends-on): Add binary-io.
68756
68757 2006-07-23  Eric Blake  <ebb9@byu.net>
68758
68759         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68760
68761 2006-07-23  Eric Blake  <ebb9@byu.net>
68762
68763         * lib/tmpfile-safer.c: New file.
68764         * lib/stdio-safer.h (fopen_safer): Add prototype.
68765         * lib/stdio--.h (tmpfile): Make safer.
68766
68767 2006-07-23  Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68770         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68771         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68772         gl_linked_remove_at): Use it.
68773
68774 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68775         and Simon Josefsson <jas@extundo.com>
68776
68777         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68778
68779         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68780
68781 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68782
68783         * modules/close-stream: New file.
68784         * modules/closeout (Description): Make it clear that it exits
68785         with a diagnostic on error.
68786         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68787         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68788
68789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * m4/close-stream.m4: New file.
68792
68793 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/close-stream.c, lib/close-stream.h: New files.
68796
68797 2006-07-22  Bruno Haible  <bruno@clisp.org>
68798
68799         Merge from GNU gettext 0.15.
68800
68801         2006-05-01  Bruno Haible  <bruno@clisp.org>
68802
68803                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68804
68805         2006-07-22  Bruno Haible  <bruno@clisp.org>
68806
68807                 * modules/javaversion: New file.
68808                 * MODULES.html.sh (Java): Add javaversion.
68809
68810         2006-03-12  Bruno Haible  <bruno@clisp.org>
68811
68812                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68813
68814         2005-12-04  Bruno Haible  <bruno@clisp.org>
68815
68816                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68817                 (untested).
68818
68819         2006-06-21  Bruno Haible  <bruno@clisp.org>
68820
68821                 Avoid warnings from recent versions of mcs.
68822                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68823                 -o, -L, -r any more. Use options documented since mcs-1.0
68824                 instead. Similarly for -g.
68825
68826         2005-12-04  Bruno Haible  <bruno@clisp.org>
68827
68828                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68829                 .resources, not .resource.
68830
68831         2005-07-09  Bruno Haible  <bruno@clisp.org>
68832
68833                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68834                 add a .dll suffix.
68835                 Reported by Mark Junker <mjscod@gmx.de>.
68836
68837         2006-07-22  Bruno Haible  <bruno@clisp.org>
68838
68839                 * modules/gettext: Upgrade to gettext-0.15.
68840                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68841                 m4/visibility.m4.
68842                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68843
68844 2006-07-22  Bruno Haible  <bruno@clisp.org>
68845
68846         Merge from GNU gettext 0.15.
68847
68848         2006-03-25  Bruno Haible  <bruno@clisp.org>
68849
68850                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68851
68852         2006-07-21  Bruno Haible  <bruno@clisp.org>
68853
68854                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68855                 "1.1".
68856
68857         2006-05-09  Bruno Haible  <bruno@clisp.org>
68858
68859                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68860                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68861                 for the conftestver execution.
68862
68863         2006-05-01  Bruno Haible  <bruno@clisp.org>
68864
68865                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68866                 optional target-version argument. Verify that the compiler
68867                 groks source of the specified source-version, or add -source
68868                 option as necessary. Verify that the compiler produces
68869                 bytecode in the specified target-version, or add -target and
68870                 -source options as necessary. Make the result of the test
68871                 available as variable CONF_JAVAC. Also log error output in
68872                 config.log.
68873
68874         2006-03-11  Bruno Haible  <bruno@clisp.org>
68875
68876                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68877
68878         2006-05-09  Bruno Haible  <bruno@clisp.org>
68879
68880                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68881                 CLASSPATH_SEPARATOR to a semicolon.
68882
68883         2006-03-12  Bruno Haible  <bruno@clisp.org>
68884
68885                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68886                 available as variable CONF_JAVA, for subsequent autoconf
68887                 tests. Also log error output in config.log.
68888
68889         2006-07-19  Bruno Haible  <bruno@clisp.org>
68890
68891                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68892                 that getline works on glibc2 systems. Needed to avoid trouble
68893                 in relocatable.c.
68894                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68895
68896         2005-12-04  Bruno Haible  <bruno@clisp.org>
68897
68898                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68899                 launcher (untested).
68900
68901         2005-12-04  Bruno Haible  <bruno@clisp.org>
68902
68903                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68904
68905         2006-07-22  Bruno Haible  <bruno@clisp.org>
68906
68907                 * gettext.m4: Update from GNU gettext-0.15.
68908                 * nls.m4: Likewise.
68909                 * po.m4: Likewise.
68910                 * inttypes-pri.m4: Likewise.
68911                 * inttypes-h.m4: Renamed from inttypes.m4.
68912                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68913
68914 2006-07-22  Bruno Haible  <bruno@clisp.org>
68915
68916         Merge from GNU gettext 0.15.
68917
68918         2005-07-05  Bruno Haible  <bruno@clisp.org>
68919
68920                 * printf-args.c (printf_fetchargs): Work around broken
68921                 definition of wint_t on mingw.
68922
68923         2005-02-12  Bruno Haible  <bruno@clisp.org>
68924
68925                 * xallocsa.h: Add extern "C" for C++.
68926
68927         2006-05-17  Bruno Haible  <bruno@clisp.org>
68928
68929                 Cygwin portability.
68930                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68931
68932         2006-04-30  Bruno Haible  <bruno@clisp.org>
68933
68934                 * progreloc.c: Include <mach-o/dyld.h> if available.
68935                 (find_executable): Use _NSGetExecutablePath when possible.
68936
68937         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68938
68939                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68940                 function.
68941
68942         2005-12-29  Bruno Haible  <bruno@clisp.org>
68943
68944                 * progreloc.c (set_program_name_and_installdir): Fix
68945                 compilation error.
68946
68947         2005-12-04  Bruno Haible  <bruno@clisp.org>
68948
68949                 Cygwin portability.
68950                 * progreloc.c: Include <windows.h> also on Cygwin.
68951                 (find_executable): Add support for Cygwin.
68952                 (set_program_name_and_installdir): Handle also platforms with
68953                 nonempty EXEEXT.
68954
68955         2006-07-11  Bruno Haible  <bruno@clisp.org>
68956
68957                 * javacomp.c: Fix a comment.
68958                 Reported by Jim Meyering.
68959
68960         2006-04-30  Bruno Haible  <bruno@clisp.org>
68961
68962                 * javacomp.h (compile_java_class): Add source_version,
68963                 target_version arguments.
68964                 * javacomp.c: Rewritten to choose only a compiler that
68965                 respects the specified source_version and target_version.
68966
68967         2006-06-27  Bruno Haible  <bruno@clisp.org>
68968
68969                 Assume correct S_ISDIR macro.
68970                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68971
68972         2006-07-22  Bruno Haible  <bruno@clisp.org>
68973
68974                 * javaversion.h: New file, from GNU gettext.
68975                 * javaversion.c: New file, from GNU gettext.
68976                 * javaversion.java: New file, from GNU gettext.
68977                 * javaversion.class: New file, from GNU gettext.
68978
68979         2006-05-17  Bruno Haible  <bruno@clisp.org>
68980
68981                 Cygwin portability.
68982                 * javaexec.c (execute_java_class): Test for jview program
68983                 also on Cygwin.
68984
68985         2006-04-09  Bruno Haible  <bruno@clisp.org>
68986
68987                 * fatal-signal.c: Don't include string.h.
68988                 (at_fatal_signal): Use a copying loop instead of memcpy.
68989
68990         2005-12-04  Bruno Haible  <bruno@clisp.org>
68991
68992                 * csharpexec.c: Add support for 'clix' launcher (untested).
68993                 (execute_csharp_using_sscli): New function.
68994                 (execute_csharp_program): Call it.
68995
68996         2006-06-21  Bruno Haible  <bruno@clisp.org>
68997
68998                 Avoid warnings from recent versions of mcs.
68999                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69000                 -o, -L, -r any more. Use options documented since mcs-1.0
69001                 instead. Similarly for -g.
69002
69003         2005-07-09  Bruno Haible  <bruno@clisp.org>
69004
69005                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69006                 add a .dll suffix.
69007                 Reported by Mark Junker <mjscod@gmx.de>.
69008
69009         2006-06-17  Bruno Haible  <bruno@clisp.org>
69010
69011                 * config.charset: Update for NetBSD 3.0.
69012
69013         2006-05-17  Bruno Haible  <bruno@clisp.org>
69014
69015                 Cygwin portability.
69016                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69017
69018         2006-05-16  Bruno Haible  <bruno@clisp.org>
69019
69020                 * localcharset.c [CYGWIN]: Include <windows.h>.
69021                 (get_charset_aliases): For Cygwin, return the same CPxxx
69022                 aliases list as under WIN32.
69023                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69024                 the environment variables. Fall back to GetACP().
69025
69026         2006-04-05  Bruno Haible  <bruno@clisp.org>
69027
69028                 * config.charset: Update Juan Manuel Guerrero's address.
69029
69030         2005-02-12  Bruno Haible  <bruno@clisp.org>
69031
69032                 * allocsa.h: Add extern "C" for C++.
69033
69034         2005-02-10  Bruno Haible  <bruno@clisp.org>
69035
69036                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69037                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69038
69039         2006-07-22  Bruno Haible  <bruno@clisp.org>
69040
69041                 * gettext.h: Update to GNU gettext-0.15.
69042
69043 2006-07-22  Bruno Haible  <bruno@clisp.org>
69044
69045         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69046         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69047         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69048
69049 2006-07-21  Eric Blake  <ebb9@byu.net>
69050
69051         * modules/stdlib-safer: New file.
69052         * MODULES.html.sh (File stream based Input/Output): Add
69053         stdlib-safer.
69054
69055 2006-07-21  Eric Blake  <ebb9@byu.net>
69056
69057         * lib/stdlib-safer.h: New file from coreutils, required by
69058         stdlib--.h.
69059
69060 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69063
69064 2006-07-20  Bruno Haible  <bruno@clisp.org>
69065
69066         * gnulib-tool: Recognize new option --assume-autoconf.
69067         (autoconf_minversion): New variable.
69068         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69069
69070 2006-07-20  Bruno Haible  <bruno@clisp.org>
69071
69072         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69073
69074 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69075
69076         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69077         Reindent and repaginate.
69078
69079 2006-07-19  Derek Price  <derek@ximbiot.com>
69080
69081         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69082         Correct grammar.
69083
69084 2006-07-17  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/list: New file.
69087         * modules/array-list: New file.
69088         * modules/carray-list, modules/carray-list-tests: New files.
69089         * modules/linked-list, modules/linked-list-tests: New files.
69090         * modules/avltree-list, modules/avltree-list-tests: New files.
69091         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69092         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69093         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69094         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69095         * modules/oset: New file.
69096         * modules/array-oset: New file.
69097         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69098         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69099         * tests/test-carray_list.c: New file.
69100         * tests/test-linked_list.c: New file.
69101         * tests/test-avltree_list.c: New file.
69102         * tests/test-rbtree_list.c: New file.
69103         * tests/test-linkedhash_list.c: New file.
69104         * tests/test-avltreehash_list.c: New file.
69105         * tests/test-rbtreehash_list.c: New file.
69106         * tests/test-avltree_oset.c: New file.
69107         * tests/test-rbtree_oset.c: New file.
69108         * MODULES.html.sh (Container data structures): New section.
69109
69110 2006-07-17  Bruno Haible  <bruno@clisp.org>
69111
69112         * m4/gl_list.m4: New file.
69113
69114 2006-07-17  Bruno Haible  <bruno@clisp.org>
69115
69116         * lib/gl_list.h: New file.
69117         * lib/gl_list.c: New file.
69118         * lib/gl_array_list.h: New file.
69119         * lib/gl_array_list.c: New file.
69120         * lib/gl_carray_list.h: New file.
69121         * lib/gl_carray_list.c: New file.
69122         * lib/gl_linked_list.h: New file.
69123         * lib/gl_linked_list.c: New file.
69124         * lib/gl_anylinked_list1.h: New file.
69125         * lib/gl_anylinked_list2.h: New file.
69126         * lib/gl_avltree_list.h: New file.
69127         * lib/gl_avltree_list.c: New file.
69128         * lib/gl_anyavltree_list1.h: New file.
69129         * lib/gl_anyavltree_list2.h: New file.
69130         * lib/gl_rbtree_list.h: New file.
69131         * lib/gl_rbtree_list.c: New file.
69132         * lib/gl_anyrbtree_list1.h: New file.
69133         * lib/gl_anyrbtree_list2.h: New file.
69134         * lib/gl_anytree_list1.h: New file.
69135         * lib/gl_anytree_list2.h: New file.
69136         * lib/gl_linkedhash_list.h: New file.
69137         * lib/gl_linkedhash_list.c: New file.
69138         * lib/gl_anyhash_list1.h: New file.
69139         * lib/gl_anyhash_list2.h: New file.
69140         * lib/gl_avltreehash_list.h: New file.
69141         * lib/gl_avltreehash_list.c: New file.
69142         * lib/gl_rbtreehash_list.h: New file.
69143         * lib/gl_rbtreehash_list.c: New file.
69144         * lib/gl_anytreehash_list1.h: New file.
69145         * lib/gl_anytreehash_list2.h: New file.
69146
69147         * lib/gl_oset.h: New file.
69148         * lib/gl_oset.c: New file.
69149         * lib/gl_array_oset.h: New file.
69150         * lib/gl_array_oset.c: New file.
69151         * lib/gl_avltree_oset.h: New file.
69152         * lib/gl_avltree_oset.c: New file.
69153         * lib/gl_rbtree_oset.h: New file.
69154         * lib/gl_rbtree_oset.c: New file.
69155         * lib/gl_anytree_oset.h: New file.
69156
69157 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * m4/mkancesdirs.m4: New file.
69160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69161         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69162         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69163         it.
69164
69165 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69168         * lib/mkancesdirs.h: New files.
69169         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69170         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69171         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69172         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69173         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69174         callers changed.  Revamp internals significantly, by not
69175         attempting to create directories that are temporarily more
69176         permissive than the final results.  Do not attempt to use
69177         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69178         This removes some race conditions, fixes some bugs, and simplifies
69179         things.  Use new dirchownmod function to do owner and mode changes.
69180         * lib/mkdir-p.h: Likewise.
69181         * lib/modechange.c (octal_to_mode): New function.
69182         (struct mode_change): New member mentioned.
69183         (make_node_op_equals): New arg mentioned.  All callers changed.
69184         (mode_compile): Keep track of which mode bits the user has explicitly
69185         mentioned.
69186         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69187         New arg PMODE_BITS, to keep track of which mode bits the user
69188         mentioned; it treats S_ISUID and S_ISGID speciall.
69189         All callers changed.
69190         * lib/modechange.h: Likewise.
69191
69192 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * MODULES.html.sh: Add mkancestors.
69195         * modules/mkancesdirs: New module.
69196         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69197         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69198         The chdir-safer and afs files are now orphans; I'll remove them
69199         unless someone speaks up.
69200         Add lib/dirchownmod.c, lib/dirchownmod.h.
69201         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69202         Add lchown, mkancesdirs.
69203         (Maintainer): Add self.
69204
69205 2006-07-15  Karl Berry  <karl@gnu.org>
69206
69207         * gnulib-tool: help message wording/arrangement.
69208
69209 2006-07-14  Simon Josefsson  <jas@extundo.com>
69210
69211         * doc/gnulib.texi (Libtool and Windows): New section.
69212
69213 2006-07-12  Simon Josefsson  <jas@extundo.com>
69214
69215         * modules/gendocs (License): Fix license, approved by Karl.
69216
69217 2006-07-12  Eric Blake  <ebb9@byu.net>
69218
69219         * MODULES.html.sh: Add gendocs.
69220
69221 2006-07-11  Eric Blake  <ebb9@byu.net>
69222
69223         * modules/fdl: New module, to install doc/fdl.texi.
69224         * MODULES.html.sh: Add new section for documentation modules.
69225         * gnulib-tool: Avoid space-tab.
69226         (--doc-base): New option, to manage files from doc.
69227
69228 2006-07-11  Eric Blake  <ebb9@byu.net>
69229
69230         * m4/absolute-header.m4: Fix comments to match recent change.
69231
69232 2006-07-11  Eric Blake  <ebb9@byu.net>
69233
69234         * gnulib-tool: List --doc-base before --tests-base.
69235
69236 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69237
69238         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69239
69240 2006-07-11  Bruno Haible  <bruno@clisp.org>
69241
69242         * README: Mention where to put documentation.
69243
69244 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69245
69246         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69247
69248 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69251         to stdint.m4.
69252
69253 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69256         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69257         "no/such/file/stdint.h" when there is no such file, so that
69258         the resulting C code can be parsed by dodgy compilers.
69259         Problems reported by Bob Proulx.
69260
69261 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69262
69263         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69264         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69265         macros into the GNU _D_EXACT_NAMLEN.
69266         * lib/savedir.c:  Likewise.
69267         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69268
69269 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69270         and Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69273         * m4/savedir.m4:
69274         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69275         macros into the GNU _D_EXACT_NAMLEN.
69276
69277 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69280         around the absolute name, to work around a problem with the HP-UX
69281         11.23 native C compiler, reported by Bob Proulx.
69282
69283 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         * doc/maintain.texi, make-stds.texi: Sync from
69286         <http://savannah.gnu.org/projects/gnustandards>.
69287
69288 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69291
69292 2006-07-09  Jim Meyering  <jim@meyering.net>
69293
69294         * m4/glob.m4: Remove a doubled word in a comment.
69295
69296 2006-07-09  Jim Meyering  <jim@meyering.net>
69297
69298         * lib/argp-pv.c: Remove a doubled word in a comment.
69299         * lib/check-version.c (check_version): Likewise.
69300         * lib/javacomp.c (compile_java_class): Likewise.
69301
69302 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69305         for the benefit of people using Autoconf 2.60.  If you want to
69306         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69307         (or m4/onceonly.m4, if pre-2.57) manually.
69308
69309 2006-07-08  Jim Meyering  <jim@meyering.net>
69310
69311         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69312         comment.
69313         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69314         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69315         comment.
69316
69317 2006-07-08  Jim Meyering  <jim@meyering.net>
69318
69319         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69320
69321 2006-07-07  Simon Josefsson  <jas@extundo.com>
69322
69323         * tests/test-crc.c: Change expected crc value, the test vector
69324         were probably computed using the old broken crc.c?
69325
69326 2006-07-06  Simon Josefsson  <jas@extundo.com>
69327
69328         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69329         now the canonical place for the M4 file).
69330
69331         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69332         from the sys_socket dependency now.
69333
69334         * modules/inet_pton (Files): Ditto.
69335
69336         * modules/inet_ntop (Files): Ditto.
69337
69338 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69339
69340         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69341         not gl_PREREQ_GETUSERSHELL.
69342
69343 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69344
69345         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69346         with only one argument, for Autoconf 2.60.
69347         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69348         expand to nothing, so add a shell command to avoid syntax error.
69349         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69350
69351 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69352
69353         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69354
69355 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69358         no longer needed.  Check for isblank decl.
69359         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69360         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69361         of existence.
69362
69363 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         * lib/getloadavg.c: Use __VMS, not VMS.
69366         * lib/getopt.c: Likewise.
69367         * lib/getpagesize.h: Likewise.
69368         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69369         and probably does not work.
69370
69371 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69372
69373         * lib/.cppi-disable: Add wcwidth.
69374         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69375         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69376         (ISGRAPH): Remove.  All uses changed to isgraph.
69377         (FOLD) [!defined _LIBC]: Remove special case.
69378         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69379         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69380         HAVE_ISBLANK.
69381         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69382         case.
69383
69384 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69385
69386         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69387         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69388         brackets.  Other minor changes to suppress some compiler
69389         warnings.
69390
69391 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69392         and Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69395         of invoking obsolescent AC_HEADER_DIRENT macro.
69396         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69397         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69398         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69400         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69401         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69402         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69403         * m4/readdir.m4: Remove; no longer needed.
69404
69405 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69406         and Paul Eggert  <eggert@cs.ucla.edu>
69407
69408         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69409         Don't worry about this obsolete case any more.
69410         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69411         directories.
69412         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69413         worry about this obsolete case any more.
69414         * lib/fts.c: Likewise.
69415         * lib/getcwd.c: Likewise.
69416         * lib/glob.h: Likewise.
69417         * lib/savedir.c: Likewise.
69418
69419 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69422         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69423         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69424         needed.
69425         All uses removed.
69426         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69427         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69428         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69429         needed.
69430         * m4/getdate.m4 (gl_GETDATE): Likewise.
69431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69432         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69433         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69434         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69435         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69437         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69438         needed.
69439
69440 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * lib/memcasecmp.c: Include <limits.h>.
69443         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69444         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69445         Don't assume isdigit succeeds only on '0' through '9'.
69446
69447 2006-07-05  Eric Blake  <ebb9@byu.net>
69448
69449         * modules/getaddrinfo (Depends-on): Add snprintf.
69450
69451 2006-07-05  Eric Blake  <ebb9@byu.net>
69452
69453         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69454         to avoid 'header present but could not be compiled' on cygwin.
69455
69456 2006-07-05  Eric Blake  <ebb9@byu.net>
69457
69458         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69459         missing from netdb.h.
69460         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69461
69462 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69463
69464         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69465         no longer needed.
69466         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69467         * m4/getdate.m4 (gl_GETDATE): Likewise.
69468         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69469         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69470         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69471         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69472         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69473
69474 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69475
69476         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69477         All uses of is_space replaced by isspace.
69478         * lib/exit.h: Don't talk about STDC_HEADERS.
69479         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69480         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69481         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69482         replaced by isprint etc.
69483         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69484         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69485         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69486         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69487         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69488         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69489
69490 2006-07-05  Bruno Haible  <bruno@clisp.org>
69491
69492         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69493         the function exists, before testing against AIX.
69494         Reported by Martin Lambers <marlam@marlam.de>.
69495
69496 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69499         From Mark D. Baushke.
69500
69501 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69502
69503         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69504         to the absolute name, not just one, to bypass Sun C 5.8's
69505         "warning: #include of /usr/include/... may be non-portable".
69506
69507 2006-07-04  Eric Blake  <ebb9@byu.net>
69508
69509         * modules/dirname-tests: New test module.
69510         * tests/test-dirname.c: New file, replacing dirname.c
69511         TEST_DIRNAME section that was recently deleted.
69512
69513 2006-07-04  Bruno Haible  <bruno@clisp.org>
69514
69515         Assume ANSI C header files and <ctype.h> functions.
69516         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69517         (mbsnwidth): Use isprint, iscntrl instead.
69518
69519 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         Merge from coreutils.
69522         * MODULES.html.sh: Add xstrtold.
69523         * modules/xstrtold: New file.
69524         * modules/cycle-check (Files): Add lib/same-inode.h.
69525         * modules/dirname (Files): Add m4/double-slash-root.m4.
69526         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69527         * modules/mkdir-p (Files): Add lib/same-inode.h.
69528         * modules/same (Files): Add lib/same-inode.h.
69529
69530 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69533         This is to keep the terminology clean; POSIX talks about
69534         "absolute pathnames", not "full pathnames", but the GNU
69535         Coding Standards say to use "path" for something else;
69536         so use "absolute" to keep both sides happy.
69537         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69538         Set gl_absolute_header, not gl_full_header_path.
69539         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69540         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69541         All uses changed.
69542
69543         Merge from coreutils.
69544
69545         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69548         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69549         want to require the building of c-strtod.o.
69550         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69551         needs -lm directly.
69552         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69553
69554         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69557         --as-needed option if available.  Problem reported by Albert Chin in
69558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69559         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69560         cc merely issues a bunch of annoying warnings for --as-needed
69561         (this problem was reported by Bob Proulx).  Also, try linking with
69562         -lm to detect a bug in binutils 2.16 (this problem was reported
69563         by Ralf Wildenhues).
69564
69565         2006-06-18  Jim Meyering  <jim@meyering.net>
69566
69567         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69568         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69569         macro.
69570         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69571         also check for glibc-2.4's abort-inducing bug.
69572
69573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69574         Low-probability clean-up should be to use rmdir to get rid of
69575         the just-created directory, not unlink.
69576
69577         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69578         configure fail, and request a bug report to inform us about it.
69579         Add a comment that, barring reports to the contrary, in 2007 we'll
69580         assume ftruncate is universally available.
69581
69582         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69585
69586         2006-03-12  Jim Meyering  <jim@meyering.net>
69587
69588         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69589         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69590         * m4/same.m4 (gl_SAME): Likewise.
69591         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69592
69593         2006-03-11  Eric Blake  <ebb9@byu.net>
69594
69595         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69596         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69597         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69598         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69599
69600 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69603         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69604         reported by Mark D. Baushke, one in
69605         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69606
69607         Merge from coreutils.
69608
69609         * lib/.cppi-disable: Add stdint_.h.
69610         * lib/.cvsignore: Add stdint.h.
69611
69612         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69615         both double and long double versions.
69616         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69617         * lib/xstrtold.c: New file.
69618         * lib/xstrtod.h (xstrtold): New decl.
69619
69620         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69621
69622         * lib/filemode.c (setst): Remove.
69623         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69624         (arguably) clearer, and the generated code is a bit smaller on my
69625         Debian GNU/Linux stable x86 host.
69626
69627         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69630         Assume that filemode.h includes sys/types.h and sys/stat.h.
69631         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69632         (ftypelet): Reorder to put common cases first, for efficiency.
69633         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69634         to do 'M'.
69635         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69636         of 10, for compatibility with FreeBSD.  All callers changed.
69637         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69638         types that can't be deduced solely from st_mode.  First arg is now a
69639         const pointer.
69640         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69641         (strmode): Renamed from mode_string.
69642         (filemodestring): New decl.
69643         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69644         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69645         needed.
69646         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69647
69648         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69651         fsusage.h now does that.  Include fsusage.h first, to test interface.
69652         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69653         at most one method (the old code could have generated decls that
69654         didn't conform to C89, not that this was ever exercised).
69655         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69656
69657         2006-03-19  Jim Meyering  <jim@meyering.net>
69658
69659         Work even in a chroot where d_ino values for entries in "/"
69660         don't match the stat.st_ino values for the same names.
69661         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69662         number, iterate through all entries again, using lstat instead.
69663         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69664         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69665
69666         * lib/getcwd.c (__getcwd): Clarify a comment.
69667         Use memcpy in place of a call to strcpy.
69668
69669         2006-03-12  Jim Meyering  <jim@meyering.net>
69670
69671         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69672         matches that of the current directory (which we're about to chdir ".."
69673         out of), then save the dev-ino of the parent, instead.
69674
69675         * lib/same-inode.h (SAME_INODE): New file/macro.
69676         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69677         Include "same-inode.h", instead.
69678         * lib/same.c: Likewise.
69679         * lib/cycle-check.h: Include "same-inode.h".
69680         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69681         * lib/cycle-check.c (SAME_INODE): Remove definition.
69682         * lib/root-dev-ino.h: Include "same-inode.h".
69683
69684         2006-03-11  Eric Blake  <ebb9@byu.net>
69685
69686         * lib/same.c (same_name): s/base_name/last_component/
69687         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69688         * lib/filenamecat.c (file_name_concat): Likewise.
69689
69690         2006-03-11  Eric Blake  <ebb9@byu.net>,
69691                     Paul Eggert  <eggert@cs.ucla.edu>
69692
69693         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69694         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69695         drive prefix.
69696         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69697         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69698         (last_component): New method.
69699         * lib/dirname.c (dir_len): Determine when drive letters need a
69700         subsequent slash.  Preserve // when it is special.
69701         (dir_name): Don't append dot when drive letter is absolute.
69702         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69703         * lib/basename.c (base_name): New semantics - malloc the result.
69704         Preserve // when it is special.  Preserve relative files that look
69705         like drive letters.
69706         (base_len): Preserve // when it is special.
69707         (last_component): New method, similar to old base_name semantics.
69708         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69709         base_name.  Strip redundant slashes from ///.
69710
69711 2006-07-03  Jim Meyering  <jim@meyering.net>
69712
69713         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69714         macro is used before the first cycle_check call.
69715
69716 2006-07-03  Eric Blake  <ebb9@byu.net>
69717
69718         * modules/dirname (Depends-on): Add xstrndup.
69719
69720 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69723         test cases, so that config.log is a bit easier to follow.
69724
69725 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69728         both are 64 bits, since this seems to be the tradition, and this
69729         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69730         we ever run into a host that prefers long long to long in this
69731         case, we'll need another configure-time test.  Problem reported by
69732         Jim Meyering.
69733
69734 2006-07-02  Eric Blake  <ebb9@byu.net>
69735
69736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69737
69738 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * modules/inttypes (Depends-on): No longer depends on stdint.
69741         * modules/stdint (Description): Say more about assumptions.
69742         Say that the fast types might differ.  Say macros are used.
69743         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69744         (Makefile.am): Revise list of substituted symbols to match
69745         new stdint.m4.
69746         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69747         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69748         * tests/test-stdint.c (verify_same_types)
69749         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69750         the code conforms to C99/C89.
69751         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69752         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69753
69754 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69757         but fix a bug, by requiring at least 64 bits.
69758         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69759         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69760         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69761         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69762
69763         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69764         changes.  Make 2.59 a prerequisite.  Check and substitute for
69765         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69766         inttypes.h.  Do not use special include files; just use the
69767         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69768         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69769         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69770         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69771         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69772         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69773         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69774         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69775         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69776         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69777         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69778         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69779         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69780         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69781         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69782         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69783         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69784         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69785         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69786         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69787         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69788         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69789         not check for things that C99 does not require, e.g., int8_t.  If
69790         a test isn't needed unless <stdint.h> isn't working, and is
69791         unlikely to be needed for any other reason, then don't do it
69792         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69793         size_t, since we assume C89 freestanding at least.  Do not check
69794         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69795         the right thing even if the types are not defined.  Instead use:
69796         (gl_STDINT_TYPE_PROPERTIES): New macro.
69797         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69798         testing whether <sys/types.h> clashes, as Autoconf does this for
69799         us now.  All uses removed.
69800         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69801         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69802         (gl_CHECK_TYPE_SAME):
69803         Remove; no longer needed.
69804         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69805         exists, since we'll return 0 anyway in that case.
69806         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69807
69808 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69811         possible collision with system files.
69812         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69813         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69814         WCHAR_MIN and WCHAR_MAX in this case.
69815         (<stddef.h>): Do not include; no longer needed.
69816         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69817         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69818         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69819         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69820         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69821         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69822         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69823         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69824         !defined(__c99))]: Include in this case too, since it's harmless
69825         now.
69826         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69827         dangerous to do so.
69828         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69829         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69830         (_STDINT_MIN, _STDINT_MAX): New macros.
69831         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69832         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69833         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69834         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69835         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69836         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69837         macros, not typedefs; this simplifies things quite a bit.
69838         Use long int for all types narrower than int64_t.
69839         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69840         Define in terms of long long int or int64_t or long int,
69841         not int64_t or int32_t.  This saves some compile-time testing.
69842         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69843         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69844         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69845         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69846         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69847         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69848         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69849         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69850         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69851         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69852         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69853         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69854         undef any previous version and define our own version, for
69855         simplicity and consistency with the new macros for types.
69856         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69857         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69858         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69859         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69860         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69861         @WINT_T_SUFFIX@ to keep things simple here.
69862         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69863         Simplify by assuming typical 8/16/32/64 host, since we're
69864         already doing that elsewhere anyway.
69865         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69866         and assume long long int is 64 bits if available.  This
69867         speeds up 'configure'.
69868
69869 2006-07-01  Eric Blake  <ebb9@byu.net>
69870
69871         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69872         Reported by Andreas Buening.
69873
69874 2006-07-01  Eric Blake  <ebb9@byu.net>
69875
69876         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69877
69878 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69879
69880         * lib/getaddrinfo.c: fixed typo
69881
69882 2006-06-29  Jim Meyering  <jim@meyering.net>
69883
69884         * modules/strftime (Maintainer): Add my name, since with the
69885         FPRINTFTIME changes strftime.c has forked from glibc.
69886
69887 2006-06-29  Eric Blake  <ebb9@byu.net>
69888
69889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69890
69891 2006-06-29  Eric Blake  <ebb9@byu.net>
69892
69893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69894
69895 2006-06-29  Eric Blake  <ebb9@byu.net>
69896
69897         * lib/stat_.h: New file.
69898
69899 2006-06-29  Eric Blake  <ebb9@byu.net>
69900
69901         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69902         unused static function.
69903
69904 2006-06-29  Eric Blake  <ebb9@byu.net>
69905
69906         * doc/functions.texi (Function Portability): Document missing lstat
69907         on mingw.
69908
69909 2006-06-29  Eric Blake  <ebb9@byu.net>
69910
69911         * MODULES.html.sh: Add sys_stat.
69912         * modules/sys_stat: New module.
69913         * modules/mkstemp (Depends-on): Add sys_stat.
69914
69915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69916
69917         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69918
69919 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69920
69921         * m4/c-bs-a.m4: Removed.
69922
69923 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69924
69925         * lib/strftime.c: Assume strftime() exists.
69926
69927 2006-06-29  Derek Price  <derek@ximbiot.com>
69928
69929         * modules/c-bs-a: Removed - \a is C89.
69930         * MODULES.html.sh: Remove c-bs-a.
69931
69932 2006-06-29  Bruno Haible  <bruno@clisp.org>
69933
69934         * modules/wcwidth (License): Change to LGPL.
69935
69936 2006-06-28  Simon Josefsson  <jas@extundo.com>
69937
69938         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69939         on _WIN32.
69940
69941         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69942         getnameinfo.
69943
69944 2006-06-28  Simon Josefsson  <jas@extundo.com>
69945
69946         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69947
69948 2006-06-28  Simon Josefsson  <jas@extundo.com>
69949
69950         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69951         functions there.  It will succeed on Windows XP, but on Windows
69952         2000 and (presumably) earlier, it will fail, and use the internal
69953         re-implementation.
69954         (use_win32_p): New function.
69955         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69956         Support AI_NUMERICSERV to disable getservbyname.
69957         (getnameinfo): New function, only supports
69958         NI_NUMERICHOST|NI_NUMERICSERV for now.
69959
69960         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69961         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69962         getnameinfo.
69963
69964 2006-06-28  Eric Blake  <ebb9@byu.net>
69965
69966         * modules/wcwidth: New file.
69967         * modules/mbchar (Depends-on): Add wcwidth.
69968         * modules/mbswidth (Depends-on): Add wcwidth.
69969         * MODULES.html.sh: Add wcwidth.
69970
69971 2006-06-28  Eric Blake  <ebb9@byu.net>
69972
69973         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69975
69976 2006-06-28  Eric Blake  <ebb9@byu.net>
69977
69978         * lib/xvasprintf.h: Fix comments.
69979
69980 2006-06-28  Eric Blake  <ebb9@byu.net>
69981
69982         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69983         * lib/mbswidth.c (wcwidth): Move from here...
69984         * lib/wcwidth.h: ...to this new file.
69985
69986 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69987
69988         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69989
69990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69991         it's obsolete.
69992         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69993
69994 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69995
69996         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69997         Autoconf 2.60 says this stuff was obsolete.
69998
69999 2006-06-28  Bruno Haible  <bruno@clisp.org>
70000
70001         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70002
70003 2006-06-28  Bruno Haible  <bruno@clisp.org>
70004
70005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70006         gt_TYPE_WCHAR_T.
70007
70008 2006-06-28  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70011         declaration for wcwidth.
70012         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70013
70014 2006-06-28  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70017         (mkdir): Define using _mkdir.
70018
70019 2006-06-28  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/getaddrinfo.h: Fix POSIX URL.
70022         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70023         _WIN32.
70024         (use_win32_p): Make static.
70025         (getaddrinfo): Reject service name if it is empty or does not consist
70026         solely of decimal digits, or if its value is > 65535.
70027         (getnameinfo): Remove useless casts.
70028
70029 2006-06-27  Simon Josefsson  <jas@extundo.com>
70030
70031         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70032         Eggert and Martin Lambers.
70033
70034 2006-06-27  Simon Josefsson  <jas@extundo.com>
70035
70036         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70037         Eggert and Martin Lambers.
70038
70039 2006-06-27  Bruno Haible  <bruno@clisp.org>
70040
70041         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70042         result to 0, not to empty.
70043         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70044
70045 2006-06-27  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70048
70049 2006-06-26  Simon Josefsson  <jas@extundo.com>
70050
70051         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70052         present.
70053
70054 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70057         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70059
70060 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70061
70062         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70063
70064 2006-06-26  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70067
70068 2006-06-26  Bruno Haible  <bruno@clisp.org>
70069
70070         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70071
70072 2006-06-26  Bruno Haible  <bruno@clisp.org>
70073
70074         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70075         SGI C compiler in pre-C99 mode.
70076         Suggested by Mark D. Baushke and Larry Jones.
70077
70078 2006-06-26  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70081         WCHAR_MAX.
70082         Reported by Mark D. Baushke and Larry Jones.
70083
70084 2006-06-26  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70087         in pre-C99 mode.
70088         Suggested by Mark D. Baushke and Larry Jones.
70089
70090 2006-06-23  Simon Josefsson  <jas@extundo.com>
70091             Bruno Haible  <bruno@clisp.org>
70092
70093         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70094         Emit mostlyclean-local rule.
70095         (func_emit_tests_Makefile_am): Likewise.
70096         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70097
70098 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70099
70100         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70101
70102 2006-06-23  Bruno Haible  <bruno@clisp.org>
70103
70104         * tests/test-stdint.c: Update to match ISO C 99 Technical
70105         Corrigendum 1.
70106
70107 2006-06-23  Bruno Haible  <bruno@clisp.org>
70108
70109         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70110
70111 2006-06-23  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/stdint_.h: Treat IRIX like OpenBSD.
70114
70115 2006-06-23  Bruno Haible  <bruno@clisp.org>
70116
70117         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70118         ISO C 99 Technical Corrigendum 1.
70119
70120 2006-06-22  Simon Josefsson  <jas@extundo.com>
70121
70122         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70123         MinGW.
70124
70125 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70128         needed.  Some compiler complained about some of them.  Problem reported
70129         by Larry Jones in
70130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70131
70132 2006-06-21  Simon Josefsson  <jas@extundo.com>
70133
70134         * tests/test-getaddrinfo.c: New file.
70135
70136         * modules/getaddrinfo-tests: New file.
70137
70138         * MODULES.html.sh: Add inet_pton.
70139
70140         * modules/inet_pton: New file.
70141
70142 2006-06-21  Simon Josefsson  <jas@extundo.com>
70143
70144         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70145         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70146         of using the (limited) gnulib implementation on Windows XP.
70147
70148         * m4/inet_pton.m4: New file.
70149
70150 2006-06-21  Simon Josefsson  <jas@extundo.com>
70151
70152         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70153         variable.
70154
70155         * lib/socket_.h: Don't define WINVER.
70156
70157         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70158         slightly modified to work in gnulib.
70159
70160 2006-06-21  Simon Josefsson  <jas@extundo.com>
70161
70162         * doc/gnulib.texi (Windows sockets): Add.
70163
70164 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70165
70166         * lib/read-file.c (fread_file): Start with buffer allocation of
70167         0 bytes rather than 1 byte; this simplifies the code.
70168         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70169         code to free buffer and save/restore errno.
70170         (internal_read_file): Remove unused local.
70171
70172 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70173
70174         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70175         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70176         Problem reported by Denis Excoffier in
70177         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70178
70179 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70180
70181         * modules/sys_socket, modules/socklen: Include sys/types since
70182         FreeBSD 4.x's sys/socket.h needs it.
70183
70184 2006-06-19  Simon Josefsson  <jas@extundo.com>
70185
70186         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70187
70188 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70191
70192 2006-06-19  Bruno Haible  <bruno@clisp.org>
70193
70194         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70195         and FULL_PATH_INTTYPES_H in angle brackets.
70196         Reported by Mark D. Baushke <mdb@gnu.org>.
70197
70198 2006-06-17  Eric Blake  <ebb9@byu.net>
70199
70200         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70201         errno.
70202
70203 2006-06-17  Bruno Haible  <bruno@clisp.org>
70204
70205         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70206         <sys/inttypes.h>.
70207
70208 2006-06-17  Bruno Haible  <bruno@clisp.org>
70209
70210         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70211         whether errno is declared. Assume <errno.h> declares errno.
70212
70213 2006-06-17  Bruno Haible  <bruno@clisp.org>
70214
70215         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70216
70217 2006-06-17  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70220         problem on Solaris 2.5.1.
70221
70222 2006-06-16  Eric Blake  <ebb9@byu.net>
70223
70224         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70225         * lib/unicodeio.c [!defined errno]: Likewise.
70226         * lib/strtol.c [!defined errno]: Likewise.
70227         * lib/strtod.c [!defined errno]: Likewise.
70228
70229 2006-06-15  Eric Blake  <ebb9@byu.net>
70230
70231         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70232
70233 2006-06-15  Eric Blake  <ebb9@byu.net>
70234
70235         * config/srclist.txt (ssize_t.m4): Lose sync.
70236
70237 2006-06-15  Bruno Haible  <bruno@clisp.org>
70238
70239         * modules/stdint (Files): Include m4/full-header-path.m4,
70240         m4/size_max.m4, m4/wchar_t.m4.
70241         (Makefile.am): Many more substitutions.
70242         * modules/stdint-tests: New file.
70243         * tests/test-stdint.c: New file.
70244
70245 2006-06-15  Bruno Haible  <bruno@clisp.org>
70246
70247         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70248         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70249         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70250         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70251         gl_CHECK_TYPE_SAME): New macros.
70252
70253 2006-06-15  Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70256
70257 2006-06-15  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/stdint_.h: Rewritten to be fully auto-configured.
70260         Fixes bug on HP-UX/IA64.
70261
70262 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70263
70264         * lib/getdate.y (__attribute__): Don't define if already defined.
70265         Problem reported by Larry Jones.
70266         * lib/utimens.c (__attribute__): Likewise.
70267
70268 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70271         reported by Andreas Schwab.
70272
70273 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70274             Bruno Haible  <bruno@clisp.org>
70275
70276         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70277         check for the declaration of strnlen and a run test that exposes the
70278         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70279         rpl_strndup.
70280
70281 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70282             Bruno Haible  <bruno@clisp.org>
70283
70284         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70285
70286 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70287
70288         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70289         compile test, for Tru64 4.0D.
70290
70291 2006-05-28  Karl Berry  <karl@gnu.org>
70292
70293         * config/srclist.txt (printf-args.c): lose sync.
70294
70295 2006-05-26  Martin Lambers  <marlam@marlam.de>
70296
70297         * lib/getpass.c: Updates the test for the native W32 API, and adds
70298         missing includes, thus fixing compilation warnings.
70299
70300 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70301
70302         * lib/exclude.c (exclude_fnmatch): New function.
70303         (excluded_file_name): Call exclude_fnmatch.
70304         * lib/exclude.h (excluded_file_name): New prototype
70305
70306 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * lib/tempname.c (small_open, large_open): New macros.
70309         (__open, __open64) [!_LIBC]: Remove.
70310         (__gen_tempname): Use small_open and large_open instead of __open
70311         and __open64.  This fixes a portability bug on HP-UX 11.11i
70312         reported by Simon Wing-Tang in
70313         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70314
70315 2006-05-24  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70318         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70319         Reported by Thorsten Maerz <torte@netztorte.de> via
70320         Aaron Stone <aaron@serendipity.cx>.
70321
70322 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70325         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70326         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70327         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70328         not really conditional on the cache.
70329         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70330
70331 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70334         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70335         (my_usleep): Don't mishandle maximum value.
70336
70337 2006-05-19  Jim Meyering  <jim@meyering.net>
70338
70339         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70340
70341 2006-05-17  Bruno Haible  <bruno@clisp.org>
70342
70343         Cygwin portability.
70344         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70345
70346 2006-05-17  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/stdint_.h: Fix recognition of Cygwin.
70349
70350 2006-05-15  Bruno Haible  <bruno@clisp.org>
70351
70352         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70353         on libtool patch by Ralf Wildenhues.
70354
70355 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70358         test for C99 conformance; (bool) 0.5 is an integer constant
70359         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70360         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70361
70362 2006-05-11  Simon Josefsson  <jas@extundo.com>
70363
70364         * m4/xvasprintf.m4: Fix obvious typo.
70365
70366 2006-05-11  Jim Meyering  <jim@meyering.net>
70367
70368         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70369         James Lemley.
70370
70371 2006-05-10  Simon Josefsson  <jas@extundo.com>
70372
70373         * lib/md4.c: Typo fix, update copyright years.
70374         (K1, K2): Don't use L because it turn computations into 64-bit on
70375         64-bit platforms.
70376
70377 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70380         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70381         unwanted sign propagation, e.g., on hosts with 64-bit int.
70382         There still are some problems with reeelly weird theoretical hosts
70383         (e.g., 33-bit int) but it's not worth worrying about now.
70384         * lib/sha1.c (rol): Likewise.
70385         (K1, K2, K3, K4): Remove unnecessary L suffix.
70386
70387 2006-05-10  Bruno Haible  <bruno@clisp.org>
70388
70389         * lib/des.c: Cast to avoid warnings.
70390
70391 2006-05-09  Bruno Haible  <bruno@clisp.org>
70392
70393         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70394         (Depends-on): Depend also on xsize, stdarg.
70395         (configure.ac): Add gl_XVASPRINTF.
70396
70397 2006-05-09  Bruno Haible  <bruno@clisp.org>
70398
70399         * m4/xvasprintf.m4: New file.
70400
70401 2006-05-09  Bruno Haible  <bruno@clisp.org>
70402
70403         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70404         (EOVERFLOW): Define fallback value.
70405         (xstrcat): New function.
70406         (xvasprintf): Recognize the special case of a string concatenation.
70407
70408 2006-05-08  Eric Blake  <ebb9@byu.net>
70409
70410         * gnulib-tool (func_version): Base copyright year on CVS date.
70411         (func_emit_copyright_notice): New function.
70412         (func_emit_lib_Makefile_am): Use it.
70413         (func_emit_tests_Makefile_am): Likewise.
70414         (func_import): Likewise.
70415
70416 2006-05-08  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/stdarg: New file.
70419         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70420
70421 2006-05-08  Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/stdarg.m4: New file, from GNU gettext.
70424
70425 2006-05-08  Bruno Haible  <bruno@clisp.org>
70426
70427         * config/srclist.txt (build-aux/config.rpath): different from latest
70428         release.
70429
70430 2006-05-08  Bruno Haible  <bruno@clisp.org>
70431
70432         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70433
70434 2006-05-05  Jim Meyering  <jim@meyering.net>
70435
70436         * m4/warning.m4: New file, derived from bison's file by the same name.
70437
70438 2006-05-03  Bruno Haible  <bruno@clisp.org>
70439
70440         * lib/stdint_.h: Shorter URL.
70441         * lib/inttypes.h: Likewise.
70442
70443 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70446
70447 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * lib/verify.h: Document the internals better.  Most of this change
70450         was written by Bruno Haible.
70451
70452 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * doc/verify.texi: New file, partly based on a proposal by
70455         Bruno Haible.
70456
70457 2006-05-02  Bruno Haible  <bruno@clisp.org>
70458
70459         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70460         test from here...
70461         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70462
70463 2006-04-29  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70466         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70467
70468 2006-04-29  Bruno Haible  <bruno@clisp.org>
70469
70470         * gnulib-tool: Make --update option actually work.
70471
70472 2006-04-29  Bruno Haible  <bruno@clisp.org>
70473
70474         * doc/gcd.texi: New file.
70475         * doc/gnulib.texi: Include it.
70476
70477 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/getdate.y (get_date): When adding relative date, start with the
70480         initial time, not with the result of the first mktime call.
70481
70482 2006-04-25  Bruno Haible  <bruno@clisp.org>
70483
70484         * gnulib-tool (func_import): Output the include directives in three
70485         blocks, sorted separately.
70486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70487
70488 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70491         to define main with arguments, for C++.  Reported by Eric Blake.
70492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70493         Prefer 'int main ()' to 'int main (void)', for C++.
70494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70496         for 'main', for C99 and C++.
70497
70498 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70501         Don't assume that exit status -1 is valid.
70502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70503         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70504         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70505         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70506         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70507         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70508         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70509         functions can be used without declaring them, or that you can
70510         exit with status -1.
70511         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70512
70513 2006-04-24  Karl Berry  <karl@gnu.org>
70514
70515         * config/srclist.txt (longdouble.m4): sync lost.
70516
70517 2006-04-24  Eric Blake  <ebb9@byu.net>
70518
70519         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70520
70521 2006-04-24  Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70524         poll() implementation in AIX.
70525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70526
70527 2006-04-24  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70530         assigned exactly once.
70531
70532 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70533             Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70536         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70537         for AM_CPPFLAGS.
70538
70539 2006-04-23  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/copy-file: Depend on unistd.
70542         * modules/execute: Likewise.
70543         * modules/fatal-signal: Likewise.
70544         * modules/findprog: Likewise.
70545         * modules/mkdtemp : Likewise.
70546         * modules/pipe: Likewise.
70547         * modules/wait-process: Likewise.
70548
70549 2006-04-23  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70552         condition was already detected.
70553         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70554
70555 2006-04-23  Bruno Haible  <bruno@clisp.org>
70556
70557         * lib/copy-file.c: Include <unistd.h> unconditionally.
70558         * lib/execute.c: Likewise.
70559         * lib/fatal-signal.c: Likewise.
70560         * lib/findprog.c: Likewise.
70561         * lib/mkdtemp.c: Likewise.
70562         * lib/pipe.h: Likewise.
70563         * lib/pipe.c: Likewise.
70564         * lib/wait-process.h: Likewise.
70565
70566 2006-04-23  Bruno Haible  <bruno@clisp.org>
70567
70568         * gnulib-tool (func_usage): Fix --import description. Document
70569         --update.
70570         (func_import): Create temporary file in a temporary directory, if
70571         --dry-run is specified. Silence errors from 'grep' when there are no
70572         m4 files in $m4dir.
70573         (func_create_testdir): Silence errors from 'grep' when there are no
70574         m4 files in $m4dir.
70575         Reported by Karl Berry <karl@freefriends.org>.
70576
70577 2006-04-20  Bruno Haible  <bruno@clisp.org>
70578
70579         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70580         one argument, so that the code will be portable to Autoconf 2.60.
70581         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70582         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70583         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70584
70585 2006-04-19  Derek Price  <derek@ximbiot.com>
70586             Eric Blake  <ebb9@byu.net>
70587
70588         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70589         rather than "/full/path.h".  Update comment to match.  Shorten &
70590         generalize m4_translit call via AS_TR_CPP.
70591
70592 2006-04-19  Derek Price  <derek@ximbiot.com>
70593             Eric Blake  <ebb9@byu.net>
70594
70595         * lib/inttypes.h: Correct grammar in comment.
70596
70597 2006-04-18  Derek Price  <derek@ximbiot.com>
70598             Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * modules/inttypes: New file.
70601         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70602
70603 2006-04-18  Derek Price  <derek@ximbiot.com>
70604             Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70607         New files.
70608
70609 2006-04-18  Derek Price  <derek@ximbiot.com>
70610             Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         * lib/inttypes.h: New file.
70613         * lib/strtoimax.c: Assume <inttypes.h>.
70614
70615 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70618         isn't mounted.  Problem reported by Kir Kolyshkin.
70619
70620 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70623         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70624         Derek R. Price.
70625         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70626         implementation.
70627
70628 2006-04-12  Eric Blake  <ebb9@byu.net>
70629
70630         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70631         is now done automatically by the corresponding Autoconf macro.
70632
70633 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70636         time_r.h.
70637
70638 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70639
70640         Merge regex changes from libc, removing some of our
70641         POSIX-conformance changes that were rejected and redoing them in a
70642         less-intrusive way.
70643
70644         * lib/regcomp.c (re_compile_internal, init_dfa):
70645         Length arg is now size_t, not Idx.  All uses changed.
70646         (peek_token): Forward decl now says internal_function.
70647         (__re_error_msgid, __re_error_msgid_idx):
70648         Now static rather than extern with attribute_hidden.
70649         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70650         For some reason libc prefers K&R style defns for external functions.
70651         (regerror) [!defined _LIBC]: Likewise.
70652         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70653         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70654         (build_range_exp, build_collating_symbol):
70655         Use K&R-style defn.
70656         (re_compile_fastmap): Use '\0' to memset, not 0.
70657         (utf8_sb_map): Make the calculations more obvious.
70658         (init_dfa, parse_bracket_exp, build_charclass_op):
70659         Call calloc and cast result, as glibc does.
70660         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70661         (build_range_exp, build_collating_symbol):
70662         Now internal functions.
70663
70664         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70665
70666         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70667         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70668         Don't depend on VMS; depend on __VMS instead, for POSIX
70669         namespace cleanness.
70670         (regoff_t): Define to ssize_t, not long int.
70671
70672         Remove the REG_ macros named below.  Instead, make the old names
70673         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70674         __USE_GNU_REGEX.
70675         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70676         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70677         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70678         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70679         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70680         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70681         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70682         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70683         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70684         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70685         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70686         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70687         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70688         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70689         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70690         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70691         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70692         (REG_NREGS):
70693         Remove.  All uses replaced by the old RE_* names.
70694         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70695         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70696         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70697         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70698         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70699         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70700         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70701         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70702         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70703         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70704         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70705         Don't bother having these macros be independent of each others'
70706         values, since they no longer exist in the POSIX name space.
70707
70708         Rename the following member names back to their old names,
70709         unless !__USE_GNU_REGEX.  All uses changed back.
70710         (buffer): Renamed from re_buffer.
70711         (allocated): Renamed from re_allocated.
70712         (used): Renamed from re_used.
70713         (syntax): Renamed from re_syntax.
70714         (fastmap): Renamed from re_fastmap.
70715         (translate): Renamed from re_translate.
70716         (can_be_null): Renamed from re_can_be_null.
70717         (regs_allocated): Renamed from re_regs_allocated.
70718         (fastmap_accurate): Renamed from re_fastmap_accurate.
70719         (no_sub): Renamed from re_no_sub.
70720         (not_bol): Renamed from re_not_bol.
70721         (not_eol): Renamed from re_not_eol.
70722         (newline_anchor): Renamed from re_newline_anchor.
70723         (num_regs): Renamed from rm_num_regs.
70724         (start): Renamed from rm_start.
70725         (end): Renamed from rm_end.
70726
70727         (free_state): Move up a bit.
70728
70729         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70730         #define to be empty.
70731         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70732         when that is what is intended.
70733         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70734         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70735         (MAX): New macro.
70736         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70737         All uses changed back to re_malloc, etc.  It's now the caller's
70738         responsibility to check for overflow; all callers changed.
70739         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70740         (re_x2nrealloc): Remove.
70741         (free_state): Remove decl.
70742
70743         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70744         (re_set_registers, re_exec):
70745         Use K&R-style defn.
70746
70747         2006-01-31  Roland McGrath  <roland@redhat.com>
70748
70749         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70750         Reported by Mike Frysinger <vapier@gentoo.org>.
70751
70752         2006-01-15  Andreas Jaeger  <aj@suse.de>
70753
70754         [BZ #1950]
70755         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70756         build_wcs_upper_buffer change.
70757         (build_wcs_upper_buffer): Change return type.
70758
70759         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70760
70761         * lib/regex_internal.h: Include <stdint.h> if available.
70762
70763         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70764
70765         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70766
70767         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70768
70769         * lib/regcomp.c: Adjust for changed secondary hash function.
70770
70771         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70772
70773         * lib/regex.h: Pretty printing.
70774         Clean up namespace a bit.
70775
70776         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70777
70778         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70779         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70780
70781         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70782                     Ulrich Drepper  <drepper@redhat.com>
70783
70784         [BZ #1302]
70785         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70786         changed.
70787         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70788
70789         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70790
70791         [BZ #281]
70792         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70793         * lib/regcomp.c: Remove unnecessary uses of
70794         unsigned RE_TRANSLATE_TYPE.
70795         * lib/regex_internal.h: Likewise.
70796         * lib/regex_internal.c: Likewise.
70797         * lib/regexec.c: Likewise.
70798         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70799
70800         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70801
70802         * lib/regexec.c (find_recover_state): Remove unnecessary
70803         initialization.
70804         (transit_state_bkref): Make DFA a const pointer.
70805         (get_subexp): Likewise.
70806         (check_arrival): Likewise.
70807         (update_cur_sifted_state): Likewise.
70808         (re_search_internal): Likewise.
70809         (prune_impossible_nodes): Likewise.
70810         (acquire_init_state_context): Likewise.
70811         (proceed_next_node): Likewise.
70812         (set_regs): Likewise.
70813         (free_fail_stack_return): Likewise.
70814         (check_arrival_expand_ecl): Mark DFA parameter as const.
70815         (check_arrival_expand_ecl_sub): Likewise.
70816         (check_subexp_limits): Likewise.
70817         (sub_epsilon_src_nodes):  Likewise.
70818         (add_epsilon_src_nodes):  Likewise.
70819         (merge_state_array): Likewise.
70820         (update_regs): Likewise.
70821         (build_trtable): Likewise.
70822         (sift_states_backward): Mark MCTX parameter as const.
70823         (build_sifted_states): Likewise.
70824         (update_cur_sifted_state): Likewise.
70825         (sift_states_mkref): Likewise.
70826         (check_arrival_expand_ecl): Mark eclosure as const.
70827         (check_dst_limits_calc_pos_1): Likewise.
70828         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70829         pointer.
70830
70831         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70832
70833         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70834         (transit_state_sb): Likewise.
70835         (transit_state_mb): Likewise.
70836         (sift_states_iter_mb): Likewise.
70837         (check_arrival_add_next_nodes): Likewise.
70838         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70839         [_LIBC] (re_search_2_stub): Use mempcpy.
70840
70841         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70842         mbrtowc for very simple UTF-8 case.
70843
70844         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70845         a pointer-to-const.
70846         (re_acquire_state_context): Likewise.
70847         * lib/regex_internal.h: Adjust prototypes.
70848
70849         * lib/regex.c: Prevent using C++ compilers.
70850
70851         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70852         (re_acquire_state_context): Likewise.
70853
70854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * modules/regex (Depends-on): Add ssize_t.
70857
70858 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70861         translation table.
70862
70863 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70866
70867 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70868             Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70871         <sys/types.h> and <inttypes.h>.
70872
70873 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70874
70875         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70876         `__error_t_defined', so argp.h will not typedef the former.
70877
70878 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70881         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70882         glibc names.  Even if glibc is changed to conform to POSIX, the
70883         traditional names will be available anyway, since regex depends on
70884         the extensions module.  Also, fix a longstanding typo in the
70885         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70886         reported by Emanuele Giaquinta.  Also, change sense of cached
70887         variable, so that the message makes sense.
70888
70889 2006-03-24  Simon Josefsson  <jas@extundo.com>
70890
70891         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70892         including some doc fixes.
70893         (base64_encode_alloc): Fix +1 bug on allocation failures.
70894
70895 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70896
70897         * lib/base64.c (base64_encode): Do not read past end of array with
70898         unsanitized input on systems with CHAR_BIT > 8.
70899
70900 2006-03-24  Eric Blake  <ebb9@byu.net>
70901
70902         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70903
70904 2006-03-22  Karl Berry  <karl@gnu.org>
70905
70906         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70907         * config/srclistvars.sh (COREUTILS): new var.
70908
70909 2006-03-17  Jim Meyering  <jim@meyering.net>
70910
70911         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70912         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70913
70914 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70917         no longer needs it.  Instead, check that regoff_t is as least
70918         as wide as ptrdiff_t.
70919
70920         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70921         so that our regex.h stays compatible with the installed regex.
70922         This is helpful for installers who configure --without-included-regex.
70923         Problem reported by Emanuele Giaquinta.
70924
70925 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70928         Typedef to long int, not to off_, as POSIX will likely change
70929         in that direction.
70930
70931 2006-03-15  Eric Blake  <ebb9@byu.net>
70932
70933         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70934
70935 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70936
70937         * lib/argp-help.c (validate_uparams): Fix typo
70938         * lib/argp-parse.c (argp_default_options): Consistently begin help
70939         messages with a lowercase letter.
70940
70941 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70944         overrun buffers and shouldn't be used (much as gets shouldn't be
70945         used).
70946         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70947
70948 2006-03-08  Simon Josefsson  <jas@extundo.com>
70949
70950         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70951         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70952
70953 2006-03-08  Simon Josefsson  <jas@extundo.com>
70954
70955         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70956         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70957
70958 2006-03-08  Simon Josefsson  <jas@extundo.com>
70959
70960         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70961         signal that configure disabled the device.
70962
70963 2006-03-08  Simon Josefsson  <jas@extundo.com>
70964
70965         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70966         languages.
70967
70968 2006-03-07  Simon Josefsson  <jas@extundo.com>
70969
70970         * modules/getopt (Depends-on): Add unistd.
70971
70972         * modules/unistd: New file.
70973
70974 2006-03-07  Simon Josefsson  <jas@extundo.com>
70975
70976         * modules/gc-random: New file.
70977
70978 2006-03-07  Simon Josefsson  <jas@extundo.com>
70979
70980         * m4/unistd_h.m4: New file.
70981
70982 2006-03-07  Simon Josefsson  <jas@extundo.com>
70983
70984         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70985         test to be side-effect free by storing the result in the cache
70986         variable gl_cv_lib_readline, and moving the assignment of
70987         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70988         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70989
70990 2006-03-07  Simon Josefsson  <jas@extundo.com>
70991
70992         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70993         error on missing devices (the functions will return an error).
70994
70995         * m4/gc.m4: Move random stuff to gc-random.m4
70996
70997 2006-03-07  Simon Josefsson  <jas@extundo.com>
70998
70999         * lib/unistd_.h: New file.
71000
71001 2006-03-07  Simon Josefsson  <jas@extundo.com>
71002
71003         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71004
71005 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71008         Problem reported by Juan Manuel Guerrero.
71009
71010 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71013         the unistd module.
71014         * lib/getlogin_r.c: Likewise.
71015         * lib/getlogin_r.h: Likewise.
71016         * lib/glob.c: Likewise.
71017         * lib/pagealign_alloc.c: Likewise.
71018         * lib/unistd_.h: Remove; no longer needed.
71019
71020 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71021
71022         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71023         Add unistd.
71024         * modules/c-stack (Depends-on): Add unistd.
71025         * modules/getlogin_r: Likewise.
71026         * modules/glob: Likewise.
71027         * modules/pagealign_alloc: Likewise.
71028         * modules/unistd (Files): Remove lib/unistd_.h.
71029         (EXTRA_DIST): Remove.
71030         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71031         need unistd_.h.
71032         (MOSTLYCLEANFILES): Remove unistd.h-t.
71033
71034 2006-03-03  Simon Josefsson  <jas@extundo.com>
71035
71036         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71037
71038 2006-03-03  Simon Josefsson  <jas@extundo.com>
71039
71040         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71041         libidn and bison.
71042
71043 2006-03-03  Simon Josefsson  <jas@extundo.com>
71044
71045         * build-aux/maint.mk: Add indent target.
71046
71047 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71048
71049         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71050         our replacement poll.h in any case, to avoid a differing
71051         declaration from a system header.  Seen on AIX.
71052
71053 2006-03-01  Simon Josefsson  <jas@extundo.com>
71054
71055         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71056         <kasal@ucw.cz>.
71057
71058 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * modules/gettime (Depends-on): Add extensions module.
71061         * modules/nanosleep (Depends-on): Likewise.
71062         * modules/settime (Depends-on): Likewise.
71063
71064 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71067         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71068         pedantically.
71069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71070         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71071
71072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71073         not "==".  Reported by Ralf Wildenhues.
71074
71075 2006-03-01  Karl Berry  <karl@gnu.org>
71076
71077         * doc/Copyright/request-*: new files, synced from gnuorg.
71078
71079 2006-03-01  Karl Berry  <karl@gnu.org>
71080
71081         * config/srclist.txt (Copyright/*): new entries.
71082
71083 2006-02-28  Simon Josefsson  <jas@extundo.com>
71084
71085         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71086
71087 2006-02-27  Simon Josefsson  <jas@extundo.com>
71088
71089         * lib/base64.h: Indent #define's.  From Jim Meyering
71090         <jim@meyering.net>.
71091
71092 2006-02-27  Jim Meyering  <jim@meyering.net>
71093
71094         Revert the change of 2006-02-24, so these files can continue
71095         to be sync'd from gettext.
71096         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71097         of `config.h'.
71098
71099 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * modules/intprops: New file.
71102         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71103         Add intprops.
71104         * modules/getloadavg (Files): Remove lib/intprops.h.
71105         (Depends-on): Add intprops.
71106         * modules/human: Likewise.
71107         * modules/inttostr: Likewise.
71108         * modules/openat: Likewise.
71109         * modules/sig2str: Likewise.
71110         * modules/userspec: Likewise.
71111         * modules/utimecmp: Likewise.
71112         * modules/xnanosleep: Likewise.
71113         * modules/xstrtol: Likewise.
71114
71115 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71116
71117         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71118         * modules/lock-tests (TESTS): Use $(EXEEXT).
71119         * modules/tls-tests: Likewise.
71120         * modules/argp-tests: Likewise.
71121         (check_PROGRAMS): New var, replacing...
71122         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71123
71124 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71125
71126         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71127         `config.h'.
71128
71129 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71132
71133 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71134
71135         Sync from coreutils.
71136         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71137         gl_CHDIR_SAFER.
71138
71139 2006-02-22  Jim Meyering  <jim@meyering.net>
71140
71141         Sync from coreutils.
71142         * m4/chdir-safer.m4: New file.
71143
71144 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71147         AT_FDCWD exceeds INT_MAX.
71148         * lib/openat.h (AT_FDCWD): Likewise.
71149
71150 2006-02-17  Eric Blake  <address@hidden>
71151
71152         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71153
71154 2006-02-16  Simon Josefsson  <jas@extundo.com>
71155
71156         * modules/getaddrinfo (Depends-on): Add sys_socket.
71157
71158 2006-02-15  Simon Josefsson  <jas@extundo.com>
71159
71160         * build-aux/maint.mk: Add dsyntax-check rule.
71161
71162 2006-02-15  Eric Blake  <ebb9@byu.net>
71163
71164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71165         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71166         'present but cannot compile' warnings on cygwin.
71167         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71168         use ws2tcpip.h if sys/socket.h works.
71169         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71170         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71171
71172 2006-02-14  Simon Josefsson  <jas@extundo.com>
71173
71174         * modules/maintainer-makefile (Files): Rename.
71175
71176         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71177         and (the local) Makefile.cfg to maint-cfg.mk.
71178
71179         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71180         to the latter.
71181
71182         * modules/maintainer-makefile: New module.
71183
71184         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71185         severaly stripped to make it possible to build it up from scratch
71186         with reliable tests.
71187
71188         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71189         fixes to permit overriding the default actions when configure and
71190         makefile are not available.
71191
71192 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         Sync from coreutils.
71195         * modules/lstat (Depends-on): Don't depend on xalloc.
71196         (License): Change from GPL to LGPL, since this is now simply a
71197         replacement for a libc function.
71198
71199 2006-02-14  Jim Meyering  <jim@meyering.net>
71200
71201         Sync from coreutils.
71202
71203         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71204         failure on deficient systems, and simplify gnulib lgpl dependencies.
71205         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71206         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71207
71208         * lib/xalloc-die.c: Remove unused definition of N_.
71209
71210 2006-02-14  Jim Meyering  <jim@meyering.net>
71211
71212         Sync from coreutils.
71213         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71214         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71215         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71216         double-quote uses of that variable, to accommodate the rare case in
71217         which getmntent is available in none of the libraries checked.  This
71218         happens at least on FreeBSD 5.0.
71219
71220 2006-02-13  Simon Josefsson  <jas@extundo.com>
71221
71222         * gnulib-tool (Usage): Fix --import, from
71223         karl@freefriends.org (Karl Berry).
71224
71225 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71226
71227         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71228
71229 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71230
71231         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71232         "autoupdate" on 2005-12-12.
71233
71234 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * modules/closeout (Depends-on): Remove atexit.
71237
71238 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71241         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71242
71243 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71246         __EXTENSIONS__ if this causes compilation to fail.  Problem
71247         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71248         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71249
71250 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71253         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71255         All uses changed.
71256
71257 2006-01-26  Simon Josefsson  <jas@extundo.com>
71258
71259         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71260         prototype is visible on mingw32.
71261
71262         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71263         for mingw32.
71264
71265         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71266         mingw32).
71267
71268 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71269
71270         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71271         attempt to open for write; this always fails, at least on POSIX
71272         hosts.  This reinstates the 2006-01-09 change, which was
71273         inadvertently removed.
71274
71275 2006-01-26  Bruno Haible  <bruno@clisp.org>
71276
71277         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71278         Reported by Paul Eggert.
71279
71280 2006-01-26  Bruno Haible  <bruno@clisp.org>
71281             Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * lib/stdbool_.h (_Bool)
71284         [(! (defined __cplusplus || defined __BEOS__)
71285           && !defined __GNUC__
71286           && !(defined __HP_cc || defined __xlc__
71287                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71288                || defined __sgi))]:
71289         #define to signed char in these cases too; this simplifies
71290         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71291         etc., separately) and makes it more conservative.
71292
71293 2006-01-25  Simon Josefsson  <jas@extundo.com>
71294
71295         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71296         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71297         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71298
71299 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71300
71301         * lib/argp-namefrob.h: Bugfix. Remove stray #
71302
71303 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71306         so that we test the test.
71307         Check for yet another HP-UX cc bug involving *bool |= bool.
71308
71309 2006-01-25  Karl Berry  <karl@gnu.org>
71310
71311         * config/srclist.txt (vasnprintf.c): sync lost.
71312
71313 2006-01-25  Jim Meyering  <jim@meyering.net>
71314
71315         Sync from the stable (b5) branch of coreutils:
71316
71317         * lib/fts.c (fts_children): Don't let close() clobber errno from
71318         failed fchdir().
71319
71320         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71321         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71322         a dangling symlink.  That can also happen at least for ELOOP.
71323         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71324         FYI, this bug predates the inclusion of fts.c in coreutils.
71325
71326         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71327         in their own block, so pre-c99 compilers don't object.
71328
71329         Avoid the double-free (first in fts_read, second in fts_close) that
71330         would occur when an `active' directory is made inaccessible (e.g.,
71331         via chmod a-x) during a traversal.
71332         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71333         before returning.  Reproduce this failure by
71334         mkdir -p a/b; cd a; chmod a-x . b
71335         Reported by Stavros Passas.
71336
71337 2006-01-25  Jim Meyering  <jim@meyering.net>
71338
71339         * lib/fileblocks.c: Remove more useless parentheses.
71340         * lib/readutmp.h: Likewise.
71341
71342 2006-01-25  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71345         warnings.
71346         Reported by Paul Eggert.
71347
71348 2006-01-25  Bruno Haible  <bruno@clisp.org>
71349
71350         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71351         rid of a trap command. For Solaris sh.
71352         Reported by Mark D. Baushke <mdb@gnu.org>.
71353
71354 2006-01-24  Simon Josefsson  <jas@extundo.com>
71355
71356         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71357         Bruno.
71358
71359 2006-01-24  Karl Berry  <karl@gnu.org>
71360
71361         * config/srclist.txt (argp-namefrob.h): sync lost.
71362
71363 2006-01-24  Jim Meyering  <jim@meyering.net>
71364
71365         * modules/openat (Files): Add lib/intprops.h.
71366         From Mark D. Baushke.
71367
71368 2006-01-24  Jim Meyering  <jim@meyering.net>
71369
71370         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71371         Reported by Mark D. Baushke.
71372
71373 2006-01-24  Jim Meyering  <jim@meyering.net>
71374
71375         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71376
71377 2006-01-24  Bruno Haible  <bruno@clisp.org>
71378
71379         * modules/strnlen (Maintainer): Change from glibc to all.
71380
71381 2006-01-24  Bruno Haible  <bruno@clisp.org>
71382
71383         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71384         Patch by Paul Eggert.
71385
71386 2006-01-24  Bruno Haible  <bruno@clisp.org>
71387
71388         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71389         already has it.
71390         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71391         2005-11-26.
71392
71393         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71394         'signed char' to avoid problems with the built-in _Bool type.
71395         Reported by Paul Eggert on 2005-11-26.
71396
71397 2006-01-24  Bruno Haible  <bruno@clisp.org>
71398
71399         * gnulib-tool (func_import): Avoid constructing complicated sed
71400         expressions inside backquote.
71401         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71402
71403 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71404
71405         These changes imported from libc.
71406         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71407         test and two separate function calls.
71408         * lib/strndup.c (__strndup): Add libc_hidden_def.
71409
71410 2006-01-23  Simon Josefsson  <jas@extundo.com>
71411
71412         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71413         Remove the test_*_SOURCES variable: automake infers it by default.
71414         * modules/tls-tests: Likewise.
71415
71416 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         Work around porting bugs reported by Dieter in
71419         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71420         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71421         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71422         Include "getopt.h" first, to check interface.
71423         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71424         !HAVE_DECL_GETENV.
71425         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71426         (__strndup): Revert to K&R-style function dfns, the glibc style.
71427         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71428         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71429         Include strnlen.h first, to get prototype properly.
71430         (strnlen): Renamed from __strnlen.
71431         Remove weak alias.
71432
71433 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71436
71437 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * config/srclist.txt: Adjust to reflect glibc reorganization.
71440         This affects only comments.
71441
71442 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71443
71444          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71445          Reported by Bruce Korb <bkorb@gnu.org>.
71446
71447 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71450         to pacify gcc -Wswitch-default.
71451
71452 2006-01-22  Bruno Haible  <bruno@clisp.org>
71453
71454         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71455         temporary buffer for sprintf, take into account the precision also
71456         for 'd', 'i', 'u', 'o', 'x', 'X'.
71457
71458 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71459
71460         * modules/argp-tests: New module
71461         * tests/test-argp.c: New file
71462         * tests/test-argp-2.sh: New file
71463
71464 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71465
71466         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71467         (__argp_base_name): Removed
71468         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71469         typo.
71470         (__argp_base_name): Provide macro definition or extern declaration
71471         depending on the configuration
71472
71473 2006-01-20  Simon Josefsson  <jas@extundo.com>
71474
71475         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71476
71477 2006-01-20  Simon Josefsson  <jas@extundo.com>
71478
71479         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71480
71481 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71484         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71485         Suggested by Bruno Haible.
71486
71487 2006-01-20  Karl Berry  <karl@gnu.org>
71488
71489         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71490         until changes propagate, I guess.
71491
71492 2006-01-19  Simon Josefsson  <jas@extundo.com>
71493
71494         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71495
71496 2006-01-19  Simon Josefsson  <jas@extundo.com>
71497
71498         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71499
71500 2006-01-19  Simon Josefsson  <jas@extundo.com>
71501
71502         * gnulib-tool: Set check_PROGRAMS.
71503
71504         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71505         modules/des-tests, modules/gc-arcfour-tests,
71506         modules/gc-arctwo-tests, modules/gc-des-tests,
71507         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71508         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71509         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71510         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71511         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71512         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71513         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71514         test_*_SOURCES.
71515
71516 2006-01-18  Simon Josefsson  <jas@extundo.com>
71517
71518         * modules/socklen (Depends-on): Depend on sys_socket.
71519
71520 2006-01-18  Simon Josefsson  <jas@extundo.com>
71521
71522         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71523         modules/des-tests, modules/gc-arcfour-tests,
71524         modules/gc-arctwo-tests, modules/gc-des-tests,
71525         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71526         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71527         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71528         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71529         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71530         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71531         $(EXEEXT) to automake TESTS variable, for mingw32.
71532
71533 2006-01-17  Simon Josefsson  <jas@extundo.com>
71534
71535         * modules/socklen (Include): Need sys/socket.h.
71536
71537 2006-01-17  Bruno Haible  <bruno@clisp.org>
71538
71539         * modules/ssize_t (Include): Add <sys/types.h>.
71540
71541 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71544         it's not portable and it doesn't work with cross-compiles.
71545         Problem reported by Bruno Haible.  Fix missing-$ typo in
71546         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71547         -zignore from being used with Sun's C compiler.
71548
71549 2006-01-12  Simon Josefsson  <jas@extundo.com>
71550
71551         * lib/base64.c: Fix warning, reported by Bruno Haible
71552         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71553
71554 2006-01-12  Bruno Haible  <bruno@clisp.org>
71555
71556         * modules/ldd: New file.
71557         * build-aux/ldd.sh.in: New file.
71558         * MODULES.html.sh (Support for building libraries and executables): Add
71559         ldd.
71560
71561 2006-01-12  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/ldd.m4: New file.
71564
71565 2006-01-12  Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71568         endless loop while replacing $auxdir with build-aux.
71569
71570 2006-01-11  Simon Josefsson  <jas@extundo.com>
71571
71572         * lib/stdint_.h (SIZE_MAX): Add missing (.
71573
71574 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         Sync from coreutils.
71577         * lib/md5.c: Fix commentary typos.
71578         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71579         * lib/md5.h (__attribute__): Remove; unused.
71580         * lib/sha1.c: Fix commentary to match md5 better.
71581         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71582         so that we don't need to worry about alignment.  All uses changed.
71583         This merges the 2005-10-28 md5 change into sha1.
71584
71585 2006-01-11  Jim Meyering  <jim@meyering.net>
71586
71587         Sync from coreutils.
71588         * lib/md5.c (OP): Fix spacing.
71589
71590 2006-01-11  Bruno Haible  <bruno@clisp.org>
71591
71592         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71593         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71594         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71595
71596 2006-01-11  Bruno Haible  <bruno@clisp.org>
71597
71598         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71599         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71600         the "early" section as well.
71601
71602 2006-01-11  Bruno Haible  <bruno@clisp.org>
71603
71604         Avoid "ar: no archive members specified" error on MacOS X.
71605         * gnulib-tool (func_modules_add_dummy): New function.
71606         (func_import, func_create_testdir): Invoke it.
71607
71608 2006-01-11  Bruno Haible  <bruno@clisp.org>
71609
71610         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71611         with $auxdir in AC_CONFIG_FILES statements.
71612
71613 2006-01-11  Bruno Haible  <bruno@clisp.org>
71614
71615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71616         Initialize also noinst_HEADERS to empty.
71617
71618 2006-01-11  Bruno Haible  <bruno@clisp.org>
71619
71620         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71621         variables.
71622         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71623         autoreconf.
71624
71625 2006-01-11  Bruno Haible  <bruno@clisp.org>
71626
71627         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71628         overridable by the user.
71629         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71630
71631 2006-01-10  Simon Josefsson  <jas@extundo.com>
71632
71633         * modules/sys_socket: New file.
71634
71635 2006-01-10  Simon Josefsson  <jas@extundo.com>
71636
71637         * m4/sys_socket_h.m4: New file.
71638
71639 2006-01-10  Simon Josefsson  <jas@extundo.com>
71640
71641         * lib/socket_.h: New file.
71642
71643 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * modules/readutmp (Maintainer): Add myself.
71646
71647 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71648
71649         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71650         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71651         People who are still concerned with buggy memcmp implementations
71652         can invoke gl_FUNC_MEMCMP themselves.
71653
71654 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * lib/regex_internal.h (BITSET_WORD_BITS):
71657         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71658         preprocessor mishandles large unsigned values as if they were signed.
71659         Problem reported by Claudio Fontana in
71660         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71661
71662 2006-01-10  Jim Meyering  <jim@meyering.net>
71663
71664         Avoid the double-free (first in fts_read, second in fts_close) that
71665         would occur when an `active' directory is made inaccessible (e.g.,
71666         via chmod a-x) during a traversal.
71667         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71668         before returning.  Reproduce this failure by
71669         mkdir -p a/b; cd a; chmod a-x . b
71670         Reported by Stavros Passas.
71671
71672         Sync from coreutils.
71673         * lib/sha1.c: Tweak grammar in a comment.
71674
71675 2006-01-10  Jim Meyering  <jim@meyering.net>
71676
71677         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71678         Patch by Joerg Sonnenberger.
71679
71680 2006-01-10  Bruno Haible  <bruno@clisp.org>
71681
71682         * modules/readutmp: Depend on module free.
71683         * modules/strtok_r: Depend on module restrict.
71684
71685 2006-01-10  Bruno Haible  <bruno@clisp.org>
71686
71687         * modules/gettext (configure.ac): Add an invocation of
71688         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71689
71690 2006-01-10  Bruno Haible  <bruno@clisp.org>
71691
71692         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71693         Reported by Werner Lemberg <wl@gnu.org>.
71694
71695 2006-01-10  Bruno Haible  <bruno@clisp.org>
71696
71697         * lib/localcharset.c: Update from GNU gettext.
71698
71699 2006-01-10  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/argp.h (__const): Remove macro. Use const instead.
71702         * lib/argp-fmtstream.h (__const): Likewise.
71703         * lib/glob_.h (__const): Remove macro.
71704         * lib/glob-libc.h: Use const instead of __const.
71705
71706 2006-01-10  Bruno Haible  <bruno@clisp.org>
71707
71708         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71709         variable.
71710         Needed to avoid an automake error regarding the 'gettext' module.
71711
71712 2006-01-09  Simon Josefsson  <jas@extundo.com>
71713
71714         * modules/inet_ntop (Depends-on): Add restrict.
71715
71716 2006-01-09  Simon Josefsson  <jas@extundo.com>
71717
71718         * modules/gc-rijndael-tests (License): Put under LGPL.
71719
71720         * modules/gc-des-tests (License): Likewise.
71721
71722         * modules/gc-arcfour-tests (License): Likewise.
71723
71724         * modules/gc-arctwo-tests (License): Likewise.
71725
71726         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71727
71728         * modules/gc-hmac-sha1-tests (Files): Likewise.
71729
71730         * modules/gc-hmac-md5-tests (License): Likewise.
71731
71732         * modules/gc-sha1-tests (License): Likewise.
71733
71734         * modules/gc-md5-tests (License): Likewise.
71735
71736         * modules/gc-md4-tests (License): Likewise.
71737
71738         * modules/gc-md2-tests (License): Likewise.
71739
71740         * modules/gc-tests (License): Likewise.
71741
71742         * modules/des-tests (License): Likewise.
71743
71744         * modules/md4-tests (License): Likewise.
71745
71746         * modules/md2-tests (License): Likewise.
71747
71748 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71749
71750         Sync from coreutils:
71751
71752         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71753         * modules/lib-ignore: New file.
71754         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71755         chdir-safer.m4, lchmod.m4.
71756         * modules/openat: Add mkdirat.c, openat-priv.h.
71757
71758 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         Sync from coreutils.
71761         * m4/lib-ignore.m4: New file.
71762         * m4/lchmod.m4: New file.
71763
71764 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         Sync from coreutils.
71767         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71768         for write access: POSIX says that must fail.
71769         * lib/fts.c (diropen): Likewise.
71770         * lib/save-cwd.c (save_cwd): Likewise.
71771         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71772         well, for minor improvements on hosts that lack O_DIRECTORY.
71773         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71774         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71775         Fall back on chown if open failed with EACCES.
71776
71777         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71778         Report an error at compile-time if only a 1-second nominal clock
71779         resolution is found.
71780
71781         * lib/lchmod.h: New file.
71782         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71783         (make_dir_parents): Use lchown rather than chown, and
71784         lchmod rather than chmod.
71785
71786         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71787         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71788         "proc" reported by n0dalus.
71789
71790         * lib/mountlist.c: Include <limits.h>.
71791         (dev_from_mount_options)
71792         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71793         New function.  It no longer assumes "dev=" has the System V meaning
71794         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71795         (read_file_system_list)
71796         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71797         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71798         dev= in that case.
71799
71800         * lib/posixtm.h (PDS_PRE_2000): New macro.
71801         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71802         allow_century.  All usages changed.  Reject dates outside the range
71803         1969-1999 if PDS_PRE_2000 is used.
71804
71805 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         Sync from coreutils.
71808         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71809         (Time of day items): Mention the possibility of leap seconds.
71810         Problem reported by Dr. David Alan Gilbert.
71811
71812 2006-01-09  Jim Meyering  <jim@meyering.net>
71813
71814         Sync from coreutils.
71815
71816         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71817
71818         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71819
71820         * lib/modechange.c (mode_compile): Reject an invalid mode string
71821         that starts with an octal digit.  From Andreas Gruenbacher.
71822
71823         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71824         and dup to open_safer and dup_safer, respectively.
71825         (openat_permissive): Fix typo in comment.
71826
71827         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71828         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71829         (_): Remove; no longer needed.
71830         (openat): Renamed from rpl_openat; no need for rpl_openat
71831         since openat.h renames openat for us.
71832         Replace most of the body with a call to openat_permissive,
71833         to avoid duplicate code.
71834         Port to (probably hypothetical) environments were mode_t is
71835         wider than int.
71836         (openat_permissive): Require mode arg, so that we can check
71837         types better.  Put it just after flags.  Change cwd failure
71838         indicator from pointer-to-bool to pointer-to-errno-value.
71839         All callers changed.
71840         Invoke openat_save_fail and/or openat_restore_fail if
71841         cwd_errno is null, so that openat can call us.
71842         (openat_permissive, fdopendir, fstatat, unlinkat):
71843         Simplify errno handling to avoid some duplicate code,
71844         as it's OK to set errno on success.
71845         * lib/openat.h: Revamp code so that function macros depend on
71846         __OPENAT_PREFIX only, not also on AT_FDCWD.
71847         (openat_ro): Remove.  Caller changed to use openat_permissive.
71848         (openat_permissive): Now a macro, if not a function.
71849         (openat_restore_fail, openat_save_fail): Now always functions,
71850         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71851
71852         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71853         and openat.c.
71854         * lib/mkdirat.c: Include openat-priv.h.
71855         Remove definitions of macros defined therein.
71856         * lib/openat.c: Likewise.
71857
71858         * lib/mkdirat.c (mkdirat): New file and function.
71859         * lib/openat.h (mkdirat): Declare.
71860
71861         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71862
71863         * lib/openat.h (openat_permissive): Declare.
71864         (openat_ro): Define.
71865
71866         * lib/openat.c (EXPECTED_ERRNO): New macro.
71867         (openat_permissive): New function -- used in remove.c rewrite.
71868         (all functions): Set errno just before returning, only if there
71869         was an actual failure.
71870         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71871
71872         Emulate openat-family functions using Linux's procfs, if possible.
71873         Idea and some code based on Ulrich Drepper's glibc changes.
71874
71875         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71876         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71877         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71878         before falling back on save_cwd and restore_cwd.
71879         (fdopendir, fstatat, unlinkat): Likewise.
71880
71881         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71882         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71883
71884         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71885         as second argument to va_arg.  Otherwise, some versions of gcc
71886         warn that `if this code is reached, the program will abort'.
71887
71888 2006-01-09  Jim Meyering  <jim@meyering.net>
71889
71890         Sync from coreutils.
71891         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71892         Require openat-priv.h.
71893
71894 2006-01-09  Bruno Haible  <bruno@clisp.org>
71895
71896         * modules/strnlen (Include): Use strnlen.h.
71897
71898 2006-01-09  Bruno Haible  <bruno@clisp.org>
71899
71900         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71901
71902 2006-01-09  Bruno Haible  <bruno@clisp.org>
71903
71904         * lib/sysexit_.h (EX_OK): New macro.
71905         Suggested by Martin Lambers <marlam@marlam.de>.
71906
71907 2006-01-09  Bruno Haible  <bruno@clisp.org>
71908
71909         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71910         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71911
71912 2006-01-09  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71915         numbers.
71916
71917 2006-01-09  Bruno Haible  <bruno@clisp.org>
71918
71919         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71920         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71921         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71922         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71923
71924 2006-01-09  Bruno Haible  <bruno@clisp.org>
71925
71926         * build-aux/javacomp.sh.in: New file, moved from lib/.
71927         * modules/javacomp-script (Files): Update.
71928         (configure.ac): Add AC_CONFIG_FILES invocation.
71929         (EXTRA_DIST): Remove variable.
71930
71931         * build-aux/javaexec.sh.in: New file, moved from lib/.
71932         * modules/javaexec (Files): Update.
71933         (configure.ac): Add AC_CONFIG_FILES invocation.
71934         (EXTRA_DIST): Remove javaexec.sh.in.
71935
71936         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71937         * modules/csharpcomp-script (Files): Update.
71938         (configure.ac): Add AC_CONFIG_FILES invocation.
71939         (EXTRA_DIST): Remove variable.
71940
71941         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71942         * modules/csharpexec (Files): Update.
71943         (configure.ac): Add AC_CONFIG_FILES invocation.
71944         (EXTRA_DIST): Remove csharpexec.sh.in.
71945
71946 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71947
71948         Sync from coreutils.
71949
71950         Add POSIX ACL support
71951         * lib/acl.h (copy_acl, set_acl): Add declarations.
71952         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71953         systems other than Linux.
71954         (chmod_or_fchmod): New function: use fchmod when possible,
71955         and chmod otherwise.
71956         (file_has_acl): Add a POSIX ACL implementation, with a
71957         Linux-specific subcase.
71958         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71959         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71960         acls are unsupported.
71961         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71962         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71963         are unsupported.
71964
71965 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71966
71967         Sync from coreutils.
71968         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71969
71970 2006-01-07  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71973         gl_EARLY.
71974
71975 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71978         Problem reported for Mingw by Mark Junker.
71979
71980 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * README: Gnulib normally doesn't generate a tarball.
71983
71984 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71985
71986         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71987         long int, not int, for nanosecond counts, so that people who are
71988         used to POSIX struct timespec won't be surprised.  Reported by Jim
71989         Meyering.
71990
71991 2005-12-28  Bruno Haible  <bruno@clisp.org>
71992
71993         * build-aux/config.rpath: Update from GNU gettext.
71994
71995 2005-12-16  Jim Meyering  <jim@meyering.net>
71996
71997         * modules/fprintftime: New module.
71998         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71999
72000 2005-12-16  Jim Meyering  <jim@meyering.net>
72001
72002         * m4/fprintftime.m4: New file.
72003
72004 2005-12-16  Jim Meyering  <jim@meyering.net>
72005
72006         * lib/fprintftime.c, lib/fprintftime.h: New files.
72007
72008 2005-12-15  Simon Josefsson  <jas@extundo.com>
72009
72010         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72011         new m4/socklen.m4.
72012
72013 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72014
72015         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72016         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72017
72018 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72019
72020         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72021         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72022         struct uparams is valid. Fall back to the default values if it is
72023         not.
72024
72025 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72026
72027         * modules/argp (Files): Add argp-pin.c
72028         (Depends-on): dirname
72029         (lib_SOURCES): Add argp-pin.c
72030
72031 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72032
72033         * m4/argp.m4:  Check if program_invocation_name and
72034         program_invocation_short_name are declared and define appropriate
72035         macros if they are not.
72036
72037 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72038
72039         * lib/argp-help.c (__argp_base_name): New function
72040         (__argp_short_program_name): Rewrite using __argp_base_name
72041         * lib/argp-namefrob.h: Define program_invocation_name and
72042         program_invocation_short_name if requested
72043         (__argp_base_name): Add prototype
72044         * lib/argp-parse.c (argp_def): Use gettext wrappers
72045         (argp_default_parser): Use __argp_base_name
72046         * lib/argp-pin.c: New file. Defines program_invocation_name and
72047         program_invocation_short_name on systems that lack them.
72048
72049 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72050
72051         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72052         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72053         porting problem reported by Georg Schwarz in
72054         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72055
72056 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72059         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72060         porting problem reported by Georg Schwarz in
72061         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72062
72063 2005-12-05  Bruno Haible  <bruno@clisp.org>
72064
72065         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72066         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72067         Reported by Mark Junker <mjscod@gmx.de>.
72068
72069 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72072         Use implementation from Albert Chin, with some
72073         comments/corrections by Stepan Kasal and myself.
72074
72075 2005-12-02  Bruno Haible  <bruno@clisp.org>
72076
72077         * gnulib-tool (func_import): Accept GPLed build tool modules when
72078         --lgpl is given.
72079         * modules/csharpcomp-script: New file.
72080         * modules/csharpcomp: Depend on it.
72081         * modules/javacomp-script: New file.
72082         * modules/javacomp: Depend on it.
72083         Suggested by Simon Josefsson.
72084
72085 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72088         statement, to work around an HP-UX 10.20 compiler bug reported by
72089         Peter O'Gorman.
72090
72091 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * modules/savedir (Depends-on): Add openat.
72094
72095 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72098         (uintmax_t) [defined uintmax_t]: Do not declare.
72099         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72100         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72101         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72102         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72103         sake of portability to weird hosts that C allows (though we don't
72104         know of any practical examples).
72105
72106         * lib/savedir.h (fdsavedir): New decl.
72107         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72108         contains most of the former guts of savedir.
72109         (savedir): Use savedirstream.
72110         Include "openat.h".
72111
72112 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         * modules/obstack (Files): Add m4/ulonglong.m4.
72115         Problem reported by Davide Angelocola.
72116
72117 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72120         coreutils no longer futzes with rounding modes.
72121
72122 2005-11-14  Jim Meyering  <jim@meyering.net>
72123
72124         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72125         replacement of mkstemp.
72126
72127 2005-11-10  Simon Josefsson  <jas@extundo.com>
72128
72129         * lib/readline.c: Remove EOL.
72130
72131 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         * modules/gethrxtime (Depends-on): Add gettime.
72134
72135 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72138         or gettimeofday; no longer needed.
72139
72140 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72143         time business.
72144         (gethrxtime) [! (HAVE_NANOUPTIME
72145         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72146         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72147         our own approximation.
72148
72149 2005-11-08  Eric Blake  <ebb9@byu.net>
72150
72151         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72152
72153 2005-11-08  Eric Blake  <ebb9@byu.net>
72154
72155         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72156
72157 2005-11-04  Bruno Haible  <bruno@clisp.org>
72158
72159         * gnulib-tool: Implement --update mode.
72160
72161 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         Fix porting problem reported by Theodoros V. Kalamatianos.
72164         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72165         Don't assume that futimes failing means we must fail.
72166
72167 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72170         variables to suggest the intended function of the PATH_MAX check.
72171
72172 2005-10-30  Kean Johnston  <jkj@sco.com>
72173
72174         Trivial changes to support SCO systems.
72175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72176         as PATH_MAX.
72177         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72178         where __ptr is null when no I/O is pending.
72179
72180 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72183         leave errno alone.  Problem reported by Dmitry V. Levin.
72184
72185 2005-10-28  Simon Josefsson  <jas@extundo.com>
72186
72187         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72188         Test more.
72189
72190         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72191
72192         * modules/md2, modules/md2-tests: New files.
72193
72194 2005-10-28  Simon Josefsson  <jas@extundo.com>
72195
72196         * m4/inet_ntop.m4: More tests.
72197
72198         * m4/gc-md2.m4, md2.m4: New file.
72199
72200 2005-10-28  Simon Josefsson  <jas@extundo.com>
72201
72202         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72203         "restrict" keywords, as per POSIX.  Protect the function
72204         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72205         Don't use K&R prototypes.  Check the sprintf return values.
72206         Re-define EAFNOSUPPORT if not present.  Indent.
72207
72208         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72209         suggested by Bruno Haible <bruno@clisp.org>.
72210
72211         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72212
72213         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72214
72215         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72216         libgcrypt).
72217
72218         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72219
72220         * lib/md2.h, lib/md2.c: New files.
72221
72222 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72225         errno alone.  Problem reported by Frederic Jolliton.
72226
72227 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * modules/verify (License): Change from GPL to LGPL.  This is a
72230         tiny module and there are apparently near-equivalents that are
72231         under the BSD license.
72232
72233 2005-10-24  Simon Josefsson  <jas@extundo.com>
72234
72235         * modules/sha1: Relicense to LGPL.
72236
72237 2005-10-24  Simon Josefsson  <jas@extundo.com>
72238
72239         * lib/md4.h: Shrink buffer size, now that we changed the type.
72240
72241 2005-10-23  Simon Josefsson  <jas@extundo.com>
72242
72243         * gnulib-tool (func_import): Fix --tests-base.
72244
72245 2005-10-22  Simon Josefsson  <jas@extundo.com>
72246
72247         * modules/arcfour (Depends-on): Need stdint.
72248
72249 2005-10-22  Simon Josefsson  <jas@extundo.com>
72250
72251         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72252         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72253
72254 2005-10-22  Simon Josefsson  <jas@extundo.com>
72255
72256         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72257         suggested by Bruno Haible <bruno@clisp.org>.
72258
72259 2005-10-22  Simon Josefsson  <jas@extundo.com>
72260
72261         * lib/crc.h: Include stddef.h, for size_t.
72262
72263 2005-10-22  Simon Josefsson  <jas@extundo.com>
72264
72265         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72266         arcfour_context struct (simplify test vector testing in GNU
72267         Shishi).
72268
72269 2005-10-21  Simon Josefsson  <jas@extundo.com>
72270
72271         * modules/des, modules/des-tests: New files.
72272
72273         * modules/gc-des, modules/gc-des-tests: New files.
72274
72275         * tests/test-des.c, tests/test-gc-des.c: New file.
72276
72277 2005-10-21  Simon Josefsson  <jas@extundo.com>
72278
72279         * modules/arctwo, modules/arctwo-tests: New files.
72280
72281         * tests/test-arctwo.c: New file.
72282
72283         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72284
72285         * tests/test-gc-arctwo.c: New file.
72286
72287 2005-10-21  Simon Josefsson  <jas@extundo.com>
72288
72289         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72290         Bruno Haible <bruno@clisp.org>.
72291
72292         * m4/gc-des.m4: New file.
72293
72294 2005-10-21  Simon Josefsson  <jas@extundo.com>
72295
72296         * m4/arctwo.m4: New file.
72297
72298         * m4/gc-arctwo.m4: New file.
72299
72300 2005-10-21  Simon Josefsson  <jas@extundo.com>
72301
72302         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72303         block.
72304
72305 2005-10-21  Simon Josefsson  <jas@extundo.com>
72306
72307         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72308         <bruno@clisp.org>.
72309
72310         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72311
72312         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72313         Bruno Haible <bruno@clisp.org>.
72314
72315         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72316         <bruno@clisp.org>.
72317
72318 2005-10-21  Simon Josefsson  <jas@extundo.com>
72319
72320         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72321
72322 2005-10-21  Simon Josefsson  <jas@extundo.com>
72323
72324         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72325
72326 2005-10-21  Simon Josefsson  <jas@extundo.com>
72327
72328         * lib/des.h, lib/des.c: New files.
72329
72330         * lib/gc-gnulib.c: Support DES.c
72331
72332 2005-10-21  Simon Josefsson  <jas@extundo.com>
72333
72334         * lib/arctwo.h, lib/arctwo.c: New files.
72335
72336         * lib/gc-gnulib.c: Support ARCTWO.
72337
72338 2005-10-21  Simon Josefsson  <jas@extundo.com>
72339
72340         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72341         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72342
72343 2005-10-21  Simon Josefsson  <jas@extundo.com>
72344
72345         * gnulib-tool (func_import, func_create_testdir): Define automake
72346         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72347         Makefile.am snippet),
72348         suggested by Bruno Haible <bruno@clisp.org>.
72349
72350         * modules/gc (Makefile.am): Use it.
72351
72352 2005-10-21  Bruno Haible  <bruno@clisp.org>
72353
72354         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72355         patch.
72356
72357 2005-10-19  Simon Josefsson  <jas@extundo.com>
72358
72359         * tests/test-gc-rijndael.c: New file.
72360
72361         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72362
72363 2005-10-19  Simon Josefsson  <jas@extundo.com>
72364
72365         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72366         interface too.
72367
72368 2005-10-19  Simon Josefsson  <jas@extundo.com>
72369
72370         * tests/test-gc-arcfour.c: New file.
72371
72372         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72373
72374 2005-10-19  Simon Josefsson  <jas@extundo.com>
72375
72376         * modules/gc-md4, modules/gc-md4-tests: New file.
72377
72378         * tests/test-gc-md4.c: New file.
72379
72380 2005-10-19  Simon Josefsson  <jas@extundo.com>
72381
72382         * m4/gc-md4.m4: New file.
72383
72384 2005-10-19  Simon Josefsson  <jas@extundo.com>
72385
72386         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72387         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72388         <kasal@ucw.cz>.
72389
72390 2005-10-19  Simon Josefsson  <jas@extundo.com>
72391
72392         * m4/gc-arcfour.m4: New file.
72393
72394         * m4/gc-rijndael.m4: New file.
72395
72396 2005-10-19  Simon Josefsson  <jas@extundo.com>
72397
72398         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72399
72400 2005-10-19  Simon Josefsson  <jas@extundo.com>
72401
72402         * lib/gc-gnulib.c: Support ARCFOUR.
72403
72404 2005-10-19  Simon Josefsson  <jas@extundo.com>
72405
72406         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72407         support.
72408
72409         * lib/gc.h: Add ECB enum type.
72410
72411         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72412
72413 2005-10-18  Simon Josefsson  <jas@extundo.com>
72414
72415         * tests/test-md5.c: New file.
72416
72417         * modules/md5-tests: New file.
72418
72419 2005-10-18  Simon Josefsson  <jas@extundo.com>
72420
72421         * tests/test-md4.c: New file.
72422
72423         * modules/md4, modules/md4-tests: New files.
72424
72425 2005-10-18  Simon Josefsson  <jas@extundo.com>
72426
72427         * m4/md4.m4: New file.
72428
72429 2005-10-18  Simon Josefsson  <jas@extundo.com>
72430
72431         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72432
72433 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72434
72435         * gnulib-tool (func_create_testdir): Omit the second check whether
72436         BUILT_SOURCES in nonempty.
72437
72438 2005-10-17  Simon Josefsson  <jas@extundo.com>
72439
72440         * tests/test-rijndael.c: New file.
72441
72442 2005-10-17  Simon Josefsson  <jas@extundo.com>
72443
72444         * modules/sha1: Depend on stdint instead of md5.
72445
72446         * modules/md5: Depend on stdint, remove uint32_t.
72447
72448 2005-10-17  Simon Josefsson  <jas@extundo.com>
72449
72450         * modules/gc-sha1-tests: New file.
72451
72452         * tests/test-gc-sha1.c: New file.
72453
72454 2005-10-17  Simon Josefsson  <jas@extundo.com>
72455
72456         * m4/md5.m4: Remove call to uint32_t.m4.
72457
72458 2005-10-17  Simon Josefsson  <jas@extundo.com>
72459
72460         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72461
72462         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72463         md5.h.
72464
72465         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72466
72467         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72468
72469 2005-10-17  Simon Josefsson  <jas@extundo.com>
72470
72471         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72472
72473 2005-10-17  Simon Josefsson  <jas@extundo.com>
72474
72475         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72476
72477 2005-10-17  Simon Josefsson  <jas@extundo.com>
72478
72479         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72480
72481         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72482
72483 2005-10-17  Bruno Haible  <bruno@clisp.org>
72484
72485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72486         that it can also be used in a test.
72487
72488 2005-10-16  Bruno Haible  <bruno@clisp.org>
72489
72490         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72491         TESTS_ENVIRONMENT, so that individual tests can augment it.
72492
72493         * gnulib-tool (func_create_testdir): Use an intermediate target for
72494         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72495         macros, like $(ALLOCA_H), which cannot be passed through the command
72496         line.
72497
72498 2005-10-15  Simon Josefsson  <jas@extundo.com>
72499
72500         * modules/rijndael-tests: New file.
72501
72502         * modules/rijndael: New file.
72503
72504 2005-10-15  Simon Josefsson  <jas@extundo.com>
72505
72506         * m4/rijndael.m4: New file.
72507
72508 2005-10-15  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72511
72512         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72513
72514 2005-10-14  Simon Josefsson  <jas@extundo.com>
72515
72516         * tests/test-arcfour.c: New file.
72517
72518         * modules/arcfour, modules/arcfour-tests: New files.
72519
72520 2005-10-14  Simon Josefsson  <jas@extundo.com>
72521
72522         * m4/arcfour.m4: New file.
72523
72524 2005-10-14  Simon Josefsson  <jas@extundo.com>
72525
72526         * lib/arcfour.h, lib/arcfour.c: New files.
72527
72528 2005-10-14  Roland McGrath  <roland@redhat.com>
72529
72530         Import from libc.  [BZ #1331]
72531         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72532         macro argument.
72533         Reported by Matej Vela <vela@debian.org>.
72534
72535 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72538         include <wchar.h>; no longer needed.
72539
72540 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72543
72544 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72545         and  Ulrich Drepper  <drepper@redhat.com>
72546
72547         Import from libc.
72548         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72549         instead of inline stream orientation test and two separate
72550         function calls.  Pay no attention to USE_IN_LIBIO.
72551
72552 2005-10-13  Simon Josefsson  <jas@extundo.com>
72553
72554         * modules/gc-hmac-md5-tests: New file.
72555
72556         * tests/test-gc-hmac-sha1.c: New file.
72557
72558         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72559
72560         * modules/gc-hmac-md5-tests: New file.
72561
72562         * tests/test-gc-md5.c: New file.
72563
72564         * modules/gc-md5-tests: New file.
72565
72566 2005-10-13  Simon Josefsson  <jas@extundo.com>
72567
72568         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72569         Move memory allocation outside of loop.
72570
72571 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72574         intermediate directory is in a read-only file system.  Problem
72575         reported by Eric Blake.
72576
72577 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72578
72579         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72580
72581 2005-10-12  Simon Josefsson  <jas@extundo.com>
72582
72583         * tests/test-hmac-sha1.c: New file.
72584
72585         * modules/hmac-sha1-tests: New file.
72586
72587         * modules/hmac-sha1: New file.
72588
72589 2005-10-12  Simon Josefsson  <jas@extundo.com>
72590
72591         * modules/gc-sha1: New file.
72592
72593 2005-10-12  Simon Josefsson  <jas@extundo.com>
72594
72595         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72596
72597         * tests/test-gc-pbkdf2-sha1.c: New file.
72598
72599 2005-10-12  Simon Josefsson  <jas@extundo.com>
72600
72601         * modules/gc-md5, modules/gc-hmac-md5: New files.
72602
72603         * modules/gc (Files): Remove md5, memxor and hmac files.
72604
72605 2005-10-12  Simon Josefsson  <jas@extundo.com>
72606
72607         * m4/gc-pbkdf2-sha1.m4: New file.
72608
72609         * m4/gc-hmac-sha1.m4: New file.
72610
72611         * m4/gc-sha1: New file.
72612
72613         * m4/hmac-sha1.m4: New file.
72614
72615 2005-10-12  Simon Josefsson  <jas@extundo.com>
72616
72617         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72618
72619         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72620
72621 2005-10-12  Simon Josefsson  <jas@extundo.com>
72622
72623         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72624         suggested by Bruno Haible <bruno@clisp.org>.
72625
72626 2005-10-12  Simon Josefsson  <jas@extundo.com>
72627
72628         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72629
72630 2005-10-12  Simon Josefsson  <jas@extundo.com>
72631
72632         * lib/gc-pbkdf2-sha1.c: New file.
72633
72634         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72635
72636 2005-10-12  Simon Josefsson  <jas@extundo.com>
72637
72638         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72639
72640         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72641
72642 2005-10-12  Simon Josefsson  <jas@extundo.com>
72643
72644         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72645         GC_USE_HMAC_MD5, respectively.
72646
72647         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72648         (gc_md5): Fix typo.
72649
72650         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72651
72652         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72653
72654         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72655
72656 2005-10-12  Bruno Haible  <bruno@clisp.org>
72657
72658         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72659         Reported by Stepan Kasal <kasal@ucw.cz>.
72660
72661 2005-10-11  Simon Josefsson  <jas@extundo.com>
72662
72663         * tests/test-crc.c: New file.
72664
72665         * modules/crc, modules/crc-tests: New files.
72666
72667 2005-10-11  Simon Josefsson  <jas@extundo.com>
72668
72669         * m4/crc.m4: New file.
72670
72671 2005-10-11  Simon Josefsson  <jas@extundo.com>
72672
72673         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72674
72675         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72676
72677         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72678
72679 2005-10-11  Simon Josefsson  <jas@extundo.com>
72680
72681         * lib/crc.h, lib/crc.c: New files.
72682
72683         * lib/gc.h (gc_hash_buffer): Add doc.
72684
72685 2005-10-11  Bruno Haible  <bruno@clisp.org>
72686
72687         * modules/c-strcasestr: New file.
72688         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72689
72690 2005-10-11  Bruno Haible  <bruno@clisp.org>
72691
72692         * modules/c-strcase: New file.
72693         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72694
72695 2005-10-11  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/strcasecmp.c: Include limits.h.
72698         (strcasecmp): Avoid integer overflow on exotic platforms.
72699         * lib/strncasecmp.c: Include limits.h.
72700         (strncasecmp): Avoid integer overflow on exotic platforms.
72701         Reported by Paul Eggert.
72702
72703 2005-10-11  Bruno Haible  <bruno@clisp.org>
72704
72705         * lib/c-strcasestr.h: New file, from GNU gettext.
72706         * lib/c-strcasestr.c: New file, from GNU gettext.
72707
72708 2005-10-11  Bruno Haible  <bruno@clisp.org>
72709
72710         * lib/c-strcase.h: New file, from GNU gettext.
72711         * lib/c-strcasecmp.c: New file, from GNU gettext.
72712         * lib/c-strncasecmp.c: New file, from GNU gettext.
72713
72714 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * modules/mempcpy (License): GPL -> LGPL.
72717         * modules/strchrnul (License): Likewise.
72718         * modules/sysexits (License): Likewise.
72719
72720 2005-10-08  Simon Josefsson  <jas@extundo.com>
72721
72722         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72723
72724 2005-10-07  Simon Josefsson  <jas@extundo.com>
72725
72726         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72727
72728 2005-10-06  Simon Josefsson  <jas@extundo.com>
72729
72730         * tests/test-hmac-md5.c: New file.
72731
72732         * modules/hmac-md5-tests: New file.
72733
72734         * modules/hmac-md5: New file.
72735
72736 2005-10-06  Simon Josefsson  <jas@extundo.com>
72737
72738         * m4/hmac-md5.m4: New file.
72739
72740         * m4/memxor.m4: Require gl_C_RESTRICT.
72741
72742 2005-10-06  Simon Josefsson  <jas@extundo.com>
72743
72744         * lib/memxor.c (memxor): Avoid casts and warnings.
72745
72746 2005-10-06  Simon Josefsson  <jas@extundo.com>
72747
72748         * lib/hmac-md5.c: New file.
72749
72750         * lib/hmac.h: New file.
72751
72752 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72755         promotes to int, not unsigned int, to catch the AIX 5.3
72756         compiler bug.
72757
72758 2005-10-05  Simon Josefsson  <jas@extundo.com>
72759
72760         * modules/memxor: New file.
72761
72762         * modules/iconv (Files): Move config.rpath to havelib, it is used
72763         there.
72764
72765         * modules/havelib (Files): Add config.rpath.
72766
72767 2005-10-05  Simon Josefsson  <jas@extundo.com>
72768
72769         * m4/memxor.m4: New file.
72770
72771 2005-10-05  Simon Josefsson  <jas@extundo.com>
72772
72773         * lib/memxor.c (memxor): Fix compiler error.
72774
72775         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72776         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72777
72778         * lib/memxor.h, lib/memxor.c: New files.
72779
72780         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72781         we assume all systems have it, suggested by Jim Meyering
72782         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72783         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72784         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72785         same reasons.
72786
72787 2005-10-05  Simon Josefsson  <jas@extundo.com>
72788
72789         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72790
72791 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72794         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72795         needed, since the source code now assumes these .h files.
72796
72797 2005-10-05  Derek Price  <derek@ximbiot.com>
72798
72799         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72800
72801 2005-10-05  Bruno Haible  <bruno@clisp.org>
72802
72803         * modules/stdint (License): Change to LGPL.
72804
72805 2005-10-04  Simon Josefsson  <jas@extundo.com>
72806
72807         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72808         D. Baushke" <mdb@gnu.org>.
72809
72810 2005-10-04  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/verify.h (verify_true): Provide alternative definition for C++.
72813
72814 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72817         (SSIZE_MAX): New macro, if not already defined.
72818         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72819         than 2 GiB.
72820
72821 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         Sync from coreutils.
72824         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72825         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72826         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72827         ULLONG_MAX doesn't work with 2.7.2.1.
72828
72829 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72830
72831         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72832         From Ben Pfaff.
72833
72834         * modules/exclude (Depends-on): Depend on verify.
72835         * modules/strtoimax (Depends-on): Likewise.
72836         * modules/utimecmp (Depends-on): Likewise.
72837
72838 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * lib/exclude.c: Include verify.h.
72841         (verify): Remove.  All callers changed to use verify.h's version.
72842         * lib/strtoimax.c: Likewise.
72843         * lib/utimecmp.c: Likewis.e
72844
72845         Sync from coreutils.
72846         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72847         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72848         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72849         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72850         bother returning ENOSYS if settimeofday or stime fails; just let
72851         them return whatever errno they want to return.
72852         * lib/utimens.c: Include unistd.h, for dup2.
72853         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72854         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72855
72856 2005-10-02  Jim Meyering  <jim@meyering.net>
72857
72858         Sync from coreutils.
72859         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72860         from glibc-2.2.5 that fails for read-only files.
72861
72862 2005-10-02  Jim Meyering  <jim@meyering.net>
72863
72864         Sync from coreutils.
72865         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72866         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72867         `#if HAVE_CONFIG_H'.
72868         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72869         Remove AT_FDCWD test.
72870         Do not consume the fd unless successful.
72871         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72872         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72873         block, so that we don't even try to compile it if settimeofday is
72874         available.  This works around a compilation failure on OSF1 V5.1,
72875         due to stime requiring a `long int*' while tv_sec is `int'.
72876
72877 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72878
72879         Sync from coreutils.
72880         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72881         against `yes', rather than just testing for nonempty.
72882
72883 2005-10-01  Simon Josefsson  <jas@extundo.com>
72884
72885         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72886         and Darwin.
72887
72888         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72889         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72890         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72891         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72892         Check if struct addrinfo is declared.
72893
72894 2005-10-01  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72897         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72898         AI_* and EAI_* definitions.  Protect function declarations.
72899
72900 2005-10-01  Jim Meyering  <jim@meyering.net>
72901
72902         Sync from coreutils.
72903
72904         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72905         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72906         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72908         in the inet and nsl libraries.  Required on Solaris 5.7.
72909
72910 2005-10-01  Jim Meyering  <jim@meyering.net>
72911
72912         Sync from coreutils.
72913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72914         in the inet and nsl libraries.  Required on Solaris 5.7.
72915
72916 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72917
72918         * lib/getdelim.c (getdelim): Remove unused variables.
72919
72920 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72923         so that the code works even with ancient cpp.  Portability problem
72924         with GCC 2.7.2.1 reported by Thomas M.Ott.
72925
72926 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * modules/regex (Depends-on): Add strcase.
72929
72930         * modules/gethostname (Licence): Change from GPL to LGPL, since
72931         gethostname.c is a trivial implementation of a standard library
72932         function.
72933         * modules/poll (License): Change from GPL to LGPL, since it's
72934         derived from LGPL code.
72935
72936 2005-09-27  Jim Meyering  <jim@meyering.net>
72937
72938         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72939         HAVE_CONFIG_H.
72940
72941         * lib/intprops.h (signed_type_or_expr__): Define.
72942         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72943         for unsigned types.
72944
72945 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/verify.h (verify_expr): Remove, replacing with:
72948         (verify_true): New macro that returns true instead of void.
72949         (verify_type__): Remove.
72950         (verify): Use verify_true rather than verify_type__.
72951
72952 2005-09-26  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72955         is necessary.
72956         (lib_SOURCES): Remove mbchar.c.
72957         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72958         (Files): Add m4/mbrtowc.m4.
72959         * modules/mbiter: Likewise.
72960         * modules/mbuiter: Likewise.
72961
72962 2005-09-26  Bruno Haible  <bruno@clisp.org>
72963
72964         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72965         compile mbchar.c if they are not both present.
72966         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72967         * m4/mbiter.m4 (gl_MBITER): Likewise.
72968         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72969         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72970         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72971
72972 2005-09-25  Jim Meyering  <jim@meyering.net>
72973
72974         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72975         also uses socklen_t.
72976
72977 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * lib/utimens.c (ENOSYS): Define if not already defined.
72980         (futimens): Support having a null PATH if the file descriptor
72981         is nonnegative.
72982
72983         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72984         Remove.
72985         (__attribute): Define to empty unless GCC 3.1 or later.
72986         This works around a core dump on OpenBSD 3.4, which has GCC
72987         2.95.3, which dumps core when given __attribute__(()).  It also
72988         simplifies other tests, since we really don't want to bother with
72989         worrying about which ancient version of GCC supported what.
72990         Original problem reported by Yoann Vandoorselaere, with part of
72991         the fix suggested by Derek Price.
72992
72993 2005-09-24  Jim Meyering  <jim@meyering.net>
72994
72995         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72996         so we can once again use a positive bitfield width of 1 -- now we
72997         don't have to explain why we were using a bitfield width of 2.
72998
72999 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73002         and similarly for the other external symbols.  Problem reported
73003         by James Gallager.
73004
73005         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73006         bug reported by Jim Meyering.
73007
73008         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73010         not needed, since socklen is a prerequisite module.
73011
73012 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73015         Problem reported by Eric Blake.
73016         (getaddrinfo): Initialize se so that it's not garbage.
73017         Redo internal storage allocation so that it doesn't make unportable
73018         assumptions about alignment.
73019         Fix a memory leak.
73020
73021         * lib/utimens.c (futimens): Use futimesat if available.
73022         Prefer it to futimes since it doesn't have the futimes bug.
73023
73024         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73025         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73026         Instead, declare a function that returns a pointer to an array,
73027         and use verify_type__ to declare the size of the array.
73028         Problem and germ of a solution reported by Bruno Haible.
73029         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73030         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73031
73032 2005-09-23  Jim Meyering  <jim@meyering.net>
73033
73034         Sync from coreutils.
73035         Correct build failure (socklen_t not defined) on at least
73036         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73038
73039 2005-09-23  Jim Meyering  <jim@meyering.net>
73040
73041         * modules/getaddrinfo (Depends-on): Add socklen.
73042
73043 2005-09-23  Bruno Haible  <bruno@clisp.org>
73044
73045         * tests/test-verify.c: New file.
73046
73047 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         Sync from coreutils.
73050
73051         * modules/argmatch (Depends-on): Add verify.
73052         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73053         unistd-safer.
73054         * modules/save-cwd (Depends-on): Likewise.
73055
73056         * modules/openat (Files): Add lib/openat-die.c.
73057         (Depends-on): Remove error, exitfail.
73058         Add dirname.
73059
73060         * modules/verify: New file.
73061         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73062         with "verify" module.
73063
73064 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73065
73066         Sync from coreutils.
73067
73068         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73069         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73070         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73071         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73072         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73073         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73074         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73075         Don't bother checking for string.h, stdlib.h, unistd.h.
73076         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73077         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73078         module's job.
73079         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73080         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73081
73082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73083         (gl_GETDATE): Use it.
73084
73085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73086
73087 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         Sync from coreutils.
73090
73091         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73092         stat-time.h.
73093         * lib/argmatch.h: Include verify.h
73094         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73095         (ARGMATCH_ASSERT): Remove; unused.
73096         * lib/canonicalize.c: Assume STDC_HEADERS.
73097         * lib/exclude.c: Include "strcase.h".
73098         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73099         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73100         and stdio-safer.h.
73101         (getusershell): Call fopen, not fopen_safer.
73102         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73103         Do not include unistd-safer.h.
73104         (save_cwd): Don't call fd_safer; no longer needed
73105         now that we include fcntl--.h.
73106
73107         * lib/getdate.y (relative_time): New type.
73108         (RELATIVE_TIME_0): New constant.
73109         (parser_control): Use relative_time instead of doing it ourselves.
73110         (%union): Add new relative_time rel member.
73111         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73112         Now typeless.
73113         (relunit, relunit_snumber): Now of type rel.
73114         (zone, rel, relunit, get_date): Adjust to above changes.
73115
73116         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73117         Do not include unistd-safer.h.
73118         (getloadavg): Don't call fd_safer; no longer needed
73119         now that we include fcntl--.h.
73120
73121         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73122         (make_dir_parents): Treat ENOSYS like EEXIST.
73123
73124         Improve quality of diagnostics on restore_cwd failure.
73125         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73126         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73127         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73128         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73129         each time through the loop.  Do not diagnose restore_cwd failure;
73130         that is the caller's job (and perhaps the caller does not care).
73131
73132         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73133         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73134         If the file already exists but is not a directory, don't bother
73135         to try to make its parents.
73136         Close potential file descriptor leak if we can't chdir("/") (!).
73137         Don't always return true if chdir($PWD) fails; return true only
73138         if the requested action was done successfully (except for the
73139         chdir($PWD)).
73140         Don't log final directory unless we actually made it.
73141         Refactor to avoid duplicate code to fix up permissions.
73142         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73143
73144         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73145         to make it a bit faster and (I hope) clearer.
73146         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73147         Fix bug in formats like %2N.
73148
73149         * lib/verify.h: New file.
73150
73151 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         Sync from coreutils.
73154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73155
73156 2005-09-22  Jim Meyering  <jim@meyering.net>
73157
73158         Sync from coreutils.
73159
73160         * m4/lstat.m4 (gl_FUNC_LSTAT):
73161         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73162         Remove obsolete comment.
73163         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73164         * m4/xstrtod.m4: Likewise.
73165
73166         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73167
73168 2005-09-22  Jim Meyering  <jim@meyering.net>
73169
73170         Sync from coreutils.
73171
73172         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73173
73174         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73175         the .tm_year member, since otherwise gcc-4.0 would now warn about
73176         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73177
73178         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73179         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73180
73181         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73182         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73183         when run in a time zone for which daylight savings time is in effect
73184         for the starting date.
73185
73186         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73187         stop us from restricting permissions of just-created absolute-named
73188         directories.
73189         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73190         to restore initial working directory.
73191         * lib/mkdir-p.c (make_dir_parents): New parameter:
73192         different_working_dir, to tell caller if/when we change the working
73193         directory and are unable to return to the initial one.
73194         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73195         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73196         `return false'.  This fixes a bug introduced on 2004-07-30.
73197
73198         * lib/openat.c (fdopendir): Be sure to close the supplied
73199         file descriptor before returning.  This makes our replacement
73200         implementation a little closer to Solaris's, where fdopendir
73201         ties the file descriptor to the returned DIR* pointer.
73202         * lib/openat.c (unlinkat): New function.
73203         * lib/openat.h (unlinkat): Add prototype.
73204         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73205         (openat_restore_fail): Rename from openat_restore_die.
73206         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73207
73208         Provide an alternative to exiting immediately upon save_cwd or
73209         restore_cwd failure.  Now, an application can arrange e.g.,
73210         to perform a longjump in that case.
73211         * lib/openat.c: Include dirname.h.
73212         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73213         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73214         and openat_restore_die rather than calling error directly.
73215         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73216
73217         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73218         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73219         define.
73220
73221         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73222         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73223                             int utc, int nanoseconds);
73224         Background:
73225         date should not have to allocate a megabyte of virtual memory to
73226         handle a format argument like +%1048575T.  When implemented with
73227         strftime, it must allocate such a buffer, use strftime to fill it
73228         in, print it, then free it.
73229         With fprintftime, it simply prints everything and exits.
73230         With no need for memory allocation, that's one fewer way to fail.
73231         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73232         optional field width, not before, so we accept %9:z, not %:9z.
73233         (my_strftime): Be sure to use L_('x') for literals.
73234
73235         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73236         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73237         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73238         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73239         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73240         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73241         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73242         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73243         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73244         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73245         * lib/xgethostname.c, lib/xreadlink.c:
73246         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73247
73248         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73249         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73250         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73251         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73252         and don't include <sys/file.h>).
73253
73254 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73255
73256         Sync from coreutils.
73257
73258         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73259         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73260         [!LDAV_DONE]: Avoid unused variable warning.
73261
73262 2005-09-21  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/unicodeio.h (unicode_to_mb): New declaration.
73265
73266 2005-09-20  Derek Price  <derek@ximbiot.com>
73267
73268         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73269         getaddrinfo.h.
73270
73271 2005-09-20  Bruno Haible  <bruno@clisp.org>
73272
73273         * gnulib-tool: Remove trailing slashes from the values specified for
73274         --source-base, --m4-base, --tests-base, --aux-dir.
73275         Suggested by Simon Josefsson <jas@extundo.com>.
73276
73277 2005-09-20  Bruno Haible  <bruno@clisp.org>
73278
73279         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73280         func_modules_to_filelist, func_import, func_create_testdir): Make all
73281         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73282         change when gnulib-tool is invoked in a different locale.
73283
73284 2005-09-19  Simon Josefsson  <jas@extundo.com>
73285
73286         * m4/socklen.m4: Fix typo.
73287
73288 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73289
73290         Use a consistent style for including <config.h>.
73291         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73292         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73293         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73294         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73295         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73296         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73297         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73298         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73299         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73300         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73301         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73302         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73303         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73304         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73305         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73306         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73307         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73308         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73309         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73310         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73311         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73312         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73313         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73314         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73315         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73316         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73317         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73318         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73319         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73320         lib/xstrtoumax.c, lib/yesno.c:
73321         Standardize inclusion of config.h.
73322         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73323         lib/inttostr.h:  Removed inclusion of config.h from header files.
73324         * lib/inttostr.c:  Adjusted in-tree users.
73325         * lib/timespec.h: Remove superfluous warning to include config.h.
73326         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73327         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73328         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73329         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73330         config.h with HAVE_CONFIG_H.
73331
73332 2005-09-19  Jim Meyering  <jim@meyering.net>
73333
73334         * modules/pathmax (License): Change to LGPL.
73335
73336 2005-09-19  Derek Price  <derek@ximbiot.com>
73337
73338         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73339
73340 2005-09-19  Bruno Haible  <bruno@clisp.org>
73341
73342         * gnulib-tool (import): Provide default for --tests-base.
73343
73344 2005-09-19  Bruno Haible  <bruno@clisp.org>
73345
73346         * doc/quote.texi: New file, extracted from gnulib.texi.
73347         * doc/ctime.texi: New file, extracted from gnulib.texi.
73348         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73349         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73350         * doc/gnulib.texi: Include them.
73351
73352 2005-09-18  Bruno Haible  <bruno@clisp.org>
73353
73354         Portability fix.
73355         * gnulib-tool (func_readlink): New function.
73356         (func_ln_if_changed): Use it.
73357
73358 2005-09-18  Bruno Haible  <bruno@clisp.org>
73359
73360         * gnulib-tool: Support --with-tests also with --import.
73361         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73362         (func_import): Use variables $testsbase and $inctests. Emit a
73363         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73364         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73365         SUBDIRS += $testsdir.
73366         (func_create_testdir): Update.
73367
73368 2005-09-18  Bruno Haible  <bruno@clisp.org>
73369
73370         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73371         instead of $dry_run.
73372         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73373         (func_ln_if_changed): Don't handle dry-run here.
73374         (func_import): In dry-run mode, detect more precisely which actions
73375         would be performed, and don't use "...ing" verbs.
73376
73377 2005-09-18  Bruno Haible  <bruno@clisp.org>
73378
73379         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73380         (func_import): Use join on two temporary files instead of three nested
73381         loops, in order to determine which files are new or old.
73382
73383 2005-09-18  Bruno Haible  <bruno@clisp.org>
73384
73385         * gnulib-tool (func_import): Comment out code that spits out the
73386         new files with --dry-run.
73387
73388 2005-09-18  Bruno Haible  <bruno@clisp.org>
73389
73390         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73391
73392 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         * lib/stat-time.h: New file.
73395         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73396         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73397         in a different way.
73398         (timespec_cmp): New function.
73399         * lib/utimecmp.c: Include stat-time.h.
73400         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73401         members exist, not on the obsolescent ST_MTIM_NSEC.
73402         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73403
73404 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73407
73408 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73409
73410         * MODULES.html.sh (File system functions): Add stat-time.
73411         * modules/stat-time: New file.
73412         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73413         is now done in a different way, by the stat-time module.
73414         * modules/utimecmp (Depends-on): Add stat-time.
73415
73416 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * m4/st_mtim.m4: Remove.  Superseded by...
73419         * m4/stat-time.m4: New file.
73420         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73421         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73422
73423 2005-09-15  Derek Price  <derek@ximbiot.com>
73424
73425         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73426
73427 2005-09-15  Derek Price  <derek@ximbiot.com>
73428
73429         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73430         * lib/regex_internal.c: Ditto, using this...
73431         (__GNUC_PREREQ): ...new macro.
73432         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73433         using...
73434         (__GNUC_PREREQ): ...this new macro.
73435
73436         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73437
73438 2005-09-15  Derek Price  <derek@ximbiot.com>
73439             Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73442         changes, consolidating in...
73443         * lib/regex_internal.h: ...this file.
73444
73445 2005-09-13  Jim Meyering  <jim@meyering.net>
73446
73447         * lib/canon-host.c: Filter through gnu indent and reword comments
73448         slightly.
73449         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73450
73451 2005-09-13  Derek Price  <derek@ximbiot.com>
73452
73453         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73454         failure.
73455         Reported by Jim Meyering  <jim@meyering.net>.
73456
73457 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73458
73459         * lib/base64.c: Typo.
73460         (base64_encode): Put b64str in initialized data section.
73461
73462 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         Merge glibc and coreutils changes into gnulib, plus a few
73465         extra fixes.
73466         * lib/md5.c: Use #error rather than a string.
73467         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73468         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73469         (__attribute__): Define to empty for non recent-GCC.
73470         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73471         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73472         Renamed from their non-__ counterparts, with new macros replacing
73473         them if not _LIBC.  Add __THROW attribute.
73474         (rol): Remove.
73475         (struct md5_ctx): Align buffer if using GCC.
73476         * lib/sha1.h (struct sha1_ctx): Likewise.
73477         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73478         The old name was backwards.
73479         (NOTSWAP): Remove; not used.
73480         (rol): New macro, moved here from md5.h.
73481         (sha1_process_block): Remove a FIXME that doesn't make sense.
73482
73483 2005-09-12  Derek Price  <derek@ximbiot.com>
73484
73485         Return usable errors from canon-host.
73486         * lib/canon-host.h: New file.
73487         * lib/canon-host.c (canon_host): Wrap...
73488         (canon_host_r): ...this new function, which now relies exclusively on
73489         getaddrinfo.
73490         (ch_strerror): New function.
73491         (last_cherror): New global.
73492         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73493         interface.
73494         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73495         void *.
73496         (freeaddrinfo): Free ai->ai_canonname when set.
73497
73498 2005-09-12  Derek Price  <derek@ximbiot.com>
73499
73500         Make canon-host require getaddrinfo.
73501         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73502         AC_LIBSOURCE canon-host.h.  Call...
73503         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73504         gl_GETADDRINFO.
73505         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73506
73507 2005-09-12  Derek Price  <derek@ximbiot.com>
73508
73509         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73510         LGPL.
73511         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73512
73513 2005-09-12  Derek Price  <derek@ximbiot.com>
73514
73515         * lib/gai_strerror.c: Include config.h when available.  Include
73516         getaddrinfo.h before other headers to test interface.
73517         Reported by Larry Jones <lawrence.jones@ugs.com>.
73518
73519 2005-09-12  Derek Price  <derek@ximbiot.com>
73520             Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * modules/glob (Files): Add glob-libc.h.
73523
73524 2005-09-12  Derek Price  <derek@ximbiot.com>
73525             Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73528         glob_.h, glob-libc.h.
73529         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73530
73531 2005-09-12  Derek Price  <derek@ximbiot.com>
73532             Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73535         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73536         protecting things that should be done only in gnulib contexts.
73537         * lib/glob_.h: New file, containing only the glob things needed for
73538         gnulib.
73539         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73540         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73541         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73542         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73543         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73544         and to respect the namespace rules better.
73545
73546 2005-09-08  Simon Josefsson  <jas@extundo.com>
73547
73548         * modules/socklen: New file.
73549
73550 2005-09-08  Simon Josefsson  <jas@extundo.com>
73551
73552         * m4/socklen.m4: New file.
73553
73554 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * modules/utimens (Files): Add m4/utimbuf.m4, since
73557         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73558         Reported by Sergey Poznyakoff.
73559
73560 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73563         definitions, since that's the preferred style in glibc.
73564         Fix a minor spacing issue, and update copyright notice to match
73565         glibc's.
73566
73567 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73570
73571 2005-09-06  Simon Josefsson  <jas@extundo.com>
73572
73573         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73574         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73575
73576 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73579         warning.
73580
73581 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * config/srclist.txt: Add glibc bug 1302.
73584
73585 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         Change bitset word type from unsigned int to unsigned long int,
73588         as this has better performance on typical 64-bit hosts.
73589         Port bitset code to hosts with unusual word sizes.
73590         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73591         (build_collating_symbol):
73592         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73593         argument is a bitset.  This is merely a style issue, but it makes
73594         it clearer that an entire array is expected.
73595         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73596         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73597         Port to the case where bitset_word is not the same as unsigned int.
73598         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73599         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73600         Likewise.
73601         * lib/regexec.c (check_dst_limits_calc_pos_1,
73602         check_subexp_matching_top):
73603         (build_trtable, group_nodes_into_DFAstates):
73604         Likewise.
73605         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73606         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73607         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73608         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73609         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73610         * lib/regcomp.c (optimize_subexps, lower_subexp):
73611         Work even if bitset_word has holes in its bitwise representation.
73612         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73613         * lib/regexec.c (check_dst_limits_calc_pos_1,
73614         check_subexp_matching_top):
73615         Likewise.
73616         * lib/regex_internal.c (re_string_reconstruct):
73617         Don't assume UCHAR_MAX == 255.
73618         * lib/regex_internal.h (bitset_set_all): Likewise.
73619         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73620         All uses changed.
73621         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73622         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73623         All uses changed.
73624         (BITSET_WORD_MAX): New macro.
73625         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73626         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73627         (bitset_empty, bitset_copy):
73628         Prefer sizeof (bitset) to multiplying it out ourselves.
73629         (bitset_not_merge): Remove; unused.
73630         (bitset_contain): Return bool, not unsigned int with one bit on.
73631         All callers changed.
73632         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73633         alignment than re_node_set; do this by defining a new internal
73634         type struct dests_alloc and using it to allocate memory.
73635
73636 2005-09-05  Bruno Haible  <bruno@clisp.org>
73637
73638         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73639         links.
73640
73641 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73642
73643         * modules/size_max (Makefile.am): Add size_max.h
73644
73645 2005-09-04  Derek Price  <derek@ximbiot.com>
73646
73647         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73648
73649 2005-09-03  Simon Josefsson  <jas@extundo.com>
73650
73651         * gnulib-tool: Fix typo.
73652
73653 2005-09-03  Simon Josefsson  <jas@extundo.com>
73654
73655         * config/srclist.txt: Add glibc bug 1293.
73656
73657 2005-09-03  Derek Price  <derek@ximbiot.com>
73658
73659         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73660         From Larry Jones <lawrence.jones@ugs.com>.
73661
73662 2005-09-02  Simon Josefsson  <jas@extundo.com>
73663
73664         * modules/socklen: New file.
73665
73666 2005-09-02  Simon Josefsson  <jas@extundo.com>
73667
73668         * modules/havelib: New module.
73669
73670         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73671         Use havelib.
73672
73673 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         Check for arithmetic overflow when calculating sizes, to prevent
73676         some buffer-overflow issues.  These patches are conservative, in the
73677         sense that when I couldn't determine whether an overflow was possible,
73678         I inserted a run-time check.
73679         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73680         macros.
73681         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73682         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73683         (re_xnrealloc, re_x2nrealloc): New inline functions.
73684         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73685         parse_bracket_exp):
73686         (build_equiv_class, build_charclass): Check for arithmetic overflow
73687         in size expression calculations.
73688         * lib/regex_internal.c (re_string_realloc_buffers):
73689         (build_wcs_upper_buffer, re_node_set_add_intersect):
73690         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73691         (re_dfa_add_node, register_state): Likewise.
73692         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73693         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73694         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73695         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73696
73697 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73700         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73701
73702 2005-09-02  Bruno Haible  <bruno@clisp.org>
73703
73704         Support for lib vs. lib64 distinction on biarch platforms.
73705         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73706         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73708
73709 2005-09-02  Bruno Haible  <bruno@clisp.org>
73710
73711         * gnulib-tool (import): In the other first-use case, provide defaults
73712         as well.
73713
73714 2005-09-02  Bruno Haible  <bruno@clisp.org>
73715
73716         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73717         patches not yet found in the latest gettext release.
73718
73719 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73720
73721         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73722         to avoid a collision with bits/local_lim.h in glibc.
73723         All uses changed.  Problem reported by Dmitry V. Levin in
73724         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73725
73726         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73727         bugs in int versus size_t comparisons.
73728         (re_string_context_at): Fix bug where the code assumed that
73729         Idx is signed.
73730
73731         Use bool where appropriate.
73732         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73733         All callers changed.
73734         (calc_eclosure_iter): Likewise, for ROOT arg.
73735         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73736         (build_charclass_op): Likewise, for NON_MATCH arg.
73737         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73738         (re_string_construct_common): Likewise, for ICASE arg.
73739         * lib/regexec.c (re_search_2_stub, re_search_stub):
73740         Likewise, for RET_LEN arg.
73741         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73742         (set_regs): Likewise, for FL_BACKTRACK arg.
73743         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73744         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73745         (calc_eclosure_iter, parse_bracket_exp):
73746         Use bool for internal variables that are booleans.
73747         * lib/regexec.c (re_search_internal, check_matching,
73748         proceed_next_node):
73749         (set_regs, build_sifted_states, sift_states_bkref):
73750         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73751         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73752         (find_collation_sequence_value):
73753         Likewise.
73754         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73755         (re_node_set_compare):
73756         Return bool, not int. All callers changed.
73757         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73758         (build_trtable, check_node_accept): Likewise.
73759         * lib/regex_internal.h: Include stdbool.h.
73760
73761         Fix bugs uncovered when converting to bool.
73762         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73763         failure instead of charging ahead blindly.
73764         * lib/regex_internal.c (register_state): Likewise.
73765         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73766         for freeing internal storage.
73767         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73768         bitset pieces used as boolean, to avoid undefined behavior
73769         on hosts that do int overflow checking.
73770
73771 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         * config/srclist.txt: Add glibc bugs 1285-1287.
73774
73775 2005-09-01  Jim Meyering  <jim@meyering.net>
73776
73777         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73778         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73779         Require gl_STAT_MACROS, too.
73780
73781 2005-09-01  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool (import): In the first-use case, provide defaults.
73784
73785 2005-09-01  Bruno Haible  <bruno@clisp.org>
73786
73787         * gnulib-tool (func_import): Remove the .tmp files.
73788
73789 2005-09-01  Bruno Haible  <bruno@clisp.org>
73790
73791         * gnulib-tool (func_import): Fix handling of symbolic links.
73792
73793 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73796         old glibc regex code mishandles strings longer than 2**31 bytes.
73797         This patch fixes this when the regex code is used in gnulib
73798         (i.e., outside glibc).
73799
73800         This patch should not affect the use of the regex code inside
73801         glibc.  No doubt this problem also needs to be handled for glibc
73802         as well, but the result will be an incompatible change to the
73803         glibc ABI, and the old ABI will have to be supported too.  That
73804         can be the the subject for another patch.
73805
73806         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73807         governing whether the rest of this patch is active.  By default,
73808         the macro is disabled and the patch has no effect.
73809         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73810         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73811         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73812         (re_match_2, re_set_registers): Use the new types.
73813         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73814         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73815         New macros.
73816         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73817         (re_string_context_at, bin_tree_t, re_dfastate_t):
73818         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73819         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73820         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73821         (re_string_char_size_at, re_string_wchar_at):
73822         (re_string_elem_size_at):
73823         Use the new types and macros to port to 64-bit hosts.
73824         Use unsigned types for internal values, so that the code
73825         mostly works even for arrays larger than SSIZE_MAX.
73826         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73827         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73828         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73829         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73830         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73831         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73832         (calc_inveclosure, parse_dup_op, build_range_exp):
73833         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73834         (fetch_number, create_token_tree, mark_opt_subexp):
73835         Likewise.
73836         * lib/regex_internal.c (re_string_construct_common,
73837         create_ci_newstate):
73838         (create_cd_newstate, re_string_allocate, re_string_construct):
73839         (re_string_realloc_buffers, build_wcs_upper_buffer):
73840         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73841         (re_string_reconstruct, re_string_peek_byte_case):
73842         (re_string_fetch_byte_case, re_string_context_at):
73843         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73844         (re_node_set_init_copy, re_node_set_add_intersect):
73845         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73846         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73847         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73848         (re_acquire_state, re_acquire_state_context, register_state):
73849         Likewise.
73850         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73851         search_cur_bkref_entry):
73852         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73853         (re_search_internal, re_search_2_stub, re_search_stub)
73854         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73855         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73856         (update_cur_sifted_state, check_dst_limits):
73857         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73858         (check_subexp_limits, sift_states_bkref, merge_state_array):
73859         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73860         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73861         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73862         (expand_bkref_cache, check_node_accept_bytes):
73863         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73864         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73865         (acquire_init_state_context, check_halt_node_context):
73866         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73867         (sift_states_backward, clean_state_log_if_needed):
73868         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73869         (find_recover_state, transit_state_sb, transit_state_mb):
73870         (transit_state_bkref, build_trtable, match_ctx_clean):
73871         Likewise.
73872         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73873         to work around an assumption that REG_MISSING is negative.
73874
73875         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73876         (seek_collating_symbol_entry) [defined _LIBC]:
73877         (lookup_collation_sequence_value) [defined _LIBC]:
73878         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73879         Use prototypes rather than old-style function definitions.
73880         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73881         (transit_state_sb) [0]:
73882         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73883
73884         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73885         rm_eo.
73886
73887         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73888         (optimize_subexps, lower_subexp):
73889         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73890         since the signed shift might overflow.  Use 1u<<31 instead.
73891         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73892         Likewise.
73893         * lib/regexec.c (check_dst_limits_calc_pos_1,
73894         check_subexp_matching_top): Likewise.
73895
73896         * lib/regcomp.c (optimize_subexps, lower_subexp):
73897         Use CHAR_BIT rather than 8, for clarity.
73898         * lib/regexec.c (check_dst_limits_calc_pos_1):
73899         (check_subexp_matching_top): Likewise.
73900         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73901         have to worry about portability issues when shifting it left.
73902         Remove no-longer-needed test for table_size > 0.
73903         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73904         in a word, as the resulting behavior is undefined.
73905         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73906         in one case, a <= should have been an <, and in another case the
73907         whole test was missing.
73908         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73909         the standard name CHAR_BIT.
73910         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73911         this is not true on one's complement and signed-magnitude hosts.
73912
73913         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73914         next_last_offset.
73915         (struct re_dfa_t): Remove unused member states_alloc.
73916         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73917
73918 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73921         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73922         and large-file glibc and in 32-bit large-file Solaris.
73923
73924 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73927         lengths fit in regoff_t; this isn't true if regoff_t is the same
73928         width as size_t.
73929         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73930         (= START + RANGE) instead of RANGE.  This avoids overflow
73931         problems when regoff_t is the same width as size_t.
73932         All callers changed.
73933         (re_search_2_stub): Check for overflow when adding the
73934         sizes of the two strings.
73935         (re_search_stub): Check for overflow when adding START
73936         to RANGE; if it occurs, substitute the extreme value.
73937
73938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73941
73942 2005-08-31  Jim Meyering  <jim@meyering.net>
73943
73944         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73945         a pointer-to-const.
73946         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73947         (register_state): Likewise.
73948         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73949         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73950         (group_nodes_into_DFAstates): Likewise.
73951
73952 2005-08-31  Jim Meyering  <jim@meyering.net>
73953
73954         * check-module: Add a FIXME comment.
73955
73956 2005-08-31  Eric Blake  <ebb9@byu.net>
73957
73958         * modules/unistd-safer (Files): Add unistd--.h.
73959         * modules/stdio-safer (Files): Add stdio--.h.
73960
73961 2005-08-31  Derek Price  <derek@ximbiot.com>
73962
73963         * lib/getdelim.c (getdelim): Return EOF on EOF.
73964         Reported by Larry Jones <lawrence.jones@ugs.com>.
73965
73966 2005-08-31  Bruno Haible  <bruno@clisp.org>
73967
73968         Avoid unnecessary diffs in the generated lib/Makefile.am.
73969         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73970         the generated files.
73971         (func_import): Don't set cmd.
73972
73973 2005-08-31  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/strstr.c: Include <stddef.h>, for NULL.
73976         * lib/strcasestr.c: Likewise.
73977         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73978
73979 2005-08-31  Bruno Haible  <bruno@clisp.org>
73980
73981         * gnulib-tool: New option --macro-prefix.
73982         (func_import): Use macro_prefix.
73983         (import): Handle option --macro-prefix.
73984
73985 2005-08-31  Bruno Haible  <bruno@clisp.org>
73986
73987         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73988         Also use new variables cached_lgpl, cached_libtool.
73989
73990 2005-08-31  Bruno Haible  <bruno@clisp.org>
73991
73992         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73993         always instantiating them.
73994
73995 2005-08-31  Bruno Haible  <bruno@clisp.org>
73996
73997         * gnulib-tool (func_import): Read the previous cached settings
73998         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73999         earlier added by gnulib but are now dropped. Warn when a gnulib file
74000         overwrites a non-gnulib file.
74001
74002 2005-08-31  Bruno Haible  <bruno@clisp.org>
74003
74004         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74005         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74006         projects that don't keep autogenerated files in CVS. Put into
74007         actioncmd only the specified modules, not the transitive closure.
74008
74009 2005-08-31  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74012         Create directories that shall be filled.
74013         (import): Don't look for gl_* macros in configure.ac. Recurse across
74014         all directories containing a gnulib-cache.m4 files, if meaningful.
74015
74016 2005-08-31  Bruno Haible  <bruno@clisp.org>
74017
74018         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74019         (import): Set seen_libtool when we see gl_LIBTOOL.
74020
74021 2005-08-31  Bruno Haible  <bruno@clisp.org>
74022
74023         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74024         declaration macro definitions from generated gnulib.m4.
74025
74026 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74027
74028         * lib/iconvme.h: Add prototype for iconv_alloc.
74029
74030 2005-08-29  Simon Josefsson  <jas@extundo.com>
74031
74032         * lib/iconvme.c: Fix errno.
74033
74034 2005-08-29  Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74037         that it works when the directory contains spaces.
74038
74039 2005-08-29  Bruno Haible  <bruno@clisp.org>
74040
74041         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74042
74043 2005-08-29  Bruno Haible  <bruno@clisp.org>
74044
74045         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74046         Emit more advice.
74047
74048 2005-08-29  Bruno Haible  <bruno@clisp.org>
74049         and Stepan Kasal  <kasal@ucw.cz>
74050
74051         * check-module: If more parameters are given, check each of them
74052         separately; add more exceptions, as noted by Jim Meyering.
74053         (check_module): New procedure.
74054         (%exempt_header): Now contains all exceptions.
74055
74056 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74057
74058         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74059
74060 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74061
74062         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74063
74064 2005-08-28  Bruno Haible  <bruno@clisp.org>
74065
74066         * m4/gnulib-tool.m4: New file.
74067
74068 2005-08-27  Jim Meyering  <jim@meyering.net>
74069
74070         * modules/unistd-safer (Files): Add pipe-safer.c.
74071         * modules/fcntl-safer (Files): Add creat-safer.c.
74072
74073 2005-08-27  Jim Meyering  <jim@meyering.net>
74074
74075         * m4/stdlib-safer.m4: New file.  From coreutils.
74076         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74077         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74078         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74079         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74080         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74081
74082 2005-08-27  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/fopen-safer.c: Merge minor changes from coreutils.
74085         * lib/dup-safer.c: Likewise.
74086         * lib/fd-safer.c: Likewise.
74087
74088         Merge from coreutils.
74089         * lib/stdio--.h: New file.
74090         * lib/stdlib--.h: New file.
74091         * lib/mkstemp-safer.c: New file.
74092
74093         GNU tar needs these.
74094         * lib/pipe-safer.c: New file.
74095         * lib/creat-safer.c: New file.
74096         * lib/fcntl--.h (creat): Define to creat_safer.
74097         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74098         * lib/unistd--.h (pipe): Define to pipe_safer.
74099         * lib/unistd-safer.h: Declare pipe_safer.
74100
74101 2005-08-26  Simon Josefsson  <jas@extundo.com>
74102
74103         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74104         Haible <bruno@clisp.org>.
74105
74106 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * lib/regex_internal.h: Remove all references to
74109         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74110         or better.
74111         (bitset_not, bitset_merge, bitset_not_merge):
74112         (bitset_mask, re_string_allocate, re_string_construct):
74113         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74114         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74115         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74116         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74117         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74118         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74119         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74120         (re_acquire_state_context):
74121         Remove unnecessary forward decls.
74122         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74123         Put __attribute at function definition,
74124         now that the function decl has been removed.
74125         * lib/regex_internal.c (re_string_peek_byte_case):
74126         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74127         Likewise.
74128
74129 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74130
74131         * m4/regex.m4: Add AC_PREREQ(2.50).
74132         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74133
74134 2005-08-25  Simon Josefsson  <jas@extundo.com>
74135
74136         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74137         __fsetlocking.
74138
74139 2005-08-25  Simon Josefsson  <jas@extundo.com>
74140
74141         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74142         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74143         GLIBC specific code.
74144
74145 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         Make regex safe for g++.  This fixes one real bug (an "err"
74148         that should have been "*err").  g++ problem reported by
74149         Sam Steingold.
74150         * lib/regex_internal.h (re_calloc): New macro, consistent with
74151         re_malloc etc.  All callers of calloc changed to use re_calloc.
74152         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74153         not int.  All callers changed.
74154         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74155         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74156         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74157         (find_recover_state): Change "err" to "*err"; this fixes what
74158         appears to be a real bug.
74159         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74160         versus int.
74161
74162 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * modules/regex (Depends-on): Add malloc, since the code
74165         assumes that !malloc(0) means failure.
74166
74167 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74170
74171         alloca modernization/simplification for regex.
74172         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74173         needs to be at the start of the file, and can be moved into
74174         regex_internal.h and simplified.
74175         * lib/regex_internal.h: Include <alloca.h>.
74176         (__libc_use_alloca) [!defined _LIBC]: New macro.
74177         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74178         now works outside glibc.
74179
74180 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * config/srclist.txt: Add glibc bugs 1241, 1245.
74183
74184 2005-08-25  Jim Meyering  <jim@meyering.net>
74185
74186         * lib/open-safer.c: Include <config.h>.
74187         Otherwise, we'd lose LARGEFILE support in any file using
74188         e.g. "fcntl--.h"
74189
74190 2005-08-25  Bruno Haible  <bruno@clisp.org>
74191
74192         * m4/minmax.m4: Require autoconf 2.52.
74193         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74194         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74195         alternatives of translit over the alphabet.
74196         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74197
74198 2005-08-24  Simon Josefsson  <jas@extundo.com>
74199
74200         * tests/test-getpass.c: New file.
74201
74202 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74205         for GNU regex features.
74206
74207 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74210         * lib/regex.h (regerror): Likewise.
74211
74212         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74213         requires this.  (The code never needed it.)
74214
74215         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74216         All uses of recently-renamed identifiers changed to use the new,
74217         POSIX-compliant names.  The code will build and run just fine
74218         without these changes, but it's better to eat our own dog food
74219         and use the standard-conforming names.
74220
74221         * lib/regex.h: Fix a multitude of POSIX name space violations.
74222         These changes have an effect only for programs that define
74223         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74224         do not change anything for programs compiled in the normal way.
74225         Also, there is no effect on the ABI.
74226
74227         (_REGEX_SOURCE): New macro.
74228         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74229         defined and _GNU_SOURCE is not; this fixes a name space violation.
74230
74231         Rename the following macros to obey POSIX requirements.
74232         The old names are still visible as macros if _REGEX_SOURCE is defined.
74233         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74234         RE_BACKSLASH_ESCAPE_IN_LISTS.
74235         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74236         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74237         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74238         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74239         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74240         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74241         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74242         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74243         (REG_INTERVALS): renamed from RE_INTERVALS.
74244         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74245         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74246         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74247         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74248         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74249         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74250         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74251         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74252         RE_UNMATCHED_RIGHT_PAREN_ORD.
74253         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74254         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74255         (REG_DEBUG): renamed from RE_DEBUG.
74256         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74257         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74258         unusual, since we can't clash with the POSIX REG_ICASE.
74259         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74260         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74261         (REG_NO_SUB): renamed from RE_NO_SUB.
74262         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74263         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74264         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74265         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74266         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74267         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74268         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74269         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74270         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74271         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74272         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74273         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74274         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74275         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74276         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74277         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74278         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74279         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74280         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74281         (REG_FIXED): Renamed from REGS_FIXED.
74282         (REG_NREGS): Renamed from RE_NREGS.
74283
74284         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74285         of other REG_* macros, since POSIX says the user is allowed to
74286         #undef these macros selectively.
74287
74288         (reg_errcode_t): Update comment stating what other tables need
74289         to be consistent.
74290
74291         Rename the following enum values to obey POSIX requirements.
74292         The old names are still visible as macros.
74293         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74294         is not defined, since GNU is supposed to be a superset of POSIX as
74295         much as possible, and since we want reg_errcode_t to be a signed
74296         type for implementation consistency.
74297         (_REG_NOERROR): Renamed from REG_NOERROR.
74298         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74299         (_REG_BADPAT): Renamed from REG_BADPAT.
74300         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74301         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74302         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74303         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74304         (_REG_EBRACK): Renamed from REG_EBRACK.
74305         (_REG_EPAREN): Renamed from REG_EPAREN.
74306         (_REG_EBRACE): Renamed from REG_EBRACE.
74307         (_REG_BADBR): Renamed from REG_BADBR.
74308         (_REG_ERANGE): Renamed from REG_ERANGE.
74309         (_REG_ESPACE): Renamed from REG_ESPACE.
74310         (_REG_BADRPT): Renamed from REG_BADRPT.
74311         (_REG_EEND): Renamed from REG_EEND.
74312         (_REG_ESIZE): Renamed from REG_ESIZE.
74313         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74314         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74315         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74316         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74317         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74318
74319         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74320         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74321         changed.  But support the old name if the new one is not defined
74322         and if _REGEX_SOURCE.
74323
74324         Change the following member names in struct re_pattern_buffer.
74325         The old names are still supported if !_REGEX_SOURCE.
74326         The new names are always supported, regardless of _REGEX_SOURCE.
74327         (re_buffer): Renamed from buffer.
74328         (re_allocated): Renamed from allocated.
74329         (re_used): Renamed from used.
74330         (re_syntax): Renamed from syntax.
74331         (re_fastmap): Renamed from fastmap.
74332         (re_translate): Renamed from translate.
74333         (re_can_be_null): Renamed from can_be_null.
74334         (re_regs_allocated): Renamed from regs_allocated.
74335         (re_fastmap_accurate): Renamed from fastmap_accurate.
74336         (re_no_sub): Renamed from no_sub.
74337         (re_not_bol): Renamed from not_bol.
74338         (re_not_eol): Renamed from not_eol.
74339         (re_newline_anchor): Renamed from newline_anchor.
74340
74341         Change the following member names in struct re_registers.
74342         The old names are still supported if !_REGEX_SOURCE.
74343         The new names are always supported, regardless of _REGEX_SOURCE.
74344         (rm_num_regs): Renamed from num_regs.
74345         (rm_start): Renamed from start.
74346         (rm_end): Renamed from end.
74347
74348         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74349         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74350         Prepend __ to parameter names.
74351
74352         Undo yesterday's changes.
74353
74354 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74357         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74358         lib/regex.c.
74359
74360 2005-08-24  Jim Meyering  <jim@meyering.net>
74361
74362         Sync from coreutils.
74363         * m4/fcntl-safer.m4: New file.
74364
74365         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74366         and object files for this module.
74367
74368 2005-08-24  Jim Meyering  <jim@meyering.net>
74369
74370         Sync from coreutils.
74371         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74372
74373 2005-08-24  Jim Meyering  <jim@meyering.net>
74374
74375         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74376         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74377
74378 2005-08-24  Jim Meyering  <jim@meyering.net>
74379
74380         * modules/fcntl-safer: New module.
74381         * modules/fts (Depends-on): Add fcntl-safer.
74382         * MODULES.html.sh (File descriptor based Input/Output):
74383         Add fcntl-safer.
74384
74385 2005-08-24  Bruno Haible  <bruno@clisp.org>
74386
74387         Support for unit test modules.
74388         * modules/README: Mention tests modules.
74389         * modules/TEMPLATE-TESTS: New file.
74390         * gnulib-tool: New options --extract-tests-module, --with-tests and
74391         --tests-base (unused for the moment).
74392         (testsbase, inctests): New variables.
74393         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74394         (func_verify_module): Exclude TEMPLATE-TESTS.
74395         (func_verify_nontests_module, func_verify_tests_module): New functions.
74396         (func_get_dependencies): Add implicit dependency for tests modules.
74397         (func_get_tests_module): New function.
74398         (func_modules_transitive_closure): When --with-tests was specified,
74399         include the unit tests as well, unless explicitly avoided.
74400         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74401         (func_emit_tests_Makefile_am): New function.
74402         (func_create_testdir): When --with-tests was specified, emit a
74403         tests/ directory.
74404         * MODULES.html.sh (Future developments): Update.
74405
74406 2005-08-24  Bruno Haible  <bruno@clisp.org>
74407
74408         * modules/tls-tests: New file.
74409         * tests/test-tls.c: New file, from GNU gettext.
74410
74411 2005-08-24  Bruno Haible  <bruno@clisp.org>
74412
74413         * modules/lock-tests: New file.
74414         * tests/test-lock.c: New file, from GNU gettext.
74415
74416 2005-08-24  Bruno Haible  <bruno@clisp.org>
74417
74418         * lib/lock.h: Add multiple inclusion guard.
74419         * lib/tls.h: Add multiple inclusion guard.
74420
74421 2005-08-24  Bruno Haible  <bruno@clisp.org>
74422
74423         * gnulib-tool: Add support for the --aux-dir option to
74424         --create-testdir, --create-megatestdir, --test, --megatest.
74425         (func_create_testdir, func_create_megatestdir): Optionally emit a
74426         AC_CONFIG_AUX_DIR directive.
74427         (create-testdir, create-megatestdir, test, megatest): Provide a
74428         default value for $auxdir.
74429
74430 2005-08-24  Bruno Haible  <bruno@clisp.org>
74431
74432         * gnulib-tool (import): Use compound statement instead of subshell
74433         where possible.
74434
74435 2005-08-24  Bruno Haible  <bruno@clisp.org>
74436
74437         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74438
74439 2005-08-24  Bruno Haible  <bruno@clisp.org>
74440
74441         * gnulib-tool (func_version): Update.
74442
74443 2005-08-24  Bruno Haible  <bruno@clisp.org>
74444
74445         * gnulib-tool (func_import, func_create_testdir,
74446         func_create_megatestdir): Quote all autoconf macro arguments.
74447
74448 2005-08-24  Bruno Haible  <bruno@clisp.org>
74449
74450         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74451         option --force, because --force causes the aclocal.m4 of each
74452         subdirectory to be newer than the corresponding config.h.in.
74453
74454 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74457         All contents moved to gl_REGEX.
74458         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74459         assume that it does.
74460
74461 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * lib/regex.h (REG_NOSYS)
74464         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74465         Define, since POSIX requires it as of 2001.
74466         (_REG_ENOSYS)
74467         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74468         New private symbol, used to keep the enum signed in all cases.
74469         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74470         Youngman in
74471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74472
74473         * lib/regex_internal.c (re_string_skip_chars, register_state):
74474         (calc_state_hash):
74475         Remove forward decls; no longer needed now that we use prototypes.
74476         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74477         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74478         (clean_state_log_if_needed): Likewise.
74479
74480 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74481
74482         * config/srclist.txt: Add glibc bugs 1231-1233.
74483
74484 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         Fix problems reported by Sam Steingold in
74487         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74488         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74489         assumed that reg_errcode_t is a signed type, which is not
74490         necessarily true if _XOPEN_SOURCE is not defined.
74491         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74492         since some compilers warn about it otherwise.
74493
74494 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74497         (init_word_char, create_initial_state, duplicate_node_closure):
74498         (fetch_token, peek_token_bracket, build_range_exp):
74499         (build_collating_symbol): Remove forward decls; no longer needed
74500         now that we use prototypes.
74501
74502         * lib/regcomp.c:
74503         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74504         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74505         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74506         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74507         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74508         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74509         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74510         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74511         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74512         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74513         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74514         (build_charclass, build_charclass_op, fetch_number, create_tree):
74515         (create_token_tree, mark_opt_subexp, duplicate_tree):
74516         Use prototypes rather than old-style definitions.
74517
74518         * lib/regex_internal.c:
74519         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74520         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74521         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74522         (re_string_reconstruct, re_string_peek_byte_case):
74523         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74524         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74525         (re_node_set_init_copy, re_node_set_add_intersect):
74526         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74527         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74528         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74529         (re_acquire_state, re_acquire_state_context, register_state):
74530         (create_ci_newstate, create_cd_newstate, free_state):
74531         Likewise.
74532         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74533         re_search_2):
74534         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74535         (re_search_internal, prune_impossible_nodes):
74536         (acquire_init_state_context, check_matching, static):
74537         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74538         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74539         (update_regs, sift_states_backward, build_sifted_states):
74540         (clean_state_log_if_needed, merge_state_array):
74541         (update_cur_sifted_state, add_epsilon_src_nodes):
74542         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74543         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74544         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74545         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74546         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74547         (check_arrival, check_arrival_add_next_nodes):
74548         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74549         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74550         (check_node_accept_bytes, check_node_accept, extend_buffers):
74551         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74552         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74553         (sift_ctx_init):
74554         Likewise.
74555
74556         * lib/regex_internal.h:
74557         (re_string_allocate, re_string_construct, re_string_reconstruct):
74558         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74559         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74560         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74561         (re_string_context_at, re_string_peek_byte_case):
74562         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74563         is defined, since we now use prototypes always.
74564
74565         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74566         C89 or better.  All uses removed.
74567
74568 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * config/srclist.txt: Add glibc bugs 1220-1227.
74571
74572 2005-08-20  Jim Meyering  <jim@meyering.net>
74573
74574         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74575         of unused local, dfa.
74576
74577 2005-08-20  Bruno Haible  <bruno@clisp.org>
74578
74579         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74580
74581 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74584         (re_node_set_insert_last, re_dfa_add_node):
74585         Rename local variables to avoid GCC shadowing warnings.
74586
74587 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74590         [defined lint]: Suppress bogus uninitialized-variable warnings.
74591
74592         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74593         and let the caller return REG_ESPACE if out of space.  This
74594         removes an uninitialied-variable warning with GCC 4.0.1, and also
74595         avoids taking the address of a local variable.  All callers
74596         changed.
74597
74598 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74601         $LIBCSRC/posix/regexec.c.
74602         Add glibc bug 1217 for regcomp.c.
74603
74604 2005-08-19  Jim Meyering  <jim@meyering.net>
74605
74606         * lib/regexec.c (proceed_next_node): Redo local variables to
74607         avoid GCC shadowing warnings.
74608
74609 2005-08-18  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/strstr.c (strstr): Fix return value in multibyte case.
74612         * lib/strcasestr.c (strcasestr): Likewise.
74613
74614 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74617
74618 2005-08-17  Jim Meyering  <jim@meyering.net>
74619
74620         Make the %s format (seconds since the epoch) work for a negative
74621         number and when used with a zero-padded field width, e.g. %015s.
74622
74623         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74624         label so that it precedes the code to set `digits'.  Otherwise,
74625         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74626         print `00-22'.  Now, it prints `-0022', as it should.
74627
74628 2005-08-17  Bruno Haible  <bruno@clisp.org>
74629
74630         * modules/strstr (Files): Add m4/mbrtowc.m4.
74631         (Depends-on): Add mbuiter.
74632
74633 2005-08-17  Bruno Haible  <bruno@clisp.org>
74634
74635         * modules/strcasestr: New file.
74636         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74637         strcasestr.
74638
74639 2005-08-17  Bruno Haible  <bruno@clisp.org>
74640
74641         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74642
74643 2005-08-17  Bruno Haible  <bruno@clisp.org>
74644
74645         * modules/mbuiter: New file.
74646         * MODULES.html.sh (Extended multibyte and wide character utilities):
74647         Add mbuiter.
74648
74649 2005-08-17  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74652         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74653
74654 2005-08-17  Bruno Haible  <bruno@clisp.org>
74655
74656         * m4/strcasestr.m4: New file.
74657
74658 2005-08-17  Bruno Haible  <bruno@clisp.org>
74659
74660         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74661         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74662
74663 2005-08-17  Bruno Haible  <bruno@clisp.org>
74664
74665         * lib/strcasestr.h: New file.
74666         * lib/strcasestr.c: New file.
74667
74668 2005-08-17  Bruno Haible  <bruno@clisp.org>
74669
74670         * lib/strcasecmp.c: Use mbuiter.h.
74671
74672 2005-08-17  Bruno Haible  <bruno@clisp.org>
74673
74674         * lib/mbuiter.h: New file.
74675
74676 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74679         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74680         and gl_GETOPT are both invoked via different paths (as happens
74681         with GNU tar CVS because it uses both argp and getopt), the former
74682         wins.
74683
74684 2005-08-16  Bruno Haible  <bruno@clisp.org>
74685
74686         * modules/tls: New file.
74687         * MODULES.html.sh (Multithreading): Add tls.
74688
74689 2005-08-16  Bruno Haible  <bruno@clisp.org>
74690
74691         * modules/strnlen1: New file.
74692         * MODULES.html.sh (String handling): Add strnlen1.
74693
74694 2005-08-16  Bruno Haible  <bruno@clisp.org>
74695
74696         * modules/strcase (Files): Add m4/mbrtowc.m4.
74697         (Depends-on): Add strnlen1, mbchar.
74698
74699 2005-08-16  Bruno Haible  <bruno@clisp.org>
74700
74701         * modules/mbiter: New file.
74702         * MODULES.html.sh (Extended multibyte and wide character utilities):
74703         Add mbiter.
74704
74705 2005-08-16  Bruno Haible  <bruno@clisp.org>
74706
74707         * modules/mbfile: New file.
74708         * MODULES.html.sh (Extended multibyte and wide character utilities):
74709         Add mbfile.
74710
74711 2005-08-16  Bruno Haible  <bruno@clisp.org>
74712
74713         * modules/mbchar: New file.
74714         * MODULES.html.sh (Extended multibyte and wide character utilities):
74715         New section.
74716
74717 2005-08-16  Bruno Haible  <bruno@clisp.org>
74718
74719         * m4/tls.m4: New file, from GNU gettext.
74720
74721 2005-08-16  Bruno Haible  <bruno@clisp.org>
74722
74723         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74724         always.
74725         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74726
74727 2005-08-16  Bruno Haible  <bruno@clisp.org>
74728
74729         * m4/mbiter.m4: New file.
74730
74731 2005-08-16  Bruno Haible  <bruno@clisp.org>
74732
74733         * m4/mbfile.m4: New file.
74734
74735 2005-08-16  Bruno Haible  <bruno@clisp.org>
74736
74737         * m4/mbchar.m4: New file.
74738
74739 2005-08-16  Bruno Haible  <bruno@clisp.org>
74740
74741         * lib/tls.h: New file, from GNU gettext.
74742         * lib/tls.c: New file, from GNU gettext.
74743
74744 2005-08-16  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/strnlen1.h: New file.
74747         * lib/strnlen1.c: New file.
74748
74749 2005-08-16  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74752         (mbi_init): Update.
74753         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74754         NUL byte, not after it.
74755
74756 2005-08-16  Bruno Haible  <bruno@clisp.org>
74757
74758         * lib/strcase.h (strcasecmp): Add note in comments.
74759         * lib/strncasecmp.c: Use code from strcasecmp.c.
74760         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74761         (strcasecmp): Work correctly in multibyte locales.
74762
74763 2005-08-16  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/mbiter.h: New file.
74766
74767 2005-08-16  Bruno Haible  <bruno@clisp.org>
74768
74769         * lib/mbfile.h: New file.
74770
74771 2005-08-16  Bruno Haible  <bruno@clisp.org>
74772
74773         * lib/mbchar.h: New file.
74774         * lib/mbchar.c: New file.
74775
74776 2005-08-16  Bruno Haible  <bruno@clisp.org>
74777
74778         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74779         the valid ones. Makes the comparison operations transitive:
74780         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74781         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74782
74783 2005-08-15  Simon Josefsson  <jas@extundo.com>
74784
74785         * modules/ssize_t (License): Change to 'unlimited'.
74786
74787         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74788
74789 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74792         Add comments for each pending glibc patch.
74793
74794 2005-08-15  Bruno Haible  <bruno@clisp.org>
74795
74796         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74797         __cplusplus is defined.
74798
74799 2005-08-14  Jim Meyering  <jim@meyering.net>
74800
74801         Sync from coreutils.
74802
74803         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74804         Use the hash-table-based cycle-detection code not just when
74805         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74806         Reported by James Youngman in
74807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74808         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74809         FTS_TIGHT_CYCLE_CHECK.
74810         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74811         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74812         once again.
74813         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74814         * lib/fts.c (fd_safer): Remove decl.
74815         Include fcntl--.h rather than unistd-safer.h
74816         (fts_safe_changedir): Don't call fd_safer; no longer needed
74817         now that we include fcntl--.h.
74818
74819 2005-08-12  Simon Josefsson  <jas@extundo.com>
74820
74821         * modules/getndelim2: Use ssize_t module.
74822         * modules/getnline: Likewise.
74823         * modules/safe-read: Likewise.
74824         * modules/xreadlink: Likewise.
74825
74826         * modules/ssize_t: New file.
74827
74828 2005-08-12  Simon Josefsson  <jas@extundo.com>
74829
74830         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74831
74832 2005-08-12  Simon Josefsson  <jas@extundo.com>
74833
74834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74835         ssize_t.
74836
74837 2005-08-12  Simon Josefsson  <jas@extundo.com>
74838
74839         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74840         readline, getdelim and check_version.
74841         (Support for systems lacking ISO C 99: Sizes of integer types):
74842         Add size_max.
74843
74844 2005-08-12  Bruno Haible  <bruno@clisp.org>
74845
74846         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74847
74848 2005-08-11  Simon Josefsson  <jas@extundo.com>
74849
74850         * modules/readline: New file.
74851
74852         * modules/strnlen (Files): Add strnlen.h.
74853
74854 2005-08-11  Simon Josefsson  <jas@extundo.com>
74855
74856         * m4/readline.m4: New file.
74857
74858 2005-08-11  Simon Josefsson  <jas@extundo.com>
74859
74860         * lib/readline.h, readline.c: New file.
74861
74862 2005-08-11  Simon Josefsson  <jas@extundo.com>
74863
74864         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74865         gl_AVOID.
74866
74867 2005-08-11  Bruno Haible  <bruno@clisp.org>
74868
74869         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74870
74871 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74872
74873         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74874
74875 2005-08-10  Simon Josefsson  <jas@extundo.com>
74876
74877         * tests/test-iconvme.c: New file.
74878
74879 2005-08-10  Simon Josefsson  <jas@extundo.com>
74880
74881         * m4/strnlen.m4: New file.
74882
74883         * m4/strndup.m4: Don't check for strnlen declaration, done in
74884         strnlen.m4.
74885
74886 2005-08-10  Simon Josefsson  <jas@extundo.com>
74887
74888         * lib/strndup.c: Use strnlen.h.
74889
74890         * lib/strnlen.h: New file.
74891
74892 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74893
74894         * README: Typos.
74895
74896 2005-08-02  Simon Josefsson  <jas@extundo.com>
74897
74898         * modules/readline: New file.
74899
74900 2005-08-02  Simon Josefsson  <jas@extundo.com>
74901
74902         * modules/getdelim: New file.
74903
74904         * modules/getline: Rewrite, don't use getndelim2.
74905
74906 2005-08-02  Simon Josefsson  <jas@extundo.com>
74907
74908         * m4/getline.m4: Separate out getdelim stuff into separate module.
74909
74910         * m4/getdelim.m4: New file.
74911
74912 2005-08-02  Simon Josefsson  <jas@extundo.com>
74913
74914         * lib/getline.h, getline.c: Rewrite.
74915
74916         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74917
74918 2005-07-31  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/lock.h (gl_lock_initializer): New macro.
74921         (gl_lock_define_initialized): Use it.
74922         (gl_rwlock_initializer): New macro.
74923         (gl_rwlock_define_initialized): Use it.
74924         (gl_recursive_lock_initializer): New macro.
74925         (gl_recursive_lock_define_initialized): Use it.
74926
74927 2005-07-30  Karl Berry  <karl@gnu.org>
74928
74929         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74930         Report from Ben Pfaff, regarding getopt.
74931
74932 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74935         normal way.
74936         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74937         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74938         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74939         (gl_GETOPT): Use the new macros.  Most of the implementation
74940         is moved to the new macros.  This is for programs like Emacs
74941         that don't want all the functionality of gl_GETOPT.
74942
74943 2005-07-26  Bruno Haible  <bruno@clisp.org>
74944
74945         * m4/lock.m4: Update from GNU gettext.
74946
74947 2005-07-26  Bruno Haible  <bruno@clisp.org>
74948
74949         * lib/lock.h: Update from GNU gettext.
74950         * lib/lock.c: Update from GNU gettext.
74951
74952 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74953
74954         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74955         obsolescent AC_TRY_RUN.  Include the default includes files, for
74956         'exit'.
74957
74958 2005-07-24  Bruno Haible  <bruno@clisp.org>
74959
74960         * modules/visibility: New file.
74961         * MODULES.html.sh (Misc): Add visibility.
74962
74963 2005-07-24  Bruno Haible  <bruno@clisp.org>
74964
74965         * m4/visibility.m4: New file.
74966
74967 2005-07-24  Bruno Haible  <bruno@clisp.org>
74968
74969         * doc/visibility.texi: New file.
74970
74971 2005-07-22  Bruno Haible  <bruno@clisp.org>
74972
74973         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74974         $(ALLOCA_H), redundant through BUILT_SOURCES.
74975         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74976         redundant through BUILT_SOURCES.
74977         * modules/byteswap (Makefile.am): Remove explicit dependency on
74978         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74979         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74980         $(FNMATCH_H), redundant through BUILT_SOURCES.
74981         * modules/getopt (Makefile.am): Remove explicit dependency on
74982         $(GETOPT_H), redundant through BUILT_SOURCES.
74983         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74984         redundant through BUILT_SOURCES.
74985         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74986         redundant through BUILT_SOURCES.
74987         * modules/stdbool (Makefile.am): Remove explicit dependency on
74988         $(STDBOOL_H), redundant through BUILT_SOURCES.
74989         * modules/stdint (Makefile.am): Remove explicit dependency on
74990         $(STDINT_H), redundant through BUILT_SOURCES.
74991         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74992         Remove explicit dependency on $(SYSEXITS_H).
74993         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74994
74995 2005-07-18  Simon Josefsson  <jas@extundo.com>
74996
74997         * lib/check-version.c (check_version): Accept identical versions too.
74998
74999 2005-07-18  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/lock: New file.
75002         * MODULES.html.sh (Multithreading): New section.
75003
75004 2005-07-18  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/lock.m4: New file, from GNU gettext.
75007
75008 2005-07-18  Bruno Haible  <bruno@clisp.org>
75009
75010         * lib/lock.h: New file, from GNU gettext.
75011         * lib/lock.c: New file, from GNU gettext.
75012
75013 2005-07-18  Bruno Haible  <bruno@clisp.org>
75014
75015         * lib/lock.h (gl_once_t): New type.
75016         (gl_once_define, gl_once): New macros.
75017         * lib/lock.c (fresh_once): New variable.
75018         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75019         functions.
75020
75021 2005-07-16  Simon Josefsson  <jas@extundo.com>
75022
75023         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75024         workaround, suggested by Bruno.
75025
75026 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * modules/xalloc (Depends-on): Add xalloc-die.
75029         * modules/xvasprintf (Depends-on): Add xalloc-die.
75030
75031 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75034         with a minor change.
75035
75036 2005-07-15  Bruno Haible  <bruno@clisp.org>
75037
75038         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75039         When using lib/poll.c, define poll as rpl_poll.
75040
75041 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * modules/argp (Depends-on): Remove unlocked-io.
75044
75045 2005-07-14  Derek Price  <derek@ximbiot.com>
75046
75047         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75048         for glob symlink bug.
75049
75050 2005-07-14  Bruno Haible  <bruno@clisp.org>
75051
75052         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75053         Instead, test for *_unlocked function declarations directly.
75054
75055 2005-07-11  Simon Josefsson  <jas@extundo.com>
75056
75057         * modules/size_max: New file.
75058
75059         * modules/xsize: Depend on size_max module for size_max.m4.
75060
75061 2005-07-11  Simon Josefsson  <jas@extundo.com>
75062
75063         * lib/size_max.h: New file.
75064
75065 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75068         copyright symbol and the year.
75069         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75070         (version_etc_va): Use parameterized copyright notice.
75071         Reword to conform to the current GNU coding standards.
75072
75073 2005-07-11  Karl Berry  <karl@gnu.org>
75074
75075         * doc/gnulib.texi (Quoting): new node.
75076         (Initial import): more info, from Patrice.
75077
75078 2005-07-11  Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool (func_usage): Document option --avoid.
75081         (Command line options): Handle --avoid.
75082         (func_acceptable): New function.
75083         (func_modules_transitive_closure): Use it.
75084
75085 2005-07-11  Bruno Haible  <bruno@clisp.org>
75086
75087         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75088         Reported by Jim Meyering.
75089
75090 2005-07-10  Bruno Haible  <bruno@clisp.org>
75091
75092         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75093         Needed when size_t is smaller than 'unsigned int'.
75094         Reported by Paul Eggert.
75095
75096 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75097
75098         * modules/argp (Depends-on): Add unlocked-io
75099
75100 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75101
75102         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75103         block of defines.
75104
75105 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75108         fix now.
75109
75110 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75111         and Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75114         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75115
75116 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         * modules/regex (Files): Add lib/regex_internal.c,
75119         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75120         (Depends-on): Add extensions.
75121         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75122
75123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75126         pathconf.
75127         * m4/same.m4 (gl_SAME): Likewise.
75128         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75129
75130         * m4/regex.m4: Adjust to new libc regex implementation.
75131         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75132         all the .c and .h parts of (the new) regex.
75133         Quote the m4 stuff better.
75134         Check for RE_ICASE bug of old gnulib.
75135         Check for REG_STARTEND of recent libc.
75136         Rename local variables from jm_* to gl_*.
75137         Quote operand of "test -f".
75138         Say "recent enough" version of libc, not "version 2".
75139         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75140         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75141         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75142         Remove check for btowc, isascii.
75143         Require AM_LANGINFO_CODESET.
75144
75145 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75146
75147         * lib/regex.c, regex.h: Sync from libc.
75148         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75149         * lib/regexec.c:
75150         New files, synced from libc, except that regex_internal.h
75151         currently has a small porting fix.
75152
75153 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75154
75155         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75156         regex_internal.c, regexec.c.
75157         Add regex_internal.h too, but as a comment, since the libc version
75158         is currently broken in gnulib mode.
75159
75160 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         Support programs like Emacs that use gnulib but not gettext.
75163         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75164         * modules/gettext-h: New file.
75165         * modules/gettext (Files): Remove lib/gettext.h.
75166         (Depends-on): Add gettext-h.
75167         (Makefile.am): Remove lib_SOURCES.
75168         * modules/argmatch, modules/c-stack, modules/closeout:
75169         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75170         * modules/execute, modules/file-type, modules/getaddrinfo:
75171         * modules/getopt, modules/human, modules/javacomp:
75172         * modules/javaexec, modules/mkdir-p, modules/obstack:
75173         * modules/openat, modules/pagealign_alloc, modules/pipe:
75174         * modules/quotearg, modules/regex, modules/rpmatch:
75175         * modules/unicodeio, modules/userspec, modules/version-etc:
75176         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75177         * modules/xsetenv:
75178         Depend on gettext-h, not gettext.
75179
75180 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * gnulib-tool (func_import): Add support for 'public domain' license.
75183         * modules/alloca, modules/atexit, modules/memmove:
75184         Now public domain, not GPL.
75185         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75186         * modules/realloc, modules/strerror, modules/strtod:
75187         Now LGPL, not GPL.
75188
75189 2005-07-05  Bruno Haible  <bruno@clisp.org>
75190
75191         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75192         autoconf CVS. Needed for mingw.
75193
75194 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75195
75196         Remove the dependency of the strftime module on the tzset module.
75197         * modules/strftime (Depends-on): Remove dependency on tzset.
75198
75199 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         Remove the dependency of the strftime module on the tzset module.
75202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75203         gl_FUNC_TZSET_CLOBBER.
75204
75205 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         Remove the dependency of the strftime module on the tzset module.
75208         * lib/strftime.c (my_strftime)
75209         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75210         Copy the input structure, to work around some of the bug with
75211         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75212         Solaris releases, you should also use the tzset module, but we won't
75213         require it as a dependency any more since we don't want LGPLed code
75214         to depend on GPLed code.
75215
75216 2005-07-02  Jim Meyering  <jim@meyering.net>
75217
75218         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75219         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75220         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75221         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75222
75223 2005-07-02  Jim Meyering  <jim@meyering.net>
75224
75225         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75226
75227 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75230         declares only 'struct timespec;' (!).
75231
75232 2005-07-01  Jim Meyering  <jim@meyering.net>
75233
75234         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75235         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75236         * lib/save-cwd.c, tempname.c:
75237         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75238         and don't include <sys/file.h>).
75239
75240 2005-06-29  Jim Meyering  <jim@meyering.net>
75241
75242         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75243         type name.  Use the variable name instead.
75244         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75245         Likewise.
75246
75247 2005-06-28  Simon Josefsson  <jas@extundo.com>
75248
75249         * modules/check-version (Files): Add check-version.m4.
75250
75251 2005-06-28  Simon Josefsson  <jas@extundo.com>
75252
75253         * m4/check-version.m4: New file, suggested by Jim Meyering
75254         <jim@meyering.net>.
75255
75256 2005-06-28  Simon Josefsson  <jas@extundo.com>
75257
75258         * lib/check-version.h, lib/check-version.c: New files.
75259
75260 2005-06-28  Simon Josefsson  <jas@extundo.com>
75261
75262         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75263         collision with global variable.  Better indentation.  Don't
75264         increment buffer pointer beyond buffer end.  Based on comments
75265         from Paul Eggert <eggert@cs.ucla.edu>.
75266
75267         * lib/base64.h: Indent.
75268
75269 2005-06-28  Simon Josefsson  <jas@extundo.com>
75270
75271         * doc/gnulib.texi (Library version handling): New section.
75272
75273 2005-06-28  Jim Meyering  <jim@meyering.net>
75274
75275         * check-module (find_included_lib_files): Hard-code another
75276         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75277         but modules/fts-lgpl (correctly) does not list those files.
75278
75279         * modules/canonicalize (Files): Add lib/pathmax.h.
75280
75281 2005-06-25  Simon Josefsson  <jas@extundo.com>
75282
75283         * modules/check-version: New file.
75284
75285 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75288         initializer of struct addrinfo, as an indication that we don't
75289         care how many members the structure has.
75290
75291 2005-06-24  Derek Price  <derek@ximbiot.com>
75292         and Bruno Haible  <bruno@clisp.org>
75293
75294         Remove stat module & update lstat.
75295         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75296         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75297         * m4/stat.m4: Remove this file.
75298
75299 2005-06-24  Derek Price  <derek@ximbiot.com>
75300         and Bruno Haible  <bruno@clisp.org>
75301
75302         Remove stat module & update lstat.
75303         * lib/stat.c: Remove this file...
75304         (slash_aware_lstat): ...moving this content and its support...
75305         * lib/lstat.c (rpl_lstat): ...into here.
75306         * lib/lstat.h: New file.
75307
75308 2005-06-24  Derek Price  <derek@ximbiot.com>
75309         and Bruno Haible  <bruno@clisp.org>
75310
75311         Remove stat module & update lstat.
75312         * config/srclist.txt (libc sources): Remove stat.
75313
75314 2005-06-24  Derek Price  <derek@ximbiot.com>
75315         and Bruno Haible  <bruno@clisp.org>
75316
75317         Remove stat module & update lstat.
75318         * MODULES.html.sh (stat): Remove.
75319         * MODULES.html: Regenerated.
75320         * modules/lstat (Description): Correct function name.
75321         (Files): Add "lstat.h".
75322         (Depends-on): Remove stat, add xalloc, stat-macros.
75323         * modules/stat: Remove this file.
75324         (Include): Add "lstat.h", remove <sys/stat.h>.
75325
75326 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75329         (ranged_convert): Don't save conversion in a temporary struct.
75330         This causes a warning with GCC 4.0.0, and anyway in the typical
75331         case it's not worth the extra 100 bytes or so of code.
75332         (ranged_convert, __mktime_internal): When calling a function via a
75333         pointer P, use P () rather than (*P) (), as we now assume C89 or
75334         better.
75335
75336 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75339         "who -r" failed to give output.  Problem reported by Tim Waugh.
75340
75341         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75342         (xcalloc): Use it to avoid needless tests.
75343         Problem reported by Jim Meyering.
75344
75345 2005-06-20  Derek Price  <derek@ximbiot.com>
75346
75347         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75348         unnecessary for Autoconfs > 2.59c.
75349
75350 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75351
75352         * lib/argp.h (__option_is_short): Check upper limit of
75353         __key. Isprint() requires its argument to have the value
75354         of an unsigned char or EOF.
75355
75356 2005-06-16  Jim Meyering  <jim@meyering.net>
75357
75358         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75359         when either N or S is zero.
75360
75361 2005-06-16  Derek Price  <derek@ximbiot.com>
75362
75363         * m4/bison.m4: Declare YACC & YFLAGS precious.
75364
75365 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75368         multibyte string or pattern, fall back on unibyte matching.
75369         Problem reported by James Youngman.
75370
75371 2005-06-08  Bruno Haible  <bruno@clisp.org>
75372
75373         * modules/csharpcomp: New file.
75374         * MODULES.html.sh (C#): Add csharpcomp.
75375
75376 2005-06-08  Bruno Haible  <bruno@clisp.org>
75377
75378         * m4/csharpcomp.m4: New file, from GNU gettext.
75379
75380 2005-06-08  Bruno Haible  <bruno@clisp.org>
75381
75382         * lib/csharpcomp.h: New file, from GNU gettext.
75383         * lib/csharpcomp.c: New file, from GNU gettext.
75384         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75385
75386 2005-06-08  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75389         warning on mingw.
75390
75391 2005-06-07  Derek Price  <derek@ximbiot.com>
75392
75393         Sync from CVS.
75394         * lib/glob_.h: Indent nested #ifdef.
75395
75396 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         Sync from coreutils.
75399         Use "file name" when talking about file names, instead of "filename"
75400         or "path", as per the GNU coding standards.
75401         * lib/mkdir-p.c: Renamed from makepath.c.
75402         (make_dir_parents): Renamed from make_path.  All callers changed.
75403         * lib/mkdir-p.h: Likewise.  All includers changed.
75404         * lib/filenamecat.c: Renamed from path-concat.c.
75405         (file_name_concat): Renamed from path_concat.  All callers changed.
75406         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75407         * lib/filenamecat.h: Likewise.  All includers changed.
75408         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75409         in comments or local variable names.
75410         * lib/basename.c: Likewise.
75411         * lib/canonicalize.c, canonicalize.h: Likewise.
75412         * lib/dirname.c, dirname.h: Likewise.
75413         * lib/euidaccess.c: Likewise.
75414         * lib/exclude.c: Likewise
75415         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75416         * lib/fsusage.c, fsuage.h: Likewise.
75417         * lib/fts.c, fts_.h: Likewise.
75418         * lib/getcwd.c: Likewise.
75419         * lib/getloadavg.c: Likewise.
75420         * lib/mkstemp.c: Likewise.
75421         * lib/mountlist.c, mountlist.h: Likewise.
75422         * lib/openat.c, openat.h: Likewise.
75423         * lib/readlink-stub.c: Likewise.
75424         * lib/readutmp.c, readutmp.h: Likewise.
75425         * lib/rename.c: Likewise.
75426         * lib/rmdir.c: Likewise.
75427         * lib/same.c: Likewise.
75428         * lib/savedir.c: Likewise.
75429         * lib/stripslash.c: Likewise.
75430         * lib/tempname.c: Likewise.
75431         * lib/xreadlink.c: Likewise.
75432         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75433         All uses changed.
75434         * lib/exclude.h: Likewise.
75435
75436         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75437         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75438         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75439         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75440         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75441         files have been getting away with it for years (MORE/BSD 4.3
75442         is extinct now).
75443         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75444         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75445
75446         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75447         Define to 256, not 255, as per modern POSIX.
75448
75449 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         Sync from coreutils.
75452         Use "file name" when talking about file names, instead of "filename"
75453         or "path", as per the GNU coding standards.
75454         * MODULES.html.sh: mkdir-p renamed from makepath.
75455         filenamecat renamed from path-concat.
75456         * modules/filenamecat: Renamed from modules/path-concat.
75457         (Files): filenamecat.h and filenamecat.c renamed from
75458         path-concat.h and path-concat.c.
75459         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75460         (Include): filenamecat.h, not path-concat.h.
75461         * modules/mkdir-p: Renamed from modules/makepath.
75462         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75463         makepath.c.
75464         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75465         (Include): mkdir-p.h, not makepath.h.
75466
75467 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75468
75469         Sync from coreutils.
75470         * m4/mkdir-p.m4: Renamed from makepath.m4.
75471         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75472         Rename files from makepath.c to mkdir-p.c, and from
75473         makepath.h to mkdir-p.h.
75474         * m4/filenamecat.m4: Renamed from path-concat.m4.
75475         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75476         Rename files from path-concat.c to filenamecat.c,
75477         and from path-concat.h to filenamecat.h.
75478         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75479         "file name" in local variables or comments.
75480         * m4/rename.m4: Likewise.
75481
75482 2005-06-01  Bruno Haible  <bruno@clisp.org>
75483
75484         * modules/csharpexec: New file.
75485         * MODULES.html.sh (C#): New section.
75486
75487 2005-06-01  Bruno Haible  <bruno@clisp.org>
75488
75489         * m4/csharp.m4: New file, from GNU gettext.
75490         * m4/csharpexec.m4: New file, from GNU gettext.
75491
75492 2005-06-01  Bruno Haible  <bruno@clisp.org>
75493
75494         * lib/csharpexec.h: New file, from GNU gettext.
75495         * lib/csharpexec.c: New file, from GNU gettext.
75496         * lib/csharpexec.sh.in: New file, from GNU gettext.
75497
75498 2005-05-31  Derek Price  <derek@ximbiot.com>
75499             Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         Sync from cvs.
75502         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75503
75504 2005-05-31  Derek Price  <derek@ximbiot.com>
75505             Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         Sync from cvs.
75508         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75509
75510 2005-05-29  Derek Price  <derek@ximbiot.com>
75511
75512         * config/srclist.txt (glob_.h, glob.c): Add these files.
75513
75514 2005-05-29  Derek Price  <derek@ximbiot.com>
75515
75516         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75517         * modules/glob: New file.
75518         * modules/getlogin_r: Add link to POSIX spec in description.
75519
75520 2005-05-29  Derek Price  <derek@ximbiot.com>
75521             Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * m4/glob.m4: New file.
75524
75525 2005-05-29  Derek Price  <derek@ximbiot.com>
75526             Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * lib/glob_.h, lib/glob.c: New files.
75529
75530 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75531
75532         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75533         * modules/fts-lgpl (Depends-on): Remove gettext.
75534
75535 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75538         and don't require gt_INTTYPES_PRI.
75539
75540 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75541
75542         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75543
75544         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75545         the configuration hassle isn't worth it.
75546         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75547         (LONGEST_MODIFIER, PRIuMAX): Remove.
75548
75549 2005-05-27  Bruno Haible  <bruno@clisp.org>
75550
75551         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75552
75553 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75556         _POSIX_PTHREAD_SEMANTICS for Solaris.
75557
75558 2005-05-25  Derek Price  <derek@ximbiot.com>
75559
75560         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75561
75562 2005-05-25  Derek Price  <derek@ximbiot.com>
75563             Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75566         * lib/getlogin_r.c, getlogin_r.h: New files.
75567
75568 2005-05-25  Bruno Haible  <bruno@clisp.org>
75569             Derek Price  <derek@ximbiot.com>
75570
75571         * lib/getlogin_r.h: Simplify API documentation.
75572
75573 2005-05-23  Derek Price  <derek@ximbiot.com>
75574
75575         * modules/minmax (Files): Add m4/minmax.m4.
75576         (configure.ac): Add gl_MINMAX.
75577
75578 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75581         so that unistd-safer.h (GPL'ed code) need not be included.
75582
75583 2005-05-22  Bruno Haible  <bruno@clisp.org>
75584
75585         * m4/minmax.m4: New file.
75586         Based on a patch by Derek Price <derek@ximbiot.com>.
75587
75588 2005-05-22  Bruno Haible  <bruno@clisp.org>
75589
75590         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75591         (INT64_MIN): Fix definition.
75592         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75593
75594         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75595         NEED_SIGNED_INT_TYPES.
75596
75597         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75598         HAVE_SYSTEM_INTTYPES.
75599
75600 2005-05-22  Bruno Haible  <bruno@clisp.org>
75601
75602         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75603         Also include <sys/param.h> if it defines MIN, MAX.
75604         Based on a patch by Derek Price <derek@ximbiot.com>.
75605
75606 2005-05-21  Jim Meyering  <jim@meyering.net>
75607
75608         * modules/fts (Files): Add m4/inttypes-pri.m4.
75609         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75610
75611 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         New fts module.
75614         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75615         (setup_dir, free_dir): New functions.
75616         (enter_dir, leave_dir): Define trivial
75617         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75618         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75619         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75620         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75621         Move to fts-cycle.c.
75622         (fts_open): Use setup_dir.
75623         (fts_close): Use free_dir.
75624         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75625         This adds a label and some gotos, but the alternatives were messier.
75626         Check for memory allocation failure when entering a dir.
75627         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75628         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75629         (FTS): New member fts_cycle, that is a union that contains the
75630         old active_dir_ht and cycle_state.  All uses changed to mention
75631         fts_cycle.ht and fts_cycle.state.
75632         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75633         fts.c, with the following changes:
75634         (setup_dir, free_dir): New functions.
75635         (enter_dir): Now returns bool.  Return true if successful, false
75636         if memory exhausted.  All callers changed.
75637         Do not bother partly cleaning up on
75638         memory allocation failure; that is free_dir's job.
75639         However, free ad if hash_insert fails, to avoid memory leak.
75640         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75641         fts->fts_options to see which union member to use.
75642
75643 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75646         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75647
75648 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75651
75652 2005-05-20  Jim Meyering  <jim@meyering.net>
75653
75654         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75655         Now a macro, to pacify GCC.
75656
75657 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75658
75659         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75660         of -1.
75661
75662 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75663
75664         * lib/chown.c (rpl_chown): Return -1 on failure.
75665
75666 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75669         Don't check for stddef.h.
75670         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75671         don't use its results.
75672         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75673         since we include them unconditionally.  Don't require
75674         AM_STDBOOL_H, since stdbool is a prerequisite.
75675         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75676         since we assume C89 or better.
75677         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75678         as we don't use their results.
75679         Don't check for fchdir, memmove, memset, strrchr, as we use
75680         them unconditionally.
75681         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75682         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75683
75684 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75687         Include <stddef.h> unconditionally, since we assume C89 now.
75688         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75689         * lib/fts.c: Include fts_.h first, to check interface.
75690         Do not include intprops.h; no longer needed.
75691         Include cycle-check.h and hash.h, since fts_.h no longer does.
75692         Remove unnecessary casts of closedir to void.
75693         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75694         decide whether to decrement nlinks.
75695         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75696         (FTS): Use struct hash_table * instead of Hash_table, so that
75697         we no longer need to include hash.h here.
75698
75699 2005-05-18  Jim Meyering  <jim@meyering.net>
75700
75701         * modules/dirfd (License): Change to LGPL.  Most of the code
75702         is already in the public domain.
75703
75704 2005-05-18  Jim Meyering  <jim@meyering.net>
75705
75706         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75707         Reported by Yoann Vandoorselaere.
75708
75709 2005-05-17  Jim Meyering  <jim@meyering.net>
75710
75711         * m4/fts.m4: New file, from coreutils.
75712
75713 2005-05-17  Jim Meyering  <jim@meyering.net>
75714
75715         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75716
75717 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         Sync from coreutils.
75720         * m4/unlinkdir.m4: New file.
75721
75722 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         Sync from coreutils.
75725         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75726         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75727         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75728         White space changes only.
75729         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75730         special.
75731         * lib/yesno.c: Include getline.h, not ctype.h.
75732         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75733         Use getline to remove arbitrary restriction on response length.
75734
75735 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75736
75737         * config/srclist-update: Spell out "Street" in FSF postal
75738         mail address; this is the style the FSF seems to prefer.
75739
75740         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75741         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75742         this updates FSF postal mail address.
75743
75744         Sync from coreutils.
75745         * modules/unlinkdir: New file.
75746         * modules/yesno (Depends-on): Add getline.
75747         * MODULES.html.sh (File system functions): Add unlinkdir.
75748
75749 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75752         lib/strsep.h:
75753         Change the initial comment to refer to GPL, not LGPL.
75754         gnulib-tool will change it to LGPL as needed.
75755
75756         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75757         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75758         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75759         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75760         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75761         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75762         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75763         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75764         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75765         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75766         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75767         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75768         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75769         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75770         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75771         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75772         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75773         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75774         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75775         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75776         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75777         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75778         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75779         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75780         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75781         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75782         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75783         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75784         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75785         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75786         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75787         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75788         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75789         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75790         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75791         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75792         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75793         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75794         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75795         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75796         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75797         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75798         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75799         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75800         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75801         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75802         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75803         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75804         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75805         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75806         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75807         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75808         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75809         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75810         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75811         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75812         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75813         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75814         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75815         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75816         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75817         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75818         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75819         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75820         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75821         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75822         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75823         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75824         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75825         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75826         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75827         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75828         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75829         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75830         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75831         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75832         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75833         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75834         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75835         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75836         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75837         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75838         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75839         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75840         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75841         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75842         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75843         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75844         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75845         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75846         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75847         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75848         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75849         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75850         lib/yesno.c, lib/yesno.h:
75851         Update FSF postal mail address.
75852
75853 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75856         tests/test-memmem.c, tests/test-stpncpy.c:
75857         Update FSF postal mail address.
75858
75859 2005-05-13  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75862         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75863         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75864         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75865         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75866         Add support for 64-bit integers in the MSVC compiler.
75867
75868 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75869
75870         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75871
75872 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75873
75874         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75875
75876 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * doc/getdate.texi (General date syntax): Don't say that date
75879         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75880         Problem reported by Nic Ferrier.
75881
75882 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75883
75884         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75885         specified in ai_socktype. Fix invalid ai_protocol
75886         check. ai_protocol is usually set to 0 or depending on
75887         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75888         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75889         ai_socktype / ai_protocol in the returned addrinfo structure.
75890
75891 2005-05-10  Simon Josefsson  <jas@extundo.com>
75892
75893         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75894         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75895
75896 2005-05-10  Karl Berry  <karl@gnu.org>
75897
75898         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75899         (from http://www.gnu.org/licenses).
75900         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75901         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75902         fdl.texi suffices.
75903
75904 2005-05-10  Karl Berry  <karl@gnu.org>
75905
75906         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75907         (COPYING.DOC): remove.
75908
75909         * config/srclist-update: new FSF address.
75910
75911 2005-05-10  Derek Price  <derek@ximbiot.com>
75912
75913         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75914         possible.
75915
75916 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75917             Bruno Haible  <bruno@clisp.org>
75918
75919         * modules/inet_ntop: New file.
75920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75921         inet_ntop.
75922
75923 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75924             Bruno Haible  <bruno@clisp.org>
75925
75926         * m4/inet_ntop.m4: New file.
75927
75928 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75929             Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/inet_ntop.h: New file.
75932         * lib/inet_ntop.c: New file, from glibc with modifications.
75933
75934 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * modules/time_r (License): Change to LGPL.
75937         * modules/extensions (License): Change to LGPL.  Actually,
75938         the license is more permissive than that, but currently gnulib-tool
75939         doesn't know how to handle more-permissive licenses.
75940
75941         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75942         Problem reported by Dave Love.
75943
75944 2005-05-08  Jim Meyering  <jim@meyering.net>
75945
75946         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75947         blank.
75948
75949 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * modules/argmatch (Depends-on): Add stdbool.
75952         * modules/backupfile (Depends-on): Likewise.
75953         * modules/chdir-long (Depends-on): Likewise.
75954         * modules/closeout (Depends-on): Likewise.
75955         * modules/cycle-check (Depends-on): Likewise.
75956         * modules/dirname (Depends-on): Likewise.
75957         * modules/fnmatch (Depends-on): Likewise.
75958         * modules/fsusage (Depends-on): Likewise.
75959         * modules/fwriteerror (Depends-on): Likewise.
75960         * modules/getcwd (Depends-on): Likewise.
75961         * modules/getloadavg (Depends-on): Likewise.
75962         * modules/hard-locale (Depends-on): Likewise.
75963         * modules/makepath (Depends-on): Likewise.
75964         * modules/mountlist (Depends-on): Likewise.
75965         * modules/nanosleep (Depends-on): Likewise.
75966         * modules/posixtm (Depends-on): Likewise.
75967         * modules/quotearg (Depends-on): Likewise.
75968         * modules/readtokens (Depends-on): Likewise.
75969         * modules/readtokens0 (Depends-on): Likewise.
75970         * modules/readutmp (Depends-on): Likewise.
75971         * modules/save-cwd (Depends-on): Likewise.
75972         * modules/strftime (Depends-on): Likewise.
75973         * modules/userspec (Depends-on): Likewise.
75974         * modules/utimecmp (Depends-on): Likewise.
75975         * modules/xgetcwd (Depends-on): Likewise.
75976         * modules/xnanosleep (Depends-on): Likewise.
75977         * modules/xstrtod (Depends-on): Likewise.
75978         * modules/yesno (Depends-on): Likewise.
75979
75980 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75983         needless checks.
75984
75985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         Merge from coreutils.  Among other things,
75988         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75989         * lib/fd-safer.c: New file.
75990         * lib/fcntl-safer.h, open-safer.c: Remove.
75991         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75992         * lib/dup-safer.c: Include unistd-safer.h first.
75993         Don't include errno.h.
75994         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75995         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75996         * lib/file-type.c: Rely on file-type.h change.
75997         * lib/getloadavg.c: Include unistd-safer.h.
75998         (getloadavg): Use safer open.
75999         * lib/getusershell.c: Include "stdio-safer.h".
76000         (getusershell): Use safer fopen.
76001         * lib/long-options.c (long_options): Use NULL rather than 0.
76002         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76003         'free'.
76004         * lib/modechange.c: Likewise.
76005         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76006         (MODE_DONE): New constant.
76007         (struct mode_change): Remove 'next' member.
76008         (make_node_op_equals): New function; like the old one of the
76009         same name, except it allocates an array.
76010         (mode_compile, mode_create_from_ref): Use it.
76011         (mode_compile): Allocate result as an array, not a linked list.
76012         Parse octal string ourself, so that we catch mistakes like "+0".
76013         (mode_adjust): Arg is an array, not a linked list.
76014         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76015         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76016         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76017         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76018         Remove.  This is now stat-macros.h's job.
76019         (talloc): Remove.  All callers replaced by xalloc, so that
76020         our invokers don't have to worry about reporting memory failures.
76021         (make_node_op_equals): Remove.
76022         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76023         New constants.
76024         (struct mode_change): Moved here from modechange.h.
76025         (mode_append_entry): Remove.
76026         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76027         apps to have incorrect behavior.  Use simpler algorithm for head
76028         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76029         Detect more invalid usages rather than having somewhat-random behavior.
76030         Don't insert an "a=" action, as that leads to incorrect behavior.
76031         (mode_compile, mode_create_from_ref): Return NULL on error instead
76032         of an enum, since now there's only one way to have an error.  All
76033         callers changed.
76034         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76035         at the correct time.  Simplify calculation of "+u" and its ilk.
76036         Don't mishandle "+X".
76037         (mode_free): Remove "register" and localize decls.
76038         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76039         (struct mode_change): Move to modechange.c; callers don't
76040         need to see this stuff.
76041         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76042         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76043         (mode_change, mode_adjust): Reflect the new signatures noted above.
76044         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76045         that might redefine system include files.
76046         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76047         (my_usleep): Use NULL rather than (void *) 0.
76048         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76049         Use siginterrupt to specify that system calls should be interrupted.
76050         (rpl_nanosleep): Move initialization of suspended closer to call of
76051         my_usleep.
76052         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76053         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76054         (desirable_utmp_entry): New function.
76055         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76056         using x2nrealloc, to simplify logic.
76057         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76058         size calculation.  Do not assume utmp file is a regular file.
76059         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76060         (READ_UTMP_CHECK_PIDS): New constant.
76061         * lib/save-cwd.c: Include unistd-safer.h.
76062         (save_cwd): Use fd_safer.
76063         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76064         [!_LIBC] Include "stat-macros.h" instead.
76065         * lib/unistd-safer.h (fd_safer): New decl.
76066
76067 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * modules/getloadavg (Depends-on): Add unistd-safer.
76070         * modules/getusershell (Depends-on): Add stdio-safer.
76071         * modules/lstat (Depends-on): Remove xalloc.
76072         * modules/mkstemp (Depends-on): Add stat-macros.
76073         * modules/modechange (Depends-on): Remove xstrtol.
76074         Add stat-macros, xalloc.
76075         * modules/save-cwd (Depends-on): Add unistd-safer.
76076         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76077         * modules/unistd-safer (Files): Add lib/fd-safer.c
76078         (Makefile.am): Remove lib_SOURCES.
76079
76080         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76081         Remove fcntl-safer; unistd-safer supersedes it.
76082
76083 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76084
76085         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76086         AC_HEADER_STAT.
76087         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76088         (gl_PREREQ_CHOWN): Remove.
76089         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76090         it.  Don't require AC_HEADER_STAT.
76091         (gl_PREREQ_LSTAT): Remove.
76092         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76093         Don't require AC_HEADER_STAT.
76094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76095         (gl_PREREQ_RMDIR): Remove.
76096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76097         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76098         the stat-macros module a prerequisite.
76099         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76100         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76101         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76102         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76103         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76104         variable names.
76105         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76106         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76107         variable prefixes.
76108         * m4/fcntl-safer.m4: Remove.
76109         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76110         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76111         Invoke gl_PREREQ_FD_SAFER.
76112         (gl_PREREQ_FD_SAFER): New macro.
76113         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76114         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76115         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76116         Remove duplicate call to AC_LIBOBJ(readutmp).
76117         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76118
76119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76120         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76121
76122 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * MODULES.html.sh (Misc): Add byteswap.
76125
76126 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76127
76128         * modules/getcwd (Depends-on): Add extensions.
76129         * modules/openat (Depends-on): Likewise.
76130
76131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76132
76133         * modules/byteswap: New file.
76134
76135 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76136
76137         * m4/byteswap.m4: New file.
76138
76139 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76140
76141         * lib/byteswap_.h: New file.
76142
76143 2005-04-25  Karl Berry  <karl@gnu.org>
76144
76145         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76146
76147 2005-04-25  Albert Chin  <china@thewrittenword.com>
76148
76149         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76150         Toolkit C bug.
76151
76152 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76153
76154         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76155         (func_ln_if_changed): Remove forcibly for no error message
76156         in case file does not exist.
76157
76158 2005-04-19  Simon Josefsson  <jas@extundo.com>
76159
76160         * gnulib-tool (Options): Make --symlink mean --symbolic.
76161
76162 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76163
76164         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76165
76166 2005-04-16  Simon Josefsson  <jas@extundo.com>
76167
76168         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76169
76170 2005-04-15  Simon Josefsson  <jas@extundo.com>
76171
76172         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76173
76174 2005-04-15  Simon Josefsson  <jas@extundo.com>
76175
76176         * gnulib-tool: Rename --symlink to --symbolic.
76177
76178 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76179
76180         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76181         symbolic links to files instead of copying/moving.  Add --aux-dir,
76182         specifying directory relative --dir where auxiliary build tools
76183         are placed.
76184
76185 2005-04-14  Bruno Haible  <bruno@clisp.org>
76186
76187         * modules/allocsa (License): Change to LGPL.
76188         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76189
76190 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76193         that "UTC +1 second" continues to work.  Problem reported
76194         by Dmitry V. Levin.
76195         (relunit_snumber): New rule.
76196         (relunit): Use it.
76197
76198 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * lib/getdate.y (universal_time_zone_table): New constant.
76201         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76202         universal_time_zone_table.
76203         (lookup_zone): Prefer universal_time_zone_table to
76204         local_time_zone_table, so that "GMT" time stamps are allowed in
76205         London during the summer.  Problem reported by Ian Abbott.
76206
76207 2005-04-12  Jim Meyering  <jim@meyering.net>
76208
76209         * lib/human.c (humblock): Set *options even when returning due to
76210         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76211         warning from gcc-4.
76212
76213 2005-04-09  Jim Meyering  <jim@meyering.net>
76214
76215         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76216         -Wuninitialized: initialize tm0.tm_year.
76217
76218 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76221         count, since there's no maximum.  All uses changed.
76222         Add member dsts_seen.
76223         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76224         not being INT_MAX.
76225         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76226         Use pc_rels_seen to decide whther a date is absolute.
76227
76228         * lib/getdate.y (number): Don't overwrite year.
76229         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76230         check.
76231
76232 2005-04-02  Simon Josefsson  <jas@extundo.com>
76233
76234         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76235         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76236
76237 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76238
76239         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76240         where no absolute path name can be longer than PATH_MAX.
76241
76242 2005-03-27  Jim Meyering  <jim@meyering.net>
76243
76244         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76245
76246 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76249         "one's complement" -> "ones' complement" in comment, as per Knuth.
76250         "value of type" -> "type or expression" in comment.
76251         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76252
76253 2005-03-26  Jim Meyering  <jim@meyering.net>
76254
76255         Comment nits.
76256         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76257         Correct typos: s/or/of/.
76258
76259 2005-03-26  Jim Meyering  <jim@meyering.net>
76260
76261         * modules/check-include-files: Move to ../ and rename to...
76262         * check-module: ...this.
76263
76264 2005-03-25  Jim Meyering  <jim@meyering.net>
76265
76266         * modules/xvasprintf (Files): Add xalloc.h.
76267
76268 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * modules/gettext (Files): config/config.rpath ->
76271         build-aux/config.rpath
76272         * modules/iconv (Files): Likewise.
76273         Problem reported by Oskar Liljeblad.
76274
76275 2005-03-23  Jim Meyering  <jim@meyering.net>
76276
76277         * modules/check-include-files: New script to check for
76278         missing dependencies, multiple includes, etc.
76279
76280         * modules/c-strtold (Depends-on): Add xalloc.
76281         * modules/c-strtod (Depends-on): Add xalloc.
76282         * modules/hash (Depends-on): Add xalloc.
76283         (Files): Remove lib/xalloc.h.
76284
76285         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76286         * modules/userspec (Files): Add lib/inttostr.h.
76287
76288 2005-03-23  Jim Meyering  <jim@meyering.net>
76289
76290         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76291
76292 2005-03-22  Jim Meyering  <jim@meyering.net>
76293
76294         * modules/stat-macros: New module.
76295         * modules/canonicalize, modules/euidaccess, modules/file-type,
76296         * modules/filemode, modules/lchown, modules/makepath,
76297         * modules/rmdir, modules/stat: Depend on new stat-macros module
76298         rather than listing lib/stat-macros.h manually.
76299         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76300
76301 2005-03-22  Jim Meyering  <jim@meyering.net>
76302
76303         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76304
76305 2005-03-22  Bruno Haible  <bruno@clisp.org>
76306
76307         * config/srclist.txt: Replace target directory 'config' with
76308         'build-aux'.
76309         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76310         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76311         ../build-aux/.
76312
76313 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * modules/chdir-long (Depends-on): Add mempcpy.
76316
76317         * modules/acl, modules/backupfile, modules/c-strtod,
76318         modules/c-strtold, modules/canon-host, modules/canonicalize,
76319         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76320         modules/exclude, modules/exitfail, modules/file-type,
76321         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76322         modules/getdate, modules/getline, modules/getpagesize,
76323         modules/getpass, modules/getugroups, modules/group-member,
76324         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76325         modules/inttostr, modules/long-options, modules/makepath,
76326         modules/md5, modules/memcasecmp, modules/memcoll,
76327         modules/modechange, modules/mountlist, modules/path-concat,
76328         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76329         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76330         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76331         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76332         modules/strftime, modules/strndup, modules/strverscmp,
76333         modules/timespec, modules/unlocked-io, modules/userspec,
76334         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76335         modules/yesno:
76336         Remove lib_SOURCES line from Makefile.am section, as this is now
76337         done automatically by the corresponding Autoconf macro.
76338
76339 2005-03-21  Jim Meyering  <jim@meyering.net>
76340
76341         Changes imported from coreutils.
76342
76343         * lib/cycle-check.c: Don't include xalloc.h.
76344
76345         * lib/path-concat.c: Don't include assert.h.
76346         (path_concat): Remove assertion that would have triggered
76347         for ABASE starting with more than one slash.
76348         Reported by Andreas Schwab.
76349
76350         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76351         properly when ABASE is an absolute file name.
76352         Correct the description of this function.
76353         Include <assert.h>.
76354         Add an assertion and a test driver.
76355         This fixes a bug introduced on 2004-07-02.
76356         Andreas Schwab reported the resulting failure of cp --parents:
76357         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76358
76359 2005-03-21  Jim Meyering  <jim@meyering.net>
76360
76361         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76363
76364 2005-03-21  Jim Meyering  <jim@meyering.net>
76365         and  Paul Eggert  <eggert@cs.ucla.edu>
76366
76367         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76368         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76369         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76370         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76371         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76372         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76373         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76374         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76375         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76376         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76377         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76378         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76379         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76380         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76381         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76382         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76383         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76384         for these modules.
76385
76386 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76387
76388         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76389         (which shouldn't happen), generate nothing instead of returning 0
76390         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76391
76392 2005-03-16  Bruno Haible  <bruno@clisp.org>
76393
76394         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76395         HAVE_LONGLONG_64BIT.
76396
76397 2005-03-16  Bruno Haible  <bruno@clisp.org>
76398
76399         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76400         HAVE_LONGLONG_64BIT.
76401
76402 2005-03-16  Bruno Haible  <bruno@clisp.org>
76403
76404         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76405         HAVE_LONGLONG_64BIT.
76406
76407 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76410         reliably distinguish strftime failure from empty output on POSIX
76411         hosts.
76412
76413 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76414
76415         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76416         (iconv_string): Don't guess a size-zero buffer, as that might cause
76417         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76418         result would be 'too large', where 'too large' is (heuristically)
76419         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76420         overflow concerns.  This will prevent some unwanted malloc failures
76421         when the inputs are very large.
76422
76423 2005-03-15  Karl Berry  <karl@gnu.org>
76424
76425         * config/srclist.txt (config.rpath): from gettext.
76426         * config/config.rpath: update.
76427
76428 2005-03-15  Bruno Haible  <bruno@clisp.org>
76429
76430         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76431         to 'negate'.
76432
76433         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76434         variable.
76435
76436         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76437         results.
76438
76439 2005-03-14  Simon Josefsson  <jas@extundo.com>
76440
76441         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76442         <fx@gnu.org>.
76443
76444 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76447         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76448         intprops.h.
76449         * lib/strtol.c: Likewise.
76450
76451 2005-03-14  Jim Meyering  <jim@meyering.net>
76452
76453         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76454         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76455         to be nonzero so that we (and caller) can detect the difference
76456         between a valid zero-length expansion and an error return, even
76457         when the underlying strftime fails before writing anything into
76458         that location.
76459
76460 2005-03-14  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76463         Update from GNU gettext 0.14.3.
76464
76465 2005-03-10  Jim Meyering  <jim@meyering.net>
76466
76467         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76468
76469 2005-03-10  Jim Meyering  <jim@meyering.net>
76470
76471         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76472         so that this module works on systems without fchdir.
76473
76474 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         Factor int-properties macros into a single file, except for
76477         glibc-related files.
76478         * lib/intprops.h: New file.
76479         * lib/getloadavg.c: Include it instead of limits.h.
76480         (INT_STRLEN_BOUND): Remove.
76481         * lib/human.c: Include intprops.h.
76482         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76483         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76484         302/1000.
76485         * lib/inttostr.h: Include intprops.h instead of limits.h.
76486         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76487         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76488         for consistency with intprops.h.
76489         (time_t_is_integer, twos_complement_arithmetic): Use them.
76490         * lib/sig2str.h: Include <signal.h>, intprops.h.
76491         (INT_STRLEN_BOUND): Remove.
76492         * lib/strftime.c (TYPE_SIGNED): Remove.
76493         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76494         * lib/strtol.c: Adjust comments to match intprops.h.
76495         * lib/userspec.c: Include intprops.h.
76496         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76497         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76498         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76499         instead of rolling our own expressions.
76500         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76501
76502         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76503         instead of int.
76504         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76505         the right thing even if adding 1900 would overflow.  Similarly
76506         for tm_mon + 1 and tm_yday + 1.
76507         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76508         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76509         (DO_SIGNED_NUMBER): New macro.
76510         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76511
76512 2005-03-07  Bruno Haible  <bruno@clisp.org>
76513
76514         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76515
76516 2005-03-07  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76519
76520 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76521
76522         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76523         (func_import): Only replace files via --import when they have actually
76524         changed.
76525
76526 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76527
76528         * m4/mmap-anon.m4: New file.
76529         * m4/pagealign_alloc.m4: New file.
76530
76531 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76532             Bruno Haible  <bruno@clisp.org>
76533
76534         * modules/pagealign_alloc: New file.
76535         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76536
76537 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76538             Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/pagealign_alloc.h: New file.
76541         * lib/pagealign_alloc.c: New file.
76542
76543 2005-03-03  Bruno Haible  <bruno@clisp.org>
76544
76545         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76546         Use an all-permissive copyright notice, recommended by RMS.
76547
76548 2005-03-02  Bruno Haible  <bruno@clisp.org>
76549
76550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76551         of AIX, the replacement has to be done only after <string.h> is
76552         included, therefore not in config.h. stpncpy.h does the replacement,
76553         and stpncpy.c uses it.
76554
76555 2005-03-02  Bruno Haible  <bruno@clisp.org>
76556
76557         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76558         stpncpy.c uses it.
76559
76560 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76563         The workaround isn't strictly needed for POSIX conformance, and
76564         it's too much of a pain to configure and maintain.  We'll ask
76565         people to fix their kernels instead.
76566         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76567         (NANOSLEEP_BUG_WORKAROUND): Remove.
76568         (xnanosleep): Remove the workaround.
76569
76570 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76573         Reported by Derek Price.
76574         (Include): Add "timespec.h".
76575
76576         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76577
76578 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76581         to detect nanosleep bug.
76582
76583 2005-03-01  Bruno Haible  <bruno@clisp.org>
76584
76585         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76586
76587 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * modules/gethrxtime: New file.
76590         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76591         (Depends-on): Add gethrxtime.
76592         (configure.ac): Add gl_XNANOSLEEP.
76593         (Makefile.am): Remove lib_SOURCES line.
76594
76595 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76598         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76599
76600 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76603         * lib/timespec.h (gettime): Return void, since it always
76604         succeeds now.  All uses changed.
76605         * lib/gettime.c (gettime): Likewise.
76606         [HAVE_NANOTIME]: Prefer nanotime.
76607         Assume gettimeofday succeeds, as POSIX requires.
76608         Assime time () succeeds, since other code already does.
76609         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76610         (timespec_subtract): Remove.
76611         (NANOSLEEP_BUG_WORKAROUND): New constant.
76612         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76613         things considerably.  Use it only on GNU/Linux hosts, since the
76614         workaround shouldn't be needed elsewhere.
76615
76616 2005-02-24  Bruno Haible  <bruno@clisp.org>
76617
76618         * modules/gettext (Files): Add m4/glibc2.m4.
76619
76620 2005-02-24  Bruno Haible  <bruno@clisp.org>
76621
76622         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76623         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76624         * m4/progtest.m4:
76625         Update from GNU gettext 0.14.2.
76626         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76627
76628 2005-02-24  Bruno Haible  <bruno@clisp.org>
76629
76630         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76631         * lib/config.charset: Update from GNU gettext 0.14.2.
76632
76633 2005-02-24  Bruno Haible  <bruno@clisp.org>
76634
76635         * lib/gettext.h: Update from GNU gettext 0.14.2.
76636
76637 2005-02-23  Simon Josefsson  <jas@extundo.com>
76638
76639         * m4/iconvme.m4: New file.
76640
76641 2005-02-23  Jim Meyering  <jim@meyering.net>
76642
76643         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76644         change.
76645         Thanks to Bruno Haible for catching it.
76646
76647 2005-02-22  Simon Josefsson  <jas@extundo.com>
76648
76649         * modules/iconvme: New file.
76650
76651         * MODULES.html.sh: Add iconvme.
76652
76653 2005-02-22  Simon Josefsson  <jas@extundo.com>
76654
76655         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76656
76657 2005-02-22  Simon Josefsson  <jas@extundo.com>
76658
76659         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76660
76661 2005-02-22  Jim Meyering  <jim@meyering.net>
76662
76663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76664         s/ifndef/ifdef/.
76665
76666 2005-02-20  Neil Conway  <neilc@samurai.com>
76667
76668         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76669         returned by OSX/Darwin if the specified buffer is not large
76670         enough for the hostname.
76671
76672 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76673
76674         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76675         pass it to _help, otherwise the latter coredumps trying to
76676         dereference state.root_argp.
76677
76678 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * modules/chdir-long (Depends-on): Add memrchr.
76681         * modules/memrchr (Files): Add lib/memrchr.h.
76682         (Include): "memrchr.h".
76683
76684 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76687
76688 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * lib/memrchr.h: New file.
76691         * lib/chdir-long.c: Include it.
76692         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76693         Don't bother including stddef.h.
76694
76695 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76698         inclusion.
76699         Include <sys/types.h>, for dev_t.
76700         (ME_DUMMY, ME_REMOTE): Move from here....
76701         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76702         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76703         Dmitry V. Levin.
76704         Include mountlist.h first, to test the interface.
76705
76706 2005-01-29  Bruno Haible  <bruno@clisp.org>
76707
76708         * lib/progname.c (program_name): Initialize.
76709         Needed when linking statically on MacOS X.
76710
76711 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         Sync from coreutils.
76714         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76715         (Depends-on): Add c-strtod.
76716         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76717
76718 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         Sync from coreutils.
76721         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76722
76723         Remove files that are specific to coreutils.
76724         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76725
76726 2005-01-28  Bruno Haible  <bruno@clisp.org>
76727
76728         * modules/javacomp: New file.
76729         * MODULES.html.sh (Java): Add javacomp.
76730
76731 2005-01-28  Bruno Haible  <bruno@clisp.org>
76732
76733         * m4/javacomp.m4: New file, from GNU gettext.
76734
76735 2005-01-28  Bruno Haible  <bruno@clisp.org>
76736
76737         * lib/javacomp.sh.in: New file, from GNU gettext.
76738         * lib/javacomp.h: New file, from GNU gettext.
76739         * lib/javacomp.c: New file, from GNU gettext.
76740
76741 2005-01-26  Simon Josefsson  <jas@extundo.com>
76742
76743         * lib/gai_strerror.c: Use GPL in header.
76744
76745 2005-01-26  Bruno Haible  <bruno@clisp.org>
76746
76747         * modules/javaexec: New file.
76748         * MODULES.html.sh (Java): Add javaexec.
76749
76750 2005-01-26  Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/javaexec.m4: New file, from GNU gettext.
76753
76754 2005-01-26  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/javaexec.sh.in: New file, from GNU gettext.
76757         * lib/javaexec.h: New file, from GNU gettext.
76758         * lib/javaexec.c: New file, from GNU gettext.
76759
76760 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76761
76762         * modules/lchown (Depends-on): Remove lchown.h
76763
76764 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76765
76766         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76767         must be defined if the header file was not found, in order
76768         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76769
76770 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76771
76772         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76773         initializers for struct pentry_state.
76774         (__argp_error): Check return value of __asprintf
76775         (__argp_failure): Translate error message
76776
76777         * lib/argp-parse.c: Removed braces around the expansion of N_()
76778
76779 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76782         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76783         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76784         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76785         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76786         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76787         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76788         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76789         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76790         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76791         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76792         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76793         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76794         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76795         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76796         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76797         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76798         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76799         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76800         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76801         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76802         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76803         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76804         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76805         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76806         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76807         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76808         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76809         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76810         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76811         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76812         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76813         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76814         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76815         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76816         Use an all-permissive copyright notice, recommended by RMS.
76817
76818 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76819
76820         * modules/chdir-long (Depends-on): Remove mempcpy.
76821
76822 2005-01-21  Jim Meyering  <jim@meyering.net>
76823
76824         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76825         same value as for Solaris 9.
76826
76827         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76828         component length.  This included changing the parameter to be
76829         of type `char *' rather than `char const *'.
76830         * lib/chdir-long.h (chdir_long): Update prototype.
76831
76832         * lib/openat.c (fdopendir, fstatat): New functions.
76833         * lib/openat.h: Include headers required for use of DIR and struct
76834         stat.
76835         [AT_SYMLINK_NOFOLLOW]: Define.
76836         (fdopendir, fstatat): Add prototypes.
76837
76838 2005-01-21  Bruno Haible  <bruno@clisp.org>
76839
76840         * modules/classpath: New file.
76841         * MODULES.html.sh (Java): Add classpath.
76842
76843 2005-01-21  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/classpath.h: New file, from GNU gettext.
76846         * lib/classpath.c: New file, from GNU gettext.
76847
76848 2005-01-20  Simon Josefsson  <jas@extundo.com>
76849
76850         * modules/version-etc-fsf: New file.
76851
76852 2005-01-20  Simon Josefsson  <jas@extundo.com>
76853
76854         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76855         * lib/version-etc.c: Remove version_etc_copyright.
76856         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76857         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76858
76859 2005-01-20  Simon Josefsson  <jas@extundo.com>
76860
76861         * lib/base64.h (isbase64): Add.
76862
76863         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76864         using a unsigned prototype, don't inline.
76865         (base64_decode): Use it.
76866
76867 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76870         it.
76871
76872 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * lib/save-cwd.c (save_cwd): Remove code to support the case
76875         where fchdir is missing or flaky.
76876
76877 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76880
76881 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76884         AC_LIBSOURCES now does this.
76885         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76886         with new ullong_max module.
76887
76888 2005-01-19  Bruno Haible  <bruno@clisp.org>
76889
76890         * modules/sh-quote: New file.
76891         * MODULES.html.sh (Executing programs): Add sh-quote.
76892
76893 2005-01-19  Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/sh-quote.h: New file, from GNU gettext.
76896         * lib/sh-quote.c: New file, from GNU gettext.
76897
76898 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         Merge from coreutils.
76901         * m4/ullong_max.m4: New file.
76902         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76903         (gl_MACROS): Assume localeconv exists.
76904
76905 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         Merge changes from coreutils, as described below in several
76908         changelogs dated today.
76909
76910         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76911         (O_DIRECTORY): Remove; not needed here, since "." must be
76912         a directory.  All uses removed.
76913         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76914         universal on Suns, and we also need to test for IRIX.
76915         Revamp code to use 'if' rather than '#if'.
76916         Avoid unnecessary comparison of cwd->desc to 0.
76917
76918         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76919         for known valid error numbers rather than observed invalid ones.
76920
76921 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * modules/ullong_max: New file.
76924
76925         * modules/chdir-long, modules/openat: New files.
76926         * modules/save-cwd (Depends-on): Depend on chdir-long.
76927         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76928
76929 2005-01-18  Jim Meyering  <jim@meyering.net>
76930
76931         Merge from coreutils.
76932         * m4/chdir-long.m4, m4/openat.m4: New files.
76933         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76934         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76935         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76936         is sane and DOES follow symlinks.  Besides, testing 20 different
76937         systems found no broken chown implementations.
76938         Prompted by a change in rsync's copy of this macro.
76939         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76940
76941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76942
76943         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76944         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76945         NULL-means-set-to-current-time semantics.
76946         Remove temporary file immediately, rather than waiting
76947         for configure's at-exit trap code to do it.
76948
76949 2005-01-18  Jim Meyering  <jim@meyering.net>
76950
76951         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76952
76953         * lib/utimens.c (futimens): Account for the fact that futimes
76954         can also fail with errno == ENOSYS or errno == ENOENT.
76955         Patch from Dmitry V. Levin.
76956
76957         Change the name of the robust chdir function from chdir to chdir_long.
76958         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76959         (restore_cwd): Use chdir_long, not chdir.
76960         * lib/chdir-long.c: Renamed from chdir.c.
76961         * lib/chdir-long.h: Renamed from chdir.h.
76962         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76963         Hurd.
76964
76965 2005-01-18  Bruno Haible  <bruno@clisp.org>
76966
76967         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76968         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76969         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76970         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76971         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76972         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76973         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76974         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76975         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76976         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76977         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76978         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76979         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76980         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76981         Use an all-permissive copyright notice, recommended by RMS.
76982
76983 2005-01-18  Bob Proulx  <bob@proulx.com>
76984
76985         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76986         simplify offsetof() macro construct to avoid compile failure with
76987         native HP-UX 11.0 ANSI C compiler.
76988
76989 2005-01-17  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76992         redundant because stpncpy.m4 takes care of it.
76993
76994 2005-01-17  Bruno Haible  <bruno@clisp.org>
76995
76996         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76997
76998 2005-01-17  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77001         used.
77002
77003 2005-01-17  Bruno Haible  <bruno@clisp.org>
77004
77005         * lib/fwriteerror.h (fwriteerror): Change specification to include
77006         fclose.
77007         * lib/fwriteerror.c: Include <stdbool.h>.
77008         (fwriteerror): At the end, close the file stream. Record whether
77009         stdout was already closed.
77010
77011 2005-01-17  Bruno Haible  <bruno@clisp.org>
77012
77013         * lib/execute.c (environ): Declare if needed.
77014         * lib/pipe.c (environ): Likewise.
77015         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77016
77017 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77018
77019         * modules/argp: Depend on vsnprintf
77020
77021 2005-01-10  Jim Meyering  <jim@meyering.net>
77022
77023         * modules/closeout (Depends-on): Add atexit.
77024
77025 2005-01-06  Bruno Haible  <bruno@clisp.org>
77026
77027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77028
77029 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77032         definitions to be after all include files, to avoid collisions.
77033         Problem reported by Bob Proulx.
77034
77035 2005-01-04  Jim Meyering  <jim@meyering.net>
77036
77037         Changes imported from coreutils.
77038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77039         as the mkstemp template, use a temporary directory and an
77040         8.3-friendly template to avoid trouble on systems like DJGPP.
77041         Reported by Juan M. Guerrero via Stepan Kasal.
77042         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77043         close. Remove the temporary directory right away, rather than waiting
77044         for configure's at-exit trap code to do it.
77045         Suggestion from Stepan Kasal.
77046
77047 2005-01-01  Simon Josefsson  <jas@extundo.com>
77048
77049         * gnulib-tool: Print #include directives when --import'ing.
77050
77051 2004-12-28  Simon Josefsson  <jas@extundo.com>
77052
77053         * tests/test-base64.c: Include required header files.  Remove
77054         unused variables.
77055
77056 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         * modules/error (Depends-on): Remove gettext.
77059
77060 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77063         not needed.  This removes a dependency on the gettext module.
77064         [defined _LIBC]: Do not include <libintl.h>; not needed.
77065
77066 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77069         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77070
77071 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77074         HAVE_DECL_STRTOLD.
77075
77076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * modules/getdate (Depends-on): Remove alloca-opt.
77079
77080 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77083
77084 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77085
77086         * lib/argp-parse.c: Include <stddef.h>.
77087         (alignof, alignto): New macros.
77088         (parser_init): Don't assume that void * is aligned sufficiently
77089         for struct option.
77090
77091         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77092         need to extend the stack.
77093         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77094         large.
77095
77096 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77097
77098         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77099
77100 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77103         (2004-10-24) change.  Apparently this was a false alarm.
77104
77105         * modules/getdate: Depend on alloca-opt, not alloca.
77106
77107 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77110         Remove now-obsolete comment about AIX.
77111         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77112         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77113         (YYMAXDEPTH): New macro.
77114
77115 2004-12-18  Simon Josefsson  <jas@extundo.com>
77116
77117         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77118
77119 2004-12-18  Bruno Haible  <bruno@clisp.org>
77120
77121         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77122
77123 2004-12-18  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/fatal-signal.c (fatal_signals): Make non-const.
77126         (init_fatal_signals): New function.
77127         (uninstall_handlers, install_handlers): Ignore signals that were set to
77128         SIG_IGN.
77129         (at_fatal_signal): Call init_fatal_signals.
77130         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77131         SIG_IGN.
77132         Reported by Paul Eggert.
77133
77134 2004-12-18  Bruno Haible  <bruno@clisp.org>
77135
77136         * doc/alloca.texi: New file.
77137         * doc/alloca-opt.texi: New file.
77138
77139 2004-12-17  Jim Meyering  <jim@meyering.net>
77140
77141         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77142         Otherwise, install-sh could exit with improper exit status when
77143         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77144
77145 2004-12-16  Simon Josefsson  <jas@extundo.com>
77146
77147         * tests/test-base64.c: Add license.
77148
77149 2004-12-15  Stepan Kasal  <address@hidden>
77150
77151         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77152
77153 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77154
77155         * modules/getcwd (Files): Add m4/d-ino.m4.
77156         Suggested by Mark D. Baushke.
77157
77158 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * lib/getdate.y (textint): New member "negative".
77161         (time_zone_hhmm): New function.
77162         Expect 14 shift-reduce conflicts, not 13.
77163         (o_colon_minutes): New rule.
77164         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77165         (yylex): Set the "negative" member of signed numbers.
77166
77167 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77168
77169         * doc/getdate.texi (Time of day items, Time zone items):
77170         Describe new formats +00:00, UTC+00:00.
77171
77172 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77175         spurious "-l"s.  Problem reported by Stepan Kasal.
77176
77177 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77180         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77181
77182 2004-12-04  Simon Josefsson  <jas@extundo.com>
77183
77184         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77185         Vandoorselaere <yoann@prelude-ids.org>.
77186
77187 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         Changes imported from coreutils.
77190         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77191         exist.
77192         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77193
77194 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77195
77196         Changes imported from coreutils.
77197         * lib/hard-locale.c: Assume <locale.h> exists.
77198         Include "strdup.h".
77199         (GLIBC_VERSION): New macro.
77200         (hard_locale): Assume setlocale exists.
77201         Rewrite to avoid #ifdef.
77202         Use strdup rather than malloc + strcpy.
77203         * lib/human.c: Assume <locale.h> exists.
77204         (human_readable): Assume localeconv exists.
77205
77206 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * modules/hard-locale (Depends-on): Add strdup.
77209
77210 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77211
77212         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77213         convert T2, not T.  (Imported from libc.)
77214
77215 2004-11-30  Simon Josefsson  <jas@extundo.com>
77216
77217         * modules/restrict (License): Change to LGPL.
77218
77219 2004-11-30  Simon Josefsson  <jas@extundo.com>
77220
77221         * m4/restrict.m4: Add copyright and copying conditions.
77222
77223 2004-11-30  Simon Josefsson  <jas@extundo.com>
77224
77225         * m4/base64.m4: New file.
77226
77227 2004-11-30  Simon Josefsson  <jas@extundo.com>
77228
77229         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77230         base64.
77231
77232         * tests/test-base64.c: New file.
77233
77234         * modules/base64: New file.
77235
77236 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77239         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77240
77241         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77242
77243 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77246         (__getcwd.c): Don't restore errno; glibc doesn't.
77247         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77248         first, falling back to our code only if its results look suspicious.
77249         Ensure that the resulting buffer is only as large as necessary.
77250
77251         * lib/readutmp.c: Include readutmp.h first.
77252         Include <errno.h>, since readutmp.h no longer does that.
77253         * lib/readutmp.h: Don't include <errno.h>,
77254         <sys/param.h>, <time.h>; not needed to establish interface.
77255         (errno): Remove decl.
77256         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77257         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77258         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77259
77260 2004-11-28  Simon Josefsson  <jas@extundo.com>
77261
77262         * lib/base64.h, base64.c: New file.
77263
77264 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77267
77268 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77271         (Depends-on): Remove pathmax, same.  Add mempcpy.
77272         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77273         (Makefile.am): Append getcwd.h to lib_SOURCES.
77274         (Include): Add getcwd.h.
77275         (Maintainer): Change from Jim Meyering to "all, glibc",
77276         since getdate now uses intended-for-glibc code.
77277         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77278         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77279
77280 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77283         HP's ANSI C compiler.
77284         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77285         Declaring int functions causes warnings on some modern systems and
77286         shouldn't be needed to compile on ancient ones.
77287         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77288         defined.
77289
77290         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77291         with the following changes.
77292         (__set_errno): Parenthesize properly.
77293         Include <stdbool.h>.
77294         (MIN, MAX, MATCHING_INO): New macros.
77295         (__getcwd): Define with prototype, not K&R form.
77296         Use heuristics to allocate default buffer on stack if possible.
77297         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77298         behavior, and to avoid the PATH_MAX limit when computing
77299         ../../../../...
77300         Use MATCHING_INO to compare inode number to file.
77301         Check for arithmetic overflow in size calculations.
77302         Fix bug in reallocation of dot array that caused getcwd to fail
77303         on directories nested deeper than 75.
77304         Be more careful about saving errno on error.
77305         Do not use realloc; use only free+malloc, as this is a bit
77306         more flexible and avoids a needless copy operation.
77307         Do not inspect st_dev and st_ino for symbolic links; POSIX
77308         doesn't specify the latter.
77309         Check for closedir errors.
77310         Avoid needless casts.
77311         Use "#ifdef weak_alias" around weak_alias, to be like other
77312         glibc code.
77313         The following changes to getcwd.c have effect only when used in
77314         gnulib; they have no effect inside glibc proper.
77315         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77316         as alloca isn't used.
77317         (alloca, __alloca): Likewise.
77318         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77319         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77320         unconditionally, as gnulib assumes C89 or better.
77321         Do not include <sys/param.h>.
77322         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77323         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77324         better.
77325         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77326         Include <dirent.h> in a way that is compatible with modern Autoconf.
77327         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77328         New macros, if not already defined.
77329         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77330         Use "_LIBC", not "defined _LIBC", for consistency.
77331         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77332         a mempcpy module.
77333         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77334         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77335         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77336         credit only to Jim Meyering and adjust the copyright dates.
77337         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77338         <stdlib.h>, <unistd.h>, "pathmax.h".
77339         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77340         (INITIAL_BUFFER_SIZE): Remove.
77341         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77342
77343 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77346         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77347         Use the _ONCE methods, for efficiency.
77348         Check for fcntl.h.  In test program, include <errno.h>
77349         and <fcntl.h> if available.  Remove old K&R cruft from
77350         test program.  Check for common errors in GNU/Linux,
77351         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77352         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77353         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77354         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77355         name accordingly.
77356         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77357         accommodate new getcwd.c.
77358         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77359         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77360         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77361         that's all we need now.
77362
77363 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77364
77365         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77366         argp-parse.c depends on getopt internals, that means we should
77367         always use our getopt, to be on the safe side.
77368         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77369         order not to spoil the result of an eventual previous invocation
77370         of gl_GETOPT_SUBSTITUTE.
77371
77372 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77373
77374         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77375         redefinition warnings. To avoid them, include the defines
77376         in `#if !defined __need_getopt ... #endif'. The only place
77377         where __getopt_argv_const is used is in definitions
77378         of getopt_long and getopt_long_only below, which are as well
77379         protected by `#ifndef __need_getopt'.
77380         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77381         __need_getopt after including <stdio.h> and <unistd.h> These
77382         headers might have defined it.
77383
77384 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77387
77388 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77391         (futimens): New function, which uses futimes if available.
77392         (futimens, utimens): Support timespec==NULL, with same semantics
77393         as utime and utimens.
77394         * lib/utimens.h (futimens): New decl.
77395
77396 2004-11-23  Jim Meyering  <jim@meyering.net>
77397
77398         * lib/getopt_.h: Remove trailing blanks.
77399
77400 2004-11-23  Jim Meyering  <jim@meyering.net>
77401
77402         * lib/__fpending.c: Add comment.
77403
77404 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * modules/canonicalize (Depends-on): Add xreadlink.
77407         Problem reported by James Youngman.
77408
77409 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77412         New macros.
77413         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77414         optopt): Use them instead of invoking ## directly; otherwise, the
77415         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77416
77417 2004-11-19  Bruno Haible  <bruno@clisp.org>
77418
77419         * lib/strtok_r.c: Move comments from here...
77420         * lib/strtok_r.h: ... to here.
77421
77422 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77425         implementations that mishandle size_t overflow.
77426
77427 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77428
77429         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77430         might fail.  Problem reported by Yoann Vandoorselaere.
77431         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77432         implementations that mishandle size_t overflow.
77433
77434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * modules/canon-host (Depends-on): Add strdup.
77437
77438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77441
77442 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77443
77444         * lib/canon-host.c: Include "strdup.h".
77445         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77446         Use strdup instead of malloc/strcpy to duplicate strings.
77447
77448         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77449         (human_space_before_unit): New constant.
77450         * lib/human.c (human_readable): Support it.
77451
77452         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77453         (xgetcwd): Set errno correctly when failing.
77454         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77455         the failure is actually due to a PATH_MAX problem.
77456
77457         Further getopt changes to make it more likely that glibc will
77458         buy the changes back.
77459         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77460         (getopt): Use it, so to preserve glibc semantic
77461         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77462         when compiling for libc.
77463         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77464         (getopt_long, getopt_long_only): Use it.
77465
77466         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77467         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77468         (getopt): Argv is now char * const *, as per standard.
77469         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77470         not char *__getopt_argv_const *.
77471         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77472         _getopt_long_only_r): Likewise.
77473         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77474         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77475         _getopt_long_r, _getopt_long_only_r): Likewise.
77476         * lib/getopt_.h (__getopt_argv_const): Remove.
77477         (getopt): Argv is now char * const *, as per standard.
77478
77479         * lib/getdate.y (tORDINAL): New token.
77480         (day, relunit): Allow it for relative times.
77481         (relative_time_table): Use tORDINAL for ordinals.
77482
77483 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77486         Document that "second" isn't allowed as an ordinal number.
77487
77488 2004-11-16  Jim Meyering  <jim@meyering.net>
77489
77490         * modules/closeout (Depends-on): Add fpending.
77491
77492 2004-11-15  Jim Meyering  <jim@meyering.net>
77493
77494         * lib/closeout.c: Include "__fpending.h" once again.
77495         Include <stdbool.h>.
77496         (close_stdout): Don't fail just because stdout was closed initially,
77497         since some programs don't write to stdout in the normal course of
77498         operation (other than --version and --help), and we don't want this
77499         function to make e.g. `touch file >&-' fail.
77500         But do fail if it was closed and someone has tried to write to it.
77501         E.g., `printf foo >&-' must fail.
77502
77503 2004-11-13  Jim Meyering  <jim@meyering.net>
77504
77505         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77506
77507 2004-11-12  Simon Josefsson  <jas@extundo.com>
77508
77509         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77510         small doc fix is still pending.
77511
77512 2004-11-11  Simon Josefsson  <jas@extundo.com>
77513
77514         * modules/strtok_r: New file.
77515
77516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77517         strtok_r.
77518
77519 2004-11-11  Simon Josefsson  <jas@extundo.com>
77520
77521         * m4/strtok_r.m4: New file.
77522
77523         * m4/getopt.m4: Replace opterr.
77524
77525 2004-11-11  Simon Josefsson  <jas@extundo.com>
77526
77527         * lib/strtok_r.h, strtok_r.c: New file.
77528
77529 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77532         of replacing opterr, getopt, etc.  This should handle the
77533         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77534
77535 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77538         we can stop lying to compilers about the constness of argv when we
77539         are compiled outside glibc.
77540         (getopt, getopt_long, getopt_long_only): Use it.
77541         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77542         _getopt_internal, getopt): Likewise.
77543         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77544         _getopt_long_only_r): Likewise.
77545         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77546         _getopt_long_r, _getopt_long_only_r): Likewise.
77547
77548         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77549         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77550         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77551         the other external symbols.
77552         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77553         declaration, since the above renaming now works around collisions.
77554
77555 2004-11-11  Jim Meyering  <jim@meyering.net>
77556
77557         * lib/linebreak.c: Remove trailing blanks.
77558         * lib/alloca_.h: Likewise.
77559         * lib/acosl.c: Likewise.
77560         * lib/euidaccess.c: Likewise.
77561         * lib/allocsa.h: Likewise.
77562
77563 2004-11-10  Simon Josefsson  <jas@extundo.com>
77564
77565         * m4/getaddrinfo.m4: New file.
77566
77567 2004-11-10  Simon Josefsson  <jas@extundo.com>
77568
77569         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77570
77571 2004-11-10  Simon Josefsson  <jas@extundo.com>
77572
77573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77574         getaddrinfo.
77575
77576         * modules/getaddrinfo: New file.
77577
77578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77581
77582 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * lib/mktime.c (SHR): New macro, which is a portable
77585         substitute for >> that should work even on Crays.
77586         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77587         Problem reported by Mark D. Baushke in
77588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77589         * lib/getdate.y (SHR): Likewise.
77590         (tm_diff): Use it.
77591         * lib/strftime.c (SHR): Likewise.
77592         (tm_diff): Use it.
77593         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77594         quote_these_too, so that right shifts are well defined.  All uses
77595         changed.
77596
77597 2004-11-10  Jim Meyering  <jim@meyering.net>
77598
77599         Ensure that no close failure goes unreported.
77600         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77601         return early when it seems there's nothing to flush.
77602         Don't include __fpending.h.
77603
77604 2004-11-10  Jim Meyering  <jim@meyering.net>
77605
77606         * modules/closeout (Depends-on): Remove fpending.
77607
77608 2004-11-10  Jim Meyering  <jim@meyering.net>
77609
77610         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77611
77612 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77615         gl_FUNC_STRFTIME.
77616         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77617         and AC_REQUIRE when possible, to avoid duplicate checks.
77618         Check for <wchar.h>.
77619
77620 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77623
77624 2004-11-09  Bruno Haible  <bruno@clisp.org>
77625
77626         * m4/sockpfaf.m4: New file.
77627
77628 2004-11-05  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77631         Reported by Mark D. Baushke <mdb@cvshome.org>.
77632
77633 2004-11-04  Bruno Haible  <bruno@clisp.org>
77634
77635         2004-09-11  Bruno Haible  <bruno@clisp.org>
77636                 * allocsa.valgrind: New file.
77637         2004-02-06  Bruno Haible  <bruno@clisp.org>
77638                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77639                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77640                 Reported by Christopher Seip <chris.seip@hp.com>.
77641
77642 2004-11-04  Bruno Haible  <bruno@clisp.org>
77643
77644         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77645         (Makefile.am): Distribute it.
77646
77647 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77650         with errno == ERANGE if the buffer is too small.
77651         Problem reported by Mark D. Baushke.
77652
77653 2004-11-03  Albert Chin  <china@thewrittenword.com>
77654             Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77657         equivalent, substitute $ac_type for equivalent type rather than
77658         blindly using uint32_t *always* which won't work if uint32_t is not
77659         available.  Define _UINT32_T to work around typedef of uint32_t if
77660         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77661         2.5.1.
77662
77663 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77664
77665         * m4/jm-macros.m4: Sync from coreutils.
77666         (gl_MACROS): Check for mbrlen, for pathchk.
77667         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77668
77669 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * lib/xreadlink.c (MAXSIZE): New macro.
77672         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77673         size does not exceed MAXSIZE.  Avoid cast.
77674         As suggested by Mark D. Baushke in
77675         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77676         if readlink fails with buffer size just under MAXSIZE, try again
77677         with MAXSIZE.
77678
77679 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77682
77683 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77684         and  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77687         (get_date): Overparenthesize to avoid GCC warning.
77688
77689 2004-11-02  Bruno Haible  <bruno@clisp.org>
77690
77691         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77692         returns void.
77693
77694 2004-11-02  Bruno Haible  <bruno@clisp.org>
77695
77696         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77697         function returns void.
77698
77699 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77702         fflush_unlocked, flockfile, funlockfile, funlockfile,
77703         fputs_unlocked, putc_unlocked.
77704
77705 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77708         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77709         already declared.
77710
77711 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * modules/getdate (Files): Add doc/getdate.texi.
77714         (Depends-on): Add setenv, xalloc.
77715
77716 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * lib/getdate.y: Add support for TZ="foo" within a date string.
77719         Fix some bugs near time_t boundaries.  Reject dates with
77720         out-of-range components, e.g., "Sept 31".
77721         Include <stdlib.h>, "setenv.h", "xalloc.h".
77722         (ISDIGIT_LOCALE): Remove; unused.
77723         Note that the TZ and time functions used here are not reentrant.
77724         (mktime_ok, get_tz): New functions.
77725         (TZBUFSIZE): New constant.
77726         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77727         This requires that we sometimes generate our own TZ="XXX..." setting.
77728
77729 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * doc/getdate.texi: New file, from coreutils with modifications for
77732         the new TZ parsing.
77733
77734 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77735
77736         * lib/mktime.c (not_equal_tm): Remove redundant check.
77737
77738 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * modules/regex (lib_SOURCES): Add regex.c.
77741         Reported by James Youngman in
77742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77743
77744 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/getdate.y: Use Bison 1.875 features, and some minor
77747         code cleanups.  This change does not affect semantics.
77748         Don't include <stdlib.h>; no longer needed.
77749         Don't include unlocked-io.h; only the "#if TEST" code uses
77750         stdio, and performance isn't crucial there.
77751         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77752         Bison 1.875 features as described below.
77753         All uses of "PC." replaced by "pc->".
77754         (YYSTYPE): Add a forward declaration.
77755         (yylex, yyerror): Use full prototypes in forward decls.
77756         Use "%pure-parser" rather than obsolescent "%pure_parser".
77757         Use %parse-param and %lex-param instead of obsolescent
77758         YYPARSE_PARAM and YYLEX_PARAM.
77759         (meridian_table, month_and_day_table, time_units_table,
77760         relative_time_table, time_zone_table, military_table,
77761         lookup_zone, lookup_word, get_date):
77762         Use NULL instead of 0 where appropriate.
77763         (to_hour): Avoid abort (), to avoid a dependency on
77764         stdlib.h.
77765         (yyerror, yylex): Now accepts parser_control * arg.
77766         (main) [TEST]: Use '\0' rather than 0 for char.
77767
77768 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77771
77772 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77775         It's now the caller's responsibility to handle the case where
77776         !HAVE_GETPAGESIZE && !defined getpagesize.
77777
77778         * lib/mktime.c (leapyear): Arg is long int, not int.
77779
77780 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77783
77784 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77787         missing.  Problem reported by James Youngman.
77788
77789 2004-10-16  Simon Josefsson  <jas@extundo.com>
77790
77791         * gnulib-tool: Fix comments.  Fix parse problem.
77792         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77793
77794 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77797         implementation of getopt_long.  Problem reported by Alexander Taler in:
77798         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77799
77800 2004-10-15  Bruno Haible  <bruno@clisp.org>
77801
77802         * gnulib-tool: Untabify. Initialize supplied_libname.
77803         (func_usage): More homogenous output.
77804         (func_modules_transitive_closure, func_modules_to_filelist,
77805         func_emit_lib_Makefile_am): New functions.
77806         (func_import): New function, extracted from big case statement. Use
77807         func_get_license, func_modules_transitive_closure,
77808         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77809         opt_lgpl. Don't use test -a, as it's not portable.
77810         (func_create_testdir): Use func_modules_transitive_closure,
77811         func_modules_to_filelist, func_emit_lib_Makefile_am.
77812
77813 2004-10-15  Bruno Haible  <bruno@clisp.org>
77814
77815         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77816
77817 2004-10-15  Bruno Haible  <bruno@clisp.org>
77818
77819         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77820         the portions belonging to each module.
77821         Suggested by Derek Robert Price <derek@ximbiot.com>.
77822
77823 2004-10-12  Simon Josefsson  <jas@extundo.com>
77824
77825         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77826         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77827         to real functions.
77828
77829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77830
77831         * modules/vsnprintf: New file.
77832
77833 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77834
77835         * m4/vsnprintf.m4: New file.
77836
77837 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77838
77839         * lib/vsnprintf.h: New file.
77840         * lib/vsnprintf.c: New file.
77841
77842 2004-10-11  Bruno Haible  <bruno@clisp.org>
77843
77844         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77845         vsnprintf.
77846
77847 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77850
77851 2004-10-07  Bruno Haible  <bruno@clisp.org>
77852
77853         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77854         fits into the provided buffer.
77855
77856 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/diacrit.c, diacrit.h: Add GPL notice.
77859
77860         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77861         notice.
77862         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77863         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77864         This avoids a potential constant-folding bug.
77865
77866 2004-10-05  Bruno Haible  <bruno@clisp.org>
77867
77868         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77869         for the declaration of strsep.
77870
77871 2004-10-05  Bruno Haible  <bruno@clisp.org>
77872
77873         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77874
77875 2004-10-04  Simon Josefsson  <jas@extundo.com>
77876
77877         * modules/memmem: New file.
77878         * tests/test-memmem.c: New file.
77879         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77880
77881 2004-10-04  Simon Josefsson  <jas@extundo.com>
77882
77883         * m4/memmem.m4: New file.
77884
77885 2004-10-04  Simon Josefsson  <jas@extundo.com>
77886
77887         * lib/memmem.h: New file.
77888         * lib/memmem.c: New file, taken from glibc.
77889
77890 2004-10-04  Simon Josefsson  <jas@extundo.com>
77891
77892         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77893         '#ifdef USE_UNLOCKED_IO'.
77894
77895 2004-10-04  Simon Josefsson  <jas@extundo.com>
77896
77897         * config/srclist.txt: Add memmem from glibc.
77898
77899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77902
77903         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77904         modules/exclude, modules/getdate, modules/getline,
77905         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77906         modules/getusershell, modules/linebuffer, modules/md5,
77907         modules/mountlist, modules/posixtm, modules/readtokens,
77908         modules/readutmp, modules/regex, modules/sha1,
77909         modules/version-etc, modules/yesno:
77910         Remove dependency on unlocked-io.
77911
77912 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77915
77916         * m4/unlocked-io.m4: Add copyright notice.
77917         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77918
77919 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77922         * lib/xmalloc.c (xmemdup): Likewise.
77923         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77924         XFREE): Remove these long-obsolescent macros.
77925         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77926         * lib/xstrdup.c: Remove.
77927
77928         * lib/regex.c (re_comp): Cast gettext return value to char *,
77929         Problem reported by Martin Neitzel via Mark D. Baushke.
77930
77931 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77932
77933         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77934         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77935         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77936         regex.c, sha1.c, version-etc.c, yesno.c:
77937         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77938         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77939         the includer's responsibility.
77940
77941         Sync from coreutils.
77942
77943         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77944         points to the start of a string, as the C Standard says the
77945         resulting behavior is undefined.
77946
77947         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77948         simple -> simple_backups, numbered_existing ->
77949         numbered_existing_backups, numbered -> numbered_backups
77950         to avoid shadowing problems.  All uses changed.
77951         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77952         * lib/backupfile.c (check_extension, numbered_backup):
77953         Rename locals to avoid shadowing 'basename'.
77954         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77955         once.
77956
77957         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77958         * lib/.cvsignore: Add getopt.h.
77959
77960 2004-10-04  Bruno Haible  <bruno@clisp.org>
77961
77962         * modules/README: New file.
77963         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77964         not a module.
77965
77966 2004-10-02  Jim Meyering  <jim@meyering.net>
77967
77968         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77969
77970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77971
77972         * modules/strsep: New file.
77973
77974 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77975
77976         * m4/strsep.m4: New file.
77977
77978 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77979
77980         * lib/strsep.h: New file.
77981         * lib/strsep.c: New file.
77982
77983 2004-10-01  Simon Josefsson  <jas@extundo.com>
77984
77985         * lib/snprintf.c (snprintf): Handle size==0.
77986
77987 2004-10-01  Simon Josefsson  <jas@extundo.com>
77988             Bruno Haible  <bruno@clisp.org>
77989
77990         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77991         (snprintf): Declare 'args'.
77992
77993 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * lib/snprintf.c: Remove comments as to why each header is needed.
77996
77997 2004-10-01  Bruno Haible  <bruno@clisp.org>
77998
77999         * MODULES.html.sh: Add strsep.
78000
78001 2004-09-30  Simon Josefsson  <jas@extundo.com>
78002
78003         * modules/snprintf: New file.
78004
78005 2004-09-30  Simon Josefsson  <jas@extundo.com>
78006
78007         * m4/snprintf.m4: New file.
78008
78009 2004-09-30  Simon Josefsson  <jas@extundo.com>
78010
78011         * lib/snprintf.h, lib/snprintf.c: New files.
78012
78013 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78014
78015         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78016         (hol_entry_help): Never translate an empty string.
78017         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78018         * lib/argp.h (OPTION_NO_TRANS): New option.
78019
78020 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * modules/argp (Maintainer): Replace Simon Josefsson
78023         by Sergey Poznyakoff.
78024
78025 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78028         changes merged back into glibc.
78029
78030 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78033
78034 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78035
78036         * lib/xvasprintf.c: Include xalloc.h.
78037         (xvasprintf): Use xalloc_die, not xmalloc_die.
78038
78039 2004-09-29  Bruno Haible  <bruno@clisp.org>
78040
78041         * modules/alloca-opt: New file, derived from modules/alloca.
78042         * modules/allocsa: Depend on alloca-opt instead of alloca.
78043         * modules/setenv: Likewise.
78044         * modules/vasnprintf: Likewise.
78045         * MODULES.html.sh: Add alloca-opt.
78046
78047 2004-09-28  Simon Josefsson  <jas@extundo.com>
78048
78049         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78050         LGPL, and to replace license template from GPL to LGPL.
78051
78052 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * modules/dummy: Change license to LGPL.
78055
78056 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78059
78060 2004-09-24  Simon Josefsson  <jas@extundo.com>
78061
78062         * modules/minmax (License): Change from GPL to LGPL.
78063
78064 2004-09-23  Simon Josefsson  <jas@extundo.com>
78065
78066         * gnulib-tool (--import): Typo.
78067
78068 2004-09-23  Simon Josefsson  <jas@extundo.com>
78069
78070         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78071
78072 2004-09-22  Bruno Haible  <bruno@clisp.org>
78073
78074         * modules/*: Add 'License' field.
78075         * gnulib-tool: Accept --extract-license option.
78076         (func_get_license): New function.
78077
78078 2004-09-21  Bruno Haible  <bruno@clisp.org>
78079
78080         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78081         Reported by Simon Josefsson.
78082
78083 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78086         gl_AC_TYPE_LONG_LONG.
78087
78088 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78091
78092 2004-09-18  Simon Josefsson  <jas@extundo.com>
78093         and  Paul Eggert  <eggert@cs.ucla.edu>
78094
78095         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78096         calls with autoreconf.  Define GL_LIB.
78097
78098 2004-09-14  Karl Berry  <karl@gnu.org>
78099
78100         * config/srclist.txt: unsync setenv.c, sigh.
78101
78102 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78105         Problem reported by Bruno Haible in:
78106         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78107
78108 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * config/srclist.txt: Comment out argp-pvh.c.
78111
78112 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78115         in case some system header has #define'd it.  Problem reported by
78116         Soeren D. Schulze in
78117         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78118
78119 2004-09-09  Karl Berry  <karl@gnu.org>
78120
78121         * regex.[ch]: delete from the root.  These were supposed to be
78122                 synced with emacs cvs, but this has not happened for about
78123                 a year, and anyway nothing else uses emacs regex.[ch].
78124                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78125                 lib/regex[.ch] is untouched.
78126
78127 2004-09-09  Bruno Haible  <bruno@clisp.org>
78128
78129         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78130
78131 2004-09-09  Bruno Haible  <bruno@clisp.org>
78132
78133         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78134         modifications.
78135         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78136
78137 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78138
78139         * modules/xvasprintf: New file.
78140         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78141
78142 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78143
78144         * lib/xvasprintf.h: New file.
78145         * lib/xvasprintf.c: New file.
78146         * lib/xasprintf.c: New file.
78147
78148 2004-09-08  Bruno Haible  <bruno@clisp.org>
78149
78150         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78151
78152 2004-09-08  Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78155         length is > INT_MAX.
78156         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78157         more.
78158
78159 2004-09-08  Bruno Haible  <bruno@clisp.org>
78160
78161         * lib/stdint_.h: New file, taken from GNU clisp.
78162
78163 2004-09-08  Bruno Haible  <bruno@clisp.org>
78164             Oskar Liljeblad  <oskar@osk.mine.nu>
78165
78166         * modules/stdint: New file.
78167         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78168
78169 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         Import from coreutils.
78172         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78173         strings on unbounded length.  alloca's performance benefits aren't
78174         that important here.
78175         (V_STRDUP): Remove.
78176         (parse_with_separator): New function, with most of the internals
78177         of the old parse_user_spec.  Allow user to omit both user and group,
78178         for compatibility with FreeBSD.
78179         Clone only the user name, not the entire spec.
78180         Do not set *uid, *gid unless entirely successful.
78181         Avoid memory leak in some failing cases.
78182         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78183         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78184         (parse_user_spec): Rewrite to use parse_with_separator.
78185
78186 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78187
78188         * modules/userspec: Don't depend on alloca.
78189
78190 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78193
78194 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78197         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78198         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78199
78200 2004-08-16  Simon Josefsson  <jas@extundo.com>
78201
78202         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78203         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78204         Add --dry-run for --import.
78205         Let user provided command line parameters override configure.ac
78206         settings.
78207
78208 2004-08-12  Simon Josefsson  <jas@extundo.com>
78209
78210         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78211         as discussed with Paul Eggert in threads rooted at
78212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78213         and
78214         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78215         Before, the test was empty, and relied on ELIDE_CODE in source
78216         code.)
78217         (gl_PREREQ_GETOPT): New macro.
78218         (gl_GETOPT): Use them.
78219
78220 2004-08-12  Simon Josefsson  <jas@extundo.com>
78221
78222         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78223         * lib/getopt_.h: Renamed from getopt.h.
78224
78225 2004-08-12  Simon Josefsson  <jas@extundo.com>
78226
78227         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78228         Change default library name from libfoo to libgnu.
78229         Now, if you have a configure.ac that says:
78230                 gl_SOURCE_BASE(gl)
78231                 gl_M4_BASE(gl/m4)
78232                 gl_MODULES(error getopt etcetera)
78233                 gl_INIT
78234         you can import all you need by running:
78235                 ../gnulib/gnulib-tool --import
78236
78237         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78238         (Makefile.am): Rewrite, use logic from argz.
78239         (Include): Use <getopt.h> instead of "getopt.h".
78240
78241 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * modules/argp (Files): Add m4/unlocked-io.m4.
78244         (Depends-on): Add extensions.
78245
78246 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78249         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78250         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78251         Check for program_invocation_name, program_invocation_short_name,
78252         flockfile, funlockfile, features.h, _getopt_long_only_r.
78253
78254 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78257         its complicated substitute.
78258         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78259         and program_invocation_name.
78260         (__argp_basename) [!_LIBC]: Remove; the only use was
78261         replaced by its body.
78262         (__argp_short_program_name): Change condition from
78263         !defined __argp_short_program_name to
78264         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78265         to match argp-namefrob.h.
78266         (__argp_failure): Don't assume strerror_r returns char *.
78267         * lib/argp-parse.c (N_): Define unconditionally.
78268         (argp_default_options): Fill out initializers with 0 to avoid
78269         gcc warnings.
78270
78271 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78274         getopt1.c.
78275
78276 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78277
78278         Merge from coreutils.
78279
78280         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78281
78282         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78283         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78284
78285 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         Merge from coreutils.
78288
78289         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78290         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78291         for Reliant Unix 5.43.
78292
78293         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78294         (union fooround): Use uintmax_t, not long int.
78295         The rest is a merge from libc:
78296         [defined _LIBC]: Include <shlib-compat.h>.
78297         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78298
78299         * lib/settime.c (settime): Recode to avoid warning with
78300         Sun Forte C 6U2.
78301
78302         * lib/strverscmp.c: Convert to UTF-8.
78303
78304 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78307         m4/uintmax_t.m4.
78308
78309 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78310
78311         * modules/xalloc-die: New file.
78312         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78313
78314         * modules/md5 (Files): Add m4/uint32_t.m4.
78315         * modules/sha1: Renamed from modules/sha.
78316         (Files):
78317         Rename lib/sha.h to lib/sha1.h.
78318         Rename lib/sha.c to lib/sha1.c.
78319         Rename m4/sha.m4 to m4/sha1.m4.
78320         (lib_SOURCES): Likewise.
78321         (configure.ac): Rename gl_SHA to gl_SHA1.
78322         (Include): sha.h -> sha1.h.
78323
78324 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78327         * m4/sha1.m4: Renamed from sha.m4.
78328         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78329
78330 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * lib/obstack.h (obstack_empty_p):
78333         Don't assume that chunk->contents is suitably aligned.
78334         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78335         Likewise. Problem reported by Benno in
78336         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78337
78338         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78339         readable.  This could be improved further but it'd take some work.
78340
78341 2004-08-08  Simon Josefsson  <jas@extundo.com>
78342
78343         * modules/xgethostname (Depends-on): Remove exit and error (not
78344         used).
78345
78346         * modules/getpass-gnu: Add getpass.h.
78347         (Depends-on): Add stdbool.
78348         * modules/getpass: Add getpass.h.
78349
78350 2004-08-08  Simon Josefsson  <jas@extundo.com>
78351
78352         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78353         Check getpass declaration.
78354
78355 2004-08-08  Simon Josefsson  <jas@extundo.com>
78356
78357         * lib/xgethostname.c: Don't include error.h (not used).
78358
78359         * lib/getpass.h: Add.
78360         * lib/getpass.c: Include getpass.h first.
78361
78362 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         * lib/xalloc-die.c: New file.
78365         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78366         All uses removed.
78367         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78368         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78369         xalloc-die.c.
78370         (_, N_, xalloc_die): Move to xalloc-die.c.
78371         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78372         so that we needn't mess with xalloc_msg_memory_exhausted.
78373
78374         * lib/sha1.h: Renamed from sha.h.
78375         (SHA1_H): Renamed from _SHA_H.
78376         (sha1_ctx): Renamed from sha_ctx.
78377         (sha1_init_ctx): Renamed from sha_init_ctx.
78378         (sha1_process_block): Renamed from sha_process_block.
78379         (sha1_process_bytes): Renamed from sha_process_bytes.
78380         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78381         (sha1_read_ctx): Renamed from sha_read_ctx.
78382         (sha1_stream): Renamed from sha_stream.
78383         (sha1_buffer): Renamed from sha_buffer.
78384         * lib/sha1.c: Likewise; renamed from sha.c.
78385         Do not include <sys/types.h>.
78386         Include <stddef.h> rather than <stdlib.h>.
78387
78388 2004-08-08  Bruno Haible  <bruno@clisp.org>
78389
78390         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78391         FILESYSTEM_PREFIX_LEN.
78392         * lib/progreloc.c: Likewise.
78393         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78394
78395 2004-08-06  Simon Josefsson  <jas@extundo.com>
78396
78397         * modules/progname (Depends-on): Don't depend on stdbool.
78398
78399 2004-08-06  Simon Josefsson  <jas@extundo.com>
78400
78401         * modules/getsubopt: New file.
78402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78403         getsubopt.
78404
78405 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         More merge from coreutils.
78408
78409         * m4/utimens.m4, m4/utimecmp.m4: New files.
78410         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78411         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78412         prereq.m4, sha.m4: Import changes from coreutils.
78413
78414 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         More merge from coreutils.
78417         * modules/raise, modules/readtokens0, modules/utimens:
78418         * modules/utimecmp, module/xnanosleep: New files.
78419         * modules/strftime: Add lib/strftime.h.
78420         Change include from <time.h> to "strftime.h".
78421         * modules/yesno: Add lib/yesno.h.
78422         * modules/backupfile: Remove lib/addext.c.
78423         * modules/euidaccess: Add stat-macros.h.
78424         * modules/canonicalize, modules/euidaccess,
78425         modules/filemode, modules/lchown, modules/makepath,
78426         modules/rmdir, modules/stat: Likewise.
78427
78428 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         Merge from tar.
78431         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78432         SIZE_MAX is a valid preprocessor constant.
78433         (__argp_basename): Change from "#ifndef _LIBC"
78434         to "#ifndef __argp_short_program_name", so that
78435         we don't compile these functions for tar.
78436
78437         More merges from coreutils.
78438         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78439         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78440         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78441         * lib/addext.c: Remove; no longer needed.
78442         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78443         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78444         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78445         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78446         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78447         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78448         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78449         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78450         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78451         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78452         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78453         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78454         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78455         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78456         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78457         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78458         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78459         Import changes from coreutils.
78460
78461 2004-08-05  Simon Josefsson  <jas@extundo.com>
78462
78463         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78464
78465 2004-08-05  Simon Josefsson  <jas@extundo.com>
78466
78467         * m4/getsubopt.m4: New file.
78468
78469 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         Merge from coreutils.
78472
78473         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78474         * m4/getcwd-path-max.m4: New files.
78475
78476         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78477         FILESYSTEM_PREFIX_LEN ->
78478         FILE_SYSTEM_PREFIX_LEN.
78479         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78480         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78481         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78482         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78483
78484         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78485         prerequisite modules now handle the DOS stuff.
78486         Don't check for unistd.h.
78487
78488 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         Merge from coreutils.
78491
78492         * lib/.gdb-history: Remove; this doesn't belong here.
78493
78494         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78495         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78496         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78497         * lib/getcwd.c: New files.
78498
78499         * lib/dirname.h: Include <stdbool.h>.
78500         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78501         for consistency with POSIX terminology.  All uses changed.
78502         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78503         (strip_trailing_slashes): Use bool for booleans.
78504         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78505
78506         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78507         sometimes returns a positive errno value even when it succeeds.
78508         (print_errno_message) [!LIBC]: Fall back on strerror if
78509         __strerror_r fails.
78510
78511         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78512         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78513         (longest_relative_suffix): New function.
78514         (path_concat): Use it.  Assume first argument is not NULL.
78515         Port to DOS.  Omit redundant separators.
78516         Report an error instead of returning NULL.
78517         Use mempcpy instead of memcpy.
78518         (xpath_concat): Remove: not declared or used.
78519
78520         * lib/same.h: Include <stdbool.h>
78521         (same_name): Return bool, not int.
78522         * lib/same.c (same_name): Likewise.
78523         (errno): Don't declare; we assume C89 or better now.
78524
78525         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78526         if not already defined.
78527
78528         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78529         * lib/dup-safer.c (errno): Likewise.
78530
78531 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         Merge from coreutils.
78534         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78535         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78536         * modules/path-concat: Don't depend on strdup.
78537
78538 2004-08-03  Simon Josefsson  <jas@extundo.com>
78539
78540         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78541         * lib/progname.h: Don't include stdbool.h.
78542
78543 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78544
78545         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78546         * MODULES.html.sh (func_all_modules): Remove fatal.
78547
78548 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78549
78550         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78551
78552 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78555         working.
78556
78557 2004-08-02  Simon Josefsson  <jas@extundo.com>
78558
78559         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78560         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78561         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78562
78563 2004-08-01  Simon Josefsson  <jas@extundo.com>
78564
78565         * lib/xgetdomainname.c: Include stdlib.h, for free().
78566
78567 2004-07-19  Bruno Haible  <bruno@clisp.org>
78568
78569         * MODULES.html.sh (func_all_modules): Add dummy.
78570
78571 2004-07-16  Simon Josefsson  <jas@extundo.com>
78572
78573         * modules/dummy: New file.
78574
78575 2004-07-16  Simon Josefsson  <jas@extundo.com>
78576
78577         * lib/dummy.c: New file.
78578
78579 2004-07-16  Bruno Haible  <bruno@clisp.org>
78580
78581         * lib/backupfile.h: Add extern "C" for C++.
78582         * lib/closeout.h: Likewise.
78583         * lib/copy-file.h: Likewise.
78584         * lib/findprog.h: Likewise.
78585         * lib/full-write.h: Likewise.
78586         * lib/pathname.h: Likewise.
78587         * lib/progname.h: Likewise.
78588         * lib/stpcpy.h: Likewise.
78589         * lib/stpncpy.h: Likewise.
78590         * lib/strcase.h: Likewise.
78591         * lib/strstr.h: Likewise.
78592         * lib/xalloc.h: Likewise.
78593
78594         * lib/mbswidth.h: Add extern "C" for C++.
78595         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78596
78597 2004-07-13  Robert Millan  <robertmh@gnu.org>
78598
78599         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78600
78601 2004-07-09  Simon Josefsson  <jas@extundo.com>
78602
78603         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78604         failed without this.)
78605
78606 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * modules/chown (Files): Add lib/fchown-stub.c, since
78609         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78610
78611 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * lib/fchown-stub.c: New file.
78614
78615 2004-06-24  Jim Meyering  <jim@meyering.net>
78616
78617         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78618
78619 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * modules/argz: Omit "#include".
78622
78623         * MODULES.html.sh (func_all_modules): Add calloc, to match
78624         2004-06-01 addition of calloc module.
78625
78626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78627
78628         * m4/argz.m4: New file, which is autoupdated from libtool.
78629
78630 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78633         libtool.
78634
78635 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * config/srclist-update: Don't insist on "USA." before the
78638         close-comment, as libtool omits the period and puts the */ on a
78639         separate line.
78640         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78641         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78642
78643 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78644
78645         * modules/argz: New file.
78646         * MODULES.html.sh (func_all_modules): Add argz.
78647
78648 2004-06-12  Jim Meyering  <jim@meyering.net>
78649         and  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * modules/hash (Files): Add lib/xalloc.h.
78652         * modules/pipe (Depends-on): Add wait-process.
78653         * modules/stat (Depends-on): Add xalloc.
78654         * modules/userspec (Files): Add lib/userspec.h.
78655         * modules/xstrto
78656
78657         Upgrade from gettext-0.13.
78658         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78659         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78660         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78661
78662 2004-06-10  Jim Meyering  <jim@meyering.net>
78663
78664         * lib/calloc.c: New file.
78665
78666 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * lib/getdate.y (yylex): Allow space between sign and number.
78669         Problem reported by Dan Jacobson.
78670
78671 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         Merge from coreutils CVS.
78674
78675         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78676         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78677         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78678         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78679         xstrtol.m4: Fix copyright date and/or serial number.
78680
78681         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78682         See if we need an fchown replacement.
78683         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78684         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78685         and use the replacement function if we detect either defect.
78686
78687         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78688         gl_UTIMECMP.
78689
78690 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78691         and  Jim Meyering  <jim@meyering.net>
78692
78693         Merge from coreutils CVS.
78694
78695         * lib/stat-macros.h: New file, with contents from file-type.h
78696         and coreutils' system.h.
78697         * lib/file-type.c: Include "stat-macros.h".
78698         * lib/file-type.h (file_type): Move all macro definitions to new file,
78699         stat-macros.h.
78700
78701         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78702         Wrap old code with this conditional.
78703         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78704         function that does not dereference symlinks.
78705         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78706
78707         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78708         dependency problems.
78709         (xreadlink): Accept new arg SIZE, for efficiency.
78710         All decls and uses changed.
78711         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78712
78713         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78714         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78715
78716         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78717         sysexits.h.
78718
78719 2004-06-01  Jim Meyering  <jim@meyering.net>
78720
78721         * m4/calloc.m4: New file.
78722
78723 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78726         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78727         Also, fix a typo in a diagnostic.
78728
78729 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78730
78731         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78732         or AC_FUNC_REALLOC.
78733
78734 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78735
78736         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78737         macros to be defined.
78738         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78739         the allocator returns NULL because the requested size is zero.
78740
78741 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78744         var.  Add comment explaining why libc still defines it.  This
78745         merges the following patch from glibc:
78746         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78747
78748 2004-05-20  Andreas Schwab  <schwab@suse.de>
78749
78750         * m4/free.m4: Replace free if it not known to work, not the other
78751         way round.
78752
78753 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78756         present in glibc since revision 1.1 of this file.
78757         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78758         obstack_alignment_mask, obstack_alloc, obstack_base,
78759         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78760         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78761         obstack_grow0, obstack_init, obstack_int_grow,
78762         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78763         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78764         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78765         nonexistent functions.
78766
78767 2004-05-18  Karl Berry  <karl@gnu.org>
78768
78769         * config/srclist.txt: break link for vasnprintf.c.
78770
78771 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         Port obstack to the AS/400, where pointers are 16 bytes wide and
78774         you cannot cast an integer to a valid pointer.  This patch is
78775         currently waiting to be integrated into glibc; see
78776         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78777
78778         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78779         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78780         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78781         (struct obstack): temp member is now a union of a pointer and
78782         an integer, instead of an integer.  All integer uses changed.
78783         This does not affect the physical layout of struct obstack,
78784         except on hosts (like the AS/400) where the size or alignment of
78785         void * is greater than that of ptrdiff_t.
78786         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78787         __STDC__)]: Store temporary in pointer member of union, not
78788         integer member.
78789         * lib/obstack.c: Include <stddef.h>, for offsetof.
78790         (struct fooalign): Remove; it doesn't need a name.
78791         (union fooround): Change double to long double, and add void *.
78792         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78793         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78794         not a macro.  Hence the values are always int; so remove all
78795         casts-to-int in uses.
78796
78797 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78800         we can get this patch merged into glibc.
78801
78802 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78803             Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/argp: Depend on alloca.
78806
78807 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78808             Paul Eggert  <eggert@cs.ucla.edu>
78809
78810         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78811         freecoding.
78812
78813 2004-05-17  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78816         precision that consists of a '.' followed by an empty digit string.
78817         Patch by Tor Lillqvist <tml@iki.fi>.
78818
78819 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78822         for backward compatibility with older code.  We need our own
78823         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78824         it under some other name, and our alloca.h will define it.
78825
78826 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78827             Derek Price  <derek@ximbiot.com>
78828
78829         * lib/alloca.c: Include <alloca.h>, to get our interface.
78830         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78831         include <alloca.h> first.  Use C89 prototype for alloca; this
78832         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78833         Use #elif for simplicity, since we can assume C89 now.
78834         Don't try to source the system alloca.h since it will not be found
78835         and to prevent recursively including its replacement.
78836         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78837         * lib/regex.c: Likewise.
78838
78839 2004-05-16  Derek Price  <derek@ximbiot.com>
78840             Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         getline cleanup.  This changes the getndelim2 API: both order of
78843         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78844         no delimiter).
78845
78846         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78847         interface does that.
78848         (getline): Always use getdelim, so that we don't have two
78849         copies of this code.
78850         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78851         if available.
78852         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78853         (GETNDELIM2_MAXIMUM): New macro.
78854         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78855         instead of the old practice of delim2==0.  All callers changed.
78856         Return -1 on overflow, instead of returning junk.
78857         Do not set *linesize unless allocation succeeds.
78858         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78859         that we include sys/types.h.
78860         * lib/getnline.h: Likewise.
78861         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78862         (getndelim2): Reorder arguments.
78863         * lib/getnline.c (getnline, getndelim):
78864         Don't discard the NMAX argument.
78865         (getnline): Invoke getndelim, to avoid code duplication.
78866         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78867         of (size_t) -1 by callers of the getnline family.
78868
78869 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78872         Check for gettimeofday.
78873         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78874         Check for settimeofday, stime.
78875
78876 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78877
78878         * lib/nanosleep.c (suspended): Change its type from int to
78879         sig_atomic_t volatile.
78880         (first_call): Make it private to rpl_nanosleep, and have it
78881         be zero initially as that's a bit faster.
78882         (my_usleep): Round up fractional times instead of truncating them,
78883         as this is the usual meaning for 'sleep'.
78884
78885         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78886         doesn't work.
78887         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78888         (ENOSYS): Define if not defined.
78889         (settime): Fall back on stime if it exists and settimeofday fails.
78890         But don't bother with fallbacks if a method fails with errno == EPERM.
78891
78892 2004-05-11  Jim Meyering  <jim@meyering.net>
78893
78894         Prior to this change, the save_cwd caller required read access to the
78895         current directory on most systems (ones with the fchdir function).
78896
78897         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78898         fails, try write-only, and finally, resort to using xgetcwd.
78899
78900 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * lib/obstack.c, obstack.h: Import changes from libc.
78903
78904 2004-04-28  Bruno Haible  <bruno@clisp.org>
78905
78906         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78907         also implicitly appends .exe to executables.
78908         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78909         accepts Windows pathnames.
78910         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78911         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78912         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78913         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78914         Reported by Derek Robert Price <derek@ximbiot.com>.
78915
78916 2004-04-21  Karl Berry  <karl@gnu.org>
78917
78918         * config/srclist.txt (localcharset.c): break sync.
78919
78920 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78921
78922         * m4/host-os.m4: Add a copyright notice.
78923
78924 2004-04-20  Jim Meyering  <jim@meyering.net>
78925
78926         Change UTILS_ to gl_ in AC_DEFINE'd names.
78927         Change utils_- and jm_-prefixed variables, too.
78928         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78929         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78931
78932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78933         Don't emit trailing blanks.
78934         Also rename jm_-prefixed variables to have gl_ prefix.
78935
78936         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78937         Also rename jm_-prefixed variables to have gl_ prefix.
78938
78939         * m4/jm-macros.m4: Reflect the renamings.
78940         * m4/prereq.m4: Likewise.
78941
78942 2004-04-20  Jim Meyering  <jim@meyering.net>
78943
78944         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78945         memory.
78946
78947 2004-04-20  Jim Meyering  <jim@meyering.net>
78948             Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78951         memory when realloc fails.
78952
78953 2004-04-19  Jim Meyering  <jim@meyering.net>
78954
78955         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78956         now that readutmp.c may call `free (0)'.
78957
78958 2004-04-19  Bruno Haible  <bruno@clisp.org>
78959
78960         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78961         * m4/inttypes_h.m4: Likewise.
78962         * m4/stdint_h.m4: Likewise.
78963         * m4/intmax_t.m4: Likewise.
78964         * m4/uintmax_t.m4: Likewise.
78965
78966 2004-04-18  Jim Meyering  <jim@meyering.net>
78967
78968         * m4/prereq.m4: Don't forbid jm_ prefix.
78969
78970         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78971         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78972         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78973         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78974         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78975         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78976         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78977         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78978         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78979         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78980         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78981         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78982         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78983         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78984         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78985         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78986         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78987         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78988         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78989
78990 2004-04-18  Jim Meyering  <jim@meyering.net>
78991
78992         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78993         failure, don't leak memory and do call END_UTMP_ENT.
78994
78995 2004-04-16  Jim Meyering  <jim@meyering.net>
78996
78997         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78998         coreutils' stat program.
78999         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79000
79001 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79002
79003         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79004         C89.
79005         (CHAR_BIT): Remove, since we assume C89.
79006         Include <stdint.h> if available, as per current Autoconf CVS advice.
79007
79008 2004-03-31  Jim Meyering  <jim@meyering.net>
79009
79010         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79011         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79012         * m4/xalloc.m4: Likewise.
79013
79014 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79015
79016         Merge from coreutils.
79017
79018         * m4/inttostr.m4: New file.
79019         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79020         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79021         Require gl_CLOCK_TIME.
79022         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79023
79024 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79025
79026         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79027         not bool, to be more consistent with Unix conventions.
79028         Suggested by Bruno Haible.
79029
79030         Merge from coreutils.
79031
79032         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79033         * lib/umaxtostr.c: New files.
79034
79035         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79036         the usual <time.h> dance.
79037         (get_date): Change signature to support fractional time stamps.
79038         All callers changed.
79039         * lib/getdate.y: Include "getdate.h" first, as we can now
79040         assume C89 and don't need to worry about 'const'.
79041         Similarly, include "unlocked-io.h" near start, not in middle.
79042         Include <limits.h>.
79043         (textint.value): Use long int rather than int.
79044         (textint.digits): Use size_t rather than int.
79045         (BILLION, LOG10_BILLION): New constants.
79046         (parser_control): New member rel_ns.  Members day_ordinal,
79047         time_zone, month, day, hour, minutes, rel_year, rel_month,
79048         rel_day, rel_hour, rel_minutes, rel_seconds
79049         are now long int, not int.  Member seconds is now struct timespec,
79050         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79051         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79052         not int.
79053         (%union.intval): Now long int, not int.
79054         New member timespec.
79055         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79056         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79057         (spec): Now is a timespec or an item list.
79058         (timespec, items): New nonterminals.
79059         (time, rel, relunit, number, get_date):
79060         Add support for fractional seconds.
79061         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79062         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79063         (to_hour): First arg is now long int, not int.
79064         (to_year): Returns long int, not int.
79065         Don't treat year -70 like 70.
79066         (tm_diff): Returns long int, not int.
79067         (lookup_word): Use bool instead of int when appropriate.
79068         (yylex): Use size_t for count, not int.
79069         Detect overflow when parsing large integer constants.
79070         Add support for fractions.
79071         (get_date): Make pointers 'const' if possible.
79072         Use more-portable code to detect integer overflow.
79073         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79074         Don't use ctime; it's not reliable if the year has >4 digits.
79075
79076         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79077         This is for compatibility with BSD.
79078
79079         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79080         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79081         From coreutils' system.h.
79082
79083         * lib/userspec.c: Don't include "posixver.h".
79084         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79085         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79086         compatible extension.  Simplify code by removing a boolean int
79087         that was always nonzero if a string was nonnull.
79088
79089 2004-03-30  Jim Meyering  <jim@meyering.net>
79090
79091         Merge from coreutils.
79092
79093         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79094         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79095         on some systems one must include <grp.h> before it.
79096         Reported by Christian Krackowizer.
79097
79098 2004-03-30  Jim Meyering  <jim@meyering.net>
79099
79100         Merge from coreutils.
79101
79102         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79103
79104         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79105         an empty input stream.
79106
79107         * lib/readtokens.c: Include <stdbool.h>.
79108         (readtoken): Use `size_t' rather than int/long.
79109         All callers adjusted.
79110         Use `bool' rather than `int' where appropriate.
79111         Use memset rather than an explicit loop.
79112         Use x2nrealloc rather than xrealloc.
79113         Allow the use of `\0' as a delimiter.
79114         (readtokens): Likewise.
79115         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79116
79117 2004-03-30  Jim Meyering  <jim@meyering.net>
79118
79119         * m4/realloc.m4: Remove file, since now it does no more than
79120         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79121         the `configure.ac' section of module/realloc.
79122         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79123
79124 2004-03-30  Bruno Haible  <bruno@clisp.org>
79125
79126         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79127         nonnull.
79128
79129 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79130
79131         Merge changes to getloadavg.c from coreutils and Emacs.
79132
79133         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79134         Define to an expression, not to the empty string.
79135         Include cloexec.h and xalloc.h.
79136         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79137         Use set_cloexec_flag rather than rolling our own.
79138         * lib/cloexec.c, lib/cloexec.h: New files.
79139
79140 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79141
79142         * m4/cloexec.m4: New file.
79143
79144 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79145
79146         * lib/getopt.h: Sync with libc CVS.
79147
79148 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79149             Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79152         mbswidth.
79153
79154 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79155             Bruno Haible  <bruno@clisp.org>
79156
79157         * lib/mbswidth.h: Include <wchar.h> only if
79158         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79159         <wchar.h>.
79160         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79161
79162 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79163
79164         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79165         Sync with libc CVS.
79166         * lib/getopt_int.h: New file, also synced from libc.
79167
79168 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79169
79170         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79171         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79172         Bring back getopt.c, getopt.h, getopt1.c.
79173
79174 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79175
79176         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79177         All uses changed.  Check for sa_sigaction member; this fixes
79178         a bug first reported by Jason Andrade in
79179         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79180
79181 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79182
79183         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79184         '#if' expressions.  Unlike the code it replaces, it does not
79185         depend on (defined _SC_PAGESIZE).  However, it does depend on
79186         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79187         first reported by Jason Andrade in
79188         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79189
79190 2004-02-25  Simon Josefsson  <jas@extundo.com>
79191
79192         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79193
79194 2004-02-25  Simon Josefsson  <jas@extundo.com>
79195
79196         * lib/strdup.h: New file.
79197         * lib/strdup.c: Include it.
79198         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79199         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79200
79201 2004-02-23  Karl Berry  <karl@gnu.org>
79202
79203         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79204         (from fencepost.gnu.org:/gd/gnuorg).
79205
79206 2004-02-23  Karl Berry  <karl@gnu.org>
79207
79208         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79209         * config/srclist.txt: add maintain/standards documents.
79210
79211 2004-02-18  Bruno Haible  <bruno@clisp.org>
79212
79213         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79214         Reported by Derek Robert Price <derek@ximbiot.com>.
79215
79216 2004-02-16  Karl Berry  <karl@gnu.org>
79217
79218         * config/mkinstalldirs, install-sh: update from automake.
79219
79220 2004-02-06  Karl Berry  <karl@gnu.org>
79221
79222         * m4/po.m4: update from gettext 0.14.1.
79223
79224 2004-02-06  Karl Berry  <karl@gnu.org>
79225
79226         * lib/config.charset: update from gettext 0.14.1.
79227
79228 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79229
79230         Add comments and code, prompted by suggestions from Bruno Haible
79231         for sh-quote.
79232         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79233         describing the enum quoting_style values.
79234         * lib/quotearg.c (quotearg_alloc): New function.
79235         (quotearg_buffer_restyled): Treat lone { and } as special.
79236         Treat = as special.  Work around bug with older shells
79237         that "see" a '\' that is really the 2nd byte of a multibyte char.
79238         Quote empty string with shell_quoting_style.
79239
79240 2004-02-03  Bruno Haible  <bruno@clisp.org>
79241
79242         * m4/pipe.m4: New file, from GNU gettext.
79243
79244 2004-02-03  Bruno Haible  <bruno@clisp.org>
79245
79246         * lib/pipe.h: New file, from GNU gettext.
79247         * lib/pipe.c: New file, from GNU gettext.
79248
79249 2004-01-27  Bruno Haible  <bruno@clisp.org>
79250
79251         * m4/execute.m4: New file, from GNU gettext.
79252
79253 2004-01-27  Bruno Haible  <bruno@clisp.org>
79254
79255         * lib/execute.h: New file, from GNU gettext.
79256         * lib/execute.c: New file, from GNU gettext.
79257         * lib/w32spawn.h: New file, from GNU gettext.
79258
79259 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79260
79261         Merge from diffutils.
79262
79263         * lib/file-type.c (file_type): Add typed memory objects.
79264         * lib/file-type.h (S_TYPEISTMO): New macro.
79265
79266         * lib/c-stack.h (c_stack_action): Remove argv argument.
79267         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79268         (die): Don't calculate message unless segv_action returns.
79269         (get_stack_location, min_address_from_argv, max_address_from_argv,
79270         volatile stack_base, volatile_stack_size): Remove.
79271         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79272         that every segmentation violation is a stack overflow.  (Ouch!)
79273         See Debian bug 136249 (still outstanding) for more info about why
79274         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79275
79276 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79277
79278         Exit-status fix from coreutils.
79279
79280         Use exit_failure consistently in place of EXIT_FAILURE,
79281         so that program exit statuses are consistent on failure.
79282
79283         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79284         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79285         * lib/argmatch.h: Comment fix to match the above.
79286         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79287         Now a macro referring to exit_failure, instead of a separate
79288         variable.  Include "exitfail.h" to get it.
79289         * lib/xstrtol.h: Include "exitfail.h".
79290         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79291
79292         * lib/long-options.c (parse_long_options): Use prototype
79293         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79294         for clarity.
79295
79296 2004-01-21  Jim Meyering  <jim@meyering.net>
79297
79298         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79299         so as not to conflict with a different-sized __mktime_internal
79300         function in GNU libc.
79301         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79302         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79303
79304 2004-01-20  Karl Berry  <karl@gnu.org>
79305
79306         * config/config.guess: update from config.
79307
79308         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79309
79310 2004-01-20  Bruno Haible  <bruno@clisp.org>
79311
79312         Safer stack allocation.
79313         * lib/setenv.c: Include allocsa.h.
79314         (alloca): Remove fallback definition.
79315         (freea): Remove macro.
79316         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79317         instead of freea.
79318
79319 2004-01-20  Bruno Haible  <bruno@clisp.org>
79320
79321         * m4/eealloc.m4: New file, from GNU gettext.
79322
79323 2004-01-20  Bruno Haible  <bruno@clisp.org>
79324
79325         * m4/allocsa.m4: New file, from GNU gettext.
79326
79327 2004-01-20  Bruno Haible  <bruno@clisp.org>
79328
79329         * lib/xallocsa.h: New file, from GNU gettext.
79330         * lib/xallocsa.c: New file, from GNU gettext.
79331
79332 2004-01-20  Bruno Haible  <bruno@clisp.org>
79333
79334         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79335
79336 2004-01-20  Bruno Haible  <bruno@clisp.org>
79337
79338         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79339         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79340         specially.
79341
79342 2004-01-20  Bruno Haible  <bruno@clisp.org>
79343
79344         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79345         patch.
79346
79347 2004-01-20  Bruno Haible  <bruno@clisp.org>
79348
79349         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79350
79351 2004-01-20  Bruno Haible  <bruno@clisp.org>
79352
79353         * lib/eealloc.h: New file.
79354
79355 2004-01-20  Bruno Haible  <bruno@clisp.org>
79356
79357         * lib/binary-io.h: Avoid warnings on Cygwin.
79358
79359 2004-01-20  Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/allocsa.h: New file, from GNU gettext.
79362         * lib/allocsa.c: New file, from GNU gettext.
79363
79364 2004-01-18  Karl Berry  <karl@gnu.org>
79365
79366         * doc/gpl.texi, doc/lgpl.texi: new files.
79367
79368 2004-01-18  Karl Berry  <karl@gnu.org>
79369
79370         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79371         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79372
79373 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79374
79375         Merge from coreutils.
79376
79377         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79378         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79379         (gl_DEFAULT_POSIX2_VERSION): Move
79380         the documentation from 'configure' into 'config.hin',
79381         so that 'configure --help' isn't burdened by it and
79382         we don't have to worry about its formatting there.
79383         Reword the documentation so that it's more succinct
79384         and can be run together into a single paragraph.
79385         * m4/same.m4 (gl_SAME): Check for pathconf.
79386
79387 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79388
79389         Merge from coreutils.
79390
79391         * lib/posixver.c: Include posixver.h.
79392
79393         * lib/same.c: Include <stdbool.h>, <limits.h>.
79394         (_POSIX_NAME_MAX): Define if not defined.
79395         (MIN): New macro.
79396         (same_name): If file names are silently truncated, report
79397         that the file names are the same if they are the same after
79398         the silent truncation.
79399
79400         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79401         conversion function.
79402         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79403         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79404         longer needed.
79405
79406 2004-01-15  Jim Meyering  <jim@meyering.net>
79407
79408         Merge from coreutils.
79409
79410         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79411         if no library is required.
79412         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79413         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79414         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79415         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79416         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79417         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79418         value, $ac_cv_search_crypt, if it's "none required".
79419         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79420         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79421         not gl_FUNC_GETLOADAVG.
79422         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79423         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79424
79425 2004-01-15  Jim Meyering  <jim@meyering.net>
79426
79427         Merge from coreutils.
79428
79429         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79430         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79431         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79432
79433         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79434         optional configure-time default.
79435
79436         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79437
79438         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79439
79440 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79441
79442         Merge from coreutils.
79443
79444         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79445         value, $ac_cv_search_nanosleep, if it's "none required".
79446
79447 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79448
79449         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79450         with like-named macro in fnmatch.c.
79451         (EXT): Use an internal constant instead.
79452
79453         Merge fnmatch patches from glibc.
79454         * lib/fnmatch.c (mbsinit): Remove define.
79455         Add libc_hidden_ver (__fnmatch, fnmatch).
79456         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79457         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79458
79459 2004-01-14  Karl Berry  <karl@gnu.org>
79460
79461         * config/install-sh: update from automake.
79462
79463 2004-01-13  Karl Berry  <karl@gnu.org>
79464
79465         * config/install-sh: update from automake.
79466
79467 2004-01-09  Karl Berry  <karl@gnu.org>
79468
79469         * config/install-sh: update from automake.
79470
79471 2004-01-05  Karl Berry  <karl@gnu.org>
79472
79473         * config/config.{sub,guess}: update from config.
79474
79475 2003-12-31  Karl Berry  <karl@gnu.org>
79476
79477         * config/depcomp: update from automake.
79478
79479 2003-12-14  Karl Berry  <karl@gnu.org>
79480
79481         * lib/config.charset: update from gettext-runtime.
79482
79483 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79484
79485         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79486         Bug reported by Alfred M. Szmidt.
79487
79488 2003-12-03  Bruno Haible  <bruno@clisp.org>
79489
79490         * m4/gettext.m4: Upgrade from gettext-0.13.
79491         * m4/po.m4: Upgrade from gettext-0.13.
79492         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79493         * m4/intmax.m4: New file, from gettext-0.13.
79494         * m4/printf-posix.m4: New file, from gettext-0.13.
79495
79496 2003-11-29  Karl Berry  <karl@gnu.org>
79497
79498         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79499
79500 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79501             Bruno Haible  <bruno@clisp.org>
79502
79503         * lib/printf-parse.h: Don't include sys/types.h.
79504         (ARG_NONE): New macro.
79505         (char_directive): Change type of *arg_index fields to size_t.
79506         * lib/printf-parse.c: Don't include sys/types.h.
79507         (SSIZE_MAX): Remove macro.
79508         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79509         Remove unnecessary overflow check.
79510         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79511         fields.
79512
79513 2003-11-25  Bruno Haible  <bruno@clisp.org>
79514
79515         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79516
79517 2003-11-25  Bruno Haible  <bruno@clisp.org>
79518
79519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79520         gt_TYPE_SSIZE_T.
79521
79522 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79523
79524         * modules/alloca: Remove dependency on xalloc.
79525
79526 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79527
79528         * lib/alloca.c: Remove dependency on xalloc module.
79529         (xalloc_die): Remove.
79530         (memory_full) [!defined emacs]: New macro.
79531         [!defined emacs]: Don't include xalloc.h.
79532         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79533         address arithmetic overflows.  Change datatypes a bit to avoid
79534         unnecessary casts.
79535
79536 2003-11-22  Jim Meyering  <jim@meyering.net>
79537
79538         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79539         s/size/size_t/.
79540
79541 2003-11-21  Karl Berry  <karl@gnu.org>
79542
79543         * config/config.{sub,guess}: update from config.
79544
79545 2003-11-18  Karl Berry  <karl@gnu.org>
79546
79547         * config/config.{sub,guess}: update from config.
79548
79549         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79550
79551 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79552
79553         * README: Mention that S+T cannot overflow if S is the size of
79554         an existing object and T is sufficiently small.
79555
79556 2003-11-17  Jim Meyering  <jim@meyering.net>
79557
79558         On systems without utime and without a utimes function capable of
79559         dealing with a NULL struct utimbuf* argument, this utime replacement
79560         could -- in unusual circumstances -- leak a file descriptor.
79561         * lib/utime.c: Include <unistd.h> and <errno.h>.
79562         (utime_null): Be sure to close `fd' and to preserve errno.
79563         Reported by Geoff Collyer via Arnold Robbins.
79564
79565 2003-11-17  Bruno Haible  <bruno@clisp.org>
79566
79567         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79568         (Depends-on): Add xsize.
79569
79570 2003-11-17  Bruno Haible  <bruno@clisp.org>
79571
79572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79573
79574 2003-11-17  Bruno Haible  <bruno@clisp.org>
79575
79576         * lib/vasnprintf.c (alloca): Remove fallback definition.
79577         (freea): Remove definition.
79578         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79579         Reported by Paul Eggert.
79580
79581 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79582             Bruno Haible  <bruno@clisp.org>
79583
79584         Protect against address arithmetic overflow.
79585         * lib/printf-args.h: Include stddef.h.
79586         (arguments): Change type of field 'count' to size_t.
79587         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79588         'unsigned int' where appropriate.
79589         * lib/printf-parse.h: Include sys/types.h.
79590         (char_directive): Change type of *arg_index fields to ssize_t.
79591         (char_directives): Change type of fields 'count', max_*_length to
79592         size_t.
79593         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79594         (SSIZE_MAX): Define fallback value.
79595         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79596         instead of 'int' where appropriate. Check a_allocated, d_allocated
79597         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79598         * lib/vasnprintf.c: Include xsize.h.
79599         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79600         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79601         overflow. Avoid wraparound when converting a width or precision from
79602         decimal to binary.
79603
79604 2003-11-16  Bruno Haible  <bruno@clisp.org>
79605
79606         Update from GNU gettext.
79607         * lib/printf-parse.c: Generalize to it can be compiled for wide
79608         strings.
79609         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79610         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79611         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79612         SNPRINTF): New macros.
79613         Don't include <alloca.h> if the file is used inside libintl.
79614         (local_wcslen): New function, for Solaris 2.5.1.
79615         (VASNPRINTF): Use it instead of wcslen.
79616
79617 2003-11-16  Bruno Haible  <bruno@clisp.org>
79618
79619         * lib/xsize.h (xmax): New function.
79620         (xsum, xsum3, xsum4): Declare as "pure" functions.
79621
79622 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79623
79624         * modules/xalloc (Files): Undo latest change, since xalloc.h
79625         no longer needs SIZE_MAX or PTRDIFF_MAX.
79626
79627 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79628
79629         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79630         gl_PTRDIFF_MAX.
79631
79632 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79633
79634         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79635         "return", to pacify some unknown compiler.  Problem reported
79636         by Joerg Schilling.
79637
79638 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79639
79640         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79641         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79642         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79643         heuristic is just as accurate as far as we know, and it removes a
79644         dependency on size_max.m4 and ptrdiff_max.m4.
79645
79646 2003-11-11  Bruno Haible  <bruno@clisp.org>
79647
79648         * modules/xsize (Files): Add m4/size_max.m4.
79649         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79650
79651 2003-11-11  Bruno Haible  <bruno@clisp.org>
79652
79653         * m4/size_max.m4: New file.
79654         * m4/ptrdiff_max.m4: New file.
79655         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79656         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79657         (gl_XALLOC): Invoke it.
79658
79659 2003-11-11  Bruno Haible  <bruno@clisp.org>
79660
79661         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79662         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79663         defined.
79664
79665 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79666
79667         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79668         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79669         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79670         From Bruno Haible.
79671         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79672         not (size_t) -1, since it's defined here.
79673
79674 2003-11-09  Karl Berry  <karl@gnu.org>
79675
79676         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79677
79678 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79679
79680         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79681         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79682         Reject sizes of exactly SIZE_MAX bytes.
79683         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79684         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79685
79686 2003-11-05  Bruno Haible  <bruno@clisp.org>
79687
79688         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79689         SIZE_MAX defined in <limits.h> on Solaris.
79690
79691 2003-11-04  Jim Meyering  <jim@meyering.net>
79692
79693         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79694         variable names, rather than @VAR@.
79695         * modules/poll: Likewise.
79696
79697 2003-11-04  Bruno Haible  <bruno@clisp.org>
79698
79699         * modules/xsize: New file.
79700         * modules/linebreak: Depend on xsize.
79701         * MODULES.html.sh (func_all_modules): Add xsize.
79702
79703 2003-11-04  Bruno Haible  <bruno@clisp.org>
79704
79705         * m4/xsize.m4: New file.
79706
79707 2003-11-04  Bruno Haible  <bruno@clisp.org>
79708
79709         * lib/xsize.h: New file.
79710         * lib/linebreak.c: Include xsize.h.
79711         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79712         argument for overflow.
79713         Suggested by Paul Eggert.
79714
79715 2003-11-03  Karl Berry  <karl@gnu.org>
79716
79717         * config/config.{guess,sub}: update from config.
79718
79719 2003-11-03  Jim Meyering  <jim@meyering.net>
79720
79721         * modules/userspec (lib_SOURCES): Add userspec.h.
79722         (Include): Add "userspec.h".
79723         Improve description.
79724
79725 2003-11-03  Jim Meyering  <jim@meyering.net>
79726
79727         * lib/userspec.c: Include "userspec.h".
79728         * lib/userspec.h: New file.
79729
79730 2003-11-03  Bruno Haible  <bruno@clisp.org>
79731
79732         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79733
79734 2003-11-03  Bruno Haible  <bruno@clisp.org>
79735
79736         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79737         available, to avoid (extremely rare) race condition.
79738         Suggested by Paul Eggert.
79739
79740 2003-11-02  Karl Berry  <karl@gnu.org>
79741
79742         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79743
79744 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79745
79746         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79747         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79748         (read_filesystem_list): Set and use me_type_malloced.
79749         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79750         whatever the type happens to be), for brevity and consistency.
79751         Check for size calculation overflow on Alphas running OSF/1.
79752
79753 2003-10-31  Jim Meyering  <jim@meyering.net>
79754
79755         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79756
79757         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79758
79759 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79760             Bruno Haible  <bruno@clisp.org>
79761
79762         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79763         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79764
79765 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79768         netbsd*-gnu*.  Suggested by Robert Millan.
79769
79770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79771
79772         * modules/group-member: Depend on stdbool.
79773
79774 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79775
79776         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79777
79778 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79779
79780         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79781         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79782         after the 'gnu' in these cases.  This fixes some bugs in the
79783         previous change, and is based on suggestions by Robert Millan.
79784
79785 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79786
79787         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79788         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79789         no longer needed.
79790         * lib/quotearg.c (quotearg_n_options): Use it.
79791         * lib/group-member.c: Include <stdbool.h>.
79792         (free_group_info): Arg is now const *; don't free arg.
79793         (get_group_info): Now returns bool and accepts struct group_info *,
79794         rather than returning a malloc'ed struct group_info *.
79795         All uses changed.  Check for overflow in internal size calculation.
79796
79797         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79798         rather than xmalloc/xrealloc.
79799         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79800         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79801         conformance bug: the old code used a pointer after freeing the
79802         storage that it addressed.
79803         * lib/hash.c (hash_initialize): Simplify the code by using
79804         xalloc_oversized rather than doing it by hand.
79805         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79806         the buffer preserved.  Use free and xmalloc instead.
79807         * lib/quotearg.c (quotearg_n_options): Likewise.
79808         Use a simpler test for size overflow.  Don't use xalloc_oversized
79809         because unsigned int might be wider than size_t (!); this suggests
79810         that we should switch from unsigned int to size_t for slot numbers.
79811
79812 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79813
79814         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79815         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79816         NetBSD kernels.  Requested by Richard Stallman.
79817
79818 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79819
79820         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79821         to allocate the returned structure.  Do not allocate a subarray,
79822         as x2nrealloc will do that.
79823         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79824         instead of xnrealloc.
79825         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79826
79827 2003-10-27  Bruno Haible  <bruno@clisp.org>
79828
79829         * lib/stdbool_.h: Better support for BeOS.
79830
79831 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79832
79833         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79834         now uses inline.
79835
79836 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79837
79838         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79839         callers that want to do their own size-overflow checking.  Include
79840         <stdbool.h>, since xalloc_oversized returns bool.
79841         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79842         to use xalloc_oversized.
79843
79844         Add two functions x2realloc, x2nrealloc, for programs that grow
79845         arrays dynamically by doubling their sizes.
79846         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79847         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79848         New functions.
79849
79850         Port to C99 semantics for 'inline' of external functions.
79851         Bug reported by Bruno Haible.
79852         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79853         with the old contents of xnmalloc.
79854         (xnmalloc, xmalloc): Use it.
79855         (xnrealloc_inline): New static inline function,
79856         with the old contents of xnrealloc.
79857         (xnrealloc, xrealloc): Use it.
79858
79859         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79860         that.
79861
79862 2003-10-26  Karl Berry  <karl@gnu.org>
79863
79864         * config/srclist.txt (COPYING.DOC): no longer available from
79865         /gd/gnuorg; don't know where the ultimate source is.
79866
79867 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79868
79869         Fix several address-calculation bugs in the hash modules,
79870         plus some minor code cleanup.
79871
79872         * lib/hash.h: Include <stdbool.h>, for bool.
79873         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79874         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79875         hash_get_n_entries, hash_get_max_bucket_length,
79876         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79877         hash_rehash): Use size_t rather than unsigned.
79878         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79879         hash_get_n_buckets_used, hash_get_n_entries,
79880         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79881         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79882         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79883         Likewise.
79884         (SIZE_MAX): Define if not defined.
79885         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79886         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79887         hash_print):
79888         Use const * when possible.
79889         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79890         (check_tuning): Fix bug: if tuning parameters were very close to
79891         0 or 1, rounding errors could have caused subscript violations.
79892         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79893         (hash_initialize): Add 'fail:' label
79894         to free table and return NULL, and use it to simplify code.
79895         Use calloc rather than clearing the storage ourself.
79896         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79897         buffer size calculations.
79898         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79899         Include <stddef.h>, for size_t.
79900         * lib/hash-pjw.c (hash_pjw): Likewise.
79901         Switch to method described by Bruno Haible.
79902         Include <limits.h>, for CHAR_BIT.
79903         (SIZE_BITS): New macro.
79904
79905 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79906
79907         * m4/getline.m4 (AM_FUNC_GETLINE):
79908         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79909         hosts.  Problem reported by Derek Robert Price in
79910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79911         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79912         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79913
79914 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79915
79916         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79917         ceiling the allocation at NMAX bytes rather than silently
79918         discarding input bytes before NMAX is reached.  This makes
79919         a difference only if NMAX exceeds SIZE_MAX / 2.
79920
79921         * lib/obstack.c: Merge from glibc.
79922         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79923         Add libc_hidden_def (_obstack_newchunk).
79924         (_obstack_free) [! defined _LIBC]: Remove.
79925         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79926         a clone of the function body.
79927         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79928         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79929
79930         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79931         glibc.
79932         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79933         arg to memcpy.
79934
79935         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79936         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79937         Don't use lvalue casts, as GCC plans to remove support for them
79938         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79939         was also present in the non-GCC version, indicating that this
79940         code had always been buggy and had never been widely used.
79941         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79942         Use the fast variant of each macro, rather than copying the
79943         definiens of the fast variant; that way, we'll be more likely to
79944         catch future bugs in the fast variants.
79945
79946 2003-10-20  Bruno Haible  <bruno@clisp.org>
79947
79948         * modules/wait-process: New file.
79949         * MODULES.html.sh (func_all_modules): Add wait-process.
79950
79951 2003-10-20  Bruno Haible  <bruno@clisp.org>
79952
79953         * m4/wait-process.m4: New file.
79954
79955 2003-10-20  Bruno Haible  <bruno@clisp.org>
79956
79957         * lib/wait-process.h: New file, from GNU gettext.
79958         * lib/wait-process.c: New file, from GNU gettext.
79959
79960 2003-10-19  Jim Meyering  <jim@meyering.net>
79961
79962         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79963         HPUX 10.20.
79964
79965 2003-10-18  Karl Berry  <karl@gnu.org>
79966
79967         * config/config.guess: update from config.
79968
79969 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79970
79971         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79972         (getgroups): First arg is int, not size_t.
79973         Don't let 'free' mangle errno.
79974
79975 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79976
79977         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79978
79979 2003-10-16  Karl Berry  <karl@gnu.org>
79980
79981         * config/config.{guess,sub}: update from config.
79982
79983 2003-10-16  Jim Meyering  <jim@meyering.net>
79984
79985         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79986         memcpy.
79987
79988 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79991         (SIZE_MAX): Remove.
79992         (new_exclude, add_exclude_file): Initial size no longer needs to
79993         be a power of 2.
79994         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79995         our own address arithmetic overflow checking.
79996
79997         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79998         (fnmatch): Do not alloca more than 2000 wide characters;
79999         instead, use malloc for large buffers.
80000         Check for address arithmetic overflow, and return -1
80001         with errno set to ENOMEM in that case.
80002         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80003         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80004         instead, return -1.  Check for address arithmetic overflow.
80005
80006 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80007
80008         Handle invalid suffixes and overflow independently, so that
80009         callers can treat them independently as needed.  Fix some bugs in
80010         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80011         suffix for a human-readable blocksize.  The major caller-visible
80012         change is the addition of a new
80013         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80014         that both overflow and suffix chars were found.
80015
80016         * lib/human.c (humblock): Don't check separately for invalid suffix
80017         char; that is xstrtoumax's job (now that its bug is fixed).
80018         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80019         INTMAX_MAX]: New macros.
80020         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80021         TYPE_MAXIMUM): New macros.
80022         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80023         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80024         if overflow occurs, as it's what __strtol does and it's more useful
80025         in practice.
80026         (__xstrtol): If __strtol reports some error other than ERANGE,
80027         reflect it to the caller as LONGINT_INVALID.  If it reports
80028         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80029         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80030         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80031         value.
80032         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80033         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80034         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80035         [defined UINTMAX_MAX]: New macros.
80036
80037 2003-10-14  Bruno Haible  <bruno@clisp.org>
80038
80039         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80040
80041 2003-10-14  Bruno Haible  <bruno@clisp.org>
80042
80043         * m4/sig_atomic_t: New file, from GNU gettext.
80044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80045
80046 2003-10-14  Bruno Haible  <bruno@clisp.org>
80047
80048         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80049         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80050         Also use volatile where needed.
80051
80052 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80053
80054         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80055         Change maintainer from Bruno Haible to 'all'.
80056
80057 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80058
80059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80060
80061 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80062
80063         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80064         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80065         and define in terms of the other primitives.
80066         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80067         (SIZE_MAX): Define if not already defined.
80068         (array_size_overflow): New function.
80069         (xalloc_die): Abort instead of exiting if 'error' returns.
80070         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80071         (xmalloc, xrealloc): Use them.
80072         (xcalloc): Check for address arithmetic overflow.
80073         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80074         a bit faster than strcpy.
80075
80076 2003-10-10  Simon Josefsson  <jas@extundo.com>
80077
80078         * modules/argp (Depends-on): Add restrict and strcase.
80079
80080 2003-10-10  Simon Josefsson  <jas@extundo.com>
80081
80082         * m4/argp.m4: Add AC_C_INLINE.
80083
80084 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80085
80086         Merge getpass from libc, plus a few fixes.
80087
80088         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80089         Include <stdbool.h>.
80090         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80091         __fsetlocking to empty.
80092         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80093         do include <bits/libc-lock.h>.
80094         Do not include <fcntl.h>; not needed.
80095         [_LIBC]: Include <wchar.h>.
80096         (NOTCANCEL_MODE): New macro.
80097         (flockfile, funlockfile) [_LIBC]: New macros.
80098         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80099         [!_LIBC]: New macros.
80100         (call_fclose): New function.
80101         (getpass): Use it.  Save tty stream separately; this simplifies the
80102         code and makes it more reliable if stdin happens to equal stdout.
80103         Invoke __fsetlocking on tty.
80104         Handle thread cancellation if needed.
80105         Namespace cleanup (use __tcgetattr, __getline).
80106         Use bool for Booleans.
80107         [USE_IN_LIBIO]: Handle wide streams.
80108         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80109         stream might go where.
80110
80111         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80112         doesn't have to include <stdio.h> before us.
80113         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80114         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80115         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80116         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80117         if not declared, so that we can use getpass.c code from libc without
80118         rewriting it.
80119         (flockfile, ftrylockfile, funlockfile): New macros.
80120
80121 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80122
80123         * modules/getpass: Depend on stdbool.
80124
80125 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80126
80127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80128
80129 2003-10-07  Karl Berry  <karl@gnu.org>
80130
80131         * config/config.{guess,sub}: update from config.
80132
80133 2003-10-06  Jim Meyering  <jim@meyering.net>
80134             Bruno Haible  <bruno@clisp.org>
80135
80136         This lets translators provide better translations for the
80137         "Written by ..." part of --version output.
80138         * lib/version-etc.h: Include stdarg.h.
80139         (version_etc_copyright): Declare as readonly.
80140         (version_etc): Make this function variadic with a NULL-terminated list
80141         of author name strings.
80142         (version_etc_va): New declaration.
80143         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80144         (version_etc_copyright): Declare as readonly.
80145         (version_etc_va): New function. Provide a different translatable string
80146         for each possible number of authors < 10. Abbreviate when there are 10
80147         authors or more.
80148         (version_etc): Make this function variadic. Call version_etc_va.
80149         Suggestion from Gary V. Vaughan.
80150
80151         * lib/long-options.h (parse_long_options): Change prototype: the
80152         authors string is moved to the end and becomes variadic.
80153         * lib/long-options.c: Include stdarg.h.
80154         (parse_long_options): Make this function variadic, too.
80155         Call version_etc_va, not version_etc.
80156
80157 2003-10-06  Bruno Haible  <bruno@clisp.org>
80158
80159         * modules/version-etc-2: Remove file.
80160         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80161
80162 2003-10-06  Bruno Haible  <bruno@clisp.org>
80163
80164         * modules/fatal-signal: New file.
80165         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80166
80167 2003-10-06  Bruno Haible  <bruno@clisp.org>
80168
80169         * m4/fatal-signal.m4: New file.
80170         * m4/signalblocking.m4: New file, from GNU gettext.
80171
80172 2003-10-06  Bruno Haible  <bruno@clisp.org>
80173
80174         * lib/version-etc-2.h: Remove file.
80175         * lib/version-etc-2.c: Remove file.
80176
80177 2003-10-06  Bruno Haible  <bruno@clisp.org>
80178
80179         * lib/fatal-signal.h: New file, from GNU gettext.
80180         * lib/fatal-signal.c: New file, from GNU gettext.
80181
80182 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80183
80184         * README: Rework advice for preventing empty .o files.
80185         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80186         not <sys/types.h>.
80187
80188 2003-10-04  Karl Berry  <karl@gnu.org>
80189
80190         * lib/argp*: update from libc.
80191
80192 2003-10-04  Karl Berry  <karl@gnu.org>
80193
80194         * config/config.{guess,sub}: update from config.
80195
80196 2003-10-02  Bruno Haible  <bruno@clisp.org>
80197
80198         * modules/lchown (Include): Add lchown.h.
80199         * modules/time_r (Include): Use "..." syntax.
80200         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80201
80202 2003-10-01  Simon Josefsson  <jas@extundo.com>
80203
80204         * MODULES.html.sh (func_all_modules): Move gethostname from section
80205         'based on' to section 'lacking' POSIX:2001.
80206
80207 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80208
80209         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80210         to output mode on the same stream.
80211
80212 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80213
80214         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80215         Fix arg typo in previous patch.
80216
80217 2003-09-28  Jim Meyering  <jim@meyering.net>
80218
80219         * lib/error.c: Correct cpp indentation.
80220
80221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80222
80223         * modules/free: New file.
80224
80225 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80226
80227         * m4/free.m4: New file.
80228
80229 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80230
80231         * lib/minmax.h (MIN, MAX)
80232         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80233         Omit the special code that used __typeof__, since we worry that
80234         it could be more trouble than it's worth.  See:
80235         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80236         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80237
80238         * lib/free.c: New file.
80239
80240 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80241
80242         Trivial fixes to Makefile.am parts of module listings.
80243         * modules/strstr: Append strstr.h to lib_SOURCES.
80244         * modules/strcase: Likewise, for strcase.h.
80245
80246 2003-09-27  Karl Berry  <karl@gnu.org>
80247
80248         * config/mkinstalldirs: update from automake.
80249
80250 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80251
80252         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80253         (error_tail): Do not loop, reallocating temporary buffer, since
80254         the output cannot contain more wide characters than the input
80255         contains bytes, the size must be big enough already.  This avoids
80256         one potential size overflow calculation.  Check for size overflow
80257         when calculating temporary buffer size.  Free temporary buffer
80258         when done, if it was allocated with malloc; this plugs a memory
80259         leak.  Remove casts from void * to pointers, that are no longer
80260         needed now that we're assuming C89 or better.
80261
80262         Merge error changes from glibc.
80263
80264         * lib/error.c, error.h: Update copyright notice header to match glibc.
80265         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80266         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80267         Disable cancellation while printing error.
80268         * lib/error.h: Prepend __ to parameter names.
80269
80270 2003-09-26  Jim Meyering  <jim@meyering.net>
80271
80272         * lib/error.c (error_tail): Move some declarations
80273         into inner scope where the local variables are used.
80274
80275 2003-09-26  Bruno Haible  <bruno@clisp.org>
80276
80277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80278         stpncpy().
80279         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80280
80281 2003-09-26  Bruno Haible  <bruno@clisp.org>
80282
80283         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80284         (stpncpy): Define as alias for gnu_stpncpy.
80285         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80286
80287 2003-09-25  Simon Josefsson  <jas@extundo.com>
80288
80289         * lib/xgetdomainname.h: New file.
80290         * lib/xgetdomainname.c: New file.
80291
80292 2003-09-25  Simon Josefsson  <jas@extundo.com>
80293             Bruno Haible  <bruno@clisp.org>
80294
80295         * modules/getdomainname: New file.
80296         * modules/xgetdomainname: New file.
80297         * MODULES.html.sh (func_all_modules): Add getdomainname,
80298         xgetdomainname.
80299
80300 2003-09-25  Simon Josefsson  <jas@extundo.com>
80301             Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/getdomainname.m4: New file.
80304
80305 2003-09-25  Simon Josefsson  <jas@extundo.com>
80306             Bruno Haible  <bruno@clisp.org>
80307
80308         * lib/getdomainname.h: New file.
80309         * lib/getdomainname.c: New file.
80310
80311 2003-09-25  Karl Berry  <karl@gnu.org>
80312
80313         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80314
80315 2003-09-25  Karl Berry  <karl@gnu.org>
80316
80317         * config/install-sh: update from automake.
80318
80319 2003-09-25  Bruno Haible  <bruno@clisp.org>
80320
80321         * modules/version-etc-2: New file, from modules/version-etc with
80322         modifications.
80323         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80324
80325 2003-09-25  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80328         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80329
80330 2003-09-24  Simon Josefsson  <jas@extundo.com>
80331
80332         * modules/xgethostname: Add xgethostname.h.
80333
80334 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80335
80336         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80337         the buffer associated with the argument.  Bug reported by
80338         Simon Josefsson.
80339
80340 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80341
80342         * README: Document assumptions that 'int' is at least 32 bits
80343         wide, that integer arithmetic is 2's complement without overflow,
80344         that there are no holes in integer values, that adding sizes of
80345         two nonoverlapping objects can't overflow, and that all-bits-zero
80346         yields scalar zero.  Fix spelling and capitalization typos.
80347
80348 2003-09-19  Karl Berry  <karl@gnu.org>
80349
80350         * lib/argp.h: update from libc.
80351
80352 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80353
80354         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80355         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80356         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80357
80358 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80359
80360         * gnulib-tool: Use "test -h", not "test -L", for portability
80361         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80362         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80363         (sed_extract_prog): Issue s commands one-by-one, rather than
80364         using \| in one s command.
80365
80366 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80367
80368         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80369         input error, instead of returning NULL the next time we are called
80370         (and therefore losing track of errno).
80371
80372 2003-09-16  Bruno Haible  <bruno@clisp.org>
80373
80374         * gnulib-tool (func_create_testdir): Warn about duplicated
80375         dependencies.
80376
80377 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80378
80379         * modules/argmatch, modules/fatal, modules/obstack,
80380         modules/xalloc, modules/xgethostname: Sort dependencies by
80381         importance, not alphabetically.
80382
80383 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80384
80385         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80386         fails, so that the caller gets the proper errno.
80387
80388         * lib/readutmp.c (read_utmp): Likewise.
80389         Check for fstat error.  Close stream and free storage
80390         when failing.
80391
80392 2003-09-14  Karl Berry  <karl@gnu.org>
80393
80394         * config/srclist.txt (strdup.c): disable for c89 changes.
80395
80396 2003-09-14  Jim Meyering  <jim@meyering.net>
80397
80398         * lib/getloadavg.c: Correct cpp indentation.
80399         * lib/strdup.c: Likewise.
80400         * lib/vasnprintf.c: Likewise.
80401
80402 2003-09-14  Bruno Haible  <bruno@clisp.org>
80403
80404         * modules/fwriteerror: New file.
80405         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80406
80407 2003-09-14  Bruno Haible  <bruno@clisp.org>
80408
80409         * lib/fwriteerror.h: New file.
80410         * lib/fwriteerror.c: New file.
80411
80412 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80413
80414         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80415         modules/xgethostname, modules/xalloc: Depend on exit.
80416
80417 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80418
80419         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80420
80421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80422         and AC_MINIX, too, so that their extensions are available.
80423
80424         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80425         This macro has been superseded by gl_BACKUPFILE.
80426
80427         More patches to assume C89 or better.
80428
80429         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80430
80431         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80432         unconditionally.
80433         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80434         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80435         Include <string.h>, <stdlib.h> unconditionally.
80436         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80437         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80438         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80439         headers or for string.h.
80440         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80441         or strtoul.
80442
80443         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80444         headers.
80445         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80446         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80447         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80448         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80449         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80450         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80451         memcpy, memset.
80452         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80453         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80454         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80455         strtol.
80456         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80457         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80458         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80459         strtoul.
80460
80461 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80462
80463         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80464         * lib/obstack.c [!defined _LIBC]: Likewise.
80465         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80466         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80467         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80468
80469         More changes to assume C89 or better.
80470
80471         * lib/error.c (error_tail): Assume vprintf.
80472
80473         * lib/argmatch.c (getenv): Remove decl.
80474         * lib/progreloc.c (get_full_program_name): Define via prototype.
80475         * lib/setenv.c (clearenv): Likewise.
80476         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80477         needed.
80478         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80479         (malloc, memcpy): Remove decls.
80480         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80481         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80482         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80483         (memcpy): Remove macro.
80484         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80485         (__P): Remove.  All uses removed.
80486         (PTR): Remove.  All uses changed to void *.
80487         (CHAR_BIT, NULL): Remove.
80488         (spaces, zeros, memset_space, memset_zero)
80489         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80490         Remove.
80491         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80492         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80493         Define with prototype.
80494         Remove now-unnecessary prototype decl.
80495         (extra_args_spec): Assume ANSI C.  All uses changed.
80496         (extra_args_spec_iso): Remove.
80497         (my_strftime, emacs_strftimeu): Define via prototype.
80498         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80499         unconditionally.
80500         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80501         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80502         (strtoul, strtol): Remove decls.
80503         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80504         LONG_MAX): Remove.
80505         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80506         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80507         (LOCALE_PARAM_PROTO): New macro.
80508         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80509         (INTERNAL (strtol), strtol): Define with a prototype.
80510         (PARAMS): Remove.  All uses removed.
80511         * lib/tempname.c: Include <string.h> unconditionally.
80512         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80513         * lib/xgethostname.c (main): Define with a prototype.
80514         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80515         Include <stdlib.h> unconditionally.
80516         (calloc, malloc, realloc, free): Remove decls.
80517         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80518         Include <stdlib.h> unconditionally.  Sort include file names.
80519         (strtod): Remove.
80520         (xstrtod): Define with a prototype.
80521         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80522         (strtol, strtoul): Remove decls.
80523
80524 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80525
80526         More patches to assume C89 or better.
80527         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80528         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80529         string.h, memchr, STDC_HEADERS.
80530
80531 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80532
80533         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80534         Include <stdlib.h>, <string.h> unconditionally.
80535         Remove now-unnecessary cast to char *.
80536         * lib/strnlen.c: Include <string.h> unconditionally.
80537         * lib/yesno.c (yesno): Define with a prototype.
80538
80539 2003-09-11  Bruno Haible  <bruno@clisp.org>
80540
80541         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80542
80543 2003-09-10  Jim Meyering  <jim@meyering.net>
80544
80545         * lib/error.c: Correct indentation of cpp directives.
80546
80547 2003-09-10  Bruno Haible  <bruno@clisp.org>
80548
80549         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80550         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80552         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80553         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80554         <stdlib.h> and <string.h> checks.
80555         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80556         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80557
80558 2003-09-10  Bruno Haible  <bruno@clisp.org>
80559
80560         * lib/strcspn.c: Include <string.h> unconditionally.
80561         * lib/strpbrk.c: Include <string.h> unconditionally.
80562         * lib/strstr.c: Include <string.h> unconditionally.
80563         * lib/unicodeio.c: Include <string.h> unconditionally.
80564         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80565         * lib/unsetenv.c: Likewise.
80566         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80567         * lib/yesno.c: Include <stdlib.h> unconditionally.
80568         (rpmatch): Add prototype.
80569
80570 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80571
80572         More patches to assume C89 or better.
80573         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80574         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80575         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80576         or for string.h.
80577         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80578         stdlib.h.
80579         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80580         C headers.
80581         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80582         string.h.
80583         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80584         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80585         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80586         or for string.h.
80587         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80588         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80589         C headers.
80590         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80591         memcpy.
80592         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80593         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80594         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80595         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80596         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80597         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80598         string.h, free.
80599         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80600         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80601         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80602         C headers, or for string.h.
80603         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80604         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80605         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80606         headers, memory.h, stdlib.h, string.h, strings.h.
80607         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80608         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80609         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80610         strchr.
80611         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80612         headers, memory.h, string.h.
80613         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80614         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80615         free.
80616         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80617         headers.
80618         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80619         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80620         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80621         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80622         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80623
80624 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80625
80626         More K&R removal.
80627
80628         * lib/acosl.c (main): Use a prototype.
80629         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80630         tanl.c: Likewise.
80631
80632         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80633
80634         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80635         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80636         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80637         with a prototype.
80638         * lib/getopt.c (const): Remove macro.
80639         Include <string.h> unconditionally.
80640         (my_index): Remove; all uses changed to strchr.
80641         (strlen): Remove decl.
80642         (exchange): Remove forward decl; no longer needed.
80643         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80644         Define with prototype.
80645         * lib/getopt1.c (const): Remove macro.
80646         (getopt_long, getopt_long_only, main): Define with prototype.
80647
80648         * lib/getugroups.c: Include <string.h> unconditionally.
80649
80650         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80651         (getusershell, setusershell, endusershell, readname, main):
80652         Define with prototypes.
80653
80654         * lib/group-member.c: Include group-member.h first.
80655         Include <stdlib.h> unconditionally.
80656
80657         * lib/hard-locale.c: Include hard-locale.h first.
80658         Include <stdlib.h>, <string.h> unconditionally.
80659
80660         * lib/hash.c (free, malloc): Remove decls.
80661         Include <stdlib.h> unconditionally.
80662
80663         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80664         (getenv): Do not declare.
80665
80666         * lib/idcache.c: Include <string.h> unconditionally.
80667
80668         * lib/long-options.c: Include long-options.h first, to test interface.
80669         Include <stdlib.h> unconditionally.
80670
80671         * lib/makepath.c: Include makepath.h first, to test interface.
80672         Include <stdlib.h> and <string.h> unconditionally.
80673
80674         * lib/linebuffer.c: Include <stdlib.h>.
80675         (free): Remove decl.
80676
80677         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80678         stddef.h. rpl_malloc returns void *, not char *.
80679         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80680         prototype.
80681
80682         * lib/md5.h: Include <limits.h> unconditionally.
80683         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80684         (__P): Remove; all uses removed.
80685         * lib/md5.c: Include "md5.h" first.
80686         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80687         md5_buffer, md5_process_bytes, md5_process_block):
80688         Define with prototypes.
80689         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80690         * lib/sha.c: Include "sha.h" first.
80691         Include <stdlib.h>, <string.h> unconditionally.
80692
80693         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80694         * lib/memcmp.c (__ptr_t): Likewise.
80695         * lib/memrchr.c (__ptr_t): Likewise.
80696         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80697         Include <string.h> unconditionally.
80698         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80699         * lib/memchr.c: Include <stdlib.h> unconditionally.
80700         * lib/memchr.c (LONG_MAX): Remove.
80701         * lib/memrchr.c (LONG_MAX): Likewise.
80702         * lib/memchr.c (__memchr): Define via a prototype.
80703         * lib/memrchr.c (__memrchr): Likewise.
80704         * lib/memcmp.c (__P): Remove, and remove all uses.
80705         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80706         Remove forward decls; no longer needed.
80707         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80708         Use types required by C89 in prototype.
80709
80710         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80711         * lib/savedir.c: Likewise.
80712         * lib/mkdir.c (free): Remove decl.
80713         * lib/rmdir.c (rmdir): Define with a prototype.
80714         * lib/savedir.c: Include savedir.h first, to test interface.
80715
80716         * lib/mktime.c (STDC_HEADERS): Remove.
80717         Include <stdlib.h>, <string.h> unconditionally.
80718
80719         * lib/modechange.c: Include <stdlib.h> unconditionally.
80720         (malloc): Remove decl.
80721
80722         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80723         (free): Remove decl.
80724
80725         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80726         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80727         (This type really should be intptr_t, but that's a C99ism.)
80728         (_obstack_memcpy): Remove: all uses changed to memcpy.
80729         Include <string.h> unconditionally.
80730         (struct obstack): Assume __STDC__ for types of members
80731         chunkfun, freefun, extra_arg.
80732         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80733         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80734         obstack_begin, obstack_specify_allocation,
80735         obstack_specify_allocation_with_arg, obstack_chunkfun,
80736         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80737         Remove unprototyped decls and the macros that use them.
80738         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80739         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80740         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80741         (defined __STDC__ && __STDC__)]:
80742         Remove nonprototyped code.
80743         Include <stdlib.h> unconditionally.
80744         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80745         _obstack_allocated_p, _obstack_free, obstack_free,
80746         _obstack_memory_used, print_and_abort):
80747         Define using prototypes.
80748         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80749         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80750         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80751         obstack_next_free, obstack_object_size, obstack_room) [0]:
80752         Remove unused, unprototyped code.
80753
80754         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80755
80756         * lib/physmem.c (physmem_total, physmem_available, main): Define
80757         with prototypes.
80758
80759         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80760         (main): Define with a prototype.
80761
80762         * lib/posixver.c (getenv): Remove decl.
80763
80764         * lib/putenv.c (malloc): Returns void *, not char *.
80765         Include <string.h> unconditionally.
80766         (strchr, memcpy, NULL): Do not define.
80767
80768         * lib/readtokens.c: Include readtokens.h first, to test interface.
80769         Include <stdlib.h>, <string.h> unconditionally.
80770         (init_tokenbuffer): Define with a prototype.
80771
80772         * lib/regex.c (PARAMS): Remove.  All uses removed.
80773         All uses of _RE_ARGS removed, too.
80774         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80775         unconditionally.
80776         (bzero): Assume memset exists.
80777         (memcmp, memcpy, NULL): Remove.
80778         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80779         char, or assignments to local vars of type signed char.
80780         (init_syntax_once, PREFIX(extract_number_and_incr),
80781         PREFIX(print_partial_compiled_pattern),
80782         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80783         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80784         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80785         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80786         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80787         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80788         wcs_compile_range, byte_compile_range, truncate_wchar,
80789         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80790         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80791         count_mbs_length, wcs_re_match_2_internal,
80792         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80793         PREFIX(alt_match_null_string_p),
80794         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80795         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80796         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80797         now-unnecessary declaration, if any.
80798         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80799         regcomp, regexec):
80800         Remove now-unnecessary casts among pointer types.
80801         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80802
80803         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80804         (free): Remove decl.
80805
80806         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80807
80808         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80809         (free): Remove decl.
80810
80811         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80812         * lib/xgetcwd.c: Likewise.
80813
80814         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80815         (free): Remove decl.
80816
80817         * lib/strchrnul.c (strchrnul): Define with a prototype.
80818         Fix bug: c_in was not converted to char before searching.
80819
80820         The following changes are not K&R related:
80821
80822         * lib/group-member.h: Include <sys/types.h>, so that this file is
80823         self-contained.
80824         * lib/makepath.h: Likewise.
80825
80826         * lib/getusershell.c (readname, default_index, line_size, readname):
80827         Use size_t, not int, for sizes.
80828         (readname): If the size overflows, report an error instead of
80829         looping forever.
80830
80831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80832
80833         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80834         libc.
80835
80836 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80837
80838         * README: New section: portability guidelines.
80839
80840 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80841
80842         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80843         C89 spec.
80844
80845 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80846
80847         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80848
80849 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80850
80851         Assume C89 or better; remove K&R cruft.
80852         A few of these changes were first proposed by Derek Robert Price
80853         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80854
80855         * lib/addext.c: Include <string.h> unconditionally.
80856         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80857         Don't declare getenv or malloc.
80858
80859         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80860         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80861         (NULL): Remove.
80862         (find_stack_direction, alloca): Use prototypes.
80863
80864         * lib/atexit.c (atexit): Define using a prototype.
80865
80866         * lib/basename.c, dirname.c, stripslash.c:
80867         Include <string.h> unconditionally.
80868
80869         * lib/bcopy.c: Include <stddef.h>.
80870         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80871
80872         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80873
80874         * lib/error.h (error, error_at_line, error_print_progname)
80875         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80876         * lib/error.c: Include error.h first, to check interface.
80877         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80878         (VA_START): Remove; all uses changeed to va_start.
80879         (exit, strerror): Remove decls.
80880         (error_print_progname): Prototype uncondionally.
80881         Don't include <errno.h>; no longer needed.
80882         (private_strerror): Remove.
80883         (error_tail): Always define.
80884         (error, error_at_line): Assume C89 or better; always use prototypes.
80885         * lib/fatal.c: Include "fatal.h" first, to test interface.
80886         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80887         (VA_START): Remove; all uses changed to va_start.
80888         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80889         this case.
80890         (exit): Remove decl.
80891         (fatal): Prototype unconditionally.  Assume va_start works.
80892         Abort at end, to pacify gcc.
80893
80894         * lib/euidaccess.c (main): Define with a prototype.
80895
80896         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80897
80898         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80899
80900         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80901         prototypes.
80902         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80903         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80904         (getenv): Remove decl.
80905         (fnmatch): Define using a prototype.
80906         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80907         (FCT): Define using a prototype.
80908
80909         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80910
80911         * lib/gethostname.c: Include <stddef.h>.
80912         (gethostname): Define with prototype.  Length is size_t, not int.
80913
80914 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80915
80916         Assume C89 or better; remove K&R cruft.
80917         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80918         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80919         string.h, getenv, malloc.
80920         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80921         headers.
80922         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80923         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80924         do not check for strerror.
80925         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80926         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80927         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80928         do not check for doprnt or vprintf.
80929         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80930         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80931
80932 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80933
80934         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80935         getversion.c should have been removed then, but was accidentally
80936         preserved.
80937
80938         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80939         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80940
80941 2003-09-08  Karl Berry  <karl@gnu.org>
80942
80943         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80944                 config, forget about prep.
80945
80946         * config/depcomp, missing: update from automake.
80947
80948 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80949
80950         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80952
80953 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80954
80955         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80956         copy_tm_result.  Bug reported by Simon Josefsson in
80957         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80958
80959 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80960
80961         * m4/time_r.m4: New file.
80962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80964         is. Check for timegm declaration.
80965         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80966         Do not check for gmtime_r.
80967         Replace mktime if __mktime_internal does not exist and if mktime
80968         hasn't been replaced already.
80969
80970 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80971
80972         * lib/time_r.c, lib/time_r.h: New files.
80973
80974         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80975         __localtime_r.
80976         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80977         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80978
80979         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80980         __gmtime_r.
80981         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80982         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80983         Include <time_r.h>.
80984
80985         * lib/timegm.c: Switch to glibc implementation, with the following
80986         changes:
80987         [defined HAVE_CONFIG_H]: Include <config.h>.
80988         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80989         (__mktime_internal) [!defined _LIBC]: New decl.
80990         (__gmtime_r) [!defined _LIBC]: New macro and function.
80991         (timegm): Use a prototype, since gnulib assumes C89.
80992         Do not bother declaring tmp to be const, as it's not really usefu.
80993         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80994         (timegm): Declare only if HAVE_DECL_TIMEGM.
80995
80996 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80997
80998         * MODULES.html.sh (func_all_modules): Add time_r.
80999         * modules/time_r: New file.
81000         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81001         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81002
81003 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81004
81005         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81006         Bug reported by Lute Kamstra in
81007         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81008
81009         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81010         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81011         course with correspondingly smaller numbers for tomorrow and
81012         yesterday.  From Tadayoshi Funaba.  Originally installed into
81013         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81014         coreutils merge?).
81015
81016 2003-08-31  Simon Josefsson  <jas@extundo.com>
81017
81018         * modules/timegm: New file.
81019         * MODULES.html.sh (func_all_modules): Add timegm.
81020
81021 2003-08-31  Simon Josefsson  <jas@extundo.com>
81022
81023         * m4/timegm.m4: New file.
81024
81025 2003-08-31  Simon Josefsson  <jas@extundo.com>
81026
81027         * lib/timegm.h: New file.
81028         * lib/timegm.c: New file.  Based on
81029         wget-1.8.2/src/http.c:mktime_from_utc.
81030
81031 2003-08-31  Karl Berry  <karl@gnu.org>
81032
81033         * lib/argp.h: update from libc.
81034
81035 2003-08-28  Bruno Haible  <bruno@clisp.org>
81036
81037         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81038         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81039         followed by '#define fnmatch fnmatch_posix' gives an error.
81040
81041 2003-08-28  Bruno Haible  <bruno@clisp.org>
81042
81043         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81044         warning on QNX, which defines O_BINARY to 000000.
81045
81046 2003-08-27  Jim Meyering  <jim@meyering.net>
81047
81048         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81049         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81050         would fail after 32.  Reported by Danny Levinson.  Details here:
81051         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81052
81053 2003-08-24  Bruno Haible  <bruno@clisp.org>
81054
81055         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81056         MSVC7 <stdio.h> is included later.
81057
81058 2003-08-22  Simon Josefsson  <jas@extundo.com>
81059
81060         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81061
81062 2003-08-20  Karl Berry  <karl@gnu.org>
81063
81064         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81065
81066 2003-08-20  Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/progname: New file.
81069         * MODULES.html.sh (func_all_modules): Add progname.
81070
81071 2003-08-20  Bruno Haible  <bruno@clisp.org>
81072
81073         * lib/progname.h: New file, from GNU gettext.
81074         * lib/progname.c: New file, from GNU gettext.
81075         * lib/progreloc.c: New file, from GNU gettext.
81076
81077 2003-08-19  Jim Meyering  <jim@meyering.net>
81078
81079         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81080         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81081
81082 2003-08-19  Bruno Haible  <bruno@clisp.org>
81083
81084         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81085         more.
81086
81087 2003-08-19  Bruno Haible  <bruno@clisp.org>
81088
81089         * lib/xstrdup.c: Assume <string.h> exists.
81090
81091 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81092
81093         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81094         in makefile rules.
81095
81096 2003-08-18  Jim Meyering  <jim@meyering.net>
81097
81098         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81099         * m4/lib-ld.m4: Likewise.
81100
81101 2003-08-18  Jim Meyering  <jim@meyering.net>
81102
81103         * lib/setenv.h: Indent nested cpp directive.
81104         * lib/vasnprintf.c: Remove trailing blanks.
81105
81106 2003-08-17  Simon Josefsson  <jas@extundo.com>
81107
81108         * modules/xstrndup: New file.
81109         * MODULES.html.sh (func_all_modules): Add xstrndup.
81110
81111 2003-08-17  Simon Josefsson  <jas@extundo.com>
81112
81113         * modules/argp: Fix autoconf macro name. Add more dependencies.
81114
81115 2003-08-17  Simon Josefsson  <jas@extundo.com>
81116
81117         * m4/xstrndup.m4: New file.
81118
81119 2003-08-17  Simon Josefsson  <jas@extundo.com>
81120
81121         * m4/argp.m4: New file.
81122
81123 2003-08-17  Simon Josefsson  <jas@extundo.com>
81124             Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/xstrndup.h: New file.
81127         * lib/xstrndup.c: New file.
81128
81129 2003-08-17  Bruno Haible  <bruno@clisp.org>
81130
81131         * modules/strndup (Files, Include): Add lib/strndup.h.
81132
81133 2003-08-17  Bruno Haible  <bruno@clisp.org>
81134
81135         * modules/euidaccess (Files): Add lib/euidaccess.h.
81136
81137 2003-08-17  Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/strndup.h: New file.
81140
81141 2003-08-17  Bruno Haible  <bruno@clisp.org>
81142
81143         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81144         like AC_GNU_SOURCE.
81145         * modules/extensions (configure.ac): Comment out the invocation of
81146         gl_USE_SYSTEM_EXTENSIONS.
81147
81148 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81149
81150         Merges from coreutils, etc.
81151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81152         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81153         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81154         fixing a typo.
81155         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81156         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81157
81158 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81159
81160         Document merge from coreutils.
81161         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81162         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81163         * modules/utime: Add m4/utimes-null.m4.
81164
81165 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81166
81167         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81168         space, undoing this 2003-08-12 change:
81169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81170
81171 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81172
81173         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81174         strtoul.c from libc, undoing this 2003-08-12 change:
81175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81176
81177 2003-08-16  Jim Meyering  <jim@meyering.net>
81178
81179         Merges from coreutils.
81180         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81181         prefix.  Adjust cache variables similarly.  Create 500 rather than
81182         just 300 files, to exercise bug on Darwin6.5, too.
81183         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81184         $missing_dir.
81185         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81186         AM_SYS_POSIX_TERMIOS.
81187         Reported by mkc@mathdogs.com.
81188         Also change use of $am_cv_sys_posix_termios
81189         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81190         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81191         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81192         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81193         in /proc/mounts until it finds one with matching device number.  This
81194         is unnecessary when the FILE argument *is* a mount point.  No stat call
81195         is necessary in that case.  So, disable the statvfs-testing code on
81196         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81197         as RedHat bug# 84846.
81198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81199         to 1MB, so as not to render systems with no stack size limit (e.g.,
81200         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81201         Include <unistd.h>.  On some systems,
81202         it is required for the definition of _SC_PAGESIZE.
81203
81204 2003-08-16  Jim Meyering  <jim@meyering.net>
81205
81206         Merge from coreutils.
81207         * lib/xstrtoimax.c: #else #if -> #elif.
81208         * lib/xstrtoumax.c: Likewise.
81209
81210 2003-08-16  Jim Meyering  <jim@meyering.net>
81211
81212         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81213         * m4/utimes.m4: Removed.
81214         * m4/utimes-null.m4: Renamed from utimes.m4.
81215
81216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81217         to 1MB, so as not to render systems with no stack size limit (e.g.,
81218         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81219         Include <unistd.h>.  On some systems,
81220         it is required for the definition of _SC_PAGESIZE.
81221
81222 2003-08-16  Jim Meyering  <jim@meyering.net>
81223         and Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         Merges from coreutils, etc.
81226
81227         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81228         using the latest version from cvs.  This avoids problems with #line
81229         directives using a vendor (Sun) compiler.
81230         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81231         Don't set GETGROUPS_LIB here; now it's
81232         done via getgroups.m4's wrapper function.
81233         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81234         rather than just in sh-util/configure.in, so that the
81235         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81236         same.
81237         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81238         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81239         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81240         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81241         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81242         Remove code that is now done by the newly-required macros.
81243         Append $(EXEEXT) to DF_PROG.
81244         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81245         Do not invoke or require the following here,
81246         since prereq.m4 or some gnulib .m4 now does this for us:
81247         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81248         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81249         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81250         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81251         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81252         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81253         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81254         AC_FUNC_OBSTACK.
81255         Do not replace the following functions, as this is now the job
81256         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81257         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81258         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81259         atexit getpass, strdup, getpagesize.
81260         Replace 'raise'.
81261         Do not check for the following functions, as this is now the job
81262         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81263         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81264         setregid.
81265         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81266         Check for sys/sysctl.h.
81267         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81268         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81269         of checking for ssize_t ourselves.
81270
81271         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81272         Require every macro that gnulib/modules/* suggests for us.
81273         (jm_PREREQ_ADDEXT): New macro.
81274         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81275         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81276
81277         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81278         (gl_PHYSMEM): Use it.
81279         Also check for `table' function.
81280         Check for new headers and functions.
81281         Add check for sys/sysmp.h.
81282         With suggestions from Kaveh Ghazi.
81283         Ignore headers that are present but cannot be compiled.  This
81284         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81285         C 5.4.
81286
81287 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81288
81289         Document merge from coreutils.
81290         * modules/userspec: Depend on posixver.
81291         * modules/strftime: Depend on tzset.
81292
81293 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81294
81295         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81296         rather than tab, after '#' in shell-script copyright notices.
81297         Suggested by Bruno Haible.
81298
81299 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81300
81301         * config/srclist-update: Use three spaces, rather than tab, after '#'
81302         in shell-script copyright notices.  Suggested by Bruno Haible.
81303         Remove unnecessary parenthesization in regular expression.
81304
81305 2003-08-15  Jim Meyering  <jim@meyering.net>
81306
81307         Merge from coreutils.
81308         * lib/xgethostname.c: Include <stdlib.h>.
81309         (xghostname): Don't exit for anything other than memory-related
81310         failure; just return NULL.
81311         * lib/userspec.c: Include "posixver.h".
81312         (parse_user_spec): Accept `.' as a separator only
81313         in pre-POSIX-200112 mode.
81314         * lib/strtoimax.c: Use #elif rather than #else #if.
81315         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81316         Remove function, now that we can rely on a working tzset function.
81317         [!_LIBC]: Ensure that the required autoconf test has been run.
81318         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81319         Use underlying_strftime for %r.
81320         * lib/sha.c: Merge in some clean-up and optimization changes from
81321         glibc.
81322         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81323         Ensure that it is a multiple of 64.
81324         Rearrange loop exit tests so as to avoid performing an
81325         additional fread after encountering an error or EOF.
81326         * lib/realloc.c: Update copyright date.
81327
81328 2003-08-15  Jim Meyering  <jim@meyering.net>
81329         and Paul Eggert  <eggert@twinsun.com>
81330
81331         Merge from coreutils.
81332         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81333         member but strut utmpx does not.  Needed for AIX 4.3.3.
81334         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81335
81336 2003-08-15  Jim Meyering  <jim@meyering.net>
81337         and Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         Merges from coreutils, etc.
81340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81341         Require gl_FUNC_TZSET_CLOBBER.
81342         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81343         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81344         members.
81345
81346 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81347
81348         Help the merge from coreutils.
81349         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81350         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81351         * m4/tzset.m4: Use it too.
81352
81353 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81354
81355         * modules/tzset: New file.
81356
81357 2003-08-14  Jim Meyering  <jim@meyering.net>
81358
81359         Merges from coreutils.
81360         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81361         variable names, rather than @FNMATCH_H@.
81362         * modules/alloca: Likewise for $(ALLOCA_H).
81363
81364         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81365         the three copies of the literal target, `fnmatch.h'.
81366         * modules/alloca (alloca.h): Likewise.
81367
81368 2003-08-14  Jim Meyering  <jim@meyering.net>
81369
81370         Merge from coreutils.
81371         * m4/tzset.m4: New file.
81372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81373         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81374         otherwise, AIX 5.1 systems would end up using the latter.
81375         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81376         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81377         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81378         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81379
81380 2003-08-14  Jim Meyering  <jim@meyering.net>
81381
81382         Merge from coreutils.
81383         * lib/obstack.h: Whitespace changes.
81384         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81385         and xcalloc return values.
81386         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81387         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81388         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81389         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81390         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81391         error from mntctl.
81392         Use mntctl's return value to drive the entry-processing loop, since
81393         we can't rely on the value of the vmt_length member in the last
81394         entry.  On some systems doing so could result in exhausting
81395         virtual memory.  Based in part on a patch from Mike Jetzer.
81396
81397 2003-08-14  Jim Meyering  <jim@meyering.net>
81398         and Paul Eggert  <eggert@twinsun.com>
81399
81400         Merges from coreutils, plus other fixes.
81401         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81402         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81403         for credits and details.  Thanks to Kaveh Ghazi for helping
81404         to keep these files in sync.
81405         (ARRAY_SIZE): Define it.
81406         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81407         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81408         (memcasecmp): Don't assume size_t fits in unsigned int.
81409         Remove casts and duplicate code.
81410         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81411         (memcpy): Remove definition.
81412         Merge in some clean-up and optimization changes from glibc.
81413         [BLOCKSIZE]: Move definition to top of file.
81414         Ensure that it is a multiple of 64.
81415         Rearrange loop exit tests so as to avoid performing an
81416         additional fread after encountering an error or EOF.
81417         * lib/md5.h (md5_uintptr): Define.
81418         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81419         return to the initial working directory.  Preserve errno
81420         for caller.
81421         * lib/idcache.c: Include "xalloc.h".
81422         (xmalloc, xrealloc): Remove decls.
81423         (getuser): Remove casts no longer required in C89.
81424         * lib/human.c: Include stdio.h, for sprintf.
81425         * lib/group-member.c: Include "xalloc.h".
81426         (xmalloc, xrealloc): Remove decls.
81427         (get_group_info): Remove casts no longer required in C89.
81428         * lib/getusershell.c (readname): Remove casts no longer required in
81429         C89.
81430         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81431         * lib/getline.c: Whitespace fix, from coreutils.
81432
81433 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81434
81435         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81436         Check for isascii.
81437
81438         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81439         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81440         Undo previous (whitespace-only) change.
81441
81442 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81443
81444         * lib/exclude.c: Include <ctype.h>
81445         (IN_CTYPE_DOMAIN): New macro.
81446         (is_space): New fn.
81447         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81448         and empty lines.
81449
81450         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81451         Undo previous (whitespace-only) change.
81452
81453 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81454
81455         * config/srclist-update: Change update back to the old behavior,
81456         leaving whitespace alone.  Use one 'sed' command rather than a
81457         pipeline.
81458         (fixlicense): Now a variable, not a function.
81459         (remove_trailing_blanks): Remove.
81460         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81461         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81462         Undo previous (whitespace-only) change.
81463
81464 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81465
81466         Merge from coreutils.
81467         * modules/euidaccess: Add lib_SOURCES, include for new
81468         file euidaccess.h
81469
81470 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81471
81472         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81473         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81474         Normalize leading white space and remove trailing white space.
81475
81476         Merge from coreutils
81477         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81478
81479         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81480         0.12.1.  These files are now being upgraded automatically by
81481         ../config/srclist-update.
81482
81483 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81484
81485         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81486         Normalize leading white space and remove trailing white space.
81487         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81488         notice, as per ../config/srclist-update.
81489
81490         Merge from coreutils.
81491         * lib/euidaccess.h: New file.
81492         * lib/euidaccess.c: Include it.
81493         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81494         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81495         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81496
81497 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81498
81499         * config/srclist-update: Add copyright notice.
81500         (remove_id_lines, remove_trailing_blanks): New constants.
81501         (fixfile): Use them to normalize spacing a bit in copied files.
81502         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81503         Normalize leading white space and remove trailing white space.
81504
81505         * config/texinfo.tex: Sync with texinfo.
81506
81507         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81508         strtoul.c from libc, to merge coreutils whitespace changes.
81509
81510         * config/srclist.txt: Get the following m4 files from gettext:
81511         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81512         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81513         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81514         wint_t.m4.
81515
81516 2003-08-12  Karl Berry  <karl@gnu.org>
81517
81518         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81519         been made.
81520
81521 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81522
81523         * modules/gnu-source, m4/gnu-source.m4:
81524         Remove; we're assuming Autoconf 2.54 or later now.
81525         Suggested by Bruno Haible.
81526         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81527
81528 2003-08-11  Bruno Haible  <bruno@clisp.org>
81529
81530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81531
81532 2003-08-11  Bruno Haible  <bruno@clisp.org>
81533
81534         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81535         (vasnprintf): Use it instead of wcslen.
81536
81537 2003-08-11  Bruno Haible  <bruno@clisp.org>
81538
81539         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81540         value to ensure that _Bool promotes to int. Use #define for _Bool when
81541         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81542
81543 2003-08-10  Karl Berry  <karl@gnu.org>
81544
81545         * lib/regex.h: update from libc (whitespace fix).
81546
81547 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81548
81549         Merge some files from coreutils.  These changes were
81550         originally made by Jim Meyering.
81551         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81552         many older Unixes require this.
81553         * lib/alloca.c (alloca): Remove cast to argument of free;
81554         no longer needed in C89.
81555         * lib/alloca_.h, regex.h: Fix white space to match
81556         what GNU indent does.
81557
81558 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81559
81560         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81561         apparently Emacs's Unicode mode got confused before my 2003-08-05
81562         checkin.
81563
81564 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81565
81566         * m4/extensions.m4: New file.
81567         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81568         Require gl_USE_SYSTEM_EXTENSIONS.
81569         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81570         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81571
81572 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81573
81574         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81575         * modules/extensions, modules/gnu-source: New files.
81576         * modules/timespec, modules/unlocked-io: Depend on extensions.
81577
81578 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81579
81580         * modules/restrict: New file.
81581         * MODULES.html.sh (func_all_modules): Add restrict.
81582         * modules/regex: Depend on restrict.
81583
81584 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81585
81586         * m4/restrict.m4: New file.
81587         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81588
81589 2003-08-07  Bruno Haible  <bruno@clisp.org>
81590
81591         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81592         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81593
81594 2003-08-07  Bruno Haible  <bruno@clisp.org>
81595
81596         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81597         makes the module 'getndelim2' compatible with the module 'getline'.
81598
81599 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81600
81601         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81602         byte with "\201" to avoid glitches when editing that source file
81603         with multi-gnome-terminal.
81604
81605 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81606
81607         * lib/bumpalloc.h: Remove.
81608
81609 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81610
81611         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81612         * modules/bumpalloc: Remove.
81613
81614 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81615
81616         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81617         GNU coding style.
81618
81619         Merge from coreutils.
81620         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81621         1. From glibc.
81622         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81623         from Karl Berry, implemented by Jim Meyering.
81624         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81625         from Dmitry V. Levin.
81626         Remove anachronistic cast of xrealloc.
81627         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81628         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81629         type. Otherwise, it wouldn't compile with at least /bin/cc on
81630         ymp-cray-unicos9.0.2.X.
81631         Combine two mostly-identical uses of alloca into one.
81632         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81633
81634 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81635
81636         [From Emacs.]
81637
81638         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81639         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81640         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81641         obsolete NLIST_NAME_UNION.
81642         [__GNU__]: Undef BSD and FSCALE.
81643         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81644
81645 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81646
81647         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81648         an enum type, so that it's guaranteed to promote to int.  See:
81649         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81650
81651 2003-08-03  Karl Berry  <karl@gnu.org>
81652
81653         * config/depcomp: update from automake.
81654
81655 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81656
81657         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81658         (strerror): Don't assume that a printable int fits in 14 bytes.
81659
81660 2003-07-31  Bruno Haible  <bruno@clisp.org>
81661
81662         * modules/getpass-gnu: New file.
81663         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81664
81665 2003-07-31  Bruno Haible  <bruno@clisp.org>
81666
81667         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81668
81669 2003-07-24  Karl Berry  <karl@gnu.org>
81670
81671         * config/missing: update from automake.
81672
81673 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81674             Bruno Haible  <bruno@clisp.org>
81675
81676         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81677         * lib/getline.c (getline, getdelim): Likewise.
81678         Remove _GNU_SOURCE define; now it's defined in config.h through
81679         m4/getline.m4.
81680
81681 2003-07-23  Karl Berry  <karl@gnu.org>
81682
81683         * config/config.sub: update from prep.
81684
81685 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81686
81687         * modules/xalloc (Depends-on): Add exitfail.
81688         * modules/xmemcoll: Likewise.
81689
81690 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81691
81692         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81693         over-parenthesization in macros.
81694
81695         Sync with coreutils.
81696
81697         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81698         required by C99.
81699
81700         Use `exit_failure' for xalloc and xmemcoll instead of their own
81701         private exit-failure variables.
81702         * lib/xalloc.h (xalloc_exit_failure): Remove.
81703         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81704         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81705         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81706         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81707         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81708
81709 2003-07-20  Jim Meyering  <jim@meyering.net>
81710
81711         * modules/closeout (Depends-on): Add exitfail.
81712         Suggestion from Bruno Haible.
81713
81714 2003-07-19  Karl Berry  <karl@gnu.org>
81715
81716         * config/config.sub: update from prep.
81717
81718 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81719
81720         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81721         Remove.
81722         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81723         to test that it can stand by itself.  Include "exitfail.h".
81724         Clients should set exit_failure instead.
81725         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81726
81727 2003-07-18  Bruno Haible  <bruno@clisp.org>
81728
81729         * modules/getndelim2: New file.
81730         * modules/getline: Share files with module getndelim2.
81731         * modules/getnline: Depend on getndelim2 instead of sharing files with
81732         it. Add getnline.c to lib_SOURCES.
81733         * MODULES.html.sh (func_all_modules): Add getndelim2.
81734
81735 2003-07-18  Bruno Haible  <bruno@clisp.org>
81736
81737         * m4/getndelim2.m4: New file.
81738         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81739         invoke gl_PREREQ_GETNDELIM2.
81740         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81741         gl_PREREQ_GETNDELIM2.
81742         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81743         gl_GETNDELIM2.
81744
81745 2003-07-18  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/getndelim2.h: New file.
81748         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81749         getndelim2.h.
81750         (getndelim2): Make non-static. Change return type to ssize_t.
81751         * lib/getline.h: Change argument names.
81752         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81753         * lib/getnline.c: Include getndelim2.h.
81754
81755 2003-07-18  Andreas Schwab  <schwab@suse.de>
81756
81757         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81758
81759 2003-07-17  Karl Berry  <karl@gnu.org>
81760
81761         * config/config.sub: update from prep.
81762
81763 2003-07-17  Bruno Haible  <bruno@clisp.org>
81764
81765         * modules/getnline: New file.
81766         * modules/getline: Add lib/getndelim2.c to source file list.
81767         * MODULES.html.sh (func_all_modules): Add getnline.
81768
81769 2003-07-17  Bruno Haible  <bruno@clisp.org>
81770
81771         * m4/getnline.m4: New file.
81772
81773 2003-07-17  Bruno Haible  <bruno@clisp.org>
81774
81775         * m4/Makefile.am.in: Remove file.
81776         * m4/Makefile.am: Remove file.
81777         * m4/Makefile.in: Remove file.
81778
81779 2003-07-17  Bruno Haible  <bruno@clisp.org>
81780
81781         * lib/getnline.h: New file.
81782         * lib/getnline.c: New file.
81783         * lib/getndelim2.c: New file, extracted from getline.c.
81784         (getndelim2): Renamed from getdelim2, with added nmax argument.
81785         * lib/getline.c: Include getndelim2.c.
81786         (getdelim2): Moved out to getndelim2.c.
81787         (getline, getdelim): Update.
81788
81789 2003-07-17  Bruno Haible  <bruno@clisp.org>
81790
81791         * lib/Makefile.am: Remove file.
81792         * lib/Makefile.in: Remove file.
81793
81794 2003-07-17  Bruno Haible  <bruno@clisp.org>
81795
81796         * configure.in: Remove file.
81797         * Makefile.in: Remove file.
81798
81799 2003-07-17  Bruno Haible  <bruno@clisp.org>
81800
81801         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81802
81803 2003-07-16  Karl Berry  <karl@gnu.org>
81804
81805         * config/srclist-update: was running fixlicense twice, which caused
81806                 texinfo.tex to be nullified for some reason.  Simplify,
81807                 $gplsrc is no longer needed as far as I can see?
81808
81809 2003-07-16  Jim Meyering  <jim@meyering.net>
81810
81811         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81812
81813 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81814
81815         * config/srclist.txt: Get the following files from gettext-runtime/intl
81816         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81817         ref-del.sin.  From Bruno Haible.
81818         * config/srclist-update (fixfile): Change grep pattern again, since the
81819         previous fix didn't work (there was another trailing $).  Use
81820         '[$]' to escape the $s.
81821
81822 2003-07-15  Karl Berry  <karl@gnu.org>
81823
81824         * lib/vasnprintf.c: update from gettext.
81825
81826 2003-07-15  Karl Berry  <karl@gnu.org>
81827
81828         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81829         gets expanded when surrounded by '$'.
81830
81831 2003-07-15  Jim Meyering  <jim@meyering.net>
81832
81833         * modules/save-cwd: Don't depend on error.  From Derek Price.
81834
81835 2003-07-15  Jim Meyering  <jim@meyering.net>
81836
81837         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81838
81839 2003-07-14  Simon Josefsson  <jas@extundo.com>
81840
81841         * modules/mempcpy: New file.
81842         * MODULES.html.sh (func_all_modules): Add mempcpy.
81843
81844 2003-07-14  Simon Josefsson  <jas@extundo.com>
81845
81846         * m4/mempcpy.m4: New file.
81847
81848 2003-07-14  Simon Josefsson  <jas@extundo.com>
81849
81850         * lib/mempcpy.h: New file.
81851         * lib/mempcpy.c: New file.
81852
81853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81854
81855         * modules/getdate, modules/posixtm: Depend on mktime.
81856
81857 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81858
81859         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81860         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81861         unicodeio.c, unicodeio.h, unlocked-io.h:
81862         Switch from LGPL to GPL.
81863
81864 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81865
81866         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81867         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81868         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81869         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81870         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81871         updated automatically by ../config/srclist-update.  This changes
81872         their license from LPGL to GPL.
81873
81874 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81875
81876         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81877         assumed to refer to the root of the most recent stable gettext version.
81878         * config/srclistvars.sh: Add defaults for eggert.
81879         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81880         Match "This program" as well as "The program".  This is needed
81881         for gettext.
81882
81883 2003-07-14  Jim Meyering  <jim@meyering.net>
81884
81885         Don't emit diagnostics.  Let callers do that.
81886         * lib/save-cwd.c: Don't include "error.h".
81887         (save_cwd): Don't call error.  Ensure that errno is valid
81888         when returning nonzero.
81889
81890         * lib/save-cwd.h (restore_cwd): Update prototype.
81891         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81892         Simplify.  Don't call error upon failure.  Let callers do that.
81893         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81894         when auditing is enabled.  But don't bother updating the #if.
81895
81896 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81897
81898         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81899         it breaks C++ compilation.
81900         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81901
81902 2003-07-10  Simon Josefsson  <jas@extundo.com>
81903
81904         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81905
81906 2003-07-10  Jim Meyering  <jim@meyering.net>
81907
81908         * m4/clock_time.m4: Remove trailing blank.
81909         * m4/intmax_t.m4: Likewise.
81910
81911 2003-07-10  Jim Meyering  <jim@meyering.net>
81912
81913         * lib/vasnprintf.c: Remove trailing blanks.
81914         Make cpp indentation consistent.
81915
81916 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81917
81918         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81919         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81920         Switch from LGPL to GPL.
81921
81922 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81923
81924         * config/srclist.txt: Sort sublists.  Add
81925         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81926         that differ from gnulib for one reason or another; we'd like this list
81927         to be smaller but for now let's document what we have.
81928
81929 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81930
81931         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81932         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81933         and sweeter "eval x=$x".
81934         * config/srclist.txt: Get lib/argp* from glibc.
81935
81936 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81937
81938         * lib/mktime.c: Fix some boundary cases and remove need for floating
81939         point.
81940
81941         Issue a compile-time diagnostic if time_t is floating point, or if
81942         two's complement arithmetic is not in effect, or if arithmetic
81943         right shift does not propagate the sign.  These assumptions were
81944         all in the original code but they weren't checked.
81945
81946         (TIME_T_MIDPOINT, verify): New macros.
81947         (__isleap): Remove; it has integer overflow problems.
81948         (leapyear): New function, without those problems.
81949         (ydhms_tm_diff): Remove; splitting into two parts.
81950         (ydhms_diff): New function, containing the arithmetic part of
81951         the old ydhms_tm_diff function.  Issue a compile-time
81952         diagnostic if we are not using C99 integer division.
81953         Avoid casts when possible.
81954         (guess_time_tm): New function, containing the checking part of
81955         the old ydhms_tm_diff function.  Return the new value, rather than
81956         the difference between it and the old.  Accept a new argument T
81957         so that *T specifies the old value.  Check for overflow in the result.
81958
81959         (__mktime_internal): Use a time_t offset, not a long int offset.
81960         This undoes the 2003-06-04 change, which is no longer needed now
81961         that we have better overflow checking.
81962         (localtime_offset): Likewise.
81963
81964         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81965         and long are 64-bit but int is only 32-bit.
81966         (ydhms_diff): Use long int to store year1 and yday1.
81967         Issue a compile-time diagnostic if long int is not wide enough.
81968
81969         (__mktime_internal): Use long int to store adjusted year and yday.
81970         Use plain C rather than preprocessor commands, if that doesn't
81971         affect efficiency.
81972         Check for overflow (and try to repair) after each probe
81973         rather than checking only at the very end.  This avoids some bugs
81974         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81975         does not equal GMT offset at maximum time).
81976         Use integer to check for overflow rather than floating point; this
81977         is more portable to non-IEEE hosts, and is a tad faster.
81978         When we detect that we are oscillating between two values,
81979         don't check whether tm_isdst has the requested value, since
81980         we already know the answer.  When tm_isdst has the wrong value,
81981         use a different heuristic to find the right one, based on the
81982         extreme values actually observed in practice in tz2003a,
81983         rather than the (overly optimistic) "previous 3 calendar quarters".
81984
81985         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81986         "T const" to accommodate glibc style.
81987         (check_result): Use less-confusing report format.  "long" -> "long int.
81988         (main): Likewise.
81989         Don't loop if the iteration overflows time_t.
81990         Allow a negative step in the iteration.
81991
81992 2003-07-06  Karl Berry  <karl@gnu.org>
81993
81994         * config/depcomp: update from automake.
81995         * config/config.sub: update from prep.
81996
81997 2003-07-03  Karl Berry  <karl@gnu.org>
81998
81999         * config/config.guess: update from prep.
82000
82001 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82002
82003         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82004         xreadlink.c now includes it unconditionally.
82005
82006 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82007
82008         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82009         having it depend on HAVE_SYS_TYPES_H.
82010
82011 2003-07-01  Bruno Haible  <bruno@clisp.org>
82012
82013         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82014         <sys/types.h> should be sufficient.
82015         Reported by Paul Eggert.
82016
82017 2003-06-26  Karl Berry  <karl@gnu.org>
82018
82019         * config/depcomp: update from automake.
82020
82021 2003-06-26  Bruno Haible  <bruno@clisp.org>
82022
82023         * modules/human: Depend on module stdbool.
82024
82025 2003-06-25  Bruno Haible  <bruno@clisp.org>
82026
82027         * modules/readlink: New file.
82028         * modules/xreadlink: Depend on it.
82029         * MODULES.html.sh (func_all_modules): Add readlink.
82030
82031 2003-06-25  Bruno Haible  <bruno@clisp.org>
82032
82033         * m4/readlink.m4: New file.
82034
82035 2003-06-25  Bruno Haible  <bruno@clisp.org>
82036
82037         * lib/readlink.c: New file.
82038
82039 2003-06-22  Karl Berry  <karl@gnu.org>
82040
82041         * config/srclist.txt: update mkinstalldirs from automake.
82042         * config/mkinstalldirs: update.
82043
82044 2003-06-22  Bruno Haible  <bruno@clisp.org>
82045
82046         Portability to mingw32.
82047         * m4/ssize_t.m4: New file, from GNU gettext.
82048         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82049         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82050
82051 2003-06-22  Bruno Haible  <bruno@clisp.org>
82052
82053         * modules/safe-read: Add m4/ssize_t.m4.
82054         * modules/xreadlink: Add m4/ssize_t.m4.
82055
82056 2003-06-20  Bruno Haible  <bruno@clisp.org>
82057
82058         Assume C89, so PARAMS isn't needed.
82059         * lib/unicodeio.h (PARAMS): Remove.
82060         * lib/unicodeio.c: Don't use PARAMS.
82061
82062 2003-06-18  Karl Berry  <karl@gnu.org>
82063
82064         * config/config.{guess,sub}: update from prep.
82065
82066 2003-06-18  Jim Meyering  <jim@meyering.net>
82067
82068         Merge changes from coreutils.
82069         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82070         Remove explicit declarations of xmalloc and realloc.
82071         Include xalloc.h.
82072         (read_utmp): Remove anachronistic cast of xmalloc.
82073
82074 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82075
82076         Assume C89, so PARAMS isn't needed.
82077         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82078         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82079         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82080         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82081         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82082         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82083         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82084         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82085         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82086         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82087         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82088         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82089         no longer needed. Anyway, config.h should always be included before any
82090         other file.
82091
82092 2003-06-11  Simon Josefsson  <jas@extundo.com>
82093
82094         * modules/sysexits: New file.
82095         * MODULES.html.sh (func_all_modules): Add sysexits.
82096
82097 2003-06-11  Simon Josefsson  <jas@extundo.com>
82098
82099         * lib/sysexit_.h: New file.
82100
82101 2003-06-11  Derek Price  <derek@ximbiot.com>
82102
82103         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82104         necessary.
82105
82106 2003-06-11  Bruno Haible  <bruno@clisp.org>
82107
82108         * m4/sysexits.m4: New file.
82109
82110 2003-06-10  Simon Josefsson  <jas@extundo.com>
82111
82112         * lib/argp.h: New file, from glibc.
82113         * lib/argp-ba.c: New file, from glibc.
82114         * lib/argp-eexst.c: New file, from glibc.
82115         * lib/argp-fmtstream.c: New file, from glibc.
82116         * lib/argp-fmtstream.h: New file, from glibc.
82117         * lib/argp-fs-xinl.c: New file, from glibc.
82118         * lib/argp-help.c: New file, from glibc.
82119         * lib/argp-namefrob.h: New file, from glibc.
82120         * lib/argp-parse.c: New file, from glibc.
82121         * lib/argp-pv.c: New file, from glibc.
82122         * lib/argp-pvh.c: New file, from glibc.
82123         * lib/argp-xinl.c: New file, from glibc.
82124
82125 2003-06-10  Simon Josefsson  <jas@extundo.com>
82126
82127         * modules/strchrnul: New file.
82128
82129 2003-06-10  Simon Josefsson  <jas@extundo.com>
82130
82131         * modules/argp: New file.
82132
82133 2003-06-10  Simon Josefsson  <jas@extundo.com>
82134
82135         * m4/strchrnul.m4: New file.
82136
82137 2003-06-10  Simon Josefsson  <jas@extundo.com>
82138
82139         * lib/strchrnul.h: New file.
82140         * lib/strchrnul.c: New file.
82141
82142 2003-06-10  Bruno Haible  <bruno@clisp.org>
82143
82144         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82145
82146 2003-06-07  Karl Berry  <karl@gnu.org>
82147
82148         * config/config.{guess,sub}: update from prep.
82149
82150 2003-06-07  Jim Meyering  <jim@meyering.net>
82151
82152         * modules/strtod: Use $(...) notation, not @...@ for
82153         AC_REPLACE'd variables.
82154         * modules/localcharset: Likewise.
82155
82156 2003-06-07  Jim Meyering  <jim@meyering.net>
82157
82158         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82159         in place of my name in the copyright comment.
82160         Remove definition and uses of __P.
82161
82162         From coreutils.
82163         * lib/stat.c: Don't declare xmalloc explicitly.
82164         Instead, include "xalloc.h".
82165         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82166         xrealloc, and xcalloc return values.
82167         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82168         Improve comment.
82169         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82170
82171 2003-06-07  Bruno Haible  <bruno@clisp.org>
82172
82173         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82174         avoid AC_CONFIG_LINKS.
82175         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82176         fnmatch.h, to avoid AC_CONFIG_LINKS.
82177         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82178
82179 2003-06-07  Bruno Haible  <bruno@clisp.org>
82180
82181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82182         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82183         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82184         directory.
82185         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82186         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82187         directory.
82188
82189 2003-06-06  Jim Meyering  <jim@meyering.net>
82190
82191         Merge from coreutils.
82192         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82193         Consolidate declarations and initializations of *_base* locals.
82194
82195         Merge from coreutils.
82196         This avoids a core dump on systems without GNU putenv,
82197         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82198         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82199         (unsetenv): New static function, from GNU libc.
82200         (rpl_putenv): Use it.
82201
82202         * lib/modechange.c: Remove trailing blanks.
82203
82204         Merge from coreutils.
82205         * lib/fsusage.c: Remove declaration of statfs.
82206         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82207
82208         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82209
82210 2003-06-06  Jim Meyering  <jim@meyering.net>
82211
82212         * lib/stdbool_.h: Renamed from stdbool.h.in.
82213
82214 2003-06-06  Jim Meyering  <jim@meyering.net>
82215             Bruno Haible  <bruno@clisp.org>
82216
82217         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82218         Adjust Makefile.am snippet not to redirect directly to target.
82219         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82220
82221 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82222
82223         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82224         mismatch, look in future quarters as well as past.  This fixes a
82225         bug when processing fall-backwards gaps immediately after a long
82226         period of daylight-saving time.
82227
82228         * lib/mktime.c: Assume freestanding C89 or better.
82229         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82230         (__P): Remove; not used.
82231         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82232         (mktime, not_equal_tm, print_tm, check_result,
82233         main): Use prototypes.  Use const * where appropriate.
82234         (main): Fix typo in testing code that uncovered by above changes.
82235         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82236
82237 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82238
82239         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82240         locale.h, localeconv.  This merges changes from coreutils.
82241
82242         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82243         It can be removed after the next Autoconf is released.
82244         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82245         needed.
82246
82247 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82248
82249         * lib/mktime.c: Fix Debian bug 177940
82250         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82251         (localtime_offset): Now long int, not time_t, because we want it
82252         to be guaranteed to be signed.  All uses changed.
82253         (__mktime_internal): If overflow would occur when adding offset,
82254         don't add it.
82255
82256         Merge 'human' changes from coreutils.  Rewrite to support
82257         locale-specific notations like thousands separators.
82258         * lib/human.c: Simplify authorship notice.
82259         Include human.h immediately after config.h.
82260         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82261         <limits.h>: Do not include, since human.h does.
82262         (SIZE_MAX, UINTMAX_MAX): New macros.
82263         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82264         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82265         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82266         (power_letter): Renamed from suffixes.
82267         (generate_suffix_backwards): Remove.
82268         (adjust_value): Now takes int style (because of human.h changes)
82269         and long double value (for greater precision on some platforms).
82270         (group_number): New function.
82271         (human_readable): Use it.  Use integer options, not enum.
82272         Put the options before the sizes in the arg list.
82273         Support all the new options.
82274         The old human_readable function has been removed;
82275         use inttostr.h instead.
82276         (human_readable, default_block_size, humblock):
82277         Use uintmax_t, not int, for block sizes.
82278         (human_readable_inexact, block_size_types): Remove.
82279         (block_size_opts): New constant.
82280         (human_options): Renamed from human_block_size, with new signature
82281         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82282         * lib/human.h: Add copyright and authorship notice.
82283         Include <limits.h> and <stdbool.h> unconditionally.
82284         (PARAMS): Remove.  All uses removed.
82285         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82286         (enum human_inexact_style): Remove tag; now a nameless enum.
82287         (human_floor, human_ceiling, human_round_to_even): Now have
82288         values 2, 0, 1 rather than -1, 1, 0.
82289         (human_group_digits, human_suppress_point_zero, human_autoscale,
82290         human_base_1024, human_SI, human_B): New constants.
82291         (human_readable_inexact, human_block_size): Remove.
82292         (human_readable): Size args are now uintmax_t, not int.
82293         (human_options): New decl.
82294
82295         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82296         unnecessary now that we assume C89 or better.  This change
82297         imported from coreutils.
82298
82299         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82300         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82301         in the 2003-05-30 sync from glibc.
82302
82303         .h files should stand alone, but we shouldn't include <sys/types.h>
82304         if we can get away with just <stddef.h>.
82305
82306         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82307         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82308         rather than <sys/types.h>, as we merely need size_t.
82309         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82310         to get size_t.
82311         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82312         Include <stdio.h>, to get FILE.
82313         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82314         memcasecmp.h has included <stddef.h> and all we need is size_t.
82315         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82316         our interface, instead of including <sys/types.h>
82317
82318 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82319
82320         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82321         now, as glibc mktime is buggy on non-glibc systems.
82322
82323 2003-06-03  Karl Berry  <karl@gnu.org>
82324
82325         * config/config.sub: update from prep.
82326
82327 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82328
82329         [from coreutils]
82330         Fix some minor time-related bugs with POSIX time arguments.
82331         Some valid time stamps were being rejected (notably -1, and
82332         time stamps before 1900 on 64-bit hosts).  And some invalid
82333         time stamps were being accepted, e.g. September 31.
82334
82335         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82336         that we can return (time_t) -1 successfully.
82337         * lib/posixtm.c: Likewise.
82338         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82339         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82340         (t): Remove static var.
82341         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82342         of static var.  All uses changed.
82343         (year): Do not reject years before 1900; they can occur with
82344         64-bit time_t.
82345         (posix_time_parse): Do not check for out-of-range components;
82346         that is now the caller's responsibility, since our checks were
82347         only approximations.
82348         (posixtime): Use mktime to check for out-of-range components,
82349         since it knows them exactly.
82350         If mktime returns (time_t) -1, check whether an error actually occurred
82351         by invoking localtime on -1.
82352         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82353         posixtime failures better.
82354         Improve the test data (in comments only).
82355
82356 2003-06-02  Karl Berry  <karl@gnu.org>
82357
82358         * config/mkinstalldirs (version): new variable.
82359         (--version): new option.
82360         (usage): improve message.
82361
82362 2003-05-30  Karl Berry  <karl@gnu.org>
82363
82364         * lib/mktime.c: update from libc.
82365
82366 2003-05-30  Bruno Haible  <bruno@clisp.org>
82367
82368         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82369         * config/config.rpath: Upgrade to gettext-0.12.1.
82370
82371 2003-05-30  Bruno Haible  <bruno@clisp.org>
82372
82373         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82374         * m4/nls.m4: New file, from gettext-0.12.1.
82375         * m4/po.m4: New file, from gettext-0.12.1.
82376         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82377
82378 2003-05-30  Bruno Haible  <bruno@clisp.org>
82379
82380         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82381         * lib/localcharset.h: Likewise.
82382         * lib/localcharset.c: Likewise.
82383
82384 2003-05-29  Karl Berry  <karl@gnu.org>
82385
82386         * config/config.rpath: update from gettext.
82387
82388 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82389
82390         Assume the headers required for C89 freestanding compilers.
82391         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82392         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82393         * m4/human.m4 (gl_HUMAN): Likewise.
82394         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82395         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82396         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82397         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82398         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82399         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82400
82401 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82402
82403         Assume the headers required for C89 freestanding compilers.
82404         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82405         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82406         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82407         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82408         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82409         define, since <limits.h> is guaranteed to do that.
82410         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82411         * lib/exclude.c: Include <stdbool.h> unconditionally.
82412         * lib/tempname.c: Include <stddef.h> unconditionally.
82413         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82414         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82415         <stddef.h> does that.
82416         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82417         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82418         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82419         needed.
82420         * lib/xstrtol.c: Likewise.
82421         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82422         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82423
82424         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82425         warnings on some platforms.
82426
82427         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82428         arbitrarily.
82429
82430 2003-05-26  Jim Meyering  <jim@meyering.net>
82431
82432         Merge in a change from coreutils:
82433         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82434         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82435         that condition, rather than `-1' which is slightly misleading.
82436         Change the name of the cache variable to have the gl_ prefix.
82437         Prompted by a patch from Richard Dawe for DJGPP.
82438
82439 2003-05-24  Karl Berry  <karl@gnu.org>
82440
82441         * config/config.guess: update from prep.
82442
82443 2003-05-22  Karl Berry  <karl@gnu.org>
82444
82445         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82446
82447 2003-05-20  Karl Berry  <karl@gnu.org>
82448
82449         * config/config.guess: update from prep.
82450
82451 2003-05-18  Karl Berry  <karl@gnu.org>
82452
82453         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82454         might actually be set by the user.
82455
82456         * config/depcomp, install-sh, mdate-sh: update from automake.
82457
82458 2003-05-17  Bruno Haible  <bruno@clisp.org>
82459
82460         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82461         invalid expansion for AC_EGREP_CPP.
82462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82463         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82464         Suggested by Akim Demaille <akim@epita.fr> in
82465         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82466
82467 2003-05-12  Jim Meyering  <jim@meyering.net>
82468
82469         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82470         the space-padded-by-default conversion specifiers, %e, %k, %l.
82471
82472 2003-05-12  Bruno Haible  <bruno@clisp.org>
82473
82474         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82475         the string is longer than 4 KB.
82476
82477 2003-05-11  Karl Berry  <karl@gnu.org>
82478
82479         * config/config.{guess,sub}: update from prep.
82480
82481 2003-05-09  Bruno Haible  <bruno@clisp.org>
82482
82483         * modules/error: Add m4/strerror_r.m4 to file list.
82484
82485 2003-05-03  Bruno Haible  <bruno@clisp.org>
82486
82487         Upgrade to Unicode-4.0.
82488         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82489         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82490         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82491         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82492         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82493         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82494         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82495         Change width of U+E0100..U+E01EF from 1 to 0.
82496
82497 2003-04-25  Jim Meyering  <jim@meyering.net>
82498
82499         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82500         of type size_t, not int.
82501
82502 2003-04-25  Bruno Haible  <bruno@clisp.org>
82503
82504         * lib/copy-file.c: Include <stddef.h>, for size_t.
82505
82506 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82507
82508         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82509         code which expansion is under static control.  Patch imported from
82510         Akim Demaille's patch to Bison; see
82511         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82512
82513 2003-04-14  Bruno Haible  <bruno@clisp.org>
82514
82515         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82516
82517 2003-04-11  Jim Meyering  <jim@meyering.net>
82518
82519         Merge changes from Coreutils.
82520
82521         2003-03-22  Jim Meyering  <jim@meyering.net>
82522
82523         * lib/strftime.c (widen): Cast alloca return value to proper type.
82524
82525         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82526
82527         From GNU libc.
82528         * lib/strftime.c (my_strftime): Handle very large width
82529         specifications for numeric values correctly.  Improve checks for
82530         overflow.
82531
82532         2003-01-19  Jim Meyering  <jim@meyering.net>
82533
82534         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82535         definitions.
82536         (nl_get_alt_digit) [! defined my_strftime]: Define.
82537         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82538         _nl_get_alt_digit and _nl_get_walt_digit.
82539
82540         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82541         libc. These changes have no effect outside of _LIBC.
82542
82543 2003-04-10  Bruno Haible  <bruno@clisp.org>
82544
82545         * modules/findprog: New file.
82546         * MODULES.html.sh (func_all_modules): Add it.
82547
82548 2003-04-10  Bruno Haible  <bruno@clisp.org>
82549
82550         * m4/findprog.m4: New file.
82551         * m4/eaccess.m4: New file.
82552
82553 2003-04-10  Bruno Haible  <bruno@clisp.org>
82554
82555         * lib/findprog.h: New file, from GNU gettext.
82556         * lib/findprog.c: New file, from GNU gettext.
82557
82558 2003-04-05  Jim Meyering  <jim@meyering.net>
82559
82560         Merge changes from Coreutils.
82561
82562         * lib/exclude.h (PARAMS): Remove definition and uses.
82563         * lib/exclude.c: Remove uses of `PARAMS'.
82564
82565         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82566         Add test-cases for DOS filenames. Declare program_name.
82567         (main): Set up program_name.  Patch by Rich Dawe.
82568
82569         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82570         error from mntctl.
82571         Use mntctl's return value to drive the entry-processing loop, since
82572         we can't rely on the value of the vmt_length member in the last
82573         entry.  On some systems doing so could result in exhausting
82574         virtual memory.  Based in part on a patch from Mike Jetzer.
82575
82576 2003-04-04  Bruno Haible  <bruno@clisp.org>
82577
82578         * modules/linebreak: New file.
82579         * MODULES.html.sh (func_all_modules): Add it.
82580
82581 2003-04-04  Bruno Haible  <bruno@clisp.org>
82582
82583         * m4/linebreak.m4: New file.
82584
82585 2003-04-04  Bruno Haible  <bruno@clisp.org>
82586
82587         * lib/linebreak.h: New file, from GNU gettext.
82588         * lib/linebreak.c: New file, from GNU gettext with slight
82589         modifications.
82590         * lib/lbrkprop.h: New file, from GNU gettext.
82591
82592 2003-04-03  Bruno Haible  <bruno@clisp.org>
82593
82594         * modules/utf8-ucs4: New file.
82595         * modules/utf16-ucs4: New file.
82596         * modules/ucs4-utf8: New file.
82597         * modules/ucs4-utf16: New file.
82598         * MODULES.html.sh (func_all_modules): Add them.
82599
82600 2003-04-03  Bruno Haible  <bruno@clisp.org>
82601
82602         * m4/utf-ucs4.m4: New file.
82603         * m4/ucs4-utf.m4: New file.
82604
82605 2003-04-03  Bruno Haible  <bruno@clisp.org>
82606
82607         * lib/utf8-ucs4.h: New file, from GNU gettext.
82608         * lib/utf16-ucs4.h: New file, from GNU gettext.
82609         * lib/ucs4-utf8.h: New file, from GNU gettext.
82610         * lib/ucs4-utf16.h: New file, from GNU gettext.
82611
82612 2003-04-02  Bruno Haible  <bruno@clisp.org>
82613
82614         * modules/binary-io: New file.
82615         * MODULES.html.sh (func_all_modules): Add it.
82616
82617 2003-04-02  Bruno Haible  <bruno@clisp.org>
82618
82619         * lib/binary-io.h: New file, from GNU gettext.
82620
82621 2003-04-01  Bruno Haible  <bruno@clisp.org>
82622
82623         * modules/pathname: New file.
82624         * MODULES.html.sh (func_all_modules): Add it.
82625
82626 2003-04-01  Bruno Haible  <bruno@clisp.org>
82627
82628         * lib/pathname.h: New file, from GNU gettext.
82629         * lib/concatpath.c: New file, from GNU gettext.
82630
82631 2003-03-30  Bruno Haible  <bruno@clisp.org>
82632
82633         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82634
82635 2003-03-30  Bruno Haible  <bruno@clisp.org>
82636
82637         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82638         function chown() doesn't exist.
82639
82640 2003-03-28  Bruno Haible  <bruno@clisp.org>
82641
82642         * modules/copy-file: New file.
82643         * MODULES.html.sh (func_all_modules): Add it.
82644
82645 2003-03-28  Bruno Haible  <bruno@clisp.org>
82646
82647         * m4/copy-file.m4: New file.
82648
82649 2003-03-28  Bruno Haible  <bruno@clisp.org>
82650
82651         * lib/copy-file.h: New file, from GNU gettext.
82652         * lib/copy-file.c: New file, from GNU gettext.
82653
82654 2003-03-18  Jim Meyering  <jim@meyering.net>
82655
82656         * lib/quote.c (quote_n): Fix typo in comment.
82657
82658 2003-03-18  Bruno Haible  <bruno@clisp.org>
82659
82660         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82661         checking.
82662         * m4/onceonly_2_57.m4: Likewise.
82663
82664 2003-03-17  Bruno Haible  <bruno@clisp.org>
82665
82666         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82667         (m4_quote): Remove macro.
82668         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82669
82670 2003-03-14  Jim Meyering  <jim@meyering.net>
82671
82672         Merge changes from Coreutils.
82673         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82674         to be const, in order to avoid warnings.
82675         (obstack_room): Likewise.
82676         (obstack_empty_p): Likewise.
82677
82678 2003-03-14  Bruno Haible  <bruno@clisp.org>
82679
82680         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82681         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82682
82683 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82684
82685         Merge changes from Bison.
82686         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82687         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82688         when compiling Bison 1.875's `bitset bset = obstack_alloc
82689         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82690         * lib/hash.c: Include <stdbool.h> unconditionally.
82691
82692 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82693
82694         * m4/onceonly.m4 (m4_quote): New macro.
82695         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82696         Quote AC_FOREACH variable-expansions properly.
82697
82698 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82699
82700         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82701
82702 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82703
82704         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82705         Reported by Bruce Becker; see:
82706         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82707
82708 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82709             Bruno Haible  <bruno@clisp.org>
82710
82711         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82712         Reported by John Hughes, see
82713         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82714
82715 2003-02-20  Bruno Haible  <bruno@clisp.org>
82716
82717         * MODULES.html.sh (func_all_modules): Add poll.
82718
82719 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82720
82721         * modules/poll: New file.
82722
82723 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82724
82725         * lib/poll_.h: New file.
82726         * lib/poll.c: New file.
82727
82728 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82729
82730         * m4/poll.m4: New file.
82731
82732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82733
82734         * modules/mathl: New file.
82735
82736 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82737
82738         * lib/mathl.h: New file.
82739         * lib/acosl.c: New file.
82740         * lib/asinl.c: New file.
82741         * lib/atanl.c: New file.
82742         * lib/ceill.c: New file.
82743         * lib/cosl.c: New file.
82744         * lib/expl.c: New file.
82745         * lib/floorl.c: New file.
82746         * lib/frexpl.c: New file.
82747         * lib/ldexpl.c: New file.
82748         * lib/logl.c: New file.
82749         * lib/sincosl.c: New file.
82750         * lib/sinl.c: New file.
82751         * lib/sqrtl.c: New file.
82752         * lib/tanl.c: New file.
82753         * lib/trigl.c: New file.
82754         * lib/trigl.h: New file.
82755
82756 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82757
82758         * m4/mathl.m4: New file.
82759
82760 2003-02-18  Bruno Haible  <bruno@clisp.org>
82761
82762         * MODULES.html.sh (func_all_modules): Add mathl.
82763
82764 2003-02-17  Bruno Haible  <bruno@clisp.org>
82765
82766         * modules/mkdtemp: New module.
82767         * MODULES.html.sh (func_all_modules): Add it.
82768
82769 2003-02-17  Bruno Haible  <bruno@clisp.org>
82770
82771         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82772
82773 2003-02-17  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/mkdtemp.h: New file, from GNU gettext.
82776         * lib/mkdtemp.c: New file, from GNU gettext.
82777
82778 2003-02-02  Jim Meyering  <jim@meyering.net>
82779
82780         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82781         e.g. glibc-2.2.93.
82782
82783 2003-01-31  Bruno Haible  <bruno@clisp.org>
82784
82785         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82786         'rpl_rename'.
82787         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82788         'rpl_strnlen'.
82789         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82790         'rpl_strtod'.
82791         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82792         'rpl_utime'.
82793
82794 2003-01-31  Bruno Haible  <bruno@clisp.org>
82795
82796         * lib/rename.c: #undef rename before defining rpl_rename.
82797         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82798
82799 2003-01-30  Bruno Haible  <bruno@clisp.org>
82800
82801         * modules/vasnprintf, modules/vasprintf: New modules.
82802         * MODULES.html.sh (func_all_modules): Add them.
82803
82804 2003-01-30  Bruno Haible  <bruno@clisp.org>
82805
82806         * m4/signed.m4: New file, from GNU gettext.
82807         * m4/longdouble.m4: New file, from GNU gettext.
82808         * m4/wchar_t.m4: New file, from GNU gettext.
82809         * m4/wint_t.m4: New file, from GNU gettext.
82810         * m4/vasnprintf.m4: New file.
82811         * m4/vasprintf.m4: New file.
82812
82813 2003-01-30  Bruno Haible  <bruno@clisp.org>
82814
82815         * lib/printf-args.h: New file, from GNU gettext.
82816         * lib/printf-args.c: New file, from GNU gettext.
82817         * lib/printf-parse.h: New file, from GNU gettext.
82818         * lib/printf-parse.c: New file, from GNU gettext.
82819         * lib/vasnprintf.h: New file, from GNU gettext.
82820         * lib/vasnprintf.c: New file, from GNU gettext.
82821         * lib/asnprintf.c: New file, from GNU gettext.
82822         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82823         * lib/vasprintf.c: New file, from GNU gettext.
82824         * lib/asprintf.c: New file, from GNU gettext.
82825
82826 2003-01-29  Bruno Haible  <bruno@clisp.org>
82827
82828         * modules/stpncpy: New module.
82829         * MODULES.html.sh (func_all_modules): Add it.
82830
82831 2003-01-29  Bruno Haible  <bruno@clisp.org>
82832
82833         * m4/stpncpy.m4: New file.
82834
82835 2003-01-29  Bruno Haible  <bruno@clisp.org>
82836
82837         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82838         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82839
82840 2003-01-28  Bruno Haible  <bruno@clisp.org>
82841
82842         * modules/c-ctype: New module.
82843         * MODULES.html.sh (func_all_modules): Add it.
82844
82845 2003-01-28  Bruno Haible  <bruno@clisp.org>
82846
82847         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82848         Paul Eggert.
82849         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82850         Paul Eggert.
82851
82852 2003-01-27  Bruno Haible  <bruno@clisp.org>
82853
82854         * modules/xsetenv: New module.
82855         * MODULES.html.sh (func_all_modules): Add it.
82856
82857 2003-01-27  Bruno Haible  <bruno@clisp.org>
82858
82859         * lib/xsetenv.h: New file, from GNU gettext.
82860         * lib/xsetenv.c: New file, from GNU gettext.
82861
82862 2003-01-23  Jim Meyering  <jim@meyering.net>
82863
82864         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82865         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82866
82867 2003-01-23  Bruno Haible  <bruno@clisp.org>
82868
82869         * modules/minmax: New module.
82870         * MODULES.html.sh (func_all_modules): Add it.
82871
82872 2003-01-23  Bruno Haible  <bruno@clisp.org>
82873
82874         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82875         Eggert.
82876
82877 2003-01-22  Bruno Haible  <bruno@clisp.org>
82878
82879         * modules/exit: New module.
82880         * MODULES.html.sh (func_all_modules): Add it.
82881
82882 2003-01-22  Bruno Haible  <bruno@clisp.org>
82883
82884         * lib/exit.h: New file, from GNU gettext.
82885
82886 2003-01-19  Bruno Haible  <bruno@clisp.org>
82887
82888         * gnulib-tool: Recognize option --extract-maintainer.
82889         (func_get_maintainer): New function.
82890         * modules/*: Add Maintainer entry.
82891
82892 2003-01-16  Jim Meyering  <jim@meyering.net>
82893
82894         * m4/regex.m4: The `regex' struct is both input and output.
82895         Initialize it before each use.  Patch by Tim Waugh.
82896
82897 2003-01-16  Bruno Haible  <bruno@clisp.org>
82898
82899         * MODULES.html.sh: Add a table of contents. Add the module name as
82900         leftmost column. Add hyperlinks.
82901
82902 2003-01-15  Bruno Haible  <bruno@clisp.org>
82903
82904         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82905
82906 2003-01-15  Bruno Haible  <bruno@clisp.org>
82907
82908         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82909         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82910         suffix.
82911
82912 2003-01-15  Bruno Haible  <bruno@clisp.org>
82913
82914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82915
82916 2003-01-15  Bruno Haible  <bruno@clisp.org>
82917
82918         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82919         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82920
82921 2003-01-14  Jim Meyering  <jim@meyering.net>
82922
82923         * lib/same.c (same_name): Tweak a comment.
82924
82925 2003-01-14  Bruno Haible  <bruno@clisp.org>
82926
82927         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82928         when a string comparison is sufficient.
82929
82930 2003-01-14  Bruno Haible  <bruno@clisp.org>
82931
82932         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82933         'unsigned int'.
82934
82935 2003-01-14  Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/hash-pjw.c: Add comment about low quality of this function.
82938
82939 2003-01-13  Bruno Haible  <bruno@clisp.org>
82940
82941         * modules/stpcpy: Distribute lib/stpcpy.h.
82942         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82943
82944 2003-01-13  Bruno Haible  <bruno@clisp.org>
82945
82946         * modules/*: Add a description.
82947         * modules/strpbrk: Fix Makefile.am snippet.
82948         * modules/strtoimax: Fix dependencies.
82949         * modules/strtoumax: Likewise.
82950
82951 2003-01-13  Bruno Haible  <bruno@clisp.org>
82952
82953         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82954         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82955         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82956
82957 2003-01-13  Bruno Haible  <bruno@clisp.org>
82958
82959         * gnulib-tool (func_create_testdir): Store config/* files in the main
82960         directory.
82961         * config.rpath: Move to ...
82962         * config/config.rpath: ... here.
82963         * modules/gettext: Contains config/config.rpath, not config.rpath.
82964         * modules/iconv: Likewise.
82965
82966 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82967
82968         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82969         to avoid collisions with libcurses and libreadline.
82970
82971         * m4/getstr.m4: Remove.
82972         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82973
82974 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82975
82976         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82977         to avoid collisions with libcurses and libreadline.
82978
82979         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82980         * lib/getstr.h, getstr.c: Remove.
82981         * lib/getline.c: Include "getline.h", to check interface.
82982         Move body of old getstr.c here: this defines MIN_CHUNK and
82983         declares getdelim2, which is renamed from getstr.
82984         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82985
82986         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82987         All uses changed.
82988         * lib/linebuffer.h: Likewise.
82989         (readline): Remove backward-compatibility macro.
82990
82991 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82992
82993         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82994         to avoid collisions with libcurses and libreadline.
82995         * getstr: Remove.
82996         * MODULES.html.sh: Remove getstr.
82997         * modules/getline: Depend on unlocked-io, not getstr.
82998
82999 2003-01-12  Jim Meyering  <jim@meyering.net>
83000
83001         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83002
83003 2003-01-10  Bruno Haible  <bruno@clisp.org>
83004
83005         * modules/alloca: Change Makefile.am requirements. Simplify Include
83006         requirements. Add lib/alloca_.h to file list.
83007
83008 2003-01-10  Bruno Haible  <bruno@clisp.org>
83009
83010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83011
83012 2003-01-10  Bruno Haible  <bruno@clisp.org>
83013
83014         * lib/alloca_.h: New file.
83015         * lib/getdate.y: Unconditionally include alloca.h.
83016         * lib/makepath.c: Likewise.
83017         * lib/setenv.c: Likewise.
83018         * lib/userspec.c: Likewise.
83019
83020 2003-01-09  Karl Berry  <karl@gnu.org>
83021
83022         * MODULES.html.sh: include `dirname $0` in PATH, to find
83023         gnulib-tool.
83024
83025 2003-01-09  Bruno Haible  <bruno@clisp.org>
83026
83027         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83028         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83029
83030 2003-01-09  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83033
83034 2003-01-09  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/stdbool.h.in: New file.
83037
83038 2003-01-09  Bruno Haible  <bruno@clisp.org>
83039
83040         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83041         * MODULES.html.sh: Likewise.
83042
83043 2003-01-08  Jim Meyering  <jim@meyering.net>
83044
83045         * lib/full-write.c: Undefine and define-away `const' after inclusion
83046         of errno.h, not before.  Suggestion from Bruno Haible.
83047
83048 2003-01-08  Bruno Haible  <bruno@clisp.org>
83049
83050         * modules/full-read: Depend on full-write.
83051
83052 2003-01-08  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/safe-read.c: Include specification header first, to ensure its
83055         selfcontainedness.
83056         * lib/full-write.c: Likewise.
83057
83058 2003-01-07  Jim Meyering  <jim@meyering.net>
83059
83060         * lib/full-write.c: Rework so that it may serve to define full_read,
83061         too.
83062         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83063
83064 2003-01-07  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83067         <inttypes.h>.
83068         * lib/xstrtol.h: Likewise.
83069         * lib/xstrtoimax.c: Likewise.
83070         * lib/xstrtoumax.c: Likewise.
83071         * lib/human.h: Likewise.
83072
83073         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83074         on systems that have <inttypes.h> but not <stdint.h>.
83075
83076 2003-01-07  Bruno Haible  <bruno@clisp.org>
83077
83078         * MODULES.html.sh: Add copyright notice.
83079         (missed_files): Omit CVS directory entries.
83080         (func_module): Make it work with sed-3.02.
83081         * MODULES.txt: Remove file.
83082
83083 2003-01-06  Jim Meyering  <jim@meyering.net>
83084
83085         * lib/version-etc.c: Update year in translatable copyright string.
83086
83087 2003-01-03  Karl Berry  <karl@gnu.org>
83088
83089         * config/config.{guess,sub}: update from prep.
83090
83091 2003-01-02  Karl Berry  <karl@gnu.org>
83092
83093         * doc/COPYING.DOC: belatedly updated to 1.2.
83094
83095 2003-01-01  Karl Berry  <karl@gnu.org>
83096
83097         * gnulib-tool (func_verify_module): report module name $module in
83098         error message, not $1.
83099         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83100         be created, only if it doesn't exist.
83101         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83102
83103 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83104
83105         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83106
83107 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83108
83109         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83110         memcmp if strcoll doesn't work.
83111
83112 2002-12-31  Bruno Haible  <bruno@clisp.org>
83113
83114         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83115         nonempty.
83116
83117 2002-12-31  Bruno Haible  <bruno@clisp.org>
83118
83119         * lib/memcoll.c (STRCOLL): New macro.
83120         (memcoll): Use it.
83121
83122 2002-12-31  Bruno Haible  <bruno@clisp.org>
83123
83124         * lib/localcharset.h: New file.
83125         * lib/localcharset.c: Include it.
83126         * lib/unicodeio.c: Likewise.
83127
83128 2002-12-31  Bruno Haible  <bruno@clisp.org>
83129
83130         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83131         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83132
83133 2002-12-31  Bruno Haible  <bruno@clisp.org>
83134
83135         * lib/getline.h: Include <stddef.h>, for size_t.
83136
83137         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83138         * lib/unicodeio.c: Don't include <stddef.h>.
83139
83140 2002-12-31  Bruno Haible  <bruno@clisp.org>
83141
83142         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83143         HAVE_TM_ZONE.
83144
83145 2002-12-24  Karl Berry  <karl@gnu.org>
83146
83147         * config/config.guess: update from prep.
83148
83149 2002-12-24  Bruno Haible  <bruno@clisp.org>
83150
83151         General infrasructure.
83152         * m4/README: Rewritten.
83153         * m4/onceonly.m4: New file.
83154         * m4/onceonly_2_57.m4: New file.
83155
83156         Module atexit.
83157         * m4/atexit.m4: New file.
83158
83159         Module strtod.
83160         * m4/strtod.m4: New file.
83161
83162         Module strtol.
83163         * m4/strtol.m4: New file.
83164
83165         Module strtoul.
83166         * m4/strtoul.m4: New file.
83167
83168         Module memchr.
83169         * m4/memchr.m4: New file.
83170
83171         Module memcmp.
83172         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83173         (jm_FUNC_MEMCMP): Invoke it.
83174
83175         Module memcpy.
83176         * m4/memcpy.m4: New file.
83177
83178         Module memmove.
83179         * m4/memmove.m4: New file.
83180
83181         Module memset.
83182         * m4/memset.m4: New file.
83183
83184         Module strcspn.
83185         * m4/strcspn.m4: New file.
83186
83187         Module strpbrk.
83188         * m4/strpbrk.m4: New file.
83189
83190         Module strstr.
83191         * m4/strstr.m4: New file.
83192
83193         Module strerror.
83194         * m4/strerror.m4: New file.
83195
83196         Module mktime.
83197         * m4/mktime.m4: Renamed from jm-mktime.m4.
83198         (gl_PREREQ_MKTIME): New macro.
83199         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83200
83201         Module malloc.
83202         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83203         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83204         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83205
83206         Module realloc.
83207         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83208         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83209         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83210
83211         Module strftime.
83212         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83213         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83214         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83215         gl_TM_GMTOFF.
83216         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83217
83218         Module xalloc.
83219         * m4/xalloc.m4: New file.
83220
83221         Module alloca.
83222         * m4/alloca.m4: New file.
83223
83224         Module putenv.
83225         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83226         (jm_FUNC_PUTENV): Invoke it.
83227
83228         Module setenv.
83229         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83230         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83231         when invoked twice.
83232         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83233         gt_FUNC_SETENV.
83234
83235         Module memrchr.
83236         * m4/memrchr.m4: New file.
83237
83238         Module stpcpy.
83239         * m4/stpcpy.m4: New file.
83240
83241         Module strcase.
83242         * m4/strcase.m4: New file.
83243
83244         Module strdup.
83245         * m4/strdup.m4: New file.
83246
83247         Module strnlen.
83248         * m4/strnlen.m4: New file.
83249
83250         Module strndup.
83251         * m4/strndup.m4: New file.
83252
83253         Module xstrtod.
83254         * m4/xstrtod.m4: New file.
83255
83256         Module xstrtol.
83257         * m4/xstrtol.m4: New file.
83258
83259         Module getdate.
83260         * m4/getdate.m4: New file.
83261
83262         Module unlocked-io.
83263         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83264         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83265         * m4/jm-glibc-io.m4n: Remove file.
83266
83267         Module long-options.
83268         * m4/long-options.m4: New file.
83269
83270         Module md5.
83271         * m4/md5.m4: New file.
83272
83273         Module sha.
83274         * m4/sha.m4: New file.
83275
83276         Module getstr.
83277         * m4/getstr.m4: New file.
83278
83279         Module getline.
83280         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83281         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83282         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83283         simply getline. Infoke gl_PREREQ_GETLINE.
83284
83285         Module obstack.
83286         * m4/obstack.m4: New file.
83287
83288         Module hash.
83289         * m4/hash.m4: New file.
83290
83291         Module readtokens.
83292         * m4/readtokens.m4: New file.
83293
83294         Module strverscmp.
83295         * m4/strverscmp.m4: New file.
83296
83297         Module stdbool.
83298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83299         OSF/1.
83300
83301         Module strtoll.
83302         * m4/strtoll.m4: New file.
83303
83304         Module strtoull.
83305         * m4/strtoull.m4: New file.
83306
83307         Module strtoimax.
83308         * m4/strtoimax.m4: New file.
83309
83310         Module strtoumax.
83311         * m4/strtoumax.m4: New file.
83312
83313         Module xstrtoimax.
83314         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83315         jm_AC_PREREQ_XSTRTOIMAX.
83316         Moved the strtol prerequisites to strtol.m4.
83317         Moved the strtoll prerequisites to strtoll.m4.
83318         Moved the strtoimax prerequisites to strtoimax.m4.
83319
83320         Module xstrtoumax.
83321         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83322         jm_AC_PREREQ_XSTRTOUMAX.
83323         Moved the strtoul prerequisites to strtoul.m4.
83324         Moved the strtoull prerequisites to strtoull.m4.
83325         Moved the strtoumax prerequisites to strtoumax.m4.
83326
83327         Module chown.
83328         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83329         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83330
83331         Module dup2.
83332         * m4/dup2.m4: New file.
83333
83334         Module ftruncate.
83335         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83336         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83337
83338         Module getgroups.
83339         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83340         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83341
83342         Module gettimeofday.
83343         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83344         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83345         gl_PREREQ_GETTIMEOFDAY.
83346
83347         Module mkdir.
83348         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83349         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83350
83351         Module mkstemp.
83352         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83353         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83354         jm_AC_TYPE_UINTMAX_T.
83355         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83356
83357         Module stat.
83358         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83359         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83360
83361         Module lstat.
83362         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83363         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83364
83365         Module timespec.
83366         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83367         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83368         * m4/st_mtim.m4: Indentation.
83369
83370         Module nanosleep.
83371         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83372         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83373         gl_PREREQ_NANOSLEEP.
83374
83375         Module regex.
83376         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83377         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83378         (gl_REGEX): New macro.
83379
83380         Module rename.
83381         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83382         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83383
83384         Module rmdir.
83385         * m4/rmdir.m4: New file.
83386
83387         Module utime.
83388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83389         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83390         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83391
83392         Module dirname.
83393         * m4/dirname.m4: New file.
83394
83395         Module getopt.
83396         * m4/getopt.m4: New file.
83397
83398         Module unistd-safer.
83399         * m4/unistd-safer.m4: New file.
83400
83401         Module fnmatch.
83402         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83403         declaration.
83404         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83405         (gl_FUNC_FNMATCH_POSIX): New macro.
83406         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83407         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83408         simply fnmatch.
83409
83410         Module exclude.
83411         * m4/exclude.m4: New file.
83412
83413         Module human.
83414         * m4/human.m4: New file.
83415
83416         Module acl.
83417         * m4/acl.m4: Nop.
83418
83419         Module backupfile.
83420         * m4/backupfile.m4: New file.
83421         * m4/d-ino.m4: Indentation.
83422
83423         Module fsusage.
83424         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83425         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83426         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83427
83428         Module dirfd.
83429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83430         requirements.
83431
83432         Module euidaccess.
83433         * m4/euidaccess.m4: New file.
83434
83435         Module file-type.
83436         * m4/file-type.m4: New file.
83437
83438         Module fileblocks.
83439         * m4/fileblocks.m4: New file.
83440
83441         Module filemode.
83442         * m4/filemode.m4: New file.
83443
83444         Module isdir.
83445         * m4/isdir.m4: New file.
83446
83447         Module lchown.
83448         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83449         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83450
83451         Module makepath.
83452         * m4/makepath.m4: New file.
83453
83454         Module modechange.
83455         * m4/modechange.m4: New file.
83456
83457         Module mountlist.
83458         * m4/mountlist.m4: New file.
83459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83460         Indentation.
83461
83462         Module path-concat.
83463         * m4/path-concat.m4: New file.
83464
83465         Module pathmax.
83466         * m4/pathmax.m4: New file.
83467
83468         Module same.
83469         * m4/same.m4: New file.
83470
83471         Module save-cwd.
83472         * m4/save-cwd.m4: New file.
83473
83474         Module savedir.
83475         * m4/savedir.m4: New file.
83476
83477         Module xgetcwd.
83478         * m4/xgetcwd.m4: New file.
83479         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83480
83481         Module xreadlink.
83482         * m4/xreadlink.m4: New file.
83483
83484         Module safe-read.
83485         * m4/safe-read.m4: New file.
83486
83487         Module safe-write.
83488         * m4/safe-write.m4: New file.
83489
83490         Module closeout.
83491         * m4/closeout.m4: New file.
83492
83493         Module stdio-safer.
83494         * m4/stdio-safer.m4: New file.
83495
83496         Module getpass.
83497         * m4/getpass.m4: New file.
83498
83499         Module getugroups.
83500         * m4/getugroups.m4: New file.
83501
83502         Module group-member.
83503         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83504         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83505
83506         Module idcache.
83507         * m4/idcache.m4: New file.
83508
83509         Module userspec.
83510         * m4/userspec.m4: New file.
83511
83512         Module gettime.
83513         * m4/clock_time.m4: New file.
83514         * m4/gettime.m4: New file.
83515
83516         Module settime.
83517         * m4/settime.m4: New file.
83518
83519         Module posixtm.
83520         * m4/posixtm.m4: New file.
83521
83522         Module gethostname.
83523         * m4/gethostname.m4: New file.
83524
83525         Module canon-host.
83526         * m4/canon-host.m4: New file.
83527
83528         Module gettext.
83529         * m4/codeset.m4: New file, from gettext-0.11.5.
83530         * m4/gettext.m4: New file, from gettext-0.11.5.
83531         * m4/glibc21.m4: New file, from gettext-0.11.5.
83532         * m4/iconv.m4: New file, from gettext-0.11.5.
83533         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83534         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83535         * m4/inttypes.m4: New file, from gettext-0.11.5.
83536         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83537         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83538         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83539         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83540         * m4/lib-link.m4: New file, from gettext-0.11.5.
83541         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83542         * m4/progtest.m4: New file, from gettext-0.11.5.
83543         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83544         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83545         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83546
83547         Module localcharset.
83548         * m4/localcharset.m4: New file.
83549
83550         Module hard-locale.
83551         * m4/hard-locale.m4: New file.
83552
83553         Module mbswidth.
83554         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83555         onceonly macros.
83556         * m4/mbrtowc.m4: Add comment.
83557
83558         Module memcasecmp.
83559         * m4/memcasecmp.m4: New file.
83560
83561         Module memcoll.
83562         * m4/memcoll.m4: New file.
83563
83564         Module unicodeio.
83565         * m4/unicodeio.m4: New file.
83566
83567         Module rpmatch.
83568         * m4/rpmatch.m4: New file.
83569
83570         Module yesno.
83571         * m4/yesno.m4: New file.
83572
83573         Module exitfail.
83574         * m4/exitfail.m4: New file.
83575
83576         Module c-stack.
83577         * m4/c-stack.m4 (gl_C_STACK): New macro.
83578         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83579
83580         Module error.
83581         * m4/error.m4 (gl_ERROR): New macro.
83582         (jm_PREREQ_ERROR): Use onceonly macros.
83583
83584         Module fatal.
83585         * m4/fatal.m4: New file.
83586
83587         Module getloadavg.
83588         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83589         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83590
83591         Module getpagesize.
83592         * m4/getpagesize.m4: New file.
83593
83594         Module getusershell.
83595         * m4/getusershell.m4: New file.
83596
83597         Module physmem.
83598         * m4/physmem.m4: New file.
83599
83600         Module posixver.
83601         * m4/posixver.m4: New file.
83602
83603         Module quotearg.
83604         * m4/quotearg.m4: New file.
83605
83606         Module quote.
83607         * m4/quote.m4: New file.
83608
83609         Module readutmp.
83610         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83611
83612         Module sig2str.
83613         * m4/sig2str.m4: New file.
83614
83615         Other.
83616         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83617         ulonglong.m4.
83618         * m4/intmax_t.m4: New file.
83619         * m4/d-type.m4: Indentation.
83620         * m4/jm-macros.m4: Update.
83621         * m4/prereq.m4 (jm_PREREQ): Update.
83622         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83623         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83624         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83625         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83626         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83627         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83628         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83629         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83630         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83631         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83632         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83633         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83634         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83635         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83636         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83637         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83638         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83639         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83640         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83641
83642 2002-12-24  Bruno Haible  <bruno@clisp.org>
83643
83644         * MODULES.txt: Update according to m4/ changes.
83645
83646         Module gettext.
83647         * config.rpath: New file, from gettext-0.11.5.
83648
83649         * modules/*: New module descriptions.
83650         * gnulib-tool: New file.
83651         * MODULES.html.sh: New file.
83652
83653 2002-12-21  Karl Berry  <karl@gnu.org>
83654
83655         * doc/fdl.texi: update to version 1.2.
83656
83657 2002-12-19  Karl Berry  <karl@gnu.org>
83658
83659         * config/config.guess: update from prep.
83660
83661 2002-12-18  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83664         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83665
83666 2002-12-17  Bruno Haible  <bruno@clisp.org>
83667
83668         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83669         stdlib.h, string.h.
83670
83671 2002-12-17  Bruno Haible  <bruno@clisp.org>
83672
83673         * lib/canon-host.c (strdup): Remove unused declaration.
83674
83675         * lib/fsusage.c: Include full_read.h.
83676         (get_fs_usage): Use full_read instead of safe_read.
83677
83678         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83679
83680 2002-12-12  Karl Berry  <karl@gnu.org>
83681
83682         * config/config.guess: update from prep.
83683
83684 2002-12-11  Bruno Haible  <bruno@clisp.org>
83685
83686         * m4/setenv.m4: New file, from gettext-0.11.5.
83687
83688 2002-12-11  Bruno Haible  <bruno@clisp.org>
83689
83690         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83691         not unsetenv().
83692         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83693         modifications:
83694
83695         2002-12-11  Bruno Haible  <bruno@clisp.org>
83696
83697                 * setenv.c (alloca): Fall back to malloc.
83698                 (freea): New macro.
83699                 (setenv): Use freea() to free memory allocated with alloca().
83700
83701         2002-11-13  Bruno Haible  <bruno@clisp.org>
83702
83703                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83704                 function declarations.
83705                 * unsetenv.c (unsetenv): Likewise.
83706
83707         2002-03-04  Bruno Haible  <bruno@clisp.org>
83708
83709                 Portability to AIX 4.3.3.
83710                 * unsetenv.c: New file, extracted from setenv.c.
83711                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83712
83713         2001-12-20  Bruno Haible  <bruno@clisp.org>
83714
83715                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83716                 use malloc instead. For SunOS 4.
83717
83718         2001-12-11  Bruno Haible  <bruno@clisp.org>
83719
83720                 * setenv.c: Declare alloca.
83721                 (compar_fn_t): New typedef.
83722                 (KNOWN_VALUE, STORE_VALUE): Use it.
83723
83724         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83725         setenv.h.
83726
83727 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83728
83729         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83730         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83731         Choose values that are less likely to collide with system fnmatch
83732         options.
83733         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83734         defined (e.g., a pure POSIX system).
83735         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83736         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83737
83738 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83739
83740         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83741         a pain in practice to deal with generated m4 files.  This change
83742         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83743
83744         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83745         and jm-glibc-io.m4, as they are no longer a special case.
83746         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83747         kludge and the auto-generation stuff.  Check only whether the
83748         functions are declared, not whether they exist, since older hosts
83749         that don't declare the functions can't use the optimization anyway.
83750
83751 2002-12-06  Jim Meyering  <jim@meyering.net>
83752
83753         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83754
83755         Merge in changes from libc's misc/error.c, in preparation
83756         for the merge of gnulib's changes back into libc.
83757
83758         * lib/error.c (_): Define only if not already defined.
83759         Move definition to follow all #include directives.
83760         Include unlocked-io.h only if !_LIBC.
83761         [_LIBC]: Include <libio/libioP.h>.
83762         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83763         (fflush): Tweak definition to use INTUSE.
83764         (putc): Define.
83765
83766 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83767
83768         * lib/alloca.c [defined emacs]: Include "lisp.h".
83769         (xalloc_die) [defined emacs]: New macro.
83770         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83771         [! defined emacs]: Include <xalloc.h>.
83772         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83773         (pointer): Typedef to POINTER_TYPE *.
83774         (malloc): Remove decl; we now always use xmalloc.
83775         (alloca): Use old-style definition, since Emacs needs this.
83776         Check for arithmetic overflow when computing combined size.
83777
83778 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83779
83780         Do not generate unlocked-io.h automatically, since it's easier to
83781         maintain it by hand.
83782
83783         * lib/unlocked-io.h: New file, from GNU diffutils,
83784         but with proper copyright notice and attribution.
83785         * lib/gen-uio: Remove.
83786         * lib/Makefile.am: Add copyright notice.
83787         (libfetish_a_SOURCES): Add unlocked-io.h.
83788         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83789         (DISTCLEANFILES, io_functions): Remove macros.
83790         (EXTRA_DIST): Remove gen_uio.
83791         (unlocked-io.h): Remove rule.
83792
83793 2002-12-04  Jim Meyering  <jim@meyering.net>
83794
83795         Reflect the fact that stat.c and lstat.c are no longer generated.
83796         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83797         (DISTCLEANFILES): Likewise.
83798         (EXTRA_DIST): Likewise.
83799         (all_local): Don't depend on stat.c or lstat.c.
83800         (stat.c, lstat.c): Remove rules.
83801         (EXTRA_DIST): Remove xstat.in.
83802
83803         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83804         * lib/stat.c: New file.  Contents mostly from xstat.in.
83805         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83806         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83807
83808         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83809         too.
83810         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83811
83812 2002-12-03  Jim Meyering  <jim@meyering.net>
83813
83814         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83815         but not semantics, to minimize the differences between these two files.
83816         (safe_read): Change comment to mention SAFE_READ_ERROR.
83817
83818         * lib/safe-read.c (IS_EINTR): Define.
83819         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83820
83821 2002-12-02  Jim Meyering  <jim@meyering.net>
83822
83823         * lib/safe-read.c (EINTR): Define.
83824         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83825         (INT_MAX): Provide fallback.
83826         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83827
83828         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83829
83830 2002-12-02  Bruno Haible  <bruno@clisp.org>
83831
83832         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83833         Define, taken from safe-read.c.
83834         (INT_MAX): Provide fallback.
83835         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83836         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83837
83838         * lib/safe-read.c (EINTR): Remove definition.
83839         (safe_read): Don't use EINTR if it is absent.
83840
83841 2002-12-01  Jim Meyering  <jim@meyering.net>
83842
83843         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83844         zero.
83845         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83846
83847 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83848
83849         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83850         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83851         with `if (! (value < limit)) abort ();', for readability.
83852
83853 2002-11-26  Karl Berry  <karl@gnu.org>
83854
83855         * lib/strdup.c: copy from libc again, with jim's ok.
83856         * lib/.cppi-disable: re-add strdup.c
83857
83858 2002-11-25  Karl Berry  <karl@gnu.org>
83859
83860         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83861         instead of "strtol.c".
83862
83863 2002-11-25  Karl Berry  <karl@gnu.org>
83864
83865         * config/install-sh: update from automake for variable quoting, $0 in
83866         error msgs, etc.
83867
83868         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83869         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83870         entry.
83871
83872 2002-11-25  Jim Meyering  <jim@meyering.net>
83873
83874         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83875
83876 2002-11-24  Karl Berry  <karl@gnu.org>
83877
83878         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83879         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83880
83881 2002-11-24  Jim Meyering  <jim@meyering.net>
83882
83883         Update from coreutils:
83884
83885         * lib/mktime.c: Merge in changes from libc.
83886
83887         Avoid a link-time failure on some Linux systems.
83888         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83889         (otherwise).
83890         (__mon_yday): Declare with the STATIC attribute.
83891         (__mktime_internal): Likewise.
83892         Based on a report from Greg Schafer.
83893
83894 2002-11-23  Jim Meyering  <jim@meyering.net>
83895
83896         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83897         Use `unsigned', not `int', as type of index.
83898
83899         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83900
83901         * lib/fsusage.c: Remove unneeded parentheses around operands of
83902         `defined'.
83903
83904 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83905
83906         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83907         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83908         so that we can be included first.
83909         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83910         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83911         No need to include stddef.h or sys/types.h any more.
83912         Surround local include files with "", not "<>".
83913         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83914         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83915         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83916         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83917         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83918         (ISPRINT): Remove; no longer needed now that we assume C89.
83919
83920         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83921         Preserve errno.
83922
83923         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83924         quotearg_char): Use SIZE_MAX rather than
83925         (size_t) -1 when we are talking about "infinity".
83926
83927         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83928
83929 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83930
83931         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83932         hint that one should use `if (! x) abort ();' rather than `assert
83933         (x);', and anyway it's one less thing to worry about configuring.
83934         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83935         hash_rehash, hash_insert): Use abort rather than assert.
83936
83937 2002-11-22  Bruno Haible  <bruno@clisp.org>
83938
83939         * lib/safe-read.h: Assume C89. Add comments.
83940         (safe_read): Change return type to size_t.
83941         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83942         byte counts > SSIZE_MAX correctly.
83943         * lib/safe-write.h: New file.
83944         * lib/safe-write.c: New file.
83945         * lib/full-read.h: New file.
83946         * lib/full-read.c: New file.
83947         * lib/full-write.h: Assume C89. Add comments.
83948         * lib/full-write.c: Include safe-write.h.
83949         (full_write): Rewritten to use safe_write.
83950         Suggested by Jim Meyering and Paul Eggert.
83951
83952 2002-11-21  Jim Meyering  <jim@meyering.net>
83953
83954         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83955
83956         Merge in changes from the coreutils.
83957
83958         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83959         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83960         <stdint.h>.
83961         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83962         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83963         int.  Work more efficiently if X is the same width as uintmax_t.
83964         Do not compare X to -1, to avoid bogus compiler warning.
83965         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83966         Don't assume that f_frsize and f_bsize are the same type.
83967
83968         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83969         warning on FreeBSD.
83970
83971         * lib/makepath.c (make_path): Restore umask *before* creating the final
83972         component.
83973         (make_path): Minor reformatting.
83974
83975         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83976         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83977         HAVE_MALLOC/HAVE_REALLOC.
83978
83979         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83980         dummy ones.  At least on GNU/Linux systems, `auto' means something
83981         else.
83982         From Michael Stone.
83983
83984 2002-11-21  Bruno Haible  <bruno@clisp.org>
83985
83986         Remove case insensitive option matching.
83987         * lib/argmatch.h (argcasematch): Remove declaration.
83988         (ARGCASEMATCH): Remove macro.
83989         (__xargmatch_internal): Remove case_sensitive argument.
83990         (XARGMATCH): Update.
83991         (XARGCASEMATCH): Remove macro.
83992         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83993         case_sensitive argument.
83994         (argcasematch): Remove function.
83995         (__xargmatch_internal): Remove case_sensitive argument.
83996         (main): Use XARGMATCH instead of XARGCASEMATCH.
83997
83998         * lib/xmalloc.c: Change compile-time error message. Add comment about
83999         required autoconf version.
84000
84001 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84002
84003         Merge argmatch cleanups from Bison.  Assume C89.
84004
84005         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84006         Include stdlib.h, for EXIT_FAILURE.
84007         Always include <string.h>, since we assume C89.
84008         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84009         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84010         Include <stddef.h> instead, since it's all we need for size_t.
84011         (PARAMS): Remove.  All uses removed.
84012         (ARRAY_CARDINALITY): Do not bother to #undef.
84013         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84014         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84015         Remove unnecessary parentheses.
84016         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84017         Insert necessary parentheses.
84018         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84019         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84020
84021 2002-11-19  Bruno Haible  <bruno@clisp.org>
84022
84023         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84024         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84025
84026         * lib/mbswidth.h (PARAMS): Remove macro.
84027         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84028         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84029
84030         * lib/gcd.h (PARAMS): Remove macro.
84031         (gcd): Use ANSI C function declarations.
84032         * lib/gcd.c (gcd): Likewise.
84033
84034 2002-11-15  Bruno Haible  <bruno@clisp.org>
84035
84036         * lib/strcspn.c: Include <stddef.h>.
84037         (strcspn): Use ANSI C function declaration. Change return type to
84038         size_t. Use NULL.
84039         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84040         (strpbrk): Use NULL.
84041         * lib/strpbrk.h (PARAMS): Remove macro.
84042         (strpbrk): Use ANSI C function declaration.
84043         * lib/strstr.c: Don't include <sys/types.h>.
84044         * lib/strstr.h (PARAMS): Remove macro.
84045         (strstr): Use ANSI C function declarations.
84046
84047 2002-11-14  Karl Berry  <karl@gnu.org>
84048
84049         * config/mkinstalldirs: `do' on separate line, instead of
84050         `for var; do'.
84051
84052 2002-11-06  Bruno Haible  <bruno@clisp.org>
84053
84054         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84055         * lib/gcd.c (gcd): Likewise.
84056
84057 2002-11-05  Bruno Haible  <bruno@clisp.org>
84058
84059         * lib/gcd.h: New file, from gettext-0.11.5.
84060         * lib/gcd.c: New file, from gettext-0.11.5.
84061
84062 2002-11-05  Bruno Haible  <bruno@clisp.org>
84063
84064         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84065         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84066         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84067         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84068
84069         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84070         <libintl.h>.
84071         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84072         <libintl.h>.
84073
84074         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84075         * lib/human.c: Include gettext.h instead of <libintl.h>.
84076         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84077         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84078         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84079         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84080         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84081         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84082         (textdomain): Remove definition.
84083         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84084
84085         * lib/long-options.c: Remove include of <libintl.h> and definition of
84086         _.
84087         * lib/same.c: Remove include of <libintl.h> and definition of _.
84088
84089 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84090
84091         * lib/config.charset: A few additions for Solaris.
84092
84093 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84094
84095         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84096         * lib/localcharset.c (locale_charset): Declare as extern "C".
84097
84098 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84099
84100         * lib/config.charset: msdos in uk_UA uses CP1125.
84101
84102 2002-11-04  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84105         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84106         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84107         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84108         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84109
84110 2002-11-04  Bruno Haible  <bruno@clisp.org>
84111
84112         * lib/localcharset.c (locale_charset): Don't return an empty string.
84113
84114 2002-11-04  Bruno Haible  <bruno@clisp.org>
84115
84116         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84117         aliases.
84118
84119 2002-11-04  Bruno Haible  <bruno@clisp.org>
84120
84121         * lib/config.charset: Update for newest glibc. Add canonical names
84122         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84123
84124 2002-11-04  Bruno Haible  <bruno@clisp.org>
84125
84126         * lib/config.charset: Add support for NetBSD.
84127
84128 2002-11-04  Bruno Haible  <bruno@clisp.org>
84129
84130         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84131
84132 2002-11-01  Bruno Haible  <bruno@clisp.org>
84133
84134         * configure.in: Add AC_CONFIG_AUX_DIR call.
84135         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84136         test/Makefile.
84137         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84138
84139 2002-09-28  Karl Berry  <karl@gnu.org>
84140
84141         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84142         installed automake until the next release, since changes have been
84143         made.
84144
84145 2002-09-25  Karl Berry  <karl@gnu.org>
84146
84147         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84148         * lib/getopt*: copy from libc/posix.
84149         * lib/gettext.h: copy from gettext.
84150         * lib/.cppi-disable: add strdup.c, gettext.h.
84151
84152 2002-09-25  Karl Berry  <karl@gnu.org>
84153
84154         * config/srclist.txt: enable gettext.h check.
84155         * config/config.{guess,sub}: update from prep.
84156         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84157                 from automake 1.6.3.
84158         See srclist*.
84159
84160 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84161
84162         * regex.c (PATFETCH): Remove the translating fetch.
84163         (PATFETCH_RAW): Rename to PATFETCH.
84164         (set_image_of_range): New fun.
84165         (SET_RANGE_TABLE_WORK_AREA): Use it.
84166         (regex_compile): Don't translate the pattern chars so eagerly.
84167         Only do it when inserting an `exactn' bytecode or when handling
84168         a char-range.
84169         (mutually_exclusive_p): Avoid empty statement.
84170
84171 2002-07-06  Jim Meyering  <meyering@lucent.com>
84172
84173         * m4/README: Don't mention Makefile.am.in.
84174         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84175
84176 2002-07-01  Jim Meyering  <meyering@lucent.com>
84177
84178         * lib/c-stack.c: Include sys/time.h.
84179         From Volker Borchert.
84180
84181 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84182
84183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84184
84185 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84186
84187         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84188         New macro.  Use it uniformly instead of
84189         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84190         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84191         reported by Vin Shelton.
84192
84193 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84194
84195         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84196         Do not assume SA_SIGINFO behavior.
84197         Bug reported by Jim Meyering on NetBSD 1.5.2.
84198
84199 2002-06-22  Jim Meyering  <meyering@lucent.com>
84200
84201         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84202         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84203
84204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84205         now that configure.ac uses AC_GNU_SOURCE.
84206         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84207         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84208
84209         Update to latest tools.  Suggestions from Paul Eggert.
84210         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84211         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84212         * m4/fnmatch.m4: Likewise.
84213         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84214         to AC_HEADER_STDBOOL
84215
84216 2002-06-22  Jim Meyering  <meyering@lucent.com>
84217
84218         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84219         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84220
84221 2002-06-22  Jim Meyering  <meyering@lucent.com>
84222
84223         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84224
84225         * lib/exitfail.c, exitfail.h: Likewise.
84226         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84227
84228         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84229         of fnmatch.h.
84230         (EXTRA_DIST): Add fnmatch_loop.c.
84231         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84232
84233         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84234         * lib/fnmatch.c: Update from diffutils-2.8.2.
84235         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84236         * lib/fnmatch.h: Remove file.
84237
84238 2002-06-21  Jim Meyering  <meyering@lucent.com>
84239
84240         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84241         * m4/mbrtowc.m4: Likewise.
84242
84243         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84244         * m4/mbswidth.m4: Reflect name change:
84245         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84246         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84247
84248         * m4/lib-link.m4: Update from gettext-0.11.2.
84249         * m4/gettext.m4: Likewise.
84250
84251         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84252         From Alfred M. Szmidt.
84253
84254 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84255
84256         * lib/file-type.h: Report an error if neither S_ISREG nor
84257         S_IFREG is defined, instead of using a test specific to glibc
84258         2.2.  This should be safe, since POSIX requires S_ISREG and
84259         Unix Version 7 had S_IFREG.  We don't need to check for
84260         <sys/types.h> since we don't use any symbols that it defines.
84261
84262 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84263
84264         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84265         $@-t, so that each temporary file name is unique and valid in the first
84266         8 characters, for operation under DOS.
84267
84268 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84269
84270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84271
84272 2002-06-15  Jim Meyering  <meyering@lucent.com>
84273
84274         Work even with DJGPP 2.03, which lacks support for symlinks.
84275         From Richard Dawe.
84276         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84277         is defined.
84278         * lib/lchown.c (S_ISLNK): Likewise.
84279
84280 2002-06-15  Jim Meyering  <meyering@lucent.com>
84281
84282         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84283         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84284         have been included before this file.
84285
84286 2002-06-14  Jim Meyering  <meyering@lucent.com>
84287
84288         * lib/file-type.h: Use the version from diffutils-2.8.2.
84289         * lib/file-type.c: Likewise.
84290
84291 2002-06-07  Jim Meyering  <meyering@lucent.com>
84292
84293         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84294         They're needed at least for NetBSD 1.5.2.
84295         ($statxfs_includes): Include those same headers.
84296         ($statxfs_includes): Include sys/vfs.h if available.
84297         ($statxfs_includes): Likewise for sys/statvfs.h.
84298         Check for the following members in both structs statfs and statvfs:
84299         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84300
84301 2002-06-01  Jim Meyering  <meyering@lucent.com>
84302
84303         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84304         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84305
84306 2002-05-28  Jim Meyering  <meyering@lucent.com>
84307
84308         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84309         Reported by Volker Borchert.
84310
84311 2002-05-27  Jim Meyering  <meyering@lucent.com>
84312
84313         Fix a problem seen only on nonconforming systems whereby ls.c's
84314         use of localtime, and then of gettimeofday would cause trouble:
84315         the localtime call used to initialize rpl_gettimeofday's save
84316         mechanism would clobber ls's current local time information so
84317         that in any long listing the first file would always be listed
84318         with date 1970-01-01.  Analysis by Volker Borchert.
84319
84320         * lib/gettimeofday.c (localtime): Undefine.
84321         (rpl_localtime): New function.
84322
84323 2002-05-27  Jim Meyering  <meyering@lucent.com>
84324
84325         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84326         localtime.
84327
84328         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84329         use the replacement function; it wouldn't resolve at link time.
84330         Reported by Volker Borchert.
84331
84332 2002-05-22  Jim Meyering  <meyering@lucent.com>
84333
84334         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84335         file-type.h.
84336         * lib/file-type.h: New file.
84337         * lib/file-type.c (file_type): New file/function.  Extracted from
84338         diffutils.
84339
84340 2002-04-30  Jim Meyering  <meyering@lucent.com>
84341
84342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84343
84344 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84345
84346         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84347
84348 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84349
84350         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84351         Do not check for alloca.h (no longer used) or stdbool.h (was never
84352         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84353
84354 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84355
84356         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84357
84358 2002-04-29  Jim Meyering  <meyering@lucent.com>
84359
84360         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84361         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84362         Use AC_FUNC_STRNLEN here instead.
84363
84364         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84365         With autoconf-2.53a, it's part of AC_PROG_CC.
84366
84367 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84368
84369         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84371
84372 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84373
84374         * lib/sig2str.h, lib/sig2str.c: New files.
84375         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84376
84377 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84378
84379         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84380         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84381         of 127, since 64 is the largest conceivable number for ancient
84382         nonstandard hosts.
84383         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84384
84385 2002-04-28  Jim Meyering  <meyering@lucent.com>
84386
84387         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84388
84389 2002-04-24  Jim Meyering  <meyering@lucent.com>
84390
84391         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84392         (jm_PREREQ): Use it.
84393
84394         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84395         mach/mach.h fcntl.h.
84396         Check for this function: setlocale.
84397
84398 2002-04-24  Jim Meyering  <meyering@lucent.com>
84399
84400         * lib/gettext.h: New file, from Gettext.
84401         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84402         (libfetish_a_SOURCES): Add gettext.h.
84403
84404 2002-04-16  Jim Meyering  <meyering@lucent.com>
84405
84406         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84407         ut_pid, ut_id, ut_exit.
84408
84409 2002-04-16  Jim Meyering  <meyering@lucent.com>
84410
84411         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84412         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84413         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84414
84415 2002-04-12  Jim Meyering  <meyering@lucent.com>
84416
84417         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84418         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84419         existence of the getmntinfo function.  Needed for Darwin 5.3.
84420
84421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84422         This is necessary at least on Darwin 5.3.
84423
84424         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84425         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84426         strnlen.o in the library, and that makes some versions of ranlib
84427         object.
84428
84429 2002-04-12  Jim Meyering  <meyering@lucent.com>
84430
84431         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84432
84433 2002-04-09  Jim Meyering  <meyering@lucent.com>
84434
84435         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84436         to be more precise.  Rather than saying we're checking whether the
84437         function `works', say what we're testing.
84438         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84439         Reported by Bruno Haible.
84440
84441 2002-03-10  Jim Meyering  <meyering@lucent.com>
84442
84443         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84444         Suggestion from Santiago Vila.
84445
84446 2002-03-08  Jim Meyering  <meyering@lucent.com>
84447
84448         * lib/rename.c: Mention that this wrapper is needed also on
84449         mips-dec-ultrix4.4 systems.
84450
84451 2002-03-02  Jim Meyering  <meyering@lucent.com>
84452
84453         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84454         not HAVE_CLOCK_SETTIME.
84455
84456 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84457
84458         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84459         Check for clock_settime.
84460
84461 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84462
84463         * lib/nanosleep.h: Rename to....
84464         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84465
84466         * lib/gettime.c: New file.
84467         * lib/settime.c: New file.
84468         * lib/stime.c: Remove.
84469
84470         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84471         timespec.h.  Remove nanosleep.h.
84472
84473 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84474
84475         * m4/acl.m4: New file.
84476         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84477         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84478
84479 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84480
84481         * lib/acl.c, lib/acl.h: New files.
84482         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84483
84484 2002-02-24  Jim Meyering  <meyering@lucent.com>
84485
84486         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84487         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84488         cause trouble.  Reported by Nelson Beebe.
84489
84490 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84491
84492         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84493         compilers that don't know that xalloc_die never returns.
84494
84495 2002-02-20  Jim Meyering  <meyering@lucent.com>
84496
84497         * lib/getdate.c: Regenerate using bison-1.33.
84498
84499 2002-02-17  Jim Meyering  <meyering@lucent.com>
84500
84501         * config/config.guess (main): Don't use `head -1'; it's no longer
84502         portable. Use `sed 1q' instead.
84503
84504 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84505
84506         * m4/codeset.m4: Upgrade to gettext-0.11.
84507         * m4/gettext.m4: Upgrade to gettext-0.11.
84508         * m4/glibc21.m4: Upgrade to gettext-0.11.
84509         * m4/iconv.m4: Upgrade to gettext-0.11.
84510         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84511         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84512         * m4/lib-ld.m4: New file, from gettext-0.11.
84513         * m4/lib-link.m4: New file, from gettext-0.11.
84514         * m4/lib-prefix.m4: New file, from gettext-0.11.
84515         * m4/progtest.m4: Upgrade to gettext-0.11.
84516
84517 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84518
84519         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84520         (jm_PREREQ): Use it.
84521
84522 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84523
84524         * lib/posixver.c, lib/posixver.h: New files.
84525         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84526
84527 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84528             Bruno Haible  <bruno@clisp.org>
84529
84530         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84531         (fwrite_success_callback): New declaration.
84532         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84533         print_unicode_char. Call failure callback instead of error.
84534         (fwrite_success_callback): New function.
84535         (exit_failure_callback): New function.
84536         (fallback_failure_callback): New function.
84537         (print_unicode_char): Call unicode_to_mb.
84538
84539 2002-01-26  Jim Meyering  <meyering@lucent.com>
84540
84541         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84542         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84543
84544 2002-01-26  Jim Meyering  <meyering@lucent.com>
84545
84546         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84547
84548 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84549
84550         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84551
84552 2002-01-22  Jim Meyering  <meyering@lucent.com>
84553
84554         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84555         Otherwise, some versions of automake would omit the rule that makes
84556         Makefile from Makefile.in.
84557
84558 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84559
84560         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84561         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84562         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84563         (memcoll): Set errno to zero if there is no error.
84564
84565         * lib/quotearg.c (quotearg_buffer_restyled):
84566         Fix bug with quoting buffers containing NUL when backslashing escapes.
84567         This bug was exposed by the other changes in this patch.
84568         (quotearg_n_options): New arg ARGSIZE.
84569         All callers changed.
84570         (quoting_options_from_style): New function.
84571         (quotearg_n_style): Use it.
84572         (quotearg_n_style_mem): New function.
84573
84574         * lib/quotearg.h (quotearg_n_style_mem): New function.
84575
84576 2002-01-19  Jim Meyering  <meyering@lucent.com>
84577
84578         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84579         Remove useless quotes: DF_PROG="df".
84580         * m4/strnlen.m4: New file.
84581
84582 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84583
84584         * lib/backupfile.c (ISDIGIT): Comment fix.
84585         * lib/getdate.y (ISDIGIT): Likewise.
84586         * lib/posixtm.c (ISDIGIT, year): Likewise.
84587         * lib/strverscmp.c (ISDIGIT): Likewise.
84588         * lib/userspec.c (ISDIGIT): Likewise.
84589
84590 2002-01-16  Jim Meyering  <meyering@lucent.com>
84591
84592         * lib/getdate.y: Add three semicolons, each just before a closing
84593         brace. Bison (as of version 1.31) no longer papers over that mistake.
84594
84595 2002-01-05  Jim Meyering  <meyering@lucent.com>
84596
84597         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84598
84599 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84600
84601         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84602         not silently exit merely because the output buffer happens to
84603         have nothing pending.
84604
84605 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84606
84607         See the big note in ../ChangeLog.
84608         * lib/human.c (suffixes): Prefer K to k for 1024.
84609         (generate_suffix_backwards): New function.
84610         (human_readable_inexact): Use it.
84611         * lib/xstrtol.c (__xstrtol): If there is no number but there
84612         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84613         Accept 'K' as well as 'k'.
84614
84615 2001-12-15  Jim Meyering  <meyering@lucent.com>
84616
84617         * lib/regex.h (__restrict_arr): Update from libc.
84618
84619         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84620         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84621         (STREQ): Define.
84622
84623 2001-12-14  Jim Meyering  <meyering@lucent.com>
84624
84625         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84626         Suggestion from Bruno Haible.
84627
84628 2001-12-10  Jim Meyering  <meyering@lucent.com>
84629
84630         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84631         xrealloc, Instead, include "xalloc.h".
84632         (initbuffer): Don't cast xmalloc return value to char*.
84633         (readline): Reword comment.
84634         Don't cast xrealloc return value to char*
84635         Return NULL, not 0.
84636
84637 2001-12-09  Jim Meyering  <meyering@lucent.com>
84638
84639         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84640         about `signed and unsigned type in conditional expression'.
84641         * lib/posixtm.c (posix_time_parse): Likewise.
84642
84643         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84644
84645         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84646         to avoid a pedantic warning.
84647
84648         * lib/getstr.c: Don't include assert.h.
84649         (getstr): Remove warning-evoking assertions.
84650         Return -1 if offset parameter is out of bounds.
84651         Change the type of a local from int to size_t.
84652
84653         * lib/strftime.c (my_strftime_localtime_r): Include this function
84654         definition in the `#if ! HAVE_TM_GMTOFF' block.
84655
84656         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84657         Include xalloc.h instead.
84658
84659 2001-12-02  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84662         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84663         included.
84664
84665         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84666         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84667
84668 2001-11-30  Akim Demaille  <akim@epita.fr>
84669
84670         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84671         before being defined.
84672
84673 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84674
84675         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84676         First arg is int, not unsigned.
84677         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84678         (SIZE_MAX, UINT_MAX): New macros.
84679         (quotearg_n_options): Abort if N is negative.
84680         Avoid overflow check on hosts where size_t is 64 bits and int
84681         is 32 bits, as overflow is impossible there.
84682         Fix off-by-one typo that caused unnecessary reallocation.
84683
84684 2001-11-27  Jim Meyering  <meyering@lucent.com>
84685
84686         * lib/tempname.c: Merge with version from libc.
84687         * lib/regex.c: Likewise.
84688
84689         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84690         systems for which STDC_HEADERS is 0, it was not included, resulting in
84691         a warning about an integer-to-pointer conversion problem with getenv.
84692         Reported by Volker Borchert.
84693
84694 2001-11-26  Jim Meyering  <meyering@lucent.com>
84695
84696         * lib/gtod.h: Remove file.
84697         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84698         * lib/gettimeofday.c: Don't include gtod.h.
84699         (GTOD_init): Remove function.
84700         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84701         Suggestion from Volker Borchert.
84702
84703 2001-11-23  Jim Meyering  <meyering@lucent.com>
84704
84705         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84706         it.
84707         * lib/hash.c (struct hash_table): Define it here instead.
84708
84709 2001-11-22  Jim Meyering  <meyering@lucent.com>
84710
84711         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84712
84713 2001-11-20  Jim Meyering  <meyering@lucent.com>
84714
84715         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84716         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84717
84718 2001-11-19  Jim Meyering  <meyering@lucent.com>
84719
84720         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84721         directory.  Use "conftestXXXXXX" as the template.
84722         Suggestion from Paul Eggert.
84723
84724         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84725         immediately, so the test doesn't mistakenly hit the max-open-files
84726         limit.
84727
84728 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84729
84730         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84731         (TEMPORARIES): New macro.
84732         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84733         removes an artificial limitation (e.g. HP-UX 10.20, where
84734         TMP_MAX is 17576).
84735
84736 2001-11-18  Jim Meyering  <meyering@lucent.com>
84737
84738         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84739
84740 2001-11-18  Jim Meyering  <meyering@lucent.com>
84741
84742         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84743         on SunOS 4.
84744
84745         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84746         files will be created before anything else.
84747
84748 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84749
84750         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84751         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84752
84753 2001-11-17  Jim Meyering  <meyering@lucent.com>
84754
84755         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84756         Prompted by a report from Bob Proulx.
84757
84758         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84759         Instead, require UTILS_FUNC_MKSTEMP.
84760
84761 2001-11-17  Jim Meyering  <meyering@lucent.com>
84762
84763         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84764         Now, that's done as part of AC_FUNC_STRTOD.
84765
84766 2001-11-17  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84769         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84770         rather than group writable.  Patch by Juan F. Codagnone.
84771
84772         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84773         xrealloc, Instead, include "xalloc.h".
84774
84775         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84776         Remove explicit declarations of xmalloc, xrealloc,
84777         and xstrdup.  Instead, include "xalloc.h".
84778
84779         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84780         unlocked-io.h.
84781         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84782         Likewise.
84783         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84784
84785         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84786         Reported by Padraig Brady.
84787
84788         * lib/mkstemp.c: #undef mkstemp.
84789         Include config.h.
84790         (rpl_mkstemp): Rename from mkstemp.
84791         Protoize.
84792
84793 2001-11-16  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84796         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84797         determine the amount of total physical memory, use pstat_getstatic.
84798         HPUX-11 doesn't define _SC_PHYS_PAGES.
84799         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84800         If sysconf couldn't be used to determine the amount of available
84801         physical memory, use both pstat_getstatic and pstat_getdynamic.
84802         Based on a patch from Bob Proulx.
84803
84804 2001-11-10  Jim Meyering  <meyering@lucent.com>
84805
84806         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84807         (jm_PREREQ): Use it.
84808
84809 2001-11-09  Jim Meyering  <meyering@lucent.com>
84810
84811         * m4/jm-macros.m4: Require autoconf-2.52f.
84812         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84813         Use these AC_-prefixed names, not the AM_-prefixed ones.
84814
84815         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84816
84817 2001-11-05  Jim Meyering  <meyering@lucent.com>
84818
84819         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84820
84821 2001-11-04  Jim Meyering  <meyering@lucent.com>
84822
84823         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84824         $DEFS.
84825
84826 2001-11-03  Jim Meyering  <meyering@lucent.com>
84827
84828         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84829         of AC_DEFUN.
84830
84831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84832         know the name of the variable in the macro definition.
84833
84834 2001-11-03  Jim Meyering  <meyering@lucent.com>
84835
84836         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84837         in argmatch_to_argument call.
84838
84839         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84840         argument.
84841
84842         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84843         e.g., a fault due to an attempt to free a NULL pointer.
84844
84845 2001-11-01  Jim Meyering  <meyering@lucent.com>
84846
84847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84848         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84849
84850 2001-11-01  Jim Meyering  <meyering@lucent.com>
84851
84852         * lib/dirfd.c, lib/dirfd.h: New files.
84853         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84854
84855         * lib/hash.c (hash_print) [TESTING]: Clean up.
84856
84857 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84858
84859         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84860         to avoid a warning if -Wall.
84861
84862 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84863
84864         * README: New file
84865         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84866         (per RMS's instructions, this is now the canonical source)
84867         * lgpl/, gpl/: New directories.
84868
84869 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84870
84871         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84872
84873 2001-10-21  Jim Meyering  <meyering@lucent.com>
84874
84875         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84876         this code would end up calling gettext even in packages built
84877         with --disable-nls.
84878         * lib/getopt.c (_): Likewise.
84879         * lib/regex.c (_): Likewise.
84880
84881 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84882
84883         * m4/error.m4 (jm_PREREQ_ERROR):
84884         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84885         AC_FUNC_STRERROR_R does that.
84886         Check for strerror declaration.
84887
84888         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84889         are supposed to have them these days.
84890         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84891         Merge changes from latest Autoconf CVS.
84892         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84893         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84894         POSIX decided to standardize on the int flavor of strerror_r.
84895
84896 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84897
84898         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84899         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84900         Use strerror_r that is only a macro, even if it is not a function.
84901         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84902         (private_strerror): Use prototypes, not old-style function definition.
84903         (print_errno_message): New function.
84904         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84905         char*-flavored one.
84906         (error_tail, error, error_at_line): Use it.
84907
84908 2001-10-11  Jim Meyering  <meyering@lucent.com>
84909
84910         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84911         and quote_n (1, ... to avoid clobbering a buffer.
84912
84913 2001-10-05  Jim Meyering  <meyering@lucent.com>
84914
84915         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84916         hash-pjw.h.
84917         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84918         * lib/hash-pjw.h: New file.
84919
84920 2001-09-30  Jim Meyering  <meyering@lucent.com>
84921
84922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84923         `struct fsstat' has the `f_fstypename' member.
84924         Use that to define FS_TYPE, which is now used to make
84925         the getfsstat link test tighter.
84926
84927 2001-09-30  Jim Meyering  <meyering@lucent.com>
84928
84929         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84930         Include <sys/ucred.h>, for Apple Darwin.
84931         Include sys/mount.h and sys/fs_types.h only if available.
84932         (FS_TYPE): Define.
84933         (read_filesystem_list): Use FS_TYPE.
84934
84935 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84936
84937         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84938         a boolean context.
84939
84940 2001-09-29  Jim Meyering  <meyering@lucent.com>
84941
84942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84943         [one-argument getmntent function]): Include stdio.h before mntent.h.
84944         SunOS 4.1.x needs it for the declaration of `FILE'.
84945         Patch by Volker Borchert.
84946
84947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84948         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84949         sys/fs_types.h, and make the link-test for getfsstat guard #include
84950         directives with appropriate #if HAVE_*_H tests so that we can
84951         detect getfsstat on Apple Darwin1.3.7 systems.
84952         Reported by Nelson Beebe.
84953         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84954
84955 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84956
84957         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84958         #defines strtoimax.  Also treat the other strto* functions
84959         like strtoimax.
84960
84961         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84962         Check for strtoul and strtoumax,
84963         as those declarations are made even in the signed case.
84964         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84965         Likewise, for strtol and strtoimax.
84966
84967 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84968
84969         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84970         #defines strtoimax.  Also treat the other strto* functions
84971         like strtoimax.
84972
84973         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84974         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84975         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84976
84977 2001-09-26  Jim Meyering  <meyering@lucent.com>
84978
84979         Most macros in unlocked-io.h had the wrong number of arguments.
84980         * lib/gen-uio: New script.
84981         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84982         * lib/unlocked-io.hin: Remove file.
84983         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84984         rather than trying to embed it here.
84985         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84986         Reported by Padraig Brady.
84987
84988 2001-09-25  Volker Borchert  <bt@teknon.de>
84989
84990         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84991         `result'.
84992
84993 2001-09-24  Jim Meyering  <meyering@lucent.com>
84994
84995         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84996
84997 2001-09-23  Jim Meyering  <meyering@lucent.com>
84998
84999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85000         instead of the mere test for existence of mntent.h.  The latter
85001         would get a false-positive on AIX 3.4 systems.
85002         In the outer getmntent if-block, don't die if neither of the getmntent
85003         tests succeeds.  Instead, just fall through and continue with the
85004         remaining tests.
85005
85006 2001-09-23  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/mountlist.c: Remove useless parentheses in #if directives.
85009         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85010         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85011
85012 2001-09-22  Jim Meyering  <meyering@lucent.com>
85013
85014         * m4/gettext.m4: New file.  From gettext.
85015         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85016         * m4/progtest.m4: Likewise
85017         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85018         * m4/glibc21.m4: Likewise.
85019
85020         * m4/libintl.m4: Remove.  No longer used.
85021
85022 2001-09-22  Jim Meyering  <meyering@lucent.com>
85023
85024         * lib/localcharset.c: Update from latest gettext.
85025         * lib/config.charset: Likewise.
85026
85027 2001-09-20  Jim Meyering  <meyering@lucent.com>
85028
85029         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85030         strtoimax.
85031         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85032         strtoumax.
85033
85034 2001-09-20  Jim Meyering  <meyering@lucent.com>
85035
85036         * lib/xstrtol.c (strtoimax): Guard declaration with
85037         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85038         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85039         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85040         (strtoumax): Likewise, for completeness (it wasn't necessary).
85041
85042 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85043
85044         * lib/strtoimax.c (HAVE_LONG_LONG):
85045         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85046         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85047         to work around bug in IBM C compiler.
85048
85049 2001-09-17  Jim Meyering  <meyering@lucent.com>
85050
85051         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85052         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85053         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85054         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85055         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85056         whenever the right hand side need not be expanded by the shell.
85057
85058 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85059
85060         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85061         library.  It's not correct, as some older glibcs are buggy.
85062         fnmatch wasn't fixed until glibc 2.2.
85063
85064         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85065         special shell magic here.
85066
85067 2001-09-16  Jim Meyering  <meyering@lucent.com>
85068
85069         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85070         * m4/jm-macros.m4: Require it.
85071
85072 2001-09-16  Jim Meyering  <meyering@lucent.com>
85073
85074         * lib/mkdir.c: New file.
85075
85076 2001-09-15  Jim Meyering  <meyering@lucent.com>
85077
85078         * m4/jm-macros.m4: Check for help2man.
85079
85080 2001-09-11  Jim Meyering  <meyering@lucent.com>
85081
85082         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85083         The body, by Paul Eggert, was moved here from configure.in.
85084         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85085
85086 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85087
85088         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85089         (jm_PREREQ): Use it.
85090
85091 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85092
85093         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85094         Use ssize_t, not int, to store result of readlink.
85095         Check for ssize_t overflow as well as size_t overflow,
85096         as POSIX says the result of readlink is implementation-defined
85097         when ssize_t overflows.
85098         Remove unnecessary cast to char*.
85099         Use free+malloc instead of realloc, as the storage doesn't need
85100         to be preserved and it's clearer and can be more efficient that way.
85101         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85102         * lib/xreadlink.h (xreadlink): Update prototype.
85103
85104 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85105
85106         * lib/xgetcwd.c: Revert some of the previous change; intead,
85107         fix the HAVE_GETCWD_NULL code to behave more like the
85108         !HAVE_GETCWD_NULL code used to.
85109
85110         Include "xalloc.h".
85111         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85112         invoke xalloc_die.
85113
85114 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85115
85116         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85117         sys/param.h, as pathmax.h includes them.
85118
85119 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85120
85121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85122         (jm_PREREQ_XGETCWD): New macro.
85123
85124         * m4/getcwd.m4: New file.
85125
85126 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85127
85128         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85129         like the HAVE_GETCWD_NULL code.
85130         Include pathmax.h if not HAVE_GETCWD.
85131         Do not include xalloc.h.
85132         (INITIAL_BUFFER_SIZE): New symbol.
85133         Do not use xmalloc / xrealloc, since the caller is responsible for
85134         handling errors.  Preserve errno around `free' during failure.
85135         Do not overrun buffer when using getwd.
85136
85137 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85138
85139         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85140         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85141         getcwd (NULL, 0).
85142
85143 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85144
85145         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85146         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85147         spotted by Jim Meyering.
85148
85149 2001-09-03  Jim Meyering  <meyering@lucent.com>
85150
85151         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85152         failure.
85153
85154 2001-09-02  Jim Meyering  <meyering@lucent.com>
85155
85156         * lib/error.c: Update from GNU libc.
85157
85158 2001-09-01  Jim Meyering  <meyering@lucent.com>
85159
85160         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85161         Used by df.
85162
85163 2001-09-01  Jim Meyering  <meyering@lucent.com>
85164
85165         * lib/xreadlink.c: New file.
85166         * lib/xreadlink.h: New file.
85167         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85168         xreadlink.h.
85169
85170         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85171         doesn't conflict with sparc Solaris 7's definition in
85172         /usr/include/sys/int_types.h.
85173
85174         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85175         files.
85176         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85177         and strncasecmp as r-values.  Unixware didn't have declarations.
85178
85179 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85180
85181         * lib/xstrtol.h: Add copyright notice.
85182         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85183         LONGINT_INVALID_SUFFIX_CHAR.
85184
85185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85186
85187         * lib/xstrtol.c (strtoimax): New decl.
85188
85189 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85190
85191         * lib/xgetcwd.c: Don't include pathmax.h.
85192         Include stdlib.h and unistd.h if available.
85193         Include xalloc.h.
85194         (xmalloc, xstrdup, free): Remove decls.
85195         (xgetcwd): Don't assume sizes fit in unsigned.
85196         Check for overflow when computing sizes.
85197         Simplify reallocation code.
85198
85199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85200
85201         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85202         a directory's st_size can have an arbitrary value, so the old
85203         usage could waste an arbitrary amount of memory.  All uses
85204         changed.
85205         * lib/savedir.h: Update prototype.
85206
85207 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85208
85209         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85210
85211         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85212         old strtoimax.c.
85213
85214         Also, make the following further changes to make this file's
85215         configuration more similar to that of strtol.c:
85216         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85217         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85218         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85219         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85220         changed to signed values.
85221
85222         And make the following changes as well:
85223         Fix copyright notice, as 1999 was missing.
85224         (verify): New macro.
85225         (strtoimax): Check sizes at compile-time, not run-time.
85226         Prefer strtol to strtoll if both work.
85227         (main): Remove; it was not that useful and was a pain to maintain.
85228
85229         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85230
85231 2001-08-31  Jim Meyering  <meyering@lucent.com>
85232
85233         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85234         Use an initial, malloc'd, buffer of length 128 rather than
85235         a statically allocated one of length 1024.
85236
85237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85238
85239         Simplify code, partly by assuming autoconf 2.52 semantics.
85240
85241         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85242
85243         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85244         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85245         All uses removed.
85246         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85247         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85248         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85249         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85250         jm_AC_HEADER_INTTYPES_H.
85251         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85252
85253         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85254
85255         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85256         Quote first arg of AC_DEFUN.
85257         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85258         since they are needed to parse the include file even if we need
85259         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85261         but with opposite signedness.
85262
85263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85264
85265         Merge 'exclude' changes from tar 1.13.22.
85266         This fixes one or two unlikely storage allocation overflow bugs,
85267         but doesn't change user-visible behavior otherwise.
85268
85269 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85270
85271         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85272         (jm_PREREQ_EXCLUDE): New macro.
85273
85274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85275
85276         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85277         tm to be declared.
85278
85279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85280
85281         * lib/hash.c: Remove '2001' from copyright notice.
85282
85283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85284
85285         * lib/full-write.h: New file.
85286         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85287         * lib/full-write.c: Correct credits, as cccp.c no longer
85288         exists and anyway it was so heavily changed from the old cccp
85289         code as to be unrecognizable.  Include full-write.h.
85290         (full_write): Return size_t, with short writes meaning failure.
85291         All callers changed.  This fixes a bug with large buffers
85292         on 64-bit hosts.
85293         * lib/utime.c: Include full-write.h.
85294
85295 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85296
85297         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85298         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85299         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85300         Include if available.
85301         (<xalloc.h>): Include
85302         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85303         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85304         collide with FNM macros.
85305         (struct patopts): New struct.
85306         (struct exclude): Use it, as exclude patterns now come with options.
85307         (new_exclude): Support above changes.
85308         (new_exclude, add_exclude_file):
85309         Initial size must now be a power of two to simplify overflow checking.
85310         (free_exclude, fnmatch_no_wildcards): New function.
85311         (excluded_filename): No longer requires options arg, as the options
85312         are determined by add_exclude.  Now returns bool, not int.
85313         (excluded_filename, add_exclude):
85314         Add support for the fancy new exclusion options.
85315         (add_exclude, add_exclude_file): Now takes int options arg.
85316         Check for arithmetic overflow when computing sizes.
85317         (add_exclude_file): xrealloc might modify errno, so don't
85318         realloc until after errno might be used.
85319
85320         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85321         New macros.
85322         (free_exclude): New decl.
85323         (add_exclude, add_exclude_file): Now takes int options arg.
85324         (excluded_filename): No longer requires options arg, as the options
85325         are determined by add_exclude.  Now returns bool, not int.
85326
85327 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85328
85329         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85330
85331 2001-08-27  Jim Meyering  <meyering@lucent.com>
85332
85333         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85334
85335         * lib/version-etc.c (N_): Remove definition.
85336         Revert most of last change.
85337         Instead, simply don't mark the `Copyright...' string for translation.
85338         Based on advice from Paul Eggert.
85339
85340         * lib/strtoxmax.c: Tweak comment.
85341
85342 2001-08-26  Jim Meyering  <meyering@lucent.com>
85343
85344         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85345
85346         * m4/xstrtoimax.m4: New file.
85347         * m4/xstrtoumax.m4: Add comments explaining why we
85348         AC_REPLACE_FUNCS(strtol).
85349
85350 2001-08-26  Jim Meyering  <meyering@lucent.com>
85351
85352         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85353         of copyright with `%s' so translators don't get an untranslated
85354         message in 2002.
85355         (COPYRIGHT_YEAR): Define.
85356         (version_etc): Use fprintf rather than fputs.
85357         Suggestion from Ulrich Drepper.
85358
85359         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85360
85361         * lib/strtoll.c: New file, from GNU libc.
85362         * lib/xstrtoimax.c: New file.
85363
85364         * lib/xstrtol.h: Add xstrtoimax.
85365         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85366         * lib/strtoimax.c: New file.  Likewise, but first define
85367         STRTOUXMAX_SIGNED.
85368
85369         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85370         ...
85371         * lib/strtoxmax.c: ... then renamed to this.
85372
85373 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85374
85375         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85376         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85377         (jm_AC_TYPE_INTMAX_T): New macro.
85378         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85379
85380         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85381
85382         * m4/longlong.m4: Renamed from ulonglong.m4.
85383         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85384         * m4/uintmax_t.m4: Removed.
85385
85386 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85387
85388         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85389         Port to Solaris 8, where 'sed' requires a space after the 'r'
85390         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85391         Redirect output to $tmp just once.
85392
85393 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85394
85395         * lib/addext.c (<errno.h>): Include.
85396         (errno): Declare if not defined.
85397         (addext): Work correctly when pathconf returns -1 and leaves
85398         errno alone because there is no limit.  Also, work even if
85399         pathconf returns a value greater than SIZE_MAX.
85400
85401 2001-08-12  Jim Meyering  <meyering@lucent.com>
85402
85403         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85404         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85405         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85406         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85407         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85408         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85409         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85410         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85411         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85412         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85413         utime.m4, utimes.m4, xstrtoumax.m4:
85414         Quote the first argument in each use of AC_DEFUN.
85415
85416 2001-08-12  Jim Meyering  <meyering@lucent.com>
85417
85418         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85419         Simply `return getcwd (NULL, 0);'.
85420         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85421         Use 1300 as initial value for length, not PATH_MAX.
85422
85423         * lib/pathmax.h: Clean up cpp syntax.
85424
85425 2001-08-12  Jim Meyering  <meyering@lucent.com>
85426
85427         * lib/gettimeofday.c: New file.
85428         * lib/gtod.h: New file.
85429         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85430
85431 2001-08-05  Jim Meyering  <meyering@lucent.com>
85432
85433         * m4/jm-macros.m4: Require autoconf-2.52.
85434
85435 2001-08-04  Jim Meyering  <meyering@lucent.com>
85436
85437         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85438         stmt, to get in sync with glibc.
85439
85440 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85441
85442         The following changes are from gettext 0.10.39 as maintained by
85443         Bruno Haible.
85444
85445         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85446         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85447         with inverted sense.  All uses changed.
85448
85449         * lib/mbswidth.c: Don't include <limits.h>.
85450         Include <stdlib.h> and <string.h> unconditionally.
85451         (iswcntrl, mbsinit, ISCNTRL): New macros.
85452         (mbsnwidth): Use K&R style function declarations.
85453         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85454         can optimize it when MB_CUR_MAX == 1.
85455         The width of control characters is zero, not 1.
85456
85457 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85458
85459         The following changes are from gettext 0.10.39 as maintained by
85460         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85461
85462         * m4/codeset.m4: Upgrade to serial AM1.
85463         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85464         all uses changed.  Quote first arg of AC_DEFUN.
85465         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85466
85467         * m4/iconv.m4: Upgrade to serial AM2.
85468         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85469         Add --with-libconv-prefix.
85470         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85471         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85472         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85473         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85474         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85475
85476         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85477         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85478         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85479         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85480         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85481         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85482         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85483         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85484         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85485
85486         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85487         string.h any more.
85488
85489         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85490         not the default value.
85491
85492         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85493         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85494         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85495         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85496         Also check for iswcntrl, used for wcwidth fallback.
85497         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85498         to Autoconf 2.13.
85499
85500 2001-08-03  Jim Meyering  <meyering@lucent.com>
85501
85502         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85503         as it was in the original.  Reported by Paul Eggert.
85504
85505 2001-07-16  Jim Meyering  <meyering@lucent.com>
85506
85507         * m4/gettimeofday.m4: New file.
85508         Prompted by a report from Bernhard Baehr.
85509
85510 2001-07-15  Jim Meyering  <meyering@lucent.com>
85511
85512         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85513         stuff. Now it's in ../Makefile.cfg.
85514
85515 2001-07-15  Jim Meyering  <meyering@lucent.com>
85516
85517         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85518         (BUILT_SOURCES): Add unlocked-io.h.
85519         (io_functions): Define.
85520         (unlocked-io.h): New rule.
85521         (DISTCLEANFILES): Add unlocked-io.h.
85522         (all-local): Depend on unlocked-io.h, to ensure it is created.
85523
85524         * lib/unlocked-io.hin: New file
85525
85526         * lib/regex.c: Update from glibc.
85527
85528 2001-07-05  Jim Meyering  <meyering@lucent.com>
85529
85530         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85531         recommendation.
85532         (libfetish_a_SOURCES): Put all .h files here instead.
85533         Remove a thus-exposed (better checks in automake) duplicate and
85534         two unnecessary .h files.
85535
85536 2001-07-04  Jim Meyering  <meyering@lucent.com>
85537
85538         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85539         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85540         distcheck failure.
85541
85542 2001-07-02  Jim Meyering  <meyering@lucent.com>
85543
85544         The following changes were prompted by suggestions from Bruno Haible.
85545
85546         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85547         is now generated.
85548         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85549         definition of EXTRA_DIST.
85550         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85551         ensure that the generated file is created/updated whenever the list
85552         of $(unlocked_functions) is changed.
85553         (jm-glibc-io.m4): New rule.
85554         (unlocked-io.h): New rule -- currently unused.
85555
85556 2001-06-24  Jim Meyering  <meyering@lucent.com>
85557
85558         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85559         unmatched right bracket, rather than kludging it with an extra,
85560         falsely-matching quote in a comment.  Patch by Akim Demaille.
85561
85562 2001-06-11  Jim Meyering  <meyering@lucent.com>
85563
85564         * lib/regex.c: Update from GNU libc.
85565
85566 2001-05-27  Jim Meyering  <meyering@lucent.com>
85567
85568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85569         Check for ut_type in struct utmp.
85570
85571 2001-05-27  Jim Meyering  <meyering@lucent.com>
85572
85573         * lib/readutmp.h (UT_TYPE): Define.
85574
85575 2001-05-24  Jim Meyering  <meyering@lucent.com>
85576
85577         * lib/argmatch.c: Include "quote.h".
85578         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85579         quote function.  Reported by Göran Uddeborg.
85580
85581 2001-05-22  Jim Meyering  <meyering@lucent.com>
85582
85583         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85584         now that we use the package-supplied version unconditionally.
85585         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85586
85587 2001-05-21  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85590         shell syntax errors.
85591
85592 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85593
85594         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85595
85596 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85597
85598         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85599         Don't bother to check library strftime, since
85600         we'll be using our own my_strftime function anyway.
85601         Define my_strftime instead of strftime.
85602
85603 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85604
85605         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85606         which is not yet declared.
85607
85608 2001-05-15  Jim Meyering  <meyering@lucent.com>
85609
85610         * m4/regex.m4: Use proper quoting so brackets appear in the test
85611         program.
85612         Reported by, and with help from, Bruno Haible.
85613
85614 2001-05-13  Jim Meyering  <meyering@lucent.com>
85615
85616         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85617         undefined.
85618
85619 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85620
85621         dirname code cleanup.  base_name now behaves more compatibly
85622         with POSIX basename when given file names that have trailing
85623         slashes, and similarly for dir_name.  Add new primitives
85624         base_len and dir_len.  Put the directory-name-related decls
85625         into dirname.h.
85626
85627         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85628         * lib/backupfile.c (base_name): Likewise.
85629         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85630         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85631         * lib/makepath.c (strip_trailing_slashes): Likewise.
85632         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85633         ISSLASH): Likewise.
85634         * lib/rename.c (strip_trailing_slashes): Likewise.
85635         * lib/same.c (base_name): Likewise.
85636         * lib/stripslash.c (ISSLASH): Likewise.
85637
85638         * lib/addext.c: Include <dirname.h> after size_t is defined.
85639         * lib/backupfile.c: Likewise.
85640
85641         * lib/addext.c (addext): Use base_len to trim redundant
85642         trailing slashes instead of doing it ourselves.
85643         But do not trim the last slash if it is not redundant.
85644
85645         * lib/backupfile.c (find_backup_file_name,
85646         max_backup_version): Use base_len instead of rolling it ourselves.
85647         Handle the case of "" and (on DOS) "C:" correctly.
85648
85649         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85650         needed. Include <string.h>, <dirname.h>.
85651         (base_name): Allow file names ending in slashes, other than names
85652         that are all slashes.  In this case, return the basename followed
85653         by the slashes.  This is more general, and can be used in places
85654         where the original base_name purposely had an assertion failure.
85655         (base_len): New function.
85656
85657         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85658         Do not include <assert.h>; no longer needed.
85659         Include xalloc.h.
85660         (memrchr): Remove decl.
85661         (dir_name_r): Remove.
85662         (dir_len): Renamed from dirlen.  All callers changed.
85663         Rewrite in terms of base_name, for simplicity and consistency.
85664         (dir_name): Never return NULL.  All callers changed.
85665         Do not include <stdlib.h> in test program; no longer needed.
85666         return 0; is fine for test program.
85667
85668         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85669         New macros.
85670         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85671
85672         * lib/path-concat.c (path_concat): Use base_len to compute
85673         base length, not strlen; this means we cannot rely on memcpy
85674         to null-terminate.
85675
85676         * lib/same.c (STREQ): Remove.
85677         (same_name): Handle the case where the basename ends in trailing '/'.
85678
85679         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85680         a slash was stripped.  Do not strip the last slash after a
85681         file system prefix.
85682
85683 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85684
85685         * lib/Makefile.am (libfetish_a_SOURCES):
85686         Add strftime.c, since we now compile it on all hosts.
85687
85688         * lib/strftime.c (my_strftime):
85689         Define to nstrftime if emacs, but only if my_strftime is not defined.
85690         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85691         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85692         Add one more extra argument: a nanoseconds value.
85693         All uses changed.
85694         (ns): New macro.
85695         (my_strftime function): Add %N format.
85696         (emacs_strftimeu): Renamed from emacs_strftime,
85697         with extra ut argument.
85698
85699 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85700
85701         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85702
85703 2001-04-21  Jim Meyering  <meyering@lucent.com>
85704
85705         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85706         doesn't interfere.
85707
85708 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85709
85710         * m4/ftruncate.m4: Check for chsize.
85711         Link with ftruncate.o unconditionally if ftruncate is missing.
85712         This was required when cross-compiling to i586-mingw32msvc.
85713
85714 2001-04-08  Jim Meyering  <meyering@lucent.com>
85715
85716         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85717         recomputed; that's necessary when the offset spans a DST transition.
85718         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85719
85720 2001-04-02  Jim Meyering  <meyering@lucent.com>
85721
85722         * lib/regex.h, regex.c: Update from GNU libc.
85723
85724 2001-03-24  Jim Meyering  <meyering@lucent.com>
85725
85726         * m4/jm-macros.m4: Require autoconf-2.49d.
85727
85728 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85729
85730         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85731
85732 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85733
85734         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85735
85736 2001-03-17  Jim Meyering  <meyering@lucent.com>
85737
85738         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85739         now that the version in autoconf is equivalent.
85740         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85741
85742         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85743         Suggestion from Akim Demaille.
85744
85745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85746         (jm_PREREQ_TEMPNAME): New function.
85747
85748 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85749
85750         * lib/tempname.c (uint64_t): Define to uintmax_t if
85751         not defined, and if UINT64_MAX is not defined.
85752         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85753         Reported by John David Anglin.
85754
85755 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85756
85757         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85758         resolve alias if codeset is empty.
85759         * lib/config.charset (BeOS): Use wildcard syntax.
85760
85761 2001-03-13  Jim Meyering  <meyering@lucent.com>
85762
85763         * lib/path-concat.c (path_concat)
85764         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85765         concatenating e.g., `C:' and `foo'.
85766         From Bruno Haible.
85767
85768 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85769
85770         * lib/localcharset.c (locale_charset): Don't use
85771         setlocale(LC_CTYPE,NULL). Don't return NULL.
85772         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85773
85774 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85775
85776         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85777         support for DOS/DJGPP.
85778
85779 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85780
85781         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85782         lacks mkstemp.  Compile our own tempname.c if we compile our own
85783         mkstemp.c, as mkstemp relies on tempname.
85784
85785 2001-03-01  Jim Meyering  <meyering@lucent.com>
85786
85787         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85788         AH_VERBATIM really does output its argument verbatim.
85789
85790 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85791
85792         * lib/Makefile.am (libfetish_a_SOURCES):
85793         Add dup-safer.c, fopen-safer.c.
85794         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85795
85796         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85797         * lib/unistd-safer.h: New files.
85798
85799 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85800
85801         The mkstemp replacement is taken from glibc 2.2.2, with some
85802         portability fixes for use outside glibc, as follows:
85803
85804         * lib/tempname.c (struct_stat64): New macro.
85805         (direxists, __gen_tempname): Use it.
85806         This avoids a portability problem with Solaris 8.
85807
85808         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85809         (<stddef.h>, <stdint.h>, <string.h>):
85810         Include only if STDC_HEADERS || _LIBC.
85811         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85812         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85813         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85814         (__set_errno): Define this macro if <errno.h> doesn't.
85815         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85816         Define these macros if <stdio.h> doesn't.
85817         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85818         Define these macros if <sys/stat.h>
85819         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85820         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85821         __xstat64): Define if not _LIBC.
85822         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85823         (__gen_tempname): Invoke gettimeofday only if
85824         HAVE_GETTIMEOFDAY || _LIBC;
85825         otherwise, fall back on plain "time".
85826         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85827
85828         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85829
85830         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85831
85832 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85833
85834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85835
85836 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85837
85838         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85839         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85840         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85841         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85842
85843 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85844
85845         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85846         Remove workaround macros for hosts that have mbrtowc but not
85847         mbstate_t, as we now insist on proper declarations for both
85848         before using mbrtowc.
85849
85850 2001-02-17  Jim Meyering  <meyering@lucent.com>
85851
85852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85853         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85854         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85855         UnixWare 7.1.1.
85856
85857         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85858         rather than AC_CACHE_VAL.
85859
85860 2001-02-17  Jim Meyering  <meyering@lucent.com>
85861
85862         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85863         around included file name.
85864
85865         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85866
85867         * lib/strftime.c: Update from GNU libc (the only changes were to
85868         comments).
85869
85870 2001-02-17  Jim Meyering  <meyering@lucent.com>
85871
85872         * lib/regex.c: Update from libc.
85873
85874 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85875
85876         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85877         clash.
85878
85879 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85880
85881         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85882         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85883         Reported by Mark Hounschell via Paul Eggert.
85884
85885 2001-02-07  Jim Meyering  <meyering@lucent.com>
85886
85887         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85888
85889 2001-02-05  Jim Meyering  <meyering@lucent.com>
85890
85891         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85892         it includes the patch required for `large file' support with at least
85893         HP-UX's 10.20 /bin/cc.
85894
85895 2001-02-03  Jim Meyering  <meyering@lucent.com>
85896
85897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85898         AS_IF, now that it works once again (mysteriously).
85899         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85900
85901 2001-01-30  Jim Meyering  <meyering@lucent.com>
85902
85903         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85904         * m4/chown.m4: Rename conftestchown to conftest.chown.
85905         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85906         s/conftestdir2/conftest.d2/.
85907         * m4/utimes.m4: s/conftestdata/conftest.data/
85908         Inspired by Pavel Roskin's change in autoconf.
85909
85910 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85911
85912         * lib/config.charset: Update for FreeBSD 4.2.
85913
85914 2001-01-27  Jim Meyering  <meyering@lucent.com>
85915
85916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85917         a use of AS_IF.
85918         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85919
85920 2001-01-26  Jim Meyering  <meyering@lucent.com>
85921
85922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85923         quotearg.c includes it.
85924
85925 2001-01-26  Jim Meyering  <meyering@lucent.com>
85926
85927         * lib/quotearg.c: Include stddef.h.
85928         * lib/quote.c: Include stddef.h.
85929         Reported by Axel Kittenberger.
85930
85931         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85932         line in double quotes so that it evokes a better diagnostic.
85933         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85934         Reported by Axel Kittenberger.
85935
85936 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85937
85938         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85939         as if it was a `charset'.
85940
85941 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85942
85943         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85944         has const.
85945
85946 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85947
85948         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85949         to avoid a warning.  Add back 'const' to inptr.
85950
85951 2001-01-20  Jim Meyering  <meyering@lucent.com>
85952
85953         Be sure that headers are checked before used in code compiled
85954         for the type checks.
85955         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85956         In place of that, invoke jm_CHECK_ALL_TYPES.
85957         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85958         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85959         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85960         The check for ssize_t was mistakenly run before the test for unistd.h.
85961
85962         The configure-time check for stdbool.h was missing.
85963         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85964         (jm_PREREQ_HASH): New function.
85965
85966 2001-01-17  Jim Meyering  <meyering@lucent.com>
85967
85968         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85969         for autoconf-2.49c.
85970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85971
85972 2001-01-16  Jim Meyering  <meyering@lucent.com>
85973
85974         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85975         From Bruno Haible.
85976
85977 2001-01-14  Jim Meyering  <meyering@lucent.com>
85978
85979         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85980         foo and bar.  Create conftestdir/ in the script, not in the C code.
85981         Remove directories in the script, not in the C code.
85982         Remove conftestdir{,2} before trying to create the directory.
85983         Make the entire configure script fail if the mkdir fails.
85984
85985 2001-01-14  Jim Meyering  <meyering@lucent.com>
85986
85987         * lib/rename.c: New file.  From Volker Borchert.
85988         Include stdlib.h, string.h or strings.h, and xalloc.h.
85989         Use strip_trailing_slashes rather than open-coding it.
85990
85991 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85992
85993         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85994
85995 2001-01-03  Jim Meyering  <meyering@lucent.com>
85996
85997         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85998         of local `inptr' to avoid warning with some system declarations of
85999         iconv.
86000
86001 2001-01-02  Volker Borchert  <bt@teknon.de>
86002
86003         * m4/rename.m4: New file.
86004         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86005
86006 2001-01-01  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86009         even on systems with utmpx.h.  It's necessary for the declaration of
86010         utmp's ut_user member.  Reported by Andreas Jaeger.
86011
86012         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86013         available. They are required for the declarations of getgrgid and
86014         getpwuid resp.
86015         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86016         Reported by Andreas Jaeger.
86017
86018 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86019
86020         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86021         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86022         so `make install' also works in VPATH builds.
86023
86024 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86025
86026         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86027         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86028         can be used in subdirectories.
86029
86030 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86031
86032         * lib/modechange.c: Do not assume that mode_t uses the
86033         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86034         the other-execute bit of FOO even if S_IXOTH != 1.
86035
86036         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86037         WOTH, XOTH, ALLM): New macros.
86038         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86039          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86040         Use them.
86041         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86042         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86043         (mode_compile):
86044         No need to use uintmax_t; unsigned long is long enough.
86045         Don't bother to get suffix since we don't use it.
86046
86047 2000-12-26  Jim Meyering  <meyering@lucent.com>
86048
86049         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86050         better with autoheader.
86051
86052 2000-12-24  Jim Meyering  <meyering@lucent.com>
86053
86054         * lib/hash.c (is_prime): Return explicit boolean values.
86055         (hash_get_first): Return NULL to appease Irix5.6's 89.
86056         Reported by Nelson Beebe.
86057
86058 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86059
86060         * lib/localcharset.c (locale_charset): Add support for Win32.
86061
86062 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86063
86064         * lib/physmem.h, lib/physmem.c: New files.
86065
86066         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86067         (noinst_HEADERS): Add physmem.h.
86068
86069         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86070         't' for compatibility with Solaris 8 sort.
86071
86072 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86073
86074         * lib/config.charset: Add support for BeOS.
86075
86076 2000-12-17  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86079         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86080
86081 2000-12-16  Jim Meyering  <meyering@lucent.com>
86082
86083         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86084         N and M) would have treated it like `chown N:N FILE'.
86085
86086         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86087
86088 2000-12-16  Jim Meyering  <meyering@lucent.com>
86089
86090         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86091         SHELLS_FILE to a file name that's useful on djgpp systems.
86092         Include stdlib.h.
86093         (ADDITIONAL_DEFAULT_SHELLS): Define.
86094         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86095         Based mostly on a patch from Prashant TR.
86096
86097 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86098
86099         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86100         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86101         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86102
86103 2000-12-08  Andreas Schwab  <schwab@suse.de>
86104
86105         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86106         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86107
86108 2000-12-07  Jim Meyering  <meyering@lucent.com>
86109
86110         * lib/stripslash.c (ISSLASH): Define.
86111         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86112         `/'.
86113         From Prashant TR.
86114
86115         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86116         (dir_name_r): Declare this function as static.
86117         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86118         manifest itself on a name containing a mix of slashes and
86119         backslashes.
86120         Make this function work with names starting with a DOS-style
86121         drive letter and colon prefix.
86122         (dir_name): Append `.' if necessary.
86123         Based mostly on patches from Prashant TR and Eli Zaretskii.
86124
86125         * lib/dirname.h (dir_name_r): Remove prototype.
86126
86127 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86128
86129         * m4/off_t-format.m4: Remove this file.
86130         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86131
86132 2000-12-06  Jim Meyering  <meyering@lucent.com>
86133
86134         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86135         replacement strtoull, we may well need the replacement strtoul, too.
86136         Check for declarations of strtoul and strtoull.
86137         Check for strtol.  Mainly as a cue to cause automake to include
86138         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86139         Check for limits.h -- strtol.c needs it.
86140
86141 2000-12-05  Jim Meyering  <meyering@lucent.com>
86142
86143         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86144
86145 2000-12-04  Jim Meyering  <meyering@lucent.com>
86146
86147         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86148         Also include memory.h, stdlib.h, unistd.h if appropriate.
86149         Reported by Andreas Jaeger (conflicting declaration of malloc).
86150
86151 2000-12-02  Jim Meyering  <meyering@lucent.com>
86152
86153         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86154         * m4/jm-macros.m4 (jm_MACROS): require it.
86155
86156 2000-12-02  Jim Meyering  <meyering@lucent.com>
86157
86158         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86159
86160 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86161
86162         * lib/memrchr.c: Include <config.h> before any system include file.
86163
86164 2000-11-30  Jim Meyering  <meyering@lucent.com>
86165
86166         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86167
86168 2000-11-30  Jim Meyering  <meyering@lucent.com>
86169
86170         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86171
86172 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86173
86174         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86175
86176 2000-11-26  Jim Meyering  <meyering@lucent.com>
86177
86178         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86179
86180 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86181
86182         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86183         size of (size_t) -1; it's not portable.
86184
86185 2000-11-17  Jim Meyering  <meyering@lucent.com>
86186
86187         * lib/strstr.c: Update from GNU libc.
86188
86189 2000-11-17  Akim Demaille  <akim@epita.fr>
86190
86191         * lib/obstack.h: Formatting changes.
86192         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86193         prevent type checking.
86194         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86195         cast the value to (void *): assigning a `foo *' to a `void *'
86196         variable is valid.
86197         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86198
86199 2000-11-16  Jim Meyering  <meyering@lucent.com>
86200
86201         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86202
86203 2000-11-11  Jim Meyering  <meyering@lucent.com>
86204
86205         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86206
86207 2000-11-10  Jim Meyering  <meyering@lucent.com>
86208
86209         * lib/obstack.h: Update from GNU libc.
86210         * lib/obstack.c: Likewise.
86211
86212 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86213
86214         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86215
86216 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86217
86218         * lib/getusershell.c (setusershell): Use rewind rather than
86219         fseek/fseeko, to avoid configuration hassles with fseeko.
86220         Don't bother opening SHELLS_FILE if shellstream is NULL;
86221         it's not necessary.
86222
86223 2000-11-05  Jim Meyering  <meyering@lucent.com>
86224
86225         * lib/makepath.h (make_dir): Declare.
86226         * lib/makepath.c (make_dir): Remove `static' attribute.
86227         Tweak a comment.
86228
86229 2000-11-04  Jim Meyering  <meyering@lucent.com>
86230
86231         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86232
86233 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86234
86235         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86236         last one in a bucket, advance to the next bucket.
86237
86238 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86239
86240         * lib/fnmatch.c: Do not comment out all the code if we are using
86241         the GNU C library, because in some cases we are replacing buggy
86242         code in the GNU C library itself.
86243
86244 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86245
86246         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86247         (regex_compile): Catch bogus \(\1\).
86248
86249 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86250
86251         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86252         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86253         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86254
86255 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86256
86257         * lib/error.h, getline.h, modechange.h:
86258         Remove "2000" from Copyright line, as the file hasn't been
86259         changed this year other than in the copyright notice.
86260
86261         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86262         was changed this year.
86263
86264 2000-10-29  Jim Meyering  <meyering@lucent.com>
86265
86266         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86267         renaming.
86268         * m4/ls-mntd-fs.m4: Likewise
86269
86270 2000-10-29  Jim Meyering  <meyering@lucent.com>
86271
86272         * lib/xstat.in: Fix grammar in comment.
86273
86274 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86275
86276         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86277         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86278         doesn't define __restrict_arr.
86279
86280 2000-10-28  Jim Meyering  <meyering@lucent.com>
86281
86282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86283         (jm_PREREQ_MEMCHR): New function.
86284
86285 2000-10-28  Jim Meyering  <meyering@lucent.com>
86286
86287         * lib/memchr.c: Update from libc.
86288         Adjust for portability:
86289         [HAVE_STDLIB_H]: Include stdlib.h.
86290         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86291         Undef __memchr, too.
86292         [!weak_alias]: Define __memchr to memchr.
86293
86294         * lib/regex.c: Update from libc.
86295         * lib/regex.h: Likewise.
86296         * lib/getopt1.c: Likewise.
86297         * lib/memcmp.c: Likewise.
86298
86299         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86300         Avoid using fseek, when possible -- it's broken by design.
86301         Patch by Ulrich Drepper.
86302
86303 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86304
86305         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86306         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86307         Giving in to popular pressure to shut up the compiler with casts.
86308
86309 2000-10-26  Jim Meyering  <meyering@lucent.com>
86310
86311         * lib/strftime.c: Update from libc.
86312
86313 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86314
86315         * regex.c: More `unsigned char' -> `re_char' changes.
86316         Also change several `int' into `re_wchar_t'.
86317         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86318         (PUSH_FAILURE_POINTER): Don't cast any more.
86319         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86320         We want GCC to complain, since this piece of code makes
86321         re_match non-reentrant, which *should* be fixed.
86322         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86323         (EXTEND_BUFFER): Use RETALLOC.
86324         (SET_LIST_BIT): Don't cast.
86325         (re_wchar_t): New type.
86326         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86327         that those two functions will always properly return.
86328         (IMMEDIATE_QUIT_CHECK): Cast to void.
86329         (analyse_first): Use recursion rather than an explicit stack.
86330         (re_compile_fastmap): Can't fail anymore.
86331         (re_search_2): Don't check re_compile_fastmap for failure.
86332         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86333         Now also sets the new value (passed in a new argument).
86334         (re_match_2_internal): Use it.
86335         Also, use a new var `reg' of type size_t when looping through regs
86336         rather than reuse the inappropriate `mcnt'.
86337
86338 2000-10-25  Jim Meyering  <meyering@lucent.com>
86339
86340         * lib/obstack.c: Update from libc.
86341
86342 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86343
86344         * regex.c (regex_compile): Change the way of handling a range from
86345         a char less than 256 to a char not less than 256.
86346
86347 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86348
86349         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86350         NT-Emacs only.
86351         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86352         so that re_search functions only quit when callers expect them to.
86353
86354 2000-10-23  Jim Meyering  <meyering@lucent.com>
86355
86356         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86357         wrong.  That set_locale call must not have any side effects.
86358         From Paul Eggert.
86359
86360 2000-10-22  Jim Meyering  <meyering@lucent.com>
86361
86362         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86363         [CYCLIC]: Remove now-unused definition.
86364
86365         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86366         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86367         Suggestion from Ulrich Drepper.
86368
86369 2000-10-21  Jim Meyering  <meyering@lucent.com>
86370
86371         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86372         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86374
86375 2000-10-21  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/dirname.c (memrchr): Declare if necessary.
86378         (dir_name): Remove the restriction that there be no
86379         trailing slashes.  Now, this code skips past them, effectively
86380         ignoring them.
86381         [TEST_DIRNAME] (main): New unit tests.
86382
86383         * lib/memrchr.c: New file from GNU libc.
86384         Undef __memrchr, too.
86385         [!weak_alias]: Define __memrchr to memrchr.
86386         Guard weak_alias use with `#ifdef weak_alias'.
86387
86388 2000-10-21  Jim Meyering  <meyering@lucent.com>
86389
86390         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86391         (dir_name): Use dir_name_r.
86392         * lib/dirname.h (dir_name_r): Declare it.
86393
86394 2000-10-17  Jim Meyering  <meyering@lucent.com>
86395
86396         * lib/quote.h (PARAMS): Define and use.
86397         Reported by Akim Demaille.
86398
86399         * lib/getopt.c: Update from libc.
86400
86401 2000-10-16  Jim Meyering  <meyering@lucent.com>
86402
86403         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86404         setlocale.
86405         From Jan Fedak.
86406
86407 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86408
86409         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86410
86411 2000-09-25  Jim Meyering  <meyering@lucent.com>
86412
86413         * lib/md5.h (rol): Define (from GnuPG).
86414
86415         * lib/sha.c: Give credit (GnuPG) where due.
86416         (M): Use rol rather than open-coding it.
86417         Add a FIXME comment.
86418
86419 2000-09-21  Jim Meyering  <meyering@lucent.com>
86420
86421         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86422         Reported by Michael Stone.
86423
86424 2000-09-20  Jim Meyering  <meyering@lucent.com>
86425
86426         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86427         (noinst_HEADERS): Add sha.h.
86428         Based on code from Scott G. Miller and from GnuPG.
86429
86430 2000-09-18  Jim Meyering  <meyering@lucent.com>
86431
86432         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86433         LIBS. Otherwise, everyone ends up linking with -lelf for some
86434         configurations.
86435         Reported by Mike Stone.
86436
86437 2000-09-15  Jim Meyering  <meyering@lucent.com>
86438
86439         * lib/regex.c: Update from libc.
86440
86441 2000-09-10  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/getopt.c (_getopt_internal): Update from glibc.
86444
86445 2000-09-09  Jim Meyering  <meyering@lucent.com>
86446
86447         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86448         think it should be used as a general replacement for isascii.
86449         * lib/fnmatch.c: Likewise.
86450         * lib/mbswidth.c: Likewise
86451         * lib/regex.c: Likewise.
86452
86453         Don't use atoi.
86454         * lib/userspec.c: Include sys/param.h and limits.h.
86455         Include xstrtol.h.
86456         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86457         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86458         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86459         UID, GID.  Check range.
86460
86461 2000-09-06  Jim Meyering  <meyering@lucent.com>
86462
86463         * lib/getopt.c (_getopt_internal): Update from glibc.
86464
86465 2000-08-30  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/strftime.c: Merge in changes from GNU libc.
86468
86469 2000-08-26  Jim Meyering  <meyering@lucent.com>
86470
86471         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86472         * m4/fpending.m4: New file.
86473
86474 2000-08-26  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/closeout.c: Include "__fpending.h".
86477         (close_stdout_status): Return right away if there's nothing to flush.
86478
86479         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86480         * lib/__fpending.c: New file.
86481         * lib/__fpending.h: New file.
86482
86483 2000-08-20  Jim Meyering  <meyering@lucent.com>
86484
86485         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86486         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86487         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86488
86489 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86490
86491         Improve fileutils installation on systems where running
86492         programs (like install) can't be unlinked.
86493         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86494         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86495
86496 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86497
86498         Standardize on "memory exhausted" instead of "Memory exhausted"
86499         or "virtual memory exhausted".
86500         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86501         "virtual memory exhausted".
86502         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86503         our own message.
86504         * lib/userspec.c (parse_user_spec): Likewise.
86505         * lib/bumpalloc.h: comment fix
86506         * lib/same.c, userspec.c: Include xalloc.h.
86507
86508         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86509         not char *const and pointing to a constant array.
86510         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86511         (xrealloc): Comment fix.
86512
86513         * lib/userspec.c (parse_user_spec):
86514         Don't translate a message until just before returning,
86515         to avoid unnecessary translation.
86516
86517 2000-08-07  Jim Meyering  <meyering@lucent.com>
86518
86519         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86520         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86521         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86522         getgroups.c, gethostname.c, getopt.h, group-member.c,
86523         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86524         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86525         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86526         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86527         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86528         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86529         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86530         yesno.c: Back out Copyright date changes for each file with no change
86531         this year.  This eases coordination with other programs using the same
86532         source code modules.  From Paul Eggert.
86533
86534 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86535
86536         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86537         not char, for compatibility with glibc 2.1.3 strftime.c.
86538
86539 2000-08-03  Greg McGary  <greg@mcgary.org>
86540
86541         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86542         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86543         (EXTEND_BUFFER): Use them.
86544
86545 2000-08-01  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/dirname.c (ISSLASH): Define.
86548         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86549         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86550         both `\' and `/' may be use as path separators.
86551         Based on a patch from Prashant TR.
86552
86553 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86554
86555         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86556         slot vector a constant, since it might get modified.
86557
86558 2000-07-31  Jim Meyering  <meyering@lucent.com>
86559
86560         * lib/xmalloc.c: Use `virtual memory exhausted', not
86561         `Memory exhausted'.
86562         * lib/obstack.c (print_and_abort): Likewise.
86563
86564 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86565
86566         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86567         buffer, so that the caller can always quote one small
86568         component of a "memory exhausted" message in slot 0.
86569         From a suggestion by Jim Meyering.
86570
86571 2000-07-30  Jim Meyering  <meyering@lucent.com>
86572
86573         * lib/makepath.c (make_path): Quote the other instance, too.
86574
86575         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86576         (STATIC_BUF_SIZE): Define.
86577         (quotearg_n_options): Use only statically allocated storage when
86578         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86579         than STATIC_BUF_SIZE.
86580
86581 2000-07-29  Jim Meyering  <meyering@lucent.com>
86582
86583         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86584         * lib/dirname.c (dir_name): Likewise.
86585
86586         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86587         `/'.
86588
86589         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86590         (dir_name): Assert that there are no trailing slashes.
86591
86592 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86593
86594         * lib/mbswidth.h (mbswidth): Add a flags argument.
86595         (mbswidth): New declaration.
86596         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86597         * lib/mbswidth.c (mbswidth): Add a flags argument.
86598         (mbsnwidth): New function.
86599
86600 2000-07-24  Jim Meyering  <meyering@lucent.com>
86601
86602         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86603
86604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86605
86606         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86607
86608 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86609
86610         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86611         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86612         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86613         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86614         invoke multibyte primitives.
86615
86616 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86617
86618         * lib/quotearg.c:
86619         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86620         so that mbstate_t is always defined.
86621
86622         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86623         be 1 in at least one GCC installation, and this configuration
86624         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86625         performance on hosts that have mbrtowc but have only unibyte
86626         locales, but I assume these hosts are rare.
86627
86628 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/mbswidth.c (_XOPEN_SOURCE):
86631         Don't define; this causes problems on Solaris 7.
86632         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86633
86634 2000-07-23  Jim Meyering  <meyering@lucent.com>
86635
86636         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86637         too: getgrgid, getpwuid, getuid.
86638
86639 2000-07-23  Jim Meyering  <meyering@lucent.com>
86640
86641         * lib/basename.c (base_name): Add an assertion.
86642
86643 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86644
86645         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86646         shadow its mbsinit function.
86647
86648 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86649
86650         * lib/mbswidth.h: New file.
86651         * lib/mbswidth.c: New file.
86652         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86653         (noinst_HEADERS): Add mbswidth.h.
86654
86655 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86656
86657         * lib/config.charset: Add support for FreeBSD. Improve support for
86658         HP-UX and IRIX 6.
86659
86660 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86661
86662         * m4/mbswidth.m4: New file.
86663         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86664
86665 2000-07-15  Jim Meyering  <meyering@lucent.com>
86666
86667         * lib/makepath.c: Include quote.h.
86668         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86669         corresponding argument in a `quote (...)' call.
86670         Give better diagnostics.
86671
86672         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86673         (noinst_HEADERS): Add quote.h.
86674
86675         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86676         from tar's src/misc.c.
86677         * lib/quote.h: New file.  Prototypes for same.
86678
86679 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86680
86681         From a suggestion by Bruno Haible.
86682         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86683         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86684         to decide whether to define the BeOS workaround macro;
86685         this adjusts to the change to AC_MBSTATE_T.
86686
86687 2000-07-14  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86690         jm_AC_TYPE_UINTMAX_T.
86691
86692 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86693
86694         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86695
86696         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86697         quotearg_buffer_restyled): Add support for
86698         clocale_quoting_style.  Undo previous change to
86699         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86700         and "{RIGHT QUOTATION MARK}" msgids.
86701
86702 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86703
86704         From a suggestion by Bruno Haible.
86705         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86706         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86707         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86708         and mbstate_t, to a single-part test that simply defines mbstate_t.
86709         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86710         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86711
86712 2000-07-10  Jim Meyering  <meyering@lucent.com>
86713
86714         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86715
86716         * m4/gnu-source.m4: Output to confdefs.h directly.
86717         Suggestion from Akim Demaille.
86718
86719 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86720
86721         The old behavior of quoting `like this' doesn't look good with
86722         newer, ISO-style fonts.  See:
86723         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86724
86725         Instead, quote "like this" by default.  Let the translator
86726         tailor the locale-specific quoting behavior by providing
86727         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86728
86729         * lib/quotearg.c (N_): New macro.
86730         (gettext_default): New function.
86731         (quotearg_buffer_restyled): Use
86732         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86733         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86734
86735 2000-07-09  Jim Meyering  <meyering@lucent.com>
86736
86737         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86738         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86739
86740         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86742
86743 2000-07-09  Jim Meyering  <meyering@lucent.com>
86744
86745         * lib/Most files: Update copyright dates to include 2000.
86746
86747 2000-07-08  Jim Meyering  <meyering@lucent.com>
86748
86749         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86750         if not defined.
86751         (xgethostname): Remove now-unnecessary #ifdef.
86752         Move declaration of `err' into loop where it's used.
86753
86754 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86755         and Bruno Haible  <haible@clisp.cons.org>
86756
86757         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86758         only if the test for an object-type mbstate_t fails.  This
86759         prevents us from mistakenly reporting that mbstate_t is a
86760         system object type after we "#define mbstate_t int" to work
86761         around its lack.
86762
86763 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86764         and Bruno Haible  <haible@clisp.cons.org>
86765
86766         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86767
86768 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86769
86770         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86771         to strerror_r.
86772         Include <ctype.h> for use of isalpha.
86773
86774 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86775
86776         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86777         by allocating a larger buffer. Test the gethostname return value for
86778         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86779         returns an error and ENAMETOOLONG isn't defined.
86780
86781 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86782
86783         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86784         dimension.
86785
86786 2000-07-04  Jim Meyering  <meyering@lucent.com>
86787
86788         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86789         of the deprecated AC_CHECKING.
86790
86791 2000-07-04  Jim Meyering  <meyering@lucent.com>
86792
86793         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86794         Reported by Bruno Haible.
86795
86796 2000-07-04  Jim Meyering  <meyering@lucent.com>
86797
86798         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86799         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86800         lacks mbrtowc.
86801
86802 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86803
86804         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86805         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86806
86807 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86808         and Bruno Haible  <haible@clisp.cons.org>
86809
86810         * lib/quotearg.c (mbrtowc):
86811         Assign to *pwc, and return 1 only if result is nonzero.
86812         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86813
86814 2000-07-03  Jim Meyering  <meyering@lucent.com>
86815
86816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86817
86818 2000-07-03  Jim Meyering  <meyering@lucent.com>
86819
86820         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86821         This is necessary to get a definition of e.g., UTMP_FILE on
86822         HP-UX 10.20.
86823         From Bob Proulx.
86824
86825 2000-07-02  Jim Meyering  <meyering@lucent.com>
86826
86827         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86828
86829         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86830         AC_LIBOBJ(function_name).
86831         * m4/chown.m4: Likewise.
86832         * m4/fnmatch.m4: Likewise.
86833         * m4/ftruncate.m4: Likewise.
86834         * m4/getgroups.m4: Likewise.
86835         * m4/getline.m4: Likewise.
86836         * m4/group-member.m4: Likewise.
86837         * m4/jm-macros.m4: Likewise.
86838         * m4/lstat.m4: Likewise.
86839         * m4/malloc.m4: Likewise.
86840         * m4/memcmp.m4: Likewise.
86841         * m4/nanosleep.m4: Likewise.
86842         * m4/putenv.m4: Likewise.
86843         * m4/realloc.m4: Likewise.
86844         * m4/regex.m4: Likewise.
86845         * m4/stat.m4: Likewise.
86846         * m4/strftime.m4: Likewise.
86847
86848 2000-07-02  Jim Meyering  <meyering@lucent.com>
86849
86850         * lib/quotearg.c (mbstate_t): Don't define here.
86851
86852 2000-07-02  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86855
86856 2000-07-01  Jim Meyering  <meyering@lucent.com>
86857
86858         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86859
86860 2000-07-01  Jim Meyering  <meyering@lucent.com>
86861
86862         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86863         problem.
86864
86865 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86866
86867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86868         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86869
86870 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86871
86872         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86873         per change in ../m4/ls-mntd-fs.m4.
86874         (read_filesystem_list): Ignore symbolic links.
86875
86876 2000-06-29  Jim Meyering  <meyering@lucent.com>
86877
86878         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86879         for declaration of strcmp.
86880
86881         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86882
86883         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86884         Avoid warning by casting result to `char *' to remove `const'.
86885
86886 2000-06-28  Jim Meyering  <meyering@lucent.com>
86887
86888         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86889         included by quotearg.c, for which we perform this test.  From
86890         Bruno Haible.
86891
86892 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86893
86894         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86896         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86897
86898 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86899
86900         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86901
86902 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86903
86904         savedir now sets errno on failure and invokes xmalloc to get memory.
86905         Fix a couple of other minor bugs while we're at it.
86906
86907         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86908         (NAMLEN): Remove macro.
86909         (malloc, realloc): Remove decls.
86910         (stpcpy): Likewise.
86911         ("xalloc.h"): Include.
86912         (NAME_SIZE_DEFAULT): New macro.
86913         (savedir): Use xmalloc / xrealloc to allocate memory.
86914         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86915         Skip "" directory entries.
86916         Use strlen to calculate directory entry length, since the old method
86917         is rarely used these days and isn't worth supporting.
86918         Don't use a pointer after freeing it.
86919         Check for integer overflow when calculating allocation size.
86920         Use memcpy to copy entries, instead of stpcpy.
86921         Set errno properly when returning NULL.
86922         Check for readdir error.
86923
86924 2000-06-26  Jim Meyering  <meyering@lucent.com>
86925
86926         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86927
86928 2000-06-25  Jim Meyering  <meyering@lucent.com>
86929
86930         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86931         Linux header bug when _XOPEN_SOURCE is defined to 500.
86932
86933 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86934
86935         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86936         deficiency.
86937
86938 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86939
86940         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86941         Include xalloc.h.
86942         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86943
86944 2000-06-24  Jim Meyering  <meyering@lucent.com>
86945
86946         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86947         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86948         for which strerror does return char*, but which lacks a conveniently
86949         accessible declaration of the function.  If the compile-test says
86950         strerror_r doesn't work, then resort to a `run'-test that works on
86951         BeOS and segfaults on DEC Unix.
86952
86953 2000-06-24  Jim Meyering  <meyering@lucent.com>
86954
86955         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86956
86957 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86958
86959         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86961
86962 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86963
86964         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86965         (mbrtowc, mbstate_t): Define substitutes if
86966         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86967         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86968         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86969
86970 2000-06-23  Jim Meyering  <meyering@lucent.com>
86971
86972         * m4/afs.m4: Add missing AC_MSG_RESULT.
86973         Reported by Bruno Haible.
86974
86975         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86976         Suggestion from Bruno Haible.
86977
86978 2000-06-23  Jim Meyering  <meyering@lucent.com>
86979
86980         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86981
86982 2000-06-21  Jim Meyering  <meyering@lucent.com>
86983
86984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86985
86986 2000-06-21  Jim Meyering  <meyering@lucent.com>
86987
86988         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86989         (noinst_HEADERS): Add getstr.h.
86990
86991         * lib/getline.c (getstr): Move into a separate file.
86992         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86993         the following changes: new parameter, delim2; both delim[12]
86994         parameters have type `int', not `char'.  The latter would lose
86995         with 8-bit delimiters.
86996         * lib/getstr.h: New file.
86997
86998 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86999
87000         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87001         than 1024, return a memory chunk of least possible size, instead
87002         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87003         Use free/xmalloc instead of xrealloc to avoid copying for very long
87004         paths.
87005
87006 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87007
87008         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87009         the empty string.
87010
87011 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87012
87013         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87014         address, not strdup.  Include <stdlib.h> and don't declare free().
87015
87016 2000-06-19  Jim Meyering  <meyering@lucent.com>
87017
87018         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87019
87020 2000-06-18  Jim Meyering  <meyering@lucent.com>
87021
87022         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87023
87024         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87025         `checking whether...' message to be consistent with that of the
87026         lstat test.
87027
87028 2000-06-18  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87031         Besides, these days every porting target provides a mkdir function.
87032
87033         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87034         needed. (this snippet comes from src/system.h).
87035
87036 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87037
87038         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87039
87040 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87041
87042         * lib/human.c (adjust_value): New function.
87043         (human_readable_inexact): Apply rounding style even when
87044         printing approximate values.
87045
87046 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87047
87048         * lib/human.c (human_readable_inexact): Allow an input block
87049         size that is not a multiple of the output block size, and vice versa.
87050         Reported by Piergiorgio Sartor.
87051
87052 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87053
87054         * lib/getdate.y (get_date): Apply relative times after time
87055         zone indicator, not before.  Reported by Todd A. Jacobs.
87056
87057 2000-06-13  Jim Meyering  <meyering@lucent.com>
87058
87059         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87060
87061         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87062
87063 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87064
87065         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87066
87067 2000-06-12  Jim Meyering  <meyering@lucent.com>
87068
87069         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87070         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87071         optional argument.
87072         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87073         the optional argument, `lib'.
87074
87075 2000-06-08  Jim Meyering  <meyering@lucent.com>
87076
87077         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87078
87079 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87080
87081         Rewrite largefile configuration so that we don't need to run
87082         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87083         AC_CANONICAL_HOST in configure.in -- jmm]
87084
87085         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87086         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87087         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87088         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87089         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87090         All uses changed.
87091         Instead of inspecting the output of getconf, try to compile the
87092         test program without and with the macro definition.
87093         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87094         for getconf.  Instead, check for the needed flags by compiling
87095         test programs.
87096
87097 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87098
87099         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87100
87101 2000-06-04  Jim Meyering  <meyering@lucent.com>
87102
87103         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87104         SunOS 4.1.4 for which gid_t is an unsigned type.
87105
87106 2000-06-03  Jim Meyering  <meyering@lucent.com>
87107
87108         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87109         now that autoconf requires that.
87110
87111         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87112         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87113         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87114
87115 2000-06-03  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87118
87119 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87120
87121         * m4/glibc21.m4: New file.
87122         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87123
87124 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87125
87126         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87127         newer, don't install charset.alias.
87128         * lib/config.charset: Change the Linux/glibc rules so they become empty
87129         on glibc-2.1 or newer.
87130
87131 2000-06-02  Jim Meyering  <meyering@lucent.com>
87132
87133         * lib/mountlist.c: Back out last change.  Instead, do this...
87134         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87135         me_dummy member using the same `ignore'-testing code.
87136         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87137         fs_type strings.
87138         From Mark D. Roth.
87139
87140 2000-05-29  Jim Meyering  <meyering@lucent.com>
87141
87142         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87143         mounts with the `ignore' attribute.  Based on a patch from
87144         Mark D. Roth.
87145
87146 2000-05-28  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87149         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87150         * m4/stat.m4: Likewise.
87151         * m4/lstat.m4: Likewise.
87152         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87153
87154         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87155         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87156
87157 2000-05-26  Jim Meyering  <meyering@lucent.com>
87158
87159         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87160
87161 2000-05-24  Jim Meyering  <meyering@lucent.com>
87162
87163         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87164         autoconf requires that.
87165         * m4/lib-check.m4: Likewise.
87166         * m4/jm-macros.m4: Likewise.
87167         * m4/strftime.m4: Likewise.
87168
87169         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87170         AC_CHECK_DECLS, now that autoconf requires that.
87171
87172 2000-05-22  Jim Meyering  <meyering@lucent.com>
87173
87174         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87175         * m4/lstat.m4: Likewise.
87176
87177 2000-05-22  Jim Meyering  <meyering@lucent.com>
87178
87179         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87180
87181 2000-05-20  Jim Meyering  <meyering@lucent.com>
87182
87183         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87184         (jm_PREREQ): Use it.
87185
87186 2000-05-18  Jim Meyering  <meyering@lucent.com>
87187
87188         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87189         back, too, since it may have been modified by allocate_entry.
87190         (hash_delete): Rewrite to use neither the assignment operator
87191         nor the comma operator in an if-expression.
87192
87193 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87194
87195         * lib/closeout.c:
87196         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87197         Remove; no longer needed.
87198         "quotearg.h": Add include.
87199         (file_name): Do not bother to explicitly initialize to NULL; it's less
87200         efficient on some hosts.
87201         (close_stdout_status): Remove test as to whether stdout was already
87202         closed; it breaks for the case "echo x | sort >&-".
87203         Quote file name colons.
87204         Do not assume that _("write error") lacks format strings.
87205
87206 2000-05-15  Jim Meyering  <meyering@lucent.com>
87207
87208         * lib/version-etc.c (version_etc_copyright): Update the copyright
87209         string used in all --version output.
87210
87211 2000-05-14  Jim Meyering  <meyering@lucent.com>
87212
87213         * lib/closeout.c (close_stdout_set_file_name): New function.
87214         (close_stdout_status): Use new file-scoped global.
87215         Return right away if fstat says the stdout file descriptor is invalid.
87216         * lib/closeout.h (close_stdout_set_file_name): Declare.
87217
87218 2000-05-10  Jim Meyering  <meyering@lucent.com>
87219
87220         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87221         (close_stdout_set_status): New function.
87222         * lib/closeout.h (close_stdout_set_status): Declare.
87223
87224 2000-05-09  Jim Meyering  <meyering@lucent.com>
87225
87226         * m4/gettext.m4: Rename this...
87227         * m4/libintl.m4: ...to this.
87228
87229 2000-05-08  Jim Meyering  <meyering@lucent.com>
87230
87231         * lib/long-options.c: Don't include closeout.h.
87232         (parse_long_options): Don't call close_stdout for --version.
87233
87234 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87235
87236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87237         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87238         2.1.3 bug.  This avoids a clash when files like regex.c define
87239         _GNU_SOURCE.
87240
87241 2000-05-06  Jim Meyering  <meyering@lucent.com>
87242
87243         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87244         (AC_REPLACE_FUNCS): Add strnlen.
87245
87246         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87247         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87248
87249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87250         AC_SEARCH_LIBS call for nanosleep.
87251         (LIB_NANOSLEEP): Set and AC_SUBST.
87252
87253 2000-05-06  Jim Meyering  <meyering@lucent.com>
87254
87255         * lib/strnlen.c: Undefine __strnlen and strnlen.
87256         [!weak_alias]: Define __strnlen to strnlen.
87257
87258         * lib/atexit.c: New file, from libiberty.
87259
87260 2000-05-06  Jim Meyering  <meyering@lucent.com>
87261
87262         * lib/closeout.c (close_stdout_status): Also check for errors on the
87263         stderr stream.
87264
87265 2000-05-05  Jim Meyering  <meyering@lucent.com>
87266
87267         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87268         AC_SEARCH_LIBS call for clock_gettime.
87269         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87270
87271         * m4/search-libs.m4: Update from autoconf.
87272
87273         su doesn't work on Solaris 2.6.
87274         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87275         <shadow.h>.  Reported by Dragos Harabor.
87276
87277 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87278
87279         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87280         memcpy instead of xmalloc, xrealloc, path_concat.
87281         (locale_charset): Treat empty environment variables as absent.
87282         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87283
87284 2000-05-04  Jim Meyering  <meyering@lucent.com>
87285
87286         * lib/getopt.c: Update from glibc.
87287         * lib/obstack.c: Likewise.
87288         * lib/obstack.h: Likewise.
87289         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87290         file
87291
87292         * lib/regex.h: Likewise.
87293         * lib/strndup.c: Likewise.
87294         * lib/strnlen.c: New file, from glibc.
87295
87296 2000-05-03  Jim Meyering  <meyering@lucent.com>
87297
87298         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87299
87300 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87301
87302         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87303         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87304         compile-time test, rather than inspecting host and OS, to
87305         decide whether to define _LARGEFILE_SOURCE.
87306
87307 2000-05-01  Jim Meyering  <meyering@lucent.com>
87308
87309         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87310
87311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87312         Based on a patch from Bruno Haible.
87313
87314 2000-05-01  Jim Meyering  <meyering@lucent.com>
87315
87316         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87317
87318 2000-04-29  Jim Meyering  <meyering@lucent.com>
87319
87320         * lib/path-concat.c: Declare strdup only if it's not defined.
87321         * lib/canon-host.c: Likewise.
87322
87323 2000-04-28  Jim Meyering  <meyering@lucent.com>
87324
87325         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87326         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87327         is included first, then limits.h is included by locale.h by libintl.h.
87328         From John David Anglin.
87329
87330 2000-04-25  Jim Meyering  <meyering@lucent.com>
87331
87332         * lib/makepath.c (S_IRWXUGO): Define.
87333         (make_path): Always perform explicit chmod if MODE specifies any
87334         of the `special' permission bits.  Prompted by a bug report against
87335         install from Mate Wierdl and Joost van Baal.
87336
87337 2000-04-18  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87340         (jm_PREREQ): Use it.
87341
87342 2000-04-18  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/README: New file.
87345
87346         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87347         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87348
87349 2000-04-17  Jim Meyering  <meyering@lucent.com>
87350
87351         Get it right :-)
87352         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87353         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87354         Suggestion from Akim Demaille.
87355
87356 2000-04-17  Jim Meyering  <meyering@lucent.com>
87357
87358         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87359         the definition of it to rpl_strftime also defined-away the system's
87360         declaration.
87361
87362 2000-04-15  Jim Meyering  <meyering@lucent.com>
87363
87364         Use `C' to denote so-called `contiguous' files, the same way
87365         that tar does.
87366         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87367         (ftypelet): Use S_ISCTG.
87368         From Michael Deutschmann.
87369
87370 2000-04-14  Jim Meyering  <meyering@lucent.com>
87371
87372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87373         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87374         clobbered.
87375
87376 2000-04-14  Jim Meyering  <meyering@lucent.com>
87377
87378         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87379
87380 2000-04-13  Jim Meyering  <meyering@lucent.com>
87381
87382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87383         AH_VERBATIM to insert required #ifndef into config.h.in.
87384         Suggestion from Akim Demaille.
87385
87386 2000-04-12  Jim Meyering  <meyering@lucent.com>
87387
87388         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87389         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87390         Christian Krackowizer.
87391
87392         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87393         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87394         (AC_SYS_LARGEFILE): Require.
87395         (AM_C_PROTOTYPES): Require.
87396
87397 2000-04-08  Jim Meyering  <meyering@lucent.com>
87398
87399         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87400         names don't conflict.  Reported by Eli Zaretskii.
87401
87402 2000-04-07  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87405         sys/types.h, to work around system header problems on AIX 3.2.5.
87406         From Bruno Haible.
87407
87408 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87409
87410         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87411         bug.  Deal with the different error behavior of Irix iconv.
87412
87413 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87414
87415         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87416         IRIX if the installer said otherwise.
87417
87418 2000-04-05  Jim Meyering  <meyering@lucent.com>
87419
87420         Portability tweaks required for ultrix4.3.
87421         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87422         (jm_CHECK_DECLS): Add getutent to the list of functions.
87423         (_jm_DECL_HEADERS): Add utmpx.h.
87424         From John David Anglin.
87425
87426         * m4/strftime.m4: Back out the 2000-04-02 change.
87427         Instead of that change, simply undefine putenv in the test program.
87428
87429 2000-04-05  Jim Meyering  <meyering@lucent.com>
87430
87431         Portability tweaks required for ultrix4.3.
87432         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87433         getutent.
87434         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87435         * lib/canon-host.c: Declare strdup.
87436         * lib/path-concat.c: Likewise.
87437         From John David Anglin.
87438
87439 2000-04-04  Jim Meyering  <meyering@lucent.com>
87440
87441         Be more DOS 8.3-friendly.
87442         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87443         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87444         * lib/Makefile.am: Reflect renaming.
87445         Reported by Eli Zaretskii.
87446
87447         Use a temporary file name that won't clash with `charset.alias'
87448         in the DOS 8.3 name space.
87449         * lib/Makefile.am (charset_tmp): Define.
87450         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87451         (uninstall-local): Likewise.
87452         Reported by Eli Zaretskii.
87453
87454 2000-04-03  Jim Meyering  <meyering@lucent.com>
87455
87456         * m4/gettext.m4: Fix typo in comment.
87457
87458         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87459         textutils/configure.in).  Suggestion from Paul Eggert.
87460         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87461
87462 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87463
87464         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87465         variable in the shell rather than using putenv, which isn't
87466         portable.  This avoids the configure-time inter-test dependency
87467         on the potentially-renamed putenv function.
87468
87469 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87470
87471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87472         before checking struct stat.st_blksize, so that
87473         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87474
87475 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87476
87477         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87478         since strftime.c uses HAVE_STRFTIME to decide whether to use
87479         the underlying strftime.
87480
87481 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87482
87483         * lib/time/strftime.c (my_strftime): Make sure we call the system
87484         strftime, not ourselves, when invoking the underlying strftime.
87485
87486 2000-03-24  Jim Meyering  <meyering@lucent.com>
87487
87488         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87489         (charset_alias): Define.
87490         (install-exec-local): Factor out common code.
87491         (uninstall-local): Split lines longer than 80.
87492         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87493         (SUFFIXES): Define.
87494         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87495         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87496
87497 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87498
87499         * lib/config.charset: Output a line containing "Packages using this
87500         file".
87501         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87502         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87503         ref-del.sed): New rules.
87504
87505 2000-03-17  Jim Meyering  <meyering@lucent.com>
87506
87507         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87508         Otherwise, include <strings.h>
87509
87510 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87511
87512         * lib/unicodeio.c (utf8_wctomb): New function.
87513         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87514         format instead of in UCS-4 with platform dependent endianness.
87515
87516 2000-03-10  Jim Meyering  <meyering@lucent.com>
87517
87518         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87519         From Marco Franzen.
87520
87521 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87522
87523         * lib/savedir.c (savedir): Work even if directory size is
87524         negative; this can happen with some screwy NFS configurations.
87525
87526 2000-03-06  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87529         if it's NULL (because we ran out of memory).  From Bruno Haible.
87530
87531 2000-03-05  Jim Meyering  <meyering@lucent.com>
87532
87533         * lib/localcharset.c ("path-concat.h"): Include.
87534         (get_charset_aliases): Use path_concat instead of ANSI string
87535         concatenation.
87536
87537         * lib/unicodeio.h (PARAMS): Define.
87538         Use it to guard prototype.
87539
87540 2000-03-04  Jim Meyering  <meyering@lucent.com>
87541
87542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87543         for lib/localcharset.c.
87544
87545 2000-03-04  Jim Meyering  <meyering@lucent.com>
87546
87547         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87548         installing into it.
87549         (uninstall-local): Uncomment this rule so `make distcheck' works
87550         once again.
87551
87552         * lib/unicodeio.c (<errno.h>): Include it.
87553         (errno): Declare if not defined.
87554
87555         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87556
87557         * lib/config.charset: New version, incorporating remarks from a linux
87558         i18n mailing list.  From Bruno Haible.
87559
87560 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87561
87562         * m4/codeset.m4: New file.
87563         * m4/iconv.m4: New file.
87564         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87565
87566 2000-03-03  Jim Meyering  <meyering@lucent.com>
87567
87568         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87569
87570 2000-03-02  Jim Meyering  <meyering@lucent.com>
87571
87572         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87573         the messages come out on separate lines.
87574
87575         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87576         rather than jm_CHECK_DECLARATIONS.
87577         * m4/decl.m4: Remove now-unused file.
87578
87579         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87580         geteuid.
87581
87582 2000-03-02  Jim Meyering  <meyering@lucent.com>
87583
87584         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87585
87586 2000-03-01  Jim Meyering  <meyering@lucent.com>
87587
87588         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87589         * lib/unicodeio.c: Likewise.
87590
87591 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87592
87593         * lib/config.charset: New file.
87594         * lib/localcharset.c: New file.
87595         * lib/unicodeio.h, lib/unicodeio.c: New files.
87596         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87597         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87598         (noinst_HEADERS): Add unicodeio.h.
87599         (all-local, install-exec-local, charset.alias): New targets.
87600
87601 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87602
87603         * lib/quotearg.c (ALERT_CHAR): New macro.
87604         (quotearg_buffer_restyled): Use it.
87605
87606 2000-02-27  Jim Meyering  <meyering@lucent.com>
87607
87608         * m4/check-decl.m4: Add getenv to the list.
87609
87610 2000-02-27  Jim Meyering  <meyering@lucent.com>
87611
87612         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87613         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87614
87615         * lib/backupfile.c: Guard inclusion of stdlib.h with
87616         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87617         Declare malloc if needed.
87618
87619         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87620         `#ifndef HAVE_DECL..'
87621         now that autoconf always defines the HAVE_DECL_ symbols.
87622         * lib/human.c: Likewise.
87623         * lib/same.c: Likewise.
87624         * lib/strtoumax.c: Likewise.
87625
87626         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87627         declaration check was not run.
87628         * lib/hash.c: Likewise.
87629         * lib/human.c: Likewise.
87630         * lib/same.c: Likewise.
87631         * lib/strtoumax.c: Likewise.
87632
87633         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87634         `.', then first look up the entire `.'-containing string as a login
87635         name.
87636
87637 2000-02-23  Jim Meyering  <meyering@lucent.com>
87638
87639         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87640         in place of my hack.
87641
87642 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87643
87644         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87645         (textint): New typedef.
87646         (parser_control): Member year changed from int to textint.
87647         All uses changed.
87648         (YYSTYPE): Removed; replaced by %union with int and textint members.
87649         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87650         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87651         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87652         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87653         (date, number, to_year): Use width of number in digits, not its value,
87654         to determine whether it's a 2-digit year, or a 2-digit time.
87655         (yylex): Store number of digits of numeric tokens.
87656         Reported by John Kendall.
87657
87658         (parser_control): Changed from struct parser_control to typedef (for
87659         consistency).  All uses changed.
87660
87661         (tID): Removed; not used.
87662         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87663
87664 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87665
87666         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87667         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87668
87669 2000-02-12  Jim Meyering  <meyering@lucent.com>
87670
87671         * lib/userspec.c (ISDIGIT): Define it.
87672         (isdigit): Remove definition.
87673         (is_number): Use ISDIGIT, not isdigit.
87674         <libintl.h>: Include.
87675         (_ and N_): Define.
87676         (parse_user_spec): Mark translatable strings.
87677
87678 2000-02-10  Jim Meyering  <meyering@lucent.com>
87679
87680         With these changes, nanosleep.[ch] are finally enough like the other
87681         lib/* replacement files to compile on a few more losing systems.
87682
87683         * lib/nanosleep.h: Don't include config.h.
87684         Remove prototype from declaration of nanosleep.
87685         (PARAMS): Remove now-unneeded definition.
87686         * lib/nanosleep.c: #undef nanosleep.
87687         (rpl_nanosleep): Rename from nanosleep.
87688
87689 2000-02-10  Jim Meyering  <meyering@lucent.com>
87690
87691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87692         gnu_nanosleep to rpl_nanosleep.
87693
87694 2000-02-09  Jim Meyering  <meyering@lucent.com>
87695
87696         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87697         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87698
87699 2000-02-08  Akim Demaille  <akim@epita.fr>
87700
87701         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87702         `[' and `]' and remove uses of `changequote'.
87703         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87704         (AC_SYS_LARGEFILE): Likewise.
87705         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87706         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87707         of changequote.
87708         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87709         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87710         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87711         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87712
87713 2000-02-05  Jim Meyering  <meyering@lucent.com>
87714
87715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87716         Remove explicit use of AC_HEADER_TIME.  It is required by
87717         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87718         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87719         in autoconf whereby the expansion of the latter ended up preceding
87720         the expansion of its prerequisite, AC_HEADER_TIME.
87721         Reported by Volker Borchert.
87722
87723 2000-02-03  Jim Meyering  <meyering@lucent.com>
87724
87725         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87726
87727 2000-02-03  Jim Meyering  <meyering@lucent.com>
87728
87729         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87730         rather than with `#if HAVE_UTMPNAME'.
87731
87732 2000-02-02  Jim Meyering  <meyering@lucent.com>
87733
87734         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87735         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87736         Reported by Eli Zaretskii.
87737
87738 2000-02-01  Jim Meyering  <meyering@lucent.com>
87739
87740         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87741
87742 2000-01-31  Jim Meyering  <meyering@lucent.com>
87743
87744         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87745         functions.  Add the time.h and sys/time.h headers along with the
87746         AC_REQUIRE'ment of AC_HEADER_TIME.
87747
87748 2000-01-31  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/nanosleep.h (nanosleep): Guard declaration with
87751         `#if ! HAVE_DECL_NANOSLEEP'.
87752         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87753         the declaration in that vendor's sys/timers.h.
87754         Reported by Christian Krackowizer.
87755
87756         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87757         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87758         (ISPRINT): Likewise.
87759         Reported by Tom Tromey.
87760
87761 2000-01-30  Jim Meyering  <meyering@lucent.com>
87762
87763         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87764
87765         * m4/prereq.m4 (utmp_includes): Define.
87766         Check for ut_user and ut_name members in both struct utmpx
87767         and struct utmp.
87768
87769 2000-01-30  Jim Meyering  <meyering@lucent.com>
87770
87771         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87772         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87773         header files where only utmpx.ut_user is declared.
87774
87775         * lib/readutmp.h (UT_USER): Define.
87776
87777 2000-01-29  Jim Meyering  <meyering@lucent.com>
87778
87779         * m4/lib-check.m4: New file containing library-related checks from
87780         fileutils and sh-utils (textutils had none).
87781
87782 2000-01-28  Jim Meyering  <meyering@lucent.com>
87783
87784         * m4/perl.m4: Change format of warning message to look more like that
87785         from the missing script.  Suggestion from François Pinard.
87786
87787 2000-01-25  Jim Meyering  <meyering@lucent.com>
87788
87789         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87790         well as time.h in the compile check.
87791         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87792         Fix typo in cross-compiling case: s/yes/no/.
87793
87794 2000-01-23  Jim Meyering  <meyering@lucent.com>
87795
87796         * m4/jm-macros.m4: Move df-related tests here from
87797         fileutils/configure.in
87798
87799         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87800         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87801
87802         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87803         s/space/ac_fsusage_space/.
87804         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87805
87806         * m4/ftruncate.m4: New file (derived from part of
87807         fileutils/configure.in).
87808         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87809         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87810
87811         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87812         AC_SUBST these here, rather than just in sh-util/configure.in, so
87813         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87814         all the same.
87815         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87816         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87817         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87818         (AC_SUBST(POW_LIBM)): Likewise.
87819         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87820
87821 2000-01-23  Jim Meyering  <meyering@lucent.com>
87822
87823         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87824         obstack.c.
87825
87826 2000-01-22  Jim Meyering  <meyering@lucent.com>
87827
87828         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87829
87830         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87831
87832         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87833         configure.in
87834         (AC_CHECK_HEADERS): Likewise for sh-utils.
87835         (AC_CHECK_HEADERS): Likewise for textutils.
87836         Merge the three lists of headers.
87837
87838         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87839         from fileutils' configure.in.
87840
87841         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87842         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87843         check-decl.m4.
87844
87845         * m4/check-decl.m4: Use #if rather than #ifdef.
87846         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87847         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87848         (_jm_DECL_HEADERS): Define new function.
87849         (jm_CHECK_DECLARATIONS): Require it.
87850
87851 2000-01-22  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87854         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87855         Required for some AIX systems.  Reported by Christian Krackowizer.
87856         [TESTING] (main): New function.
87857
87858         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87859         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87860         letters.
87861
87862         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87863         iswprint.
87864
87865         * lib/strverscmp.c (ISDIGIT): Define.
87866         (strverscmp): Use ISDIGIT, not isdigit.
87867
87868 2000-01-19  Jim Meyering  <meyering@lucent.com>
87869
87870         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87871         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87872         defines `struct timespec' in <sys/time.h>
87873
87874         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87875         Thanks to Akim for explaining.
87876
87877 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87878
87879         * lib/nanosleep.c (nanosleep):
87880         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87881         POSIX.1 doesn't require SA_INTERRUPT and some systems
87882         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87883         it's been part of POSIX.1 since day 1 (in 1988).
87884
87885 2000-01-17  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/interlock: Remove unused file.  Reported by François Pinard.
87888
87889 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87890
87891         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87892         alert, backslash, formfeed, and vertical tab unnecessarily in
87893         shell quoting style.
87894
87895 2000-01-16  Jim Meyering  <meyering@lucent.com>
87896
87897         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87898         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87899         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87900         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87901
87902 2000-01-16  Jim Meyering  <meyering@lucent.com>
87903
87904         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87905         because the latter didn't work.
87906
87907 2000-01-15  Jim Meyering  <meyering@lucent.com>
87908
87909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87910         (AC_REPLACE_FUNCS): Add memcpy and memset.
87911         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87912         Add strpbrk.
87913         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87914
87915 2000-01-12  Jim Meyering  <meyering@lucent.com>
87916
87917         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87918         (jm_PREREQ): Use it.
87919         (jm_PREREQ_READUTMP): New macro.
87920         (jm_PREREQ): Use it.
87921
87922 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87923
87924         Quote multibyte characters correctly.
87925         * m4/c-bs-a.m4: New file.
87926         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87927         (jm_PREREQ): Use it.
87928
87929 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87930
87931         * m4/uintmax_t.m4: Port to autoconf 2.13.
87932
87933 2000-01-08  Jim Meyering  <meyering@ascend.com>
87934
87935         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87936         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87937
87938 2000-01-04  Jim Meyering  <meyering@ascend.com>
87939
87940         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87941         jm_STRUCT_DIRENT_D_TYPE.
87942         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87943         jm_STRUCT_DIRENT_D_INO.
87944         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87945         jm_STRUCT_UTIMBUF.
87946         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87947         renamings.
87948         * m4/utime.m4: Likewise.
87949
87950         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87951         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87952
87953 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87954
87955         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87956         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87957
87958 2000-01-02  Jim Meyering  <meyering@ascend.com>
87959
87960         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87961         remember if this is necessary.
87962
87963 1999-12-26  Jim Meyering  <meyering@ascend.com>
87964
87965         * m4/jm-macros.m4: Use it here.
87966         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87967
87968 1999-12-23  Jim Meyering  <meyering@ascend.com>
87969
87970         * m4/jm-macros.m4: Check for clock_gettime (moved from
87971         fileutils/configure.in)
87972         Check for gettimeofday.
87973
87974 1999-12-20  Jim Meyering  <meyering@ascend.com>
87975
87976         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87977         autoconf-2.14a-1999-12-20.
87978
87979 1999-12-19  Jim Meyering  <meyering@ascend.com>
87980
87981         * m4/lstat-slash.m4: New file.
87982         * m4/jm-macros.m4: Use the new macro:
87983         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87984
87985 1999-12-07  Jim Meyering  <meyering@ascend.com>
87986
87987         * m4/perl.m4: Require that File::Compare be available, too.
87988         Too many systems seem to lack it.
87989
87990         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87991         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87992
87993 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87994
87995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87996         problem with the QNX 4.25 shell, which doesn't propagate exit
87997         status of failed commands inside shell assignments.
87998
87999 1999-11-17  Jim Meyering  <meyering@ascend.com>
88000
88001         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88002
88003 1999-11-07  Jim Meyering  <meyering@ascend.com>
88004
88005         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88006
88007 1999-11-06  Jim Meyering  <meyering@ascend.com>
88008
88009         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88010         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88011
88012 1999-11-05  Jim Meyering  <meyering@ascend.com>
88013
88014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88015         configure.in of textutils, fileutils, and sh-utils into this one
88016         (shared between those packages) file.
88017         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88018         AC_STRUCT_ST_BLKSIZE.
88019
88020 1999-11-03  Jim Meyering  <meyering@ascend.com>
88021
88022         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88023         of AC_CHECK_TYPE checks includes unistd.h.
88024         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88025         Suggestion from Akim Demaille.
88026
88027 1999-10-30  Jim Meyering  <meyering@ascend.com>
88028
88029         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88030         m4-quoted string.
88031         * m4/ls-mntd-fs.m4: Likewise.
88032         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88033         * m4/jm-winsz1.m4: Likewise.
88034
88035         * m4/const.m4: Remove file, since the fix made it into the experimental
88036         version of autoconf.
88037         * m4/mktime.m4: Likewise.
88038
88039         * m4/check-type.m4: Remove file, now that the latest version of
88040         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88041
88042         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88043         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88044         AC_CHECK_TYPE.
88045
88046 1999-10-04  Jim Meyering  <meyering@ascend.com>
88047
88048         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88049
88050 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88051
88052         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88053         2.95.1 bug with HP-UX 10.20.
88054
88055 1999-09-17  Jim Meyering  <meyering@ascend.com>
88056
88057         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88058         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88059         due to missing strdup (against sh-utils-2.0).
88060
88061 1999-08-29  Jim Meyering  <meyering@ascend.com>
88062
88063         * m4/jm-macros.m4: Require jm_BISON.
88064         * m4/bison.m4: New file.
88065
88066 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88067
88068         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88069         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88070
88071 1999-08-05  Jim Meyering  <meyering@ascend.com>
88072
88073         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88074         to avoid conflicts with `conftest' on 8+3 filesystems.
88075         Suggestion from Eli Zaretskii.
88076
88077 1999-08-04  Jim Meyering  <meyering@ascend.com>
88078
88079         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88080         fileutils and sh-utils (textutils's getline test was inadequate).
88081         (AM_FUNC_GETLINE): Run this test.
88082         (AC_CHECK_FUNCS): Check for getdelim.
88083         Reported by Bob Proulx.
88084
88085 1999-08-02  Jim Meyering  <meyering@ascend.com>
88086
88087         * m4/jm-macros.m4: Add a comment.
88088
88089 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88090
88091         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88092         <inttypes.h> defines strtoumax as a macro (and not as a
88093         function).
88094
88095 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88096
88097         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88098         that we can shift, multiply and divide unsigned long long
88099         values; Ultrix cc can't do it.
88100
88101 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88102
88103         * m4/mktime.m4: New file, which is a preview of what should appear
88104         in the next public autoconf release.
88105
88106 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88107
88108         * m4/lfs.m4: Remove this file.
88109         * m4/largefile.m4: New file.  It contains the old contents of
88110         lfs.m4, except that all names with prefix AC_LFS have been
88111         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88112         compatible with future autoconf versions.  Also, some minor m4
88113         quoting problems have been fixed.
88114
88115 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88116
88117         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88118         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88119         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88120         and simplify the shell code.
88121
88122 1999-08-01  Jim Meyering  <meyering@ascend.com>
88123
88124         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88125         m4.
88126
88127 1999-07-20  Jim Meyering  <meyering@ascend.com>
88128
88129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88130
88131 1999-07-15  Jim Meyering  <meyering@ascend.com>
88132
88133         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88134
88135 1999-05-22  Jim Meyering  <meyering@ascend.com>
88136
88137         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88138
88139 1999-05-20  Jim Meyering  <meyering@ascend.com>
88140
88141         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88142         Add a colon after each `then' in case $4 is empty.
88143
88144 1999-05-16  Jim Meyering  <meyering@ascend.com>
88145
88146         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88147
88148 1999-05-10  Jim Meyering  <meyering@ascend.com>
88149
88150         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88151
88152         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88153         AC_FUNC_MKTIME.
88154
88155 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88156
88157         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88158
88159 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88160
88161         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88162         not CPPFLAGS, so that linking works correctly in IRIX.
88163
88164 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88165
88166         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88167
88168 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88169
88170         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88171         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88173         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88174         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88175
88176         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88177
88178 1999-04-20  Jim Meyering  <meyering@ascend.com>
88179
88180         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88181         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88182         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88183
88184 1999-04-18  Jim Meyering  <meyering@ascend.com>
88185
88186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88187         * m4/jm-macros.m4: Use it.
88188
88189 1999-04-06  Jim Meyering  <meyering@ascend.com>
88190
88191         * m4/strftime.m4: Remove test for %f.
88192
88193 1999-03-29  Jim Meyering  <meyering@ascend.com>
88194
88195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88196         superset of the AC_TYPE_* checks in the textutils, fileutils,
88197         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88198         AC_TYPE_PID_T.
88199
88200 1999-03-28  Jim Meyering  <meyering@ascend.com>
88201
88202         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88203         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88204         replaced e.g., in the *.sh files of the sh-utils.
88205
88206 1999-03-20  Jim Meyering  <meyering@ascend.com>
88207
88208         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88209         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88210         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88211
88212 1999-03-19  Jim Meyering  <meyering@ascend.com>
88213
88214         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88215
88216 1999-03-12  Jim Meyering  <meyering@ascend.com>
88217
88218         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88219
88220 1999-03-07  Jim Meyering  <meyering@ascend.com>
88221
88222         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88223         declared.
88224
88225 1999-02-17  Jim Meyering  <meyering@ascend.com>
88226
88227         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88228         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88229
88230 1999-02-07  Jim Meyering  <meyering@ascend.com>
88231
88232         * m4/group-member.m4: New file -- extracted from sh-utils'
88233         configure.in.
88234
88235         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88236         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88237
88238 1999-02-06  Jim Meyering  <meyering@ascend.com>
88239
88240         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88241         * m4/fnmatch.m4: Likewise.
88242         * m4/getgroups.m4: Likewise.
88243         * m4/lstat.m4: Likewise.
88244         * m4/malloc.m4: Likewise.
88245         * m4/putenv.m4: Likewise.
88246         * m4/realloc.m4: Likewise.
88247         * m4/regex.m4: Likewise.
88248         * m4/stat.m4: Likewise.
88249         * m4/strftime.m4: Likewise.
88250         Suggestion from Alain Magloire.
88251
88252         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88253         * m4/fnmatch.m4: Likewise.
88254         * m4/getgroups.m4: Likewise.
88255         * m4/getline.m4: Likewise.
88256         * m4/lstat.m4: Likewise.
88257         * m4/malloc.m4: Likewise.
88258         * m4/memcmp.m4: Likewise.
88259         * m4/putenv.m4: Likewise.
88260         * m4/realloc.m4: Likewise.
88261         * m4/regex.m4: Likewise.
88262         * m4/stat.m4: Likewise.
88263         * m4/strftime.m4: Likewise.
88264         Suggestion from Alain Magloire.
88265
88266         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88267         an argument.
88268
88269         * m4/regex.m4: Add a run-time Test for proper operation of
88270         re_compile_pattern.
88271
88272 1999-01-31  Jim Meyering  <meyering@ascend.com>
88273
88274         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88275
88276 1999-01-30  Jim Meyering  <meyering@ascend.com>
88277
88278         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88279
88280         * m4/jm-mktime.m4: Make this a wrapper around the official
88281         AM_FUNC_MKTIME rather than my private copy, now that the official one
88282         is up to date.
88283         * m4/mktime.m4: Remove file.
88284
88285         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88286         * m4/uptime.m4: Likewise.
88287         * m4/uintmax_t.m4: Likewise.
88288
88289 1999-01-28  Jim Meyering  <meyering@ascend.com>
88290
88291         * m4/jm-macros.m4: Use jm_AFS.
88292         * m4/afs.m4: New file (from fileutils' configure.in).
88293
88294         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88295         * m4/chown.m4: Likewise.
88296         * m4/d-ino.m4: Likewise.
88297         * m4/d-type.m4: Likewise.
88298         * m4/fnmatch.m4: Likewise.
88299         * m4/getgroups.m4: Likewise.
88300         * m4/gettext.m4: Likewise.
88301         * m4/jm-mktime.m4: Likewise.
88302         * m4/jm-winsz2.m4: Likewise.
88303         * m4/lcmessage.m4: Likewise.
88304         * m4/ls-mntd-fs.m4: Likewise.
88305         * m4/malloc.m4: Likewise.
88306         * m4/memcmp.m4: Likewise.
88307         * m4/putenv.m4: Likewise.
88308         * m4/realloc.m4: Likewise.
88309         * m4/st_mtim.m4: Likewise.
88310         * m4/strftime.m4: Likewise.
88311
88312 1999-01-16  Jim Meyering  <meyering@ascend.com>
88313
88314         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88315         (ARGMATCH_DIE_DECL): Define.
88316
88317 1999-01-12  Jim Meyering  <meyering@ascend.com>
88318
88319         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88320         Reported by Lars Hecking.
88321
88322 1999-01-10  Jim Meyering  <meyering@ascend.com>
88323
88324         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88325         gross kludge.
88326         * m4/inttypes_h.m4: Likewise.
88327         * m4/lstat.m4: Likewise.
88328         * m4/malloc.m4: Likewise.
88329         * m4/readdir.m4: Likewise.
88330         * m4/realloc.m4: Likewise.
88331         * m4/st_dm_mode.m4: Likewise.
88332         * m4/stat.m4: Likewise.
88333         * m4/utimbuf.m4: Likewise.
88334         * m4/utimes.m4: Likewise.
88335
88336         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88337         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88338         comments in config.h.in are meaningful.
88339
88340         * m4/jm-macros.m4: Require autoconf-2.13 here.
88341
88342         * m4/regex.m4: By default, don't use the included regex.c on systems
88343         with glibc 2.  Suggestion from Uli Drepper.
88344
88345 1999-01-02  Jim Meyering  <meyering@ascend.com>
88346
88347         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88348
88349 1998-12-18  Jim Meyering  <meyering@ascend.com>
88350
88351         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88352         Based on a suggestion from Lars Hecking.
88353
88354 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88355
88356         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88357
88358 1998-11-16  Jim Meyering  <meyering@ascend.com>
88359
88360         * m4/lfs.m4: Double-quote the `uname...` expression.
88361
88362 1998-11-14  Jim Meyering  <meyering@ascend.com>
88363
88364         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88365         * m4/stat.m4: Likewise.
88366
88367 1998-11-03  Jim Meyering  <meyering@ascend.com>
88368
88369         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88370         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88371
88372 1998-10-18  Jim Meyering  <meyering@ascend.com>
88373
88374         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88375
88376 1998-10-17  Jim Meyering  <meyering@ascend.com>
88377
88378         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88379         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88380         calls for those previously hard-coded headers.  Instead, take a new
88381         parameter.
88382         (jm_CHECK_DECLARATIONS): Reflect interface change.
88383         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88384         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88385
88386         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88387
88388 1998-10-14  Jim Meyering  <meyering@ascend.com>
88389
88390         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88391         instead of "TZ=America/Vancouver".  From Paul Eggert.
88392
88393 1998-10-11  Jim Meyering  <meyering@ascend.com>
88394
88395         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88396         This adds a test for a recently added compatibility fix for mktime.c.
88397         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88398
88399 1998-09-27  Jim Meyering  <meyering@ascend.com>
88400
88401         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88402
88403         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88404         ../configure.in, including a change from Gordon Matzigkeit to allow
88405         cross-compiling for the Hurd.
88406
88407         * m4/glibc.m4: New file/macro to test for the GNU C Library
88408         versions 1 and 2.  From Gordon Matzigkeit.
88409         Indent.
88410
88411 1998-09-21  Jim Meyering  <meyering@ascend.com>
88412
88413         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88414
88415 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88416
88417         Port nanosecond-resolution times to UnixWare 2.1.2 and
88418         pedantic Solaris 2.6.
88419
88420         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88421         AC_STRUCT_ST_MTIM.
88422         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88423         Generate name of ns member, instead of just 1 or undef.
88424         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88425
88426 1998-08-15  Jim Meyering  <meyering@ascend.com>
88427
88428         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88429         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88430         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88431         instead of jm_TYPE_SSIZE_T.
88432
88433 1998-08-12  Jim Meyering  <meyering@ascend.com>
88434
88435         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88436
88437 1998-08-02  Jim Meyering  <meyering@ascend.com>
88438
88439         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88440         in acconfig.h manually.
88441
88442 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88443
88444         * m4/st_mtim.m4: New file.
88445
88446 1998-07-28  Jim Meyering  <meyering@ascend.com>
88447
88448         * m4/utimes.m4: Undef stat.
88449
88450 1998-07-25  Jim Meyering  <meyering@ascend.com>
88451
88452         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88453         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88454
88455 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88456
88457         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88458         uid and gid actually remain unchanged.
88459
88460 1998-07-07  Jim Meyering  <meyering@ascend.com>
88461
88462         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88463
88464 1998-07-04  Jim Meyering  <meyering@ascend.com>
88465
88466         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88467         to prove that this macro can be used in packages without regex.c.
88468
88469 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88470
88471         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88472         is to be used.
88473
88474 1998-07-03  Jim Meyering  <meyering@ascend.com>
88475
88476         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88477
88478         * m4/gettext.m4: New file -- from gettext-0.10.35.
88479         * m4/lcmessage.m4: Likewise.
88480         * m4/progtest.m4: Likewise.
88481
88482         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88483         * m4/jm-macros.m4: Require the new macro.
88484
88485 1998-06-29  Jim Meyering  <meyering@ascend.com>
88486
88487         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88488         for the definition of NGROUPS (used in a system header included
88489         by sys/mount.h).
88490
88491 1998-06-28  Jim Meyering  <meyering@ascend.com>
88492
88493         * m4/ls-mntd-fs.m4: New file.
88494         * m4/fstypename.m4: New file.
88495
88496         * m4/jm-macros.m4: Require the new macro.
88497         * m4/jm-glibc-io.m4: New file.
88498
88499 1998-05-19  Jim Meyering  <meyering@ascend.com>
88500
88501         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88502         * m4/lchown.m4: New file.
88503
88504         * m4/Makefile.am.in: New file.
88505         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88506
88507 1998-05-14  Jim Meyering  <meyering@ascend.com>
88508
88509         * m4/Makefile.am (EXTRA_DIST): Add them.
88510         * m4/jm-macros.m4: New file.
88511         * m4/utimbuf.m4: New file.
88512
88513 1998-05-12  Jim Meyering  <meyering@ascend.com>
88514
88515         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88516
88517 1998-05-11  Jim Meyering  <meyering@ascend.com>
88518
88519         * m4/isc-posix.m4: New file.
88520
88521 1998-05-10  Jim Meyering  <meyering@ascend.com>
88522
88523         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88524
88525 1998-05-09  Jim Meyering  <meyering@ascend.com>
88526
88527         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88528         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88529         with automake.
88530
88531         * m4/ssize_t.m4: New file.
88532         * m4/mktime.m4: Remove file -- the new automake has this now.
88533
88534 1998-04-26  Jim Meyering  <meyering@ascend.com>
88535
88536         * m4/assert.m4: New file.
88537         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88538
88539 1998-04-05  Jim Meyering  <meyering@ascend.com>
88540
88541         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88542         (jm_PREREQ): Use it here.
88543
88544 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88545
88546         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88547         in acconfig.h.
88548
88549 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88550
88551         * m4/prereq.m4: New file.
88552         * m4/error.m4: New file.
88553         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88554
88555 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88556
88557         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88558         cache-check for the same variable -- that defeated the purpose of
88559         the test; the test program was never run.  This was a problem only
88560         on systems with losing getline functions -- HP-UX 10.20 is one.
88561         Reported by Bjorn Helgaas.
88562
88563 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88564
88565         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88566
88567 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88568
88569         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88570
88571         * m4/const.m4: New file.  Use an initializer in this declaration
88572         typedef int charset[2]; const charset x;
88573         Reported by Bob Glickstein.
88574
88575 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88576
88577         * m4/chown.m4: Fix reversed types on -1 args to chown.
88578         From Kaveh Ghazi.
88579
88580 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88581
88582         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88583         Add lseek and memchr.
88584
88585         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88586         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88587         have a 20-character limit on names.
88588
88589 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88590
88591         * m4/inttypes_h.m4: New file.
88592         * m4/uintmax_t.m4: New file.
88593         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88594
88595
88596         -----
88597
88598         Local Variables:
88599         coding: utf-8
88600         End:
88601
88602         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88603
88604         Copying and distribution of this file, with or without
88605         modification, are permitted provided the copyright notice
88606         and this notice are preserved.